@font-face { font-family: 'Fraunces'; src: url('/fonts/fraunces-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('/fonts/fraunces-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('/fonts/fraunces-latin-500-italic.woff2') format('woff2'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
/* Une boîte de thé se fait flasher en ouverture, puis les usages et un récit qui fait défiler les écrans de l'app. */
:root {
  --paper: #E9EDE2;
  --card: #F6F8F1;
  --ink: #1C2B22;
  --ink-soft: #4A5A50;
  --muted: #7A857C;
  --line: #D3DAC8;
  --leaf: #2F5D46;
  --leaf-deep: #1E3E2F;
  --leaf-soft: #DCE8DF;
  --amber: #B97A2E;
  --on-leaf: #FFFDF8;
  --display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --r: 18px;
  --loop: 6s;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #111913; --card: #18231C; --ink: #EDEFE6; --ink-soft: #C3CCC4; --muted: #8E9A90;
    --line: #2A3A30; --leaf: #86BC9C; --leaf-deep: #1E3E2F; --leaf-soft: #213328; --amber: #DDA85F; --on-leaf: #0E1611;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #111913; --card: #18231C; --ink: #EDEFE6; --ink-soft: #C3CCC4; --muted: #8E9A90;
  --line: #2A3A30; --leaf: #86BC9C; --leaf-deep: #1E3E2F; --leaf-soft: #213328; --amber: #DDA85F; --on-leaf: #0E1611;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--body); margin: 0; overflow-x: hidden; }
.wrap { max-width: 1340px; margin: 0 auto; padding-inline: clamp(20px, 4vw, 56px); }
a { color: var(--leaf); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; font-weight: 500; }
p { margin: 0; }
.kicker { font: 600 0.75rem/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); }
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 34em; }

/* En-tête + progression de lecture */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; text-decoration: none; color: var(--ink); font: 700 2.05rem/1 var(--display); }
@media (max-width: 640px) { .brand { font-size: 1.75rem; } }
/* Logo : « Thé » italique vert, O en tasse de thé vue du dessus, « dex » gras */
.wm { display: inline-block; white-space: nowrap; letter-spacing: -0.01em; }
.wm i { font-weight: 500; font-style: italic; color: var(--leaf); }
.wm b { font-weight: 700; }
.wm .cup { height: .75em; width: auto; vertical-align: baseline; margin: 0 -.01em 0 .02em; overflow: visible; }
.wm .ring { fill: none; stroke: currentColor; stroke-width: 12; }
.wm .tea { fill: var(--amber); }
.wm .shine { fill: none; stroke: #FFFDF8; stroke-width: 5; stroke-linecap: round; opacity: .85; }
.wm .handle { fill: none; stroke: currentColor; stroke-width: 10; stroke-linecap: round; }
.brand:hover .tea { fill: var(--leaf); transition: fill .3s; }
.top nav { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.top nav a { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.top nav a:hover { color: var(--ink); }
.top nav .cta { background: var(--leaf); color: var(--on-leaf); padding: 9px 16px; border-radius: 999px; transition: transform .2s, background .2s; }
.top nav .cta:hover { color: var(--on-leaf); background: var(--leaf-deep); transform: translateY(-1px); }
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--leaf); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
@media (max-width: 640px) { .top nav a:not(.cta) { display: none; } }

/* Héros */
.hero { padding-block: 40px 40px; }
.hero-id { display: flex; align-items: center; gap: 14px; }
.hero-id img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 10px 24px -10px rgba(20,30,24,.45); flex: none; }
.hero-id .kicker { line-height: 1.5; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 4vw, 72px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
h1 .line { display: block; animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
h1 .line + .line { color: var(--leaf); font-style: italic; font-weight: 500; animation-delay: .15s; }
.hero-copy .lead, .hero-copy .stores, .hero-copy .soon { animation: rise .9s .3s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { transform: translateY(26px); opacity: 0; } }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 12px; padding: 11px 18px 11px 14px; border-radius: 14px; background: var(--ink); color: var(--paper); text-decoration: none; min-width: 190px; transition: transform .2s; }
.store:not([aria-disabled="true"]):hover { transform: translateY(-2px); }
.store svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.store small { display: block; font-size: 0.7rem; opacity: 0.75; }
.store span { font-weight: 600; font-size: 1.02rem; line-height: 1.15; }
.store[aria-disabled="true"] { background: var(--card); color: var(--ink); border: 1.5px solid var(--line); cursor: default; }
.soon { font-size: 0.85rem; color: var(--muted); }
@media (max-width: 480px) { .stores .store { min-width: 0; flex: 1 1 150px; padding-inline: 12px 10px; gap: 10px; } .store span { font-size: .95rem; } }

/* Scène : la boîte, le téléphone qui la flashe */
.stage { position: relative; width: 100%; max-width: 620px; aspect-ratio: 520 / 540; justify-self: center; transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .4s ease-out; }
.stage .shadow { position: absolute; left: 4%; top: 83%; width: 60%; height: 7%; border-radius: 50%; background: radial-gradient(closest-side, rgba(20,30,24,.28), transparent); animation: shadow 7s ease-in-out infinite; }
.box { position: absolute; left: 0; top: 2%; width: 64%; height: auto; overflow: visible; animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-.6deg); } }
@keyframes shadow { 50% { transform: scaleX(.9); opacity: .75; } }
.box .beam { animation: on var(--loop) infinite, sweep .8s ease-in-out infinite alternate; filter: drop-shadow(0 0 3px #FF3B30); }
@keyframes on { 0%, 14% { opacity: 0; } 18%, 38% { opacity: 1; } 41%, 100% { opacity: 0; } }
@keyframes sweep { from { transform: translateY(-9px); } to { transform: translateY(9px); } }

.scanner { position: absolute; right: 0; top: 10%; width: 42%; aspect-ratio: 9 / 19.5; border-radius: 13% / 6%; background: #0D130F; padding: 3.2%; box-shadow: 0 30px 60px -18px rgba(20,30,24,.5), 0 0 0 1px rgba(0,0,0,.08); container-type: inline-size; animation: aim var(--loop) cubic-bezier(.5,0,.3,1) infinite; }
@keyframes aim { 0%, 4% { transform: translate(0, 0) rotate(-7deg); } 16%, 76% { transform: translate(-7%, -3%) rotate(-3deg); } 92%, 100% { transform: translate(0, 0) rotate(-7deg); } }
.screen { position: relative; height: 100%; border-radius: 10% / 4.6%; overflow: hidden; background: #0B0F0C; }
.island { position: absolute; top: 2.4%; left: 50%; width: 30%; height: 3.6%; border-radius: 99px; background: #000; transform: translateX(-50%); z-index: 5; }
.cam { position: absolute; inset: 0; width: 100%; height: 100%; animation: zoom var(--loop) ease-in-out infinite; }
@keyframes zoom { 0%, 6% { transform: scale(1.05); filter: blur(1.4px); } 22%, 80% { transform: scale(1.18); filter: blur(0); } 100% { transform: scale(1.05); filter: blur(1.4px); } }
.hint { position: absolute; top: 12%; left: 0; right: 0; text-align: center; font: 600 5.6cqw/1.2 var(--body); color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6); animation: hint var(--loop) infinite; }
@keyframes hint { 0%, 38% { opacity: 1; } 42%, 90% { opacity: 0; } 96%, 100% { opacity: 1; } }
.frame { position: absolute; left: 11%; right: 11%; top: 36%; height: 27%; animation: lock var(--loop) cubic-bezier(.3,1.4,.5,1) infinite; }
@keyframes lock { 0%, 38% { transform: scale(1.08); } 43%, 82% { transform: scale(.94); } 92%, 100% { transform: scale(1.08); } }
.frame i { position: absolute; width: 18%; height: 26%; border: 0 solid #fff; animation: tint var(--loop) infinite; }
.frame i:nth-child(1) { left: 0; top: 0; border-width: 2px 0 0 2px; border-top-left-radius: 8px; }
.frame i:nth-child(2) { right: 0; top: 0; border-width: 2px 2px 0 0; border-top-right-radius: 8px; }
.frame i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 2px 2px; border-bottom-left-radius: 8px; }
.frame i:nth-child(4) { right: 0; bottom: 0; border-width: 0 2px 2px 0; border-bottom-right-radius: 8px; }
@keyframes tint { 0%, 39% { border-color: #fff; } 42%, 84% { border-color: #5FD08F; } 90%, 100% { border-color: #fff; } }
.laser { position: absolute; left: 6%; right: 6%; top: 50%; height: 2px; border-radius: 2px; background: #FF3B30; box-shadow: 0 0 10px 2px rgba(255,59,48,.7); animation: on var(--loop) infinite, sweep .8s ease-in-out infinite alternate; }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; animation: flash var(--loop) infinite; }
@keyframes flash { 0%, 40% { opacity: 0; } 42% { opacity: .85; } 50%, 100% { opacity: 0; } }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; background: #FFFDF8; color: #1C2B22; border-radius: 9cqw 9cqw 0 0; padding: 7cqw 7cqw 9cqw; display: flex; flex-direction: column; gap: 4.5cqw; box-shadow: 0 -10px 30px rgba(0,0,0,.25); transform: translateY(105%); animation: sheet var(--loop) cubic-bezier(.2,.9,.25,1) infinite; }
@keyframes sheet { 0%, 45% { transform: translateY(105%); } 54%, 84% { transform: translateY(0); } 93%, 100% { transform: translateY(105%); } }
.sheet .grab { width: 16%; height: 1.4cqw; border-radius: 9px; background: #E3D9C6; align-self: center; margin-top: -3cqw; }
.sheet .row { display: flex; gap: 4.5cqw; align-items: center; }
.sheet .thumb { width: 17cqw; height: 17cqw; flex: none; border-radius: 3.5cqw; background: #24344F; display: grid; place-items: center; }
.sheet .thumb svg { width: 60%; }
.sheet b { display: block; font: 700 7cqw/1.1 var(--display); }
.sheet small { display: block; font: 500 4.6cqw/1.3 var(--body); color: #4A5A50; margin-top: 1cqw; }
.sheet .ok { font: 600 4.2cqw/1 var(--body); color: #2F5D46; display: flex; align-items: center; gap: 1.6cqw; }
.sheet .ok::before { content: ''; width: 2.4cqw; height: 2.4cqw; border-radius: 50%; background: #3FA36B; }
.pills { display: flex; gap: 2cqw; flex-wrap: wrap; }
.pills span { font: 600 4.2cqw/1 var(--body); padding: 2.4cqw 3.2cqw; border-radius: 99px; background: #DCE8DF; color: #1E3E2F; }
.sheet .btn { font: 600 5cqw/1 var(--body); text-align: center; padding: 4.2cqw; border-radius: 99px; background: #2F5D46; color: #FFFDF8; }
/* Mode « boîte entière » : la caméra vise la face avant, le cadre s'agrandit */
.m-front { display: none; }
.stage.front .m-bar { display: none; }
.stage.front .m-front { display: inline; }
.stage.front g.m-front { display: inline; }
.stage.front .frame { left: 7%; right: 7%; top: 19%; height: 62%; }
.stage.front .frame i { width: 14%; height: 10%; }
.stage.front .laser { animation: on var(--loop) infinite, sweepbig 1.3s ease-in-out infinite alternate; }
@keyframes sweepbig { from { transform: translateY(-58cqw); } to { transform: translateY(58cqw); } }
.box .aim { opacity: 0; }
.stage.front .box .beam { display: none; }
.stage.front .box .aim { animation: on var(--loop) infinite; }
.frame { transition: left .4s, right .4s, top .4s, height .4s; }
.modes { position: absolute; left: 2%; bottom: 0; display: flex; align-items: center; gap: 6px; padding: 5px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 10px 24px -14px rgba(20,30,24,.35); z-index: 3; }
.modes span { font: 500 .78rem/1 var(--body); color: var(--muted); padding-inline: 8px 2px; }
.modes button { font: 600 .82rem/1 var(--body); border: 0; border-radius: 99px; padding: 8px 12px; background: transparent; color: var(--ink-soft); cursor: pointer; transition: background .3s, color .3s; }
.modes button[aria-pressed="true"] { background: var(--leaf); color: var(--on-leaf); }
@media (max-width: 420px) { .modes span { display: none; } .modes button { padding: 7px 10px; font-size: .78rem; } }
.chip { position: absolute; left: 30%; top: 0; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 10px; border-radius: 99px; background: var(--card); color: var(--ink); font: 600 .88rem/1 var(--body); box-shadow: 0 12px 30px -10px rgba(20,30,24,.35); border: 1px solid var(--line); white-space: nowrap; opacity: 0; animation: chip var(--loop) cubic-bezier(.3,1.5,.5,1) infinite; }
.chip svg { width: 20px; height: 20px; }
@keyframes chip { 0%, 48% { opacity: 0; transform: translateY(10px) scale(.7); } 55%, 84% { opacity: 1; transform: none; } 91%, 100% { opacity: 0; transform: translateY(-6px) scale(.9); } }
@media (max-width: 860px) {
  /* Téléphone : titre, puis l'animation, puis le texte et les boutons */
  .hero { padding-block: 24px 32px; }
  .hero .wrap { display: flex; flex-direction: column; gap: 20px; align-items: stretch; }
  .hero-copy { display: contents; }
  .hero-id { order: 1; }
  .hero-copy h1 { order: 2; }
  .stage { order: 3; max-width: 420px; align-self: center; margin-block: 4px 8px; }
  .hero-copy .lead { order: 4; }
  .hero-copy .stores { order: 5; }
  .hero-copy .soon { order: 6; }
  .hero-id img { width: 52px; height: 52px; border-radius: 13px; }
  .marquee span { font-size: 1.1rem; gap: 30px; padding-inline: 15px; }
}

/* Défilé des marques */
.marquee { border-block: 1px solid var(--line); background: var(--card); overflow: hidden; padding-block: 18px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee .track { display: flex; width: max-content; animation: slide 38s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.marquee span { font: 500 1.35rem/1 var(--display); color: var(--ink-soft); white-space: nowrap; padding-inline: 22px; display: inline-flex; align-items: center; gap: 44px; }
.marquee span::after { content: '✦'; font-size: .7rem; color: var(--amber); }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee-cap { text-align: center; font-size: .85rem; color: var(--muted); padding-top: 14px; }

/* Chiffres */
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-block: 44px 8px; }
.fact b { display: block; font: 700 clamp(2rem, 3.6vw, 2.8rem)/1 var(--display); color: var(--leaf); font-variant-numeric: tabular-nums; }
.fact span { font-size: 0.92rem; color: var(--ink-soft); }
@media (max-width: 700px) { .facts .wrap { grid-template-columns: repeat(2, 1fr); row-gap: 24px; } }

section { padding-block: 72px; }
@media (max-width: 760px) { section { padding-block: 52px; } }
.head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; max-width: 760px; }

/* Apparition au défilement (uniquement pour ce qui est sous la ligne de flottaison au chargement) */
.reveal { transition: transform .8s cubic-bezier(.2,.7,.2,1), opacity .8s; }
.js .reveal.pending { transform: translateY(36px) scale(.98); opacity: .25; }
.moments .reveal:nth-child(2), .facts .reveal:nth-child(2) { transition-delay: .08s; }
.moments .reveal:nth-child(3), .facts .reveal:nth-child(3) { transition-delay: .16s; }
.facts .reveal:nth-child(4) { transition-delay: .24s; }

/* Trois moments */
.moments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.moment { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.moment:hover { transform: translateY(-6px); box-shadow: 0 22px 40px -24px rgba(20,30,24,.35); transition-delay: 0s; transition-duration: .3s; }
.moment .ico { width: 46px; height: 46px; border-radius: 14px; background: var(--leaf-soft); display: grid; place-items: center; }
.moment .ico svg { width: 24px; height: 24px; fill: none; stroke: var(--leaf); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s; }
.moment:hover .ico svg { transform: rotate(-8deg) scale(1.1); }
.moment .where { font: 500 0.78rem/1 var(--mono); color: var(--amber); letter-spacing: 0.04em; }
.moment p { color: var(--ink-soft); }
@media (max-width: 860px) { .moments { grid-template-columns: 1fr; } }

/* Récit : les 5 gestes en menu déroulant ; sur ordinateur, le défilement ouvre chaque geste tour à tour */
.story-track { position: relative; }
.story { display: grid; grid-template-columns: 1fr 360px; gap: clamp(40px, 6vw, 110px); align-items: center; }
.steps { display: flex; flex-direction: column; }
.step { border-top: 1px solid var(--line); padding: 16px 0; cursor: pointer; transition: opacity .4s; outline: none; }
.step:last-child { border-bottom: 1px solid var(--line); }
.js .step { opacity: .42; }
.js .step.on, .step:hover, .step:focus-visible { opacity: 1; }
.step .num { font: 500 .8rem/1 var(--mono); color: var(--amber); letter-spacing: .08em; }
.step h3 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); font-weight: 700; margin-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.step h3::after { content: ''; flex: none; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .35s; opacity: .5; }
.step.on h3::after { transform: rotate(-135deg) translateY(-2px); }
.step .body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s cubic-bezier(.2,.7,.2,1); }
.js .step.on .body, html:not(.js) .step .body { grid-template-rows: 1fr; }
.step .body-in { overflow: hidden; min-height: 0; display: flex; flex-direction: column; gap: 12px; }
.step .body-in > :first-child { margin-top: 12px; }
.step ul { margin: 0; padding-left: 1.1em; color: var(--ink-soft); display: grid; gap: 6px; }
.step .inline { display: none; }
.pin { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.phone { aspect-ratio: 9 / 19.5; border-radius: 38px; background: #0D130F; padding: 8px; box-shadow: 0 30px 60px -20px rgba(20, 30, 24, 0.45), 0 0 0 1px rgba(0,0,0,0.06); }
.phone .scr { position: relative; height: 100%; border-radius: 30px; overflow: hidden; background: #F7F2E8; }
.phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.pin .phone { width: min(310px, calc((100vh - 200px) * 9 / 19.5)); }
.pin .phone img { opacity: 0; transform: scale(1.05); transition: opacity .6s, transform .8s cubic-bezier(.2,.7,.2,1); }
.pin .phone img.on { opacity: 1; transform: none; }
.bars { display: flex; gap: 8px; }
.bars i { width: 38px; height: 4px; border-radius: 4px; background: var(--line); position: relative; overflow: hidden; }
.bars i::after { content: ''; position: absolute; inset: 0; background: var(--leaf); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s; }
.bars i.done::after { transform: scaleX(1); }
@media (min-width: 861px) {
  .js .story-track { height: 300vh; }
  .js .story { position: sticky; top: 84px; height: calc(100vh - 104px); }
}
@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; gap: 0; }
  .pin { display: none; }
  .js .step { opacity: .7; }
  .step .inline { display: flex; justify-content: center; margin-top: 6px; }
  .step .inline .phone { width: min(270px, 72vw); }
}

/* Téléchargement */
.download { background: var(--leaf-deep); color: #F4F1E8; position: relative; overflow: hidden; }
.download::before { content: ''; position: absolute; width: 700px; height: 700px; right: -180px; top: -260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(231,183,116,.26), transparent); animation: drift 12s ease-in-out infinite alternate; }
.download::after { content: ''; position: absolute; width: 520px; height: 520px; left: -200px; bottom: -260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(134,188,156,.22), transparent); animation: drift 15s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(-120px, 80px) scale(1.15); } }
.download .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.download h2 { color: #FFFDF8; }
.download .lead { color: #CFE0D4; }
.download .kicker { color: #E7B774; }
.qr-card { background: #FFFDF8; border-radius: 24px; padding: 22px; display: flex; flex-direction: column; align-items: center; gap: 12px; width: 290px; max-width: 100%; transform: rotate(3deg); box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); transition: transform .4s cubic-bezier(.3,1.4,.5,1); }
.qr-card:hover { transform: rotate(0) scale(1.03); }
.qr-wrap { position: relative; width: 100%; }
.qr-wrap::after { content: ''; position: absolute; left: -4%; right: -4%; top: 0; height: 2px; background: #B97A2E; box-shadow: 0 0 12px 3px rgba(185,122,46,.5); animation: qrscan 3s ease-in-out infinite alternate; }
@keyframes qrscan { to { top: 100%; } }
.qr { width: 100%; height: auto; display: block; }
.qr-bg { fill: #FFFDF8; }
.qr-fg { fill: #1C2B22; }
.qr-card p { color: #1C2B22; font-size: 0.9rem; text-align: center; font-weight: 500; }
.qr-card code { font: 500 0.7rem var(--mono); color: #4A5A50; word-break: break-all; text-align: center; }
.download .stores .store { background: #FFFDF8; color: #1C2B22; }
.download .stores .store[aria-disabled="true"] { background: transparent; color: #F4F1E8; border-color: rgba(255,253,248,0.35); }
.device { font-size: 0.95rem; color: #E7B774; min-height: 1.6em; }
.only-mobile { display: none; }
@media (max-width: 760px) {
  .download .wrap { grid-template-columns: 1fr; }
  /* Sur téléphone, pas de QR code à scanner : on va droit aux boutons */
  .qr-card, .only-desk { display: none; }
  .only-mobile { display: revert; }
  .download .stores .store { flex: 1 1 100%; }
}

/* Confidentialité + pied */
.privacy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.privacy div { border-top: 2px solid var(--leaf); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.privacy p { color: var(--ink-soft); font-size: 0.95rem; }
@media (max-width: 760px) { .privacy { grid-template-columns: 1fr; } }
footer { border-top: 1px solid var(--line); padding-block: 36px; color: var(--muted); font-size: 0.88rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 32px; justify-content: space-between; }
footer p { max-width: 60em; }
.copy { display: inline-flex; gap: 8px; align-items: center; }
.copy button { font: 500 0.8rem var(--body); border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 8px; padding: 4px 10px; cursor: pointer; }

/* Mouvement réduit : scène figée sur le résultat */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .sheet { transform: none; }
  .chip { opacity: 1; }
  .hint, .laser, .box .beam { opacity: 0; }
  .frame i { border-color: #5FD08F; }
  .scanner { transform: rotate(-4deg); }
  .qr-wrap::after { display: none; }
}

.dl-copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.flush-top { padding-top: 0; }
.box .aim { filter: drop-shadow(0 0 4px #FF3B30); }
.legal-links { display: flex; gap: 18px; flex-wrap: wrap; }
.legal-links a { color: var(--ink-soft); }
/* Pages légales */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 20px 80px; display: flex; flex-direction: column; gap: 18px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 8px; }
.doc h2 { font-size: 1.35rem; margin-top: 22px; }
.doc p, .doc li { color: var(--ink-soft); }
.doc ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.doc .updated { font-size: .9rem; color: var(--muted); }
.doc .todo { background: #FFF1C9; color: #5B4300; padding: 1px 6px; border-radius: 6px; font-weight: 600; }
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 60px 20px; }
.notfound div { display: flex; flex-direction: column; gap: 16px; align-items: center; }
.btn-link { display: inline-block; background: var(--leaf); color: var(--on-leaf); padding: 12px 20px; border-radius: 999px; text-decoration: none; font-weight: 600; }
