/* Accueil en dégradés MGF, bulle de question fixée en bas de page,
   et réponse qui recouvre la page. Chargé après styles.css. */
:root {
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  /* Teinte de jointure par défaut ; chaque couture entre deux fonds sombres prend la teinte
     entre ses deux voisins (--joint-haut, --joint-bas sur la section). */
  --joint: oklch(20% .044 204);
  --joint-h: clamp(56px, 9vh, 104px);
  --dock-bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(12px, 3vh, 28px));
  --dock-reserve: calc(var(--dock-bottom) + 88px);
  /* Famille turquoise du logo, et ses tons profonds pour la profondeur. */
  --mgf-turquoise: oklch(71.8% .124 181.5);
  --mgf-profond: oklch(47.5% .083 182);
  --mgf-pale: oklch(89.5% .093 178);
  --mgf-bleu: oklch(56% .105 214);
  --mgf-abysse: oklch(15.5% .03 212);
  scrollbar-gutter: stable;
}
html.calque-ouvert { overflow: hidden; }

/* ---------- Le fond : taches de couleur déjà floues, qui dérivent lentement ---------- */
.fond-mgf {
  --base: linear-gradient(165deg, oklch(23% .05 202) 0%, oklch(30% .068 190) 46%, oklch(19% .04 206) 100%);
  --voile-centre: .56;
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background: var(--base);
}
.fond-mgf > i {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); aspect-ratio: 1;
  translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(closest-side, var(--c), color-mix(in oklch, var(--c) 42%, transparent) 46%, transparent);
  opacity: var(--o);
  animation: fond-derive var(--d) cubic-bezier(.45, 0, .55, 1) infinite alternate;
  will-change: transform;
}
/* Composition « lagon » (par défaut) : clair en bas à droite, sombre en haut à droite. */
.fond-mgf > i:nth-child(1) { --c: var(--mgf-turquoise); --x: 12%; --y: 16%; --s: 80vmax; --o: .5; --d: 38s; --dx: 7vw; --dy: 6vh; --k: 1.08; }
.fond-mgf > i:nth-child(2) { --c: var(--mgf-pale); --x: 90%; --y: 86%; --s: 46vmax; --o: .4; --d: 31s; --dx: -6vw; --dy: -5vh; --k: 1.12; }
.fond-mgf > i:nth-child(3) { --c: var(--mgf-profond); --x: 58%; --y: 112%; --s: 92vmax; --o: .85; --d: 44s; --dx: -5vw; --dy: -7vh; --k: 1.05; }
.fond-mgf > i:nth-child(4) { --c: var(--mgf-abysse); --x: 94%; --y: 2%; --s: 72vmax; --o: .9; --d: 36s; --dx: -7vw; --dy: 6vh; --k: 1.1; }
.fond-mgf > i:nth-child(5) { --c: var(--mgf-bleu); --x: 4%; --y: 94%; --s: 52vmax; --o: .42; --d: 27s; --dx: 8vw; --dy: -4vh; --k: 1.15; }
/* Voile au centre pour la lecture, et grain fin contre les bandes du dégradé. */
.fond-mgf::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 48% 38% at 50% 42%, oklch(15% .03 206 / var(--voile-centre)), transparent 74%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
@keyframes fond-derive { to { transform: translate3d(var(--dx), var(--dy), 0) scale(var(--k)); } }

/* Composition « abysse » : nuit bleutée, une lueur turquoise monte derrière la bulle. */
:root[data-fond="abysse"] .fond-mgf, .fond-mgf.fond-abysse { --base: linear-gradient(180deg, oklch(13.5% .028 214) 0%, oklch(18% .04 204) 70%, oklch(22% .05 196) 100%); --voile-centre: .3; }
:root[data-fond="abysse"] .fond-mgf > i:nth-child(1), .fond-mgf.fond-abysse > i:nth-child(1) { --x: 50%; --y: 112%; --s: 76vmax; --o: .62; --dx: 4vw; --dy: -5vh; }
:root[data-fond="abysse"] .fond-mgf > i:nth-child(2), .fond-mgf.fond-abysse > i:nth-child(2) { --x: 76%; --y: 102%; --s: 26vmax; --o: .3; }
:root[data-fond="abysse"] .fond-mgf > i:nth-child(3), .fond-mgf.fond-abysse > i:nth-child(3) { --x: 16%; --y: 28%; --s: 80vmax; --o: .55; }
:root[data-fond="abysse"] .fond-mgf > i:nth-child(4), .fond-mgf.fond-abysse > i:nth-child(4) { --c: oklch(40% .085 226); --x: 88%; --y: 18%; --s: 62vmax; --o: .5; }
:root[data-fond="abysse"] .fond-mgf > i:nth-child(5), .fond-mgf.fond-abysse > i:nth-child(5) { --c: var(--mgf-abysse); --x: 42%; --y: -6%; --s: 64vmax; --o: .85; }

/* Composition « aube » : plus lumineuse, le pâle en haut, le profond en bas. */
:root[data-fond="aube"] .fond-mgf { --base: linear-gradient(175deg, oklch(50% .088 188) 0%, oklch(36% .07 194) 55%, oklch(24% .05 202) 100%); --voile-centre: .62; }
:root[data-fond="aube"] .fond-mgf > i:nth-child(1) { --c: var(--mgf-pale); --x: 72%; --y: 2%; --s: 70vmax; --o: .5; }
:root[data-fond="aube"] .fond-mgf > i:nth-child(2) { --c: var(--mgf-turquoise); --x: 18%; --y: 36%; --s: 70vmax; --o: .55; }
:root[data-fond="aube"] .fond-mgf > i:nth-child(3) { --x: 50%; --y: 104%; --s: 96vmax; --o: .9; }
:root[data-fond="aube"] .fond-mgf > i:nth-child(4) { --x: 4%; --y: 96%; --s: 60vmax; --o: .7; }
:root[data-fond="aube"] .fond-mgf > i:nth-child(5) { --x: 96%; --y: 60%; --s: 50vmax; --o: .45; }

/* Rive : sombre en haut à droite, une lueur basse à gauche, sous le titre. */
.fond-mgf.fond-rive { --base: linear-gradient(170deg, oklch(17% .034 208) 0%, oklch(22% .05 196) 62%, oklch(18% .04 204) 100%); --voile-centre: .38; }
.fond-mgf.fond-rive > i:nth-child(1) { --x: 8%; --y: 60%; --s: 50vmax; --o: .5; }
.fond-mgf.fond-rive > i:nth-child(2) { --x: 34%; --y: 108%; --s: 34vmax; --o: .16; }
.fond-mgf.fond-rive > i:nth-child(3) { --x: 82%; --y: 64%; --s: 74vmax; --o: .62; }
.fond-mgf.fond-rive > i:nth-child(4) { --x: 72%; --y: -6%; --s: 70vmax; --o: .92; }
.fond-mgf.fond-rive > i:nth-child(5) { --x: 102%; --y: 104%; --s: 40vmax; --o: .3; }

/* Nuit : le pied de page, le plus sombre, une lueur derrière le logo. */
.fond-mgf.fond-nuit { --base: linear-gradient(180deg, oklch(16.5% .032 206) 0%, oklch(13% .024 210) 100%); --voile-centre: 0; }
.fond-mgf.fond-nuit > i:nth-child(1) { --c: var(--mgf-profond); --x: 50%; --y: 30%; --s: 58vmax; --o: .5; }
.fond-mgf.fond-nuit > i:nth-child(2) { --c: var(--mgf-turquoise); --x: 50%; --y: 28%; --s: 24vmax; --o: .16; }
.fond-mgf.fond-nuit > i:nth-child(3) { --x: 8%; --y: 112%; --s: 56vmax; --o: .5; }
.fond-mgf.fond-nuit > i:nth-child(4) { --x: 92%; --y: 4%; --s: 60vmax; --o: .85; }
.fond-mgf.fond-nuit > i:nth-child(5) { --x: 96%; --y: 106%; --s: 38vmax; --o: .28; }

.fond-mgf.au-repos > i, html.calque-ouvert main .fond-mgf > i, html.calque-ouvert body > footer .fond-mgf > i { animation-play-state: paused; }

/* ---------- L'accueil : le logo vertical et la signature, rien d'autre ---------- */
.scene-panel {
  display: grid; place-items: center; align-items: center;
  min-height: 100svh; color: var(--papier); background: oklch(23% .05 200);
  padding: 72px var(--gutter) calc(var(--dock-bottom) + 150px);
}
.scene-panel > .fond-mgf { z-index: -1; }
.scene-content.accueil { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
.accueil-titre { margin: 0; display: grid; justify-items: center; gap: clamp(22px, 3.4vh, 36px); font: inherit; letter-spacing: normal; }
.logo-mgf { display: block; width: clamp(184px, 20vw, 292px); height: auto; }
.accueil-signature { max-width: 21ch; font: 400 clamp(1.1875rem, 1.55vw, 1.5rem)/1.38 var(--font-titre); letter-spacing: -.01em; color: rgb(243 238 229 / .92); text-wrap: balance; }
.scene-panel :focus-visible { outline-color: var(--turquoise-pale); }
@media (max-width: 760px) {
  .scene-panel { min-height: 100svh; padding: 64px 24px calc(var(--dock-bottom) + 132px); }
}

/* ---------- La bulle ---------- */
.symbole-mgf {
  display: block; aspect-ratio: 1; background: currentColor;
  -webkit-mask: url(logo/mgf-icon-white.svg) center / contain no-repeat;
  mask: url(logo/mgf-icon-white.svg) center / contain no-repeat;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.dock {
  position: fixed; left: 50%; bottom: var(--dock-bottom); z-index: 60;
  width: min(44rem, calc(100% - 24px)); display: grid; justify-items: center;
  transform: translateX(-50%);
  transition: opacity 500ms var(--ease-out), transform 700ms var(--ease-out), visibility 0s;
}
/* Clavier du téléphone ouvert : la bulle se pose juste au-dessus (assistant.js, suivreClavier). */
.dock.au-clavier { bottom: calc(var(--dock-clavier) + 10px); }
.dock[data-mode="cache"] { opacity: 0; transform: translate(-50%, 28px); visibility: hidden; pointer-events: none; transition: opacity 250ms ease-out, transform 400ms var(--ease-out), visibility 0s 400ms; }

.suggestions {
  position: absolute; left: 50%; bottom: calc(100% + 10px); width: min(58rem, calc(100vw - 24px));
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  transform: translateX(-50%);
  transition: opacity 350ms ease-out 120ms, transform 500ms var(--ease-out) 120ms, visibility 0s;
}
.dock:not([data-mode="plein"]) .suggestions { opacity: 0; transform: translate(-50%, 10px); visibility: hidden; pointer-events: none; transition: opacity 180ms ease-out, transform 300ms var(--ease-out), visibility 0s 300ms; }
.chip {
  min-height: 48px; padding: 12px 18px; border-radius: calc(48px / 3); font-size: .9375rem; line-height: 1.3; color: rgb(243 238 229 / .92);
  --rim-fort: .5; --rim-bas: .18;
  background: oklch(20% .03 205 / .34); -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6);
  border: 0; box-shadow: inset 0 1px 1px rgb(255 255 255 / .12), 0 8px 20px -10px rgb(4 12 12 / .6); transition: background-color 200ms, border-color 200ms, transform 200ms var(--ease-out);
}
.chip:active { transform: scale(.97); }
.dock.is-busy .chip { pointer-events: none; opacity: .55; }

.bulle {
  position: relative; display: flex; align-items: center; width: 100%; min-height: 64px;
  /* La barre du logo : coins au tiers de la hauteur (rx 63,67 pour 192 de large sur le symbole). Fermée, la bulle est ronde ; ouverte, elle devient une barre MGF. */
  padding: 8px 8px 8px 52px; border-radius: calc(64px / 3); overflow: hidden; color: var(--papier);
  /* La forme change d'un coup, la transition passe par l'échelle et l'opacité (voir « Fluidité » plus bas). */
  transition: background-color 350ms, border-color 350ms, box-shadow 350ms, color 350ms;
}
/* Fluidité (mesure du 01/10, trace Chrome 1440×900, accueil vers « facile ») : animer width, padding
   et border-radius repeignait la bulle à chaque image, soit 4 à-coups de 50 à 60 ms et 280 à 310 ms de
   rastérisation. L'échelle et l'opacité ne repeignent rien : il reste 1 à-coup, celui du changement de
   mode, et 170 à 190 ms au total. Un nom d'animation par mode, pour qu'elle reparte à chaque passage. */
.dock[data-mode="rond"] .bulle { animation: bulle-rond 420ms var(--ease-out); }
.dock[data-mode="barre"] .bulle { animation: bulle-barre 420ms var(--ease-out); }
.dock[data-mode="plein"] .bulle { animation: bulle-plein 420ms var(--ease-out); }
.dock[data-mode="suivi"] .bulle { animation: bulle-suivi 420ms var(--ease-out); }
@keyframes bulle-rond { from { transform: scale(.72); opacity: .35; } }
@keyframes bulle-barre { from { transform: scale(.95); opacity: .35; } }
@keyframes bulle-plein { from { transform: scale(.95); opacity: .35; } }
@keyframes bulle-suivi { from { transform: scale(.95); opacity: .35; } }
.bulle-symbole { position: absolute; left: 21px; top: 50%; width: 22px; translate: 0 -50%; opacity: .85; transition: color 350ms, opacity 350ms; }
.bulle-champ { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; transition: opacity 260ms ease-out 180ms; }
.bulle input { flex: 1; min-width: 0; height: 48px; min-height: 0; padding: 0 8px 0 0; border: 0; background: transparent; font-size: 1.0625rem; color: inherit; outline: none; }
.bulle input::placeholder { color: currentColor; opacity: .66; }
.bulle-mic { position: relative; width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; transition: background-color 200ms; }
.bulle-mic svg { width: 22px; height: 22px; }
.dock.is-listening .bulle-mic { color: var(--turquoise); }
.dock.is-listening .bulle-mic::before { content: ''; position: absolute; inset: 4px; border-radius: 50%; border: 1px solid currentColor; animation: ecoute 1400ms var(--ease-out) infinite; }
@keyframes ecoute { from { transform: scale(.8); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
.bulle-go { position: relative; width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--turquoise); color: var(--encre); transition: background-color 200ms, color 200ms, opacity 200ms, box-shadow 200ms, transform 200ms var(--ease-out); box-shadow: inset 0 1px 0 rgb(255 255 255 / .38), inset 0 -1px 0 rgb(0 0 0 / .1), 0 4px 12px -4px rgb(11 110 99 / .5); }
.bulle-go svg { width: 20px; height: 20px; }
.bulle-go:active { transform: scale(.97); }
/* Champ vide : la flèche attend, grisée ; elle s'allume dès qu'une question est tapée. */
.bulle-go[data-mode="vide"] { background: transparent; color: currentColor; opacity: .34; box-shadow: none; cursor: default; }
.dock.is-busy .bulle-go { opacity: .6; pointer-events: none; }
.bulle-ouvrir { position: absolute; inset: 0; z-index: 1; width: 100%; padding: 0; border: 0; border-radius: inherit; background: transparent; }

/* Rond : la bulle se replie sur le symbole, sans masquer ce qui se joue à l'écran. */
.dock[data-mode="rond"] .bulle { width: 64px; padding-right: 0; padding-left: 64px; border-radius: 50%; }
.dock[data-mode="rond"] .bulle-champ { opacity: 0; pointer-events: none; transition: opacity 120ms ease-out; }
.dock[data-mode="rond"] .bulle-symbole { opacity: 1; }

/* Verre liquide : clair sur le papier, fumé sur les fonds sombres.
   Le liseré lumineux et le reflet sont peints sous le contenu (isolation). */
.bulle, .chip { isolation: isolate; }
.bulle::before, .chip::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgb(255 255 255 / var(--rim-fort, .7)) 0%, rgb(255 255 255 / .08) 32%, rgb(255 255 255 / 0) 58%, rgb(255 255 255 / var(--rim-bas, .32)) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
}
.bulle::after {
  /* Le reflet épouse la forme de la bulle (rond fermée, barre ouverte) : rayon hérité, fondu dans le dégradé.
     Mesuré le 01/10 : des coins à 999 px codés en dur ne suivaient plus la barre à 21 px. */
  content: ''; position: absolute; inset: 1px; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgb(255 255 255 / var(--reflet, .22)), rgb(255 255 255 / 0) 55%);
}
.chip { position: relative; }
.bulle { border: 0; }

/* Sombre : accueil, réponse et fond de nuit. */
.dock[data-surface="bleu"] .bulle, .dock[data-surface="nuit"] .bulle {
  --rim-fort: .55; --rim-bas: .22; --reflet: .14;
  color: var(--papier);
  background: linear-gradient(180deg, oklch(22% .03 205 / .38), oklch(16% .025 205 / .5));
  -webkit-backdrop-filter: blur(22px) saturate(1.7) brightness(.92); backdrop-filter: blur(22px) saturate(1.7) brightness(.92);
  box-shadow: inset 0 1px 1px rgb(255 255 255 / .16), inset 0 -8px 16px -10px rgb(0 0 0 / .45), 0 18px 44px -16px rgb(4 12 12 / .7), 0 2px 8px -2px rgb(0 0 0 / .3);
}
.dock[data-surface="nuit"] .bulle { background: linear-gradient(180deg, oklch(30% .01 70 / .42), oklch(20% .01 70 / .55)); }
.dock[data-surface="bleu"] .bulle-symbole, .dock[data-surface="nuit"] .bulle-symbole { color: var(--turquoise-pale); opacity: .95; }

/* Clair : sections de papier. Le texte qui défile dessous se floute à travers. */
.dock[data-surface="papier"] .bulle {
  --rim-fort: .95; --rim-bas: .6; --reflet: .55;
  color: var(--encre);
  background: linear-gradient(180deg, rgb(255 253 249 / .58), rgb(255 252 246 / .34));
  -webkit-backdrop-filter: blur(18px) saturate(1.9) brightness(1.06); backdrop-filter: blur(18px) saturate(1.9) brightness(1.06);
  box-shadow: inset 0 1px 1px rgb(255 255 255 / .95), inset 0 -6px 14px -10px rgb(28 25 21 / .18), 0 14px 34px -14px rgb(28 25 21 / .32), 0 2px 6px -2px rgb(28 25 21 / .12);
}
.dock[data-surface="papier"] .bulle-symbole { color: var(--turquoise-profond); opacity: 1; }
.dock[data-surface="papier"] .bulle-mic { color: var(--encre); }

/* Sans flou d'arrière-plan : une bulle mate, lisible. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .dock[data-surface="bleu"] .bulle, .dock[data-surface="nuit"] .bulle { background: oklch(22% .03 205 / .95); }
  .dock[data-surface="papier"] .bulle { background: oklch(98.6% .007 80); }
}
.dock :focus-visible { outline: 2px solid var(--turquoise); outline-offset: 3px; }
.dock[data-surface="papier"] :focus-visible { outline-color: var(--turquoise-profond); }
.dock .bulle input:focus, .dock .bulle input:focus-visible { outline: none; }
.dock .bulle:focus-within { --rim-fort: 1; --rim-bas: .8; }
.dock .bulle:focus-within::before { background: linear-gradient(140deg, rgb(20 184 166 / .95), rgb(20 184 166 / .35) 45%, rgb(20 184 166 / .2) 60%, rgb(20 184 166 / .75)); }

@media (hover: hover) {
  .chip:hover { background: rgb(243 238 229 / .2); border-color: rgb(243 238 229 / .36); }
  .bulle-mic:hover { background: rgb(128 128 128 / .14); }
  .bulle-go[data-mode="envoyer"]:hover { background: var(--turquoise-pale); }

  .dock[data-mode="rond"] .bulle:hover { box-shadow: 0 0 0 4px rgb(20 184 166 / .22), 0 18px 40px -18px rgb(28 25 21 / .4); }
}

@media (max-width: 640px) {
  .suggestions { width: 100vw; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding-inline: 12px; scroll-padding-inline: 12px;
    -webkit-mask: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 24px), transparent); mask: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 24px), transparent); }
  .suggestions::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; }
  .bulle { min-height: 60px; padding: 6px 6px 6px 46px; }
  .bulle-symbole { left: 18px; width: 20px; }
  /* 60 px de large pour 60 de haut : un vrai rond. */
  .dock[data-mode="rond"] .bulle { width: 60px; padding-left: 60px; }
  .bulle input { font-size: 1rem; }
  .bulle-mic { width: 44px; height: 44px; flex-basis: 44px; }
  .bulle-go { width: 46px; height: 46px; flex-basis: 46px; }

}

/* Le pied de page garde sa place au-dessus de la bulle. */
.site-footer { padding-bottom: calc(32px + var(--dock-reserve)); }

/* ---------- La réponse, qui recouvre la page ---------- */
.calque { position: fixed; inset: 0; z-index: 50; color: rgb(243 238 229 / .9); opacity: 0; visibility: hidden; transition: opacity 450ms var(--ease-out), visibility 0s 450ms; }
html.calque-ouvert .calque { opacity: 1; visibility: visible; transition: opacity 450ms var(--ease-out), visibility 0s; }
.calque::after { content: ''; position: absolute; inset: 0; z-index: 0; background: oklch(13% .025 208 / .5); pointer-events: none; }
.calque::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: calc(var(--dock-bottom) + 150px); background: linear-gradient(180deg, oklch(14% .026 206 / 0), oklch(14% .026 206 / .82) 58%, oklch(14% .026 206 / .94)); pointer-events: none; }
.calque-defile { position: absolute; inset: 0; z-index: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
/* Pendant la lecture d'une réponse, la page dessous n'est plus peinte. */
html.calque-pose main, html.calque-pose body > footer { visibility: hidden; }

.calque-haut { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px calc(var(--gutter) - 8px); background: linear-gradient(180deg, oklch(14% .026 206 / .72), oklch(14% .026 206 / 0)); }
.calque-logo, .calque-fermer { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px; border: 0; border-radius: calc(48px / 3); background: transparent; color: rgb(243 238 229 / .78); font-size: .9375rem; transition: background-color 200ms, color 200ms; }
.calque-fermer svg { width: 18px; height: 18px; }
.logo-sigle { display: block; height: 30px; width: auto; }
@media (hover: hover) { .calque-logo:hover, .calque-fermer:hover { background: rgb(243 238 229 / .08); color: var(--papier); } }
.calque :focus-visible { outline: 2px solid var(--turquoise-pale); outline-offset: 3px; }

/* La réponse tient dans l'écran : ni la barre du haut ni la bulle ne la recouvrent. */
.calque-defile { display: flex; flex-direction: column; }
/* Centrée par marges automatiques : si la réponse dépasse, elle défile au lieu d'être rognée en haut. */
/* min-height auto, pas 0 : si la page rétrécit sous son contenu, sa réserve basse disparaît et la fin
   de la réponse passe sous la bulle (mesuré le 01/10 à 375×667 : scrollHeight 671 pour 667 d'écran). */
.calque-page { flex: 1; display: flex; flex-direction: column; min-height: auto; padding: clamp(4px, 1.5vh, 20px) var(--gutter) calc(var(--dock-bottom) + 158px); }
.calque-page:empty { display: none; }
.calque-ia { display: flex; align-items: center; gap: 8px; margin: 0 auto 0 12px; max-width: none; font-size: .8125rem; color: rgb(243 238 229 / .6); }
.calque-ia > span:first-child { width: 7px; height: 7px; border-radius: 50%; background: var(--turquoise); }
.reponse { width: 100%; max-width: 74rem; margin: auto; display: grid; gap: clamp(16px, 3vh, 36px); transition: opacity 220ms ease-out, transform 260ms var(--ease-out); }
.reponse.sort { opacity: 0; transform: translateY(-12px); }
.reponse-tete { display: grid; gap: clamp(8px, 1.4vh, 16px); max-width: 52rem; }
.reponse-question { margin: 0; max-width: none; font: italic 400 1.125rem/1.4 var(--font-titre); color: rgb(243 238 229 / .66); }
.calque .reponse-titre { margin: 0; font-family: var(--font-titre); font-weight: 600; font-size: clamp(2rem, min(4.2vw, 6.4vh), 3.75rem); line-height: 1.05; letter-spacing: -.028em; color: var(--papier); text-wrap: balance; outline: none; }
.reponse-lead { margin: 0; max-width: 42rem; font-size: clamp(1.0625rem, min(1.4vw, 2.3vh), 1.25rem); line-height: 1.5; color: rgb(243 238 229 / .86); }
.reponse-corps { display: grid; gap: clamp(12px, 2vh, 22px); }
.reponse-parole { margin: 0; max-width: 34rem; font: italic 400 clamp(1.25rem, 1.9vw, 1.625rem)/1.35 var(--font-titre); color: var(--papier); }

/* Cartes : verre fumé, liseré lumineux, projecteur qui suit le pointeur (réponses du calque, cartes .carte-verre des sections). */
.reponse-points, .reponse-etapes { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14.5rem), 1fr)); gap: clamp(10px, 1.2vw, 16px); }
.reponse-point, .reponse-etape, .carte-verre {
  --rim-fort: .42; --rim-bas: .14;
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: clamp(6px, 1vh, 10px);
  padding: clamp(16px, 2.6vh, 26px) clamp(18px, 1.7vw, 26px); border-radius: 22px;
  font-size: 1rem; line-height: 1.5; color: rgb(243 238 229 / .82);
  background: linear-gradient(165deg, oklch(30% .045 196 / .5), oklch(17% .03 206 / .62) 70%);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: inset 0 1px 1px rgb(255 255 255 / .1), inset 0 -18px 32px -24px rgb(0 0 0 / .5), 0 30px 60px -34px rgb(0 0 0 / .85);
  transition: transform 450ms var(--ease-out), box-shadow 450ms var(--ease-out);
}
.reponse-point::before, .reponse-etape::before, .carte-verre::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px; pointer-events: none;
  /* Le liseré s'allume près du pointeur (d'après Spotlight Card, 21st.dev). */
  background:
    radial-gradient(200px circle at var(--mx, 50%) var(--my, 0%), rgb(143 239 225 / var(--eclat)), transparent 70%),
    linear-gradient(150deg, rgb(255 255 255 / var(--rim-fort)) 0%, rgb(255 255 255 / .05) 38%, rgb(255 255 255 / 0) 62%, rgb(255 255 255 / var(--rim-bas)) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  transition: --eclat 400ms ease-out;
}
@property --eclat { syntax: '<number>'; inherits: true; initial-value: 0; }
.reponse-point::after, .reponse-etape::after, .carte-verre::after {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 400ms ease-out;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgb(143 239 225 / .13), transparent 62%);
}
@media (hover: hover) {
  .reponse-point:hover, .reponse-etape:hover, .carte-verre:hover { transform: translateY(-3px); box-shadow: inset 0 1px 1px rgb(255 255 255 / .14), inset 0 -18px 32px -24px rgb(0 0 0 / .5), 0 36px 70px -34px rgb(0 0 0 / .9); }
  .reponse-point:hover::after, .reponse-etape:hover::after, .carte-verre:hover::after { opacity: 1; }
  .reponse-point:hover, .reponse-etape:hover, .carte-verre:hover { --eclat: .85; }
}
/* ---------- Les sections de l'accueil, dans la DA de la bulle ----------
   Même fond, même verre, même arrivée que les réponses du calque. Chaque section a sa
   composition de fond ; ses bords haut et bas se fondent dans une même teinte de jointure,
   pour que les sections sombres se suivent sans raccord. */
.section-mgf {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; display: grid; align-items: center;
  padding-block: clamp(48px, 9vh, 104px) var(--dock-reserve);
  color: rgb(243 238 229 / .86); background: var(--joint);
  /* Annule le scroll-padding du document : la section arrive bord à bord. */
  scroll-margin-top: -24px;
}
.section-mgf > .fond-mgf, .pied-mgf > .fond-mgf, .benefit-scene > .fond-mgf { z-index: -1; }
.section-mgf > .fond-mgf::before, .pied-mgf > .fond-mgf::before, .benefit-scene > .fond-mgf::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  /* Fondu adouci (courbe en S) : pas de ligne visible à l'endroit où la teinte de jointure s'arrête. */
  --jh: var(--joint-haut, var(--joint));
  --jb: var(--joint-bas, var(--joint));
  /* Hauteur de fondu propre à chaque bord : un bord clair qui descend vers un voisin sombre
     a besoin de plus de place qu'un bord déjà sombre. */
  --hh: var(--joint-h-haut, var(--joint-h));
  --hb: var(--joint-h-bas, var(--joint-h));
  background: linear-gradient(180deg,
    var(--jh) 0,
    color-mix(in oklab, var(--jh) 74%, transparent) calc(var(--hh) * .28),
    color-mix(in oklab, var(--jh) 36%, transparent) calc(var(--hh) * .58),
    color-mix(in oklab, var(--jh) 10%, transparent) calc(var(--hh) * .84),
    transparent var(--hh),
    transparent calc(100% - var(--hb)),
    color-mix(in oklab, var(--jb) 10%, transparent) calc(100% - var(--hb) * .84),
    color-mix(in oklab, var(--jb) 36%, transparent) calc(100% - var(--hb) * .58),
    color-mix(in oklab, var(--jb) 74%, transparent) calc(100% - var(--hb) * .28),
    var(--jb) 100%);
}
/* Chaque couture entre deux sombres prend la teinte entre ses deux voisins (mesuré : une jointure
   unique à 19,5 % creusait une bande sombre entre le comptable et les forfaits). Au bord d'une
   section claire, le fond garde sa propre base : coupure nette, sans liseré sombre. */
/* Copilote vocal (lagon, clair en bas) vers tableau de bord (abysse) : mesuré le 01/10 à 1440×900,
   une jointure à 15,5 % creusait un trou plus sombre que les deux voisins (luminance 6 % → 0,4 % → 1,5 %
   en 80 px). La couture prend le ton naturel du haut de l'abysse, et le lagon y descend sur un quart d'écran. */
#demo-voix { --joint-haut: transparent; --joint-bas: oklch(18.5% .038 208); --joint-h-bas: clamp(150px, 26vh, 260px); }
#demo-depenses { --joint-haut: oklch(18.5% .038 208); --joint-bas: transparent; }
/* Comptable (rive, lueur basse à gauche) vers forfaits (lagon, lueur haute à gauche) : les deux voisins sont
   lumineux près de la couture, la jointure descend donc sur un cinquième d'écran de chaque côté. */
#comptable { --joint-haut: transparent; --joint-bas: oklch(25% .054 200); --joint-h-bas: clamp(130px, 22vh, 220px); }
#forfaits { --joint-haut: oklch(25% .054 200); --joint-bas: transparent; --joint-h-haut: clamp(130px, 22vh, 220px); }
.pied-mgf { --joint-haut: transparent; --joint-bas: oklch(13% .024 210); }
/* La tache turquoise du lagon descend sur les forfaits : le haut de la section n'est pas plus clair que sa couture. */
#forfaits .fond-mgf > i:nth-child(1) { --y: 34%; }
.section-mgf :focus-visible, .pied-mgf :focus-visible { outline-color: var(--turquoise-pale); }
.section-mgf h2[tabindex="-1"] { outline: none; }
/* Au focus clavier, le défilement qui révèle l'élément laisse la réserve de la bulle (audit du 2 octobre : le logo du pied passait sous la bulle). */
.section-mgf :is(a, button, input, [tabindex]), .pied-mgf :is(a, button) { scroll-margin-bottom: var(--dock-reserve); }
.section-contenu { display: grid; gap: clamp(20px, 4vh, 44px); }
.section-tete { display: grid; gap: clamp(10px, 1.6vh, 18px); max-width: 54rem; }
.section-titre { margin: 0; font: 600 clamp(2rem, min(4vw, 6.4vh), 3.5rem)/1.05 var(--font-titre); letter-spacing: -.028em; color: var(--papier); text-wrap: balance; }
.section-lead { margin: 0; max-width: 42rem; font-size: clamp(1.0625rem, min(1.4vw, 2.3vh), 1.25rem); line-height: 1.5; color: rgb(243 238 229 / .86); }
.cartes-mgf { margin: 0; padding: 0; list-style: none; display: grid; gap: clamp(10px, 1.2vw, 16px); }
.carte-point dt { margin: 0; font: 600 clamp(1.25rem, 1.6vw, 1.5rem)/1.2 var(--font-titre); letter-spacing: -.01em; color: var(--papier); }
.carte-point dd, .carte-etape p { margin: 0; max-width: none; }
.section-lien { justify-self: start; display: inline-flex; align-items: center; min-height: 48px; color: rgb(243 238 229 / .9); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; text-decoration-color: rgb(243 238 229 / .4); }
@media (hover: hover) { .section-lien:hover { color: var(--papier); text-decoration-color: currentColor; } }
/* Sur papier, le lien écrit à l'encre ; le turquoise profond ne colore que le soulignement. */
.section-claire .section-lien { color: var(--encre); text-decoration-color: var(--turquoise-profond); }
/* Compteur du carrousel de « Que fait MGF », sous 720 px seulement (audit F-11). */
.cartes-compteur { display: none; justify-self: end; margin: -6px 0 0; font-size: .875rem; color: var(--pierre); font-variant-numeric: tabular-nums; }
@media (hover: hover) { .section-claire .section-lien:hover { color: var(--turquoise-profond); } }
/* Arrivée depuis la bulle : les cartes se posent. Au défilement, rien ne bouge. */
.section-mgf.arrivee .carte-verre { animation: reponse-reveal 700ms var(--ease-out) both; }
.section-mgf.arrivee .carte-verre:nth-child(2) { animation-delay: 90ms; }
.section-mgf.arrivee .carte-verre:nth-child(3) { animation-delay: 180ms; }
.section-mgf.arrivee .carte-verre:nth-child(4) { animation-delay: 270ms; }

/* Que fait MGF : la vue d'ensemble, quatre domaines de front. */
.que-fait-cartes { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Le comptable : le titre à gauche, ses trois questions en rangées à droite. */
.comptable-contenu { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-areas: "tete cartes" "lien cartes"; column-gap: clamp(32px, 6vw, 104px); align-items: center; }
.comptable-contenu > .section-tete { grid-area: tete; align-self: end; }
.comptable-contenu > .comptable-cartes { grid-area: cartes; }
.comptable-contenu > .comptable-liens { grid-area: lien; align-self: start; display: grid; justify-items: start; margin-top: -8px; }
/* Audit F-39 : copier le lien d'abord (aucune messagerie requise), l'e-mail en second ; F-23 : un lien pour le cabinet. */
.comptable-partage { display: flex; flex-wrap: wrap; align-items: center; column-gap: 20px; margin: 0; }
.comptable-liens button.section-lien { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.comptable-statut { margin: 0; min-height: 0; font-size: .9375rem; color: var(--turquoise-pale); }
.comptable-statut:empty { display: none; }
.comptable .section-lead a { color: var(--papier); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgb(243 238 229 / .5); }
@media (hover: hover) { .comptable .section-lead a:hover { text-decoration-color: currentColor; } }
.comptable .section-titre { font-size: clamp(2rem, min(3.5vw, 6vh), 3.125rem); }
.comptable-cartes .carte-point { display: grid; grid-template-columns: minmax(8.5rem, 2fr) minmax(0, 5fr); align-items: baseline; gap: 6px clamp(16px, 2vw, 28px); }

/* Ouvrir votre espace : la fin du parcours, centrée, sur le lagon clair. */
.ouvrir-contenu { justify-items: center; text-align: center; }
.ouvrir .section-tete { justify-items: center; }
.ouvrir-etapes { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: left; }
.carte-num { font: 600 clamp(1.75rem, 2.4vw, 2.25rem)/1 var(--font-titre); color: var(--turquoise-pale); font-variant-numeric: tabular-nums; }
.carte-etape strong { display: block; margin-bottom: 4px; font-weight: 700; color: var(--papier); }
.bouton-mgf { gap: 14px; min-height: 56px; padding-inline: 28px; color: var(--encre); background: var(--turquoise); box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), 0 16px 36px -18px rgb(20 184 166 / .8); }
.bouton-mgf svg { flex: none; width: 18px; height: 18px; transition: transform 250ms var(--ease-out); }
.bouton-mgf:hover, .bouton-mgf:focus-visible { color: var(--encre); background: var(--papier); border-color: var(--papier); }
@media (hover: hover) { .bouton-mgf:hover svg { transform: translateX(3px); } }

/* Le pied de page de l'accueil : il reprend la composition du haut de page, le logo et la signature. */
.pied-mgf {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(72px, 14vh, 136px) 0 var(--dock-reserve);
  color: rgb(243 238 229 / .72); background: var(--joint);
}
.pied-contenu { display: grid; justify-items: center; text-align: center; }
.pied-logo { display: block; padding: 8px; border-radius: 8px; }
.pied-logo > img { display: block; width: clamp(120px, 11vw, 164px); height: auto; }
.pied-signature { margin: clamp(14px, 2.4vh, 24px) 0 0; max-width: none; font: 400 clamp(1.25rem, 1.8vw, 1.625rem)/1.35 var(--font-titre); letter-spacing: -.01em; color: rgb(243 238 229 / .94); }
.pied-demande { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; margin-top: 8px; color: var(--turquoise-pale); text-decoration: none; font-weight: 700; }
.pied-demande svg { width: 18px; height: 18px; transition: transform 250ms var(--ease-out); }
@media (hover: hover) { .pied-demande:hover { color: var(--papier); } .pied-demande:hover svg { transform: translateX(3px); } }
.pied-bas { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: 12px 32px; margin-top: clamp(40px, 8vh, 88px); padding-top: 20px; border-top: 1px solid rgb(243 238 229 / .12); text-align: left; font-size: .9375rem; line-height: 1.45; }
.pied-bas > p { margin: 0; padding-top: 12px; color: rgb(243 238 229 / .6); }
.pied-bas > p:last-child { justify-self: end; text-align: right; }
.pied-liens { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 24px; }
.pied-liens a { display: inline-flex; align-items: center; min-height: 48px; color: rgb(243 238 229 / .8); text-decoration: none; }
@media (hover: hover) { .pied-liens a:hover { color: var(--papier); text-decoration: underline; text-underline-offset: 6px; } }

@media (max-width: 1100px) {
  .que-fait-cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .comptable-contenu { grid-template-columns: 1fr; grid-template-areas: "tete" "cartes" "lien"; }
  .comptable-contenu > .comptable-liens { margin-top: 0; }
}

/* ---------- Sections claires : des pages de papier entre deux eaux ----------
   « Que fait MGF » et « Ouvrir votre espace » sur le papier uni de l'ouverture, bord à bord avec
   les sections sombres (coupure nette, aucune bande de fondu). Verre clair, liseré blanc et
   turquoise profond. La bulle passe en verre clair (data-surface="papier"). Textes à l'encre : AA. */
.section-claire { background: var(--papier); color: rgb(28 25 21 / .8); }
.section-claire .section-titre { color: var(--encre); }
.section-claire .section-lead { color: rgb(28 25 21 / .76); }
.section-claire :focus-visible { outline-color: var(--turquoise-profond); }
.section-claire .carte-verre {
  --rim-fort: .95; --rim-bas: .5;
  color: rgb(28 25 21 / .8);
  background: linear-gradient(165deg, rgb(255 255 255 / .7), rgb(255 252 246 / .42) 70%);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: inset 0 1px 1px rgb(255 255 255 / .95), inset 0 -14px 26px -22px rgb(28 25 21 / .1), 0 26px 50px -32px rgb(28 25 21 / .34), 0 2px 6px -2px rgb(28 25 21 / .08);
}
.section-claire .carte-verre::before {
  background:
    radial-gradient(200px circle at var(--mx, 50%) var(--my, 0%), rgb(20 184 166 / var(--eclat)), transparent 70%),
    linear-gradient(150deg, rgb(255 255 255 / var(--rim-fort)) 0%, rgb(255 255 255 / .35) 38%, rgb(11 110 99 / .1) 62%, rgb(11 110 99 / .22) 100%);
}
.section-claire .carte-verre::after { background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgb(20 184 166 / .1), transparent 62%); }
@media (hover: hover) {
  .section-claire .carte-verre:hover { box-shadow: inset 0 1px 1px rgb(255 255 255 / .95), inset 0 -14px 26px -22px rgb(28 25 21 / .1), 0 32px 60px -32px rgb(28 25 21 / .4), 0 2px 6px -2px rgb(28 25 21 / .08); }
}
.section-claire .carte-point dt, .section-claire .carte-etape strong { color: var(--encre); }
.section-claire .carte-num { color: var(--turquoise-profond); }
/* Sur le lagon clair, le turquoise du bouton se fondrait : le bouton passe au turquoise profond. */
.section-claire .bouton-mgf { color: var(--papier); background: var(--turquoise-profond); box-shadow: inset 0 1px 0 rgb(255 255 255 / .22), 0 16px 34px -18px rgb(11 110 99 / .9); }
.section-claire .bouton-mgf:hover, .section-claire .bouton-mgf:focus-visible { color: var(--papier); background: var(--encre); border-color: var(--encre); }


/* ---------- Les démonstrations sur le lagon ----------
   Le copilote et le tableau de bord sont deux tableaux sombres, bord à bord avec le message et
   « Que fait MGF » : même fond en dérive, même jointure que les sections. Les couleurs des
   appareils et des textes sont dans billing-benefits.css, laptop-3d.css et dashboard-demo.css. */
.billing-benefits { background: var(--joint); }
.benefit-scene :focus-visible { outline-color: var(--turquoise-pale); }

/* ---------- Les forfaits : la seule page des prix, dans le défilement de l'accueil ----------
   Nom, prix, pour qui, demande, puis ce que le forfait ajoute (d'après Linear, Notion, Qonto). */
.forfaits-contenu { display: grid; gap: clamp(20px, 4vh, 44px); }
.forfaits-tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; }
.forfaits-titre { margin: 0; font: 600 clamp(2.25rem, min(4.4vw, 7vh), 3.75rem)/1.02 var(--font-titre); letter-spacing: -.03em; color: var(--papier); outline: none; }
.forfaits-liste { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.3vw, 20px); }
.forfait { gap: 0; padding: clamp(20px, 3.2vh, 32px) clamp(20px, 2vw, 32px); }
.forfait-nom { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
/* Alphas à .8 (audit du 2 octobre) : à .6 et .58, ces 14 px tombaient à 3.7 sur la carte vedette, dont le fond est le plus clair. */
.forfait-nom p { margin: 0; font-size: .875rem; color: rgb(243 238 229 / .8); white-space: nowrap; }
.forfait h3 { margin: 0; font: 600 clamp(1.375rem, 1.7vw, 1.625rem)/1.2 var(--font-titre); letter-spacing: -.01em; color: var(--papier); }
/* Les trois prix partagent une ligne de base : chiffre ou mention, même emplacement. */
/* Bloc de prix de même hauteur partout : les boutons restent alignés, précision ou non. */
/* Deux lignes sous le prix (mention de TVA, puis la précision) : MGF est en franchise de TVA, le prix affiché
   est le montant prélevé (décision de Joris du 3 octobre 2026, qui remplace « HT, soit TTC » du 2 octobre). */
.forfait-tarif { min-height: calc(clamp(3rem, 6.6vh, 3.875rem) + 3.2rem); margin-top: clamp(8px, 1.6vh, 16px); }
.forfait-prix { display: flex; flex-wrap: wrap; align-items: baseline; align-content: flex-end; gap: 0 8px; min-height: clamp(3rem, 6.6vh, 3.875rem); margin: 0; font-size: .9375rem; color: rgb(243 238 229 / .8); }
.forfait-prix strong { font: 600 clamp(2.5rem, min(3.6vw, 6.4vh), 3.375rem)/1 var(--font-titre); letter-spacing: -.02em; color: var(--papier); font-variant-numeric: tabular-nums; }
.forfait-prix.sans-montant strong { font-size: clamp(1.625rem, min(2.3vw, 4.2vh), 2.125rem); letter-spacing: -.015em; }
.forfait-precision { margin: 6px 0 0; font-size: .875rem; color: rgb(243 238 229 / .8); }
.forfait-tva { margin: 4px 0 0; font-size: .875rem; color: rgb(243 238 229 / .8); font-variant-numeric: tabular-nums; }
.forfait-tva + .forfait-precision { margin-top: 2px; }
/* Sous le bouton d'inscription : ce qui se passe après le clic (premier mois offert, e-mail avant le prélèvement). */
.forfait-garantie { margin: 8px 0 0; font-size: .8125rem; line-height: 1.4; color: rgb(243 238 229 / .8); }
/* Audit F-12 : une seule fois sous les trois cartes, à gauche (la bulle ronde est au centre). */
.forfaits-note { margin: 0; font-size: .9375rem; color: rgb(243 238 229 / .8); }
.forfaits-note a, .ouvrir-autre a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--papier); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: rgb(243 238 229 / .5); }
@media (hover: hover) { .forfaits-note a:hover { text-decoration-color: currentColor; } }
.ouvrir-autre { margin: 0; font-size: .9375rem; color: rgb(28 25 21 / .8); }
.ouvrir-autre a { color: var(--encre); text-decoration-color: var(--turquoise-profond); }
@media (hover: hover) { .ouvrir-autre a:hover { color: var(--turquoise-profond); } }
.forfait-pour { margin: clamp(12px, 2vh, 20px) 0 0; min-height: 2.9em; font-size: 1rem; line-height: 1.45; color: rgb(243 238 229 / .86); }
.forfait .button { width: 100%; min-height: 48px; margin-top: clamp(12px, 2.2vh, 22px); padding-block: 12px; }
.forfait .button.secondary { color: var(--papier); background: rgb(243 238 229 / .04); border-color: rgb(243 238 229 / .32); }
.forfait .button:hover, .forfait .button:focus-visible { color: var(--encre); background: var(--papier); border-color: var(--papier); }
.forfait-inclus { margin: clamp(16px, 2.8vh, 28px) 0 0; padding-top: clamp(14px, 2.4vh, 22px); border-top: 1px solid rgb(243 238 229 / .12); font-size: .875rem; font-weight: 700; color: rgb(243 238 229 / .92); }
.forfait ul { margin: clamp(6px, 1.2vh, 12px) 0 0; padding: 0; list-style: none; display: grid; gap: clamp(2px, .5vh, 6px); font-size: .9375rem; line-height: 1.5; }
.forfait ul li { position: relative; padding-left: 18px; }
/* Puce en barre du logo : 4 × 11 px, coins au tiers. */
.forfait ul li::before { content: ''; position: absolute; left: 2px; top: .34em; width: 4px; height: 11px; border-radius: calc(4px / 3); background: var(--turquoise-pale); opacity: .7; }
.forfaits-conditions { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: .9375rem; color: rgb(243 238 229 / .68); }
.forfaits-conditions li + li::before { content: '·' / ''; margin-inline: 12px; opacity: .6; }
/* Gestion, l'entrée, porte un liseré turquoise, sans badge. */
.forfait.est-vedette::before { background: radial-gradient(200px circle at var(--mx, 50%) var(--my, 0%), rgb(143 239 225 / var(--eclat)), transparent 70%), linear-gradient(150deg, rgb(143 239 225 / .9) 0%, rgb(20 184 166 / .35) 40%, rgb(20 184 166 / .08) 65%, rgb(143 239 225 / .5) 100%); }
.forfait.est-vedette { background: linear-gradient(105deg, transparent 38%, rgb(255 255 255 / .1) 50%, transparent 62%) 160% 0 / 260% 100% no-repeat, linear-gradient(165deg, oklch(36% .07 186 / .55), oklch(19% .04 200 / .62) 72%); }
/* Arrivée depuis la bulle : les cartes se posent, un reflet balaie Gestion une fois
   (d'après Pricing Glass, 21st.dev). Au défilement, rien ne bouge. */
.forfaits.arrivee .forfait.est-vedette { animation: reponse-reveal 700ms var(--ease-out) both, reflet-carte 1600ms var(--ease-out) 600ms both; }
@keyframes reflet-carte { from { background-position: 160% 0, 0 0; } to { background-position: -60% 0, 0 0; } }
.reponse-etape-num { font-family: var(--font-titre); font-weight: 600; font-size: clamp(1.75rem, 2.4vw, 2.25rem); line-height: 1; color: var(--turquoise-pale); }
.reponse-point dt { margin: 0; font-family: var(--font-titre); font-weight: 600; font-size: clamp(1.25rem, 1.6vw, 1.5rem); line-height: 1.2; color: var(--papier); }
.reponse-point dd { margin: 0; max-width: none; }
.reponse-etapes { counter-reset: etape; }
.reponse-etape { counter-increment: etape; }
.reponse-note { margin: 0; max-width: 44rem; font-size: 1rem; line-height: 1.5; color: rgb(243 238 229 / .72); }
.reponse-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.reponse-actions .button { color: var(--encre); background: var(--turquoise); }
.reponse-actions .button svg { flex: none; width: 18px; height: 18px; transition: transform 250ms var(--ease-out); }
@media (hover: hover) { .reponse-actions .button:hover svg { transform: translateX(3px); } }
.reponse-actions .button:hover, .reponse-actions .button:focus-visible { color: var(--encre); background: var(--papier); border-color: var(--papier); }
a.reponse-lien { display: inline-flex; align-items: center; }
.reponse-lien { min-height: 48px; padding: 0 4px; border: 0; background: transparent; color: rgb(243 238 229 / .9); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; text-decoration-color: rgb(243 238 229 / .4); }
@media (hover: hover) { .reponse-lien:hover { text-decoration-color: currentColor; } }

.a-venir { opacity: 0; }
.mot { animation: mot 380ms var(--ease-out) both; }
@keyframes mot { from { opacity: 0; filter: blur(4px); } }
.reveal { animation: reponse-reveal 700ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes reponse-reveal { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }

@media (max-width: 720px) {
  /* Téléphone : les cartes défilent de côté, la réponse reste sur un écran. */
  .reponse-points, .reponse-etapes { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 8px; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .reponse-points::-webkit-scrollbar, .reponse-etapes::-webkit-scrollbar { display: none; }
  .reponse-point, .reponse-etape { flex: 0 0 min(78vw, 290px); scroll-snap-align: start; }
  .forfaits-tete { display: grid; gap: 8px; }
  /* Sur téléphone la ligne se coupe : une puce par condition, pas de séparateur orphelin. */
  .forfaits-conditions { gap: 2px 16px; }
  .forfaits-conditions li + li::before { content: none; }
  .forfaits-conditions li { position: relative; padding-left: 12px; }
  .forfaits-conditions li::before { content: '' !important; position: absolute; left: 0; margin: 0 !important; top: .36em; width: 3px; height: 9px; border-radius: 1px; background: var(--turquoise-pale); opacity: .7; }
  .calque-ia-suite { display: none; }
  .calque-page { padding-bottom: calc(var(--dock-bottom) + 150px); }
  .calque-fermer { font-size: 0; gap: 0; }
  .calque-fermer svg { width: 22px; height: 22px; }
  .reponse-actions .button { width: 100%; justify-content: space-between; }
}

/* Écran court : la section remonte, pour qu'aucun texte ne finisse sous la bulle. */
@media (max-height: 800px) {
  .forfaits-titre { font-size: clamp(2rem, min(4vw, 6vh), 3rem); }
}
/* Écran d'ordinateur peu haut (1280×720, 1366×768) : la barre de navigation reste pleine en haut
   (2 octobre 2026) ; les conditions passent sous le titre, à gauche, hors de sa zone, et les cartes se
   resserrent pour que leur dernière ligne reste au-dessus de la bulle. */
@media (min-width: 721px) and (max-height: 800px) {
  .forfaits-tete { flex-direction: column; align-items: flex-start; gap: 4px; }
  .forfaits-contenu { gap: clamp(14px, 2.4vh, 20px); }
  .forfait { padding-block: clamp(14px, 2.4vh, 20px); }
  .forfait .button { min-height: 44px; margin-top: 12px; padding-block: 10px; }
  .forfait-garantie { margin-top: 6px; }
  .forfait-inclus { margin-top: 12px; padding-top: 10px; }
  .forfait ul { margin-top: 6px; gap: 0; font-size: .875rem; line-height: 1.4; }
}
@media (max-width: 720px) and (max-height: 720px) {
  .forfaits-contenu { gap: 14px; }
  .forfaits-tete { gap: 4px; }
  .forfaits-conditions { font-size: .8125rem; }
  .forfait { padding-block: 18px; }
  .forfait-tarif { min-height: 0; margin-top: 6px; }
  .forfait-garantie { margin-top: 6px; font-size: .75rem; }
  .forfait-pour { min-height: 0; margin-top: 10px; }
  .forfait .button { min-height: 44px; margin-top: 12px; padding-block: 10px; }
  .forfait-inclus { margin-top: 14px; padding-top: 12px; }
  .forfait ul { margin-top: 6px; gap: 2px; font-size: .875rem; line-height: 1.4; }
}

/* Téléphone : les cartes des sections défilent de côté, comme celles du calque. */
@media (max-width: 720px) {
  .section-mgf { align-items: start; padding-top: 48px; }
  .cartes-mgf { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 8px; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .cartes-mgf::-webkit-scrollbar { display: none; }
  .cartes-mgf > .carte-verre { flex: 0 0 min(78vw, 300px); scroll-snap-align: start; }
  .forfaits-liste > .forfait { flex-basis: min(78vw, 320px); }
  .comptable-cartes .carte-point { display: flex; }
  /* Audit F-11 et arbitrage 8 (02/10) : les cartes du comptable (le FEC est dans la deuxième) et les
     forfaits s'empilent pour se lire et se comparer d'un coup ; « Que fait MGF » garde son carrousel,
     avec un compteur. */
  .comptable-cartes, .forfaits-liste { flex-direction: column; overflow: visible; margin-inline: 0; padding: 0; }
  .comptable-cartes { gap: 8px; }
  .comptable-cartes > .carte-verre { flex: none; padding: 14px 18px; }
  .forfaits-liste { gap: 12px; }
  .forfaits-liste > .forfait { flex: none; }
  .cartes-compteur { display: block; }
  /* Les trois étapes restent visibles d'un coup : rangées compactes, le chiffre à gauche. */
  .ouvrir-etapes { flex-direction: column; overflow: visible; margin-inline: 0; padding: 0; }
  .ouvrir-etapes { gap: 8px; }
  .ouvrir-etapes > .carte-etape { flex: none; flex-direction: row; align-items: baseline; gap: 14px; padding: 14px 18px; font-size: .9375rem; line-height: 1.45; }
  .ouvrir-etapes .carte-num { font-size: 1.5rem; }
  .ouvrir-etapes .carte-etape strong { display: inline; margin: 0; }
  .ouvrir-etapes .carte-etape strong::after { content: '.\00a0'; }
  .ouvrir .bouton-mgf { min-height: 52px; padding: 10px 18px; font-size: 1rem; }
  .ouvrir .bouton-mgf { width: 100%; justify-content: space-between; }
  .pied-bas { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 4px; }
  /* La réponse du calque tient au-dessus des suggestions à 390×844 (mesuré le 01/10 : 9 px manquaient avec les chips à 48 px). */
  .reponse { gap: clamp(14px, 2vh, 24px); }
  .pied-bas > p:last-child { justify-self: center; text-align: center; }
  .pied-liens { order: -1; display: grid; grid-template-columns: repeat(2, auto); column-gap: 32px; justify-content: center; }
}
@media (max-height: 800px) {
  .section-mgf { padding-top: clamp(20px, 4vh, 36px); }
}
@media (max-width: 720px) and (max-height: 720px) {
  .section-contenu { gap: 14px; }
  .section-tete { gap: 6px; }
  .section-titre { font-size: 1.75rem; }
  .section-lead { font-size: 1rem; line-height: 1.45; }
  .carte-verre.carte-point, .carte-verre.carte-etape { padding-block: 14px; gap: 4px; font-size: .9375rem; line-height: 1.45; }
  /* Petit téléphone : les trois cartes empilées du comptable et son bouton de partage tiennent au-dessus de la bulle (mesuré à 390×664). */
  .comptable-cartes { gap: 6px; }
  .comptable-cartes > .carte-verre.carte-point { padding-block: 12px; }
  /* Calque sur petit téléphone : la réponse se resserre comme les sections, et défile si elle dépasse. */
  .reponse { gap: 14px; }
  .reponse-tete { gap: 6px; }
  .reponse-question { font-size: 1rem; }
  .calque .reponse-titre { font-size: 1.75rem; }
  .reponse-lead { font-size: 1rem; line-height: 1.45; }
  .reponse-parole { font-size: 1.125rem; }
  .reponse-corps { gap: 10px; }
  .reponse-point, .reponse-etape { padding-block: 14px; font-size: .9375rem; line-height: 1.45; }
  .reponse-actions { gap: 8px 20px; }
  /* Pied de page plus court que l'écran : à l'arrivée, la ligne « Contact » reste au-dessus de la bulle
     (mesuré le 01/10 à 375×667 : pied de 748 px, « Contact » à 597-615 sous une bulle à 579). */
  .pied-mgf { padding-top: 44px; }
  .pied-bas { margin-top: 24px; padding-top: 14px; }
  .ouvrir-etapes { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .fond-mgf > i, .section-mgf.arrivee .carte-verre { animation: none !important; }
  .dock, .bulle, .suggestions, .calque, .bulle-champ { transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .dock .bulle { animation: none !important; }
}

/* L'agent cherche la réponse : le symbole respire, la question attend. */
.dock.is-thinking .bulle-symbole { animation: reflechit 900ms ease-in-out infinite alternate; }
@keyframes reflechit { from { opacity: .3; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dock.is-thinking .bulle-symbole { animation: none; } }

/* ---------- Marko : la conversation dans le calque ----------
   Le fil se lit comme la page : Marko à gauche, sans bulle, avec ses cartes en verre ;
   le visiteur à droite, dans le registre de la parole (italique, guillemets). */
.marko {
  position: relative; display: block; flex: none; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 38%, oklch(40% .06 192), oklch(21% .035 206) 72%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14), 0 8px 18px -10px rgb(0 0 0 / .7);
}
.marko img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.marko-vivant img { opacity: 0; transition: opacity 260ms var(--ease-out); }
.calque[data-marko="repos"] .marko-vivant img[data-etat="repos"],
.calque[data-marko="ecoute"] .marko-vivant img[data-etat="ecoute"],
.calque[data-marko="reflechit"] .marko-vivant img[data-etat="reflechit"],
.calque[data-marko="repond"] .marko-vivant img[data-etat="repond"] { opacity: 1; }

/* En-tête : Marko, et l'outil nommé tel qu'il est. */
.calque-marko { display: flex; align-items: center; gap: 12px; margin: 0 auto 0 12px; min-width: 0; }
.calque-marko .marko-tete { width: 44px; }
.calque-marko-nom { display: grid; gap: 1px; margin: 0; max-width: none; line-height: 1.25; }
.calque-marko-nom strong { font: 600 1.0625rem/1.2 var(--font-titre); color: var(--papier); }
.calque-marko .calque-ia { margin: 0; }
.calque[data-marko="reflechit"] .calque-ia > span:first-child { animation: reflechit 700ms ease-in-out infinite alternate; }

.tchat { list-style: none; width: 100%; max-width: 46rem; margin: 0 auto; padding: clamp(8px, 2vh, 24px) 0 0; display: flex; flex-direction: column; gap: clamp(20px, 3.2vh, 32px); }
.msg { display: flex; align-items: flex-start; gap: 14px; }
.msg-marko > .marko { width: 36px; margin-top: 2px; }
.msg-corps { flex: 1; min-width: 0; display: grid; justify-items: start; gap: 12px; }
.msg-texte { margin: 0; max-width: 40rem; font-size: 1.0625rem; line-height: 1.55; color: rgb(243 238 229 / .9); }
.msg-titre { margin: 0; max-width: 40rem; font: 600 clamp(1.375rem, 2.1vw, 1.75rem)/1.2 var(--font-titre); letter-spacing: -.015em; color: var(--papier); text-wrap: balance; }
.msg-visiteur { justify-content: flex-end; }
.msg-visiteur p {
  margin: 0; max-width: min(34rem, 86%); padding: 12px 18px; border-radius: 20px 20px 6px 20px;
  font: italic 400 1.125rem/1.45 var(--font-titre); color: var(--papier);
  background: rgb(243 238 229 / .1); box-shadow: inset 0 1px 0 rgb(255 255 255 / .1);
}

/* Présentation : le portrait en grand, une seule fois en tête du fil. */
.msg-intro { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(16px, 3vw, 28px); padding-bottom: 4px; }
.marko-buste { width: clamp(112px, 16vh, 168px); }
.msg-intro-titre { margin: 0; font: 600 clamp(1.75rem, 3vw, 2.5rem)/1.1 var(--font-titre); letter-spacing: -.025em; color: var(--papier); }

/* Les cartes d'une réponse, à l'échelle du fil. */
.tchat .reponse-points, .tchat .reponse-etapes { width: 100%; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 10px; }
/* Quatre cartes : deux rangées de deux, jamais trois et une orpheline (01/10). Sur téléphone, une colonne. */
@media (min-width: 721px) {
  .tchat :is(.reponse-points, .reponse-etapes):has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.tchat .reponse-point, .tchat .reponse-etape { padding: 14px 18px; border-radius: 18px; font-size: .9375rem; line-height: 1.5; }
.tchat .reponse-point dt { font-size: 1.0625rem; }
.tchat .reponse-parole { font-size: 1.25rem; }
.tchat .reponse-note { font-size: .9375rem; }
.msg-actions { gap: 10px 24px; margin-top: 4px; }

/* Marko écrit : trois points, le temps que la réponse arrive. */
.frappe { display: inline-flex; align-items: center; gap: 6px; height: 36px; margin: 0; }
.frappe i { width: 8px; height: 8px; border-radius: 50%; background: var(--turquoise-pale); opacity: .3; animation: frappe 1100ms ease-in-out infinite; }
.frappe i:nth-child(2) { animation-delay: 150ms; }
.frappe i:nth-child(3) { animation-delay: 300ms; }
@keyframes frappe { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

/* Quiz : la progression en trois barres, comme le sigle. */
.quiz-etape { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: .8125rem; color: rgb(243 238 229 / .62); }
.quiz-barres { display: inline-flex; align-items: flex-end; gap: 3px; height: 14px; }
.quiz-barres i { width: 4px; height: 6px; border-radius: 2px; background: rgb(243 238 229 / .22); transition: background-color 300ms; }
.quiz-barres i:nth-child(2) { height: 10px; }
.quiz-barres i:nth-child(3) { height: 14px; }
.quiz-barres i.fait { background: var(--turquoise-pale); }

/* Le forfait conseillé : une carte de verre, le prix en chiffres tabulaires. */
.forfait-conseil { width: min(100%, 26rem); }
.forfait-conseil p { margin: 0; max-width: none; }
.forfait-conseil-nom { font: 600 1.5rem/1.15 var(--font-titre); color: var(--papier); }
.forfait-conseil-prix { font-size: 1.0625rem; font-variant-numeric: tabular-nums; color: var(--turquoise-pale); }
.forfait-conseil-detail { font-size: .9375rem; line-height: 1.5; }
.forfait-conseil-note { font-size: .875rem; color: rgb(243 238 229 / .62); }

@media (max-width: 720px) {
  .tchat .reponse-points, .tchat .reponse-etapes { display: grid; grid-template-columns: 1fr; margin-inline: 0; padding: 0; overflow: visible; }
  .tchat .reponse-point, .tchat .reponse-etape { flex: none; }
  .msg { gap: 10px; }
  .msg-marko > .marko { width: 30px; }
  .msg-texte { font-size: 1rem; }
  .msg-visiteur p { font-size: 1.0625rem; padding: 10px 16px; }
  .msg-intro { grid-template-columns: 1fr; justify-items: start; }
  .msg-actions .button { width: 100%; justify-content: space-between; }
}
@media (max-width: 480px) {
  .calque-logo { display: none; }
  .calque-marko { margin-left: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .marko-vivant img, .quiz-barres i { transition: none; }
  .frappe i, .calque[data-marko="reflechit"] .calque-ia > span:first-child { animation: none; opacity: .8; }
}
/* Le fil défile sous l'en-tête : celui-ci reste opaque sur sa hauteur, puis se fond. */
.calque-haut { background: linear-gradient(180deg, oklch(14% .026 206) 0, oklch(14% .026 206 / .97) 72%, oklch(14% .026 206 / 0)); padding-bottom: 20px; }
/* Les réponses rapides se posent sur un fond qui masque le fil qui défile dessous. */
/* Il reste dans la réserve basse du fil (150 px au-dessus de la bulle) : il ne couvre jamais la fin d'un message au repos. */
.calque::before { height: calc(var(--dock-bottom) + 150px); background: linear-gradient(180deg, oklch(14% .026 206 / 0), oklch(14% .026 206 / .9) 12%, oklch(14% .026 206 / .97) 45%); }

/* ---------- Marko dans la bulle ----------
   La bulle, c'est Marko : sa tête remplace le symbole, en rond comme en barre.
   Taille et retrait se lisent sur la bulle : centrée dans le rond, au bord de la barre. */
.bulle.avec-marko { --tete: 48px; --tete-bord: 8px; padding-left: calc(var(--tete) + var(--tete-bord) * 2); }
.bulle.avec-marko .bulle-symbole { display: none; }
.bulle-presence { position: absolute; left: var(--tete-bord); top: 50%; z-index: 2; width: var(--tete); translate: 0 -50%; pointer-events: none; transition: opacity 200ms; }
.bulle-presence .marko { width: 100%; }
.bulle-presence.en-vol { opacity: 0; transition: none; }
.dock[data-marko="repos"] .bulle-presence img[data-etat="repos"],
.dock[data-marko="ecoute"] .bulle-presence img[data-etat="ecoute"],
.dock[data-marko="reflechit"] .bulle-presence img[data-etat="reflechit"],
.dock[data-marko="repond"] .bulle-presence img[data-etat="repond"] { opacity: 1; }
/* Une expression pas encore chargée : la tête au repos reste visible dessous. */
.bulle-presence img[data-etat="repos"] { opacity: 1; }
/* Une conversation en cours : un point, comme un message qui attend. */
.bulle-presence::after {
  content: ''; position: absolute; top: 0; right: 0; width: 11px; height: 11px; border-radius: 50%;
  background: var(--turquoise); box-shadow: 0 0 0 2px oklch(20% .03 205);
  opacity: 0; scale: .4; transition: opacity 250ms ease-out, scale 350ms var(--ease-out);
}
.dock[data-surface="papier"] .bulle-presence::after { background: var(--turquoise-profond); box-shadow: 0 0 0 2px rgb(255 253 249); }
.dock.en-cours:not([data-mode="suivi"]) .bulle-presence::after { opacity: 1; scale: 1; }

/* Suivi : Marko a mené à une section. Sa phrase, « Reprendre », et de quoi masquer.
   Même hauteur que la bulle : rien de plus ne passe sous elle. */
.bulle-suivi { display: none; }
.dock[data-mode="suivi"] .bulle { width: min(100%, 30rem); padding-right: 8px; }
.dock[data-mode="suivi"] .bulle-champ { display: none; }
.dock[data-mode="suivi"] .bulle-suivi { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; animation: suivi-entree 420ms var(--ease-out) 120ms both; }
@keyframes suivi-entree { from { opacity: 0; transform: translateX(-8px); } }
.bulle-suivi-texte {
  flex: 1; min-width: 0; max-width: none; margin: 0; padding-right: 10px; font-size: .9375rem; line-height: 1.3;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.bulle-reprendre {
  flex: none; min-height: 44px; padding: 0 16px; border: 0; border-radius: calc(44px / 3); white-space: nowrap;
  font-size: .9375rem; font-weight: 600; background: var(--turquoise); color: var(--encre);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .38), 0 4px 12px -4px rgb(11 110 99 / .5);
  transition: background-color 200ms, transform 200ms var(--ease-out);
}
.bulle-reprendre:active { transform: scale(.97); }
.bulle-masquer { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; opacity: .72; transition: background-color 200ms, opacity 200ms; }
.bulle-masquer svg { width: 18px; height: 18px; }
@media (hover: hover) {
  .bulle-reprendre:hover { background: var(--turquoise-pale); }
  .bulle-masquer:hover { background: rgb(128 128 128 / .14); opacity: 1; }
}

/* L'envol : la tête quitte l'en-tête du calque pour la bulle. */
.marko-envol { position: fixed; z-index: 70; margin: 0; transform-origin: 0 0; pointer-events: none; will-change: transform; }

/* Dans le fil : la trace d'un renvoi vers la page. */
.msg-renvoi { justify-content: center; }
.msg-renvoi p { margin: 0; display: inline-flex; align-items: center; gap: 10px; font-size: .875rem; color: rgb(243 238 229 / .62); }
.msg-renvoi p::before, .msg-renvoi p::after { content: ''; width: 28px; height: 1px; background: rgb(243 238 229 / .22); }

@media (max-width: 640px) {
  .bulle.avec-marko { --tete: 44px; --tete-bord: 8px; }
  .dock[data-mode="suivi"] .bulle { padding-right: 6px; }
  .bulle-suivi-texte { font-size: .875rem; padding-right: 6px; }
  .bulle-reprendre { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .dock[data-mode="suivi"] .bulle-suivi { animation: none; }
  .bulle-presence::after { transition: none; }
}
