/* ============================================================================
   LA MACHINE À POSTS — page d'accueil
   Direction : l'atelier d'impression. Papier, encre, deux encres riso (bleu
   imprimerie + rose fluo) ; une grotesque à largeur variable pour la voix
   d'affiche, une mono pour la voix « machine » (relevés, statuts, ticket).
   ========================================================================= */

@font-face {
  font-family: 'Bricolage';
  src: url('fonts/bricolage-grotesque-latin-wdth-normal.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: 'Mono';
  src: url('fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Mono';
  src: url('fonts/jetbrains-mono-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --papier: #f2efe8;
  --papier-2: #e7e2d6;
  --papier-3: #dcd5c5;
  --encre: #17150f;
  --encre-2: #4b473e;
  --encre-3: #7a7466;
  --bleu: #2c44d4;
  --bleu-clair: #dfe3fb;
  --rose: #ff4f9a;
  --filet: #cfc8b7;
  --ff: 'Bricolage', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --gouttiere: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font: 400 18px/1.55 var(--ff);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--rose); color: var(--encre); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; border-radius: 4px; }

/* Grain papier — une trame très légère, pour que le clair ne fasse pas « diapo ». */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 100; pointer-events: none;
  opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .38 0 0 0 0 .33 0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

.mono { font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.wrap { width: min(var(--max), 100% - 2 * var(--gouttiere)); margin-inline: auto; }

/* ------------------------------------------------------------- en-tête */
.entete {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gouttiere);
  background: color-mix(in oklab, var(--papier) 82%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in oklab, var(--filet) 70%, transparent);
}
.marque { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-stretch: 78%; font-size: 1.32rem; letter-spacing: -.01em; line-height: 1; }
.marque__voyant { width: 12px; height: 12px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 0 3px color-mix(in oklab, var(--rose) 25%, transparent); animation: voyant 2.4s ease-in-out infinite; }
@keyframes voyant { 50% { box-shadow: 0 0 0 7px color-mix(in oklab, var(--rose) 0%, transparent); } }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { text-decoration: none; font-size: .95rem; color: var(--encre-2); }
.nav a:not(.btn):hover { color: var(--encre); }
@media (max-width: 860px) { .nav a:not(.btn) { display: none; } }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  background: var(--encre); color: var(--papier);
  font-weight: 700; font-size: 1rem; text-decoration: none; line-height: 1;
  transition: transform .35s var(--ease), background .25s;
}
.btn:hover { transform: translateY(-2px); background: var(--bleu); }
.btn:active { transform: scale(.97); }
.btn--petit { padding: 11px 18px; font-size: .92rem; }
.btn--grand { padding: 20px 32px; font-size: 1.15rem; }
.btn svg { width: 18px; height: 18px; }

/* ------------------------------------------------------------- 1. LA MACHINE (hero) */
.hero { position: relative; height: 420svh; }
.hero__cadre { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; grid-template-rows: auto 1fr; padding-top: 72px; }
.hero__texte { padding: clamp(18px, 4vh, 44px) var(--gouttiere) 0; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: end; max-width: 1440px; width: 100%; margin-inline: auto; }
.hero h1 { margin: 0; font-weight: 800; font-stretch: 76%; font-size: clamp(2.5rem, 6.4vw, 6.2rem); line-height: .9; letter-spacing: -.02em; text-wrap: balance; }
.hero h1 .bleu { color: var(--bleu); }
.hero__sous { max-width: 34rem; margin: 0 0 6px; color: var(--encre-2); font-size: clamp(1rem, 1.3vw, 1.15rem); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 20px; }
.hero__note { color: var(--encre-3); }
@media (max-width: 900px) {
  .hero__texte { grid-template-columns: 1fr; gap: 14px; }
  .hero h1 { font-size: clamp(2.3rem, 10.5vw, 3.6rem); }
}

.scene { position: relative; min-height: 0; }
.scene__plateau { position: absolute; left: 50%; top: 50%; transform-origin: 0 0; }
.scene .el { position: absolute; left: 0; top: 0; will-change: transform, opacity; }

/* Cartes d'entrée */
.entree { width: 250px; padding: 14px 16px; border-radius: 14px; background: #fffdf8; border: 1.5px solid var(--encre); box-shadow: 4px 4px 0 var(--encre); }
.entree .mono { color: var(--encre-3); font-size: .62rem; }
.entree__val { margin-top: 6px; font-weight: 700; font-size: 1.02rem; line-height: 1.2; }
.pastilles { display: flex; gap: 8px; margin-top: 8px; }
.pastilles i { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--encre); }
.puces { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.puces span { padding: 4px 10px; border-radius: 999px; background: var(--papier-2); font-size: .82rem; font-weight: 600; }

/* La machine */
.machine { width: 380px; height: 300px; }
.machine__corps { position: absolute; inset: 0; border-radius: 34px; background: var(--encre); box-shadow: 0 30px 60px -20px rgba(23, 21, 15, .55), inset 0 2px 0 rgba(255, 255, 255, .08); }
.machine__fente { position: absolute; top: 118px; width: 26px; height: 120px; border-radius: 8px; background: #050504; overflow: hidden; }
.machine__fente--g { left: -6px; }
.machine__fente--d { right: -6px; }
.machine__fente::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, #2b2924 0 6px, #0d0c0a 6px 12px); background-position: 0 var(--rouleau, 0px); }
.machine__ecran { position: absolute; left: 40px; right: 40px; top: 36px; height: 62px; border-radius: 12px; background: #0b1238; border: 1px solid #26307a; padding: 10px 14px; color: #a9b6ff; font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; overflow: hidden; }
.machine__ecran b { color: #fff; font-weight: 700; }
.machine__barre { position: absolute; left: 14px; right: 14px; bottom: 10px; height: 5px; border-radius: 3px; background: #1e2763; overflow: hidden; }
.machine__barre i { position: absolute; inset: 0; background: var(--rose); transform-origin: left; transform: scaleX(var(--avance, 0)); }
.machine__nom { position: absolute; left: 0; right: 0; bottom: 26px; text-align: center; color: var(--papier); font-weight: 800; font-stretch: 75%; font-size: 1.9rem; letter-spacing: .01em; line-height: 1; }
.machine__nom small { display: block; margin-top: 6px; font-family: var(--mono); font-weight: 400; font-size: .62rem; letter-spacing: .3em; color: #8f8a7c; }
.machine__voyants { position: absolute; left: 40px; top: 116px; display: flex; gap: 10px; }
.machine__voyants i { width: 10px; height: 10px; border-radius: 50%; background: #3a372f; }
.machine__voyants i.on { background: var(--rose); box-shadow: 0 0 12px var(--rose); }
.machine__rouages { position: absolute; left: 40px; right: 40px; top: 146px; height: 54px; border-radius: 10px; background: repeating-linear-gradient(90deg, #24221c 0 10px, #1a1813 10px 20px); background-position: var(--rouleau, 0px) 0; opacity: .9; }

/* Publications sorties */
.post { width: 230px; border-radius: 16px; background: #fff; border: 1.5px solid var(--encre); box-shadow: 5px 5px 0 var(--encre); overflow: hidden; }
.post__tete { display: flex; align-items: center; gap: 8px; padding: 9px 11px; font-size: .78rem; font-weight: 700; }
.post__avatar { width: 24px; height: 24px; border-radius: 50%; background: #c8a46e; color: var(--encre); display: grid; place-items: center; font-size: .62rem; font-weight: 800; }
.post__reseau { margin-left: auto; font-family: var(--mono); font-size: .6rem; color: var(--encre-3); letter-spacing: .06em; }
.post__media { position: relative; aspect-ratio: 4 / 5; background: var(--papier-2); overflow: hidden; }
.post__media img { width: 100%; height: 100%; object-fit: cover; }
.post__legende { padding: 9px 11px 12px; font-size: .78rem; line-height: 1.35; color: var(--encre-2); }
.post__legende b { color: var(--encre); }
.post--film .post__media { aspect-ratio: 9 / 13; }
.lecture { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(255, 255, 255, .9); display: grid; place-items: center; }
.lecture::before { content: ''; margin-left: 4px; border-left: 15px solid var(--encre); border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.etiquette { position: absolute; left: 10px; top: 10px; padding: 4px 8px; border-radius: 6px; background: var(--encre); color: var(--papier); font-family: var(--mono); font-size: .58rem; letter-spacing: .08em; }
.carrousel { position: relative; aspect-ratio: 4 / 5; }
.carrousel__page { position: absolute; inset: 0; padding: 18px 16px; display: flex; flex-direction: column; justify-content: space-between; font-weight: 800; font-stretch: 78%; font-size: 1.35rem; line-height: 1.02; }
.carrousel__page:nth-child(1) { background: #2b2b2b; color: #f2e8d8; }
.carrousel__page:nth-child(2) { background: #c8a46e; color: #2b2b2b; transform: translate(10px, -10px); z-index: -1; }
.carrousel__page:nth-child(3) { background: #f2e8d8; color: #2b2b2b; transform: translate(20px, -20px); z-index: -2; }
.carrousel__page span { font-family: var(--mono); font-weight: 400; font-size: .58rem; letter-spacing: .1em; }
.texte-li { padding: 4px 13px 14px; font-size: .84rem; line-height: 1.45; color: var(--encre-2); }
.texte-li p { margin: 0 0 8px; }
.texte-li strong { color: var(--encre); }

/* Le calendrier du mois */
.mois { width: 860px; padding: 18px 20px 20px; border-radius: 20px; background: #fffdf8; border: 1.5px solid var(--encre); box-shadow: 8px 8px 0 var(--encre); }
.mois__tete { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.mois__titre { font-weight: 800; font-stretch: 78%; font-size: 1.7rem; line-height: 1; }
.mois__compteur { font-family: var(--mono); font-size: .76rem; letter-spacing: .06em; color: var(--bleu); }
.mois__grille { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.mois__j { font-family: var(--mono); font-size: .6rem; letter-spacing: .1em; color: var(--encre-3); text-align: center; padding-bottom: 2px; }
.jour { position: relative; aspect-ratio: 1; border-radius: 9px; background: var(--papier-2); overflow: hidden; }
.jour > span { position: absolute; left: 6px; top: 4px; z-index: 2; font-family: var(--mono); font-size: .58rem; color: var(--encre-3); }
.jour img { width: 100%; height: 100%; object-fit: cover; }
.jour.plein > span { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.jour__badge { position: absolute; right: 5px; bottom: 5px; z-index: 2; padding: 2px 5px; border-radius: 4px; background: rgba(23, 21, 15, .82); color: var(--papier); font-family: var(--mono); font-size: .5rem; letter-spacing: .06em; }
.jour__texte { position: absolute; inset: 0; padding: 18px 6px 6px; background: var(--bleu-clair); font-size: .55rem; line-height: 1.25; font-weight: 600; color: var(--bleu); }

.legende-scene { position: absolute; left: 50%; bottom: clamp(14px, 3vh, 30px); transform: translateX(-50%); display: flex; gap: 6px; align-items: center; padding: 8px 10px; border-radius: 999px; background: var(--encre); color: var(--papier); z-index: 5; }
.legende-scene span { padding: 6px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600; color: #9d978a; white-space: nowrap; transition: background .3s, color .3s; }
.legende-scene span.actif { background: var(--papier); color: var(--encre); }
@media (max-width: 640px) { .legende-scene span { padding: 5px 8px; font-size: .7rem; } }

.demo-mention { position: absolute; right: var(--gouttiere); bottom: 8px; font-size: 11px; color: var(--encre-3); z-index: 5; }

/* ------------------------------------------------------------- sections */
.section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }
.surtitre { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--bleu); }
.surtitre::before { content: ''; width: 26px; height: 2px; background: currentColor; }
.titre-2 { margin: 0; font-weight: 800; font-stretch: 78%; font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: .95; letter-spacing: -.015em; text-wrap: balance; }
.titre-2 em { font-style: normal; color: var(--bleu); }
.chapeau { max-width: 40rem; margin: 20px 0 0; color: var(--encre-2); font-size: 1.12rem; }

/* 2. Avant / avec */
.avant-avec { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); margin-top: 56px; align-items: start; }
@media (max-width: 860px) { .avant-avec { grid-template-columns: 1fr; } }
.avant { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--encre); }
.avant li { position: relative; padding: 20px 0; border-bottom: 1px solid var(--filet); font-size: clamp(1.1rem, 1.6vw, 1.35rem); font-weight: 600; color: var(--encre-2); }
.avant li::after { content: ''; position: absolute; left: 0; bottom: calc(20px + .72em); height: 3px; width: 100%; background: var(--rose); transform-origin: left; transform: scaleX(var(--rature, 0)); }
.avant .mono { display: block; margin-bottom: 4px; color: var(--encre-3); font-size: .66rem; }
.avec { padding: clamp(24px, 4vw, 48px); border-radius: 24px; background: var(--encre); color: var(--papier); }
.avec .mono { color: var(--rose); }
.avec p { margin: 14px 0 0; font-weight: 700; font-stretch: 85%; font-size: clamp(1.5rem, 2.7vw, 2.35rem); line-height: 1.18; letter-spacing: -.01em; }
.avec .mot { opacity: .18; transition: opacity .2s linear; }
.avec .mot.vu { opacity: 1; }

/* 3. Comment ça marche */
.etapes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 96px); margin-top: 40px; }
@media (max-width: 900px) { .etapes { grid-template-columns: 1fr; } }
.etape { min-height: 72svh; display: flex; flex-direction: column; justify-content: center; padding: 24px 0; opacity: .3; transition: opacity .5s var(--ease); }
.etape.actif { opacity: 1; }
.etape__num { font-weight: 800; font-stretch: 75%; font-size: clamp(4rem, 9vw, 7.5rem); line-height: .8; color: var(--bleu); }
.etape h3 { margin: 18px 0 12px; font-weight: 800; font-stretch: 80%; font-size: clamp(1.8rem, 3.2vw, 2.7rem); line-height: 1; }
.etape p { margin: 0; max-width: 30rem; color: var(--encre-2); font-size: 1.1rem; }
.ecran-colle { position: sticky; top: 12svh; height: 76svh; display: grid; place-items: center; }
@media (max-width: 900px) { .ecran-colle { position: relative; top: 0; height: auto; order: -1; display: none; } .etape { min-height: auto; opacity: 1; padding: 28px 0; border-top: 1px solid var(--filet); } }
.ecran { position: relative; width: min(560px, 100%); aspect-ratio: 4 / 3.6; border-radius: 22px; background: #fffdf8; border: 1.5px solid var(--encre); box-shadow: 10px 10px 0 var(--encre); overflow: hidden; }
.ecran__barre { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--filet); }
.ecran__barre i { width: 10px; height: 10px; border-radius: 50%; background: var(--papier-3); }
.ecran__barre span { margin-left: 10px; color: var(--encre-3); font-family: var(--mono); font-size: .66rem; }
.vue { position: absolute; inset: 38px 0 0 0; padding: 22px; opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.vue.actif { opacity: 1; transform: none; }
.champ { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--papier-2); }
.champ .mono { font-size: .62rem; color: var(--encre-3); }
.champ__val { font-weight: 600; font-size: .95rem; min-height: 1.4em; }
.vue.actif .ecrit { display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: bottom; animation: ecrire 1.2s steps(28) both; }
.vue.actif .champ:nth-child(2) .ecrit { animation-delay: .35s; }
.vue.actif .champ:nth-child(3) .ecrit { animation-delay: .7s; }
.vue.actif .champ:nth-child(4) .ecrit { animation-delay: 1.05s; }
.vue.actif .champ:nth-child(5) .ecrit { animation-delay: 1.4s; }
@keyframes ecrire { from { max-width: 0; } to { max-width: 100%; } }
.lecture-site { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; color: var(--bleu); }
.lecture-site i { flex: 1; height: 4px; border-radius: 2px; background: var(--bleu-clair); overflow: hidden; position: relative; }
.lecture-site i::after { content: ''; position: absolute; inset: 0; background: var(--bleu); transform-origin: left; animation: charger 2.2s var(--ease) both; }
.vue:not(.actif) .lecture-site i::after { animation: none; transform: scaleX(0); }
@keyframes charger { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.grille-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini { position: relative; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: var(--papier-2); }
.mini img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .6s var(--ease), transform .9s var(--ease); }
.vue.actif .mini img { opacity: 1; transform: none; }
.vue.actif .mini:nth-child(2) img { transition-delay: .15s; }
.vue.actif .mini:nth-child(3) img { transition-delay: .3s; }
.vue.actif .mini:nth-child(4) img { transition-delay: .45s; }
.vue.actif .mini:nth-child(5) img { transition-delay: .6s; }
.vue.actif .mini:nth-child(6) img { transition-delay: .75s; }
.mini .etiquette { top: 6px; left: 6px; font-size: .5rem; z-index: 2; }
.mini--texte { padding: 22px 9px 9px; background: var(--bleu-clair); color: var(--bleu); font-weight: 700; font-size: .72rem; line-height: 1.3; }
.ligne-val { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--papier-2); font-size: .9rem; }
.ligne-val img { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; }
.ligne-val .quand { margin-left: auto; font-family: var(--mono); font-size: .64rem; color: var(--encre-3); text-align: right; }
.etat { padding: 4px 9px; border-radius: 999px; font-family: var(--mono); font-size: .58rem; letter-spacing: .06em; background: var(--papier-2); color: var(--encre-2); white-space: nowrap; }
.vue.actif .etat--ok { animation: valider .5s var(--ease) both; }
.vue.actif .ligne-val:nth-child(2) .etat--ok { animation-delay: .5s; }
.vue.actif .ligne-val:nth-child(3) .etat--ok { animation-delay: 1s; }
.vue.actif .ligne-val:nth-child(4) .etat--ok { animation-delay: 1.5s; }
@keyframes valider { from { background: var(--papier-2); color: var(--encre-2); } to { background: var(--bleu); color: #fff; } }

/* 4. Démonstration */
.demo { background: var(--encre); color: var(--papier); }
.demo .surtitre { color: var(--rose); }
.demo .titre-2 em { color: var(--rose); }
.demo .chapeau { color: #b9b3a5; }
.demo__corps { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 72px); margin-top: 56px; align-items: center; }
@media (max-width: 900px) { .demo__corps { grid-template-columns: 1fr; } }
.profil { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.profil__avatar { width: 64px; height: 64px; border-radius: 50%; background: #1f1712; border: 2px solid #c9a46a; display: grid; place-items: center; font-weight: 800; font-stretch: 78%; color: #dcbb85; font-size: 1.2rem; }
.profil b { display: block; font-size: 1.05rem; }
.profil span { color: #9d978a; font-size: .9rem; }
.feed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.feed__case { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #24211c; }
.feed__case img, .feed__case video { width: 100%; height: 100%; object-fit: cover; }
.feed__case .etiquette { background: rgba(0, 0, 0, .6); }
.feed__case--carrousel { padding: 14px; display: flex; flex-direction: column; justify-content: space-between; background: #1f1712; color: #f2ebe1; font-weight: 800; font-stretch: 78%; font-size: clamp(.9rem, 1.6vw, 1.35rem); line-height: 1; }
.feed__case--carrousel small { font-family: var(--mono); font-weight: 400; font-size: .55rem; letter-spacing: .1em; color: #dcbb85; }
.reveal-case { opacity: 0; transform: translateY(26px) scale(.98); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-case.vu { opacity: 1; transform: none; }
.telephone { position: relative; width: min(330px, 100%); margin-inline: auto; aspect-ratio: 9 / 19; border-radius: 46px; background: #050504; padding: 12px; box-shadow: 0 0 0 1.5px #3a362e, 0 40px 80px rgba(0, 0, 0, .55); }
.telephone__ecran { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: #111; }
.telephone__ecran video { width: 100%; height: 100%; object-fit: cover; }
.telephone__ilot { position: absolute; left: 50%; top: 10px; width: 96px; height: 28px; margin-left: -48px; border-radius: 16px; background: #000; z-index: 3; }
.telephone__legende { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 18px 22px; background: linear-gradient(to top, rgba(0, 0, 0, .78), transparent); font-size: .85rem; line-height: 1.4; color: #f6f2ea; z-index: 2; }
.telephone__legende b { display: block; margin-bottom: 4px; }
.demo__note { margin-top: 18px; font-size: 12px; color: #8f897c; }

/* 6. Pour qui */
.secteurs { overflow: hidden; border-block: 1.5px solid var(--encre); padding: 10px 0; }
.defile { display: flex; width: max-content; animation: defile 38s linear infinite; }
.defile--inverse { animation-direction: reverse; animation-duration: 44s; }
.defile span { padding: 4px 22px; font-weight: 800; font-stretch: 76%; font-size: clamp(2rem, 5vw, 4.2rem); line-height: 1.05; white-space: nowrap; }
.defile span:nth-child(3n + 2) { color: var(--bleu); }
.defile span:nth-child(5n + 4) { -webkit-text-stroke: 1.5px var(--encre); color: transparent; }
@keyframes defile { to { transform: translateX(-50%); } }

/* 8. Appel final */
.final { text-align: center; padding: clamp(100px, 16vw, 200px) 0; background: var(--bleu); color: #fff; overflow: hidden; }
.final h2 { margin: 0 auto; max-width: 14ch; font-weight: 800; font-stretch: 75%; font-size: clamp(2.8rem, 8vw, 7.4rem); line-height: .88; letter-spacing: -.02em; }
.final p { margin: 24px auto 34px; max-width: 36rem; color: #dfe3fb; font-size: 1.15rem; }
.final .btn { background: #fff; color: var(--encre); }
.final .btn:hover { background: var(--rose); }
.final .mono { display: block; margin-top: 22px; color: #c6cdf6; }

/* Apparitions simples au défilement */
.apparait { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.apparait.vu { opacity: 1; transform: none; }

/* Motion réduit : tout à l'état final, rien n'est épinglé ni animé. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero { height: auto; }
  .hero__cadre { position: relative; height: auto; min-height: 100svh; }
  .defile { animation: none; }
  .apparait, .reveal-case, .vue, .etape, .bulle { opacity: 1 !important; transform: none !important; transition: none !important; }
  .marque__voyant { animation: none; }
  .avec .mot { opacity: 1; }
}

/* La machine occupe tout le cadre ; l'accroche se pose par-dessus au départ,
   puis s'efface dès qu'on commence à défiler (site.js). */
.hero__cadre { grid-template-rows: 1fr; }
.scene { grid-row: 1; margin-bottom: 70px; }
.hero__texte { position: absolute; inset: 72px 0 auto 0; z-index: 4; padding-bottom: clamp(60px, 12vh, 140px); background: linear-gradient(to bottom, var(--papier) 0, var(--papier) 72%, color-mix(in oklab, var(--papier) 0%, transparent)); }
.hero--portrait .hero__texte { inset: 72px 0 0 0; align-content: center; padding-bottom: 80px; background: var(--papier); }
@media (prefers-reduced-motion: reduce) {
  .hero__texte, .hero--portrait .hero__texte { position: relative; inset: auto; padding-bottom: 20px; background: none; }
  .hero__cadre { grid-template-rows: auto 1fr; }
  .scene { grid-row: 2; min-height: 80svh; }
}

/* Toutes les pièces de la scène se placent depuis leur coin haut-gauche (positions du moteur). */
.scene .el { transform-origin: 0 0; }

/* Téléphone : en-tête compact, mention IA au-dessus de la légende. */
@media (max-width: 640px) {
  .entete { padding: 10px 16px; }
  .marque { font-size: 1.05rem; white-space: nowrap; gap: 8px; }
  .marque__voyant { width: 10px; height: 10px; }
  .entete .btn--petit { padding: 10px 14px; font-size: .8rem; }
  .entete .btn--petit .long { display: none; }
  .entete .btn--petit .court { display: inline; }
  .hero__cadre { padding-top: 58px; }
  .hero--portrait .hero__texte { inset: 58px 0 0 0; }
}
.hero--portrait .demo-mention { bottom: auto; top: 66px; right: 16px; }

.entete .btn--petit .court { display: none; }
@media (max-width: 640px) { .entete .btn--petit .court { display: inline; } }

/* ============================================================ 5. LE TAPIS ROULANT
   La section se fige ; les cartes sortent de la bouche de la machine et
   défilent à l'horizontale au rythme du défilement vertical (site.js). */
.tapis { position: relative; height: 400svh; background: var(--papier-2); }
.tapis__cadre { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; padding: 96px 0 0; }
.tapis__tete { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.tapis__compteur { font-size: .9rem; color: var(--encre-3); white-space: nowrap; }
.tapis__compteur b { font-size: 2.4rem; font-weight: 700; color: var(--encre); letter-spacing: 0; }
.tapis__zone { position: relative; min-height: 0; min-width: 0; display: flex; align-items: center; }
.tapis__bouche { position: absolute; left: 0; top: 50%; z-index: 3; width: clamp(40px, 6vw, 90px); height: min(560px, 72%); transform: translateY(-50%); border-radius: 0 28px 28px 0; background: var(--encre); box-shadow: 10px 0 30px rgba(23, 21, 15, .25); }
.tapis__bouche span { position: absolute; right: 14px; top: 50%; width: 6px; height: 60%; transform: translateY(-50%); border-radius: 3px; background: repeating-linear-gradient(to bottom, var(--rose) 0 8px, transparent 8px 16px); background-position: 0 var(--rouleau, 0px); }
.tapis__piste { display: flex; gap: clamp(18px, 2.4vw, 32px); padding-left: calc(clamp(40px, 6vw, 90px) + 40px); padding-right: 12vw; will-change: transform; }
.tapis__bande { height: 26px; margin-bottom: 24px; background: repeating-linear-gradient(90deg, var(--encre) 0 22px, #2c2a24 22px 44px); background-position: var(--rouleau, 0px) 0; border-block: 3px solid var(--encre); }

.carte-sortie { flex: none; width: clamp(290px, 31vw, 420px); padding: 16px 16px 22px; border-radius: 22px; background: #fffdf8; border: 1.5px solid var(--encre); box-shadow: 8px 8px 0 var(--encre); display: flex; flex-direction: column; }
.carte-sortie__visuel { position: relative; height: clamp(170px, 30svh, 290px); border-radius: 14px; overflow: hidden; background: var(--papier); margin-bottom: 18px; }
.carte-sortie__num { color: var(--bleu); font-size: .78rem; }
.carte-sortie h3 { margin: 6px 0 8px; font-weight: 800; font-stretch: 80%; font-size: clamp(1.45rem, 2.1vw, 1.9rem); line-height: 1; }
.carte-sortie p { margin: 0; color: var(--encre-2); font-size: .98rem; line-height: 1.5; }

.cs-fiche { padding: 14px 16px; display: grid; align-content: center; gap: 2px; background: #fffdf8; border: 1px solid var(--filet); }
.cs-fiche__ligne { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--filet); font-size: .9rem; align-items: center; }
.cs-fiche__ligne .mono { font-size: .6rem; color: var(--encre-3); }
.cs-refus { padding: 16px; display: grid; gap: 12px; align-content: center; background: var(--papier); }
.cs-refus p { margin: 0; padding: 12px 14px; border-radius: 12px; background: #fff; font-weight: 600; font-size: .95rem; line-height: 1.35; border: 1.5px solid var(--encre); }
.cs-refus .mono { display: block; margin-top: 8px; font-weight: 400; font-size: .56rem; color: var(--bleu); }
.cs-refus mark { background: var(--bleu-clair); color: var(--bleu); padding: 0 3px; border-radius: 3px; }
.cs-refus__non { position: relative; color: var(--encre-3); text-decoration: line-through; text-decoration-color: var(--rose); text-decoration-thickness: 3px; }
.cs-tampon { position: absolute; right: 10px; bottom: -12px; padding: 6px 9px !important; border: 2px solid var(--rose); border-radius: 6px; background: #fff; color: var(--rose) !important; transform: rotate(-4deg); text-decoration: none; }
.cs-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--encre); padding: 4px; }
.cs-photos img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.cs-photo img, .cs-film video { width: 100%; height: 100%; object-fit: cover; }
.cs-film { background: #111; }
.cs-film .etiquette { top: auto; bottom: 10px; }
.cs-formats { display: flex; align-items: flex-end; justify-content: center; gap: 12px; padding: 18px 14px 12px; background: var(--papier); }
.cs-formats figure { margin: 0; flex: none; display: grid; gap: 6px; justify-items: center; }
.cs-formats figure:nth-child(1) { width: 44%; }
.cs-formats figure:nth-child(2) { width: 26%; }
.cs-formats figure:nth-child(3) { width: 17%; }
.cs-formats figure > div { width: 100%; border-radius: 8px; overflow: hidden; border: 1.5px solid var(--encre); }
.cs-formats img { width: 100%; height: 100%; object-fit: cover; }
.cs-formats figcaption { font-size: .55rem; color: var(--encre-3); }
.cs-main { padding: 16px; display: grid; align-content: center; gap: 14px; background: var(--papier); }
.cs-main__post { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; background: #fff; border: 1.5px solid var(--encre); }
.cs-main__post img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; }
.cs-main__post b { display: block; font-size: .95rem; }
.cs-main__post .mono { font-size: .56rem; color: var(--encre-3); }
.cs-main__boutons { display: flex; flex-wrap: wrap; gap: 8px; }
.cs-btn { padding: 9px 13px; border-radius: 999px; border: 1.5px solid var(--encre); background: #fff; font-weight: 700; font-size: .82rem; }
.cs-btn--ok { background: var(--bleu); border-color: var(--bleu); color: #fff; }
.cs-curseur { position: absolute; left: 22%; bottom: 18%; width: 22px; height: 22px; background: var(--encre); clip-path: polygon(0 0, 0 100%, 30% 72%, 52% 100%, 66% 92%, 44% 64%, 82% 64%); }

@media (max-width: 640px) {
  .tapis__cadre { padding-top: 76px; }
  .tapis__bouche { width: 18px; border-radius: 0 12px 12px 0; }
  .tapis__bouche span { right: 6px; width: 4px; }
  .tapis__piste { padding-left: 34px; }
  .carte-sortie { width: 80vw; }
  .tapis__compteur b { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .tapis { height: auto; }
  .tapis__cadre { position: relative; height: auto; padding-bottom: 40px; }
  .tapis__zone { overflow-x: auto; padding: 20px 0; }
  .tapis__piste { transform: none !important; }
}

/* ============================================================ 7. LA CONVERSATION */
.questions { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .questions { grid-template-columns: 1fr; } }
.questions__intro { position: sticky; top: 120px; }
@media (max-width: 900px) { .questions__intro { position: static; } }
.conversation { border-radius: 28px; background: #fffdf8; border: 1.5px solid var(--encre); box-shadow: 10px 10px 0 var(--encre); overflow: hidden; }
.conversation__tete { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--filet); }
.conversation__tete b { display: block; font-size: 1rem; }
.conversation__tete .mono { display: inline-flex; align-items: center; gap: 6px; font-size: .62rem; color: var(--encre-3); }
.conversation__tete .mono i { width: 7px; height: 7px; border-radius: 50%; background: #2bb673; }
.conversation__avatar { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--encre); color: var(--papier); display: grid; place-items: center; font-weight: 800; font-stretch: 78%; font-size: .9rem; position: relative; }
.conversation__avatar::after { content: ''; position: absolute; right: -3px; top: -3px; width: 11px; height: 11px; border-radius: 50%; background: var(--rose); border: 2px solid #fffdf8; }
.conversation__fil { display: flex; flex-direction: column; gap: 12px; padding: 24px 20px; }
.bulle { position: relative; margin: 0; max-width: 82%; padding: 13px 17px; border-radius: 20px; font-size: 1.04rem; line-height: 1.45; opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.bulle.vu { opacity: 1; transform: none; }
.bulle--vous { align-self: flex-end; background: var(--bleu); color: #fff; border-bottom-right-radius: 6px; font-weight: 600; }
.bulle--elle { align-self: flex-start; background: var(--papier-2); color: var(--encre); border-bottom-left-radius: 6px; }
.bulle--elle .reponse { display: none; }
.bulle--elle.ecrit .reponse { display: inline; }
.bulle--elle.ecrit .tape { display: none; }
.tape { display: inline-flex; gap: 5px; padding: 4px 0; }
.tape i { width: 8px; height: 8px; border-radius: 50%; background: var(--encre-3); animation: tape 1s ease-in-out infinite; }
.tape i:nth-child(2) { animation-delay: .15s; }
.tape i:nth-child(3) { animation-delay: .3s; }
@keyframes tape { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
.conversation__saisie { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 16px 16px; padding: 10px 10px 10px 20px; border-radius: 999px; border: 1.5px solid var(--encre); text-decoration: none; color: var(--encre-3); transition: border-color .25s, color .25s; }
.conversation__saisie:hover { color: var(--encre); border-color: var(--bleu); }
.conversation__envoi { width: 40px; height: 40px; border-radius: 50%; background: var(--encre); color: var(--papier); display: grid; place-items: center; font-size: 1.1rem; transition: background .25s; }
.conversation__saisie:hover .conversation__envoi { background: var(--bleu); }
@media (prefers-reduced-motion: reduce) { .bulle--elle .reponse { display: inline; } .bulle--elle .tape { display: none; } .tape i { animation: none; } }

/* ============================================================ PIED DE PAGE */
.pied { position: relative; overflow: hidden; background: var(--encre); color: var(--papier); padding-top: clamp(56px, 8vw, 96px); }
.pied a { color: inherit; text-decoration: none; }
.pied__haut { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding-bottom: clamp(40px, 6vw, 72px); border-bottom: 1px solid #34312a; }
.pied__accroche { margin: 0; max-width: 18ch; font-weight: 800; font-stretch: 78%; font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: .98; letter-spacing: -.01em; }
.pied__accroche em { font-style: normal; color: var(--rose); }
.btn--rose { background: var(--rose); color: var(--encre); }
.btn--rose:hover { background: var(--papier); }
.pied__colonnes { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding: clamp(40px, 6vw, 64px) 0; }
@media (max-width: 860px) { .pied__colonnes { grid-template-columns: 1fr 1fr; } .pied__marque { grid-column: 1 / -1; } }
.pied__marque .marque { font-size: 1.5rem; }
.pied__marque p { margin: 16px 0 0; max-width: 34ch; color: #a8a295; font-size: .98rem; }
.pied nav { display: flex; flex-direction: column; gap: 12px; }
.pied nav .mono { margin-bottom: 4px; color: #8f897c; font-size: .66rem; }
.pied nav a { font-size: 1rem; color: #e7e2d6; width: fit-content; background: linear-gradient(var(--rose), var(--rose)) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--ease), color .25s; }
.pied nav a:hover { color: #fff; background-size: 100% 2px; }
.pied__geant { display: flex; flex-wrap: wrap; justify-content: space-between; column-gap: .25em; padding-inline: var(--gouttiere); margin-bottom: -.12em; font-weight: 800; font-stretch: 75%; font-size: clamp(4rem, 15.5vw, 15rem); line-height: .82; letter-spacing: -.035em; color: transparent; -webkit-text-stroke: 2px #7a7466; user-select: none; }
.pied__geant span:last-child { color: var(--papier); -webkit-text-stroke: 0; }
.pied__bas { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; padding: 18px 0 22px; border-top: 1px solid #34312a; font-size: .88rem; color: #a8a295; background: var(--encre); }
.pied__bas .mono { display: inline-flex; align-items: center; gap: 8px; font-size: .64rem; }
.pied__voyant { width: 8px; height: 8px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 10px var(--rose); animation: voyant 2.4s ease-in-out infinite; }
.pied__bas a:hover { color: #fff; }

/* ============================================================ HAUT DE PAGE VIVANT
   Avant tout défilement : l'accroche à gauche, et à droite une machine compacte
   déjà en marche (elle avale un site, sort des posts en continu, compte).
   Dès qu'on défile, l'accroche s'efface et la grande machine prend le relais. */
.hero__texte { inset: 72px 0 0 0; padding-bottom: 90px; background: var(--papier); grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; align-content: center; gap: clamp(24px, 4vw, 64px); }
.hero__gauche { display: flex; flex-direction: column; gap: 22px; }
.hero__gauche .hero__sous { margin: 0; }
.hero__gauche .hero__actions { margin-top: 4px; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 5.6rem); }

.btn--lancer { background: transparent; color: var(--encre); border: 2px solid var(--encre); font-family: inherit; cursor: pointer; }
.btn--lancer:hover { background: var(--encre); color: var(--papier); }
.btn--lancer__icone { position: relative; width: 22px; height: 22px; border-radius: 50%; background: var(--rose); flex: none; }
.btn--lancer__icone::before { content: ''; position: absolute; left: 8px; top: 6px; border-left: 9px solid var(--encre); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.btn--lancer__icone::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--rose); animation: onde 1.8s ease-out infinite; }
@keyframes onde { from { transform: scale(.8); opacity: 1; } to { transform: scale(1.9); opacity: 0; } }

.attract { position: relative; width: 100%; height: min(520px, 62svh); }
.attract__scene { position: absolute; left: 50%; top: 50%; width: 600px; height: 500px; transform: translate(-50%, -50%) scale(var(--k, 1)); }
.attract__machine { position: absolute; left: 40px; top: 210px; width: 300px; height: 236px; border-radius: 30px; background: var(--encre); box-shadow: 0 28px 50px -18px rgba(23, 21, 15, .55), inset 0 2px 0 rgba(255, 255, 255, .08); animation: vibre 2.6s ease-in-out infinite; }
@keyframes vibre { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.attract__ecran { position: absolute; left: 26px; right: 26px; top: 24px; height: 50px; border-radius: 10px; background: #0b1238; border: 1px solid #26307a; padding: 0 12px; display: flex; align-items: center; color: #a9b6ff; font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; white-space: nowrap; overflow: hidden; }
.attract__curseur { width: 8px; height: 14px; margin-left: 3px; background: var(--rose); animation: curseur .9s steps(1) infinite; }
@keyframes curseur { 50% { opacity: 0; } }
.attract__voyants { position: absolute; left: 26px; top: 88px; display: flex; gap: 8px; }
.attract__voyants i { width: 9px; height: 9px; border-radius: 50%; background: #3a372f; animation: voyant-seq 1.5s steps(1) infinite; }
.attract__voyants i:nth-child(2) { animation-delay: .5s; }
.attract__voyants i:nth-child(3) { animation-delay: 1s; }
@keyframes voyant-seq { 0%, 33% { background: var(--rose); box-shadow: 0 0 10px var(--rose); } 34%, 100% { background: #3a372f; box-shadow: none; } }
.attract__rouages { position: absolute; left: 26px; right: 26px; top: 110px; height: 40px; border-radius: 8px; background: repeating-linear-gradient(90deg, #24221c 0 10px, #1a1813 10px 20px); animation: rouler 0.9s linear infinite; }
@keyframes rouler { to { background-position: 40px 0; } }
.attract__nom { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: var(--papier); font-weight: 800; font-stretch: 75%; font-size: 1.5rem; line-height: 1; }
.attract__nom small { display: block; margin-top: 4px; font-family: var(--mono); font-weight: 400; font-size: .5rem; letter-spacing: .3em; color: #8f8a7c; }
.attract__fente { position: absolute; top: 96px; width: 20px; height: 96px; border-radius: 7px; background: #050504; overflow: hidden; }
.attract__fente::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, #2b2924 0 5px, #0d0c0a 5px 10px); animation: rouler-v .6s linear infinite; }
@keyframes rouler-v { to { background-position: 0 10px; } }
.attract__fente--g { left: -5px; }
.attract__fente--d { right: -5px; }

.attract__entree { position: absolute; left: -30px; top: 270px; z-index: 2; padding: 9px 13px; border-radius: 11px; background: #fffdf8; border: 1.5px solid var(--encre); box-shadow: 3px 3px 0 var(--encre); font-weight: 700; font-size: .9rem; white-space: nowrap; animation: avaler 4s var(--ease) infinite; }
.attract__entree .mono { display: block; font-size: .55rem; color: var(--encre-3); font-weight: 400; }
@keyframes avaler { 0% { transform: translateX(-60px); opacity: 0; } 15%, 45% { transform: translateX(0); opacity: 1; } 70% { transform: translateX(70px) scale(.25); opacity: 0; } 100% { transform: translateX(70px) scale(.25); opacity: 0; } }

.attract__flux { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.attract__post { position: absolute; left: 300px; top: 270px; width: 128px; border-radius: 12px; background: #fff; border: 1.5px solid var(--encre); box-shadow: 4px 4px 0 var(--encre); overflow: hidden; opacity: 0; animation: jaillir 8s var(--ease) infinite; animation-delay: calc(var(--i) * 1s); }
.attract__post img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.attract__post span { display: block; padding: 5px 8px; font-family: var(--mono); font-size: .5rem; letter-spacing: .08em; text-transform: uppercase; color: var(--encre-3); }
.attract__post--texte { background: var(--bleu-clair); }
.attract__post--texte b { display: block; padding: 12px 10px 6px; color: var(--bleu); font-size: .78rem; line-height: 1.25; min-height: 118px; }
@keyframes jaillir {
  0% { transform: translate(0, 0) scale(.2) rotate(0); opacity: 0; }
  6% { opacity: 1; }
  28% { transform: translate(calc(50px + var(--dx)), -150px) scale(1) rotate(var(--r)); opacity: 1; }
  80% { transform: translate(calc(80px + var(--dx)), -250px) scale(.96) rotate(var(--r)); opacity: 1; }
  100% { transform: translate(calc(95px + var(--dx)), -300px) scale(.9) rotate(var(--r)); opacity: 0; }
}
.attract__compteur { position: absolute; left: 40px; top: 466px; color: var(--encre-3); font-size: .62rem; }
.attract__compteur b { color: var(--bleu); font-size: .9rem; }
.attract--pause * { animation-play-state: paused !important; }

/* Indicateur de défilement : visible tant qu'on n'a pas commencé. */
.indice-defile { position: absolute; left: 50%; bottom: clamp(18px, 3.5vh, 34px); z-index: 6; display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 12px; border-radius: 999px; background: var(--encre); color: var(--papier); transform: translateX(-50%); transition: opacity .4s, transform .4s var(--ease); }
.indice-defile .mono { font-size: .66rem; }
.indice-defile__souris { position: relative; width: 20px; height: 30px; border: 2px solid var(--papier); border-radius: 10px; }
.indice-defile__souris i { position: absolute; left: 50%; top: 5px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: var(--rose); animation: molette 1.4s ease-in-out infinite; }
@keyframes molette { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
.hero .legende-scene { transition: opacity .4s; }
.hero--repos .legende-scene { opacity: 0; pointer-events: none; }
.hero:not(.hero--repos) .indice-defile { opacity: 0; transform: translate(-50%, 16px); pointer-events: none; }

/* Téléphone : machine compacte sous les boutons. */
@media (max-width: 900px), (max-aspect-ratio: 1/1) {
  .hero__texte { grid-template-columns: 1fr; align-content: start; gap: 8px; padding-top: 22px; padding-bottom: 70px; overflow: hidden; }
  .hero__gauche { gap: 14px; }
  .hero h1 { font-size: clamp(2.1rem, 9.6vw, 3.4rem); }
  .hero__sous { font-size: .98rem !important; }
  .hero__actions .btn { padding: 13px 18px; font-size: .95rem; }
  .attract { height: clamp(190px, 30svh, 300px); }
}
@media (prefers-reduced-motion: reduce) {
  .attract * { animation: none !important; }
  .attract__post { opacity: 1; transform: translate(calc(90px + var(--dx)), -200px) rotate(var(--r)); }
  .attract__post:nth-child(n + 4) { display: none; }
  .indice-defile { display: none; }
}
.attract__ia { display: block; margin-top: 6px; font-size: .52rem; letter-spacing: .04em; text-transform: none; color: var(--encre-3); }
.hero--repos .demo-mention { opacity: 0; }
.demo-mention { transition: opacity .4s; }
.indice-defile .mono { white-space: nowrap; }
