/* rm-lumieres-app.css — LE QUESTIONNAIRE ET L'ÉDITEUR, EN LUMIÈRE (2026-11-07)
   ════════════════════════════════════════════════════════════════════════════════════
   Demande du propriétaire : « que l'éditeur et le questionnaire soient aussi stylisés ».
   Même langage que le site public (rm-lumieres.css) : dégradés de rouge, reflets, ombres
   douces, lumière. Rien ne change dans la logique : uniquement de l'habillage.
   · Questionnaire : tout est préfixé `body.rm-quest`.
   · Éditeur : seulement son panneau (#rm-panneau), sa bande d'actions et son écran de
     chargement. JAMAIS l'aperçu du site du client : sa police et ses couleurs sont les siennes.
   · « Réduire les animations » : tout mouvement s'arrête. */

@font-face { font-family:'RM Jakarta'; src:url('/polices/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2'); font-weight:200 800; font-display:swap;
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'RM Jakarta'; src:url('/polices/plus-jakarta-sans-latin-ext-wght-normal.woff2') format('woff2'); font-weight:200 800; font-display:swap;
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@property --rm-app-angle { syntax:'<angle>'; initial-value:0deg; inherits:false; }
@keyframes rm-app-tour { to { --rm-app-angle:360deg; } }
@keyframes rm-app-reflet { 0% { background-position:200% 0; } 100% { background-position:-200% 0; } }
@keyframes rm-app-derive { 0% { background-position:0% 0%; } 50% { background-position:70% 40%; } 100% { background-position:100% 100%; } }

/* ══ LE QUESTIONNAIRE ══════════════════════════════════════════════════════════════ */
body.rm-quest { font-family:'RM Jakarta', "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; }
/* Une lumière douce derrière les questions, qui dérive lentement. */
body.rm-quest::before { content:""; position:fixed; inset:0; z-index:-1; pointer-events:none;
  background:radial-gradient(40% 45% at 92% 6%, rgba(239,68,68,.16), transparent 70%),
             radial-gradient(36% 42% at 0% 100%, rgba(185,28,28,.10), transparent 70%),
             radial-gradient(28% 34% at 55% 55%, rgba(254,202,202,.18), transparent 70%);
  background-size:130% 130%; background-repeat:no-repeat; animation:rm-app-derive 22s ease-in-out infinite alternate; }
body.rm-quest { background:#fff; }
/* Barre du haut, question collée et barre d'actions : du verre. */
body.rm-quest .haut, body.rm-quest .qtete, body.rm-quest .actions { background:rgba(255,255,255,.78); -webkit-backdrop-filter:blur(14px) saturate(1.2); backdrop-filter:blur(14px) saturate(1.2); }
body.rm-quest .actions { box-shadow:0 -12px 30px -18px rgba(20,20,20,.25); }
/* La progression : un dégradé qui brille. */
body.rm-quest .prog { background:rgba(185,28,28,.08); }
body.rm-quest .prog i { background:linear-gradient(90deg,#7f1d1d,#dc2626,#f87171,#dc2626); background-size:200% 100%;
  box-shadow:0 0 14px rgba(220,38,38,.55); animation:rm-app-reflet 3.5s linear infinite; border-radius:0 4px 4px 0; }
/* La question. */
body.rm-quest h1.q, body.rm-quest .slogan { letter-spacing:-.03em; }
body.rm-quest .slogan b { background:linear-gradient(100deg,#7f1d1d,#dc2626 40%,#f87171 55%,#b91c1c); -webkit-background-clip:text; background-clip:text; color:transparent; -webkit-text-fill-color:transparent; }
/* Les boutons. */
body.rm-quest .btn { transition:transform .2s ease, box-shadow .25s ease, border-color .2s ease, background-color .2s ease; }
body.rm-quest .btn:hover { transform:translateY(-1px); box-shadow:0 10px 24px -16px rgba(20,20,20,.45); }
body.rm-quest .btn-p { position:relative; overflow:hidden; isolation:isolate; border-color:transparent;
  background:linear-gradient(135deg,#ef4444 0%,#dc2626 30%,#b91c1c 65%,#991b1b 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.26), 0 0 0 1px rgba(127,29,29,.3), 0 12px 28px -12px rgba(185,28,28,.7); }
body.rm-quest .btn-p::after { content:""; position:absolute; top:0; left:-70%; width:45%; height:100%; z-index:-1;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.38),transparent); transform:skewX(-20deg); transition:left .8s ease; }
body.rm-quest .btn-p:hover { transform:translateY(-2px); box-shadow:inset 0 1px 0 rgba(255,255,255,.3), 0 0 0 1px rgba(127,29,29,.4), 0 18px 38px -12px rgba(185,28,28,.85); }
body.rm-quest .btn-p:hover::after { left:140%; }
/* Les choix : ils se soulèvent, et le choix fait s'allume. */
body.rm-quest :is(.ctype, .opt2, .duo, .forme, .c5, .puce) { transition:transform .22s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease, border-color .2s ease, background-color .2s ease; }
body.rm-quest :is(.ctype, .opt2, .duo, .forme, .c5):hover { transform:translateY(-2px); border-color:rgba(185,28,28,.35); box-shadow:0 14px 30px -20px rgba(20,20,20,.4), 0 8px 22px -18px rgba(185,28,28,.45); }
body.rm-quest .puce:hover { transform:translateY(-1px); border-color:rgba(185,28,28,.4); }
body.rm-quest :is(.ctype, .opt2, .duo, .forme, .c5)[aria-pressed="true"] { box-shadow:0 0 0 3px rgba(185,28,28,.16), 0 16px 34px -20px rgba(185,28,28,.6); }
body.rm-quest .puce[aria-pressed="true"], body.rm-quest .puce[aria-checked="true"] { background:linear-gradient(135deg,#dc2626,#991b1b); box-shadow:0 8px 20px -10px rgba(185,28,28,.7); }
body.rm-quest .saisie:focus { border-color:#dc2626; box-shadow:0 0 0 4px rgba(220,38,38,.12), 0 10px 24px -18px rgba(185,28,28,.5); }
body.rm-quest :is(.fiche, .offre-bloc, .encart) { box-shadow:0 1px 2px rgba(20,20,20,.04), 0 14px 32px -24px rgba(20,20,20,.3); }
/* L'entrée d'un écran : un léger flou en plus. */
@keyframes rm-app-entre { from { opacity:0; transform:translateY(18px); filter:blur(6px); } to { opacity:1; transform:none; filter:none; } }
body.rm-quest .ecran:not(.sort):not(.recule):not(.fixe) { animation-name:rm-app-entre; }

/* ══ L'ÉDITEUR : son panneau, sa bande d'actions, son chargement ══════════════════════ */
#rm-panneau { font-family:'RM Jakarta', var(--rm-font, "Segoe UI"), system-ui, sans-serif; }
#rm-bandeau-apercu .rm-bd-primaire { position:relative; overflow:hidden; isolation:isolate; border-color:transparent !important;
  background:linear-gradient(135deg,#ef4444 0%,#dc2626 30%,#b91c1c 65%,#991b1b 100%) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.26), 0 0 0 1px rgba(127,29,29,.3), 0 10px 24px -12px rgba(185,28,28,.75);
  transition:transform .2s ease, box-shadow .25s ease; }
#rm-bandeau-apercu .rm-bd-primaire::after { content:""; position:absolute; top:0; left:-70%; width:45%; height:100%; z-index:-1;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.4),transparent); transform:skewX(-20deg); animation:rm-app-balaye 4.5s ease-in-out 1.5s infinite; }
@keyframes rm-app-balaye { 0%, 70% { left:-70%; } 100% { left:140%; } }
#rm-bandeau-apercu .rm-bd-primaire:not([disabled]):not([data-rm-grise]):hover { transform:translateY(-1px); box-shadow:inset 0 1px 0 rgba(255,255,255,.3), 0 0 0 1px rgba(127,29,29,.4), 0 16px 32px -12px rgba(185,28,28,.9); }
#rm-bandeau-apercu .rm-bd-b { transition:transform .2s ease, box-shadow .25s ease, background-color .2s ease; }
#rm-bandeau-apercu .rm-bd-b:not(.rm-bd-primaire):not([disabled]):hover { transform:translateY(-1px); box-shadow:0 8px 18px -12px rgba(20,20,20,.4); }
.btn-primary, button.btn-primary { background:linear-gradient(135deg,#ef4444 0%,#dc2626 30%,#b91c1c 65%,#991b1b 100%) !important; border-color:transparent !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.24), 0 10px 22px -12px rgba(185,28,28,.7); }
.btn-primary:hover { opacity:1 !important; filter:brightness(1.06); }
/* (2026-11-07) « Ajouter une section » : deux colonnes ÉGALES, et les libellés passent à la ligne.
   La grille (style en ligne « 1fr 1fr ») calait ses colonnes sur ses plus longs libellés, qui ne
   passaient jamais à la ligne : la seconde colonne sortait du panneau (75 px, 98 avec la police
   de la marque), comme le propriétaire l'a vu. */
#ecomSectionsBloc > div[style*="grid-template-columns"] { grid-template-columns:repeat(2, minmax(0, 1fr)) !important; }
#ecomSectionsBloc > div[style*="grid-template-columns"] > .btn-add { min-width:0; white-space:normal; line-height:1.25; text-align:center; }
#ecomSectionsBloc > div[style*="grid-template-columns"] > .btn-add { flex-wrap:wrap; justify-content:center; row-gap:1px; }
#ecomSectionsBloc > div[style*="grid-template-columns"] > .btn-add[data-rm-a-reconstruire]::after { content:"reconstruction"; flex-basis:100%; font-size:10.5px; }
/* L'écran de chargement : un halo rouge qui respire derrière le logo. */
/* Noir franc (propriétaire, 2026-11-08 : « noircis-moi ces arrière-plans ») : plus de halo rouge derrière le logo. */
#rm-app-loader { background:#000 !important; }
/* Le logo (fond noir) se fond dans le halo : plus de carré noir autour (propriétaire). */
#rm-app-loader img { mix-blend-mode:lighten; }
#rm-app-loader .rm-loader-spin { border-color:rgba(255,255,255,.12) !important; border-top-color:#ef4444 !important; box-shadow:0 0 22px rgba(239,68,68,.45); }

@media (prefers-reduced-motion: reduce) {
  body.rm-quest *, body.rm-quest *::before, body.rm-quest *::after, body.rm-quest::before,
  #rm-bandeau-apercu .rm-bd-primaire::after { animation:none !important; transition:none !important; }
}

/* ══ LA BARRE DU HAUT DE L'ÉDITEUR, EN LUMIÈRE (2026-11-07, « beaucoup trop fade ») ═════════
   Fond noirci le 2026-11-08 (« noircis-moi ces arrière-plans ») : les halos rouges du fond
   sont retirés ; restent le fil rouge animé du bas, les boutons et leurs lueurs.
   Rien ne change de taille ni de place (la barre est mesurée à toutes les largeurs :
   outils/l-editeur-a-toutes-les-tailles.js) : seulement des fonds, des lueurs, des ombres. */
#rm-topbar { position:relative;
  background:
    linear-gradient(90deg, transparent 0%, #ef4444 30%, #b91c1c 50%, #ef4444 70%, transparent 100%) 0 100% / 200% 2px no-repeat,
    linear-gradient(180deg, #0a0a0a 0%, #000 100%) !important;
  border-bottom-color:transparent !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07), 0 12px 30px -14px rgba(0,0,0,.65); }
@media (prefers-reduced-motion:no-preference) {
  #rm-topbar { animation:rm-app-fil 7s linear infinite; }
  @keyframes rm-app-fil { from { background-position:0 100%, 0 0; } to { background-position:-200% 100%, 0 0; } }
}
/* Les groupes (annuler, zoom, appareils) : du verre. */
#rm-zoom-ctrl, #rm-vue-appareil { background:linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.04)) !important;
  border-color:rgba(255,255,255,.14) !important; box-shadow:inset 0 1px 0 rgba(255,255,255,.08), 0 6px 14px -10px rgba(0,0,0,.8); }
.rm-vue-b[aria-pressed="true"] { background:linear-gradient(135deg,#ef4444,#b91c1c 60%,#991b1b) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.25), 0 0 14px rgba(239,68,68,.45); }
.rm-topnav-btn, #rm-topbar-undo button { transition:background-color .2s ease, color .2s ease, box-shadow .25s ease, transform .2s ease; }
.rm-topnav-btn:hover, #rm-topbar-undo button:not([disabled]):hover { background:rgba(255,255,255,.1) !important; color:#fff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08), 0 0 0 1px rgba(255,255,255,.08); }
.rm-topnav-btn.active { background:linear-gradient(135deg, rgba(239,68,68,.35), rgba(153,27,27,.35)) !important; box-shadow:inset 0 0 0 1px rgba(239,68,68,.35), 0 0 16px -4px rgba(239,68,68,.55); }
/* Les boutons rouges de la barre : dégradé, reflet, lueur. Publier (blanc) : un halo. */
#rm-topbar .rm-export-btn { transition:transform .2s ease, box-shadow .25s ease, filter .2s ease; }
#rm-topbar .rm-export-btn:not(#publishSiteToolbarButton) { background:linear-gradient(135deg,#ef4444 0%,#dc2626 35%,#b91c1c 70%,#991b1b 100%) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.25), 0 0 0 1px rgba(127,29,29,.5), 0 8px 18px -10px rgba(239,68,68,.75); }
#rm-topbar #publishSiteToolbarButton { box-shadow:inset 0 -1px 0 rgba(0,0,0,.08), 0 0 0 1px rgba(255,255,255,.25), 0 0 22px -6px rgba(255,255,255,.55); }
/* Plein écran et Télécharger, à gauche de Publier : en NOIR (propriétaire, 2026-11-10 : « les
   deux boutons rouges à gauche de Publier, mets-les en noir »). */
#rm-topbar .rm-export-btn#apercuPleinEcranBtn:not(#publishSiteToolbarButton), #rm-topbar .rm-export-btn#downloadCvToolbarButton:not(#publishSiteToolbarButton) { background:#111 !important; color:#fff !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08), 0 0 0 1px rgba(255,255,255,.16) !important; }
@media (hover:hover) { #rm-topbar .rm-export-btn#apercuPleinEcranBtn:not(#publishSiteToolbarButton):hover, #rm-topbar .rm-export-btn#downloadCvToolbarButton:not(#publishSiteToolbarButton):hover { background:#1f1f1f !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12), 0 0 0 1px rgba(255,255,255,.28) !important; } }
@media (hover:hover) {
  #rm-topbar .rm-export-btn:hover { transform:translateY(-1px); filter:brightness(1.08); }
  #rm-topbar .rm-export-btn:not(#publishSiteToolbarButton):hover { box-shadow:inset 0 1px 0 rgba(255,255,255,.3), 0 0 0 1px rgba(127,29,29,.5), 0 12px 24px -10px rgba(239,68,68,.95); }
  #rm-topbar #publishSiteToolbarButton:hover { box-shadow:0 0 0 1px rgba(255,255,255,.4), 0 0 28px -4px rgba(255,255,255,.75); }
}
/* le rond vert de l'état : retiré (propriétaire, 2026-11-10 : « il ne sert à rien ») */
#rm-topbar .rm-status-dot { display:none !important; }
@media (prefers-reduced-motion:no-preference) {
  #rm-topbar .rm-status-dot { animation:rm-app-pouls 2.4s ease-in-out infinite; }
  @keyframes rm-app-pouls { 50% { box-shadow:0 0 0 5px rgba(34,197,94,.06), 0 0 14px rgba(34,197,94,.9); } }
}
/* Le logo de la barre : plus de lueur rouge derrière lui (propriétaire, 2026-11-20). */
#rm-topbar img { filter:none; }

/* ══ LA NOTIFICATION, EN VERRE SOMBRE (propriétaire, 2026-11-20 : « beaucoup plus stylé,
   moderne, professionnel, comme le reste du site ») ═══════════════════════════════════════
   L'ancienne bulle était un aplat rouge en gras : elle criait comme une erreur pour dire
   « mise en page appliquée ». Même langage que la barre du haut : noir profond, verre, un
   filet de lumière, une pastille rouge, et une barre de temps qui dit quand elle partira
   (--rm-notif-duree, posée par afficherNotification, script.js). Les positions restent
   celles d'editor.html (à côté du panneau ; en haut au téléphone). */
@keyframes rm-notif-temps-a { from { transform:scaleX(1); } to { transform:scaleX(0); } }
@keyframes rm-notif-temps-b { from { transform:scaleX(1); } to { transform:scaleX(0); } }
body .cv-overflow-notification {
  display:flex; align-items:flex-start; gap:12px; overflow:hidden;
  padding:13px 18px 14px 15px; border-radius:14px;
  background:linear-gradient(180deg, rgba(28,28,31,.94), rgba(10,10,11,.94));
  -webkit-backdrop-filter:blur(18px) saturate(1.3); backdrop-filter:blur(18px) saturate(1.3);
  border:1px solid rgba(255,255,255,.09);
  color:#f4f4f5; font-family:'RM Jakarta', "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size:13.5px; font-weight:500; letter-spacing:-.005em;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07), 0 0 0 1px rgba(0,0,0,.35), 0 22px 44px -16px rgba(0,0,0,.6), 0 10px 24px -18px rgba(185,28,28,.55);
  transform:translateY(10px) scale(.985);
  transition:opacity .22s ease, transform .3s cubic-bezier(.2,.8,.2,1);
}
body .cv-overflow-notification.visible { transform:none; }
/* La pastille : un point rouge allumé, à hauteur de la première ligne. */
body .cv-overflow-notification::before {
  content:""; flex:0 0 8px; height:8px; margin-top:6px; border-radius:50%;
  background:radial-gradient(circle at 35% 35%, #fca5a5, #ef4444 45%, #b91c1c);
  box-shadow:0 0 0 4px rgba(239,68,68,.16), 0 0 12px rgba(239,68,68,.65);
}
/* La barre de temps, au pied de la bulle. */
body .cv-overflow-notification::after {
  content:""; position:absolute; left:0; right:0; bottom:0; height:2px; transform-origin:left center;
  background:linear-gradient(90deg, #7f1d1d, #ef4444 55%, #f87171);
  opacity:.9; transform:scaleX(0);
}
body .cv-overflow-notification.visible.rm-n-a::after { animation:rm-notif-temps-a var(--rm-notif-duree, 3000ms) linear forwards; }
body .cv-overflow-notification.visible.rm-n-b::after { animation:rm-notif-temps-b var(--rm-notif-duree, 3000ms) linear forwards; }
/* Une longue explication se ferme d'un clic : on le voit au survol. */
@media (hover:hover) {
  body .cv-overflow-notification[title]:hover { border-color:rgba(255,255,255,.18); }
}
@media (prefers-reduced-motion: reduce) {
  body .cv-overflow-notification { transition:opacity .15s linear; transform:none; }
  body .cv-overflow-notification::after { display:none; }
}
