/* Le site de ShortCut. Un seul univers : des tuiles douces et arrondies sur un fond lilas, un violet réservé à l'action,
   et des modules qui montrent le montage en train de se faire. Choisi par Fantin le 6 octobre 2026 (voir DESIGN.md). */

@font-face { font-family: "Bricolage Grotesque"; font-weight: 600; font-display: swap; src: url("/fonts/bricolage-grotesque/files/bricolage-grotesque-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-display: swap; src: url("/fonts/bricolage-grotesque/files/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: Figtree; font-weight: 400; font-display: swap; src: url("/fonts/figtree/files/figtree-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: Figtree; font-weight: 500; font-display: swap; src: url("/fonts/figtree/files/figtree-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: Figtree; font-weight: 600; font-display: swap; src: url("/fonts/figtree/files/figtree-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: Figtree; font-weight: 700; font-display: swap; src: url("/fonts/figtree/files/figtree-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-weight: 900; font-display: swap; src: url("/fonts/big-shoulders-display/files/big-shoulders-display-latin-900-normal.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --fond: oklch(0.953 0.022 300);          /* le lilas clair de toutes les pages */
  --creux: oklch(0.925 0.034 300);         /* un ton plus soutenu : champs, pistes vides */
  --carte: #fff;
  --encre: oklch(0.25 0.06 300);
  --doux: oklch(0.44 0.05 300);            /* texte secondaire, teinté */
  --trait: oklch(0.88 0.03 300);
  --violet: oklch(0.5 0.21 292);           /* réservé à l'action et à ce qui est choisi */
  --violet-appui: oklch(0.43 0.2 292);
  --sur-violet: #fff;
  --lilas: oklch(0.9 0.06 300);
  --menthe: oklch(0.91 0.07 165);
  --dragee: oklch(0.92 0.05 350);
  --ciel: oklch(0.92 0.045 235);
  --menthe-vif: oklch(0.7 0.13 165);
  --dragee-vif: oklch(0.68 0.17 350);
  --ciel-vif: oklch(0.68 0.12 240);
  --alerte: oklch(0.5 0.19 18);
  --alerte-fond: oklch(0.94 0.035 18);
  --rayon: 1.75rem;
  --rayon-moyen: 1.1rem;
  --rayon-petit: 0.7rem;
  --titre: "Bricolage Grotesque", system-ui, sans-serif;
  --texte: Figtree, system-ui, sans-serif;
  --marque: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --sortie: cubic-bezier(0.16, 1, 0.3, 1);
  --marge: clamp(1.25rem, 5vw, 4.5rem);
  --large: 80rem;
  --bord: max(var(--marge), calc((100vw - var(--large)) / 2));
  --ombre: 0 1.2rem 2.4rem -1.6rem oklch(0.3 0.08 300 / 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--encre); font: 400 1.0625rem/1.55 var(--texte); -webkit-font-smoothing: antialiased; caret-color: var(--violet); accent-color: var(--violet); }
::selection { background: var(--violet); color: var(--sur-violet); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 0.09em; }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
svg { fill: none; }

.evitement { position: absolute; left: 1rem; top: -4rem; z-index: 20; padding: 0.6rem 1rem; border-radius: 999px; background: var(--encre); color: var(--carte); }
.evitement:focus { top: 1rem; }

/* ---------- Boutons ---------- */
/* Le bouton principal : une pilule violette, la flèche dans son rond blanc. */
.bouton { display: inline-flex; align-items: center; gap: 0.8em; padding: 0.45em 0.45em 0.45em 1.35em; border: 0; border-radius: 999px; background: var(--violet); color: var(--sur-violet); font: 700 1rem/1.15 var(--texte); text-decoration: none; cursor: pointer; box-shadow: 0 1rem 1.8rem -0.9rem oklch(0.5 0.21 292 / 0.75); transition: translate 0.25s var(--sortie), box-shadow 0.25s var(--sortie), background-color 0.2s var(--sortie); }
.bouton-rond { display: grid; place-items: center; flex: none; width: 2.4em; height: 2.4em; border-radius: 50%; background: var(--sur-violet); color: var(--violet); }
.bouton-rond svg { width: 1.2em; height: 1.2em; transition: translate 0.3s var(--sortie); }
.bouton:hover { translate: 0 -2px; background: var(--violet-appui); box-shadow: 0 1.3rem 2.2rem -0.9rem oklch(0.5 0.21 292 / 0.85); }
.bouton:hover .bouton-rond svg { translate: 0.2em 0; }
.bouton:active { translate: 0 1px; }
.bouton:focus-visible { outline-color: var(--encre); outline-offset: 4px; }
.bouton:disabled { opacity: 0.55; cursor: default; translate: none; box-shadow: none; }
.bouton-grand { font-size: clamp(1.05rem, 1.25vw, 1.2rem); padding-left: 1.5em; }
.bouton-grand .bouton-rond { width: 2.5em; height: 2.5em; }
.bouton-clair { background: var(--carte); color: var(--violet); box-shadow: 0 1rem 1.8rem -1rem oklch(0.2 0.1 292 / 0.8); }
.bouton-clair .bouton-rond { background: var(--violet); color: var(--sur-violet); }
.bouton-clair:hover { background: var(--carte); box-shadow: 0 1.3rem 2.2rem -1rem oklch(0.2 0.1 292 / 0.9); }
.bouton-petit { display: inline-flex; align-items: center; padding: 0.68em 1.15em; border-radius: 999px; background: var(--encre); color: var(--carte); font: 600 0.92rem/1.1 var(--texte); text-decoration: none; transition: background-color 0.2s var(--sortie); }
.bouton-petit:hover { background: var(--violet); }
.outil { display: grid; place-items: center; flex: none; width: 2.5rem; height: 2.5rem; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--doux); cursor: pointer; transition: background-color 0.2s var(--sortie), color 0.2s var(--sortie); }
.outil:hover { background: var(--fond); color: var(--encre); }
.outil svg { width: 1.25rem; height: 1.25rem; }
.outil .si-pause, body.en-pause .outil .si-joue { display: none; }
body.en-pause .outil .si-pause { display: block; }

/* ---------- Barre ---------- */
/* La page glisse sous la barre et disparaît derrière elle : un bandeau du fond couvre ce qui dépasserait au-dessus. */
body::before { content: ""; position: fixed; inset: 0 0 auto; z-index: 9; height: 2.4rem; background: var(--fond); pointer-events: none; }
.barre { position: sticky; top: 0.75rem; z-index: 10; display: flex; align-items: center; gap: 0.5rem; margin: 0.75rem var(--bord) 0; padding: 0.5rem 0.6rem 0.5rem 1.4rem; border-radius: 999px; background: var(--carte); box-shadow: 0 0.6rem 1.6rem -1rem rgb(0 0 0 / 0.22); }
.marque { display: inline-flex; align-items: center; font: 900 1.85rem/1 var(--marque); text-transform: uppercase; letter-spacing: 0.005em; text-decoration: none; }
.marque-coupe { width: 0.15em; height: 1.02em; margin: 0 0.09em; background: var(--violet); rotate: 18deg; }
.barre-liens { display: flex; gap: 1.75rem; margin: 0 1.25rem 0 auto; font-weight: 500; font-size: 0.95rem; }
.barre-liens a { padding: 0.3rem 0; text-decoration: none; text-underline-offset: 0.35em; }
.barre-liens a:hover { text-decoration: underline; }
.barre-seule { justify-content: space-between; }

/* ---------- Tuiles, pastilles ---------- */
.tuile { margin: 0; padding: clamp(1.25rem, 2.2vw, 2rem); border-radius: var(--rayon); background: var(--carte); }
.tuile-menthe { background: var(--menthe); }
.tuile-dragee { background: var(--dragee); }
.tuile-ciel { background: var(--ciel); }
.tuile-lilas { background: var(--lilas); }
.tuile-violet { background: var(--violet); color: var(--sur-violet); }
/* Une icône au trait rond dans son carré arrondi */
.pastille { display: grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; border-radius: 0.95rem; background: var(--lilas); color: var(--encre); }
.pastille svg { width: 1.45rem; height: 1.45rem; }
.p-ciel { background: var(--ciel); }
.p-blanc { background: var(--carte); }

/* ---------- Ce qui apparaît au défilement (posé par anime.js ; sans script, tout est visible) ---------- */
html.anime [data-apparait] { opacity: 0; translate: 0 1.75rem; transition: opacity 0.7s var(--sortie), translate 0.8s var(--sortie), scale 0.8s var(--sortie), clip-path 1s var(--sortie); transition-delay: calc(var(--i, 0) * 75ms); }
html.anime [data-apparait="pose"] { translate: 0 1rem; scale: 0.93; }
html.anime [data-apparait="glisse"] { translate: 3.5rem 0; }
html.anime [data-apparait="ouvre"] { translate: none; clip-path: inset(12% 9% 12% 9% round var(--rayon)); }
html.anime [data-apparait].vu { opacity: 1; translate: none; scale: none; }
html.anime [data-apparait="ouvre"].vu { clip-path: inset(0 0 0 0 round var(--rayon)); }
/* Un module ne joue que lorsqu'il est à l'écran ; le bouton de pause arrête tout. */
html.anime .module:not(.joue) *, html.anime .module:not(.joue) *::before, html.anime .module:not(.joue) *::after, body.en-pause .module *, body.en-pause .module *::before, body.en-pause .module *::after { animation-play-state: paused !important; }

/* ---------- Les modules : le montage en train de se faire ---------- */
.mod { display: flex; align-items: flex-end; height: 2.75rem; }
/* Sous-titres : les mots s'allument un à un */
.karaoke { font: 700 clamp(1.05rem, 1.5vw, 1.35rem)/1.45 var(--titre); letter-spacing: -0.015em; }
.karaoke span { margin: 0 -0.2em; padding: 0.05em 0.2em; border-radius: 0.35em; animation: mot 3.5s step-end infinite; }
.karaoke span:nth-child(3) { background: var(--encre); color: var(--carte); }
.karaoke span:nth-child(2) { animation-delay: 0.7s; }
.karaoke span:nth-child(3) { animation-delay: 1.4s; }
.karaoke span:nth-child(4) { animation-delay: 2.1s; }
.karaoke span:nth-child(5) { animation-delay: 2.8s; }
@keyframes mot { 0% { background: var(--encre); color: var(--carte); } 20%, 100% { background: transparent; color: inherit; } }
/* Musique : un égaliseur */
.egaliseur { gap: 0.26rem; }
.egaliseur i { flex: 1; max-width: 0.7rem; height: 100%; border-radius: 999px; background: var(--encre); transform-origin: 50% 100%; scale: 1 0.45; animation: bat 1.15s ease-in-out infinite alternate; }
.egaliseur i:nth-child(odd) { scale: 1 0.8; }
.egaliseur i:nth-child(4n+2) { scale: 1 0.3; }
.egaliseur i:nth-child(5n+1) { scale: 1 1; }
.egaliseur i:nth-child(3n) { animation-duration: 0.8s; animation-delay: -0.3s; }
.egaliseur i:nth-child(3n+1) { animation-duration: 1.35s; animation-delay: -0.7s; }
.egaliseur i:nth-child(4n) { animation-delay: -1s; }
.egaliseur i:nth-child(5n) { animation-duration: 0.95s; }
@keyframes bat { from { scale: 1 0.16; } to { scale: 1 1; } }
/* Votre vidéo : les silences disparaissent, les plans se resserrent (la vidéo raccourcit) */
.coupes { align-items: center; gap: 0.3rem; }
.coupes i { flex: 3 1 0; height: 1.5rem; border-radius: 0.5rem; background: var(--violet); animation: resserre 5s var(--sortie) infinite; }
.coupes i:nth-child(3) { --n: 1; }
.coupes i:nth-child(5) { --n: 2; }
.coupes i:nth-child(7) { --n: 3; }
.coupes .silence { flex: 1.4 1 0; border: 2px dashed var(--trait); background: none; animation-name: coupe; }
@keyframes resserre { 0%, 30% { translate: 0 0; } 50%, 86% { translate: calc(var(--n, 0) * (-46.667% - 0.3rem)) 0; } 100% { translate: 0 0; } }
@keyframes coupe { 0%, 30% { opacity: 1; scale: 1; } 44%, 90% { opacity: 0; scale: 0.5 1; } 100% { opacity: 1; scale: 1; } }
/* Zooms : le cadre se resserre sur la personne */
.cadre-zoom { position: relative; width: 4.9rem; height: 100%; overflow: hidden; border-radius: 0.7rem; background: var(--ciel); }
.cadre-zoom i { position: absolute; left: 50%; background: var(--encre); translate: -50% 0; transform-origin: 50% 30%; animation: zoom 3.6s var(--sortie) infinite; }
.cadre-zoom .tete { top: 22%; width: 0.85rem; height: 0.85rem; border-radius: 50%; }
.cadre-zoom .buste { top: 60%; width: 1.9rem; height: 1.6rem; border-radius: 0.95rem 0.95rem 0 0; transform-origin: 50% -45%; }
@keyframes zoom { 0%, 28% { scale: 1; } 38%, 78% { scale: 1.75; } 90%, 100% { scale: 1; } }
/* Motion design : des barres montent, une étiquette se pose */
.motion { gap: 0.3rem; }
.motion i { width: 0.85rem; border-radius: 0.3rem 0.3rem 0.15rem 0.15rem; background: var(--violet); transform-origin: 50% 100%; animation: monte 4.2s var(--sortie) infinite; }
.motion i:nth-child(1) { height: 45%; }
.motion i:nth-child(2) { height: 72%; animation-delay: 0.18s; }
.motion i:nth-child(3) { height: 100%; animation-delay: 0.36s; }
.motion span { margin: 0 0 0.25rem 0.5rem; padding: 0.22em 0.7em; border-radius: 999px; background: var(--encre); color: var(--carte); font: 700 0.82rem/1.2 var(--titre); animation: etiquette 4.2s var(--sortie) infinite; }
@keyframes monte { 0%, 6% { scale: 1 0; } 22%, 84% { scale: 1 1; } 94%, 100% { scale: 1 0; } }
@keyframes etiquette { 0%, 22% { opacity: 0; translate: -0.6rem 0; scale: 0.8; } 34%, 84% { opacity: 1; translate: none; scale: 1; } 94%, 100% { opacity: 0; translate: none; scale: 0.8; } }
/* Bruitages : des coups brefs, calés sur une ligne */
.bruits { position: relative; align-items: center; justify-content: space-between; padding: 0 0.3rem; }
.bruits::before { content: ""; position: absolute; inset: 50% 0 auto; height: 2px; margin-top: -1px; border-radius: 2px; background: oklch(0.25 0.06 300 / 0.22); }
.bruits i { position: relative; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--encre); animation: coup 3.2s var(--sortie) infinite; }
.bruits i::after { content: ""; position: absolute; inset: -0.45rem; border: 2px solid var(--encre); border-radius: 50%; opacity: 0; animation: onde 3.2s var(--sortie) infinite; animation-delay: inherit; }
.bruits i:nth-child(2) { animation-delay: 0.45s; }
.bruits i:nth-child(3) { animation-delay: 1.1s; }
.bruits i:nth-child(4) { animation-delay: 1.5s; }
.bruits i:nth-child(5) { animation-delay: 2.3s; }
@keyframes coup { 0% { scale: 1.7; } 14%, 100% { scale: 1; } }
@keyframes onde { 0% { opacity: 0.7; scale: 0.4; } 22%, 100% { opacity: 0; scale: 1.25; } }
/* Couleurs : les teintes du téléphone, une à une */
.teintes { align-items: center; }
.teintes i { width: 1.9rem; height: 1.9rem; margin-right: -0.45rem; border: 3px solid var(--carte); border-radius: 50%; background: var(--c); animation: teinte 4s var(--sortie) infinite; }
.teintes i:nth-child(1) { --c: var(--violet); }
.teintes i:nth-child(2) { --c: var(--dragee-vif); animation-delay: 0.5s; }
.teintes i:nth-child(3) { --c: var(--menthe-vif); animation-delay: 1s; }
.teintes i:nth-child(4) { --c: var(--ciel-vif); animation-delay: 1.5s; }
.teintes i:nth-child(5) { --c: var(--encre); animation-delay: 2s; }
@keyframes teinte { 0%, 100% { translate: 0 0; } 9% { translate: 0 -0.5rem; } 20% { translate: 0 0; } }

/* ---------- Accueil ---------- */
/* Les tuiles du haut de page se posent l'une après l'autre au chargement : en CSS seul, pour ne dépendre d'aucun script. */
.accueil { display: grid; grid-template-columns: minmax(0, 1fr) clamp(11rem, 17vw, 15rem) minmax(0, 0.58fr); grid-template-areas: "texte video sous" "texte video musique" "texte video gratuit"; gap: 0.9rem; padding: 1.5rem var(--bord) clamp(1.5rem, 3vw, 2.5rem); }
.accueil > * { animation: pose 0.9s var(--sortie) backwards; }
.accueil > .accueil-video { animation-name: ouvre; animation-duration: 1.1s; animation-delay: 0.1s; }
.accueil > .accueil-sous { animation-delay: 0.3s; }
.accueil > .accueil-musique { animation-delay: 0.42s; }
.accueil > .accueil-gratuit { animation-delay: 0.54s; }
@keyframes pose { from { opacity: 0; translate: 0 1.2rem; scale: 0.94; } }
@keyframes ouvre { from { opacity: 0; clip-path: inset(22% 16% 22% 16% round var(--rayon)); } to { clip-path: inset(0 0 0 0 round var(--rayon)); } }
.accueil h1 { font: 700 clamp(2.1rem, 3.9vw, 3.4rem)/1.03 var(--titre); letter-spacing: -0.03em; }
.accueil h1 span { display: block; text-wrap: balance; }
.chapeau { margin-top: 1.25rem; max-width: 33rem; font-size: clamp(1.02rem, 1.2vw, 1.14rem); line-height: 1.5; color: var(--doux); }
.accueil-texte { grid-area: texte; display: grid; align-content: center; justify-items: start; padding: clamp(1.5rem, 3.2vw, 3rem); }
.accueil-texte .bouton { margin-top: 1.75rem; }
.accueil-video { grid-area: video; padding: 0; overflow: hidden; aspect-ratio: 9 / 16; }
.accueil-video video { width: 100%; height: 100%; object-fit: cover; }
.accueil-sous { grid-area: sous; }
.accueil-musique { grid-area: musique; }
/* Le violet est réservé à l'action : cette tuile mène à l'essai, comme le bouton. */
.accueil-gratuit { grid-area: gratuit; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: center; align-items: center; gap: 0.4rem 1rem; font: 500 1rem/1.35 var(--texte); text-decoration: none; transition: background-color 0.2s var(--sortie), translate 0.25s var(--sortie); }
.accueil-gratuit strong { font: 700 clamp(1.2rem, 1.7vw, 1.5rem)/1.1 var(--titre); letter-spacing: -0.02em; }
.accueil-gratuit > span:last-child { grid-column: 1 / -1; }
.accueil-gratuit:hover { background: var(--violet-appui); translate: 0 -2px; }
.accueil-gratuit:hover .bouton-rond svg { translate: 0.2em 0; }
.accueil-gratuit:focus-visible { outline-color: var(--encre); outline-offset: 4px; }
.accueil-sous, .accueil-musique { display: grid; align-content: space-between; gap: 0.5rem; }
.module-nom { display: flex; align-items: center; gap: 0.5rem; font: 600 0.92rem/1.2 var(--texte); }
.module-nom svg { width: 1.15rem; height: 1.15rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(2rem, 4vw, 3.25rem) var(--bord); }
.section h2, .fin h2 { font: 700 clamp(1.9rem, 3.2vw, 2.75rem)/1.05 var(--titre); letter-spacing: -0.03em; text-wrap: balance; }
.section-tete { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: 1rem clamp(2rem, 5vw, 4.5rem); align-items: end; margin-bottom: clamp(1.5rem, 2.6vw, 2.1rem); }
.intro { max-width: 33rem; color: var(--doux); }
.legende { margin-top: 0.9rem; font-size: 0.86rem; color: var(--doux); }

/* Le parcours : la vidéo d'explication en grand, le titre et les trois gestes à côté */
.parcours { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "film titre" "film gestes"; gap: 1.5rem clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.parcours h2 { grid-area: titre; align-self: end; }
/* L'emplacement de la vidéo du parcours. En attendant qu'elle soit tournée : un lecteur qui montre ses quatre plans,
   l'un après l'autre, par à-coups (elle sera en stop motion). */
.pellicule { grid-area: film; align-self: center; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 0.4rem; aspect-ratio: 16 / 9; padding: 0.5rem; overflow: hidden; border-radius: var(--rayon); background: var(--carte); }
.pellicule video { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--rayon) - 0.5rem); }
.scene { display: grid; place-items: center; min-height: 0; border-radius: calc(var(--rayon) - 0.5rem); background: var(--fond); }
.plan { grid-area: 1 / 1; display: grid; justify-items: center; gap: 0.7rem; opacity: 0; font: 700 1.05rem/1.2 var(--titre); animation: plan 6s step-end infinite; }
.plan-image { display: grid; place-items: center; width: clamp(4.25rem, 9vw, 7rem); aspect-ratio: 1; border-radius: 30%; background: var(--c, var(--lilas)); animation: plan-image 6s step-end infinite; animation-delay: inherit; }
.plan-image svg { width: 50%; height: 50%; }
.plan b { display: none; font-weight: inherit; }
.plan:nth-child(1) { --c: var(--ciel); opacity: 1; }
.plan:nth-child(2) { --c: var(--dragee); animation-delay: 1.5s; }
.plan:nth-child(3) { --c: var(--menthe); animation-delay: 3s; }
.plan:nth-child(4) { animation-delay: 4.5s; }
@keyframes plan { 0% { opacity: 1; } 25%, 100% { opacity: 0; } }
@keyframes plan-image { 0% { rotate: -7deg; scale: 1; } 6% { rotate: 5deg; scale: 1.07; } 12% { rotate: -4deg; scale: 1; } 18% { rotate: 6deg; scale: 1.07; } 25%, 100% { rotate: 0deg; scale: 1; } }
.commandes { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.9rem; padding: 0.3rem 0.6rem 0.35rem 0.35rem; }
.lecture { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--fond); color: var(--doux); }
.lecture svg { width: 1.1rem; height: 1.1rem; }
.chapitres { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.4rem; }
.chapitres li { position: relative; padding-top: 0.75rem; font: 600 clamp(0.72rem, 0.95vw, 0.86rem)/1.2 var(--texte); color: var(--doux); animation: chapitre 6s step-end infinite; }
.chapitres li::before { content: ""; position: absolute; inset: 0 0 auto; height: 0.3rem; border-radius: 999px; background: var(--creux); animation: chapitre-barre 6s step-end infinite; animation-delay: inherit; }
.chapitres li:first-child { color: var(--encre); }
.chapitres li:first-child::before { background: var(--violet); }
.chapitres li:nth-child(2) { animation-delay: 1.5s; }
.chapitres li:nth-child(3) { animation-delay: 3s; }
.chapitres li:nth-child(4) { animation-delay: 4.5s; }
@keyframes chapitre { 0% { color: var(--encre); } 25%, 100% { color: var(--doux); } }
@keyframes chapitre-barre { 0% { background: var(--violet); } 25%, 100% { background: var(--creux); } }
.bientot { padding: 0.35em 0.85em; border-radius: 999px; background: var(--fond); font: 600 0.8rem/1.2 var(--texte); color: var(--doux); }
.invisible { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.gestes { grid-area: gestes; display: grid; gap: 1.15rem; }
.gestes li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: start; }
.gestes h3 { font: 700 1.2rem/1.2 var(--titre); letter-spacing: -0.02em; }
.gestes p { margin-top: 0.15rem; font-size: 0.97rem; line-height: 1.45; color: var(--doux); }

/* Ce que le montage pose : sept tuiles vivantes. Le module est le sujet de la tuile ; sa teinte est celle de sa piste
   (menthe pour le texte, dragée pour le son, ciel pour l'image, lilas pour le motion design). */
.modules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.9rem; }
.modules li { display: grid; grid-template-rows: auto auto 1fr; align-content: start; gap: 0.45rem; padding: 1.35rem 1.4rem 1.4rem; }
.modules li:first-child { grid-column: span 2; }
.modules h3 { display: flex; align-items: center; gap: 0.65rem; font: 700 1.15rem/1.2 var(--titre); letter-spacing: -0.02em; }
.modules .pastille { width: 2.3rem; height: 2.3rem; border-radius: 0.8rem; }
.modules .pastille svg { width: 1.25rem; height: 1.25rem; }
.modules p { font-size: 0.93rem; line-height: 1.42; color: var(--doux); }
.modules [class*="tuile-"] p { color: var(--encre); }
.modules .mod { order: -1; height: 4.25rem; margin-bottom: 0.75rem; }
.modules .karaoke { display: block; align-content: center; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.3; }
.modules .karaoke span { animation-name: mot-court; animation-duration: 2.1s; }
@keyframes mot-court { 0% { background: var(--encre); color: var(--carte); } 33.4%, 100% { background: transparent; color: inherit; } }
.modules .coupes i { height: 2.4rem; border-radius: 0.7rem; }
.modules .cadre-zoom { width: 7.5rem; border-radius: 0.9rem; background: var(--carte); }
.modules .cadre-zoom .tete { top: 20%; width: 1.25rem; height: 1.25rem; }
.modules .cadre-zoom .buste { top: 57%; width: 2.9rem; height: 2.4rem; border-radius: 1.45rem 1.45rem 0 0; }
.modules .motion { gap: 0.4rem; }
.modules .motion i { width: 1.3rem; border-radius: 0.45rem 0.45rem 0.2rem 0.2rem; }
.modules .motion span { margin: 0 0 0.4rem 0.7rem; font-size: 1rem; }
.modules .egaliseur { gap: 0.32rem; }
.modules .egaliseur i { max-width: 1rem; }
.modules .bruits i { width: 0.85rem; height: 0.85rem; }
.modules .bruits i::after { inset: -0.6rem; }
.modules .teintes i { width: 2.9rem; height: 2.9rem; margin-right: -0.7rem; border-width: 4px; }

/* Les styles : une planche de vidéos qui défile */
.planche { display: flex; gap: 1rem; margin-right: calc(-1 * var(--bord)); padding: 0 var(--bord) 1rem 0; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--trait) transparent; }
.planche li { flex: 0 0 clamp(9rem, 13vw, 11.25rem); scroll-snap-align: start; }
.ecran { aspect-ratio: 9 / 16; overflow: hidden; border-radius: 1.4rem; background: var(--carte); transition: translate 0.35s var(--sortie), box-shadow 0.35s var(--sortie); }
.ecran video { width: 100%; height: 100%; object-fit: cover; }
.planche li:hover .ecran { translate: 0 -0.35rem; box-shadow: var(--ombre); }
.planche p { margin-top: 0.2rem; font-size: 0.88rem; line-height: 1.38; color: var(--doux); }
/* Trois lignes : le même sujet (une personne, un produit, un site) d'un style à l'autre, pour comparer les styles. */
.rang { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.7rem; margin: clamp(1.9rem, 3vw, 2.6rem) 0 1rem; font: 700 clamp(1.4rem, 1.9vw, 1.65rem)/1.2 var(--titre); letter-spacing: -0.02em; }
.rang:first-of-type { margin-top: 0; }
.rang span { font: 400 0.92rem/1.4 var(--texte); letter-spacing: 0; color: var(--doux); }
.planche h4 { margin-top: 0.75rem; font: 700 1.05rem/1.25 var(--titre); letter-spacing: -0.015em; }

/* Les genres de vidéo : on en choisit un, son déroulé se joue, un temps après l'autre */
.genres { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.25rem clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.genres-choix { display: grid; gap: 0.7rem; }
.genres-choix p { font: 600 0.92rem/1.2 var(--texte); color: var(--doux); }
.genres-choix p:not(:first-child) { margin-top: 0.5rem; }
.genres .puce { background: var(--carte); }
.deroules { display: grid; align-content: center; min-height: 19.5rem; }
.deroule { display: none; gap: 0.9rem; }
.genres:has(input[value="produit"]:checked) .deroule[data-genre="produit"], .genres:has(input[value="formation"]:checked) .deroule[data-genre="formation"], .genres:has(input[value="histoire"]:checked) .deroule[data-genre="histoire"], .genres:has(input[value="conseil"]:checked) .deroule[data-genre="conseil"], .genres:has(input[value="tuto"]:checked) .deroule[data-genre="tuto"], .genres:has(input[value="vlog"]:checked) .deroule[data-genre="vlog"], .genres:has(input[value="liste"]:checked) .deroule[data-genre="liste"], .genres:has(input[value="cas"]:checked) .deroule[data-genre="cas"], .genres:has(input[value="annonce"]:checked) .deroule[data-genre="annonce"], .genres:has(input[value="entreprise"]:checked) .deroule[data-genre="entreprise"], .genres:has(input[value="site"]:checked) .deroule[data-genre="site"] { display: grid; }
@supports not selector(:has(*)) { .deroule { display: grid; margin-bottom: 1rem; } }
.deroule ol { display: grid; gap: 0.3rem; counter-reset: temps; }
.deroule li { display: flex; align-items: center; gap: 0.85rem; padding: 0.5rem 0.9rem 0.5rem 0.5rem; border-radius: 999px; font: 700 clamp(1rem, 1.3vw, 1.15rem)/1.2 var(--titre); letter-spacing: -0.015em; color: var(--doux); animation: 4.2s step-end infinite; }
.deroule li::before { counter-increment: temps; content: counter(temps); display: grid; place-items: center; flex: none; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--fond); color: var(--doux); font-size: 0.95rem; animation: 4.2s step-end infinite; animation-delay: inherit; }
.deroule li:first-child { background: var(--fond); color: var(--encre); }
.deroule li:first-child::before { background: var(--violet); color: var(--sur-violet); }
.deroule li:nth-child(2) { animation-delay: 1.4s; }
.deroule li:nth-child(3) { animation-delay: 2.8s; }
.deroule li:nth-child(4) { animation-delay: 4.2s; }
.deroule li:nth-child(5) { animation-delay: 5.6s; }
.deroule ol[data-temps="3"] li { animation-name: temps-3; }
.deroule ol[data-temps="3"] li::before { animation-name: rond-3; }
.deroule ol[data-temps="4"] li { animation-name: temps-4; animation-duration: 5.6s; }
.deroule ol[data-temps="4"] li::before { animation-name: rond-4; animation-duration: 5.6s; }
.deroule ol[data-temps="5"] li { animation-name: temps-5; animation-duration: 7s; }
.deroule ol[data-temps="5"] li::before { animation-name: rond-5; animation-duration: 7s; }
@keyframes temps-3 { 0% { background: var(--fond); color: var(--encre); } 33.34%, 100% { background: transparent; color: var(--doux); } }
@keyframes temps-4 { 0% { background: var(--fond); color: var(--encre); } 25%, 100% { background: transparent; color: var(--doux); } }
@keyframes temps-5 { 0% { background: var(--fond); color: var(--encre); } 20%, 100% { background: transparent; color: var(--doux); } }
@keyframes rond-3 { 0% { background: var(--violet); color: var(--sur-violet); } 33.34%, 100% { background: var(--fond); color: var(--doux); } }
@keyframes rond-4 { 0% { background: var(--violet); color: var(--sur-violet); } 25%, 100% { background: var(--fond); color: var(--doux); } }
@keyframes rond-5 { 0% { background: var(--violet); color: var(--sur-violet); } 20%, 100% { background: var(--fond); color: var(--doux); } }
.deroule p { padding-left: 0.6rem; font-size: 0.93rem; color: var(--doux); }

/* L'éditeur */
.editeur-grille { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.editeur-grille .intro { margin-top: 1rem; }
.retouches { display: grid; gap: 0.9rem; margin-top: 1.5rem; }
.retouches li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.9rem; align-items: center; font-size: 0.98rem; line-height: 1.4; }
.editeur-vue { position: relative; }
.editeur-vue img { width: 100%; height: auto; border-radius: var(--rayon-moyen); box-shadow: 0 2rem 3.5rem -2rem oklch(0.25 0.08 300 / 0.7); }
/* Une retouche demandée dans le chat : la demande, puis la réponse qui s'écrit */
.demande { position: absolute; left: -1.25rem; bottom: -1.25rem; display: grid; gap: 0.5rem; width: min(17rem, 70%); padding: 1rem 1.1rem; border-radius: var(--rayon-moyen); box-shadow: var(--ombre); }
.bulle { justify-self: start; padding: 0.5rem 0.85rem; border-radius: 1rem 1rem 1rem 0.3rem; background: var(--encre); color: var(--carte); font: 500 0.92rem/1.3 var(--texte); }
.ecrit { justify-self: end; display: flex; gap: 0.25rem; padding: 0.7rem 0.8rem; border-radius: 1rem 1rem 0.3rem 1rem; background: var(--fond); }
.ecrit i { width: 0.42rem; height: 0.42rem; border-radius: 50%; background: var(--doux); animation: ecrit 1.2s ease-in-out infinite; }
.ecrit i:nth-child(2) { animation-delay: 0.15s; }
.ecrit i:nth-child(3) { animation-delay: 0.3s; }
@keyframes ecrit { 0%, 60%, 100% { translate: 0 0; opacity: 0.45; } 30% { translate: 0 -0.3rem; opacity: 1; } }

/* Questions */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; align-items: start; margin-top: clamp(1.5rem, 2.6vw, 2.1rem); }
.faq details { border-radius: var(--rayon-moyen); background: var(--carte); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.05rem 1.1rem 1.05rem 1.4rem; font: 700 1.05rem/1.3 var(--titre); letter-spacing: -0.015em; cursor: pointer; list-style: none; border-radius: var(--rayon-moyen); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pastille { width: 2.1rem; height: 2.1rem; border-radius: 50%; transition: rotate 0.35s var(--sortie), background-color 0.2s var(--sortie); }
.faq summary .pastille svg { width: 1.1rem; height: 1.1rem; }
.faq details[open] summary .pastille { rotate: 45deg; background: var(--violet); color: var(--sur-violet); }
.faq details p { max-width: 65ch; padding: 0 1.4rem 1.25rem; color: var(--doux); }

/* Le dernier appel */
.fin { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; align-items: center; margin: clamp(1rem, 3vw, 2rem) var(--bord) clamp(2rem, 4vw, 3rem); padding: clamp(2rem, 5vw, 4rem); border-radius: calc(var(--rayon) * 1.3); background: var(--violet); color: var(--sur-violet); }
.fin p { margin-top: 0.7rem; font-size: 1.08rem; color: oklch(0.93 0.04 292); }
.fin .bouton:focus-visible { outline-color: var(--sur-violet); }

.pied { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; padding: 0.5rem var(--bord) 2.5rem; font-size: 0.92rem; color: var(--doux); }
.pied .marque { font-size: 1.5rem; color: var(--encre); }
.pied p:last-child { margin-left: auto; }

/* ---------- La page d'essai : cinq rubriques, un aperçu qui suit ---------- */
.essai { padding: clamp(1.75rem, 4vw, 3rem) var(--bord) clamp(2.5rem, 5vw, 4rem); }
.essai-tete { max-width: 44rem; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.essai-tete h1 { font: 700 clamp(2.1rem, 4vw, 3.25rem)/1.04 var(--titre); letter-spacing: -0.03em; text-wrap: balance; }
.essai-tete p { margin-top: 0.8rem; font-size: clamp(1.02rem, 1.2vw, 1.14rem); color: var(--doux); }
.essai-bon { display: grid; grid-template-columns: minmax(0, 1fr) clamp(17rem, 28vw, 23rem); gap: 0.9rem; align-items: start; }
.rubriques { display: grid; gap: 0.9rem; min-width: 0; }
.rubrique { display: grid; gap: 1.15rem; min-width: 0; }
.rubrique-tete { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.2rem 1rem; align-items: center; }
.rubrique-titre { font: 700 1.35rem/1.2 var(--titre); letter-spacing: -0.02em; }
.rubrique-aide { grid-column: 2; font-size: 0.95rem; line-height: 1.45; color: var(--doux); }
.rubrique-tete .pastille { grid-row: span 2; align-self: start; }

/* Le dépôt des fichiers */
.depot { position: relative; display: grid; justify-items: center; gap: 0.35rem; padding: clamp(1.5rem, 3vw, 2.25rem) 1.25rem; border: 2px dashed var(--trait); border-radius: var(--rayon-moyen); background: var(--fond); text-align: center; cursor: pointer; transition: background-color 0.2s var(--sortie), border-color 0.2s var(--sortie); }
.depot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.depot .pastille { margin-bottom: 0.35rem; transition: translate 0.4s var(--sortie); }
.depot strong { font: 700 1.1rem/1.2 var(--titre); }
.depot > span:last-child { font-size: 0.93rem; color: var(--doux); }
.depot:hover, .depot.survol, .depot:focus-within { border-color: var(--violet); background: var(--carte); }
.depot:hover .pastille, .depot.survol .pastille { translate: 0 -0.3rem; }
.depot:focus-within { outline: 3px solid var(--violet); outline-offset: 3px; }
.fichiers { display: grid; gap: 0.4rem; }
.fichiers:empty { display: none; }
.fichiers li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.75rem; padding: 0.4rem 0.95rem 0.4rem 0.4rem; border-radius: var(--rayon-petit); background: var(--fond); font-size: 0.95rem; animation: arrive 0.45s var(--sortie) backwards; }
.fichiers .pastille { width: 2.1rem; height: 2.1rem; border-radius: 0.6rem; }
.fichiers .pastille svg { width: 1.15rem; height: 1.15rem; }
.fichiers span:nth-child(2) { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fichiers span:last-child { color: var(--doux); font-variant-numeric: tabular-nums; }
@keyframes arrive { from { opacity: 0; translate: 0 0.5rem; } }

/* L'interrupteur et le champ de l'adresse */
.interrupteur { display: inline-flex; align-items: center; gap: 0.75rem; font-weight: 600; cursor: pointer; }
.interrupteur input { position: absolute; opacity: 0; }
.interrupteur-piste { position: relative; flex: none; width: 2.9rem; height: 1.7rem; border-radius: 999px; background: oklch(0.6 0.045 300); transition: background-color 0.25s var(--sortie); }
.interrupteur-piste::after { content: ""; position: absolute; top: 0.2rem; left: 0.2rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--carte); box-shadow: 0 0.15rem 0.4rem rgb(0 0 0 / 0.2); transition: translate 0.3s var(--sortie); }
.interrupteur input:checked + .interrupteur-piste { background: var(--violet); }
.interrupteur input:checked + .interrupteur-piste::after { translate: 1.2rem 0; }
.interrupteur input:focus-visible + .interrupteur-piste { outline: 3px solid var(--violet); outline-offset: 3px; }
.bloc-site { display: grid; gap: 0.5rem; animation: arrive 0.4s var(--sortie) backwards; }
.bloc-site label { font: 600 0.92rem/1.2 var(--texte); }
.ligne, .consigne { width: 100%; padding: 0.8rem 1rem; border: 2px solid transparent; border-radius: var(--rayon-petit); background: var(--fond); transition: border-color 0.2s var(--sortie), background-color 0.2s var(--sortie); }
.ligne::placeholder, .consigne::placeholder { color: var(--doux); opacity: 1; }
.ligne:hover, .consigne:hover { border-color: var(--trait); }
.ligne:focus, .consigne:focus { outline: none; border-color: var(--violet); background: var(--carte); }
.consigne { display: block; min-height: 7rem; resize: vertical; line-height: 1.5; }
.bloc-site .rubrique-aide { grid-column: auto; }

/* Les choix : des puces à cocher (types), des vignettes (styles), des options illustrées (réglages) */
.groupes { display: grid; gap: 0.75rem; }
.groupe-titre { font: 600 0.92rem/1.2 var(--texte); color: var(--doux); }
.groupe-titre:not(:first-child) { margin-top: 0.5rem; }
.vignettes .groupe-titre { grid-column: 1 / -1; } /* le titre d'un groupe de styles prend toute la largeur de la grille */
.puces { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.puce { position: relative; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 1rem 0.55rem 0.7rem; border: 2px solid transparent; border-radius: 999px; background: var(--fond); font-weight: 600; font-size: 0.97rem; cursor: pointer; transition: background-color 0.2s var(--sortie), color 0.2s var(--sortie), border-color 0.2s var(--sortie), scale 0.25s var(--sortie); }
.puce input, .vignette input, .option input { position: absolute; opacity: 0; }
.puce svg { width: 1.25rem; height: 1.25rem; color: var(--doux); transition: color 0.2s var(--sortie); }
.puce:hover { border-color: var(--trait); }
.puce:has(:checked) { background: var(--violet); color: var(--sur-violet); }
.puce:has(:checked) svg { color: inherit; }
.puce:has(:focus-visible), .vignette:has(:focus-visible), .option:has(:focus-visible) { outline: 3px solid var(--violet); outline-offset: 3px; }
.puce:active, .option:active { scale: 0.97; }

.vignettes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.9rem 0.75rem; }
.vignette { position: relative; display: grid; gap: 0.45rem; font: 600 0.92rem/1.2 var(--texte); text-align: center; cursor: pointer; }
.vignette img { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 1rem; outline: 3px solid transparent; outline-offset: 2px; transition: outline-color 0.2s var(--sortie), translate 0.3s var(--sortie), opacity 0.2s var(--sortie); }
.vignette:hover img { translate: 0 -0.25rem; }
.vignette:has(:checked) img { outline-color: var(--violet); }
.vignette:has(:disabled) { cursor: default; }
.vignette:has(:disabled) img { opacity: 0.4; translate: none; }
.vignette:has(:disabled) span { color: var(--doux); }
.vignette > span:last-child { justify-self: center; padding: 0.2rem 0.7rem; border-radius: 999px; transition: background-color 0.2s var(--sortie), color 0.2s var(--sortie); }
.vignette:has(:checked) > span:last-child { background: var(--violet); color: var(--sur-violet); }
/* Le rang dans lequel le style a été coché : le premier donne le ton */
.vignette-rang { position: absolute; top: 0.45rem; right: 0.45rem; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--violet); color: var(--sur-violet); font: 700 0.9rem/1 var(--titre); scale: 0; transition: scale 0.35s var(--sortie); }
.vignette:has(:checked) .vignette-rang { scale: 1; }

.reglage { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 0.5rem 1rem; align-items: center; }
.reglage > label, .reglage > span { font: 600 0.95rem/1.2 var(--texte); }
.options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.option { position: relative; display: grid; justify-items: center; gap: 0.5rem; padding: 0.8rem 0.5rem 0.7rem; border: 2px solid transparent; border-radius: var(--rayon-moyen); background: var(--fond); font: 600 0.9rem/1.25 var(--texte); text-align: center; cursor: pointer; transition: background-color 0.2s var(--sortie), border-color 0.2s var(--sortie), scale 0.25s var(--sortie); }
.option:hover:not(:has(:checked)) { border-color: var(--trait); }
.option:has(:checked) { background: var(--violet); color: var(--sur-violet); }
.option-image { display: flex; align-items: flex-end; justify-content: center; gap: 0.18rem; height: 2.4rem; color: var(--doux); }
.option:has(:checked) .option-image { color: var(--sur-violet); }
/* Le format : la forme de l'image */
.forme { width: 1.35rem; height: 2.4rem; border: 2.5px solid currentColor; border-radius: 0.4rem; }
.forme-carre { width: 2.1rem; height: 2.1rem; }
.forme-large { width: 3.3rem; height: 1.85rem; }
/* La musique : un petit égaliseur, vif, calme ou éteint */
.option-image.onde i { width: 0.32rem; height: 100%; border-radius: 999px; background: currentColor; transform-origin: 50% 100%; scale: 1 0.5; }
.option-image.onde i:nth-child(odd) { scale: 1 0.85; }
.option-image.onde i:nth-child(3n) { scale: 1 0.3; }
.option:has(:checked) .onde-vive i { animation: bat 0.55s ease-in-out infinite alternate; }
.option:has(:checked) .onde-douce i { animation: bat 1.6s ease-in-out infinite alternate; }
.option:has(:checked) .onde i:nth-child(2n) { animation-delay: -0.25s; }
.option:has(:checked) .onde i:nth-child(3n) { animation-delay: -0.6s; }
.option-image.onde-douce i { scale: 1 0.35; }
.option-image.onde-douce i:nth-child(odd) { scale: 1 0.55; }
.option-image.onde-nulle i:nth-child(n) { scale: 1 0.12; }
/* Les sous-titres : en gros, discrets, ou rien */
.mini-ecran { position: relative; width: 1.5rem; height: 2.4rem; border: 2.5px solid currentColor; border-radius: 0.4rem; }
.mini-ecran::after { content: ""; position: absolute; left: 50%; translate: -50% 0; border-radius: 2px; background: currentColor; }
.mini-gros::after { top: 38%; width: 68%; height: 0.48rem; }
.mini-discret::after { bottom: 12%; width: 58%; height: 0.16rem; }
/* Le rythme : un curseur à trois crans, et des points qui battent à sa vitesse */
.curseur { display: grid; gap: 0.35rem; }
.curseur-ligne { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem; }
.curseur input { width: 100%; height: 1.6rem; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.curseur input::-webkit-slider-runnable-track { height: 0.55rem; border-radius: 999px; background: linear-gradient(to right, var(--violet) var(--part, 50%), var(--creux) var(--part, 50%)); }
.curseur input::-moz-range-track { height: 0.55rem; border-radius: 999px; background: linear-gradient(to right, var(--violet) var(--part, 50%), var(--creux) var(--part, 50%)); }
.curseur input::-webkit-slider-thumb { -webkit-appearance: none; width: 1.5rem; height: 1.5rem; margin-top: -0.475rem; border: 4px solid var(--carte); border-radius: 50%; background: var(--violet); box-shadow: 0 0.2rem 0.5rem rgb(0 0 0 / 0.25); }
.curseur input::-moz-range-thumb { width: 1rem; height: 1rem; border: 4px solid var(--carte); border-radius: 50%; background: var(--violet); box-shadow: 0 0.2rem 0.5rem rgb(0 0 0 / 0.25); }
.curseur-reperes { display: flex; justify-content: space-between; font-size: 0.86rem; color: var(--doux); }
.tempo { display: flex; align-items: center; gap: 0.3rem; height: 1.6rem; --vitesse: 0.6s; }
.tempo i { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--violet); animation: saute var(--vitesse) ease-in-out infinite alternate; }
.tempo i:nth-child(2) { animation-delay: calc(var(--vitesse) / 3); }
.tempo i:nth-child(3) { animation-delay: calc(var(--vitesse) / 1.5); }
.tempo[data-rythme="1"] { --vitesse: 1.1s; }
.tempo[data-rythme="3"] { --vitesse: 0.28s; }
@keyframes saute { from { translate: 0 0.3rem; } to { translate: 0 -0.3rem; } }

/* L'aperçu qui suit : le style choisi, ce qui manque, le bouton */
.suite { position: sticky; top: 5.25rem; display: grid; gap: 1.1rem; padding: 1.25rem; }
.apercu { position: relative; width: clamp(5rem, (100vh - 27rem) * 0.5625, 11.5rem); margin: 0 auto; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 1.4rem; background: var(--fond); }
.apercu video { position: relative; width: 100%; height: 100%; object-fit: cover; }
.apercu-vide { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 0.6rem; padding: 1rem; font: 600 0.9rem/1.3 var(--texte); color: var(--doux); text-align: center; }
.apercu.plein .apercu-vide { display: none; }
.apercu:not(.plein) video { display: none; }
.apercu-nom { font: 700 1.05rem/1.25 var(--titre); letter-spacing: -0.015em; text-align: center; }
.manques { display: grid; gap: 0.5rem; }
.manques li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.95rem; color: var(--doux); transition: color 0.3s var(--sortie); }
.manques li::before { content: ""; flex: none; width: 1.35rem; height: 1.35rem; border: 2px solid var(--trait); border-radius: 50%; background: center / 0.8rem no-repeat; transition: background-color 0.3s var(--sortie), border-color 0.3s var(--sortie), scale 0.4s var(--sortie); }
.manques li.fait { color: var(--encre); font-weight: 600; }
.manques .court { display: none; }
.manques li.fait::before { border-color: var(--violet); background-color: var(--violet); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E"); scale: 1.08; }
.suite .bouton { justify-content: space-between; width: 100%; text-wrap: balance; }
.suite-note { font-size: 0.88rem; color: var(--doux); text-align: center; }
.erreur { padding: 0.7rem 1rem; border-radius: var(--rayon-petit); background: var(--alerte-fond); color: var(--alerte); font-weight: 600; font-size: 0.95rem; }
.erreur:empty, .suivi:empty { display: none; }
.suivi { display: grid; gap: 0.45rem; font-size: 0.93rem; outline: none; }
.suivi li { display: flex; align-items: flex-start; gap: 0.6rem; color: var(--doux); animation: arrive 0.4s var(--sortie) backwards; }
.suivi li::before { content: ""; flex: none; width: 0.85rem; height: 0.85rem; margin-top: 0.3rem; border: 2px solid var(--trait); border-top-color: var(--violet); border-radius: 50%; animation: tourne 0.8s linear infinite; }
.suivi li.fait { color: var(--encre); }
.suivi li.fait::before { border-color: var(--menthe-vif); background: var(--menthe-vif); animation: none; }
.suivi li.passe { color: var(--alerte); }
.suivi li.passe::before { border-color: var(--alerte); background: var(--alerte); animation: none; }
@keyframes tourne { to { rotate: 1turn; } }

/* ---------- Les formules, le retour de caisse ---------- */
.formules { display: grid; grid-template-columns: repeat(2, minmax(0, 26rem)); gap: 0.9rem; }
.formule { display: grid; grid-template-rows: auto auto 1fr auto; justify-items: start; gap: 0.85rem; padding: clamp(1.5rem, 3vw, 2.25rem); }
.formule h2 { display: flex; align-items: center; gap: 0.75rem; font: 700 1.3rem/1.2 var(--titre); letter-spacing: -0.02em; }
.formule-somme { font: 700 clamp(2.6rem, 5vw, 3.6rem)/1 var(--titre); letter-spacing: -0.035em; }
.formule-somme span { font: 500 1rem/1 var(--texte); letter-spacing: 0; }
.formule > p:not(.formule-somme) { color: var(--doux); }
.formule.tuile-violet > p:not(.formule-somme) { color: oklch(0.93 0.04 292); }
.formule .bouton { margin-top: 0.5rem; }
.formules-avis { margin-top: 1.1rem; font-weight: 600; color: var(--doux); }
.formules-avis:empty { display: none; }
.retour-tuile { display: grid; justify-items: start; gap: 0.9rem; max-width: 36rem; padding: clamp(1.75rem, 4vw, 3rem); }
.retour-tuile h1 { font: 700 clamp(1.9rem, 3.4vw, 2.75rem)/1.05 var(--titre); letter-spacing: -0.03em; }
.retour-tuile p { font-size: 1.08rem; color: var(--doux); }
.retour-tuile .bouton { margin-top: 0.6rem; }
.attente { display: flex; gap: 0.4rem; }
.attente i { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--violet); animation: saute 0.5s ease-in-out infinite alternate; }
.attente i:nth-child(2) { animation-delay: 0.16s; background: var(--dragee-vif); }
.attente i:nth-child(3) { animation-delay: 0.32s; background: var(--menthe-vif); }
.retour-tuile[data-etat="fini"] .attente { display: none; }

/* ---------- Écrans plus étroits ---------- */
@media (max-width: 68rem) {
  .accueil { grid-template-columns: clamp(10rem, 30vw, 14rem) minmax(0, 1fr); grid-template-areas: "texte texte" "video sous" "video musique" "video gratuit"; }
  .modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 60rem) {
  .section-tete, .editeur-grille, .genres { grid-template-columns: 1fr; align-items: start; }
  .parcours { grid-template-columns: 1fr; grid-template-rows: auto; grid-template-areas: "titre" "film" "gestes"; }
  .deroules { min-height: 0; }
  .fin { grid-template-columns: 1fr; }
  .demande { left: 0.75rem; bottom: -1.5rem; }
  /* La page d'essai : ce qui manque et le bouton restent sous le pouce, en bas de l'écran */
  .essai-bon { grid-template-columns: 1fr; }
  .suite { top: auto; bottom: 0.6rem; z-index: 5; gap: 0.7rem; padding: 0.8rem; border-radius: 1.5rem; box-shadow: 0 -0.5rem 2rem -0.8rem oklch(0.3 0.08 300 / 0.5); }
  .suite .apercu, .suite .apercu-nom, .suite-note { display: none; }
  .manques { grid-template-columns: repeat(3, auto); justify-content: space-around; }
  .manques .long { display: none; }
  .manques .court { display: inline; }
}
@media (max-width: 44rem) {
  .barre-liens { display: none; }
  .barre .outil { margin-left: auto; }
  .accueil .bouton-grand, .fin .bouton-grand { justify-content: space-between; width: 100%; padding-left: 1.2em; font-size: 1rem; text-wrap: balance; }
  .plan b { display: block; }
  .accueil-gratuit .bouton-rond { display: none; }
  .chapitres li { padding-top: 0.3rem; }
  .chapitres li span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .faq, .formules { grid-template-columns: 1fr; }
  /* Les modules en rangées : le texte à gauche, le module à droite */
  .modules { grid-template-columns: 1fr; }
  .modules li { grid-template-columns: minmax(0, 1fr) 6.5rem; grid-template-rows: auto 1fr; column-gap: 1rem; padding: 1.1rem 1.2rem; }
  .modules li:first-child { grid-column: auto; }
  .modules h3, .modules p { grid-column: 1; }
  .modules .mod { order: 0; grid-column: 2; grid-row: 1 / span 2; align-self: center; height: 3.5rem; margin: 0; }
  .modules .karaoke { font-size: 1.15rem; }
  .modules .cadre-zoom { width: 100%; }
  .modules .motion { gap: 0.25rem; }
  .modules .motion i { width: 0.7rem; }
  .modules .motion span { margin-left: 0.35rem; padding: 0.2em 0.55em; font-size: 0.72rem; }
  .modules .teintes i { width: 1.9rem; height: 1.9rem; margin-right: -0.6rem; border-width: 3px; }
  .modules .coupes i { height: 1.6rem; }
  .vignettes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reglage { grid-template-columns: 1fr; }
  .pied p:last-child { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
