/* Animation du hero façon stories — styles autonomes, réutilisables dans la vitrine */

@property --n { syntax: '<integer>'; inherits: false; initial-value: 0; }
@property --p { syntax: '<number>'; inherits: false; initial-value: 0; }

.story, .planche-wrap {
  --bleu: #147aa2;
  --nuit: #082b3b;
  --nuit-2: #0d4058;
  --orange: #ea8300;
  --orange-clair: #ffb54d;
  --encre: #1b2a33;
  --gris: #5b6a72;
  --pale: #f1f6f8;
  --trait: #e1e8ec;
  --vert: #12a150;
  --e: cubic-bezier(.2, .8, .2, 1);
  --rebond: cubic-bezier(.3, 1.45, .5, 1);
  --titre: "Public Sans", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
}

/* ── Conteneur de l'animation (sa taille est fixée par la page qui l'accueille) ── */
.story {
  position: relative; overflow: hidden; width: 100%;
  container: story / inline-size;
  background: var(--bleu); color: #fff; font-family: "Open Sans", system-ui, sans-serif; font-size: 16px; line-height: normal; text-align: left;
  user-select: none; -webkit-user-select: none; touch-action: manipulation; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
:where(.story) *, :where(.story) *::before, :where(.story) *::after { box-sizing: border-box; }
/* Remises à zéro au poids d'une balise : passent devant Bootstrap (chargé avant), jamais devant une classe de l'animation */
:where(.story) p, :where(.story) ul, :where(.story) blockquote, :where(.story) h4, :where(.story) h5 { margin: 0; }
:where(.story) h4, :where(.story) h5 { font-family: inherit; }
.story .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Barres de progression ── */
/* Barre de progression en bas de l'animation, bouton pause juste au-dessus à droite */
/* La barre reste invisible : elle cadence les plans ; la frise du sommaire montre la progression */
.bars { opacity: 0; position: absolute; z-index: 6; bottom: 3.4cqw; left: 7cqw; right: 7cqw; display: flex; gap: .9cqw; pointer-events: none; }
.bars span { flex: 1; height: max(3px, .8cqw); border-radius: 9px; background: rgba(255,255,255,.32); overflow: hidden; transition: background .4s; }
.bars i { display: block; height: 100%; width: 0; background: #fff; transition: background .4s; }
.bars span.done i { width: 100%; }
.bars span.run i { animation: barre var(--dur) linear forwards; }
@keyframes barre { to { width: 100%; } }
.story[data-theme=light] .bars span { background: rgba(27,42,51,.16); }
.story[data-theme=light] .bars i { background: var(--encre); }

.compte { position: absolute; z-index: 6; top: 7.6cqw; left: 4.4cqw; display: flex; align-items: center; gap: 1.8cqw; font: 700 3.3cqw/1 var(--titre); letter-spacing: -.02em; color: #fff; pointer-events: none; transition: color .4s; }
.compte b { width: 6.6cqw; height: 6.6cqw; border-radius: 50%; background: var(--orange); display: grid; place-items: center; font-size: 3.4cqw; color: #fff; }
.story[data-theme=light] .compte { color: var(--encre); }

.pause { position: absolute; z-index: 7; bottom: 2.2cqw; right: 3.4cqw; width: 8cqw; height: 8cqw; min-width: 32px; min-height: 32px; border: 0; border-radius: 50%; background: transparent; color: #fff; font-size: 4.6cqw; display: grid; place-items: center; cursor: pointer; transition: color .4s; }
.pause:focus-visible { outline: 2px solid var(--orange); }
.story[data-theme=light] .pause { color: var(--encre); }

.story.is-paused, .story.is-paused *, .story.is-paused *::before, .story.is-paused *::after { animation-play-state: paused !important; }

/* ── Scènes ── */
.scene { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 6cqw 7cqw 15cqw; opacity: 0; visibility: hidden; transform: scale(1.05); transition: opacity .45s ease, transform .45s ease, visibility 0s .45s; }
/* Profondeur : le plan qui arrive se pose (léger zoom arrière) par-dessus le précédent */
.scene.is-vis { z-index: 2; opacity: 1; visibility: visible; transform: none; transition: opacity .5s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
/* Le plan qui part reste opaque et immobile dessous, le temps que le suivant le recouvre */
.scene.part { z-index: 1; opacity: 1; visibility: visible; transform: none; transition: none; }
.scene.blanc { background: #fff; color: var(--encre); }
/* Fond de couleur unique : le bleu des titres du site, légèrement éclairé */
.scene.nuit { background: radial-gradient(120% 80% at 75% 0%, #2a98c4, var(--bleu) 55%, #0f6a8f); }
.scene .zone { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; position: relative; }

/* Titre : même taille et même place sur tous les plans (2 lignes maximum) */
.big { margin: 0; font: 800 7.4cqw/1.06 var(--titre); letter-spacing: -.045em; color: #fff; text-align: left; }
/* Le titre en haut du plan (avant l'étiquette et le visuel) */
.scene > .big { order: -2; }
.scene > .chap { order: -1; margin-top: 3cqw; }
.big span { display: block; }
.big em { font-style: normal; color: var(--orange-clair); }
.blanc .big { color: var(--bleu); }
.blanc .big em { color: var(--orange); }
/* Dévoilement ligne par ligne : chaque ligne remonte derrière un cache */
.big .ligne { overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.is-on .big .ligne > .mot { animation: monte .75s cubic-bezier(.2, .85, .25, 1) var(--d, 0s) both; }
@keyframes monte { from { transform: translateY(110%); } to { transform: none; } }
.sous { margin: 2.4cqw 0 0; font-size: 3.5cqw; line-height: 1.4; color: rgba(255,255,255,.78); }
.blanc .sous { color: var(--gris); }

.chap { position: relative; align-self: flex-start; display: inline-flex; align-items: center; gap: 1.8cqw; padding: 1.4cqw 2.8cqw; border-radius: 99px; background: #eef4f7; color: var(--bleu); font: 700 2.8cqw/1 var(--titre); text-transform: uppercase; letter-spacing: .07em; }
.chap i { color: var(--orange); }
.chap em { font-style: normal; color: var(--gris); font-weight: 600; }
.nuit .chap { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.28); }
.nuit .chap em { color: rgba(255,255,255,.75); }
.nuit .chap i { color: var(--orange-clair); }

/* Animations utilitaires — uniquement quand la scène joue */
.is-on .fu { animation: fu .8s var(--e) var(--d, 0s) both; }
.is-on .pop { animation: pop .65s var(--rebond) var(--d, 0s) both; }
.is-on .pose { animation: pose .9s var(--e) var(--d, 0s) both; }
@keyframes fu { from { opacity: 0; transform: translateY(5cqw); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: none; } }
.pose { transform: rotate(var(--r, 0deg)); }
@keyframes pose { from { opacity: 0; transform: translate(var(--tx, 0), 14cqw) rotate(calc(var(--r, 0deg) - 9deg)) scale(.9); } to { opacity: 1; transform: rotate(var(--r, 0deg)); } }

.compteur { counter-reset: n var(--n); }
.compteur::after { content: counter(n); }
.is-on .compteur { animation: compte 1.5s var(--e) var(--d, .2s) both; }
@keyframes compte { from { --n: 0; } to { --n: var(--to); } }

/* ── 1 · L'entretien ── */
.s1 .fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.is-on.s1 .fond { animation: zoom 6s ease-out both; }
@keyframes zoom { from { transform: scale(1.14); } to { transform: scale(1); } }
.s1 .voile { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,72,98,.45) 0%, rgba(11,72,98,0) 22%, rgba(11,72,98,0) 45%, rgba(11,72,98,.9) 82%); }
.s1 .zone { justify-content: flex-start; align-items: stretch; }
.live { align-self: flex-start; display: inline-flex; align-items: center; gap: 1.8cqw; padding: 1.6cqw 3cqw; border-radius: 99px; background: rgba(11,72,98,.6); color: #fff; font: 600 3.1cqw/1 var(--titre); backdrop-filter: blur(6px); }
.live b { width: 2cqw; height: 2cqw; border-radius: 50%; background: #ff4d3d; }
.is-on .live b { animation: pulse 1.1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.st-bulle { position: relative; align-self: flex-end; margin-top: 5cqw; max-width: 74%; padding: 3cqw 4cqw; border-radius: 5cqw 5cqw 1cqw 5cqw; background: #fff; color: var(--encre); font: 600 4cqw/1.3 var(--titre); box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.st-bulle small { display: flex; align-items: center; gap: 1.6cqw; margin-bottom: 1.6cqw; font: 700 2.7cqw/1 "Open Sans", sans-serif; color: var(--bleu); text-transform: uppercase; letter-spacing: .05em; }
.st-bulle small img { width: 7cqw; height: 7cqw; border-radius: 50%; object-fit: cover; }
.onde { position: relative; display: flex; align-items: center; gap: 1cqw; height: 12cqw; margin: auto 0 5cqw; }
.onde i { flex: 1; height: 100%; border-radius: 9px; background: rgba(255,255,255,.9); transform: scaleY(.12); }
.is-on .onde i { animation: onde var(--t, .9s) ease-in-out var(--d2, 0s) infinite alternate; }
@keyframes onde { 0% { transform: scaleY(.12); } 100% { transform: scaleY(var(--h, .8)); } }

/* ── 2 · La technologie ── */
.s2 .zone { align-items: stretch; }
.transcript, .cartes { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); }
.orateur { display: flex; align-items: center; gap: 3cqw; margin-bottom: 4cqw; }
.orateur img { width: 13cqw; height: 13cqw; border-radius: 50%; object-fit: cover; border: .7cqw solid var(--orange); }
.orateur .mini { flex: 1; display: flex; align-items: center; gap: .8cqw; height: 8cqw; }
.orateur .mini i { flex: 1; height: 100%; border-radius: 9px; background: var(--orange-clair); transform: scaleY(.15); }
.is-on .orateur .mini i { animation: onde var(--t, .6s) ease-in-out var(--d2, 0s) infinite alternate; }
.transcript p { margin: 0 0 3.4cqw; font: 500 4.2cqw/1.42 "Open Sans", sans-serif; color: rgba(255,255,255,.86); clip-path: inset(0 100% 0 0); }
.is-on .transcript p { animation: tape 1s steps(26, end) var(--d) forwards; }
@keyframes tape { to { clip-path: inset(0 0 0 0); } }
.transcript mark { background: transparent; color: inherit; border-radius: 1cqw; padding: 0 .6cqw; }
.is-on .transcript mark { animation: surligne .4s ease 3.3s forwards; }
@keyframes surligne { to { background: rgba(234,131,0,.32); color: #ffd9a8; } }
.is-on .transcript { animation: sort .55s ease-in 4s forwards; }
@keyframes sort { to { opacity: 0; transform: translateY(calc(-50% - 10cqw)) scale(.94); filter: blur(4px); } }
.carte { margin-bottom: 3cqw; padding: 3.4cqw 4cqw; border-radius: 4cqw; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(4px); }
.carte small { display: block; margin-bottom: 2.2cqw; font: 700 2.7cqw/1 var(--titre); text-transform: uppercase; letter-spacing: .08em; color: var(--orange-clair); }
.carte .puces { display: flex; flex-wrap: wrap; gap: 1.6cqw; }
.carte .puces span { padding: 1.4cqw 2.6cqw; border-radius: 99px; background: rgba(255,255,255,.92); color: var(--nuit); font: 600 3.1cqw/1.1 var(--titre); }

/* ── 3 · La relecture ── */
.s-revue .zone { align-items: stretch; justify-content: center; gap: 4.4cqw; }
.doc { position: relative; padding: 4cqw 4.4cqw; border-radius: 4cqw; background: #fff; border: 1px solid var(--trait); box-shadow: 0 4cqw 9cqw -5cqw rgba(8,43,59,.35); }
.doc h4 { margin: 0 0 1.8cqw; font: 800 4.2cqw/1.15 var(--titre); color: var(--bleu); letter-spacing: -.03em; }
.doc p { margin: 0; font: 500 3.5cqw/1.55 "Open Sans", sans-serif; color: var(--encre); }
.doc del { text-decoration: none; background: linear-gradient(#e0402a, #e0402a) 0 58% / 0% .45cqw no-repeat; }
.is-on .doc del { animation: barre-mot .5s ease var(--d) forwards; }
@keyframes barre-mot { to { background-size: 100% .45cqw; color: #9aa6ac; } }
.doc ins { display: inline-block; text-decoration: none; padding: 0 .8cqw; border-radius: 1cqw; background: rgba(18,161,80,.13); color: #0b7a3c; font-weight: 600; }
.coms { display: grid; gap: 1.6cqw; margin-top: 3cqw; }
.st-com { display: flex; align-items: center; gap: 2cqw; font: 600 3cqw/1.25 var(--titre); color: var(--encre); }
.st-com img { width: 7cqw; height: 7cqw; border-radius: 50%; object-fit: cover; flex: none; }
.st-com span { padding: 1.6cqw 2.8cqw; border-radius: 3cqw 3cqw 3cqw 1cqw; background: #eef4f7; }
.st-com.elle { flex-direction: row-reverse; }
.st-com.elle span { border-radius: 3cqw 3cqw 1cqw 3cqw; background: #fdf0e1; }
.tampon { position: absolute; right: 3.4cqw; top: 3.4cqw; padding: 1.2cqw 2.6cqw; border: .6cqw solid var(--vert); border-radius: 2cqw; color: var(--vert); font: 800 3cqw/1 var(--titre); text-transform: uppercase; letter-spacing: .06em; transform: rotate(-8deg); }
.is-on .tampon { animation: tampon .45s cubic-bezier(.5,1.8,.6,1) var(--d) both; }
@keyframes tampon { from { opacity: 0; transform: rotate(-8deg) scale(2.4); } to { opacity: 1; transform: rotate(-8deg) scale(1); } }
.st-etapes { display: grid; gap: 2.6cqw; }
.st-etape { display: grid; grid-template-columns: 14cqw 1fr 6.4cqw; align-items: center; gap: 2.6cqw; }
.st-etape .av { display: flex; justify-content: center; }
.st-etape .av img { width: 9cqw; height: 9cqw; border-radius: 50%; object-fit: cover; border: .5cqw solid #fff; box-shadow: 0 0 0 1px var(--trait); }
.st-etape .av img + img { margin-left: -3.4cqw; }
.st-etape .av > i { width: 9cqw; height: 9cqw; border-radius: 50%; background: var(--bleu); color: #fff; display: grid; place-items: center; font-size: 4.4cqw; }
.st-etape b { display: block; font: 800 3.8cqw/1.15 var(--titre); letter-spacing: -.02em; color: var(--encre); }
.st-etape small { display: block; margin-top: .6cqw; font: 500 2.9cqw/1.3 "Open Sans", sans-serif; color: var(--gris); }
.st-etape .ok { width: 6.4cqw; height: 6.4cqw; border-radius: 50%; background: var(--vert); color: #fff; display: grid; place-items: center; font-size: 3.8cqw; }

/* ── 4 · Les expertises intégrées ── */
.integ { width: 100%; display: grid; grid-template-columns: 1fr 6cqw 22cqw; grid-template-rows: repeat(5, auto); row-gap: 2.6cqw; align-items: center; }
.exp2 { grid-column: 1; display: flex; align-items: center; gap: 2.4cqw; padding: 1.4cqw 3cqw 1.4cqw 1.4cqw; border-radius: 99px; background: var(--pale); font: 700 3.3cqw/1.1 var(--titre); letter-spacing: -.01em; color: var(--encre); }
.exp2 img { width: 10cqw; height: 10cqw; border-radius: 50%; object-fit: cover; flex: none; }
.exp2 i { margin-left: auto; color: var(--bleu); font-size: 3.8cqw; }
.fil { position: relative; grid-column: 2; height: .6cqw; border-radius: 9px; background: linear-gradient(90deg, #cfe0e8, var(--bleu)); transform-origin: left; }
.is-on .fil { animation: fil .5s var(--e) var(--d) both; }
@keyframes fil { from { transform: scaleX(0); } }
/* Transmission : chaque expertise envoie sa part vers le modèle */
.fil::after { content: ""; position: absolute; top: 50%; left: 0; width: 2cqw; height: 2cqw; margin-top: -1cqw; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 .6cqw rgba(234,131,0,.25); opacity: 0; }
.is-on .fil::after { animation: transmet 1.1s ease-in var(--d2) infinite; }
@keyframes transmet { 0% { left: -1cqw; opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { left: calc(100% - 1cqw); opacity: 0; } }
.techno { grid-column: 3; grid-row: 1 / -1; align-self: stretch; border-radius: 5cqw; background: var(--bleu); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2cqw; padding: 3cqw 2cqw; text-align: center; font: 700 2.9cqw/1.2 var(--titre); }
.techno i { font-size: 8cqw; color: var(--orange-clair); }
.is-on .techno i { animation: pulse 1.6s ease-in-out 1.8s infinite; }

/* ── 5 · L'écosystème ── */
.orbite-zone { position: relative; width: 84cqw; height: 84cqw; flex: none; }
.orbite { position: absolute; inset: 0; }
.is-on .orbite { animation: tourne 6s linear both; }
.is-on .orbite .cr { animation: tourne-inv 6s linear both; }
@keyframes tourne { to { transform: rotate(32deg); } }
@keyframes tourne-inv { to { transform: rotate(-32deg); } }
.liens { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.liens line { stroke: rgba(255,255,255,.45); stroke-width: .35; stroke-dasharray: 20; stroke-dashoffset: 20; }
.is-on .liens line { animation: trace .6s ease var(--d) forwards; }
@keyframes trace { to { stroke-dashoffset: 0; } }
.slot { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--a)) translateX(32.5cqw) rotate(calc(-1 * var(--a))); }
.cr { position: absolute; left: -7.6cqw; top: -7.6cqw; width: 15.2cqw; height: 15.2cqw; }
.puce { width: 100%; height: 100%; border-radius: 50%; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.32); backdrop-filter: blur(4px); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6cqw; }
.puce i { font-size: 5.2cqw; line-height: 1; }
.puce span { font: 600 2.15cqw/1 var(--titre); letter-spacing: -.01em; white-space: nowrap; opacity: .9; }
.centre { position: absolute; left: 50%; top: 50%; width: 28cqw; height: 28cqw; margin: -14cqw 0 0 -14cqw; border-radius: 50%; padding: 1cqw; background: var(--orange); }
.centre img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.centre::after { content: ""; position: absolute; inset: -1cqw; border-radius: 50%; border: .5cqw solid var(--orange); opacity: 0; }
.is-on .centre::after { animation: halo 1.8s ease-out 1.6s infinite; }
@keyframes halo { from { opacity: .8; transform: scale(1); } to { opacity: 0; transform: scale(1.6); } }

/* ── 6 à 11 · Les supports ── */
.sup .zone { justify-content: center; }
.cartes-vis { position: relative; width: 82cqw; height: 92cqw; }
.cartes-vis img { position: absolute; width: 70cqw; border-radius: 1.4cqw; box-shadow: 0 4cqw 8cqw -3cqw rgba(8,43,59,.45); }
.cartes-vis .recto { left: 0; top: 6cqw; z-index: 2; }
.cartes-vis .verso { right: 0; bottom: 6cqw; }
/* Supports print aux proportions réelles : flyer A5 (14,8 cm de large),
   carte de visite (8,5 cm) → la carte fait 57 % de la largeur du flyer. */
.print { position: relative; width: 90cqw; height: 92cqw; }
.print img { position: absolute; box-shadow: 0 4cqw 9cqw -3cqw rgba(8,43,59,.45); }
.print .fl-recto { left: 0; top: 0; width: 52cqw; border-radius: .7cqw; z-index: 2; }
.print .fl-verso { right: 0; top: 6cqw; width: 52cqw; border-radius: .7cqw; z-index: 1; }
.print .ca-verso { left: 36cqw; top: 66cqw; width: 29.6cqw; border-radius: .9cqw; z-index: 3; }
.print .ca-recto { left: 10cqw; top: 62cqw; width: 29.6cqw; border-radius: .9cqw; z-index: 4; }
.flyers { position: relative; width: 84cqw; height: 92cqw; }
.flyers img { position: absolute; width: 50cqw; border-radius: 1cqw; box-shadow: 0 4cqw 9cqw -3cqw rgba(8,43,59,.45); }
.flyers .recto { left: 0; top: 2cqw; z-index: 2; }
.flyers .verso { right: 0; top: 14cqw; }

.li { width: 100%; border-radius: 3.6cqw; background: #fff; box-shadow: 0 4cqw 10cqw -5cqw rgba(8,43,59,.45); overflow: hidden; border: 1px solid var(--trait); }
.li .ban { display: block; width: 100%; aspect-ratio: 4 / 1; object-fit: cover; }
.li .ph { position: relative; display: block; width: 24cqw; height: 24cqw; margin: -12cqw 0 0 5cqw; border-radius: 50%; border: 1.1cqw solid #fff; object-fit: cover; }
.li .corps { padding: 2cqw 5cqw 5cqw; font-family: system-ui, "Segoe UI", sans-serif; }
.li h5 { margin: 0; font-size: 5.2cqw; font-weight: 700; color: #191919; }
.li .titre { margin: .8cqw 0 0; font-size: 3.6cqw; color: #191919; }
.li .lieu { margin: 1.2cqw 0 0; font-size: 2.9cqw; color: #666; }
.li .lieu a { color: #0a66c2; font-weight: 600; text-decoration: none; }
.li .btns { display: flex; gap: 2cqw; margin-top: 3cqw; }
.li .btns span { padding: 1.6cqw 3.6cqw; border-radius: 99px; font-size: 3cqw; font-weight: 600; border: 1px solid #0a66c2; color: #0a66c2; }
.li .btns span:first-child { background: #0a66c2; color: #fff; }
.li .infos { margin-top: 3.6cqw; padding-top: 3.2cqw; border-top: 1px solid #eee; font-size: 3cqw; line-height: 1.45; color: #333; }
.li .infos b { display: block; margin-bottom: .8cqw; font-size: 3.4cqw; color: #191919; }

.fiche { width: 100%; border-radius: 4cqw; overflow: hidden; background: #fff; border: 1px solid var(--trait); box-shadow: 0 4cqw 10cqw -5cqw rgba(8,43,59,.45); }
.fiche .plan { position: relative; height: 24cqw; background-color: #e9eef0; background-image: linear-gradient(28deg, transparent 46%, #fff 46%, #fff 54%, transparent 54%), linear-gradient(-62deg, transparent 47%, #fff 47%, #fff 52%, transparent 52%), linear-gradient(90deg, transparent 70%, #d7e7d3 70%); }
.fiche .plan i { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -80%); font-size: 10cqw; color: #e0402a; }
.fiche .corps { padding: 3.6cqw 4.6cqw 4cqw; }
.fiche h5 { margin: 0; font: 800 4.8cqw/1.15 var(--titre); letter-spacing: -.02em; color: var(--encre); }
.fiche .cat { margin: .8cqw 0 0; font-size: 3cqw; color: var(--gris); }
.fiche .actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6cqw; margin: 3.4cqw 0; text-align: center; font: 600 2.5cqw/1.2 var(--titre); color: var(--bleu); }
.fiche .actions i { display: grid; place-items: center; width: 9cqw; height: 9cqw; margin: 0 auto 1cqw; border-radius: 50%; border: 1px solid var(--trait); font-size: 4cqw; }
.fiche .actions span:first-child i { background: var(--bleu); color: #fff; border-color: var(--bleu); }
.fiche .photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4cqw; }
.fiche .photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2cqw; }
.fiche ul { list-style: none; margin: 3.2cqw 0 0; padding: 0; display: grid; gap: 1.8cqw; font-size: 3.1cqw; color: var(--encre); }
.fiche li i { color: var(--bleu); margin-right: 2cqw; }

/* Fiche établissement + publications : la fiche (réduite, même rendu) à droite,
   trois publications à gauche reliées par des pointillés qui partent de la fiche */
.fiche-posts { width: 100%; display: grid; grid-template-columns: 34cqw 1fr; column-gap: 6cqw; align-items: center; }
.s-fiche .fiche { zoom: .58; width: auto; }
.posts { display: grid; gap: 3.6cqw; }
.pl { position: relative; }
.post { position: relative; z-index: 1; display: flex; align-items: center; gap: 1.8cqw; padding: 1.8cqw; border-radius: 2.6cqw; background: #fff; border: 1px solid var(--trait); box-shadow: 0 2cqw 5cqw -3cqw rgba(8,43,59,.35); }
/* Le post glisse de droite à gauche, dans le prolongement du pointillé qui vient de se tracer */
.is-on .post { animation: post-arrive .65s var(--e) var(--d) both; }
@keyframes post-arrive { from { opacity: 0; transform: translateX(8cqw); } to { opacity: 1; transform: none; } }
.post img { width: 8.6cqw; height: 8.6cqw; border-radius: 1.6cqw; object-fit: cover; flex: none; }
.post small { display: flex; align-items: center; gap: .8cqw; margin-bottom: .8cqw; font: 700 1.9cqw/1 var(--titre); text-transform: uppercase; letter-spacing: .06em; color: var(--orange); }
.post b { display: block; font: 700 2.4cqw/1.22 var(--titre); letter-spacing: -.01em; color: var(--encre); }
.post-fil { position: absolute; left: 100%; top: 50%; width: 6cqw; height: 0; border-top: max(1px, .35cqw) dashed var(--bleu); transform-origin: right center; }
.is-on .post-fil { animation: fil-post .45s ease-out var(--d) both; }
@keyframes fil-post { from { transform: scaleX(0); } to { transform: none; } }

/* Un site prêt pour l'IA : écrans (réduits) en haut à gauche, question à leur droite */
.ia-haut { position: relative; align-self: stretch; height: 44cqw; flex: none; }
.ia-haut .ia-q { position: absolute; right: 0; top: 5cqw; z-index: 2; max-width: 42%; }
.s-ia .ia-rep { margin-top: 0; }
/* Appareils fins : portable et téléphone, haut du site seulement (sans défilement) */
.ia-ecrans { position: absolute; left: 0; top: 1.5cqw; width: 50cqw; height: 40cqw; }
.portable { position: absolute; left: 0; top: 0; width: 44cqw; filter: drop-shadow(0 2.4cqw 3cqw rgba(0,0,0,.28)); }
.portable-ecran { aspect-ratio: 16 / 10; padding: .8cqw; border-radius: 1.8cqw 1.8cqw .5cqw .5cqw; background: #1b2127; box-shadow: inset 0 0 0 max(1px, .12cqw) #3a434b; }
.portable-ecran img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: .8cqw; }
.portable-base { position: relative; width: 52cqw; height: 1.5cqw; margin-left: -4cqw; border-radius: .3cqw .3cqw 2.4cqw 2.4cqw; background: linear-gradient(#e6ebee, #b8c2c8); }
.portable-base::after { content: ""; position: absolute; left: 50%; top: 0; width: 8cqw; height: .55cqw; margin-left: -4cqw; border-radius: 0 0 1cqw 1cqw; background: #a9b4ba; }
.mini-tel { position: absolute; left: 34.5cqw; top: 10.5cqw; width: 12cqw; aspect-ratio: 9 / 19; padding: .55cqw; border-radius: 2.4cqw; background: #1b2127; box-shadow: inset 0 0 0 max(1px, .12cqw) #3a434b, 0 2cqw 3.6cqw -1cqw rgba(0,0,0,.45); }
.mini-ecran { width: 100%; height: 100%; overflow: hidden; border-radius: 1.9cqw; background: #fff; }
.mini-ecran img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ecrans { position: relative; width: 86cqw; height: 82cqw; }
.ordi { position: absolute; left: 0; top: 4cqw; width: 78cqw; }
.ordi .cadre-o { padding: 1.2cqw; border-radius: 2.2cqw; background: #101418; }
.ordi img { display: block; width: 100%; }
/* Écran d'ordinateur : la page d'accueil complète défile dans un écran 16/10 */
.ordi .ecran-o { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 1cqw; background: #fff; }
.is-on .ordi .ecran-o img { animation: defile-o 5s cubic-bezier(.45,0,.25,1) 1s both; }
@keyframes defile-o { 0% { transform: none; } 36% { transform: translateY(-17%); } 50% { transform: translateY(-17%); } 100% { transform: translateY(-43%); } }
.ordi .pied { width: 26cqw; height: 6cqw; margin: 0 auto; background: linear-gradient(#c4ced3, #dfe5e8); clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%); }
.tel { position: relative; width: var(--tw, 46cqw); height: calc(var(--tw, 46cqw) * 1.78); border-radius: calc(var(--tw, 46cqw) * .13); padding: calc(var(--tw, 46cqw) * .035); background: #101418; box-shadow: 0 5cqw 10cqw -5cqw rgba(8,43,59,.6); flex: none; }
.ecrans .tel { position: absolute; right: 0; bottom: 0; --tw: 31cqw; }
.ecran { width: 100%; height: 100%; border-radius: calc(var(--tw, 46cqw) * .1); overflow: hidden; background: #fff; }
.ecran img { width: 100%; display: block; }
.is-on .ecran img { animation: defile 5.6s cubic-bezier(.45,0,.25,1) .8s both; }
@keyframes defile { 0% { transform: none; } 38% { transform: translateY(-12%); } 50% { transform: translateY(-12%); } 100% { transform: translateY(-36%); } }
/* Page de prestation (plan 10) : on s'attarde sur l'introduction, puis on descend dans le sommaire */
.is-on .ecran img.presta { animation: defile-presta 5s cubic-bezier(.45,0,.25,1) 1.3s both; }
@keyframes defile-presta { 0% { transform: none; } 30% { transform: none; } 62% { transform: translateY(-9%); } 74% { transform: translateY(-9%); } 100% { transform: translateY(-17%); } }
.tel .url { position: absolute; z-index: 2; left: 50%; top: -4.6cqw; transform: translateX(-50%); white-space: nowrap; padding: 1.2cqw 2.8cqw; border-radius: 99px; background: #fff; color: var(--encre); font: 600 2.7cqw/1 var(--titre); box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.tel .url i { color: var(--vert); margin-right: .8cqw; }

.ia-q { align-self: flex-end; max-width: 84%; padding: 3cqw 4cqw; border-radius: 5cqw 5cqw 1cqw 5cqw; background: #fff; color: var(--encre); font: 600 3.8cqw/1.3 var(--titre); }
.ia-q small { display: flex; align-items: center; gap: 1.4cqw; margin-bottom: 1.4cqw; font: 700 2.6cqw/1 "Open Sans", sans-serif; text-transform: uppercase; letter-spacing: .05em; color: var(--bleu); }
/* Réponse de l'assistant : carte claire, mots qui s'écrivent un à un, source citée */
.ia-rep { align-self: stretch; margin-top: 3.4cqw; padding: 3.4cqw 4cqw 3.2cqw; border-radius: 4cqw; background: rgba(255,255,255,.96); color: var(--encre); box-shadow: 0 4cqw 9cqw -5cqw rgba(0,0,0,.4); }
.ia-tete { display: flex; align-items: center; gap: 1.4cqw; margin-bottom: 2cqw; font: 700 2.5cqw/1 "Open Sans", sans-serif; text-transform: uppercase; letter-spacing: .06em; color: var(--bleu); }
.ia-tete i { color: var(--orange); font-size: 3cqw; }
.ia-l { font: 500 3.15cqw/1.48 "Open Sans", sans-serif; color: #2a3a43; }
.ia-l + .ia-l { margin-top: 1.6cqw; }
.ia-l b { font-weight: 700; color: var(--encre); }
.mot-ia { display: inline-block; }
.is-on .mot-ia { animation: mot-ia .35s ease var(--d) both; }
@keyframes mot-ia { from { opacity: 0; filter: blur(2px); transform: translateY(.4cqw); } to { opacity: 1; filter: none; transform: none; } }
.ia-src { display: inline-flex; align-items: center; gap: 1.2cqw; margin-top: 2.6cqw; padding: 1cqw 2.4cqw 1cqw 1cqw; border-radius: 99px; background: #eef4f7; font: 600 2.5cqw/1 var(--titre); color: var(--bleu); }
.ia-src img { width: 4.4cqw; height: 4.4cqw; border-radius: 50%; object-fit: cover; }
.code { margin: 0; padding: 3.6cqw 4cqw; border-radius: 3.6cqw; background: #0b4560; border: 1px solid rgba(255,255,255,.12); font: 500 2.75cqw/1.6 var(--mono); color: #cfe8f3; white-space: pre; overflow: hidden; }
.code .k { color: var(--orange-clair); }
.code .s { color: #8fe0b0; }
.checks { list-style: none; margin: 4cqw 0 0; padding: 0; display: grid; gap: 2cqw; align-self: stretch; }
.checks li { display: flex; align-items: center; gap: 2.4cqw; font: 700 3.4cqw/1.2 var(--titre); color: #fff; }
.checks li i { width: 6cqw; height: 6cqw; border-radius: 50%; background: var(--vert); display: grid; place-items: center; font-size: 3.6cqw; flex: none; }

/* ── Résultats ── */
.s4 .zone { flex-direction: row; justify-content: center; }
.jauge { position: absolute; right: -1cqw; top: 46%; width: 30cqw; padding: 3cqw 2cqw 2.6cqw; border-radius: 5cqw; background: #fff; box-shadow: 0 4cqw 9cqw -4cqw rgba(8,43,59,.45); text-align: center; }
.jauge .cercle { position: relative; width: 19cqw; height: 19cqw; margin: 0 auto 1.6cqw; }
.jauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.jauge circle { fill: none; stroke-width: 3.2; }
.jauge .f { stroke: #e3f5ea; }
.jauge .v { stroke: var(--vert); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc((100 - var(--p)) * 1px); }
.is-on .jauge .v { animation: jauge 1.5s var(--e) 1.6s both; }
@keyframes jauge { from { --p: 0; } to { --p: var(--to); } }
.jauge .compteur { position: absolute; inset: 0; display: grid; place-items: center; font: 800 6.6cqw/1 var(--titre); color: var(--vert); letter-spacing: -.04em; }
.jauge small { display: block; font: 600 2.5cqw/1.25 var(--titre); color: var(--encre); }
.s4 .tete-1 { position: absolute; left: 0; top: 26%; padding: 2cqw 3cqw; border-radius: 3cqw; background: var(--bleu); color: #fff; font: 700 2.8cqw/1.2 var(--titre); box-shadow: 0 3cqw 6cqw -3cqw rgba(8,43,59,.5); }
.s4 .tete-1 i { display: inline-block; margin-right: 1cqw; }
.is-on.s4 .tete-1 i { animation: tourne-icone 2.6s linear 1.8s infinite; }
@keyframes tourne-icone { to { transform: rotate(360deg); } }

.s5 .zone { align-items: stretch; justify-content: center; }
.chiffre { display: flex; align-items: flex-start; font: 800 24cqw/.9 var(--titre); letter-spacing: -.06em; color: var(--orange); }
.chiffre span { font-size: 12cqw; margin: 2cqw 0 0 1cqw; }
.legende { margin: 1.6cqw 0 0; font: 700 4.4cqw/1.25 var(--titre); letter-spacing: -.02em; color: var(--encre); }
.barres { margin-top: 4.4cqw; display: grid; gap: 1.8cqw; }
.barre { display: grid; grid-template-columns: 15cqw 1fr 10cqw; align-items: center; gap: 2cqw; font: 600 2.8cqw/1 var(--titre); color: var(--gris); }
.barre .piste { height: 3.2cqw; border-radius: 99px; background: rgba(20,122,162,.12); overflow: hidden; }
.barre .piste i { display: block; height: 100%; width: calc(var(--v) * var(--k, 4%)); border-radius: 99px; background: var(--bleu); transform-origin: left; }
.is-on .barre .piste i { animation: pousse 1s var(--e) var(--d) both; }
@keyframes pousse { from { transform: scaleX(0); } }
.barre b { color: var(--encre); text-align: right; }
.plus { margin: 3.6cqw 0 0; display: flex; align-items: center; gap: 2.4cqw; padding: 2.6cqw 3.4cqw; border-radius: 3.4cqw; background: #fdf0e1; font: 700 3.3cqw/1.25 var(--titre); color: var(--encre); }
.plus strong { font-size: 6cqw; color: var(--orange); letter-spacing: -.04em; white-space: nowrap; }
.plus i { font-size: 5.4cqw; color: var(--orange); }
.source { margin: 3cqw 0 0; font-size: 2.5cqw; line-height: 1.35; color: var(--gris); }
.camps { display: grid; gap: 2.4cqw; }
.camp { display: grid; grid-template-columns: 25cqw 1fr; align-items: center; gap: 3cqw; padding: 3cqw 3.6cqw; border-radius: 4cqw; background: var(--pale); }
.camp strong { font: 800 8.6cqw/1 var(--titre); color: var(--orange); letter-spacing: -.05em; white-space: nowrap; }
.camp strong span { font-size: 4.2cqw; letter-spacing: 0; }
.camp small { display: block; margin-bottom: 1cqw; font: 700 2.4cqw/1.2 var(--titre); text-transform: uppercase; letter-spacing: .06em; color: var(--bleu); }
.camp p { margin: 0; font: 600 3.1cqw/1.3 var(--titre); color: var(--encre); }
.camp em { display: block; margin-top: .8cqw; font: 500 2.6cqw/1.3 "Open Sans", sans-serif; color: var(--gris); font-style: normal; }

/* ── Le webmaster attitré ── */
.s6 .zone { justify-content: center; }
.perso { position: relative; width: 30cqw; height: 30cqw; border-radius: 50%; padding: 1cqw; background: var(--orange); }
.perso img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.perso .ok { position: absolute; right: -1cqw; bottom: 1cqw; width: 9cqw; height: 9cqw; border-radius: 50%; background: var(--bleu); color: #fff; display: grid; place-items: center; font-size: 4.6cqw; border: .8cqw solid #fff; }
.nom { margin: 3cqw 0 0; text-align: center; font: 700 3.6cqw/1.2 var(--titre); letter-spacing: 0; color: var(--bleu); }
.nom small { display: block; margin-top: .8cqw; font: 500 3.2cqw/1.3 "Open Sans", sans-serif; letter-spacing: 0; color: var(--gris); }
.annee { margin-top: 5cqw; width: 100%; display: grid; grid-template-columns: repeat(12, 1fr); gap: .8cqw; }
.mois { position: relative; height: 10cqw; border-radius: 2cqw; background: rgba(20,122,162,.09); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 1.2cqw; font: 700 2.4cqw/1 var(--titre); color: var(--gris); }
.mois.rdv::before { content: ""; position: absolute; top: 1.8cqw; left: 50%; width: 3.2cqw; height: 3.2cqw; margin-left: -1.6cqw; border-radius: 50%; background: var(--orange); }
.is-on .mois.rdv::before { animation: pop .55s var(--rebond) var(--d) both; }
.s6 .sous { text-align: center; }
.avatars { margin-top: 5cqw; display: flex; justify-content: center; }
.avatars img { width: 11cqw; height: 11cqw; border-radius: 50%; object-fit: cover; border: .7cqw solid #fff; margin-left: -2.6cqw; }
.avatars img:first-child { margin-left: 0; }

.annee.grande { position: relative; margin-top: 0; gap: 1cqw; }
/* Curseur qui balaie l'année et allume chaque rendez-vous au passage */
.annee.grande::after { content: ""; position: absolute; top: -1.4cqw; bottom: -1.4cqw; left: 0; width: .7cqw; margin-left: -.35cqw; border-radius: 9px; background: var(--orange); opacity: 0; }
.is-on .annee.grande::after { animation: balaye 2.6s linear 1s both; }
@keyframes balaye { 0% { left: 0; opacity: 1; } 94% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.annee.grande .mois { height: 17cqw; border-radius: 2.4cqw; font-size: 3cqw; padding-bottom: 1.8cqw; }
.annee.grande .mois.rdv { background: rgba(234,131,0,.12); color: var(--orange); }
.annee.grande .mois.rdv::before { top: 2.6cqw; width: 4.6cqw; height: 4.6cqw; margin-left: -2.3cqw; }
.legende-annee { align-self: flex-start; display: flex; align-items: center; gap: 2cqw; margin: 2.6cqw 0 0; font: 600 3cqw/1.3 var(--titre); color: var(--gris); }
.legende-annee i { width: 3cqw; height: 3cqw; border-radius: 50%; background: var(--orange); }
.suivi { list-style: none; margin: 3.4cqw 0 0; padding: 0; width: 100%; display: grid; gap: 2.2cqw; }
.suivi li { display: flex; align-items: center; gap: 3.4cqw; padding: 2.4cqw 3.2cqw; border-radius: 4cqw; background: var(--pale); font: 500 3.2cqw/1.25 "Open Sans", sans-serif; color: var(--gris); }
.suivi li i { width: 10cqw; height: 10cqw; border-radius: 3cqw; background: var(--bleu); color: #fff; display: grid; place-items: center; font-size: 5cqw; flex: none; }
.suivi li b { display: block; font: 800 4.2cqw/1.15 var(--titre); letter-spacing: -.02em; color: var(--encre); }

/* ── Patchwork de témoignages ── */
.patch { width: 100%; columns: 2; column-gap: 2.6cqw; }
.tem { break-inside: avoid; margin: 0 0 2.6cqw; padding: 2.6cqw 3cqw; border-radius: 3.4cqw; background: var(--pale); }
.tem p { margin: 0; font: 700 3cqw/1.3 var(--titre); letter-spacing: -.01em; color: var(--encre); }
.tem footer { display: flex; align-items: center; gap: 1.4cqw; margin-top: 1.6cqw; font: 500 2.3cqw/1.2 "Open Sans", sans-serif; color: var(--gris); }
.tem footer img, .tem footer .ini { width: 5.6cqw; height: 5.6cqw; border-radius: 50%; object-fit: cover; flex: none; }
.tem footer .ini { display: grid; place-items: center; background: var(--orange); color: #fff; font: 800 2.8cqw/1 var(--titre); }
.tem.o { background: #fdf0e1; }
.tem.w { background: #fff; border: 1px solid var(--trait); box-shadow: 0 2cqw 5cqw -3cqw rgba(8,43,59,.3); }
.tem.b { background: var(--bleu); }
.tem.b p { color: #fff; }
.tem.b footer { color: rgba(255,255,255,.8); }
.tem.b footer .ini { background: #fff; color: var(--bleu); }
/* Petits téléphones (story raccourcie) : on allège les plans les plus chargés */
@media (max-width: 991px) and (max-height: 760px) {
  body:not(.planche) .tem.opt, body:not(.planche) .fiche .photos, body:not(.planche) .s-ia .checks { display: none; }
}

/* ── Fin ── */
.visages { display: flex; flex-direction: column; align-items: center; gap: 3cqw; }
.rang { display: flex; gap: 3cqw; }
.rang img { width: 18cqw; height: 18cqw; border-radius: 50%; object-fit: cover; border: .9cqw solid rgba(255,255,255,.9); }
/* Après leur apparition, les visages flottent doucement, chacun à son rythme */
.is-on .rang img { animation: pop .65s var(--rebond) var(--d, 0s) both, flotte 2.6s ease-in-out calc(var(--d, 0s) + .7s) infinite alternate; }
.rang:nth-child(odd) img:nth-child(even), .rang:nth-child(even) img:nth-child(odd) { animation-duration: .65s, 3.1s; }
@keyframes flotte { from { transform: translateY(0); } to { transform: translateY(-1.8cqw); } }
/* Au milieu des visages : une question, sans bouton (le bouton est déjà sous l'animation) */
.question { margin: 3cqw 0; text-align: center; font: 800 6.6cqw/1.12 var(--titre); letter-spacing: -.04em; color: #fff; }
.question em { font-style: normal; color: var(--orange-clair); }
@keyframes appel { 0% { box-shadow: 0 0 0 0 rgba(255,181,77,.7); } 100% { box-shadow: 0 0 0 5cqw rgba(255,181,77,0); } }
.s-fin .zone { justify-content: center; text-align: center; }
.duo { display: flex; justify-content: center; margin-bottom: 7cqw; }
.duo img { width: 34cqw; height: 34cqw; border-radius: 50%; object-fit: cover; border: 1.2cqw solid var(--bleu); box-shadow: 0 0 0 .6cqw var(--orange); }
.duo img + img { margin-left: -5cqw; }
.cta-in { position: relative; z-index: 8; display: inline-flex; align-items: center; gap: 2cqw; padding: 3.4cqw 6cqw; border-radius: 99px; background: var(--orange); color: #fff; text-decoration: none; font: 700 3.8cqw/1 var(--titre); box-shadow: 0 3cqw 7cqw -3cqw rgba(234,131,0,.8); }

.s1 .fond.paysage { display: none; }


/* ── 1 · Fil de messages de l'entretien (sous le visage, les anciens s'estompent en haut) ── */
/* Le fil part du haut (sous l'onde) et descend ; une fois la place remplie,
   il rétrécit (flex-shrink) et, aligné en bas, fait remonter les anciens messages. */
.fil-chat { flex: 0 1 auto; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 4cqw); mask-image: linear-gradient(transparent, #000 4cqw); }
.msg { display: flex; align-items: flex-end; gap: 1.6cqw; flex-shrink: 0; margin-top: 2cqw; opacity: 0; }
.is-on .msg { animation: msg .6s var(--e) var(--d) both; }
@keyframes msg { from { opacity: 0; transform: translateY(3cqw) scale(.96); } to { opacity: 1; transform: none; } }
.msg img { width: 6.4cqw; height: 6.4cqw; border-radius: 50%; object-fit: cover; flex: none; border: .4cqw solid rgba(255,255,255,.92); }
.msg span { max-width: 74%; padding: 2.2cqw 3.2cqw; border-radius: 4cqw; font: 600 3.3cqw/1.3 var(--titre); }
.msg.w { flex-direction: row-reverse; }
.msg.w span { background: #fff; color: var(--encre); border-bottom-right-radius: 1cqw; box-shadow: 0 1.6cqw 4cqw -2cqw rgba(0,0,0,.35); }
.msg.c span { background: rgba(11,72,98,.8); color: #fff; border-bottom-left-radius: 1cqw; backdrop-filter: blur(6px); }
.msg span i { color: var(--orange); }
/* L'onde de voix : grande, en bas, la première à apparaître — on voit un vrai échange */
.s1 .onde { flex: none; margin: 4cqw 0 0; height: 16cqw; }
.s1 > .zone { padding-bottom: 4cqw; }

/* ── 10 · Vitesse : la page de prestation défile du haut jusqu'en bas ── */
.is-on .ecran img.presta-long { animation: defile-long 5.2s cubic-bezier(.55,0,.35,1) .9s both; }
@keyframes defile-long { from { transform: none; } to { transform: translateY(-82%); } }

/* ── 13 · Campagnes : chaque carte vient se plaquer, légèrement de travers ── */
.camp.plaque { transform: rotate(var(--r, 0deg)); }
.is-on .camp.plaque { animation: plaque .55s cubic-bezier(.3,1.2,.5,1) var(--d) both; }
@keyframes plaque {
  0%   { opacity: 0; transform: scale(1.4) rotate(calc(var(--r, 0deg) - 5deg)); box-shadow: 0 6cqw 12cqw -4cqw rgba(8,43,59,.5); }
  70%  { opacity: 1; transform: scale(.97) rotate(var(--r, 0deg)); }
  100% { opacity: 1; transform: rotate(var(--r, 0deg)); box-shadow: 0 1.6cqw 4cqw -2.4cqw rgba(8,43,59,.3); }
}

/* ── 14 · Rendez-vous de l'année : sujets reliés en pointillés fins, placement organique ── */
.annee-bloc { position: relative; width: 100%; padding-top: 21cqw; }
.annee-bloc .annee { margin-top: 0; }
.rdv-liens { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.rdv-liens line { stroke: var(--orange); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 0 4; vector-effect: non-scaling-stroke; opacity: 0; }
.is-on .rdv-liens line { animation: trait-rdv .5s ease var(--d) forwards; }
@keyframes trait-rdv { to { opacity: .95; } }
.rdv-note { position: absolute; font: 600 2.45cqw/1.22 var(--titre); letter-spacing: -.01em; color: var(--encre); white-space: nowrap; }
.rdv-note.droite { text-align: right; }
.rdv-note em { display: block; margin-bottom: .7cqw; font: 500 1.8cqw/1 var(--mono); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.is-on .rdv-note { animation: fu .6s var(--e) var(--d) both; }
.suivi li { width: 86%; }
.suivi li.g { justify-self: start; }
.suivi li.d { justify-self: end; }
.is-on .suivi li.g { animation: depuis-g .75s var(--e) var(--d) both; }
.is-on .suivi li.d { animation: depuis-d .75s var(--e) var(--d) both; }
@keyframes depuis-g { from { opacity: 0; transform: translateX(-16cqw); } to { opacity: 1; transform: none; } }
@keyframes depuis-d { from { opacity: 0; transform: translateX(16cqw); } to { opacity: 1; transform: none; } }


/* ══════════════════════════════════════════════════════════════════
   MOBILE : titres plus gros et centrés, sans étiquette ; le contenu est
   centré dans l'espace restant, à sa taille finale (il ne bouge pas en
   se construisant). La frise du bas se manipule au doigt.
   ══════════════════════════════════════════════════════════════════ */
.scene { padding: 6cqw 5cqw 17cqw; }
.scene > .big { font-size: 9cqw; text-align: center; margin-bottom: 4cqw; }
.scene > .chap { display: none; }
.scene > .zone, .s1 .zone { justify-content: center; }

/* ══════════════════════════════════════════════════════════════════
   VERSION LARGE (ordinateur) : dès que l'animation fait 600 px de large,
   chaque plan passe en deux colonnes — étiquette et titre à gauche,
   visuel à droite. Mêmes plans, même contenu que sur mobile.
   La colonne visuel devient elle-même un conteneur : les tailles en cqw
   de ses éléments se calculent sur SA largeur (≈ celle d'un téléphone),
   donc les visuels gardent leurs proportions mobiles. Sa largeur découle
   de la hauteur disponible (rapport 9/10), pour que rien ne déborde.
   ══════════════════════════════════════════════════════════════════ */
@container story (min-width: 600px) {
  /* Le sommaire suffit : barre invisible (elle cadence toujours les plans), pas de bouton pause */
  .bars { opacity: 0; }
  .bars span { height: max(3px, .3cqw); }
  .compte { top: 2.5cqw; left: 1.9cqw; gap: .8cqw; font-size: 1.3cqw; }
  .compte b { width: 2.6cqw; height: 2.6cqw; font-size: 1.35cqw; }
  .pause { display: none; }

  .scene {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    /* Le titre en haut à gauche, le sommaire juste en dessous (plus lisible) */
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas: "big zone" ". zone";
    column-gap: 6cqw;
    padding: 3.2cqw 5.5cqw 4.6cqw 5.5cqw;
  }
  .scene > .chap { display: none; }
  .scene > .zone { grid-area: zone; height: 100%; aspect-ratio: var(--zr, 1 / 1); max-width: 40cqw; container-type: inline-size; }
  .scene > .big { grid-area: big; align-self: start; font-size: 3.7cqw; text-align: left; margin-bottom: 0; }


  /* 1 · L'entretien : la conversation commence sous le niveau du titre */
  .s1 > .zone { padding-top: 8.6cqw; }
  .s1 .onde { height: 12cqw; padding-top: 2cqw; }
  .s1 .msg span { padding: 1.7cqw 2.8cqw; }

  /* Site prêt pour l'IA : plus de contenu en hauteur, colonne un peu plus étroite */
  .s-ia > .zone { --zr: 3 / 4; }

  /* 17 · Témoignages : le patchwork profite de la largeur (3 colonnes) */
  .s-tem > .zone { aspect-ratio: auto; width: 52cqw; max-width: none; }
  .s-tem .patch { columns: 3; column-gap: 2cqw; }
  .s-tem .tem { margin-bottom: 2cqw; padding: 2cqw 2.4cqw; border-radius: 2.6cqw; }
  .s-tem .tem p { font-size: 2.35cqw; }
  .s-tem .tem footer { margin-top: 1.2cqw; gap: 1cqw; font-size: 1.85cqw; }
  .s-tem .tem footer img, .s-tem .tem footer .ini { width: 4.4cqw; height: 4.4cqw; font-size: 2.2cqw; }
  .s-tem .tem.opt { display: block !important; }

  /* 18 · Fin : 7 visages au-dessus, la question au milieu, 7 en dessous */
  .s-fin { grid-template-columns: 40cqw minmax(0, 1fr); column-gap: 4cqw; grid-template-areas: "big zone" ". zone"; }
  .s-fin > .zone { aspect-ratio: auto; width: 100%; max-width: none; container-type: normal; }
  /* Deux rangées de 7 visages, chacune centrée, la phrase entre les deux */
  .s-fin .visages { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: 1cqw; row-gap: 2.6cqw; }
  .s-fin .rang { gap: 1cqw; }
  .s-fin .question { flex-basis: 100%; margin: 0; font-size: 3cqw; }
  .s-fin .rang img { width: 5.2cqw; height: 5.2cqw; border-width: .3cqw; }
  .s-fin.is-on .rang img { animation-name: pop, flotte-large; }
}
@keyframes flotte-large { from { transform: translateY(0); } to { transform: translateY(-.8cqw); } }

/* ══════════════════════════════════════════════════════════════════
   SOMMAIRE (version large) — rail vertical, un nœud par chapitre.
   Le segment du chapitre en cours se remplit pendant la durée du plan ;
   le chapitre actif s'agrandit et déplie sa précision (n/total · nom)
   avec de petits segments de progression.
   ══════════════════════════════════════════════════════════════════ */
.sommaire { display: none; }
@container story (min-width: 600px) {
  .scene > .chap { display: none; }
  .sommaire {
    --rail: #d3dee3;
    display: block; position: absolute; z-index: 7;
    left: 5.5cqw; top: 15.2cqw; width: 26cqw;
    font-family: var(--titre);
    transition: opacity .5s ease, transform .7s var(--e);
  }
  .story.sans-sommaire .sommaire { opacity: 0; transform: translateX(-1.6cqw); pointer-events: none; }
}
.sommaire ol { list-style: none; margin: 0; padding: 0; }
.sommaire li {
  position: relative; height: 3.15cqw; padding-left: 2.6cqw;
  opacity: 0; transform: translateX(-1.4cqw);
  transition: height .6s var(--e), opacity .7s ease calc(var(--i) * 70ms + .2s), transform .8s var(--e) calc(var(--i) * 70ms + .2s);
}
.sommaire.pret li { opacity: 1; transform: none; }
.sommaire li.actif { height: 5.3cqw; }
.sommaire li.actif.simple { height: 3.6cqw; }
.sommaire li.simple .som-sous { display: none; }

/* Le rail : chaque chapitre trace le segment qui le relie au suivant */
.sommaire li::before {
  content: ""; position: absolute; left: 0; top: 1.6cqw; bottom: -.62cqw;
  width: max(2px, .24cqw); margin-left: min(-1px, -.12cqw); border-radius: 9px;
  background: linear-gradient(var(--bleu), var(--orange)) top / 100% var(--fill, 0%) no-repeat, var(--rail);
  transition: background-size .9s var(--e);
}
.sommaire li:last-child::before { display: none; }
.sommaire li.actif::before { animation: remplit var(--dur-plan, 5s) linear both; }
@keyframes remplit { from { background-size: 100% var(--f0, 0%); } to { background-size: 100% var(--f1, 100%); } }

/* Les nœuds */
.sommaire .noeud {
  position: absolute; left: 0; top: .6cqw;
  width: 1.04cqw; height: 1.04cqw; margin-left: -.52cqw; border-radius: 50%; pointer-events: none;
  background: #fff; box-shadow: inset 0 0 0 max(1px, .1cqw) var(--rail);
  transition: background .45s ease, box-shadow .45s ease, transform .5s var(--rebond);
}
.sommaire li.vu .noeud { background: var(--bleu); box-shadow: inset 0 0 0 max(1px, .1cqw) var(--bleu); transform: scale(.78); }
.sommaire li.actif .noeud {
  background: var(--orange); transform: scale(1.18);
  box-shadow: inset 0 0 0 max(1px, .1cqw) var(--orange), 0 0 0 .42cqw rgba(234,131,0,.16);
}
.sommaire li.actif .noeud::after {
  content: ""; position: absolute; inset: -.16cqw; border-radius: 50%;
  border: max(1px, .08cqw) solid var(--orange);
  animation: onde-noeud 2s cubic-bezier(.2, .6, .3, 1) infinite;
}
@keyframes onde-noeud { from { transform: scale(1); opacity: .9; } to { transform: scale(2.8); opacity: 0; } }

/* Libellés */
.sommaire button {
  all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 1cqw;
  height: 2.24cqw; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.sommaire button:focus-visible { outline: max(1px, .12cqw) solid var(--orange); outline-offset: .3cqw; border-radius: .3cqw; }
.sommaire .som-num { font: 500 .8cqw/1 var(--mono); letter-spacing: .12em; color: #a3afb5; transition: color .45s ease; }
.sommaire .som-nom {
  display: inline-block; transform-origin: left center;
  font: 600 1.2cqw/1.2 var(--titre); letter-spacing: -.01em; color: #95a2a9;
  transition: color .45s ease, transform .6s var(--e), letter-spacing .6s var(--e);
}
.sommaire li.vu .som-num { color: var(--bleu); }
.sommaire li.vu .som-nom { color: var(--encre); }
.sommaire li.actif .som-num { color: var(--orange); }
.sommaire li.actif .som-nom { color: var(--bleu); font-weight: 800; letter-spacing: -.03em; transform: scale(1.2); }
.sommaire button:hover .som-nom { color: var(--bleu); }
.sommaire button:hover .som-num { color: var(--orange); }

/* Précision du chapitre en cours : texte technique + segments */
.sommaire .som-sous {
  position: absolute; left: 2.6cqw; top: 2.7cqw;
  display: flex; flex-direction: column; gap: .6cqw;
  opacity: 0; transform: translateY(-.5cqw); pointer-events: none;
  transition: opacity .3s ease, transform .5s var(--e);
}
.sommaire li.actif .som-sous { opacity: 1; transform: none; transition-delay: .28s; }
.sommaire .som-txt { font: 500 .78cqw/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; color: var(--orange); }
.sommaire .som-ticks { display: flex; gap: .32cqw; }
.sommaire .som-ticks i { width: 1.5cqw; height: .22cqw; min-height: 2px; border-radius: 9px; background: var(--rail); transition: background .45s ease; }
.sommaire .som-ticks i.on { background: var(--orange); }
.sommaire li.actif .som-ticks i.on:last-of-type { background: var(--orange); }

/* Sur fond bleu : tout passe en blanc */
.story[data-theme=dark] .sommaire { --rail: rgba(255,255,255,.3); }
.story[data-theme=dark] .sommaire li::before { background-image: linear-gradient(#fff, var(--orange-clair)); }
.story[data-theme=dark] .sommaire .noeud { background: transparent; }
.story[data-theme=dark] .sommaire li.vu .noeud { background: #fff; box-shadow: inset 0 0 0 max(1px, .1cqw) #fff; }
.story[data-theme=dark] .sommaire li.actif .noeud { background: var(--orange-clair); box-shadow: inset 0 0 0 max(1px, .1cqw) var(--orange-clair), 0 0 0 .42cqw rgba(255,181,77,.22); }
.story[data-theme=dark] .sommaire li.actif .noeud::after { border-color: var(--orange-clair); }
.story[data-theme=dark] .sommaire .som-num { color: rgba(255,255,255,.5); }
.story[data-theme=dark] .sommaire .som-nom { color: rgba(255,255,255,.58); }
.story[data-theme=dark] .sommaire li.vu .som-num { color: rgba(255,255,255,.85); }
.story[data-theme=dark] .sommaire li.vu .som-nom { color: rgba(255,255,255,.92); }
.story[data-theme=dark] .sommaire li.actif .som-num,
.story[data-theme=dark] .sommaire .som-txt { color: var(--orange-clair); }
.story[data-theme=dark] .sommaire li.actif .som-nom,
.story[data-theme=dark] .sommaire button:hover .som-nom { color: #fff; }
.story[data-theme=dark] .sommaire .som-ticks i.on { background: var(--orange-clair); }

/* Planche : sommaire figé dans l'état du plan */
.sommaire.fige li, .sommaire.fige li::before, .sommaire.fige .noeud, .sommaire.fige .som-nom, .sommaire.fige .som-sous { transition: none !important; }
.sommaire.fige li::before { animation-duration: 1ms !important; }
.sommaire.fige li.actif .noeud::after { animation: none; opacity: 0; }


/* ══════════════════════════════════════════════════════════════════
   THÈME « INTÉGRÉ » : l'animation s'écrit directement sur le fond bleu
   du hero (pas de carte). Fonds de plans transparents, textes blancs,
   accents orange clair ; les objets (document, fiche, profil…) restent
   des cartes claires posées sur le bleu.
   ══════════════════════════════════════════════════════════════════ */
.story.integre { background: transparent; box-shadow: none; border-radius: 0; overflow: visible; }
.story.integre .scene,
.story.integre .scene.blanc,
.story.integre .scene.nuit { background: transparent; color: #fff; }
/* Sans fond opaque, le plan qui part s'efface avant que le suivant n'arrive */
.story.integre .scene.part { opacity: 0; transform: scale(.98); transition: opacity .3s ease, transform .4s ease; }
.story.integre .scene.is-vis { transition: opacity .55s ease .18s, transform .8s cubic-bezier(.2,.8,.2,1) .18s; }
.story.integre .big,
.story.integre .blanc .big { color: #fff; }
.story.integre .big em,
.story.integre .blanc .big em { color: var(--orange-clair); }
.story.integre .sous { color: rgba(255,255,255,.82); }
.story.integre .chap { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.story.integre .chap em { color: rgba(255,255,255,.75); }
.story.integre .chap i { color: var(--orange-clair); }
/* Relecture */
.story.integre .st-etape b { color: #fff; }
.story.integre .st-etape small { color: rgba(255,255,255,.75); }
.story.integre .st-etape .av img { box-shadow: 0 0 0 1px rgba(255,255,255,.4); border-color: transparent; }
.story.integre .st-etape .av > i { background: rgba(255,255,255,.18); }
/* Expertises */
.story.integre .fil { background: linear-gradient(90deg, rgba(255,255,255,.25), #fff); }
.story.integre .techno { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.4); }
.story.integre .fil::after { background: var(--orange-clair); }
/* Fiche + posts, vitesse */
.story.integre .post-fil { border-top-color: rgba(255,255,255,.85); }
.story.integre .s4 .tete-1 { box-shadow: 0 0 0 1px rgba(255,255,255,.45), 0 3cqw 6cqw -3cqw rgba(0,0,0,.35); }
/* Résultats */
.story.integre .chiffre { color: var(--orange-clair); }
.story.integre .legende { color: #fff; }
.story.integre .barre { color: rgba(255,255,255,.78); }
.story.integre .barre b { color: #fff; }
.story.integre .barre .piste { background: rgba(255,255,255,.18); }
.story.integre .barre .piste i { background: #fff; }
.story.integre .plus { background: rgba(255,255,255,.12); color: #fff; }
.story.integre .plus strong, .story.integre .plus i { color: var(--orange-clair); }
.story.integre .source { color: rgba(255,255,255,.68); }
.story.integre .camp { background: rgba(255,255,255,.95); }
/* Suivi */
.story.integre .mois { background: rgba(255,255,255,.12); color: rgba(255,255,255,.75); }
.story.integre .annee.grande .mois.rdv { background: rgba(255,181,77,.22); color: var(--orange-clair); }
.story.integre .mois.rdv::before { background: var(--orange-clair); }
.story.integre .annee.grande::after { background: var(--orange-clair); }
.story.integre .legende-annee { color: rgba(255,255,255,.82); }
.story.integre .legende-annee i { background: var(--orange-clair); }
.story.integre .rdv-note { color: #fff; }
.story.integre .rdv-note em { color: var(--orange-clair); }
.story.integre .rdv-liens line { stroke: var(--orange-clair); }
.story.integre .suivi li { background: rgba(255,255,255,.95); }
/* Témoignages : la carte bleue se détache du fond */
.story.integre .tem.b { background: #0e5f80; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
/* Planche : chaque cadre reprend le dégradé du hero */
.cadre .story.integre { background: linear-gradient(160deg, #13678a 0%, #1a8ab5 42%, #125a78 85%); overflow: hidden; }


/* Dernier point du sommaire : le symbole de lesiteduliberal (silhouette de symbole.png
   utilisée comme masque). Au repos, esquissé en creux ; une fois atteint, il se
   remplit d'orange de bas en haut puis brille doucement. */
.sommaire li.final .noeud { width: 2.9cqw; height: 3cqw; margin-left: -1.45cqw; top: -.35cqw;
  border-radius: 0; background: none !important; box-shadow: none !important; transform: none !important; }
.sommaire li.final .noeud::after { display: none; }
.logo-forme { position: absolute; inset: 0;
  -webkit-mask: url(img/symbole.png) center / contain no-repeat; mask: url(img/symbole.png) center / contain no-repeat;
  background: linear-gradient(to top, var(--orange-clair) 50%, rgba(255,255,255,.32) 50%) 0 0 / 100% 200% no-repeat;
  transition: background-position 1.3s cubic-bezier(.45,0,.2,1) .35s; }
.sommaire li.final.actif .logo-forme { background-position: 0 100%; }
.sommaire li.final.actif .noeud { animation: brille 1.8s ease-in-out 1.7s infinite alternate; }
@keyframes brille { from { filter: drop-shadow(0 0 .25cqw rgba(255,181,77,.55)); } to { filter: drop-shadow(0 0 1.1cqw rgba(255,181,77,1)); } }
.sommaire.fige li.final .logo-forme { transition: none; }


/* ══════════════════════════════════════════════════════════════════
   FRISE (mobile) : le sommaire à l'horizontale, en bas de l'animation —
   un point par chapitre, traits qui se remplissent au rythme des plans,
   le symbole du site au bout. Sans libellés. Le bouton pause la termine.
   ══════════════════════════════════════════════════════════════════ */
.som-h { position: absolute; z-index: 6; left: 9cqw; right: 9cqw; bottom: 3.4cqw; height: 10cqw; pointer-events: none; }
/* Pas de bouton pause : sur mobile, l'appui long met en pause */
.pause { display: none; }
.som-h ol { list-style: none; margin: 0; padding: 0; height: 100%; display: flex; align-items: center; }
.som-h li { position: relative; flex: 1; height: 100%; }
.som-h li:last-child { flex: 0 0 4.6cqw; }
.som-h .noeud { position: absolute; left: 0; top: 50%; width: 3.8cqw; height: 3.8cqw; margin: -1.9cqw 0 0 -1.9cqw; border-radius: 50%;
  box-shadow: inset 0 0 0 max(1px, .3cqw) rgba(255,255,255,.5); transition: background .45s ease, box-shadow .45s ease, transform .5s var(--rebond); }
.som-h li.vu .noeud { background: #fff; box-shadow: inset 0 0 0 max(1px, .3cqw) #fff; transform: scale(.8); }
.som-h li.actif .noeud { background: var(--orange-clair); box-shadow: inset 0 0 0 max(1px, .3cqw) var(--orange-clair), 0 0 0 1cqw rgba(255,181,77,.22); transform: scale(1.15); }
.som-h li.actif .noeud::after { content: ""; position: absolute; inset: -.6cqw; border-radius: 50%; border: max(1px, .25cqw) solid var(--orange-clair); animation: onde-noeud 2s cubic-bezier(.2, .6, .3, 1) infinite; }
/* Le trait qui relie chaque point au suivant, détaché des deux côtés */
.som-h li::before { content: ""; position: absolute; top: 50%; left: 3.4cqw; right: 2.4cqw; height: max(2px, .6cqw); margin-top: max(-1px, -.3cqw); border-radius: 9px;
  background: linear-gradient(90deg, #fff, var(--orange-clair)) left / var(--fill, 0%) 100% no-repeat, rgba(255,255,255,.28);
  transition: background-size .9s var(--e); }
.som-h li:last-child::before { display: none; }
.som-h li:nth-last-child(2)::before { right: 6.4cqw; }
.som-h li.actif::before { animation: remplit-h var(--dur-plan, 5s) linear both; }
@keyframes remplit-h { from { background-size: var(--f0, 0%) 100%; } to { background-size: var(--f1, 100%) 100%; } }
/* Le symbole au bout de la frise */
.som-h li.final .noeud { width: 8.6cqw; height: 9cqw; margin: -4.5cqw 0 0 -4.3cqw; border-radius: 0; background: none !important; box-shadow: none !important; transform: none !important; }
.som-h li.final .noeud::after { display: none; }
.som-h li.final.actif .logo-forme { background-position: 0 100%; }
.som-h li.final.actif .noeud { animation: brille-h 1.8s ease-in-out 1.7s infinite alternate; }
@keyframes brille-h { from { filter: drop-shadow(0 0 .4cqw rgba(255,181,77,.55)); } to { filter: drop-shadow(0 0 1.8cqw rgba(255,181,77,1)); } }

/* Zone de clic au doigt (environ 40 px) autour de chaque point */
.som-h-btn { all: unset; position: absolute; left: 0; top: 50%; width: 11cqw; height: 11cqw; margin: -5.5cqw 0 0 -5.5cqw;
  border-radius: 50%; pointer-events: auto; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.som-h-btn:focus-visible { outline: 2px solid var(--orange-clair); outline-offset: -1cqw; }
.som-h.fige li::before { animation-duration: 1ms !important; }
.som-h.fige .logo-forme { transition: none; }
@container story (min-width: 600px) { .som-h { display: none; } }

/* Ordinateur : le dernier trait s'arrête avant le symbole, qui reste détaché */
.sommaire li:nth-last-child(2)::before { bottom: 1cqw; }

/* Navigation tactile invisible */
.tap { position: absolute; z-index: 5; top: 0; bottom: 0; }
.tap.st-prev { left: 0; width: 30%; }
.tap.st-next { right: 0; width: 70%; }

@media (prefers-reduced-motion: reduce) {
  .scene *, .scene *::before, .scene *::after { animation-duration: 1ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
  .transcript { display: none; }
}

/* ── Mode planche : tous les plans, figés dans leur état final ── */
.planche-wrap { display: none; }
body.planche .hero { display: none; }
body.planche .planche-wrap { display: block; max-width: 1500px; margin: 0 auto; padding: 24px 16px 60px; }
.planche-wrap h2 { margin: 0 0 4px; font: 800 28px/1.1 var(--titre); letter-spacing: -.03em; color: var(--bleu); }
.planche-wrap > p { margin: 0 0 24px; color: var(--gris); }
.planche-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 32px 20px; }
.cadre .story { height: auto; aspect-ratio: 9 / 16; border-radius: 20px; cursor: default; box-shadow: 0 0 0 1px var(--trait), 0 14px 30px -18px rgba(8,43,59,.45); }
/* Planche « large » : les plans au format du bandeau ordinateur (≈ 1140 × 580) */
.planche-grid.large { grid-template-columns: repeat(auto-fill, minmax(620px, 1fr)); gap: 36px 28px; }
.planche-grid.large .cadre .story { aspect-ratio: 1140 / 580; border-radius: 24px; }
.cadre figcaption { margin-top: 10px; font: 700 15px/1.3 var(--titre); color: var(--encre); }
.cadre figcaption b { display: inline-grid; place-items: center; min-width: 26px; height: 26px; margin-right: 6px; padding: 0 6px; border-radius: 99px; background: var(--bleu); color: #fff; font-size: 13px; }
.cadre figcaption small { display: block; margin-top: 2px; font: 500 13px/1.3 "Open Sans", sans-serif; color: var(--gris); }
body.planche .scene { opacity: 1; visibility: visible; transition: none; transform: none; }
.cadre:not(.joue) .scene *, .cadre:not(.joue) .scene *::before, .cadre:not(.joue) .scene *::after { animation-delay: 0s !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
.cadre .story { cursor: pointer; }
.cadre .story::after { content: "\F4F4"; font-family: "bootstrap-icons"; position: absolute; z-index: 9; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); color: var(--bleu); font-size: 18px; box-shadow: 0 2px 8px rgba(0,0,0,.18); opacity: 0; transition: opacity .2s; pointer-events: none; }
.cadre:hover .story::after { opacity: 1; }
.cadre.joue .story::after { opacity: 0; }
