/* Rizup, étapes 6 et 7 : les 40 écrans (une phrase par écran, en très grand ; l'image démontre la phrase).
   Nuit jusqu'à l'écran 29, papier de 30 à 39 (--papier, de 0 à 1, posé par recit.js), noir à 40. Aucun texte sous 18 px. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("polices/manrope-latin-wght-normal.woff2") format("woff2");
}

:root {
  --vide: #010208;
  --givre: #eef4ff;
  --glace: #b9d4f5;
  --lecture: #c3d0e4;
  --brume: #8197b6;
  --trait: rgba(206, 226, 255, 0.14);
  --trait-net: rgba(206, 226, 255, 0.24);
  --rose: #ff3d9e;
  --bleu: #2f8cff;
  --dose: 0.65;
  --doux: cubic-bezier(0.22, 1, 0.36, 1);
  --marge: 44px;
  --papier: 0;
  --fond-papier: #f3efe7;
  --encre: #161b2d;
  --encre-douce: #4d566c;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--vide); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  background: var(--vide);
  color: var(--givre);
  font-family: "Manrope", system-ui, sans-serif;
  font-feature-settings: "ss01", "cv01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; }
::selection { background: rgba(185, 212, 245, 0.28); }

/* ---------- La toile fixe (étoiles, nébuleuse, cerveau : à partir de l'écran 8) ---------- */
#scene {
  position: fixed; inset: 0; width: 100vw; height: 100vh; display: block;
  z-index: 0; pointer-events: none; opacity: 0;
}
.sans-js #scene, .sans-webgl #scene, .lent #scene { display: none; }

.evitement {
  position: absolute; left: 16px; top: -60px; z-index: 20;
  background: var(--givre); color: var(--vide); padding: 10px 16px; border-radius: 999px; font-size: 18px; font-weight: 600;
}
.evitement:focus { top: 16px; }

.cadre { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--marge); }
header, main, footer { position: relative; z-index: 2; }

/* ---------- En-tête ---------- */
.entete { position: absolute; top: 0; left: 0; right: 0; z-index: 6; }
.entete .cadre { max-width: none; }
.entete-ligne { display: flex; align-items: center; justify-content: space-between; height: 92px; }
.marque { font-weight: 600; font-size: 20px; letter-spacing: -0.01em; text-decoration: none; color: var(--givre); }
.entete .lien { font-size: 18px; }

/* ---------- Liens et boutons ---------- */
.lien {
  font-weight: 500; font-size: 18px; color: var(--givre); text-decoration: none;
  padding: 6px 0; border-bottom: 1px solid var(--trait-net);
  transition: border-color 0.3s var(--doux), color 0.3s var(--doux);
}
.lien:hover { border-color: var(--givre); }
.lien-discret { color: var(--brume); border-color: transparent; }
.lien-discret:hover { color: var(--givre); }

.bouton {
  position: relative;
  display: inline-flex; align-items: center; gap: 14px;
  height: 56px; padding: 0 28px 0 24px;
  font: inherit; font-size: 18px; font-weight: 600; letter-spacing: -0.005em;
  color: var(--vide); text-decoration: none;
  background: var(--givre);
  border: 0; border-radius: 999px;
  box-shadow:
    -10px 10px 38px -14px rgba(255, 61, 158, calc(var(--dose) * 0.7)),
    10px 12px 38px -14px rgba(47, 140, 255, calc(var(--dose) * 0.8));
  transition: transform 0.25s var(--doux), box-shadow 0.4s var(--doux);
}
.bouton::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--vide); box-shadow: 0 0 0 3px rgba(1, 2, 8, 0.14); }
.bouton:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 6px rgba(200, 225, 255, 0.10), -14px 12px 48px -12px rgba(255, 61, 158, calc(var(--dose) * 0.95)), 14px 14px 48px -12px rgba(47, 140, 255, var(--dose));
}
.bouton:active { transform: scale(0.97); }
:focus-visible { outline: 2px solid var(--glace); outline-offset: 4px; border-radius: 4px; }
.bouton:focus-visible { border-radius: 999px; }
.actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 18px 34px; }

/* =====================================================================
   Le récit : 17 écrans
   ===================================================================== */
.recit { position: relative; }
.ecrans { list-style: none; }
.phrase, .titre {
  font-weight: 300;
  letter-spacing: -0.038em;
  line-height: 1.04;
  color: color-mix(in oklab, var(--encre) calc(var(--papier) * 100%), var(--givre));
  text-wrap: balance;
}
.phrase { font-size: var(--fp, clamp(42px, 5.9vw, 92px)); max-width: 15em; }
.titre { font-size: min(76px, 5.4vw, 7.4vh); max-width: 16em; }
.titre span + span { color: var(--glace); }
.sous-ligne { margin-top: 22px; font-size: clamp(20px, 1.6vw, 26px); line-height: 1.4; font-weight: 400; color: var(--lecture); letter-spacing: -0.01em; max-width: 40em; }
.ecran-un .actions { margin-top: 30px; }
.intertitre { justify-content: center; font-size: 20px; font-weight: 500; color: color-mix(in oklab, var(--encre) calc(var(--papier) * 100%), var(--glace)); margin-bottom: 22px; display: flex; align-items: center; gap: 12px; }
.intertitre::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: color-mix(in oklab, var(--encre) calc(var(--papier) * 100%), var(--givre)); box-shadow: 0 0 10px 1px color-mix(in srgb, var(--rose) calc((1 - var(--papier)) * 100%), transparent), 0 0 18px 2px color-mix(in srgb, var(--bleu) calc((1 - var(--papier)) * 100%), transparent); }
h2.intertitre { font-size: 20px; letter-spacing: 0; line-height: 1.3; max-width: none; }
/* la ligne de condition, sous la phrase (écrans 29, 34, 39 et 40) : elle arrive et part avec elle */
.condition { margin-top: 18px; font-size: 20px; line-height: 1.45; font-weight: 400; letter-spacing: -0.005em; max-width: 56em; color: color-mix(in oklab, var(--encre-douce) calc(var(--papier) * 100%), var(--lecture)); }
.mention { margin-top: 30px; font-size: 18px; line-height: 1.5; color: var(--brume); max-width: 30em; }
.chap-titre { font-size: 18px; font-weight: 500; color: color-mix(in oklab, var(--encre) calc(var(--papier) * 100%), var(--glace)); margin-bottom: 18px; }
.ancre { display: block; position: relative; top: -10vh; }

/* sans JavaScript : les 17 phrases, l'une sous l'autre */
.sans-js .ecran { padding: 16vh var(--marge); max-width: 1440px; margin: 0 auto; }
.sans-js .ecran-un { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 12vh; }
.sans-js .theatre, .sans-js .chapitre { display: none; }

/* ---------- Le théâtre : objets dessinés ---------- */
.theatre { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.calque { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.calque.dessus { z-index: 5; }
.obj { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform, opacity; visibility: hidden; opacity: 0; }
.ic { display: block; width: 24px; height: 24px; flex: none; }

/* la tête */
.contour { stroke: var(--givre); stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(185, 212, 245, 0.55)); }
.bombe { filter: drop-shadow(0 0 8px rgba(255, 79, 142, 0.7)); }
.stylo { filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 12px rgba(255, 255, 255, 0.6)); }
.trait-sujet { stroke-width: 2.2; stroke-linecap: round; filter: drop-shadow(0 0 5px currentColor); }
.fibre { stroke-width: 1.6; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(185, 212, 245, 0.6)); }
.impulsion { filter: drop-shadow(0 0 5px var(--c)) drop-shadow(0 0 12px var(--c)); }
.fil-ligne { stroke: var(--givre); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(185, 212, 245, 0.7)); }
.fil-tige { stroke: rgba(238, 244, 255, 0.6); stroke-width: 1.5; }
.etincelle { fill: #fff; filter: drop-shadow(0 0 6px var(--rose)) drop-shadow(0 0 14px var(--rose)); }

/* l'agenda */
.agenda { border-radius: 22px; background: rgba(8, 13, 26, 0.86); box-shadow: inset 0 0 0 1px rgba(206, 226, 255, 0.15), 0 40px 90px -30px rgba(0, 0, 0, 0.8); }
.ag-ligne { position: absolute; left: 0; right: 0; height: 1px; background: rgba(206, 226, 255, 0.09); }
.ag-ligne:first-child, .ag-ligne:last-child { opacity: 0; }
.ag-heure { position: absolute; left: 22px; font-size: 20px; font-weight: 500; color: var(--brume); font-variant-numeric: tabular-nums; white-space: nowrap; }
.evt {
  --ic: 16px; --t: 1; --r: 12px;
  border-radius: var(--r);
  background: color-mix(in srgb, var(--c) 15%, rgba(8, 13, 26, 0.92));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 55%, transparent), 0 0 34px -10px var(--c);
  color: var(--givre); overflow: hidden;
}
.evt .ic { position: absolute; left: var(--ic); top: 50%; width: 34px; height: 34px; margin-top: -17px; color: var(--c); }
.evt-t { position: absolute; left: 68px; right: 12px; top: 50%; transform: translateY(-50%); font-size: 21px; font-weight: 500; line-height: 1.14; letter-spacing: -0.01em; opacity: var(--t); }

/* les fragments */
.frag { --c: #8197b6; }
.frag-tas { transform-origin: 50% 50%; }
.ligne-tete { filter: drop-shadow(0 0 3px rgba(1, 2, 8, 0.9)) drop-shadow(0 0 8px rgba(238, 244, 255, 0.5)); }
.vitre { border-radius: 18px; z-index: 1;
  background: linear-gradient(125deg, rgba(185, 212, 245, 0.16) 0%, rgba(185, 212, 245, 0.04) 34%, rgba(185, 212, 245, 0.02) 60%, rgba(185, 212, 245, 0.12) 100%);
  box-shadow: inset 0 0 0 1px rgba(206, 226, 255, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.25); backdrop-filter: blur(1.5px); -webkit-backdrop-filter: blur(1.5px); }
.portee { stroke: var(--glace); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1 1; filter: drop-shadow(0 0 5px rgba(185, 212, 245, 0.8)); }
.butee { stroke-width: 3; }
.frag .dessin { display: block; width: 100%; height: 100%; overflow: visible; }
.frag-mail, .frag-visio, .frag-couloir { border-radius: 16px; }
.frag-couloir { background: rgba(6, 10, 22, 0.96); box-shadow: 0 0 40px -12px var(--c); }
.frag-mail { background: color-mix(in srgb, var(--c) 10%, rgba(8, 13, 26, 0.94)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 70%, transparent), 0 0 40px -12px var(--c); }
.frag-visio { background: rgba(6, 10, 22, 0.96); }
.frag .fond-c { fill: color-mix(in srgb, var(--c) 22%, transparent); stroke: var(--c); stroke-width: 1.4; }
.frag .trait-c { stroke: var(--c); }
.frag .plein-c { fill: var(--c); }
.frag .plein-b { fill: rgba(238, 244, 255, 0.34); }
.frag .plein-b2 { fill: color-mix(in srgb, var(--c) 25%, transparent); stroke: color-mix(in srgb, var(--c) 70%, transparent); stroke-width: 1.2; }
.frag .bulle-c { fill: color-mix(in srgb, var(--c) 12%, rgba(8, 13, 26, 0.94)); stroke: var(--c); stroke-width: 1.6; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--c) 45%, transparent)); }
.frag .ecran-v { fill: none; stroke: var(--c); stroke-width: 1.6; }
.frag-visio { box-shadow: 0 0 40px -12px var(--c); }
.frag .perspective { stroke: color-mix(in srgb, var(--c) 55%, transparent); }
.frag.gris { --c: #5d6c85; box-shadow: none; filter: saturate(0.2) brightness(0.8); }
.frag.gris.frag-mail { background: rgba(14, 20, 34, 0.98); }
.frag.gris.frag-visio { background: rgba(10, 15, 28, 0.98); }

/* les fenêtres (chat, messagerie) */
.fen { border-radius: 18px; background: rgba(8, 13, 26, 0.95); box-shadow: inset 0 0 0 1px rgba(206, 226, 255, 0.2), 0 40px 90px -30px rgba(0, 0, 0, 0.9), 0 0 60px -30px rgba(120, 170, 255, 0.5); overflow: hidden; }
.fen-barre { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-bottom: 1px solid rgba(206, 226, 255, 0.08); }
.fen-barre i { width: 11px; height: 11px; border-radius: 50%; background: rgba(206, 226, 255, 0.22); }
.chat { display: flex; flex-direction: column; z-index: 1; }
.derniere { z-index: 2; }
.chat-corps { flex: 1; padding: 16px 20px; display: flex; flex-direction: column; gap: 22px; }
.chat-piece { border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(206, 226, 255, 0.12); }
.chat-rep { display: flex; gap: 14px; align-items: flex-start; }
.chat-ia { width: 30px; height: 30px; color: var(--glace); }
.chat-lignes { flex: 1; display: grid; gap: 14px; padding-top: 6px; }
.chat-lignes i { display: block; height: 9px; border-radius: 5px; background: var(--givre); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 12px rgba(238, 244, 255, 0.35); }
.chat-lignes i:nth-child(2) { width: 82%; }
.chat-lignes i:nth-child(3) { width: 64%; }
.chat-saisie { margin: 0 16px 16px; height: 46px; border-radius: 23px; box-shadow: inset 0 0 0 1px rgba(206, 226, 255, 0.16); display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 18px; }
.chat-saisie i { width: 40%; height: 6px; border-radius: 3px; background: rgba(206, 226, 255, 0.12); }
.chat-env { width: 30px; height: 30px; padding: 5px; border-radius: 50%; background: rgba(206, 226, 255, 0.12); color: var(--glace); }

/* les sources autour du cerveau */
.source { display: flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px; border-radius: 999px; background: rgba(4, 7, 16, 0.72); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 55%, transparent), 0 0 24px -8px var(--c); font-size: 21px; font-weight: 500; color: var(--givre); white-space: nowrap; transform-origin: 50% 50%; }
.source .ic { width: 26px; height: 26px; color: var(--c); filter: drop-shadow(0 0 4px var(--c)); }
.point { width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 60%, transparent), 0 0 18px 4px var(--c), 0 0 40px 8px color-mix(in srgb, var(--c) 50%, transparent); }
.fiche { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px 14px; border-radius: 14px; background: rgba(6, 10, 22, 0.9); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 70%, transparent), 0 0 40px -14px var(--c); }
.fiche .ic { width: 34px; height: 34px; color: var(--c); filter: drop-shadow(0 0 6px var(--c)); }
.fiche strong { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; color: var(--givre); }
.fiche i { display: block; height: 7px; width: 70%; border-radius: 4px; background: rgba(238, 244, 255, 0.22); }
.fiche i + i { width: 48%; margin-top: -4px; }

/* la page du lundi, claire */
.page { padding: 32px 34px 28px; border-radius: 16px; background: #eef3fb; color: #0c1630; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6), 0 40px 120px -20px rgba(47, 140, 255, 0.45), 0 0 80px -20px rgba(185, 212, 245, 0.5); display: grid; gap: 0; }
.pg-rang { padding: 14px 0 16px; border-top: 1px solid rgba(12, 22, 48, 0.1); display: grid; gap: 10px; }
.pg-rang:first-child { border-top: 0; padding-top: 0; }
.pg-titre { font-size: 21px; font-weight: 700; letter-spacing: -0.015em; color: #0c1630; }
.pg-l { display: flex; align-items: center; gap: 10px; height: 22px; }
.pg-l b { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; margin: 0 6px 0 4px; }
.pg-l i { display: block; height: 8px; border-radius: 4px; background: #c3d1e6; }
.pg-l .ic { width: 22px; height: 22px; color: #4b6185; }
.pg-rdv { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 600; color: #0c1630; letter-spacing: -0.01em; }
.pg-rdv .ic { width: 24px; height: 24px; color: var(--c); filter: saturate(1.3) brightness(0.85); }
.tasse svg { display: block; width: 100%; height: 100%; overflow: visible; }
.tasse-c { stroke: var(--givre); stroke-width: 2.4; filter: drop-shadow(0 0 6px rgba(185, 212, 245, 0.6)); }
.cafe { stroke: #b07a4f; stroke-width: 3; }
.vapeur { stroke: rgba(238, 244, 255, 0.55); stroke-width: 2; stroke-dasharray: 22 18; }

/* la fenêtre de messagerie */
.mail { display: flex; flex-direction: column; }
.ml-champ { display: flex; align-items: center; gap: 14px; padding: 12px 24px; border-bottom: 1px solid rgba(206, 226, 255, 0.08); }
.ml-a { font-size: 20px; color: var(--brume); }
.ml-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: color-mix(in srgb, var(--c) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 60%, transparent); font-size: 20px; font-weight: 500; color: var(--givre); white-space: nowrap; }
.ml-chip .ic { color: var(--c); width: 24px; height: 24px; }
.ml-corps { position: relative; padding: 26px 28px 22px; display: flex; flex-direction: column; gap: 24px; }
.ml-l { --rr: 0; display: block; height: 9px; width: 100%; border-radius: 5px; transform-origin: 0 50%; transform: scaleX(0); background: rgba(238, 244, 255, 0.78); flex: none; }
.ml-l.ml-rose { background: color-mix(in srgb, var(--rose) calc(var(--rr) * 100%), rgba(238, 244, 255, 0.78)); box-shadow: 0 0 calc(var(--rr) * 14px) color-mix(in srgb, var(--rose) calc(var(--rr) * 70%), transparent); }
.ml-curseur { --humain: 0; position: absolute; left: 0; top: 0; width: 2px; height: 26px; margin: -13px 0 0 3px; border-radius: 1px; background: #fff; box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.8), 0 0 18px 4px color-mix(in srgb, var(--rose) calc(var(--humain) * 100%), var(--bleu)); opacity: 0; }
.ml-lumiere { position: absolute; left: 0; right: 0; top: 0; bottom: 0; transform-origin: 50% 0; transform: scaleY(0); background: linear-gradient(180deg, rgba(120, 175, 255, 0.02) 0%, rgba(120, 175, 255, 0.12) 75%, rgba(185, 212, 245, 0.26) 100%); box-shadow: inset 0 -2px 0 rgba(200, 225, 255, 0.95), 0 6px 18px -6px rgba(120, 175, 255, 0.8); opacity: 0; }
.ml-seuil { position: absolute; left: 16px; right: 16px; top: 0; height: 2px; border-radius: 1px; background: var(--glace); box-shadow: 0 0 12px 2px rgba(185, 212, 245, 0.8); opacity: 0; }
.ml-pied { position: relative; display: flex; justify-content: flex-end; padding: 14px 18px 18px; }
.ml-envoyer { --envoye: 0; position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; background: color-mix(in srgb, var(--bleu) calc(40% + var(--envoye) * 60%), rgba(20, 30, 54, 1)); color: #fff; font-size: 20px; font-weight: 600; transform-origin: 50% 50%; box-shadow: 0 0 calc(var(--envoye) * 30px) color-mix(in srgb, var(--bleu) 80%, transparent); }
.ml-coche { width: calc(var(--envoye) * 22px); height: 22px; opacity: var(--envoye); }
.ml-pied .ml-seuil { margin: 0; }
.ml-onde { position: absolute; right: 18px; bottom: 18px; width: 150px; height: 46px; border-radius: 999px; box-shadow: 0 0 0 2px rgba(185, 212, 245, 0.8), 0 0 24px 4px rgba(47, 140, 255, 0.6); opacity: 0; transform-origin: 70% 50%; }
.souris { width: 26px; height: 34px; z-index: 6; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6)); transform-origin: 4px 4px; }
.souris svg { display: block; width: 100%; height: 100%; }
.souris path { fill: #fff; stroke: #0c1630; stroke-width: 1.4; stroke-linejoin: round; }

/* l'étoile « Règles apprises » */
.etoile { --nom: 0; width: 0; height: 0; z-index: 4; transform-origin: 0 0; }
.etoile i { position: absolute; left: -46px; top: -46px; width: 92px; height: 92px;
  background:
    radial-gradient(circle, #fff 0 3px, rgba(255, 220, 240, 0.9) 4px, rgba(255, 61, 158, 0.45) 12px, rgba(255, 61, 158, 0) 34px),
    linear-gradient(90deg, transparent 0, rgba(255, 200, 230, 0) 8%, rgba(255, 220, 240, 0.95) 50%, rgba(255, 200, 230, 0) 92%, transparent 100%) center / 100% 2px no-repeat,
    linear-gradient(0deg, transparent 0, rgba(255, 200, 230, 0) 14%, rgba(255, 220, 240, 0.9) 50%, rgba(255, 200, 230, 0) 86%, transparent 100%) center / 2px 76% no-repeat;
  filter: drop-shadow(0 0 10px rgba(255, 61, 158, 0.8)); }
.etoile span { position: absolute; left: 26px; top: -44px; white-space: nowrap; font-size: 20px; font-weight: 600; color: #ffe3f1; text-shadow: 0 0 14px rgba(255, 61, 158, 0.8), 0 0 4px rgba(1, 2, 8, 1); opacity: var(--nom); }

/* le cerveau en image (sans la toile) */
.cerveau-img { mix-blend-mode: screen; height: auto; }
.theatre { isolation: isolate; }

/* =====================================================================
   Épinglé : la scène reste collée, les écrans se succèdent au défilement
   ===================================================================== */
.epingle .scene-collee { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.epingle .scene-collee::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(0deg, rgba(1, 2, 8, 0.92) 0%, rgba(1, 2, 8, 0.8) calc(100% - var(--phrase-haut, 61svh)), rgba(1, 2, 8, 0) calc(100% - var(--phrase-haut, 61svh) + 64px)); }
.epingle .theatre { z-index: 0; }
.epingle .ecrans { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
/* lecture verticale : l'image au-dessus (le théâtre), la phrase en dessous, centrée dans la colonne */
.epingle .ecran {
  position: absolute; top: var(--phrase-haut, 61svh); bottom: 22px; left: var(--marge); right: var(--marge);
  display: flex; flex-direction: column; justify-content: flex-start; align-items: center; text-align: center;
  opacity: 0; will-change: transform, opacity;
}
.epingle .ecran-un { top: var(--heros-haut, 40vh); bottom: auto; opacity: 1; }
.epingle .ecran a, .epingle .ecran button { pointer-events: auto; }
.epingle .cache, .epingle .cache a { pointer-events: none !important; }
.epingle .chap-titre { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.epingle .ancre { position: absolute; left: 0; top: 0; width: 1px; height: 1px; }
.recit .ancre { scroll-margin-top: 0; }

.ecrire-flottant { position: fixed; z-index: 8; top: 18px; right: var(--marge); opacity: 0; pointer-events: none; transition: opacity 0.35s var(--doux); }
.ecrire-flottant.vu { opacity: 1; pointer-events: auto; }
.sans-js .ecrire-flottant { display: none; }
.chapitre { position: absolute; z-index: 4; left: var(--marge); top: 30px; display: flex; align-items: center; gap: 18px; font-size: 18px; font-weight: 500; color: color-mix(in oklab, var(--encre) calc(var(--papier) * 100%), var(--glace)); opacity: 0; pointer-events: none; }
.chapitre-traits { display: flex; gap: 6px; }
.chapitre-traits i { width: 22px; height: 3px; border-radius: 2px; background: color-mix(in oklab, rgba(22, 27, 45, 0.18) calc(var(--papier) * 100%), rgba(206, 226, 255, 0.18)); transition: background 0.3s; }
.chapitre-traits i.fait { background: color-mix(in oklab, var(--encre) calc(var(--papier) * 100%), var(--givre)); box-shadow: 0 0 8px color-mix(in srgb, rgba(185, 212, 245, 0.6) calc((1 - var(--papier)) * 100%), transparent); }

/* la question de l'écran 10 : une barre de saisie, le texte se tape */
.question { position: relative; max-width: 100%; }
.question .lettre { transition: none; }
.question .tete::after { content: ""; display: inline-block; width: 3px; height: 0.86em; margin-left: 3px; vertical-align: -0.08em; background: var(--givre); box-shadow: 0 0 10px rgba(255, 61, 158, 0.9); }
.question.vide .tape::before { content: ""; display: inline-block; width: 3px; height: 0.86em; vertical-align: -0.08em; background: var(--givre); }
.q-envoi { --envoi: 0; position: absolute; right: 18px; bottom: 16px; width: 48px; height: 48px; padding: 11px; border-radius: 50%; color: var(--vide); background: color-mix(in srgb, var(--givre) calc(25% + var(--envoi) * 75%), transparent); box-shadow: 0 0 calc(var(--envoi) * 26px) rgba(185, 212, 245, 0.9); }
.q-envoi .ic { width: 26px; height: 26px; }
.question { --envoi: 0; }
.question .q-envoi { --envoi: inherit; }
.sans-js .q-envoi { display: none; }
.sans-js .question { padding: 0; background: none; box-shadow: none; }

/* ---------- Ordinateur bas (moins de 880 px de haut) : objets plus petits, jamais de texte sous 18 px ---------- */
.compact .evt-t { font-size: 19px; left: 60px; }
.compact .evt .ic { width: 30px; height: 30px; margin-top: -15px; }
.compact .ag-heure { font-size: 18px; }
.compact .source { font-size: 19px; padding: 7px 14px 7px 10px; }
.compact .source .ic { width: 24px; height: 24px; }
.compact .fiche { padding: 12px 10px; gap: 8px; }
.compact .fiche .ic { width: 30px; height: 30px; }
.compact .fiche strong { font-size: 22px; }
.compact .page { padding: 24px 26px 20px; }
.compact .pg-rang { padding: 10px 0 11px; gap: 7px; }
.compact .pg-titre { font-size: 19px; }
.compact .pg-rdv { font-size: 18px; }
.compact .pg-l { height: 20px; }
.compact .fen-barre { height: 34px; }
.compact .ml-champ { padding: 9px 20px; }
.compact .ml-a, .compact .ml-chip { font-size: 18px; }
.compact .ml-corps { padding: 18px 22px 16px; gap: 16px; }
.compact .ml-l { height: 8px; }
.compact .ml-pied { padding: 10px 16px 14px; }
.compact .ml-envoyer { font-size: 18px; height: 42px; padding: 0 20px; }
.compact .ml-onde { right: 16px; bottom: 14px; width: 136px; height: 42px; }
.compact .chat-corps { padding: 14px 16px; gap: 18px; }
.compact .etoile span { font-size: 18px; }

/* =====================================================================
   Mouvement réduit : pas d'épinglage, chaque écran à sa place, dans son état final
   ===================================================================== */
.lent .chapitre { display: none; }
.lent .recit > .scene-collee > .theatre { display: none; }
.lent .ecran { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-start; align-items: center; text-align: center; padding: var(--phrase-haut, 61svh) var(--marge) 40px; }
.lent .ecran > :not(.theatre) { position: relative; z-index: 2; }
.lent .ecran-un { padding-top: var(--heros-haut, 40vh); }
.lent .ecran::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(0deg, rgba(1, 2, 8, 0.92) 0%, rgba(1, 2, 8, 0.8) calc(100% - var(--phrase-haut, 61svh)), rgba(1, 2, 8, 0) calc(100% - var(--phrase-haut, 61svh) + 64px)); }
.lent .temps, .lent .reaction { opacity: 1 !important; }
.lent .question .lettre { opacity: 1 !important; }

/* =====================================================================
   Écrans 18 à 40 (étape 7) : objets nets ; sur le papier, le trait passe en encre
   ===================================================================== */
.papier-fond { position: absolute; inset: 0; background: var(--fond-papier); opacity: 0; pointer-events: none; }
.calque.suite { overflow: visible; }

/* traits et fibres */
.fibre-v { stroke: var(--glace); stroke-width: 1.8; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(185, 212, 245, 0.7)); }
.fibre-v.longue { stroke: #d6e6ff; stroke-width: 2.2; }
.reponse { stroke: #fff; stroke-width: 4; stroke-linecap: round; filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 14px var(--bleu)); }
.fil-menage { stroke-width: 1.6; stroke-linecap: round; opacity: 0.85; }
.conn { stroke-width: 3; stroke-linecap: round; }
.conn-a { stroke: var(--rose); }
.conn-b { stroke: var(--bleu); }
.epingle { stroke: var(--encre); stroke-width: 1.6; }
.eclair { fill: #fff; filter: drop-shadow(0 0 8px #fff) drop-shadow(0 0 18px rgba(255, 228, 190, 0.95)); }
.grain-v { filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.75)); }
.etincelle { fill: #fff; filter: drop-shadow(0 0 6px var(--rose)) drop-shadow(0 0 14px var(--rose)); }
.votre-plein { filter: saturate(1.4); }

/* l'ordinateur portable : de nuit, un trait de lumière ; sur le papier, à l'encre */
.portable { --on: 0; }
.pt-capot { position: relative; width: 100%; aspect-ratio: 1 / 0.64; padding: 3.4% 3.4% 4.6%; border-radius: 14px 14px 5px 5px; background: color-mix(in oklab, #fbfaf7 calc(var(--papier) * 100%), #0b101c); box-shadow: inset 0 0 0 1.6px color-mix(in oklab, var(--encre) calc(var(--papier) * 100%), rgba(206, 226, 255, 0.42)), 0 30px 70px -30px rgba(0, 0, 0, calc(0.85 - 0.65 * var(--papier))); }
.pt-ecran { position: relative; width: 100%; height: 100%; border-radius: 6px; overflow: hidden; background: color-mix(in oklab, #e8edf4 calc(var(--papier) * 100%), #03060d); box-shadow: inset 0 0 0 1px color-mix(in oklab, rgba(22, 27, 45, 0.35) calc(var(--papier) * 100%), rgba(206, 226, 255, 0.1)); }
.pt-ecran::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 0%, rgba(120, 175, 255, 0.34), rgba(120, 175, 255, 0.08) 60%, rgba(120, 175, 255, 0) 100%); opacity: calc(var(--on) * (1 - var(--papier))); }
.pt-socle { position: relative; width: 114%; margin-left: -7%; height: 0; padding-top: 5.4%; border-radius: 0 0 20px 20px / 0 0 12px 12px; background: color-mix(in oklab, #fbfaf7 calc(var(--papier) * 100%), #151b29); box-shadow: inset 0 0 0 1.6px color-mix(in oklab, var(--encre) calc(var(--papier) * 100%), rgba(206, 226, 255, 0.36)); }
.pt-socle::after { content: ""; position: absolute; left: 42.5%; top: 0; width: 15%; height: 40%; border-radius: 0 0 8px 8px; background: color-mix(in oklab, rgba(22, 27, 45, 0.28) calc(var(--papier) * 100%), rgba(206, 226, 255, 0.24)); }
.pt-couche { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; }
.pt-compte { flex-direction: column; gap: 12px; }
.pt-avatar { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(185, 212, 245, 0.12); box-shadow: inset 0 0 0 1.5px rgba(185, 212, 245, 0.55); color: var(--givre); }
.pt-avatar .ic { width: 30px; height: 30px; }
.pt-compte-t { font-size: 20px; font-weight: 500; color: var(--givre); white-space: nowrap; padding: 7px 16px; border-radius: 999px; background: rgba(185, 212, 245, 0.08); box-shadow: inset 0 0 0 1px rgba(185, 212, 245, 0.32); }
.pm-page { width: 88%; background: #eef3fb; color: #0c1630; border-radius: 10px; padding: 16px 20px 18px; display: grid; gap: 14px; box-shadow: 0 0 40px -10px rgba(47, 140, 255, 0.6); }
.pm-rang { --l: 0; display: grid; gap: 9px; }
.pm-titre { font-size: 20px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; }
.pm-l { display: flex; align-items: center; gap: 10px; height: 16px; }
.pm-l b { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; margin-left: 3px; }
.pm-l .ic { width: 20px; height: 20px; color: #4b6185; }
.pm-l i { display: block; height: 8px; border-radius: 4px; background: #b9c8de; transform-origin: 0 50%; transform: scaleX(var(--l)); }
.pt-essais { flex-direction: column; align-items: stretch; justify-content: center; gap: 7%; padding: 0 9%; }
.es-l { --ok: 0; --ko: 0; --b: 1; display: flex; align-items: center; gap: 12px; height: 9%; min-height: 14px; }
.es-b { display: block; height: 8px; border-radius: 4px; background: rgba(206, 226, 255, 0.6); transform-origin: 0 50%; transform: scaleX(var(--b)); }
.es-c { position: relative; margin-left: auto; width: 24px; height: 24px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(206, 226, 255, 0.32); background: color-mix(in srgb, #2fc28a calc(var(--ok) * 100%), color-mix(in srgb, #ff4d56 calc(var(--ko) * 100%), rgba(0, 0, 0, 0))); }
.es-c .ic { position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; color: #fff; stroke-width: 2.6; }
.es-ok { opacity: var(--ok); }
.es-ko { opacity: var(--ko); }
.pt-fichiers { flex-direction: column; gap: 10px; }
.pf-dossier .ic { width: 66px; height: 66px; color: var(--encre); stroke-width: 1.3; }
.pf-t { font-size: 20px; font-weight: 600; color: var(--encre); }
.pf-pages { display: flex; gap: 8px; }
.pf-pages i { width: 26px; height: 32px; border-radius: 3px; background: #fff; box-shadow: inset 0 0 0 1.5px rgba(22, 27, 45, 0.5); }
.portable.petit .pf-t, .portable.petit .pf-pages { display: none; }
.portable.petit .pf-dossier .ic { width: 40px; height: 40px; stroke-width: 1.6; }
.feuille { display: flex; flex-direction: column; justify-content: space-evenly; gap: 10px; padding: 24px 22px; border-radius: 6px; background: #f6f8fc; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.5), 0 0 50px -10px rgba(120, 175, 255, 0.5); }
.fe-t { display: block; height: 10px; width: 48%; border-radius: 5px; background: #0c1630; margin-bottom: 2%; }
.fe-l { display: flex; align-items: center; gap: 10px; }
.fe-l i { display: block; height: 8px; border-radius: 4px; background: #93a7c6; }
.fe-ok { margin-left: auto; width: 22px; height: 22px; flex: none; padding: 3px; border-radius: 50%; background: #1fae7a; color: #fff; stroke-width: 2.8; }

/* la fenêtre de messagerie de l'écran 19, son bouton qui passe au gris, le cadenas */
.mail-v { --gris: 0; overflow: visible; }
.mv-vide { display: block; width: 46%; height: 10px; border-radius: 5px; background: rgba(206, 226, 255, 0.2); }
.mv-corps { display: grid; gap: 18px; padding: 22px 24px 18px; }
.mv-corps i { display: block; height: 8px; border-radius: 4px; background: rgba(238, 244, 255, 0.7); }
.mv-pied { position: relative; display: flex; justify-content: flex-end; align-items: center; padding: 12px 18px 18px; }
.mv-env { display: inline-flex; align-items: center; height: 46px; padding: 0 24px; border-radius: 999px; font-size: 20px; font-weight: 600; color: color-mix(in srgb, #7d8699 calc(var(--gris) * 100%), #fff); background: color-mix(in srgb, #262d3d calc(var(--gris) * 100%), var(--bleu)); box-shadow: 0 0 calc((1 - var(--gris)) * 26px) rgba(47, 140, 255, 0.75); }
.cadenas { position: relative; z-index: 2; order: -1; margin-right: -14px; margin-top: -10px; width: 38px; height: 48px; opacity: 0; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.7)); }
.cadenas-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.cadenas-svg rect { fill: #ffd25a; }
.cadenas-svg .anse path { stroke: #ffd25a; }
.cadenas-svg .trou { fill: #4a3500; }
.cadenas-svg .trou-t { stroke: #4a3500; }

/* vos choix */
.choix { --coche: 0; display: flex; align-items: center; gap: 12px; padding: 10px 20px 10px 12px; border-radius: 16px; background: rgba(4, 7, 16, 0.84); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 55%, transparent), 0 0 24px -8px var(--c); font-size: 20px; font-weight: 500; color: var(--givre); white-space: nowrap; }
.ch-case { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; box-shadow: inset 0 0 0 2px rgba(206, 226, 255, 0.6); background: color-mix(in srgb, var(--c) calc(var(--coche) * 100%), rgba(0, 0, 0, 0)); }
.ch-case .ic { width: 20px; height: 20px; color: #06101f; stroke-width: 2.8; opacity: var(--coche); }
.ch-ic { width: 26px; height: 26px; color: var(--c); filter: drop-shadow(0 0 4px var(--c)); }

/* la bulle de l'écran 22 */
.bulle-v svg { display: block; width: 100%; height: 100%; overflow: visible; }
.bl-fond { fill: rgba(8, 13, 26, 0.95); stroke: rgba(206, 226, 255, 0.55); stroke-width: 1.5; filter: drop-shadow(0 0 18px rgba(120, 170, 255, 0.35)); }
.bl-l { fill: rgba(238, 244, 255, 0.8); }
.bl-rose { fill: var(--rose); filter: drop-shadow(0 0 6px var(--rose)); }
.bl-barre { fill: none; stroke: #ff6b6b; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1 1; }

/* la ligne de lumière (écrans 24 et 25), votre côté en dessous */
.seuil { position: absolute; left: 0; top: 0; height: 2px; transform-origin: 50% 50%; opacity: 0; visibility: hidden; background: linear-gradient(90deg, rgba(255, 243, 224, 0), #fff3e0 8%, #fff 50%, #fff3e0 92%, rgba(255, 243, 224, 0)); box-shadow: 0 0 12px 2px rgba(255, 236, 210, 0.7), 0 0 30px 6px rgba(255, 220, 180, 0.25); }
.lueur { background: linear-gradient(180deg, rgba(255, 232, 205, 0.16) 0%, rgba(255, 232, 205, 0.06) 40%, rgba(255, 232, 205, 0) 92%); }
.objet24 { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 140px; transform-origin: 50% 50%; }
.o24-t { font-size: 20px; font-weight: 500; color: var(--glace); white-space: nowrap; opacity: var(--txt, 1); }
.o24-d { display: block; width: 100px; height: auto; overflow: visible; }
.o24-0 { --c: #ff6fa8; }
.o24-1 { --c: #6ea4ff; }
.o24-2 { --c: #fbbf24; }
.o-fond { fill: rgba(8, 13, 26, 0.94); stroke: var(--c); stroke-width: 2.4; filter: drop-shadow(0 0 8px color-mix(in srgb, var(--c) 60%, transparent)); }
.o-trait { fill: none; stroke: var(--c); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.o-trait.doux { opacity: 0.55; }
.o-bande { fill: color-mix(in srgb, var(--c) 40%, transparent); }
.o-plein { fill: rgba(238, 244, 255, 0.55); }
.o-case { fill: var(--c); }
.o24-env { position: absolute; left: 50%; top: 62%; transform: translate(-50%, -50%); padding: 6px 14px; border-radius: 999px; background: var(--bleu); color: #fff; font-size: 18px; font-weight: 600; white-space: nowrap; opacity: 0; box-shadow: 0 0 20px rgba(47, 140, 255, 0.75); }
.o24-fait { position: absolute; right: 12px; bottom: -8px; width: 30px; height: 30px; padding: 4px; border-radius: 50%; background: #1fae7a; opacity: 0; }
.o24-fait .ic { width: 22px; height: 22px; color: #fff; stroke-width: 2.8; }

/* le ménage de la semaine */
.menage { padding: 0 0 6px; }
.mn-titre { font-size: 20px; font-weight: 600; color: var(--givre); padding: 14px 20px 12px; border-bottom: 1px solid rgba(206, 226, 255, 0.1); }
.mn-l { --oui: 0; --fait: 0; display: flex; align-items: center; gap: 12px; padding: 11px 14px 11px 20px; border-bottom: 1px solid rgba(206, 226, 255, 0.06); }
.mn-l:last-child { border-bottom: 0; }
.mn-l b { width: 12px; height: 12px; flex: none; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); opacity: calc(1 - 0.85 * var(--fait)); }
.mn-t { font-size: 20px; color: var(--givre); white-space: nowrap; opacity: calc(1 - 0.5 * var(--fait)); text-decoration-line: line-through; text-decoration-color: color-mix(in srgb, var(--givre) calc(var(--fait) * 100%), transparent); }
.mn-oui { margin-left: auto; font-size: 18px; font-weight: 600; padding: 6px 16px; border-radius: 999px; color: #fff; background: color-mix(in srgb, var(--bleu) calc(var(--oui) * 100%), rgba(0, 0, 0, 0)); box-shadow: inset 0 0 0 1.5px rgba(206, 226, 255, 0.5), 0 0 calc(var(--oui) * 20px) rgba(47, 140, 255, 0.8); }
.pt-menage { width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 75%, transparent), 0 0 16px 4px var(--c); }

/* la carte, les serveurs */
.pays svg { display: block; width: 100%; height: auto; overflow: visible; }
.pays-trait { fill: rgba(185, 212, 245, 0.06); stroke: var(--glace); stroke-width: 1.7; stroke-linejoin: round; stroke-dasharray: 1 1; filter: drop-shadow(0 0 4px rgba(185, 212, 245, 0.5)); }
.pays-trait.corse { stroke-dasharray: none; }
.pays-t { display: block; margin-top: 8px; text-align: center; font-size: 20px; font-weight: 500; color: var(--glace); white-space: nowrap; opacity: var(--lab, 0); }
.ocean svg { display: block; width: 100%; height: 100%; overflow: visible; }
.onde { fill: none; stroke: rgba(111, 176, 255, 0.5); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.serveurs { display: flex; flex-direction: column-reverse; align-items: center; gap: 8px; }
.srv-svg { display: block; width: 100%; height: auto; overflow: visible; }
.srv-baie { fill: rgba(8, 13, 26, 0.96); stroke: var(--givre); stroke-width: 1.6; }
.srv-fente { stroke: rgba(206, 226, 255, 0.5); stroke-width: 1.8; stroke-linecap: round; }
.srv-led { fill: #34d399; filter: drop-shadow(0 0 3px #34d399); }
.srv-sol { stroke: rgba(206, 226, 255, 0.45); stroke-width: 1.5; }
.srv-t { font-size: 20px; font-weight: 600; color: var(--givre); white-space: nowrap; padding: 4px 14px; border-radius: 999px; background: rgba(8, 13, 26, 0.9); box-shadow: inset 0 0 0 1px rgba(206, 226, 255, 0.4); }

/* les boîtes de réception (tailles en em : la boîte entière suit sa largeur) */
.boite { font-size: 16px; border-radius: 0.9em; background: rgba(8, 13, 26, 0.96); box-shadow: inset 0 0 0 1px rgba(206, 226, 255, 0.24), 0 30px 70px -30px #000; overflow: hidden; }
.bt-tete { --lu: 0; display: flex; align-items: center; gap: 0.6em; height: 3em; padding: 0 1em; border-bottom: 1px solid rgba(206, 226, 255, 0.1); color: color-mix(in srgb, #fff calc(var(--lu) * 100%), var(--glace)); }
.bt-ic { width: 1.7em; height: 1.7em; }
.bt-tete i { display: block; height: 0.5em; width: 40%; border-radius: 0.25em; background: color-mix(in srgb, #fff calc(var(--lu) * 80%), rgba(206, 226, 255, 0.25)); }
.bt-l { --lu: 0; display: grid; grid-template-columns: 1.5em 1fr; column-gap: 0.8em; row-gap: 0.5em; align-items: center; padding: 0.8em 1em; border-bottom: 1px solid rgba(206, 226, 255, 0.07); background: rgba(120, 175, 255, calc(var(--lu) * 0.12)); }
.bt-l b { grid-row: span 2; width: 1.5em; height: 1.5em; border-radius: 50%; background: color-mix(in srgb, #dfeaff calc(var(--lu) * 100%), rgba(206, 226, 255, 0.14)); box-shadow: 0 0 calc(var(--lu) * 12px) rgba(185, 212, 245, 0.7); }
.bt-l i { display: block; height: 0.5em; border-radius: 0.25em; background: color-mix(in srgb, #fff calc(var(--lu) * 100%), rgba(206, 226, 255, 0.16)); box-shadow: 0 0 calc(var(--lu) * 10px) rgba(185, 212, 245, 0.6); }
.bt-l .bt-s { opacity: 0.65; }
.bt-l u { display: none; }
.boite-1 .bt-tete, .boite-1 .bt-l { opacity: 0.4; }
.bt-cadenas { position: absolute; left: 50%; top: 52%; width: 3.6em; height: 4.6em; transform: translate(-50%, -50%); filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.8)); }

/* le carnet : trois onglets, rien d'autre */
.carnet { display: flex; align-items: stretch; }
.cn-livre { position: relative; flex: 1; display: flex; border-radius: 6px; background: #f7f3e8; box-shadow: 0 0 0 3px #2a3550, 0 20px 50px -20px #000; overflow: hidden; }
.cn-page { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; padding: 10px 12px 10px 14px; }
.cn-page i { display: block; height: 1px; background: rgba(60, 110, 200, 0.45); }
.cn-gauche::before { content: ""; position: absolute; left: 22px; top: 0; bottom: 0; width: 1.5px; background: rgba(214, 60, 60, 0.55); }
/* la spirale : des anneaux métalliques au milieu */
.cn-spirale { flex: none; width: 18px; background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0) 3.2px, #8e98ad 3.6px, #cfd5e0 5px, rgba(0, 0, 0, 0) 5.6px) 0 4px / 18px 13px repeat-y, linear-gradient(90deg, #e6e0d0, #d6cfbd 50%, #e6e0d0); }
.cn-onglets { display: flex; flex-direction: column; justify-content: center; gap: 6px; margin-left: -3px; }
.cn-onglets span { font-size: 20px; font-weight: 600; color: #0c1630; padding: 5px 16px 5px 12px; border-radius: 0 10px 10px 0; background: var(--tc); white-space: nowrap; box-shadow: 0 6px 14px -8px #000; }
.cn-onglets span:nth-child(1) { --tc: #ffd166; }
.cn-onglets span:nth-child(2) { --tc: #7ee0b5; }
.cn-onglets span:nth-child(3) { --tc: #9cc3ff; }

/* vos fichiers, sur le papier */
.cl-dos { border-radius: 4px 16px 16px 16px; background: #eadfc6; box-shadow: inset 0 0 0 1.6px rgba(22, 27, 45, 0.55), 0 30px 60px -34px rgba(60, 40, 10, 0.45); }
.cl-onglet { position: absolute; left: 0; top: -42px; height: 44px; display: flex; align-items: center; padding: 0 22px; border-radius: 12px 12px 0 0; background: #eadfc6; box-shadow: inset 0 1.6px 0 rgba(22, 27, 45, 0.55), inset 1.6px 0 0 rgba(22, 27, 45, 0.55), inset -1.6px 0 0 rgba(22, 27, 45, 0.55); font-size: 20px; font-weight: 600; color: var(--encre); white-space: nowrap; }
.cl-t { opacity: var(--txt, 1); }
.cl-face { border-radius: 0 0 16px 16px; background: #f0e6d0; box-shadow: inset 0 0 0 1.6px rgba(22, 27, 45, 0.55), 0 -10px 24px -16px rgba(60, 40, 10, 0.4); }
.feuillet { --grand: 0; display: flex; flex-direction: column; gap: 12px; padding: 16px 16px 18px; overflow: hidden; border-radius: 6px; background: #fffdf9; box-shadow: 0 0 0 1.6px rgba(22, 27, 45, 0.42), 0 16px 30px -18px rgba(22, 27, 45, 0.5); }
.fl-t { font-size: 20px; font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; color: var(--encre); opacity: var(--txt, 1); }
.fl-lignes { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: space-evenly; }
.fl-lignes i { display: block; flex: none; height: 7px; border-radius: 4px; background: #cdd2dd; }
.fl-lignes i.fl-etoile { background: #f4a9cb; }
.feuillet.en-rang { padding: 12px 12px 14px; gap: 8px; }
.feuillet.en-rang .fl-t { font-size: 18px; }
.usb svg { display: block; width: 100%; height: auto; overflow: visible; }
.usb-metal { fill: #dde2ea; stroke: var(--encre); stroke-width: 2; }
.usb-trou { fill: var(--encre); }
.usb-corps { fill: #fffdf9; stroke: var(--encre); stroke-width: 2.4; }
.usb-bande { stroke: var(--rose); stroke-width: 6; }
.usb-anneau { fill: none; stroke: var(--encre); stroke-width: 2; }
.usb-led { fill: #1fae7a; filter: drop-shadow(0 0 5px #1fae7a); }
.usb { position: relative; }
.usb-t { position: absolute; left: 39%; top: 50%; transform: translateY(-50%); font-size: 20px; font-weight: 600; color: var(--encre); white-space: nowrap; opacity: 0; }
.couche { --eteint: 0; display: flex; align-items: center; justify-content: center; border-radius: 16px; font-size: 20px; font-weight: 600; color: #fff; white-space: nowrap; }
.couche-a { background: color-mix(in srgb, #a2a8b4 calc(var(--eteint) * 100%), var(--rose)); box-shadow: 0 0 calc((1 - var(--eteint)) * 30px) rgba(255, 61, 158, 0.8), 0 0 calc((1 - var(--eteint)) * 80px) rgba(255, 61, 158, 0.35); }
.couche-b { background: var(--bleu); box-shadow: 0 0 30px rgba(47, 140, 255, 0.85), 0 0 80px rgba(47, 140, 255, 0.35); }
.leg32 { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 600; color: var(--encre); white-space: nowrap; }
.leg32 .ic { width: 28px; height: 28px; }

/* deux rangées de 12 mois */
.mois > * { position: absolute; left: 0; top: 0; }
.mo-t { font-size: 20px; font-weight: 600; color: var(--encre); white-space: nowrap; }
.mo-c { border-radius: 8px; background: #fffdf9; box-shadow: inset 0 0 0 1.5px rgba(22, 27, 45, 0.35); display: flex; flex-direction: column; align-items: center; padding-top: 5px; }
.mo-c span { font-size: 18px; font-weight: 600; line-height: 1.1; color: var(--encre-douce); }
.mo-fact { position: absolute; left: 50%; bottom: 7px; width: 60%; max-width: 26px; height: auto; overflow: visible; opacity: 0; }
.mo-fact path { fill: #fff; stroke: var(--encre); stroke-width: 1.6; stroke-linejoin: round; }
.mo-fact .mo-fl { fill: none; stroke: var(--rose); }
.mo-x { position: absolute; left: 6px; top: 6px; width: calc(100% - 12px); height: calc(100% - 12px); overflow: visible; opacity: 0; }
.mo-x path { fill: none; stroke: #d23c3c; stroke-width: 2.6; stroke-linecap: round; vector-effect: non-scaling-stroke; }

/* le calendrier de 30 jours */
.cal > * { position: absolute; left: 0; top: 0; }
.ca-fn { font-size: 20px; font-weight: 600; color: var(--encre); white-space: nowrap; }
.ca-pt { --off: 0; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: color-mix(in srgb, #c8ccd4 calc(var(--off) * 100%), #1fae7a); box-shadow: 0 0 calc((1 - var(--off)) * 10px) rgba(31, 174, 122, 0.85); }
.ca-c { --ok: 0; --ko: 0; padding: 4px 7px; border-radius: 8px; background: color-mix(in srgb, #ffe0e0 calc(var(--ko) * 100%), #fffdf9); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, #d23c3c calc(var(--ko) * 100%), rgba(22, 27, 45, 0.3)); }
.ca-c span { font-size: 18px; font-weight: 600; line-height: 1; color: var(--encre-douce); }
.ca-ok { position: absolute; right: 4px; bottom: 4px; width: 22px; height: 22px; color: #1fae7a; stroke-width: 2.8; opacity: var(--ok); }
.ca-31 { opacity: 0; background: transparent; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, #d23c3c calc(var(--ko) * 100%), rgba(22, 27, 45, 0.5)); border: 0; outline: 1.5px dashed rgba(22, 27, 45, 0.5); outline-offset: 3px; }
.etiq { height: 38px; display: flex; align-items: center; padding: 0 16px 0 28px; font-size: 20px; font-weight: 600; white-space: nowrap; border-radius: 0 8px 8px 0; clip-path: polygon(16px 0, 100% 0, 100% 100%, 16px 100%, 0 50%); opacity: 0; }
.etiq::before { content: ""; position: absolute; left: 12px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--fond-papier); }
.etiq-gratuit { background: #1fae7a; color: #fff; }
.etiq-prix { background: var(--encre); color: #fff; padding-right: 18px; }
.molette { transform-origin: 50% 50%; }
.molette .ic { width: 100%; height: 100%; color: var(--encre); stroke-width: 1.8; }

/* les noms des deux cerveaux */
.nom-cerveau { width: 0; height: 0; }
.nom-cerveau span { position: absolute; left: 0; top: 0; transform: translateX(-50%); white-space: nowrap; font-size: 20px; font-weight: 600; color: var(--givre); text-shadow: 0 0 6px rgba(1, 2, 8, 1), 0 0 14px rgba(1, 2, 8, 0.9); }
.nom-votre span { color: #ffc6e2; }
/* le nom de l'étoile du vôtre, du côté opposé au mien */
.etoile-v.nom-gauche span { left: auto; right: 26px; }
.etoile-v.nom-dessous span { left: 0; top: 18px; transform: translateX(-50%); }


/* l'étoile « Règles apprises » du vôtre ; posée sur la page, à l'encre rose */
.etoile-v.sur-page i { left: -26px; top: -26px; width: 52px; height: 52px; filter: drop-shadow(0 0 6px rgba(255, 61, 158, 0.75)); }
.etoile-v.sur-page span { left: 22px; top: -36px; font-size: 18px; color: #b31f60; text-shadow: none; padding: 1px 6px; border-radius: 4px; background: rgba(255, 253, 249, 0.94); }

/* =====================================================================
   Écran 40 : la fenêtre de messagerie est entièrement le lien M'écrire
   ===================================================================== */
.ecran-fin .actions { margin-top: 34px; }
.condition-fin { font-size: 22px; }
.adresse { font-size: 20px; color: var(--lecture); }
/* étape 12 : la carte de réservation, de la famille de l'agenda des premiers écrans ; toute la carte est le lien Réserver */
.fen-fin { display: block; width: min(480px, 100%); margin-top: 40px; text-align: left; text-decoration: none; color: var(--givre); border-radius: 22px; overflow: hidden; cursor: pointer; transform-origin: 50% 0;
  background: rgba(8, 13, 26, 0.9); box-shadow: inset 0 0 0 1px rgba(206, 226, 255, 0.15), 0 40px 90px -30px rgba(0, 0, 0, 0.8), 0 0 70px -30px rgba(120, 170, 255, 0.5); transition: box-shadow 0.35s var(--doux); }
.fen-fin:hover { box-shadow: inset 0 0 0 1px rgba(206, 226, 255, 0.4), 0 40px 90px -30px rgba(0, 0, 0, 0.8), 0 0 80px -20px rgba(120, 170, 255, 0.7); }
.fen-fin:focus-visible { border-radius: 22px; }
.rs-tete { display: flex; align-items: center; gap: 12px; padding: 18px 22px 16px; border-bottom: 1px solid rgba(206, 226, 255, 0.09); }
.rs-ic { flex: none; width: 24px; height: 24px; color: #b9d4f5; }
.rs-titre { font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -0.005em; color: var(--givre); }
.rs-liste { display: grid; gap: 10px; padding: 16px 18px 18px; }
.rs-cr { --sel: 1; --coche: 1; --c: #ff5fa8; position: relative; display: flex; align-items: center; gap: 14px; height: 56px; padding: 0 18px; border-radius: 14px;
  background: color-mix(in srgb, var(--c) calc(var(--sel) * 14%), rgba(120, 175, 255, 0.05));
  box-shadow: inset 0 0 0 calc(1.3px + var(--sel) * 0.5px) color-mix(in srgb, var(--c) calc(var(--sel) * 100%), rgba(206, 226, 255, 0.24)), 0 0 calc(var(--sel) * 30px) calc(var(--sel) * -8px) var(--c); }
.rs-cr:not(.rs-choisi) { --sel: 0; }
.rs-j { font-size: 20px; font-weight: 600; color: var(--givre); min-width: 6.2em; }
.rs-h { font-size: 20px; font-weight: 500; color: var(--brume); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rs-choisi .rs-h { color: color-mix(in srgb, #ffffff calc(var(--sel) * 100%), var(--brume)); }
.rs-coche { position: absolute; right: 16px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; overflow: visible; opacity: min(1, calc(var(--coche) * 6)); box-shadow: 0 0 14px -2px rgba(255, 95, 168, 0.85); }
.rs-coche circle { fill: var(--c); }
.rs-coche path { stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: calc(1 - var(--coche)); }
.ecran-fin .fin-texte { display: flex; flex-direction: column; align-items: center; }
.epingle .ecran-fin .fen-fin, .lent .ecran.ecran-fin > .fen-fin { position: absolute; z-index: 2; left: calc(50% - min(250px, 40vw)); width: min(500px, 80vw); bottom: calc(100% + 28px); margin: 0; }
.lent .ecran.ecran-fin > .fen-fin { top: auto; bottom: calc(100vh - var(--phrase-haut, 61svh) + 28px); }

/* ---------- Pied ---------- */
.pied { position: relative; z-index: 2; background: var(--vide); border-top: 1px solid rgba(206, 226, 255, 0.08); padding: 40px 0 48px; }
.pied-ligne { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; }
.pied .marque { font-size: 20px; }
.pied .lien { font-size: 18px; }
.credit { margin-top: 20px; font-size: 18px; line-height: 1.5; color: #8a9bb4; max-width: 46em; }

/* ---------- Ordinateur bas : objets plus petits, libellés à 18 px au moins ---------- */
.compact .pt-compte-t, .compact .pm-titre, .compact .o24-t, .compact .mn-titre, .compact .mn-t, .compact .pays-t, .compact .srv-t, .compact .cn-onglets span, .compact .choix, .compact .fl-t, .compact .cl-onglet, .compact .couche, .compact .leg32, .compact .mo-t, .compact .ca-fn, .compact .etiq { font-size: 19px; }
.compact .mv-env { font-size: 19px; height: 42px; }
.compact .pm-page { gap: 10px; padding: 12px 16px; }

/* =====================================================================
   Téléphone : visuel en haut, phrase en dessous (texte aligné à gauche, comme validé sur iPhone le 28/11)
   ===================================================================== */
@media (max-width: 820px) {
  :root { --marge: 22px; }
  .entete-ligne { height: 64px; }
  .marque { font-size: 19px; }
  .phrase { font-size: 46px; max-width: none; line-height: 1.05; }
  .titre { font-size: 40px; line-height: 1.06; max-width: none; }
  .sous-ligne { font-size: 20px; margin-top: 18px; max-width: none; }
  .actions { justify-content: flex-start; }
  .ecran-un .actions { margin-top: 24px; gap: 12px 24px; }
  .ecran-un .bouton { height: auto; min-height: 56px; padding: 11px 22px 11px 20px; line-height: 1.25; text-align: left; }
  .defilez { margin-top: 22px; }
  .intertitre { font-size: 18px; margin-bottom: 14px; justify-content: flex-start; }
  .mention { margin-top: 18px; }
  .condition, .condition-fin { font-size: 18px; margin-top: 16px; line-height: 1.4; max-width: none; }

  .epingle .ecran { top: 61svh; bottom: 64px; justify-content: center; align-items: flex-start; text-align: left; }
  .epingle .ecran-un { top: var(--heros-haut, 34svh); bottom: 16px; justify-content: flex-start; }
  .lent .ecran { padding: 61svh var(--marge) 64px; justify-content: center; align-items: flex-start; text-align: left; }
  .lent .ecran-un { padding-top: var(--heros-haut, 34svh); justify-content: flex-start; }
  .chapitre { top: 16px; flex-direction: column; align-items: flex-start; gap: 9px; }
  /* étape 10 : les traits s'arrêtent avant le bouton Réserver (ils se resserrent quand le chapitre a beaucoup d'écrans) */
  .chapitre-traits { gap: 4px; max-width: calc(100vw - 228px); }
  .chapitre-traits i { width: 14px; flex: 0 1 14px; min-width: 4px; }
  .chapitre-nom { max-width: calc(100vw - 228px); line-height: 1.3; }
  .cta-haut { gap: 14px; }
  .bouton-petit { height: 36px; padding: 0 14px; }
  .bouton-petit::before { display: none; }
  .ecrire-flottant { top: 10px; flex-direction: column; align-items: flex-end; gap: 0; }
  .ecrire-flottant .lien { padding: 2px 0; font-size: 18px; }

  /* les tailles de départ ; recit.js les baisse encore si une phrase ne tient pas dans sa zone */
  .ecran[data-n="3"] .phrase { font-size: 36px; }
  .ecran[data-n="5"] .phrase, .ecran[data-n="7"] .phrase { font-size: 40px; }
  .ecran[data-n="8"] .phrase { font-size: 37px; }
  .ecran[data-n="6"] .phrase { font-size: 44px; }
  .epingle .ecran[data-n="24"], .epingle .ecran[data-n="25"], .epingle .ecran[data-n="32"], .epingle .ecran[data-n="37"], .epingle .ecran[data-n="42"] { bottom: 22px; }

  .epingle .ecran-fin { top: 44svh; bottom: 24px; justify-content: flex-start; }
  .ecran-fin .fin-texte { align-items: flex-start; }
  .epingle .ecran-fin .fen-fin { left: 0; right: 0; width: auto; top: auto; bottom: calc(100% + 18px); margin-top: 0; }
  .lent .ecran-fin { padding-top: 44svh; justify-content: flex-start; }
  .lent .ecran.ecran-fin > .fen-fin { left: var(--marge); right: var(--marge); width: auto; top: 80px; bottom: auto; margin-top: 0; }
  .ecran-fin .actions { margin-top: 22px; gap: 14px 22px; }
  .ecran-fin .bouton { height: auto; min-height: 56px; padding: 11px 22px 11px 20px; line-height: 1.25; text-align: left; }
  .pied .marque { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .bouton, .lien { transition: none; }
  .defilez i::after { animation: none; opacity: 1; transform: translateY(5px); }
}

/* =====================================================================
   Objets : une seule composition (celle de la colonne du téléphone), pour toutes les tailles.
   À l'ordinateur, le théâtre est agrandi par zoom (jamais réduit) : aucun libellé sous 18 px.
   ===================================================================== */
.evt-t { font-size: 18px; left: 52px; right: 10px; }
.evt .ic { width: 26px; height: 26px; margin-top: -13px; }
.ag-heure { font-size: 18px; }
.source { flex-direction: column; gap: 6px; padding: 8px 10px; border-radius: 14px; font-size: 18px; background: rgba(4, 7, 16, 0.8); }
.source .ic { width: 24px; height: 24px; }
.fiche { padding: 12px 8px; gap: 8px; }
.fiche .ic { width: 28px; height: 28px; }
.fiche strong { font-size: 18px; }
.pg-titre { font-size: 18px; }
.pg-rdv { font-size: 18px; }
.ml-a, .ml-chip, .ml-envoyer { font-size: 18px; }
.page { padding: 18px 18px 14px; }
.page { padding: 18px 18px 14px; }
.pg-rang { padding: 9px 0 10px; gap: 7px; }
.pg-titre { font-size: 18px; }
.pg-l { height: 18px; }
.pg-rang .pg-l + .pg-l { display: none; }
.tasse { z-index: 2; }
.pg-rdv { font-size: 18px; }
.pg-rdv .ic { width: 22px; height: 22px; }
.fen-barre { height: 30px; padding: 0 12px; gap: 6px; }
.fen-barre i { width: 9px; height: 9px; }
.chat-corps { padding: 12px 14px; gap: 16px; }
.chat-ia { width: 24px; height: 24px; }
.chat-lignes { gap: 11px; padding-top: 4px; }
.chat-lignes i { height: 7px; }
.chat-saisie { margin: 0 12px 12px; height: 36px; }
.chat-env { width: 26px; height: 26px; padding: 4px; }
.ml-champ { padding: 8px 16px; gap: 10px; }
.ml-chip { font-size: 18px; padding: 4px 12px 4px 6px; }
.ml-chip .ic { width: 22px; height: 22px; }
.ml-corps { padding: 14px 16px 14px; gap: 12px; }
.ml-l { height: 7px; }
.ml-curseur { height: 20px; margin-top: -10px; }
.ml-pied { padding: 8px 12px 12px; }
.ml-envoyer { height: 40px; padding: 0 18px; font-size: 18px; }
.ml-onde { right: 12px; bottom: 12px; width: 128px; height: 40px; }
.etoile span { font-size: 18px; left: 22px; top: -40px; }
.pt-compte { gap: 8px; }
.pt-avatar { width: 40px; height: 40px; }
.pt-avatar .ic { width: 24px; height: 24px; }
.pt-compte-t { font-size: 18px; padding: 5px 12px; }
.pm-page { padding: 10px 14px 12px; gap: 9px; }
.pm-titre { font-size: 18px; }
.pm-rang { gap: 6px; }
.pm-rang .pm-l + .pm-l { display: none; }
.es-c { width: 20px; height: 20px; }
.es-c .ic { left: 2px; top: 2px; width: 16px; height: 16px; }
.fe-ok { width: 18px; height: 18px; padding: 2px; }
.feuille { padding: 16px 14px; gap: 6px; }
.mv-corps { gap: 12px; padding: 14px 16px 12px; }
.mv-corps i { height: 7px; }
.mv-pied { padding: 8px 12px 12px; }
.mv-env { height: 40px; padding: 0 18px; font-size: 18px; }
.cadenas { width: 32px; height: 40px; margin-right: -12px; }
.choix { display: grid; grid-template-columns: auto auto; justify-content: center; justify-items: center; gap: 6px 8px; padding: 8px 12px; font-size: 18px; border-radius: 14px; }
.ch-t { grid-column: 1 / -1; }
.ch-case { width: 24px; height: 24px; }
.ch-case .ic { width: 18px; height: 18px; }
.ch-ic { width: 24px; height: 24px; }
.objet24 { width: 112px; gap: 6px; }
.o24-t { font-size: 18px; }
.o24-d { width: 64px; }
.o24-env { font-size: 18px; padding: 4px 10px; }
.o24-fait { width: 24px; height: 24px; padding: 3px; right: 18px; }
.o24-fait .ic { width: 18px; height: 18px; }
.mn-titre { font-size: 18px; padding: 10px 14px 9px; }
.mn-l { gap: 8px; padding: 8px 10px 8px 14px; }
.mn-l b { width: 10px; height: 10px; }
.mn-t { font-size: 18px; }
.mn-oui { font-size: 18px; padding: 3px 12px; }
.pays-t, .srv-t { font-size: 18px; }
.pays-t { margin-top: 4px; }
.srv-t { padding: 2px 10px; }
.cn-onglets { gap: 4px; }
.cn-onglets span { font-size: 18px; padding: 3px 12px 3px 10px; }
.cl-onglet { font-size: 18px; height: 38px; top: -36px; padding: 0 16px; }
.fl-t { font-size: 18px; }
.feuillet { padding: 12px 14px 14px; gap: 8px; }
.feuillet.en-rang { padding: 10px; }
.feuillet.en-rang .fl-t { display: none; }
.couche, .leg32, .mo-t, .ca-fn, .etiq { font-size: 18px; }
.couche { border-radius: 12px; }
.etiq { height: 34px; }
.mo-c { border-radius: 6px; padding-top: 4px; }
.mo-c span { font-size: 18px; }
.mo-fact { bottom: 5px; width: 70%; }
.mo-x { left: 3px; top: 3px; width: calc(100% - 6px); height: calc(100% - 6px); }
.ca-c { padding: 3px 5px; border-radius: 6px; }
.ca-ok { width: 16px; height: 16px; right: 2px; bottom: 2px; }
.ca-pt { width: 14px; height: 14px; margin: -7px 0 0 -7px; }
.nom-cerveau span { font-size: 18px; }
.pt-compte-t { white-space: normal; text-align: center; max-width: 88%; line-height: 1.2; }
.usb-t { font-size: 18px; }
.etoile-v.sur-page span { font-size: 18px; }
@media (max-width: 820px) {
  .rs-tete { padding: 13px 16px 12px; gap: 10px; }
  .rs-ic { width: 22px; height: 22px; }
  .rs-titre, .rs-j, .rs-h { font-size: 18px; }
  .rs-liste { gap: 8px; padding: 12px 14px 14px; }
  .rs-cr { height: 46px; padding: 0 14px; border-radius: 12px; }
  .rs-coche { width: 26px; height: 26px; margin-top: -13px; right: 12px; }
}

/* =====================================================================
   Étape 8 : l'appel à l'action, le repère « Défilez », la question et sa réaction
   ===================================================================== */
.cta-haut { display: flex; align-items: center; gap: 22px; }
.bouton-petit { height: 40px; padding: 0 18px 0 16px; gap: 10px; font-size: 18px; white-space: nowrap; }
.bouton-petit::before { width: 6px; height: 6px; }
.ecrire-flottant { display: flex; align-items: center; gap: 22px; }
.ecrire-flottant.vu { opacity: 1; pointer-events: auto; }
.defilez { margin-top: 30px; display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 500; color: var(--brume); }
.defilez i { position: relative; width: 22px; height: 34px; border-radius: 11px; box-shadow: inset 0 0 0 1.5px rgba(206, 226, 255, 0.5); }
.defilez i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--givre); animation: defile 1.7s var(--doux) infinite; }
@keyframes defile { 0% { transform: translateY(0); opacity: 0; } 25% { opacity: 1; } 75% { transform: translateY(12px); opacity: 0; } 100% { transform: translateY(12px); opacity: 0; } }
.epingle .qr { display: grid; justify-items: center; }
.epingle .qr > * { grid-area: 1 / 1; align-self: center; }
.epingle .reaction { opacity: 0; }
.lent .reaction, .sans-js .reaction { margin-top: 24px; }
.temps { transition: none; }

/* =====================================================================
   Étape 8 : les objets des écrans 1 à 10
   ===================================================================== */
.theatre { left: 0; top: 0; right: auto; bottom: auto; width: 100%; height: 100%; }
.mem { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 1; }
.contour { --plein: 0; filter: drop-shadow(0 0 6px rgba(185, 212, 245, 0.55)) drop-shadow(0 0 calc(var(--plein) * 22px) rgba(185, 212, 245, calc(var(--plein) * 0.9))); }
/* 2 : les choses de la boîte, dans la tête */
.pastille { --allume: 0; display: flex; align-items: center; gap: 8px; padding: 5px 13px 5px 8px; border-radius: 999px; white-space: nowrap; font-size: 18px; font-weight: 600; color: var(--givre);
  background: color-mix(in srgb, var(--c) calc(14% + var(--allume) * 14%), rgba(6, 10, 22, 0.94));
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 75%, transparent), 0 0 calc(8px + var(--allume) * 22px) calc(var(--allume) * 2px) color-mix(in srgb, var(--c) 60%, transparent); z-index: 2; }
.pastille .ic { width: 22px; height: 22px; color: var(--c); filter: drop-shadow(0 0 4px var(--c)); }
/* 3 : le rendez-vous qui vient d'arriver a le cadre allumé */
.evt { --foc: 0; box-shadow: inset 0 0 0 calc(1px + var(--foc) * 1.5px) color-mix(in srgb, var(--c) calc(55% + var(--foc) * 45%), transparent), 0 0 calc(34px + var(--foc) * 26px) calc(-10px + var(--foc) * 6px) var(--c); }
/* 5 : les fils, le point de la tête */
.lien5 { stroke-width: 2; stroke-linecap: round; filter: drop-shadow(0 0 4px currentColor); }
.noeud { fill: #fff; filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 16px rgba(185, 212, 245, 0.95)); }
.frag-fichier { border-radius: 0; }
.frag .fond-doc { fill: color-mix(in srgb, var(--c) 12%, rgba(8, 13, 26, 0.96)); stroke: var(--c); stroke-width: 1.8; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--c) 45%, transparent)); }
/* 6 : ce qui s'est dit avant (grisé, daté), la réunion du jour, la limite */
.avant, .visio6 { display: flex; flex-direction: column; align-items: center; gap: 6px; transform-origin: 0 0; }
.av-d { width: 100%; border-radius: 12px; overflow: hidden; }
.avant .av-d { background: rgba(14, 20, 34, 0.98); box-shadow: inset 0 0 0 1px rgba(150, 165, 190, 0.35); }
.av-date { font-size: 18px; font-weight: 500; color: var(--brume); white-space: nowrap; }
.visio6 { --lum: 0; }
.visio6 .av-d { background: rgba(6, 10, 22, 0.96); box-shadow: 0 0 calc(var(--lum) * 46px) calc(var(--lum) * -8px) var(--bleu); }
.visio6 .av-date { color: var(--givre); }
.frag .case-v { fill: color-mix(in srgb, var(--c) 10%, rgba(10, 16, 30, 1)); stroke: color-mix(in srgb, var(--c) 45%, transparent); stroke-width: 1.2; }
.frag .raccroche { fill: #ff4d56; }
.barriere { stroke: rgba(206, 226, 255, 0.7); stroke-width: 2; stroke-dasharray: 1 1; stroke-linecap: round; }
.flux6 { fill: #fff; filter: drop-shadow(0 0 5px var(--bleu)) drop-shadow(0 0 12px var(--bleu)); }
/* 6 et 7 : la fenêtre d'IA et la jauge du temps gagné */
.ia { display: flex; flex-direction: column; z-index: 2; }
.ia .fen-barre { position: relative; }
.ia-signe { position: absolute; right: 12px; top: 50%; width: 24px; height: 24px; margin-top: -12px; color: var(--glace); filter: drop-shadow(0 0 6px rgba(185, 212, 245, 0.8)); }
.ia-corps { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 14px 18px; }
.ia-l { --l: 0; --rouge: 0; --re: 0; display: block; height: 9px; width: var(--w); border-radius: 5px; transform-origin: 0 50%; transform: scaleX(var(--l));
  background: color-mix(in srgb, #ff4d56 calc(var(--rouge) * 100%), color-mix(in srgb, var(--rose) calc(var(--re) * 70%), rgba(238, 244, 255, 0.82)));
  box-shadow: 0 0 calc(4px + var(--rouge) * 12px) color-mix(in srgb, #ff4d56 calc(var(--rouge) * 80%), rgba(238, 244, 255, 0.25)); }
.jauge { display: grid; gap: 10px; }
.jg-t { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 600; color: var(--givre); white-space: nowrap; }
.jg-t .ic { width: 24px; height: 24px; color: #34d399; }
.jg-barre { height: 18px; border-radius: 9px; background: rgba(206, 226, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(206, 226, 255, 0.3); overflow: hidden; }
.jg-barre i { display: block; height: 100%; border-radius: 9px; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, #1fae7a, #34d399); box-shadow: 0 0 16px rgba(52, 211, 153, 0.7); }
/* 8 : les six premiers éléments de mémoire */
.puce { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; transform-origin: 50% 50%; z-index: 2;
  background: color-mix(in srgb, var(--c) 22%, rgba(6, 10, 22, 0.96)); box-shadow: inset 0 0 0 1.5px var(--c), 0 0 22px 2px color-mix(in srgb, var(--c) 60%, transparent); }
.puce .ic { width: 22px; height: 22px; color: var(--c); }

/* =====================================================================
   Étape 8 : plus de fond papier. Les objets clairs (pages, dossier, clé) restent clairs ;
   ce qui était à l'encre sur le papier passe au trait clair, lisible sur noir.
   ===================================================================== */
svg .epingle { stroke: var(--glace); }
.pf-dossier .ic { color: var(--givre); }
.pf-t { color: var(--givre); }
.pf-pages i { background: #fffdf9; box-shadow: none; }
.cl-dos { box-shadow: inset 0 0 0 1.6px rgba(22, 27, 45, 0.55), 0 0 0 1.5px rgba(238, 244, 255, 0.5), 0 30px 60px -34px #000; }
.feuillet { box-shadow: 0 0 0 1.6px rgba(238, 244, 255, 0.55), 0 16px 30px -18px #000; }
.leg32, .mo-t, .ca-fn { color: var(--givre); }
.mo-c, .ca-c { box-shadow: inset 0 0 0 1.5px rgba(238, 244, 255, 0.4); }
.etiq::before { background: var(--vide); }
.etiq-prix { background: var(--glace); color: var(--vide); }
.molette .ic { color: var(--givre); }
.usb-corps, .usb-metal { stroke: #2a3550; }
.cn-livre { box-shadow: 0 0 0 3px #8e98ad, 0 20px 50px -20px #000; }

/* mouvement réduit, à l'ordinateur : la question et sa réaction, l'une sous l'autre, tiennent dans l'écran 11 */
@media (min-width: 821px) {
  .lent .ecran-question .question { font-size: calc(var(--fp, 80px) * 0.42); padding: 16px 28px 58px; }
  .lent .ecran-question .reaction { font-size: calc(var(--fp, 80px) * 0.62); }
}

/* téléphone : le bouton Réserver et le lien M'écrire, empilés au plus serré, finissent avant le haut du visuel */
@media (max-width: 820px) {
  .ecrire-flottant { top: 8px; }
  .ecrire-flottant .bouton-petit { height: 34px; }
  .ecrire-flottant .lien { padding: 0; line-height: 22px; border-bottom-color: transparent; }
}


/* =====================================================================
   Étape 9 : toute la hauteur à l'ordinateur, une phrase par ligne, l'en-tête du téléphone
   ===================================================================== */
/* à l'ordinateur, la phrase se centre dans la place qui reste sous l'image (plus de tiers vide en bas) */
@media (min-width: 821px) {
  .epingle .ecran:not(.ecran-un):not(.ecran-fin) { justify-content: center; }
  .lent .ecran:not(.ecran-un):not(.ecran-fin) { justify-content: center; }
}
/* téléphone : pendant le récit, le seul bouton Réserver, sur une ligne ; le lien M'écrire reste à l'accroche et au contact */
@media (max-width: 820px) {
  .ecrire-flottant { flex-direction: row; top: 12px; }
  .ecrire-flottant .lien { display: none; }
  .ecrire-flottant .bouton-petit { height: 38px; }
  .ecran-fin .condition { margin-top: 14px; }
}
.ecran-fin .condition { text-align: inherit; }

/* =====================================================================
   Étape 9 : le moment fort (écrans 11 à 13), repris de etape8/moment-fort, classes préfixées mf-
   ===================================================================== */
#toile-mf { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; z-index: 0; pointer-events: none; opacity: 0; }
.sans-js #toile-mf, .lent #toile-mf, .mf-sans-webgl #toile-mf { display: none; }
.mf { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.mf > * { position: absolute; left: 0; top: 0; }
.sans-js .mf { display: none; }
.mf-repli { display: none; width: 300px; height: auto; opacity: 0.85; mix-blend-mode: screen; -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent); mask-image: radial-gradient(closest-side, #000 72%, transparent); }
.mf-calque { width: 100%; height: 100%; overflow: visible; z-index: 4; }
.mf-fen {
  z-index: 3; border-radius: 22px; overflow: hidden; visibility: hidden; opacity: 0;
  background: linear-gradient(180deg, rgba(16, 22, 46, 0.86), rgba(7, 10, 24, 0.9));
  border: 1px solid rgba(206, 226, 255, 0.17);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.06),
    -18px 18px 60px -40px rgba(255, 61, 158, 0.55), 18px 22px 60px -40px rgba(47, 140, 255, 0.6);
  will-change: transform, width, height, opacity;
}
.mf-q { position: absolute; left: 22px; right: 72px; top: 0; font-size: 18px; line-height: 26px; font-weight: 500; color: var(--givre); letter-spacing: -0.005em; text-align: left; }
.mf-l { opacity: 0; }
.mf-l.vu { opacity: 1; }
.mf-curseur { display: inline-block; width: 2px; height: 20px; margin-left: 1px; vertical-align: -4px; background: var(--glace); opacity: var(--curseur, 0); }
.mf-envoi { position: absolute; right: 12px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--vide); background: rgba(238, 244, 255, 0.22); }
.mf-envoi svg { width: 20px; height: 20px; }
.mf-rep { position: absolute; left: 0; right: 0; list-style: none; padding: 0 22px 0 0; }
.mf-rep::before {
  content: ""; position: absolute; left: var(--fx, 34px); top: var(--f0, 20px); width: 1.5px; height: var(--fh, 200px); margin-left: -0.75px;
  background: linear-gradient(180deg, #ffb547, var(--rose) 36%, var(--bleu) 70%, #5fe3ff);
  transform-origin: top; transform: scaleY(var(--fil, 0)); opacity: 0.9; box-shadow: 0 0 10px rgba(185, 212, 245, 0.35);
}
.mf-pt { position: relative; padding-left: var(--gout, 60px); text-align: left; }
.mf-pt + .mf-pt { margin-top: var(--ecart, 18px); }
.mf-dot { position: absolute; left: var(--fx, 34px); top: 9px; width: 13px; height: 13px; margin-left: -6.5px; border-radius: 50%; background: var(--givre); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 30%, transparent), 0 0 16px 2px var(--c); transform: scale(var(--d, 0)); }
.mf-pt-t { display: block; font-size: var(--ft, 20px); line-height: 1.32; font-weight: 500; color: var(--givre); letter-spacing: -0.012em; clip-path: inset(-4px calc((1 - var(--m, 0)) * 100%) -4px 0); opacity: var(--mo, 0); }
.mf-pt-l { display: flex; align-items: center; gap: 12px; margin-top: 6px; min-height: 32px; opacity: var(--mo, 0); }
.mf-date { font-size: 18px; font-weight: 500; color: var(--brume); letter-spacing: -0.005em; }
.mf-pilule { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 13px 0 10px; border-radius: 999px; font-size: 18px; font-weight: 600; color: var(--givre); letter-spacing: -0.005em; background: color-mix(in srgb, var(--c) 14%, rgba(6, 10, 24, 0.9)); border: 1px solid color-mix(in srgb, var(--c) 60%, transparent); box-shadow: 0 0 18px -4px color-mix(in srgb, var(--c) 70%, transparent); opacity: var(--p, 0); transform: translateX(calc((1 - var(--p, 0)) * -12px)); }
.mf-pilule svg { width: 18px; height: 18px; color: var(--c); flex: none; }
.mf-docs > * { position: absolute; }
.mf-doc {
  left: 0; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 0 16px 0 12px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(18, 26, 54, 0.94), rgba(8, 12, 28, 0.96));
  border: 1px solid color-mix(in srgb, var(--c) 55%, rgba(206, 226, 255, 0.2));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03) inset, 0 0 30px -6px color-mix(in srgb, var(--c) 75%, transparent), 0 18px 40px -20px #000;
  transform-origin: 0 0; will-change: transform, opacity; visibility: hidden; opacity: 0; overflow: hidden;
}
.mf-doc-g { width: 34px; height: 40px; flex: none; color: var(--c); }
.mf-doc-t { display: flex; flex-direction: column; line-height: 1.2; text-align: left; white-space: nowrap; opacity: var(--t, 1); }
.mf-doc-l { font-size: 18px; font-weight: 650; color: var(--givre); letter-spacing: -0.01em; }
.mf-doc-d { font-size: 18px; font-weight: 450; color: var(--lecture); }
.mf-trainee { fill: none; stroke-linecap: round; }
.mf-attache { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.4; }
.mf-attache-h { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 4.5; }
/* au moment fort, la question et la réaction s'écrivent en clair (plus de barre de saisie : la fenêtre la tape) */
.epingle .ecran-question .qr { display: grid; justify-items: center; }
@media (max-width: 820px) {
  .mf-fen { border-radius: 18px; }
  .mf-q { left: 16px; right: 62px; }
  .mf-envoi { right: 10px; width: 40px; height: 40px; }
  .mf-doc { gap: 10px; padding: 0 12px 0 10px; border-radius: 14px; }
  .mf-doc-g { width: 28px; height: 34px; }
  .mf-attache { stroke-width: 1.25; }
  .mf-attache-h { stroke-width: 3.5; }
  .epingle .ecran-question .qr { justify-items: start; }
}
/* mouvement réduit : le moment fort, dans son état final, dans chaque écran */
.lent .theatre-fixe.mf { position: absolute; inset: 0; z-index: 0; }
.lent .mf-fixe .mf-fen, .lent .mf-fixe .mf-doc { transition: none; }

/* =====================================================================
   Étape 9 : les objets des écrans 14 à 24 et 27 à 29 (milieu.js)
   ===================================================================== */
.calque.milieu { z-index: 1; }
.m-fibre { stroke: #f5f8ff; stroke-width: 2; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(255, 61, 158, 0.9)) drop-shadow(0 0 14px rgba(47, 140, 255, 0.8)); }
.m-fibre-fine { stroke: rgba(255, 210, 236, 0.9); stroke-width: 7; filter: blur(4px); }
.m-fil19 { stroke: rgba(255, 228, 244, 0.95); stroke-width: 2; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(255, 61, 158, 0.9)); }
.m-fil20 { stroke-width: 2; stroke-linecap: round; filter: drop-shadow(0 0 5px currentColor); }
.m-voie27 { stroke: rgba(238, 244, 255, 0.85); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 2 8; }
.m-couloir { stroke: rgba(206, 226, 255, 0.4); stroke-width: 1.5; stroke-dasharray: 3 7; }
.m-aller { stroke: rgba(238, 244, 255, 0.55); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; }

/* 14 : la tasse, fine, et sa fumée qui monte en volutes */
.m-tasse svg { display: block; width: 100%; height: 100%; overflow: visible; }
.m-tasse-c { fill: none; stroke: var(--givre); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 4px rgba(185, 212, 245, 0.55)); }
.m-tasse-c.fin { stroke-width: 1.4; opacity: 0.85; }
.m-cafe { fill: #6b4226; stroke: #c08a5a; stroke-width: 1.2; }
.m-volute { fill: none; stroke: rgba(238, 244, 255, 0.8); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 0.45 0.55; stroke-dashoffset: 1; opacity: 0; filter: blur(0.3px) drop-shadow(0 0 3px rgba(238, 244, 255, 0.6)); animation: volute 3.4s cubic-bezier(0.4, 0, 0.6, 1) infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.m-volute.v2 { animation-delay: -1.15s; }
.m-volute.v3 { animation-delay: -2.3s; }
@keyframes volute {
  0% { stroke-dashoffset: 1; opacity: 0; transform: translateY(6px) scaleX(0.9); }
  25% { opacity: 0.9; }
  70% { opacity: 0.55; }
  100% { stroke-dashoffset: -0.6; opacity: 0; transform: translateY(-10px) scaleX(1.15); }
}
.lent .m-volute { animation: none; opacity: 0.7; stroke-dasharray: none; }
@media (prefers-reduced-motion: reduce) { .m-volute { animation: none; opacity: 0.7; stroke-dasharray: none; } }

/* la page du matin (14 et 23) */
.m-page { padding: 22px 26px 20px; border-radius: 16px; background: #eef3fb; color: #0c1630; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6), 0 40px 120px -20px rgba(47, 140, 255, 0.45), 0 0 80px -20px rgba(185, 212, 245, 0.5); }
.m-pg-tete { font-size: 18px; font-weight: 600; color: #4b6185; margin-bottom: 10px; }
.m-pg-rang { padding: 12px 0 12px; border-top: 1px solid rgba(12, 22, 48, 0.1); display: grid; gap: 9px; }
.m-pg-titre { font-size: 20px; font-weight: 700; letter-spacing: -0.015em; color: #0c1630; }
.m-pg-l { display: flex; align-items: center; gap: 10px; height: 22px; }
.m-pg-l i { display: block; height: 8px; border-radius: 4px; background: #c3d1e6; }
.m-pg-l .ic { width: 22px; height: 22px; color: #4b6185; }
.m-pg-rdv { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; color: #0c1630; letter-spacing: -0.01em; white-space: nowrap; }
.m-pg-rdv .ic { width: 22px; height: 22px; color: var(--c); filter: saturate(1.3) brightness(0.85); }
.m-pg-cases { position: relative; }
/* les trois choses du week-end : elles changent d'état, puis se rangent dans la page */
.m-carte { --range: 0; --e: 0; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 12px; border-radius: 12px; background: #fff; color: #0c1630; z-index: 3;
  box-shadow: 0 0 0 1px rgba(12, 22, 48, calc(0.08 + var(--range) * 0.04)), 0 calc((1 - var(--range)) * 18px) calc((1 - var(--range)) * 40px) -14px rgba(0, 0, 0, 0.7), 0 0 calc((1 - var(--range)) * 40px) -10px rgba(185, 212, 245, 0.8); }
.m-c-ic { width: 22px; height: 22px; color: #4b6185; }
.m-c-t { font-size: 18px; font-weight: 600; white-space: nowrap; letter-spacing: -0.01em; }
.m-etat { position: relative; margin-left: auto; height: 32px; min-width: 112px; overflow: hidden; }
/* étape 10 : la pastille « A répondu » entière à toutes les tailles (elle ne rétrécit plus) */
.m-c-client .m-etat { min-width: 142px; flex-shrink: 0; }
.m-e0, .m-e1 { position: absolute; right: 0; top: 0; height: 32px; display: inline-flex; align-items: center; gap: 6px; padding: 0 11px; border-radius: 999px; font-size: 18px; font-weight: 600; white-space: nowrap; }
.m-e0 { background: #e2e8f2; color: #4b6185; }
.m-e1 { color: #fff; }
.m-e1 .ic { width: 18px; height: 18px; }
.m-c-devis .m-e0 { opacity: calc(1 - var(--e)); transform: translateY(calc(var(--e) * -110%)); }
.m-c-devis .m-e1 { background: #1fae7a; opacity: var(--e); transform: translateY(calc((1 - var(--e)) * 110%)); }
.m-c-rdv .m-e0 { transform: translateX(calc(var(--e) * -120%)); opacity: calc(1 - var(--e)); }
.m-c-rdv .m-e1 { background: #d98a00; transform: translateX(calc((1 - var(--e)) * 120%)); }
.m-c-client .m-e0 { opacity: calc(1 - var(--e)); }
.m-c-client .m-e1 { background: var(--bleu); opacity: var(--e); clip-path: inset(0 0 0 calc((1 - var(--e)) * 100%) round 999px 999px 999px 4px); border-bottom-left-radius: 4px; }

/* 15, 16, 18 : la fenêtre de messagerie, le brouillon mot à mot */
.m-mail { border-radius: 18px; background: rgba(8, 13, 26, 0.96); box-shadow: inset 0 0 0 1px rgba(206, 226, 255, 0.22), 0 40px 90px -30px rgba(0, 0, 0, 0.9), 0 0 60px -30px rgba(120, 170, 255, 0.5); overflow: hidden; }
.m-barre { height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-bottom: 1px solid rgba(206, 226, 255, 0.08); }
.m-barre i { width: 10px; height: 10px; border-radius: 50%; background: rgba(206, 226, 255, 0.22); }
.m-brouillon { margin-left: auto; font-size: 18px; font-weight: 500; color: var(--brume); }
.m-champ { display: flex; align-items: center; gap: 12px; padding: 9px 18px; border-bottom: 1px solid rgba(206, 226, 255, 0.08); }
.m-a { font-size: 18px; color: var(--brume); }
.m-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 7px; border-radius: 999px; background: color-mix(in srgb, var(--c) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 60%, transparent); font-size: 18px; font-weight: 500; color: var(--givre); white-space: nowrap; }
.m-chip .ic { color: var(--c); width: 22px; height: 22px; }
.m-corps { display: grid; gap: 15px; padding: 20px 20px 22px; }
.m-ligne { --sel: 0; --s: 1; --rr: 0; display: flex; gap: 8px; height: 10px; align-items: center; }
.m-mot { display: block; width: var(--l); height: 9px; border-radius: 5px; background: rgba(238, 244, 255, 0.82); transform-origin: 0 50%; transform: scaleX(0); flex: none; }
.m-ecrit .m-mot { transform: scaleX(1); }
.m-cible { padding: 4px 6px; margin: -4px -6px; border-radius: 6px; background: rgba(255, 77, 109, calc(var(--sel) * 0.22)); }
.m-cible .m-mot { transform: scaleX(var(--s)); background: color-mix(in srgb, #ff4d6d calc(var(--sel) * 100%), color-mix(in srgb, var(--rose) calc(var(--rr) * 100%), rgba(238, 244, 255, 0.82))); box-shadow: 0 0 calc(var(--rr) * 12px) color-mix(in srgb, var(--rose) calc(var(--rr) * 70%), transparent); }
.m-pied { position: relative; display: flex; justify-content: flex-end; padding: 4px 16px 16px; }
.m-envoyer { --envoye: 0; position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; background: color-mix(in srgb, var(--bleu) calc(40% + var(--envoye) * 60%), rgba(20, 30, 54, 1)); color: #fff; font-size: 18px; font-weight: 600; transform-origin: 50% 50%; box-shadow: inset 0 0 0 1px rgba(206, 226, 255, 0.3), 0 0 calc(var(--envoye) * 30px) color-mix(in srgb, var(--bleu) 80%, transparent); }
.m-envoye { width: calc(var(--envoye) * 20px); height: 20px; opacity: var(--envoye); }
.m-onde { position: absolute; right: 16px; bottom: 16px; width: 132px; height: 44px; border-radius: 999px; box-shadow: 0 0 0 2px rgba(185, 212, 245, 0.8), 0 0 24px 4px rgba(47, 140, 255, 0.6); opacity: 0; transform-origin: 70% 50%; }

/* 16, 17 : « Mes règles », une ligne par règle retenue */
.m-regles { padding: 14px 18px 12px; border-radius: 12px; background: rgba(12, 18, 36, 0.94); box-shadow: inset 0 0 0 1px rgba(255, 140, 198, 0.4), 0 0 40px -16px rgba(255, 61, 158, 0.6); }
.m-rg-t { font-size: 18px; font-weight: 600; color: #ffd2ea; margin-bottom: 6px; }
.m-rg-l p { --l: 0; display: flex; align-items: center; gap: 10px; height: var(--lh, 18px); }
.m-rg-l b { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #fff; box-shadow: 0 0 8px 2px rgba(255, 61, 158, 0.85); opacity: var(--l); transform: scale(calc(0.4 + 0.6 * var(--l))); }
.m-rg-l i { display: block; height: 7px; border-radius: 4px; background: rgba(255, 214, 236, 0.75); transform-origin: 0 50%; transform: scaleX(var(--l)); }

/* les étoiles : de ce qu'il retient */
.m-etoile { width: 0; height: 0; z-index: 4; transform-origin: 0 0; }
.m-etoile i { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px;
  background:
    radial-gradient(circle, #fff 0 2.5px, rgba(255, 225, 242, 0.9) 3.5px, rgba(255, 61, 158, 0.45) 8px, rgba(255, 61, 158, 0) 18px),
    linear-gradient(90deg, transparent 0, rgba(255, 220, 240, 0) 10%, rgba(255, 230, 245, 0.95) 50%, rgba(255, 220, 240, 0) 90%, transparent 100%) center / 100% 1.5px no-repeat,
    linear-gradient(0deg, transparent 0, rgba(255, 220, 240, 0) 18%, rgba(255, 230, 245, 0.9) 50%, rgba(255, 220, 240, 0) 82%, transparent 100%) center / 1.5px 80% no-repeat;
  filter: drop-shadow(0 0 6px rgba(255, 61, 158, 0.8)); }
.m-etoile.votre i { background:
    radial-gradient(circle, #fff 0 2.5px, rgba(220, 255, 240, 0.9) 3.5px, rgba(52, 211, 153, 0.45) 8px, rgba(52, 211, 153, 0) 18px),
    linear-gradient(90deg, transparent 0, rgba(220, 255, 240, 0) 10%, rgba(225, 255, 245, 0.95) 50%, rgba(220, 255, 240, 0) 90%, transparent 100%) center / 100% 1.5px no-repeat,
    linear-gradient(0deg, transparent 0, rgba(220, 255, 240, 0) 18%, rgba(225, 255, 245, 0.9) 50%, rgba(220, 255, 240, 0) 82%, transparent 100%) center / 1.5px 80% no-repeat;
  filter: drop-shadow(0 0 6px rgba(52, 211, 153, 0.8)); }

/* 17, 24 : la frise des jours, qui défile */
.m-frise { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.m-fr-bande { display: flex; gap: 12px; height: 44px; align-items: center; will-change: transform; }
.m-frise-courte .m-fr-bande { justify-content: center; }
.m-fr-bande span { --fait: 0; flex: none; width: 112px; height: 38px; display: grid; place-items: center; border-radius: 999px; font-size: 18px; font-weight: 600; color: color-mix(in srgb, var(--givre) calc(40% + var(--fait) * 60%), transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #ff8cc6 calc(var(--fait) * 80%), rgba(206, 226, 255, 0.18)); background: color-mix(in srgb, var(--rose) calc(var(--fait) * 16%), transparent); }
.m-fr-bande span.en-cours { box-shadow: inset 0 0 0 1.5px #ffd2ea, 0 0 22px -2px rgba(255, 61, 158, 0.9); color: #fff; }
.m-frise-courte .m-fr-bande span { width: 96px; box-shadow: inset 0 0 0 1px color-mix(in srgb, #34d399 calc(var(--fait) * 80%), rgba(206, 226, 255, 0.18)); background: color-mix(in srgb, #34d399 calc(var(--fait) * 16%), transparent); }

/* 20 : ce qui entre dans le vôtre */
.m-pastille { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 9px; border-radius: 999px; white-space: nowrap; font-size: 18px; font-weight: 600; color: var(--givre); background: color-mix(in srgb, var(--c) 18%, rgba(6, 10, 22, 0.94)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 75%, transparent), 0 0 24px -4px color-mix(in srgb, var(--c) 60%, transparent); transform-origin: 50% 50%; z-index: 3; }
.m-pastille .ic { width: 22px; height: 22px; color: var(--c); }
.m-nom { transform-origin: 0 0; }

/* 21 : les interrupteurs */
.m-droits { padding: 20px 22px 10px; border-radius: 20px; background: rgba(10, 15, 30, 0.95); box-shadow: inset 0 0 0 1px rgba(206, 226, 255, 0.22), 0 40px 90px -30px rgba(0, 0, 0, 0.9); }
.m-dr-t { font-size: 20px; font-weight: 600; color: var(--givre); margin-bottom: 8px; }
.m-dr-l { --on: 0; display: flex; align-items: center; gap: 14px; height: 76px; border-top: 1px solid rgba(206, 226, 255, 0.09); }
.m-dr-ic { width: 26px; height: 26px; color: color-mix(in srgb, #6ee7b7 calc(var(--on) * 100%), var(--brume)); }
.m-dr-n { font-size: 22px; font-weight: 600; color: color-mix(in srgb, var(--givre) calc(60% + var(--on) * 40%), transparent); }
.m-inter { --on: 0; --h: 0; position: relative; margin-left: auto; width: 66px; height: 38px; border-radius: 999px; background: color-mix(in srgb, #1fae7a calc(var(--on) * 100%), rgba(120, 134, 160, 0.35)); box-shadow: inset 0 0 0 1px rgba(206, 226, 255, 0.25), 0 0 calc(var(--on) * 22px) -4px #1fae7a; }
.m-inter i { position: absolute; left: 4px; top: 4px; width: 30px; height: 30px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45); transform: translateX(calc((var(--on) + var(--h)) * 28px)); }

/* 22 : les quatre boîtes */
.m-src { --ouvert: 0; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 16px; background: color-mix(in srgb, var(--c) calc(var(--ouvert) * 12%), rgba(10, 15, 30, 0.95)); box-shadow: inset 0 0 0 calc(1px + var(--ouvert) * 1px) color-mix(in srgb, var(--c) calc(30% + var(--ouvert) * 60%), transparent), 0 0 calc(var(--ouvert) * 36px) -8px var(--c); }
.m-src-tete { display: flex; align-items: center; gap: 9px; font-size: 20px; font-weight: 600; color: var(--givre); }
.m-src-tete .ic { width: 24px; height: 24px; color: var(--c); }
.m-src-cad { margin-left: auto; width: 24px; height: 24px; color: var(--brume); }
.m-src-l { display: grid; gap: 9px; }
.m-src-l i { --lu: 0; display: block; height: 7px; border-radius: 4px; background: color-mix(in srgb, var(--c) calc(var(--lu) * 100%), rgba(206, 226, 255, 0.16)); box-shadow: 0 0 calc(var(--lu) * 10px) color-mix(in srgb, var(--c) 70%, transparent); }
.m-src-l i:nth-child(2) { width: 78%; }
.m-src-l i:nth-child(3) { width: 58%; }
.m-prive { background: rgba(6, 9, 18, 0.96); box-shadow: inset 0 0 0 1px rgba(129, 151, 182, 0.35); }
.m-prive .m-src-tete { color: var(--brume); }

/* 23 : la lune, l'aube */
.m-lune svg { display: block; width: 100%; height: 100%; overflow: visible; }
.lu-c { fill: #f4f1e6; filter: drop-shadow(0 0 10px rgba(244, 241, 230, 0.7)) drop-shadow(0 0 30px rgba(185, 212, 245, 0.5)); }
.m-aube { border-radius: 50%; background: radial-gradient(ellipse at 50% 100%, rgba(255, 186, 120, 0.5), rgba(255, 120, 150, 0.22) 38%, rgba(47, 100, 200, 0.12) 62%, rgba(47, 100, 200, 0) 75%); filter: blur(6px); }

/* 24 : ce qu'il a compris de vous */
.m-bulle { display: grid; gap: 8px; padding: 18px 20px 18px; border-radius: 20px; background: rgba(10, 16, 32, 0.95); box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.5), 0 0 40px -14px rgba(52, 211, 153, 0.6); transform-origin: 30% 0; }
.m-bulle::before { content: ""; position: absolute; left: 28%; top: -11px; width: 20px; height: 20px; background: inherit; box-shadow: inset 1px 1px 0 0 rgba(52, 211, 153, 0.5); transform: rotate(45deg); border-radius: 3px 0 0 0; }
.m-bulle p { --l: 0; position: relative; font-size: 19px; font-weight: 500; color: var(--givre); white-space: nowrap; opacity: var(--l); }
.m-b-cible { --barre: 0; --re: 0; }
.m-b-avant { opacity: calc(1 - var(--re)); }
.m-b-apres { position: absolute; left: 0; top: 0; color: #ffc2e1; text-shadow: 0 0 12px rgba(255, 61, 158, 0.7); opacity: var(--re); }
.m-b-barre { position: absolute; left: -4px; top: 52%; height: 2px; width: calc(var(--barre) * (100% + 8px)); background: #ff4d6d; opacity: calc(1 - var(--re)); }

/* 27 : les nuages d'IA, vos pages */
.m-nuage { --garde: 0; }
.m-nuage .nu-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.nu-fond { fill: rgba(150, 165, 190, calc(0.12 + var(--garde) * 0.1)); stroke: rgba(206, 226, 255, 0.75); stroke-width: 1.6; filter: drop-shadow(0 0 calc(10px + var(--garde) * 20px) rgba(185, 212, 245, 0.45)); }
.m-nu-t { position: absolute; left: 0; right: 0; bottom: 16%; text-align: center; font-size: 20px; font-weight: 600; color: var(--givre); white-space: nowrap; }
.m-nu-pages, .m-nu-vides { position: absolute; left: 30%; right: 30%; top: 34%; display: flex; justify-content: center; gap: 8px; opacity: 0; }
.m-nu-pages i { width: 22px; height: 28px; border-radius: 3px; background: rgba(238, 244, 255, 0.75); }
.m-nu-vides i { width: 22px; height: 28px; border-radius: 3px; border: 1.6px dashed rgba(238, 244, 255, 0.7); }
.m-nu-cad { position: absolute; left: 8%; bottom: 10%; width: 30px; height: 30px; color: #ffb547; opacity: 0; filter: drop-shadow(0 0 8px rgba(255, 181, 71, 0.8)); }
.m-nuage-b .nu-fond { fill: rgba(120, 140, 170, 0.08); stroke-dasharray: 5 5; }
.m-feuille { display: grid; align-content: start; gap: 6px; padding: 10px 8px; border-radius: 5px; background: #eef3fb; box-shadow: 0 10px 24px -12px #000, 0 0 30px -8px rgba(185, 212, 245, 0.6); }
.m-feuille i { display: block; height: 5px; border-radius: 3px; background: #a9b8d0; }
.m-feuille i:nth-child(2) { width: 80%; }
.m-feuille i:nth-child(3) { width: 60%; }
.m-leg { font-size: 18px; font-weight: 600; color: var(--lecture); white-space: nowrap; }

/* 28, 29 : le moteur loué, la course, vos pages chez vous */
.m-moteur { --c: #b9d4f5; --flash: 0; display: grid; place-items: center; border-radius: 999px; font-size: 20px; font-weight: 600; color: #fff; white-space: nowrap;
  background: color-mix(in srgb, var(--bleu) 62%, #050915);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4), 0 0 calc(30px + var(--flash) * 40px) rgba(120, 175, 255, calc(0.6 + var(--flash) * 0.4)); }
.m-moteur.m-course { background: color-mix(in srgb, var(--c) 55%, #050915); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), 0 0 26px -4px var(--c); }
.m-lueur { border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(150, 195, 255, 0.5) 30%, rgba(80, 150, 255, 0) 70%); }
.m-etagere { --garde: 0; display: grid; gap: 10px; justify-items: center; padding: 16px 18px 12px; border-radius: 18px; background: rgba(8, 13, 26, 0.9); box-shadow: inset 0 0 0 1px color-mix(in srgb, #34d399 calc(30% + var(--garde) * 60%), transparent), 0 0 calc(var(--garde) * 40px) -10px #34d399; }
.m-et-pages { display: flex; gap: 14px; }
.m-et-pages i { display: grid; align-content: start; gap: 7px; width: 82px; height: 96px; padding: 12px 10px; border-radius: 6px; background: #eef3fb; box-shadow: 0 10px 24px -12px #000; }
.m-et-pages b { display: block; height: 6px; border-radius: 3px; background: #a9b8d0; }
.m-et-pages b:nth-child(2) { width: 78%; }
.m-et-pages b:nth-child(3) { width: 56%; }
.m-et-t { font-size: 18px; font-weight: 600; color: #a7f3d0; }
.m-va { width: 26px; height: 32px; z-index: 4; }
.m-va svg { display: block; width: 100%; height: 100%; fill: rgba(238, 244, 255, 0.95); stroke: #0c1630; stroke-width: 1.4; stroke-linejoin: round; filter: drop-shadow(0 0 8px rgba(238, 244, 255, 0.8)); }
.m-va-retour { width: 30px; height: 30px; color: #fff; }
.m-va-retour .ic { width: 30px; height: 30px; filter: drop-shadow(0 0 8px rgba(150, 190, 255, 0.95)); }
.m-souris { z-index: 7; }

/* la page du matin, serrée, tient dans la zone du visuel (téléphone et ordinateur) */
.m-page { padding: 16px 18px 10px; }
.m-pg-rang { padding: 8px 0; gap: 7px; }
.m-carte { height: 44px; }
@media (max-width: 820px) {
  .m-page { padding: 14px 14px 10px; }
  .m-pg-rang { gap: 6px; }
  .m-pg-titre { font-size: 19px; }
  .m-carte { height: 42px; padding: 0 10px; gap: 8px; }
  .m-etat { min-width: 0; width: 104px; }
  .m-c-client .m-etat { min-width: 0; width: 134px; flex-shrink: 0; }
  .m-e0, .m-e1 { padding: 0 9px; height: 30px; }
  .m-etat { height: 30px; }
}
.m-pg-rang:first-child { border-top: 0; padding-top: 0; }

/* les objets du théâtre restent hors du flux (la clé USB était en position relative) */
.obj.usb { position: absolute; }

/* mouvement réduit : le moment fort descend jusqu'à la phrase, sans voile sombre par-dessus sa réponse */
.lent .ecran[data-n="14"]::before, .lent .ecran[data-n="15"]::before, .lent .ecran[data-n="16"]::before { display: none; }

/* ================= Étape 10 (28/11/2026) : les écrans neufs (neufs.js) ================= */
/* 8 : le teaser, « Ça vous dirait ? » mis en avant */
.ecran-teaser .fort { display: inline-block; margin-top: 0.12em; font-size: 1.24em; font-weight: 700; color: #fff; text-shadow: 0 0 28px rgba(255, 61, 158, 0.45), 0 0 46px rgba(47, 140, 255, 0.35); }
.ecran-teaser .pt3 { display: inline; }
.calque.neufs { z-index: 1; }
.calque.neufs-dessus { z-index: 6; }
/* 11 : les fiches de méthode, couleur d'or ; le process ; ce qui se grave */
.n-fiche { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 14px; font-size: 18px; font-weight: 600; color: #fff6e3; white-space: nowrap; transform-origin: 50% 50%; z-index: 3;
  background: rgba(40, 28, 6, 0.92); box-shadow: inset 0 0 0 1.5px rgba(255, 196, 92, 0.85), 0 0 28px -6px rgba(255, 196, 92, 0.7); }
.n-fiche .ic { width: 24px; height: 24px; flex: none; color: #ffc45c; }
.n-process { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 12px; border-radius: 16px; transform-origin: 50% 50%; z-index: 3;
  background: rgba(30, 22, 6, 0.92); box-shadow: inset 0 0 0 1.5px rgba(255, 196, 92, 0.6), 0 0 30px -8px rgba(255, 196, 92, 0.6); }
.n-pr-e { --on: 0; padding: 5px 11px; border-radius: 999px; font-size: 18px; font-weight: 600; white-space: nowrap; color: color-mix(in srgb, #fff6e3 calc(45% + var(--on) * 55%), transparent);
  background: color-mix(in srgb, #ffc45c calc(var(--on) * 28%), transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, #ffc45c calc(25% + var(--on) * 70%), transparent), 0 0 calc(var(--on) * 18px) -4px #ffc45c; }
.n-pr-f { --on: 0; display: grid; place-items: center; width: 22px; color: color-mix(in srgb, #ffc45c calc(30% + var(--on) * 70%), transparent); }
.n-pr-f .ic { width: 20px; height: 20px; }
.n-grave { --gris: 0; width: 0; height: 0; z-index: 4; }
.n-grave i { position: absolute; left: -20px; top: -20px; width: 40px; height: 40px; filter: grayscale(var(--gris)) drop-shadow(0 0 6px rgba(255, 196, 92, 0.85));
  background:
    radial-gradient(circle, #fff 0 2.4px, rgba(255, 236, 196, 0.95) 3.4px, rgba(255, 196, 92, 0.5) 8px, rgba(255, 196, 92, 0) 17px),
    linear-gradient(90deg, transparent 0, rgba(255, 230, 180, 0) 12%, rgba(255, 236, 200, 0.95) 50%, rgba(255, 230, 180, 0) 88%, transparent 100%) center / 100% 1.5px no-repeat,
    linear-gradient(0deg, transparent 0, rgba(255, 230, 180, 0) 18%, rgba(255, 236, 200, 0.9) 50%, rgba(255, 230, 180, 0) 82%, transparent 100%) center / 1.5px 80% no-repeat; }
.n-circuit { stroke: #ffd98f; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 5px rgba(255, 196, 92, 0.9)); }
/* 12 : les outils, branchés un par un */
.n-outil { --on: 0; --e: 0; display: flex; align-items: center; gap: 12px; padding: 0 14px; border-radius: 14px; z-index: 3;
  background: color-mix(in srgb, #5fe3ff calc(var(--on) * 10%), rgba(8, 13, 26, 0.94));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #5fe3ff calc(18% + var(--on) * 62%), transparent), 0 0 calc(var(--on) * 30px) -8px #5fe3ff; }
.n-o-ic { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; color: color-mix(in srgb, #5fe3ff calc(40% + var(--on) * 60%), #8197b6); background: rgba(95, 227, 255, calc(0.06 + var(--on) * 0.14)); }
.n-o-ic .ic { width: 22px; height: 22px; }
.n-o-t { font-size: 19px; font-weight: 600; color: color-mix(in srgb, var(--givre) calc(55% + var(--on) * 45%), transparent); white-space: nowrap; }
.n-o-e { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 18px; font-weight: 600; white-space: nowrap; color: #04202a;
  background: #8ff0ff; opacity: var(--e); transform: scale(calc(0.86 + 0.14 * var(--e))); transform-origin: 100% 50%; }
.n-o-e .ic { width: 18px; height: 18px; }
.n-fibre-o { stroke: #e6fbff; stroke-width: 2; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(95, 227, 255, 0.95)); }
.n-fibre-of { stroke: rgba(95, 227, 255, 0.7); stroke-width: 7; filter: blur(4px); }
/* 13 : les trois lumières */
.n-orbe { --on: 1; display: grid; place-items: center; border-radius: 50%; color: #fff; z-index: 3; }
.n-orbe-l { position: absolute; inset: 0; border-radius: 50%; opacity: calc(0.12 + 0.88 * var(--on));
  background: radial-gradient(circle, #fff 0 12%, color-mix(in srgb, var(--c) 85%, #fff) 30%, color-mix(in srgb, var(--c) 40%, transparent) 62%, transparent 72%);
  box-shadow: 0 0 calc(10px + var(--on) * 34px) calc(var(--on) * 4px) color-mix(in srgb, var(--c) calc(var(--on) * 70%), transparent); }
.n-orbe .ic { position: relative; width: 26px; height: 26px; color: #10131f; opacity: calc(0.35 + 0.65 * var(--on)); }
.n-flux { stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 6px currentColor); }
/* 31 à 35 : chez vous */
.n-dossier { --lu: 0; z-index: 2; border-radius: 6px 16px 16px 16px; background: rgba(9, 15, 30, 0.94);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, #34d399 calc(45% + var(--lu) * 55%), transparent), 0 0 calc(18px + var(--lu) * 34px) -10px #34d399; }
.n-d-onglet { position: absolute; left: 0; top: -30px; height: 31px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px 0 10px; border-radius: 10px 10px 0 0; font-size: 18px; font-weight: 600; color: #a7f3d0;
  background: rgba(9, 15, 30, 0.94); box-shadow: inset 0 1.5px 0 0 rgba(52, 211, 153, 0.6), inset 1.5px 0 0 0 rgba(52, 211, 153, 0.6), inset -1.5px 0 0 0 rgba(52, 211, 153, 0.6); }
.n-d-onglet .ic { width: 20px; height: 20px; color: #34d399; }
.n-d-pile { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); display: flex; justify-content: center; gap: 18px; }
.n-pi { --vu: 0; display: grid; align-content: start; gap: 5px; width: 40px; height: 50px; padding: 8px 6px; border-radius: 4px; background: #eef3fb; opacity: var(--vu); transform: scale(calc(0.7 + 0.3 * var(--vu))); box-shadow: 0 6px 16px -8px #000; }
.n-pi b { display: block; height: 4px; border-radius: 2px; background: #a9b8d0; }
.n-pi b:nth-child(2) { width: 76%; } .n-pi b:nth-child(3) { width: 56%; }
.n-pi-or { background: #ffe7b3; } .n-pi-or b { background: #c9962e; }
.n-bulle { --m: 0; display: grid; align-content: center; gap: 8px; padding: 12px 14px; z-index: 4; transform-origin: 50% 50%;
  border-radius: calc(20px - var(--m) * 14px); background: color-mix(in srgb, #eef3fb calc(var(--m) * 100%), rgba(255, 61, 158, 0.16));
  box-shadow: inset 0 0 0 calc((1 - var(--m)) * 1.5px) rgba(255, 140, 198, 0.85), 0 0 30px -8px rgba(255, 140, 198, calc(0.8 - var(--m) * 0.5)); }
.n-bulle::after { content: ""; position: absolute; left: 22px; bottom: -12px; width: 18px; height: 14px; background: rgba(255, 61, 158, 0.16); clip-path: polygon(0 0, 100% 0, 0 100%); box-shadow: inset 1.5px 0 0 rgba(255, 140, 198, 0.85); opacity: calc(1 - var(--m) * 2); }
.n-bulle i { display: block; height: 7px; border-radius: 4px; background: color-mix(in srgb, #a9b8d0 calc(var(--m) * 100%), rgba(255, 214, 236, 0.85)); }
.n-bulle i:nth-child(2) { width: 82%; } .n-bulle i:nth-child(3) { width: 58%; }
.n-lien { stroke: rgba(185, 212, 245, 0.55); stroke-width: 1.6; stroke-dasharray: 0.02 0.02; }
/* le moteur de lumière, sans marque */
.n-moteur { --on: 0.3; z-index: 3; }
.n-mo-svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 calc(4px + var(--on) * 20px) rgba(150, 205, 255, calc(0.3 + var(--on) * 0.6))); }
.n-mo-halo { fill: rgba(120, 180, 255, calc(0.04 + var(--on) * 0.2)); }
.n-mo-anneau { fill: none; stroke: color-mix(in srgb, #ffffff calc(35% + var(--on) * 65%), #5a6f92); stroke-width: 2.4; }
.n-mo-pales path { fill: none; stroke: color-mix(in srgb, #bfe6ff calc(30% + var(--on) * 70%), #3f5375); stroke-width: 5; stroke-linecap: round; }
.n-mo-coeur { fill: color-mix(in srgb, #ffffff calc(30% + var(--on) * 70%), #34486b); }
/* 33 : la course, quatre couloirs */
.n-piste { --dec: 0px; z-index: 1; }
.n-piste i { position: absolute; inset: 0; border-radius: 2px; background: repeating-linear-gradient(90deg, rgba(206, 226, 255, 0.34) 0 26px, transparent 26px 48px); background-position: var(--dec) 0; }
.n-coureur { display: flex; align-items: center; gap: 12px; padding: 0 16px; border-radius: 999px; z-index: 3; background: rgba(12, 18, 34, 0.94); box-shadow: inset 0 0 0 1px rgba(238, 244, 255, 0.32), 0 0 24px -8px rgba(185, 212, 245, 0.6); }
.n-logo { width: 30px; height: 30px; flex: none; filter: brightness(0) invert(1); }
.n-coureur span { font-size: 19px; font-weight: 600; color: #fff; white-space: nowrap; }
/* 34 : ce qui entre chez vous */
.n-feuille { display: grid; align-content: start; gap: 6px; padding: 10px 8px; border-radius: 5px; background: #eef3fb; z-index: 3; transform-origin: 50% 100%; box-shadow: 0 10px 20px -10px #000; }
.n-feuille i { display: block; height: 5px; border-radius: 3px; background: #a9b8d0; }
.n-feuille i:nth-child(2) { width: 78%; } .n-feuille i:nth-child(3) { width: 56%; }
.n-feuille-or { background: #ffe7b3; box-shadow: 0 10px 20px -10px #000, 0 0 22px -6px rgba(255, 196, 92, 0.8); } .n-feuille-or i { background: #c9962e; }
/* 35 : la prise */
.n-cable { stroke: #eef4ff; stroke-width: 2.6; stroke-linecap: round; filter: drop-shadow(0 0 5px rgba(150, 205, 255, 0.8)); }
.n-prise { z-index: 4; }
.n-prise svg { display: block; width: 100%; height: 100%; overflow: visible; }
.n-pr-corps { fill: #dfe8f6; stroke: #eef4ff; stroke-width: 1.4; }
.n-pr-broche { stroke: #eef4ff; stroke-width: 2.6; stroke-linecap: round; }
.n-pr-fil { stroke: #eef4ff; stroke-width: 2.6; }
@media (max-width: 820px) {
  .n-o-e .ic { display: none; }
  .n-outil { gap: 10px; padding: 0 10px; }
  .n-o-t { font-size: 18px; }
  .n-coureur { padding: 0 14px; gap: 10px; }
  .n-coureur span { font-size: 18px; }
  .n-logo { width: 26px; height: 26px; }
  .n-pr-e { padding: 4px 9px; }
}

/* ================= Étape 11 (28/11/2026) : la fin (fin.js), écrans 38 à 43 ================= */
.calque.fin { z-index: 1; }
.calque.fin-dessus { z-index: 6; }
/* 38 (étape 12) : le portrait détouré, debout dans la nuit, éclairé en contre-jour. Calques, du fond vers l'avant :
   l'air qui s'éclaire (rose à gauche, bleu à droite), la lumière de contre-jour (la silhouette en couleur, floue et un peu
   plus grande, qui déborde du contour), le liseré (la même, presque nette), la photo (sans aucun filtre), son ombre (la
   silhouette en noir, qui s'efface pour la révéler). Le bas du buste se fond dans la nuit, sous le menton. */
.f-portrait { --air: 0; --air-s: 1; --contre: 0; --ombre: 0; z-index: 2; }
.f-corps { position: absolute; inset: 0;
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 79%, rgba(0, 0, 0, 0.35) 91%, rgba(0, 0, 0, 0) 99%);
  mask-image: linear-gradient(180deg, #000 0, #000 79%, rgba(0, 0, 0, 0.35) 91%, rgba(0, 0, 0, 0) 99%); }
.f-air { position: absolute; left: -30%; right: -30%; top: -6%; bottom: -4%; opacity: var(--air); transform: scale(var(--air-s)); transform-origin: 50% 60%; pointer-events: none;
  background:
    radial-gradient(closest-side at 38% 52%, rgba(255, 61, 158, 0.22), rgba(255, 61, 158, 0.08) 50%, rgba(255, 61, 158, 0) 100%),
    radial-gradient(closest-side at 62% 52%, rgba(47, 140, 255, 0.24), rgba(47, 140, 255, 0.08) 50%, rgba(47, 140, 255, 0) 100%); }
.f-contre { position: absolute; inset: 0; opacity: var(--contre); pointer-events: none; }
.f-contre i { position: absolute; inset: 0;
  background: linear-gradient(90deg, #ff3d9e 0%, rgba(255, 111, 176, 0.95) 28%, rgba(255, 196, 226, 0.4) 46%, rgba(200, 222, 255, 0.4) 54%, rgba(90, 157, 255, 0.95) 72%, #2f8cff 100%);
  -webkit-mask: url(images/jonathan-detoure.png) center / 100% 100% no-repeat; mask: url(images/jonathan-detoure.png) center / 100% 100% no-repeat; }
.f-contre-large { filter: blur(calc(var(--s38, 600px) * 0.02)); transform: translateY(-0.6%) scale(1.022); }
.f-contre-large i { opacity: 0.8; }
.f-contre-fin { filter: blur(1.5px); transform: translateY(-0.35%) scale(1.006); }
.f-contre-fin i { opacity: 0.7; }
.f-pose { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.f-ombre { position: absolute; inset: 0; opacity: var(--ombre); pointer-events: none; background: #010208;
  -webkit-mask: url(images/jonathan-detoure.png) center / 100% 100% no-repeat; mask: url(images/jonathan-detoure.png) center / 100% 100% no-repeat; }
/* 39 : la constellation du parcours */
.f-fil { stroke: #ff6fb0; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 5px rgba(255, 61, 158, 0.95)) drop-shadow(0 0 14px rgba(255, 61, 158, 0.55)); }
.f-fil-halo { stroke: rgba(255, 61, 158, 0.42); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; filter: blur(6px); }
.f-fil-queue { stroke-dasharray: none; }
.f-lien { stroke: rgba(206, 226, 255, 0.62); stroke-width: 1.3; stroke-linecap: round; filter: drop-shadow(0 0 3px rgba(185, 212, 245, 0.6)); }
.f-etoile { --f: 0; width: 0; height: 0; z-index: 3; }
.f-etoile i { position: absolute; left: -24px; top: -24px; width: 48px; height: 48px; transform: scale(calc(1 + 0.7 * var(--f)));
  background:
    radial-gradient(circle, #fff 0 3px, rgba(225, 238, 255, 0.95) 4.2px, rgba(140, 190, 255, 0.5) 9px, rgba(140, 190, 255, 0) 20px),
    linear-gradient(90deg, transparent 0, rgba(220, 235, 255, 0) 10%, rgba(235, 244, 255, 0.95) 50%, rgba(220, 235, 255, 0) 90%, transparent 100%) center / 100% 1.5px no-repeat,
    linear-gradient(0deg, transparent 0, rgba(220, 235, 255, 0) 18%, rgba(235, 244, 255, 0.9) 50%, rgba(220, 235, 255, 0) 82%, transparent 100%) center / 1.5px 76% no-repeat; }
.f-etoile-rose i { background:
    radial-gradient(circle, #fff 0 3px, rgba(255, 210, 232, 0.95) 4.2px, rgba(255, 61, 158, 0.55) 9px, rgba(255, 61, 158, 0) 20px),
    linear-gradient(90deg, transparent 0, rgba(255, 200, 225, 0) 10%, rgba(255, 220, 238, 0.95) 50%, rgba(255, 200, 225, 0) 90%, transparent 100%) center / 100% 1.5px no-repeat,
    linear-gradient(0deg, transparent 0, rgba(255, 200, 225, 0) 18%, rgba(255, 220, 238, 0.9) 50%, rgba(255, 200, 225, 0) 82%, transparent 100%) center / 1.5px 76% no-repeat; }
.f-etoile-fort i { left: -38px; top: -38px; width: 76px; height: 76px; filter: drop-shadow(0 0 8px rgba(190, 220, 255, 0.9));
  background:
    radial-gradient(circle, #fff 0 4.6px, rgba(240, 246, 255, 0.98) 6.4px, rgba(160, 205, 255, 0.6) 13px, rgba(255, 140, 198, 0.22) 22px, rgba(160, 205, 255, 0) 34px),
    linear-gradient(90deg, transparent 0, rgba(220, 235, 255, 0) 6%, #fff 50%, rgba(220, 235, 255, 0) 94%, transparent 100%) center / 100% 2px no-repeat,
    linear-gradient(0deg, transparent 0, rgba(220, 235, 255, 0) 10%, #fff 50%, rgba(220, 235, 255, 0) 90%, transparent 100%) center / 2px 90% no-repeat; }
.f-lib { z-index: 3; font-size: 20px; font-weight: 600; line-height: 1.22; letter-spacing: -0.005em; color: var(--givre); text-shadow: 0 1px 12px rgba(1, 2, 8, 0.9); }
.f-lib-rose { color: #ffa6cf; }
.f-lib-fort { color: #fff; font-weight: 700; text-shadow: 0 0 18px rgba(160, 205, 255, 0.55), 0 1px 12px rgba(1, 2, 8, 0.9); }
/* 40 : la tête, les six sujets du matin, la baguette de lumière */
.f-sujet { --on: 0.35; display: grid; place-items: center; border-radius: 50%; z-index: 3; transform-origin: 0 0;
  background: color-mix(in srgb, var(--c) calc(12% + var(--on) * 22%), rgba(8, 13, 26, 0.95));
  box-shadow: inset 0 0 0 calc(1.5px + var(--on) * 1px) color-mix(in srgb, var(--c) calc(45% + var(--on) * 55%), transparent), 0 0 calc(10px + var(--on) * 34px) calc(-8px + var(--on) * 6px) var(--c); }
.f-sujet .ic { width: 28px; height: 28px; color: color-mix(in srgb, var(--c) calc(55% + var(--on) * 45%), #ffffff); }
.f-baguette { stroke: #fff; stroke-width: 1.8; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 10px rgba(185, 212, 245, 0.75)); }
/* 41 : l'onde du dossier */
.f-dossier .n-pi { opacity: 1; transform: none; }
.f-onde { fill: none; stroke: #6ee7b7; stroke-width: 2; filter: drop-shadow(0 0 6px rgba(52, 211, 153, 0.9)); }
/* 42 : l'immeuble, la porte fermée, la lueur sur le seuil */
.f-immeuble { z-index: 2; }
.f-immeuble svg { display: block; overflow: visible; }
.f-im-trait { fill: rgba(9, 15, 30, 0.6); stroke: var(--glace); stroke-width: 2.2; stroke-linejoin: round; stroke-dasharray: 1 1; filter: drop-shadow(0 0 5px rgba(185, 212, 245, 0.55)); }
.f-im-fen rect { fill: rgba(120, 175, 255, 0.07); stroke: rgba(206, 226, 255, 0.4); stroke-width: 1.4; }
.f-im-fen rect.f-allume { fill: rgba(255, 206, 130, 0.16); stroke: rgba(255, 222, 165, 0.6); filter: drop-shadow(0 0 5px rgba(255, 196, 92, 0.4)); }
.f-im-porte { fill: rgba(4, 7, 16, 0.98); stroke: var(--givre); stroke-width: 2.2; }
.f-im-porte-l { stroke: rgba(238, 244, 255, 0.7); stroke-width: 1.6; }
.f-im-poignee { fill: var(--givre); }
.f-im-seuil { stroke: var(--givre); stroke-width: 3; stroke-linecap: round; }
.f-sol { stroke: rgba(206, 226, 255, 0.32); stroke-width: 1.5; stroke-linecap: round; }
.f-lueur { width: 0; height: 0; z-index: 4; transform-origin: 0 0; }
.f-lueur i { position: absolute; left: -20px; top: -20px; width: 40px; height: 40px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 3.5px, rgba(255, 214, 236, 0.95) 5.5px, rgba(255, 61, 158, 0.5) 11px, rgba(255, 61, 158, 0) 20px); }
@media (max-width: 820px) {
  .f-lib { font-size: 18px; }
  .f-sujet .ic { width: 24px; height: 24px; }
}
