:root {
  --bg: #f6f6f9;
  --surface: #ffffff;
  --ink: #12101c;
  --ink-2: #4b4860;
  --line: #dddbe8;
  --accent: #4b2bf0;
  --accent-ink: #3a1fd0;
  --accent-soft: #ebe7ff;
  --radius: 14px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --display: "Bricolage Grotesque", "Geist", system-ui, sans-serif;
  --ui: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--ui);
  caret-color: var(--accent);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
button, input { font: inherit; color: inherit; }
a { color: var(--accent-ink); text-underline-offset: .2em; }
svg { flex: none; }
.sr-only, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- En-tête ---------- */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 22px clamp(20px, 4vw, 48px);
}
.logo { font: 800 1.45rem/1 var(--display); letter-spacing: -.035em; color: var(--ink); text-decoration: none; }
.logo span { color: var(--accent); }
.top-note { margin: 0; font-size: .875rem; font-weight: 500; color: #fff; }

/* ---------- Mise en page ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100svh; }
.panel {
  display: flex; flex-direction: column; justify-content: center;
  padding: 110px clamp(24px, 6vw, 88px) 64px;
  max-width: 44rem; width: 100%; justify-self: end;
}

/* ---------- Écrans du tunnel ---------- */
.screen { display: none; border: 0; margin: 0; padding: 0; min-width: 0; }
.screen.is-active { display: block; animation: enter .7s var(--ease) both; }
.screen.is-leaving { display: block; animation: leave .22s ease-in both; }
@keyframes enter { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }
@keyframes leave { to { opacity: 0; transform: translateY(-12px); filter: blur(4px); } }

h1, h2, legend {
  font-family: var(--display); font-weight: 750; letter-spacing: -.03em; line-height: 1.05;
  text-wrap: balance; color: var(--ink);
}
h1 { font-size: clamp(2.35rem, 4.6vw, 3.9rem); margin: 0 0 .45em; }
h1 em { font-style: normal; color: var(--accent); }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin: .4em 0 .35em; }
legend { font-size: clamp(1.65rem, 2.9vw, 2.35rem); padding: 0; margin: 0 0 1.1em; float: left; width: 100%; }
legend + * { clear: both; }
.lead { font-size: clamp(1.06rem, 1.4vw, 1.2rem); color: var(--ink-2); max-width: 36ch; margin: 0 0 1.6em; text-wrap: pretty; }

.pledges { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; padding: 0; margin: 0 0 2.2rem; font-weight: 500; }
.pledges li { display: flex; align-items: center; gap: .45rem; }
.pledges svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 52px; padding: 0 1.5rem; border: 0; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 600; cursor: pointer;
  box-shadow: 0 8px 22px -10px rgba(75, 43, 240, .7);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .2s;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.btn:hover { background: var(--accent-ink); transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(75, 43, 240, .8); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .35; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-big { min-height: 60px; padding: 0 1.9rem; font-size: 1.1rem; }
.btn-small { min-height: 42px; padding: 0 1.1rem; font-size: .95rem; }
.btn.is-loading { pointer-events: none; color: transparent; position: relative; }
.btn.is-loading::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 22px; height: 22px;
  border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(1turn); } }
.back {
  border: 0; background: none; padding: .6rem .2rem; color: var(--ink-2); cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: .25em;
}
.back:hover { color: var(--ink); text-decoration-color: currentColor; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 1.4rem; margin-top: 1.8rem; }
.hint { font-size: .875rem; color: var(--ink-2); }

/* ---------- Champs ---------- */
.field { display: block; margin-bottom: 1.1rem; }
.label { display: block; font-weight: 500; margin-bottom: .45rem; }
.label small { font-weight: 400; color: var(--ink-2); font-size: .9em; }
.field :is(input, textarea) {
  width: 100%; height: 62px; padding: 0 1.1rem;
  border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface);
  font-size: 1.25rem; transition: border-color .2s, box-shadow .3s var(--ease);
}
.field textarea { display: block; height: auto; min-height: 8.5rem; padding: .9rem 1.1rem; font: inherit; font-size: 1.1rem; line-height: 1.5; resize: vertical; }
.field :is(input, textarea)::placeholder { color: #8a879c; }
.field :is(input, textarea):hover { border-color: #bdb9d0; }
.field :is(input, textarea):focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field :is(input, textarea)[aria-invalid="true"] { border-color: #c2183a; }
.check { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.error { color: #b0142f; font-weight: 500; margin: .3rem 0 0; animation: shake .4s var(--ease); }
@keyframes shake { 25% { transform: translateX(-5px); } 60% { transform: translateX(4px); } }
.legal { font-size: .875rem; color: var(--ink-2); max-width: 46ch; margin: .2rem 0 0; }

/* ---------- Options ---------- */
.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .6rem; counter-reset: opt; }
.options label { position: relative; counter-increment: opt; cursor: pointer; }
.options input { position: absolute; opacity: 0; pointer-events: none; }
.options span {
  display: flex; align-items: center; gap: .8rem; height: 100%; min-height: 56px; padding: .7rem 1rem;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); font-weight: 500; line-height: 1.25;
  transition: border-color .2s, background .2s, color .2s, transform .35s var(--ease), box-shadow .35s var(--ease);
}
.options span::before {
  content: counter(opt, upper-alpha); flex: none;
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px;
  border: 1.5px solid var(--line); font-size: .78rem; font-weight: 600; color: var(--ink-2);
  transition: inherit;
}
.options label:hover span { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 10px 22px -16px rgba(75, 43, 240, .6); }
.options input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.options input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; animation: pick .45s var(--ease); }
.options input:checked + span::before { background: #fff; border-color: #fff; color: var(--accent); }
@keyframes pick { 40% { transform: scale(.97); } }

/* ---------- Verdict prix ---------- */
.verdict {
  display: flex; align-items: center; gap: 1rem; margin-top: 1.1rem; padding: 1.05rem 1.2rem;
  background: var(--accent-soft); border-radius: var(--radius); color: var(--ink);
  animation: pop .6s var(--ease) both;
}
.verdict[hidden] { display: none; }
.verdict p { margin: 0; font-weight: 500; text-wrap: pretty; }
.verdict p strong { color: var(--accent-ink); }
.wink { width: 44px; height: 44px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; animation: wink 2.4s 0.4s var(--ease) both; }
.wink .dot { fill: var(--accent); stroke: none; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); filter: blur(4px); } }
@keyframes wink { 0% { transform: rotate(-14deg) scale(.7); } 30% { transform: rotate(6deg) scale(1.05); } 50%, 100% { transform: none; } }

/* ---------- Fin ---------- */
.done { text-align: left; }
.done:focus { outline: none; }
.done-mark { width: 72px; height: 72px; fill: none; stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.done-mark circle { stroke-dasharray: 190; stroke-dashoffset: 190; animation: draw .9s .1s var(--ease) forwards; }
.done-mark path { stroke-dasharray: 50; stroke-dashoffset: 50; animation: draw .5s .7s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.sign { font: 700 1.5rem/1 var(--display); letter-spacing: -.02em; color: var(--accent); margin: 0; }

/* ---------- Mots qui montent, options en cascade ---------- */
.w { display: inline-block; white-space: pre; }
.screen.is-active .w { animation: word .7s var(--ease) both; animation-delay: calc(var(--i) * 45ms); }
@keyframes word { from { opacity: 0; transform: translateY(.45em) rotate(2deg); filter: blur(5px); } }
.screen.is-active .options label { animation: opt .6s var(--ease) both; animation-delay: calc(180ms + var(--i) * 45ms); }
@keyframes opt { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.aside { margin: -.7rem 0 1.3rem; color: var(--ink-2); clear: both; }
.screen.is-active .aside, .screen.is-active .field, .screen.is-active .actions, .screen.is-active .check { animation: opt .6s .25s var(--ease) both; }

/* ---------- Dossier : les réponses s'y envolent ---------- */
.dossier { margin-bottom: 2.2rem; min-height: 4.2rem; }
.dossier[hidden] { display: none; }
.dossier-label { margin: 0 0 .55rem; font-size: .85rem; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: .45rem; }
.dossier-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); animation: beat 2.4s ease-in-out infinite; }
@keyframes beat { 50% { box-shadow: 0 0 0 7px rgba(75, 43, 240, .08); } }
.dossier ul, .recap { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  display: inline-flex; align-items: baseline; gap: .4rem; max-width: 100%; padding: .32rem .75rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 99px; font-size: .86rem; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chip small { color: var(--ink-2); font-weight: 400; font-size: .78rem; }
.chip.is-new { animation: land .55s var(--ease); }
.chip.is-hidden { visibility: hidden; }
@keyframes land { 0% { transform: scale(.9); background: var(--accent-soft); border-color: var(--accent); } 60% { transform: scale(1.04); } }
.fly {
  position: fixed; z-index: 60; margin: 0; pointer-events: none; display: flex; align-items: center;
  padding: 0 1rem; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 500; white-space: nowrap; overflow: hidden;
  box-shadow: 0 18px 30px -14px rgba(75, 43, 240, .7);
}
.recap { margin: 0 0 1.6rem; }

/* ---------- Feu d'artifice final ---------- */
.done { position: relative; }
.burst { position: absolute; left: 36px; top: 36px; width: 0; height: 0; }
.burst i {
  position: absolute; width: var(--s); height: var(--s); border-radius: var(--r); background: var(--c);
  animation: pop-out 1.1s var(--ease) both; animation-delay: var(--d);
}
@keyframes pop-out {
  0% { transform: translate(0, 0) scale(0) rotate(0); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translate(var(--x), var(--y)) scale(1) rotate(var(--a)); opacity: 0; }
}

/* ---------- Démo : Maison Lemoine, avant / après ---------- */
.demo {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem;
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .16) 1px, transparent 0) 0 0 / 26px 26px,
    var(--accent);
  overflow: hidden; padding: 100px 5% 48px;
}
.demo::before {
  content: ""; position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; left: 50%; top: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .16), transparent); translate: -50% -50%;
  animation: halo 9s ease-in-out infinite alternate; pointer-events: none;
}
@keyframes halo { to { translate: -38% -58%; } }
.browser {
  position: relative; width: min(820px, 100%); background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 60px 90px -45px rgba(14, 6, 70, .8), 0 20px 34px -20px rgba(14, 6, 70, .55);
  transform: perspective(2200px) rotateY(-4deg) rotateX(2deg);
  animation: float 9s ease-in-out infinite;
}
@keyframes float { 50% { transform: perspective(2200px) rotateY(-2deg) rotateX(1deg) translateY(-8px); } }
.chrome { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; background: #f1f0f6; border-bottom: 1px solid #e3e1ec; }
.chrome i { width: 11px; height: 11px; border-radius: 50%; background: #d8d5e4; }
.address {
  flex: 1; display: flex; align-items: center; gap: 6px; margin-left: 12px; height: 25px; padding: 0 10px;
  border-radius: 8px; background: #fff; font-size: .78rem; color: var(--ink-2); overflow: hidden; white-space: nowrap;
}
.address svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.viewport { --k: .6; position: relative; aspect-ratio: 16 / 10.5; overflow: hidden; background: #f6efe3; }
.site { position: absolute; left: 0; top: 0; width: 1000px; height: calc(100% / var(--k)); transform: scale(var(--k)); transform-origin: 0 0; overflow: hidden; }

/* Avant : vieux site crédible */
.old {
  background: radial-gradient(circle, #e7d3a6 2px, transparent 2.5px) 0 0 / 18px 18px, #f1e3c1;
  font: 13px/1.4 "Times New Roman", Times, serif; color: #222;
  transition: filter .9s ease, opacity .9s ease;
}
.o-scroll { width: 780px; margin: 0 auto; background: #fffdf3; border: 3px double #8a5a2b; border-top: 0; }
[data-state="old"] .o-scroll { animation: oscroll 4s 2.4s ease-in-out both; }
@keyframes oscroll { to { transform: translateY(-150px); } }
.o-main .o-guest-title { margin-top: 16px; padding: 3px 8px; background: #8a5a2b; color: #fff; font: bold 13px Verdana, sans-serif; }
.o-main .o-guest { padding: 6px 8px; background: #fff7dc; border: 1px dotted #b08850; font: italic 13px "Comic Sans MS", cursive; color: #5a3a1a; }
.o-head { display: flex; align-items: center; gap: 14px; padding: 14px; background: linear-gradient(#8a5a2b, #4a2a12); }
.o-head img { border: 3px ridge #c9a36b; image-rendering: pixelated; }
.o-title { margin: 0; font: bold 31px/1.1 Georgia, serif; color: #ffd84a; text-shadow: 2px 2px 0 #000; }
.o-sub { margin: 4px 0 0; font: italic 16px "Comic Sans MS", cursive; color: #fff; }
.o-nav { display: flex; flex-wrap: wrap; gap: 3px; margin: 0; padding: 5px; list-style: none; background: #d9c8a0; border-bottom: 2px solid #8a5a2b; }
.o-nav li { padding: 4px 11px; font: 13px Verdana, sans-serif; color: #0000cc; text-decoration: underline; background: linear-gradient(#fafafa, #c8c8c8); border: 2px outset #ddd; }
.o-body { display: flex; gap: 12px; padding: 12px; }
.o-side { flex: 0 0 200px; background: #f6e4b8; border: 1px solid #b08850; font: 12px/1.45 Verdana, sans-serif; }
.o-side p { margin: 6px 8px; }
.o-side .o-box-title { margin: 0 0 6px; padding: 3px 8px; background: #8a5a2b; color: #fff; font-weight: bold; }
.o-main p { margin: 0 0 10px; text-align: justify; }
.o-main .o-welcome { font: bold 21px Georgia, serif; color: #cc0000; text-align: center; }
.o-main .o-blink { font: bold 15px Arial, sans-serif; color: #ff0000; text-align: center; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { visibility: hidden; } }
.o-main .o-pics { text-align: center; }
.o-pics img { border: 2px solid #000; margin: 0 6px; image-rendering: pixelated; }
.o-main .o-caption { font: italic 11px Arial, sans-serif; color: #666; text-align: center; }
.o-foot { margin: 0; padding: 10px; border-top: 1px dashed #b08850; font: 10px/1.5 Arial, sans-serif; color: #555; text-align: center; }

/* Après : la même boulangerie, refaite */
.new {
  --l-ink: #2a160d; --l-gold: #e0a43a; --l-flour: #f6efe3;
  background: var(--l-flour); color: var(--l-ink); font-family: "Geist", system-ui, sans-serif;
  clip-path: circle(0% at 50% 55%); transition: clip-path 1.1s cubic-bezier(.7, 0, .2, 1);
}
[data-state="new"] .new { clip-path: circle(140% at 50% 55%); }
[data-state="new"] .old { filter: blur(6px) grayscale(.6); opacity: .5; }
[data-state="new"] .n-scroll { animation: nscroll 11s 1.2s cubic-bezier(.65, 0, .35, 1) both; }
@keyframes nscroll { 0%, 34% { transform: none; } 46%, 70% { transform: translateY(-330px); } 82%, 100% { transform: translateY(-500px); } }
.n-nav {
  position: absolute; z-index: 2; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 28px; padding: 22px 56px;
  color: #fff; font-size: 14px; font-weight: 500;
}
.n-nav b { margin-right: auto; font: 400 30px/1 "Gloock", Georgia, serif; letter-spacing: -.01em; }
.n-cta { padding: 9px 18px; border-radius: 99px; background: var(--l-gold); color: var(--l-ink); font-weight: 600; }
.n-hero { position: relative; height: 580px; overflow: hidden; color: #fff; }
.n-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
[data-state="new"] .n-hero img { animation: kenburns 12s ease-out both; }
@keyframes kenburns { from { transform: scale(1.14) translateX(2%); } }
.n-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(42, 22, 13, .9) 8%, rgba(42, 22, 13, .45) 48%, rgba(42, 22, 13, .05) 80%); }
.n-hero-copy { position: absolute; z-index: 1; left: 56px; bottom: 64px; max-width: 560px; }
.n-title { margin: 0 0 18px; font: 400 76px/.98 "Gloock", Georgia, serif; letter-spacing: -.02em; }
.n-title span { display: block; }
.n-title em { font-style: normal; color: var(--l-gold); }
.n-sub { margin: 0 0 26px; font-size: 16px; letter-spacing: .02em; opacity: .85; }
.n-btns { display: flex; gap: 12px; margin: 0; }
.n-btn { padding: 14px 24px; border-radius: 99px; background: var(--l-gold); color: var(--l-ink); font-weight: 600; font-size: 15px; }
.n-btn.ghost { background: none; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
[data-state="new"] .n-title span, [data-state="new"] .n-sub, [data-state="new"] .n-btn, [data-state="new"] .n-nav > * { animation: nrise .9s var(--ease) both; }
[data-state="new"] .n-title span:nth-child(1) { animation-delay: .55s; }
[data-state="new"] .n-title span:nth-child(2) { animation-delay: .7s; }
[data-state="new"] .n-title span:nth-child(3) { animation-delay: .85s; }
[data-state="new"] .n-sub { animation-delay: 1.05s; }
[data-state="new"] .n-btn { animation-delay: 1.2s; }
[data-state="new"] .n-btn.ghost { animation-delay: 1.3s; }
[data-state="new"] .n-nav > * { animation-delay: .4s; }
@keyframes nrise { from { opacity: 0; transform: translateY(30px); filter: blur(8px); } }
.n-badge { position: absolute; z-index: 1; right: 56px; top: 110px; width: 138px; }
.n-badge text { font: 600 10.2px "Geist", sans-serif; letter-spacing: 2.6px; fill: var(--l-flour); }
.n-badge circle { fill: var(--l-gold); }
[data-state="new"] .n-badge { animation: nrise .9s 1.3s var(--ease) both, spin 16s 1.3s linear infinite; }
@keyframes spin { to { rotate: 1turn; } }
.n-products { padding: 46px 56px 50px; }
.n-h { margin: 0 0 22px; font: 400 40px/1 "Gloock", Georgia, serif; }
.n-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.n-card b { display: block; margin-top: 12px; font-size: 16px; font-weight: 600; }
.n-card small { font-size: 14px; color: #9a5d12; font-weight: 500; }
.n-img { display: block; aspect-ratio: 4 / 5; border-radius: 16px; background-repeat: no-repeat; background-size: cover; box-shadow: 0 18px 30px -18px rgba(42, 22, 13, .55); }
.n-img.i1 { background-image: url(assets/lemoine-pains.webp); background-size: 300%; background-position: 4% 40%; }
.n-img.i2 { background-image: url(assets/lemoine-pains.webp); background-size: 260%; background-position: 81% 100%; }
.n-img.i3 { background-image: url(assets/lemoine-viennoiseries.webp); background-size: 230%; background-position: 99% 30%; }
.n-img.i4 { background-image: url(assets/lemoine-viennoiseries.webp); background-size: 230%; background-position: 71% 70%; }
[data-state="new"] .n-card { animation: nrise .9s var(--ease) both; }
[data-state="new"] .n-card:nth-child(1) { animation-delay: 4.6s; }
[data-state="new"] .n-card:nth-child(2) { animation-delay: 4.72s; }
[data-state="new"] .n-card:nth-child(3) { animation-delay: 4.84s; }
[data-state="new"] .n-card:nth-child(4) { animation-delay: 4.96s; }
.n-info { display: flex; justify-content: space-between; gap: 20px; padding: 30px 56px; background: var(--l-ink); color: var(--l-flour); font-size: 15px; }
.n-info p { margin: 0; display: flex; align-items: center; gap: 10px; }
.n-dot { width: 9px; height: 9px; border-radius: 50%; background: #6fd37f; box-shadow: 0 0 0 0 rgba(111, 211, 127, .6); animation: ping 1.8s infinite; }
@keyframes ping { 70%, 100% { box-shadow: 0 0 0 10px rgba(111, 211, 127, 0); } }

.flash { position: absolute; left: 50%; top: 55%; width: 40px; height: 40px; margin: -20px; border-radius: 50%; border: 3px solid #fff; opacity: 0; pointer-events: none; }
[data-state="new"] .flash { animation: ring 1.1s ease-out; }
@keyframes ring { 0% { opacity: .9; transform: scale(.2); } 100% { opacity: 0; transform: scale(18); } }

.demo-bar { position: relative; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.toggle { position: relative; display: flex; padding: 4px; border-radius: 99px; background: rgba(255, 255, 255, .14); }
.toggle button {
  position: relative; z-index: 1; min-width: 96px; min-height: 40px; padding: 0 1rem; border: 0; border-radius: 99px;
  background: none; color: #fff; font-weight: 600; cursor: pointer; transition: color .35s;
}
.toggle button[aria-pressed="true"] { color: var(--accent); }
.toggle button:focus-visible { outline-color: #fff; }
.toggle-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 99px; background: #fff; transition: transform .55s var(--ease); }
[data-state="new"] .toggle-pill { transform: translateX(100%); }
.demo-note { margin: 0; font-size: .82rem; color: rgba(255, 255, 255, .78); }

/* ---------- Consentement ---------- */
.consent {
  position: fixed; left: 16px; bottom: 16px; z-index: 20; max-width: 25rem;
  display: flex; flex-direction: column; gap: .7rem; padding: 1rem 1.1rem;
  background: var(--surface); border-radius: var(--radius); font-size: .9rem;
  box-shadow: 0 20px 40px -20px rgba(18, 16, 28, .45), 0 0 0 1px var(--line);
  animation: pop .6s 1.2s var(--ease) both;
}
.consent[hidden] { display: none; }
.consent p { margin: 0; color: var(--ink-2); }
.consent div { display: flex; align-items: center; gap: 1rem; }

/* ---------- Mobile ---------- */
@media (max-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .panel { justify-self: stretch; max-width: none; padding: 28px 20px 48px; }
  .demo { order: -1; padding: 66px 16px 18px; gap: .8rem; }
  .browser { transform: none; animation: none; }
  .demo-bar { gap: .3rem 1rem; }
  .demo-note { font-size: .72rem; }
  .toggle button { min-width: 80px; min-height: 34px; font-size: .9rem; }
  .top-note { display: none; }
  .logo { color: #fff; }
  .logo span { color: #c9bfff; }
  body.started .demo { display: none; }
  body.started .logo { color: var(--ink); }
  body.started .logo span { color: var(--accent); }
  body.started .panel { padding-top: 76px; }
  .options { grid-template-columns: 1fr; }
  .options span { min-height: 52px; }
  .actions .btn { flex: 1 1 auto; justify-content: center; }
  .hint { display: none; }
  .intro .btn-big { position: sticky; bottom: 16px; width: 100%; justify-content: center; }
  .pledges { margin-bottom: 1.6rem; }
  .dossier { margin-bottom: 1.6rem; min-height: 0; }
  .dossier ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 88%, transparent); padding: 0 8%; margin: 0 -20px; }
  .dossier .chip { flex: none; }
  .consent { left: 12px; right: 12px; max-width: none; }
}

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