/* Frezz AI — site vitrine.
   Structure Cal AI (téléphones + étiquettes flottantes, arguments, FAQ) × ambiance x.ai (nuit, titre animé, grille de cartes, chiffres).
   Identité de l'app : encre #0B0F14, crème, point ocre, Jost + Fraunces italique. */
:root {
  --night: #0B0F14;
  --night-2: #12161C;
  --night-3: #181D24;
  --night-line: rgba(255, 255, 255, 0.08);
  --on-night: #F3F1EC;
  --on-night-2: #8E939B;
  --canvas: #F6F5F2;
  --surface: #FFFFFF;
  --muted: #EFEDE8;
  --line: #E8E5DF;
  --ink: #0B0F14;
  --text2: #6E6E73;
  --ochre: #C9A05B;
  --ochre-light: #E3C088;
  --ochre-deep: #8C6A2E;
  --ochre-soft: #F6EEDF;
  --success: #2F9E5B;
  --success-soft: #E6F4EC;
  --radius: 28px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html:not(.lenis) { scroll-behavior: smooth; }
/* Lenis (défilement fluide) */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
body {
  margin: 0;
  background: var(--night);
  color: var(--on-night);
  font: 400 17px/1.6 'Jost', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img, svg { display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.serif { font-family: 'Fraunces', serif; font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

/* ---------- Barre du haut (x.ai : fine, floutée) ---------- */
.nav { position: sticky; top: 0; z-index: 50; transition: background 0.3s, border-color 0.3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(11, 15, 20, 0.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: var(--night-line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 21px; letter-spacing: -0.02em; }
.brand .serif { color: var(--ochre-light); }
.mark { width: 26px; height: 19px; border: 1.6px solid currentColor; border-radius: 5px; display: grid; place-items: center; }
.mark::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ochre); box-shadow: 0 0 10px rgba(201, 160, 91, 0.8); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--on-night-2); transition: color 0.2s; }
.nav-links a:hover { color: var(--on-night); }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 100px; font: 600 16px 'Jost', sans-serif; text-decoration: none; border: 0; cursor: pointer; transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s; }
.btn:active { scale: 0.97; }
.btn-light { background: var(--on-night); color: var(--night); }
.btn-light:hover { background: #fff; box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.08); }
.btn-ghost { background: rgba(255, 255, 255, 0.06); color: var(--on-night); border: 1px solid var(--night-line); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.11); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14.5px; }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 40px 0 0; text-align: center; overflow: hidden; }
.hero::before { /* halo ocre (x.ai) */
  content: ''; position: absolute; left: 50%; top: 380px; width: 1100px; height: 700px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(201, 160, 91, 0.22), rgba(201, 160, 91, 0.06) 55%, transparent);
  pointer-events: none;
}
.hero::after { /* grain de grille discret */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 70%);
}
.hero > .wrap { position: relative; z-index: 1; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 100px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--night-line); font-size: 14px; color: var(--on-night); text-decoration: none; }
.pill b { background: var(--ochre); color: var(--night); font-weight: 600; font-size: 12px; padding: 3px 10px; border-radius: 100px; }
.pill span { color: var(--on-night-2); }
h1 { font-weight: 500; font-size: clamp(42px, 7.4vw, 84px); line-height: 1.02; letter-spacing: -0.045em; margin: 26px auto 22px; }
h1 .line { display: block; }
.cycle { display: inline-block; color: var(--ochre-light); font-family: 'Fraunces', serif; font-style: italic; font-weight: 400; letter-spacing: -0.02em; min-width: 4.2ch; text-align: left; }
.cycle .ch { display: inline-block; opacity: 0; transform: translateY(0.35em); filter: blur(6px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), filter 0.5s var(--ease); }
.cycle .ch.in { opacity: 1; transform: none; filter: none; }
.cycle .ch.out { opacity: 0; transform: translateY(-0.3em); filter: blur(6px); }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--on-night-2); max-width: 540px; margin: 0 auto; }
.lead strong { color: var(--on-night); font-weight: 500; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.stores { margin-top: 16px; font-size: 14px; color: var(--on-night-2); display: flex; gap: 16px; justify-content: center; align-items: center; }
.stores i { width: 4px; height: 4px; border-radius: 50%; background: var(--on-night-2); opacity: 0.5; }

/* ---------- Téléphones (Cal AI) ---------- */
/* Les téléphones restent entiers : pas de dégradé posé dessus, juste un halo au sol derrière eux. */
.stage { position: relative; isolation: isolate; display: flex; justify-content: center; align-items: flex-end; gap: clamp(28px, 9vw, 140px); margin-top: 64px; padding-bottom: 72px; }
.stage::after { content: ''; position: absolute; left: 50%; bottom: 36px; width: min(820px, 96%); height: 120px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(201, 160, 91, 0.16), rgba(201, 160, 91, 0.05) 60%, transparent); z-index: -1; pointer-events: none; }
.stage .doodle { position: absolute; left: 50%; top: 30%; width: clamp(80px, 12vw, 150px); transform: translateX(-50%); color: var(--on-night-2); }
.device { position: relative; --pw: clamp(210px, 26vw, 300px); width: var(--pw); font-size: calc(var(--pw) / 30); }
.device.front { margin-bottom: 64px; }
/* Châssis : arête métal, boutons latéraux, ombre portée courte et douce. */
.phone { position: relative; width: 30em; height: 62em; border-radius: 4.6em; padding: 0.9em; background: linear-gradient(150deg, #3A3F47 0%, #1B1F25 16%, #121519 62%, #2B3038 100%); box-shadow: 0 0 0 0.12em rgba(255,255,255,0.16), inset 0 0 0 0.16em rgba(255,255,255,0.05), 0 2.4em 4.4em -1.2em rgba(0,0,0,0.7), 0 0.8em 1.6em rgba(0,0,0,0.28); }
.phone::before, .phone::after { content: ''; position: absolute; width: 0.4em; background: linear-gradient(90deg, #2B3038, #1B1F25); }
.phone::before { right: -0.36em; top: 15em; height: 8em; border-radius: 0 0.3em 0.3em 0; }
.phone::after { left: -0.36em; top: 12em; height: 4.4em; border-radius: 0.3em 0 0 0.3em; box-shadow: 0 6em 0 #22262D; }
.screen { position: relative; width: 100%; height: 100%; border-radius: 3.8em; overflow: hidden; background: var(--canvas); color: var(--ink); }
.screen::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 9; background: linear-gradient(118deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.015) 24%, transparent 34%); box-shadow: inset 0 0 0 0.12em rgba(0,0,0,0.55); }
.island { position: absolute; top: 1.1em; left: 50%; width: 9em; height: 2.6em; transform: translateX(-50%); background: #000; border-radius: 2em; z-index: 5; }
.status { position: absolute; top: 1.35em; left: 2.6em; right: 2.4em; display: flex; justify-content: space-between; font-size: 1.35em; font-weight: 600; z-index: 4; }
.status.on-dark { color: #fff; }
.home-bar { position: absolute; left: 50%; bottom: 0.75em; width: 10.5em; height: 0.42em; border-radius: 1em; transform: translateX(-50%); background: currentColor; opacity: 0.85; z-index: 5; }

/* écran scanner (façon Cal AI) : photo plein écran, interface posée dessus, pastille blanche « Scan photo » */
.screen.cam { background: #0B0F14; color: #fff; }
.fridge { position: absolute; inset: 0; overflow: hidden; }
.fridge-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
/* voile très léger, seulement là où le texte blanc doit rester lisible (barre d'état, titre) */
.cam-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,0.42) 0%, rgba(0,0,0,0.16) 9%, transparent 17%, transparent 76%, rgba(0,0,0,0.16) 90%, rgba(0,0,0,0.3) 100%); }
.cam-top { position: absolute; top: 4.6em; left: 2em; right: 2em; display: flex; align-items: center; justify-content: space-between; color: #fff; }
.cam-btn { width: 3.5em; height: 3.5em; border-radius: 50%; background: rgba(20, 22, 26, 0.38); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: grid; place-items: center; }
.cam-btn svg, .cam-mini svg { width: 1.6em; height: 1.6em; }
.cam-title { font-weight: 600; font-size: 1.55em; text-shadow: 0 0.06em 0.5em rgba(0,0,0,0.35); }
.frame-corner { position: absolute; width: 4em; height: 4em; border: 0.3em solid #fff; filter: drop-shadow(0 0 0.4em rgba(0,0,0,0.25)); }
.frame-corner.tl { top: 11.6em; left: 3.2em; border-right: 0; border-bottom: 0; border-radius: 1.4em 0 0 0; }
.frame-corner.tr { top: 11.6em; right: 3.2em; border-left: 0; border-bottom: 0; border-radius: 0 1.4em 0 0; }
.frame-corner.bl { bottom: 17.4em; left: 3.2em; border-right: 0; border-top: 0; border-radius: 0 0 0 1.4em; }
.frame-corner.br { bottom: 17.4em; right: 3.2em; border-left: 0; border-top: 0; border-radius: 0 0 1.4em 0; }
.scanline { position: absolute; left: 4em; right: 4em; top: 12.4em; height: 0.3em; border-radius: 1em; background: linear-gradient(90deg, transparent, var(--ochre-light), transparent); box-shadow: 0 0 1.6em 0.4em rgba(227, 192, 136, 0.55); animation: scan 3.2s var(--ease) infinite alternate; }
@keyframes scan { to { top: 41.4em; } }
/* barre d'outils : pastille blanche, aucun contour */
.cam-tools { position: absolute; left: 50%; bottom: 12.4em; transform: translateX(-50%); display: flex; align-items: center; gap: 0.2em; padding: 0.35em; border-radius: 2.4em; background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 0.8em 2em rgba(0, 0, 0, 0.18); white-space: nowrap; color: var(--ink); }
.tool { display: grid; place-items: center; width: 3.6em; height: 3.3em; border-radius: 2em; color: #3A3F47; }
.tool svg { width: 1.6em; height: 1.6em; }
.tool.on { display: flex; align-items: center; gap: 0.55em; width: auto; padding: 0 1.3em 0 1em; background: #fff; color: var(--ink); box-shadow: 0 0.25em 0.8em rgba(0, 0, 0, 0.1); }
.tool.on b { font-size: 1.3em; font-weight: 600; letter-spacing: -0.01em; }
.shutter-row { position: absolute; bottom: 3.2em; left: 2.8em; right: 2.8em; display: flex; align-items: center; justify-content: space-between; }
.cam-mini { width: 3.6em; height: 3.6em; border-radius: 50%; background: rgba(20, 22, 26, 0.38); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: grid; place-items: center; color: #fff; }
.cam-mini.ghost { visibility: hidden; }
.shutter { width: 7em; height: 7em; border-radius: 50%; border: 0.4em solid rgba(255, 255, 255, 0.92); display: grid; place-items: center; box-shadow: 0 0.4em 1.4em rgba(0, 0, 0, 0.2); }
.shutter::after { content: ''; width: 5.5em; height: 5.5em; border-radius: 50%; background: #fff; }

/* écran d'accueil : la vraie capture, calée sous la barre d'état, sans recadrage */
.screen.app { background: #F6F5F2; }
.app-shot { position: absolute; left: 0; top: 3.1em; width: 100%; height: auto; display: block; }

/* étiquettes flottantes */
.tag { position: absolute; z-index: 6; display: flex; align-items: center; gap: 0.7em; background: #fff; color: var(--ink); border-radius: 1.6em; padding: 0.9em 1.4em 0.9em 1em; box-shadow: 0 1.2em 3em rgba(0,0,0,0.28); white-space: nowrap; animation: bob 5s ease-in-out infinite; }
.tag .e { font-size: 2.3em; line-height: 1; }
.tag .t { display: flex; flex-direction: column; line-height: 1.15; }
.tag .t b { font-size: 1.5em; font-weight: 600; }
.tag .t small { font-size: 1.2em; color: var(--text2); }
.tag.ok .t b { color: var(--success); }
@keyframes bob { 50% { translate: 0 -0.8em; } }

/* écran décision (copie de l'app) */
.dec-hero { position: relative; height: 24em; background: linear-gradient(180deg, var(--ochre-soft), var(--canvas)); }
.dec-top { position: absolute; top: 5.2em; left: 1.8em; right: 1.8em; display: flex; align-items: center; justify-content: space-between; }
.round { width: 3.6em; height: 3.6em; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 1.5em; box-shadow: 0 0.4em 1.2em rgba(11,15,20,0.08); }
.dec-tag { display: flex; align-items: center; gap: 0.6em; white-space: nowrap; background: #fff; border-radius: 2em; padding: 0.7em 1.1em; font-size: 1.1em; font-weight: 600; box-shadow: 0 0.4em 1.2em rgba(11,15,20,0.06); }
.dec-tag::before { content: ''; width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--ochre); }
.plate { position: absolute; left: 50%; top: 10.4em; width: 11.5em; height: 11.5em; transform: translateX(-50%); border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 1em; box-shadow: 0 1.4em 3em rgba(140, 106, 46, 0.2), inset 0 0 0 0.8em #F8F4EC; }
.plate span { font-size: 5.4em; }
.orbit { position: absolute; background: #fff; border-radius: 2em; padding: 0.5em 1em; font-size: 1.15em; font-weight: 500; box-shadow: 0 0.4em 1.2em rgba(11,15,20,0.08); }
.dec-body { padding: 1.4em 2em 0; }
.dec-title { font-size: 2.5em; font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 0.5em; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8em; }
.tile { background: #fff; border-radius: 1.6em; padding: 1em 0.9em; box-shadow: 0 0.4em 1.4em rgba(11,15,20,0.05); }
.tile .e { font-size: 1.5em; }
.tile b { display: block; font-size: 1.45em; font-weight: 600; line-height: 1.2; }
.tile small { font-size: 1.1em; color: var(--text2); }
.tile.good b { color: var(--success); }
.reason { margin-top: 1em; background: #fff; border-radius: 1.6em; padding: 1.1em 1.3em; box-shadow: 0 0.4em 1.4em rgba(11,15,20,0.05); }
.reason small { display: flex; align-items: center; gap: 0.5em; font-size: 1.1em; font-weight: 600; color: var(--ochre-deep); }
.reason small::before { content: ''; width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--ochre); }
.reason p { margin: 0.3em 0 0; font-size: 1.25em; line-height: 1.4; color: #2B2F36; }
.dec-actions { position: absolute; left: 1.8em; right: 1.8em; bottom: 2.6em; display: flex; gap: 0.8em; }
.dec-actions span { flex: 1; height: 3.5em; border-radius: 3em; display: grid; place-items: center; font-size: 1.35em; font-weight: 600; white-space: nowrap; }
.dec-actions .alt { flex: 0 0 38%; background: var(--muted); }
.dec-actions .go { background: var(--ink); color: #fff; }

/* ---------- Chiffres (x.ai) ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--night-line); border-bottom: 1px solid var(--night-line); margin-top: 110px; }
.stat { padding: 34px 24px; border-left: 1px solid var(--night-line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-size: clamp(34px, 4.4vw, 52px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.stat b em { font-family: 'Fraunces', serif; font-weight: 400; color: var(--ochre-light); }
.stat > span { display: block; margin-top: 10px; color: var(--on-night-2); font-size: 15px; }

/* ---------- Sections ---------- */
section.block { padding: 120px 0; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ochre-light); }
.kicker::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ochre); }
h2 { font-weight: 500; font-size: clamp(34px, 5vw, 58px); letter-spacing: -0.04em; line-height: 1.04; margin: 16px 0 16px; }
h2 .serif { color: var(--ochre-light); }
.section-lead { color: var(--on-night-2); font-size: 18px; max-width: 520px; margin: 0; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 44px; }

/* bento (x.ai) */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.card { position: relative; grid-column: span 2; background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--radius); overflow: hidden; min-height: 400px; display: flex; flex-direction: column; transition: border-color 0.3s, translate 0.4s var(--ease); }
.card:hover { border-color: rgba(227, 192, 136, 0.35); translate: 0 -4px; }
.card.wide { grid-column: span 3; }
.card .viz { flex: 1; position: relative; display: grid; place-items: center; padding: 26px 24px 10px; }
.card .cap { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 18px 24px 22px; }
.card .cap h3 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.card .cap p { margin: 4px 0 0; color: var(--on-night-2); font-size: 15px; line-height: 1.45; }
.card .num { flex: none; font-family: 'Fraunces', serif; font-style: italic; color: var(--on-night-2); font-size: 15px; }

/* mini visuels des cartes */
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 300px; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 7px; background: var(--night-3); border: 1px solid var(--night-line); border-radius: 100px; padding: 8px 14px; font-size: 14.5px; transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), background 0.4s, color 0.4s; }
.motion .chip { opacity: 0; transform: translateY(10px) scale(0.94); }
.motion .visible .chip { opacity: 1; transform: none; }
.chip.lit { background: var(--on-night); color: var(--night); border-color: transparent; }
.chip.ok { color: #7FD3A0; }
.chip.no { color: var(--on-night-2); }
.chip.no::after { content: ''; position: absolute; left: 12px; right: 12px; top: 50%; height: 1.5px; background: currentColor; transform-origin: left; transition: transform 0.6s var(--ease) 1s; }
.motion .chip.no::after { transform: scaleX(0); }
.motion .visible .chip.no::after { transform: scaleX(1); }
.mini-card { width: min(300px, 100%); background: var(--canvas); color: var(--ink); border-radius: 22px; padding: 16px; box-shadow: 0 20px 50px rgba(0,0,0,0.4); }
.mini-card .row { display: flex; align-items: center; gap: 12px; }
.mini-card .dish { width: 52px; height: 52px; border-radius: 16px; background: var(--ochre-soft); display: grid; place-items: center; font-size: 28px; }
.mini-card h4 { margin: 0; font-size: 17px; line-height: 1.2; letter-spacing: -0.02em; }
.mini-card small { color: var(--text2); font-size: 13px; }
.mini-card .go { margin-top: 12px; background: var(--ink); color: #fff; border-radius: 100px; text-align: center; padding: 10px; font-weight: 600; font-size: 14px; }
.mini-card .tag-top { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ochre-deep); margin-bottom: 10px; }
.mini-card .tag-top::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ochre); }
.alts { width: min(320px, 100%); display: grid; gap: 10px; }
.alt { display: flex; align-items: center; gap: 12px; background: var(--night-3); border: 1px solid var(--night-line); border-radius: 18px; padding: 12px 14px; }
.alt .e { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,0.06); display: grid; place-items: center; font-size: 22px; }
.alt b { display: block; font-size: 15px; font-weight: 600; }
.alt small { color: var(--on-night-2); font-size: 13px; }
.alt .go { margin-left: auto; color: var(--on-night-2); }
.cook { display: flex; align-items: center; gap: 26px; width: min(460px, 100%); }
.ring { position: relative; width: 140px; height: 140px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { stroke: rgba(255,255,255,0.08); }
.ring .bar { stroke: var(--ochre-light); stroke-linecap: round; stroke-dasharray: 377; stroke-dashoffset: 120; transition: stroke-dashoffset 2.4s var(--ease); }
.motion .ring .bar { stroke-dashoffset: 377; }
.motion .visible .ring .bar { stroke-dashoffset: 120; }
.ring .time { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-size: 30px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.ring .time small { display: block; font-size: 12px; color: var(--on-night-2); margin-top: 4px; letter-spacing: 0; }
.cook .step small { color: var(--ochre-light); font-weight: 600; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.cook .step p { margin: 6px 0 12px; font-size: 19px; line-height: 1.35; letter-spacing: -0.01em; }
.dots { display: flex; gap: 6px; }
.dots i { width: 22px; height: 4px; border-radius: 4px; background: rgba(255,255,255,0.12); }
.dots i.on { background: var(--ochre-light); }
.devices { display: flex; align-items: center; gap: 18px; }
.devices .ph { width: 74px; height: 150px; border-radius: 18px; border: 2px solid rgba(255,255,255,0.18); display: grid; place-items: center; background: var(--night-3); }
.devices .ph .mark { color: var(--on-night); }
.devices .link { display: flex; gap: 5px; }
.devices .link i { width: 6px; height: 6px; border-radius: 50%; background: var(--ochre); animation: pulse 1.6s infinite; }
.devices .link i:nth-child(2) { animation-delay: 0.2s; }
.devices .link i:nth-child(3) { animation-delay: 0.4s; }
@keyframes pulse { 50% { opacity: 0.25; } }
.lock { font-size: 13px; color: var(--on-night-2); margin-top: 14px; text-align: center; }

/* ---------- Section claire (Cal AI) ---------- */
.light { background: var(--canvas); color: var(--ink); border-radius: 40px 40px 0 0; }
.light .kicker { color: var(--ochre-deep); }
.light h2 .serif { color: var(--ochre-deep); }
.light .section-lead { color: var(--text2); }
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.why-card { background: var(--surface); border-radius: var(--radius); padding: 30px 28px 32px; box-shadow: 0 10px 30px rgba(11, 15, 20, 0.05); }
.why-card .ico { width: 56px; height: 56px; border-radius: 18px; background: var(--muted); display: grid; place-items: center; font-size: 26px; margin-bottom: 22px; }
.why-card h3 { margin: 0 0 8px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.why-card p { margin: 0; color: var(--text2); font-size: 16px; }

.compare { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare > div { border-radius: var(--radius); padding: 30px 28px; }
.compare .before { background: var(--muted); }
.compare .after { background: var(--ink); color: var(--on-night); }
.compare h3 { margin: 0 0 16px; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.compare .before h3 { color: var(--text2); }
.compare .after h3 { color: var(--ochre-light); }
.compare ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.compare li { display: flex; gap: 12px; font-size: 17px; line-height: 1.4; }
.compare li::before { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; margin-top: 1px; }
.compare .before li::before { content: '✕'; background: #E0DCD4; color: var(--text2); }
.compare .after li::before { content: '✓'; background: var(--ochre); color: var(--night); }

/* FAQ */
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 50px; align-items: start; }
.faq-list { display: grid; gap: 10px; }
details { background: var(--surface); border-radius: 20px; padding: 0 24px; box-shadow: 0 6px 18px rgba(11, 15, 20, 0.04); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--muted); display: grid; place-items: center; font-size: 20px; transition: transform 0.3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: -6px 0 22px; color: var(--text2); font-size: 16px; }

/* CTA final */
.final { background: var(--canvas); padding: 0 0 20px; }
.final-box { position: relative; overflow: hidden; background: var(--night); color: var(--on-night); border-radius: 40px; padding: 90px 30px; text-align: center; }
.final-box::before { content: ''; position: absolute; left: 50%; bottom: -320px; width: 900px; height: 600px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(201, 160, 91, 0.3), transparent); }
.final-box > * { position: relative; }
.final-box h2 { margin: 18px auto 16px; max-width: 13ch; }
.final-box p { color: var(--on-night-2); margin: 0 auto 30px; max-width: 440px; }
.final-box .mark { width: 44px; height: 32px; border-width: 2px; margin: 0 auto; }
.final-box .mark::after { width: 10px; height: 10px; }

/* ---------- Pied de page (x.ai : colonnes) ---------- */
footer { background: var(--canvas); color: var(--ink); padding: 70px 0 40px; }
.foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.foot p { color: var(--text2); font-size: 15px; max-width: 280px; margin: 14px 0 0; }
.foot h4 { margin: 4px 0 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text2); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15.5px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.copy { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--text2); font-size: 14px; }

/* ---------- Pages légales ---------- */
.legal-page { background: var(--canvas); color: var(--ink); }
.legal-hero { background: var(--night); color: var(--on-night); padding: 40px 0 70px; }
.legal-hero h1 { font-size: clamp(38px, 6vw, 60px); margin: 16px 0 10px; text-align: left; }
.legal-hero p { margin: 0; color: var(--on-night-2); }
.legal { max-width: 780px; margin: -36px auto 0; padding: 0 20px 80px; position: relative; }
.legal section { background: var(--surface); border-radius: 24px; padding: 26px 28px; margin-bottom: 12px; box-shadow: 0 8px 24px rgba(11, 15, 20, 0.05); }
.legal h2 { font-size: 22px; letter-spacing: -0.02em; margin: 0 0 10px; line-height: 1.25; }
.legal p, .legal li, .legal td { font-size: 16px; color: #2B2F36; }
.legal p { margin: 0 0 10px; }
.legal p:last-child { margin-bottom: 0; }
.legal ul { margin: 0; padding-left: 20px; }
.legal table { width: 100%; border-collapse: collapse; }
.legal td, .legal th { text-align: left; padding: 10px 8px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal tr:last-child td { border-bottom: 0; }
.legal th { font-weight: 600; font-size: 14px; color: var(--text2); text-transform: uppercase; letter-spacing: 0.06em; }
.legal a { color: var(--ochre-deep); }

/* ---------- Apparition au défilement ---------- */


/* ---------- Mobile ---------- */
@media (max-width: 1000px) { .stage .doodle { display: none; } }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .card, .card.wide { grid-column: span 1; }
  .card.full-sm { grid-column: span 2; }
  .why { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; gap: 20px; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > div:first-child { grid-column: span 2; }
}
@media (max-width: 720px) {
  .nav-links a:not(.btn) { display: none; }
  .hero { padding-top: 24px; }
  .pill { white-space: nowrap; font-size: 13px; }
  .cycle { display: block; min-width: 0; text-align: center; min-height: 1.05em; }
  .stage { gap: 12px; margin-top: 44px; }
  .stage { padding-bottom: 48px; }
  .stage::after { bottom: 24px; height: 80px; }
  .device { --pw: min(44vw, 210px); }
  .device.front { margin-bottom: 40px; }
  .tag { font-size: 1.15em; }
  .tag.m-hide { display: none; }
  .tag.m-left { left: -1.2em !important; top: 32em !important; }
  .tag.m-right { right: -1em !important; top: 30em !important; }
  .stats { grid-template-columns: 1fr 1fr; margin-top: 56px; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--night-line); }
  .stat { padding: 26px 18px; }
  section.block { padding: 84px 0; }
  .bento { grid-template-columns: 1fr; }
  .card, .card.wide, .card.full-sm { grid-column: span 1; min-height: 360px; }
  .compare { grid-template-columns: 1fr; }
  .cook { flex-direction: column; text-align: center; gap: 16px; }
  .dots { justify-content: center; }
  .final-box { padding: 70px 22px; border-radius: 32px; }
  .light { border-radius: 30px 30px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }

}

/* =====================================================================
   MOTION — intro, masques de texte, progression, projecteur
   ===================================================================== */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; background: linear-gradient(90deg, var(--ochre), var(--ochre-light)); transform: scaleX(0); transform-origin: left; pointer-events: none; }
h1 .line { overflow: hidden; padding: 0.06em 0.12em 0.1em; margin: -0.06em -0.12em -0.1em; }
h1 .line-in { display: block; }
.sl-mask { padding: 0.04em 0.12em 0.12em; margin: -0.04em -0.12em -0.12em; }
/* Intro du hero cachée jusqu'au premier rendu GSAP (évite le flash). */
.motion .hero .pill, .motion .hero h1, .motion .hero .lead, .motion .hero-cta, .motion .hero .stores, .motion .hero .device, .motion .nav .wrap { visibility: hidden; }

/* projecteur qui suit la souris (cartes + CTA) */
.card::before, .spot::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.4s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(227, 192, 136, 0.13), transparent 45%); z-index: 0; }
.card:hover::before, .spot:hover::after { opacity: 1; }
.card > * { position: relative; z-index: 1; }

.stat-hero b { color: var(--ochre-light); }
.faq-block { border-radius: 0; padding-top: 0; }

/* =====================================================================
   SECTION « 0 ACHAT » — moment signature épinglé
   ===================================================================== */
.zero { position: relative; padding: 110px 0; }
.zero::before { content: ''; position: absolute; right: -10%; top: 20%; width: 700px; height: 700px; max-width: 100%; background: radial-gradient(closest-side, rgba(201, 160, 91, 0.12), transparent); pointer-events: none; }
.zero-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; min-height: min(760px, 100vh); }
.zero-copy .section-lead { margin-bottom: 30px; }
.proofs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.proofs li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; border-radius: 20px; border: 1px solid transparent; transition: background 0.5s, border-color 0.5s, opacity 0.5s; }
.motion .proofs li { opacity: 0.4; }
.motion .proofs li.on { opacity: 1; background: rgba(255, 255, 255, 0.04); border-color: var(--night-line); }
.proofs .dot { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--ochre); background: var(--ochre); margin-top: 2px; position: relative; transition: border-color 0.4s, background 0.4s; }
.proofs .dot::after { content: '✓'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--night); transition: opacity 0.3s; }
.motion .proofs li:not(.on) .dot { background: transparent; border-color: var(--on-night-2); }
.motion .proofs li:not(.on) .dot::after { opacity: 0; }
.proofs b { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.proofs small { color: var(--on-night-2); font-size: 15px; }

.zero-stage { position: relative; height: 560px; }
.z-fridge { position: absolute; left: 0; top: 10px; width: 58%; background: var(--night-2); border: 1px solid var(--night-line); border-radius: 28px; padding: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4); z-index: 2; }
.z-head { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; color: var(--on-night-2); margin-bottom: 16px; }
.z-head .mark { width: 20px; height: 15px; color: var(--on-night); }
.z-items { display: flex; flex-wrap: wrap; gap: 8px; }
.z-item { display: inline-flex; align-items: center; gap: 7px; background: var(--night-3); border: 1px solid var(--night-line); border-radius: 100px; padding: 9px 14px; font-size: 15px; white-space: nowrap; will-change: transform; }
.z-item em { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--night); background: var(--ochre-light); border-radius: 100px; padding: 2px 8px; }
.z-empty { position: absolute; left: 20px; right: 20px; top: 56px; bottom: 20px; display: grid; place-content: center; text-align: center; gap: 4px; opacity: 0; pointer-events: none; }
.z-empty b { font-size: 18px; font-weight: 600; color: #7FD3A0; }
.z-empty small { color: var(--on-night-2); font-size: 14px; }
.z-item.lit { background: var(--on-night); color: var(--night); border-color: transparent; }

.z-plate { position: absolute; right: 4%; top: 20%; width: 38%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 45%, #FFFFFF 0 52%, #F4EFE6 53% 100%); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5), inset 0 0 0 10px #EFE8DC; display: grid; place-items: center; z-index: 1; }
.z-ring { position: absolute; inset: -14px; border-radius: 50%; border: 1.5px dashed rgba(227, 192, 136, 0.35); }
.z-dish { font-size: clamp(64px, 7vw, 92px); line-height: 1; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.18)); }
.z-dish-name { position: absolute; right: 4%; top: 64%; width: 38%; text-align: center; font-weight: 600; font-size: 18px; letter-spacing: -0.02em; line-height: 1.25; }
.z-dish-name small { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ochre-light); margin-bottom: 4px; }

.z-receipt { position: absolute; left: 8%; bottom: 10px; width: 50%; background: #FBFAF7; color: var(--ink); padding: 20px 20px 26px; border-radius: 6px 6px 0 0; rotate: -4deg; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45); font-variant-numeric: tabular-nums; z-index: 3; }
.z-receipt::after { content: ''; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; background: linear-gradient(135deg, #FBFAF7 50%, transparent 50%) 0 0 / 14px 10px, linear-gradient(225deg, #FBFAF7 50%, transparent 50%) 0 0 / 14px 10px; }
.r-head { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text2); text-align: center; padding-bottom: 12px; border-bottom: 1.5px dashed #D9D4CA; margin-bottom: 10px; }
.r-line, .r-total { position: relative; display: flex; justify-content: space-between; font-size: 15px; padding: 5px 0; }
.r-line i { position: absolute; left: -4px; right: -4px; top: 52%; height: 2px; background: #D2553D; transform-origin: left; }
.r-total { margin-top: 8px; padding-top: 12px; border-top: 1.5px dashed #D9D4CA; font-weight: 700; font-size: 17px; }
.r-sum { transition: color 0.4s; }
.r-sum.zeroed { color: var(--success); }
.stamp { position: absolute; right: -26px; top: -26px; padding: 10px 14px; border: 2.5px solid var(--ochre-deep); color: var(--ochre-deep); border-radius: 12px; font-weight: 700; font-size: 14px; line-height: 1.15; letter-spacing: 0.02em; text-transform: uppercase; text-align: center; rotate: -12deg; background: rgba(246, 238, 223, 0.94); }

@media (min-width: 901px) {
  .zero { padding: 0; }
  .zero-grid { min-height: 100vh; }
}
@media (max-width: 900px) {
  .zero-grid { grid-template-columns: 1fr; gap: 40px; min-height: 0; }
}
@media (max-width: 720px) {
  .zero { padding: 80px 0 60px; }
  .zero-stage { height: 540px; }
  .z-fridge { width: 78%; padding: 16px; }
  .z-item { font-size: 13.5px; padding: 7px 11px; }
  .z-plate { width: 42%; top: 36%; right: 0; }
  .z-dish { font-size: 58px; }
  .z-dish-name { width: 46%; right: -2%; top: 62%; font-size: 14.5px; }
  .z-receipt { width: 60%; left: 0; bottom: 6px; padding: 16px 16px 22px; }
  .r-line, .r-total { font-size: 13.5px; }
  .stamp { right: -14px; top: -30px; font-size: 11.5px; }
  .proofs li { padding: 12px 14px; }
}

/* =====================================================================
   FENÊTRE LISTE D'ATTENTE
   ===================================================================== */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; visibility: hidden; transition: visibility 0s linear 0.5s; }
.modal.open { visibility: visible; transition-delay: 0s; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5, 7, 10, 0.62); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); opacity: 0; transition: opacity 0.45s var(--ease); }
.modal.open .modal-backdrop { opacity: 1; }
.modal-card { position: relative; width: min(440px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--canvas); color: var(--ink); border-radius: 32px; padding: 34px 28px 24px; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5); opacity: 0; transform: translateY(30px) scale(0.95); transition: opacity 0.4s var(--ease), transform 0.6s var(--ease); }
.modal.open .modal-card { opacity: 1; transform: none; }
.modal-card .wl-form > *, .modal-card .wl-done > * { opacity: 0; transform: translateY(12px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
.modal.open .wl-form > *, .modal.open.done .wl-done > * { opacity: 1; transform: none; }
.modal.open .wl-form > :nth-child(2) { transition-delay: 0.06s; }
.modal.open .wl-form > :nth-child(3) { transition-delay: 0.1s; }
.modal.open .wl-form > :nth-child(4) { transition-delay: 0.14s; }
.modal.open .wl-form > :nth-child(5) { transition-delay: 0.18s; }
.modal.open .wl-form > :nth-child(n+6) { transition-delay: 0.22s; }
.modal-x { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--muted); color: var(--ink); font-size: 14px; cursor: pointer; z-index: 2; }
.wl-badge { width: 60px; height: 60px; border-radius: 20px; background: var(--ink); display: grid; place-items: center; margin-bottom: 18px; }
.wl-badge .mark { color: #fff; }
.modal h3 { margin: 0 0 8px; font-size: 27px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.wl-sub { margin: 0 0 20px; color: var(--text2); font-size: 16px; }
.wl-platform { border: 0; margin: 0 0 12px; padding: 4px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--muted); border-radius: 100px; }
.wl-platform legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wl-platform label { position: relative; cursor: pointer; }
.wl-platform input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.wl-platform span { display: grid; place-items: center; height: 40px; border-radius: 100px; font-size: 14.5px; font-weight: 500; color: var(--text2); transition: background 0.25s, color 0.25s, box-shadow 0.25s; }
.wl-platform input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(11, 15, 20, 0.1); font-weight: 600; }
.wl-platform input:focus-visible + span { outline: 2px solid var(--ochre); outline-offset: 2px; }
.wl-field { display: block; }
.wl-field input { width: 100%; height: 58px; border-radius: 18px; border: 1.5px solid var(--line); background: #fff; padding: 0 18px; font: 500 17px 'Jost', sans-serif; color: var(--ink); outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.wl-field input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(11, 15, 20, 0.07); }
.wl-field input.invalid { border-color: #D2553D; animation: shake 0.4s; }
@keyframes shake { 20%, 60% { translate: -6px 0; } 40%, 80% { translate: 6px 0; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.wl-error { min-height: 20px; margin: 8px 2px 4px; color: #C0442C; font-size: 14px; }
.wl-submit { width: 100%; min-height: 56px; position: relative; font-size: 17px; }
.wl-submit .spinner { position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.3); border-top-color: #fff; opacity: 0; animation: spin 0.8s linear infinite; }
.wl-submit.loading .label { opacity: 0; }
.wl-submit.loading .spinner { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.wl-legal { margin: 14px 0 0; font-size: 12.5px; color: var(--text2); text-align: center; line-height: 1.45; }
.wl-legal a { color: var(--ink); }
.wl-done { display: none; text-align: center; padding: 10px 0 4px; }
.modal.done .wl-form { display: none; }
.modal.done .wl-done { display: block; }
.wl-done p { color: var(--text2); margin: 0 0 22px; }
.wl-done .btn { width: 100%; }
.check { width: 84px; height: 84px; margin: 6px auto 18px; }
.check circle { fill: var(--success-soft); stroke: var(--success); stroke-width: 3; stroke-dasharray: 227; stroke-dashoffset: 227; }
.check path { fill: none; stroke: var(--success); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 50; stroke-dashoffset: 50; }
.modal.done .check circle { transition: stroke-dashoffset 0.7s var(--ease) 0.1s; stroke-dashoffset: 0; }
.modal.done .check path { transition: stroke-dashoffset 0.45s var(--ease) 0.55s; stroke-dashoffset: 0; }
.burst { position: absolute; left: 50%; top: 88px; width: 8px; height: 8px; border-radius: 50%; pointer-events: none; }

@media (max-width: 720px) {
  .modal { place-items: end center; padding: 0; }
  .modal-card { width: 100%; border-radius: 30px 30px 0 0; padding: 30px 20px calc(22px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: opacity 0.3s, transform 0.55s var(--ease); max-height: 92vh; }
}

@media (prefers-reduced-motion: reduce) {
  .modal-card, .modal-card .wl-form > *, .modal-card .wl-done > * { transform: none !important; }
}
