/*
 * Koave landing · DA V6 "aquarelle warm, tout-clair"
 * Re-skin thème app : zéro dark, cartes chaudes sans bordure, avatars emoji,
 * pastille étoile, vrais screenshots dans les modules statiques. Bricolage + Hanken.
 * Mobile-first · i18n-ready (RTL via [dir=rtl]) · no framework · a11y focus-visible.
 */

:root {
  --cream:          #FBF6EE;
  --sable:          #F4EADB;
  --surface:        #FFFCF6;
  --surface-soft:   #FFF6E8;
  --ink:            #2B1D14;
  --ink-soft:       #6B5A4E;
  --ink-muted:      #8A7768;   /* foncé pour AA 4.5:1 sur crème */
  --espresso:       #1E1713;

  --terracotta:      #D56A4A;
  --terracotta-dark: #A8492F;
  --terracotta-soft: #F4CBB8;
  --sunshine:        #F4B942;
  --sunshine-soft:   #FCE4A8;
  --sage:            #8AA68A;
  --sage-soft:       #DDE7D8;
  --berry:           #C7577E;
  --berry-soft:      #F3CEDC;
  --berry-ink:       #A23B62;
  --sky:             #6FA8C9;
  --sky-soft:        #CFE2EC;
  --sky-ink:         #3F7E9E;

  --hair:        rgba(43, 29, 20, 0.08);
  --hair-strong: rgba(43, 29, 20, 0.14);

  --shadow-sm:   0 2px 8px rgba(43, 29, 20, 0.06);
  --shadow-md:   0 12px 30px rgba(43, 29, 20, 0.10), 0 4px 10px rgba(43, 29, 20, 0.06);
  --shadow-lg:   0 30px 70px rgba(43, 29, 20, 0.16), 0 12px 28px rgba(43, 29, 20, 0.08);
  --shadow-glow: 0 24px 60px rgba(213, 106, 74, 0.22);
  /* carte façon app : ombre chaude enveloppante + liseret lumineux interne, pas de bordure */
  --shadow-card: 0 1px 2px rgba(43, 29, 20, 0.04), 0 16px 36px rgba(43, 29, 20, 0.10), inset 0 0 0 1px rgba(255, 255, 255, 0.65);

  --font-display: 'Bricolage Grotesque', 'Hanken Grotesk', system-ui, sans-serif;
  --font-sans:    'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;

  --maxw: 1180px;
  --section-y: clamp(64px, 9vw, 116px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  position: relative;
}

/* Lavis aquarelle warm : blooms larges, diffus, positions impaires */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 90% 70% at 84% -10%, rgba(244, 185, 66, 0.20) 0%, transparent 62%),
    radial-gradient(ellipse 80% 60% at 2% 12%, rgba(213, 106, 74, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 70% 55% at 90% 55%, rgba(138, 166, 138, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 90% 65% at 30% 108%, rgba(111, 168, 201, 0.12) 0%, transparent 62%),
    var(--cream);
}
/* Grain papier doux (pas bruit TV) */
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.4' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.022'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }

/* a11y : focus clavier visible (WCAG 2.4.7) */
:focus-visible { outline: none; }
.cta:focus-visible, .nav-links a:focus-visible, .nav-cta:focus-visible, .nav-brand:focus-visible,
.demo-task:focus-visible, .scan-replay:focus-visible, .lang-switch summary:focus-visible,
.lang-switch a:focus-visible, .footer-links a:focus-visible {
  outline: 2px solid var(--terracotta); outline-offset: 3px; border-radius: 10px;
}

/* ═══════════════════════════════════════════ NAV ═══ */
.nav {
  position: sticky; top: 14px; z-index: 50;
  width: min(var(--maxw), calc(100% - 32px));
  margin: 14px auto 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px 9px 18px;
  background: rgba(255, 252, 246, 0.62);
  backdrop-filter: saturate(170%) blur(14px); -webkit-backdrop-filter: saturate(170%) blur(14px);
  box-shadow: 0 4px 14px rgba(43, 29, 20, 0.04), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  transition: background 280ms ease, box-shadow 280ms ease;
}
.nav.scrolled { background: rgba(255, 252, 246, 0.86); box-shadow: var(--shadow-md), inset 0 0 0 1px rgba(255, 255, 255, 0.7); }
.nav-brand { display: inline-flex; align-items: center; gap: 10px; }
.nav-mark { filter: drop-shadow(0 2px 5px rgba(43, 29, 20, 0.12)); }
.nav-wordmark { font-family: var(--font-display); font-weight: 700; font-size: 23px; letter-spacing: -0.02em; color: var(--ink); line-height: 1; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-links { display: flex; gap: 4px; font-size: 14px; font-weight: 500; }
.nav-links a { color: var(--ink); opacity: 0.7; padding: 8px 12px; border-radius: 999px; transition: opacity 150ms ease, background 150ms ease; }
.nav-links a:hover { opacity: 1; background: rgba(43, 29, 20, 0.05); }
.nav-cta { display: none; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; background: var(--ink); color: var(--cream); font-size: 13px; font-weight: 600; }
.nav-cta svg { width: 15px; height: 15px; }

.lang-switch { position: relative; font-size: 14px; font-weight: 500; }
.lang-switch summary { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: rgba(43, 29, 20, 0.05); cursor: pointer; list-style: none; color: var(--ink); transition: background 150ms; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover { background: rgba(43, 29, 20, 0.10); }
.lang-switch summary svg { opacity: 0.55; }
.lang-switch[open] summary { background: rgba(43, 29, 20, 0.10); }
.lang-switch ul { position: absolute; top: calc(100% + 10px); right: 0; margin: 0; padding: 6px; list-style: none; background: var(--surface); box-shadow: var(--shadow-lg); border-radius: var(--radius-sm); min-width: 190px; max-height: 62vh; overflow-y: auto; }
[dir="rtl"] .lang-switch ul { right: auto; left: 0; }
.lang-switch li a { display: block; padding: 8px 12px; border-radius: 9px; color: var(--ink); transition: background 120ms; }
.lang-switch li a:hover { background: rgba(43, 29, 20, 0.06); }
.lang-switch li.current a { background: var(--terracotta-soft); color: var(--terracotta-dark); font-weight: 600; }

@media (max-width: 760px) {
  .nav { padding: 8px 8px 8px 14px; }
  .nav-links { display: none; }
  .nav-cta { display: inline-flex; }
  .nav-wordmark { font-size: 21px; }
}
@media (max-width: 440px) {
  .nav-cta { padding: 9px 11px; }
  .nav-cta span { display: none; }
  .lang-switch summary span { display: none; }
}

/* ═══════════════════════════════════════════ TYPE ═══ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--terracotta-dark); padding: 7px 14px;
  background: var(--terracotta-soft); border-radius: 999px; margin: 0 0 22px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--terracotta); }
.eyebrow:empty { display: none; }

.display-xl { font-family: var(--font-display); font-weight: 700; font-size: clamp(42px, 7vw, 90px); font-variation-settings: 'opsz' 96; letter-spacing: -0.035em; line-height: 1.02; color: var(--ink); margin: 0 0 24px; text-wrap: balance; }
.display-l { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4.6vw, 54px); font-variation-settings: 'opsz' 72; letter-spacing: -0.03em; line-height: 1.06; color: var(--ink); margin: 0 0 16px; text-wrap: balance; }
.display-m { font-family: var(--font-display); font-weight: 700; font-size: clamp(23px, 3.2vw, 34px); font-variation-settings: 'opsz' 40; letter-spacing: -0.025em; line-height: 1.12; color: var(--ink); margin: 0 0 12px; text-wrap: balance; }
.display-xl em, .display-l em, .display-m em { font-style: normal; font-weight: 700; background: linear-gradient(100deg, var(--terracotta) 0%, var(--sunshine) 96%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

.lead { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; color: var(--ink-soft); margin: 0 0 16px; max-width: 54ch; }
.hero-sub { font-size: clamp(17px, 1.9vw, 21px); line-height: 1.55; color: var(--ink-soft); margin: 0 0 34px; max-width: 50ch; }

/* ═══════════════════════════════════════════ LAYOUT ═══ */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 28px; text-align: center; }
@media (max-width: 760px) { .wrap, .wrap-narrow { padding: 0 20px; } }

.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head .lead { margin-left: auto; margin-right: auto; }
.section-pills { display: inline-flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; justify-content: center; }
.section-pills .mini-pill { font-size: 12px; font-weight: 700; letter-spacing: 0.02em; color: var(--ink-soft); background: var(--surface); box-shadow: var(--shadow-sm); border-radius: 999px; padding: 6px 13px; display: inline-flex; align-items: center; gap: 6px; }
.section-pills .mini-pill b { color: var(--terracotta); }

/* ═══════════════════════════════════════════ AVATARS EMOJI (pattern app) ═══ */
.emoji-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; line-height: 1; flex: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6), 0 1px 3px rgba(43, 29, 20, 0.08); }
.emoji-av.bg-terra { background: var(--terracotta-soft); } .emoji-av.bg-sky { background: var(--sky-soft); } .emoji-av.bg-berry { background: var(--berry-soft); } .emoji-av.bg-sage { background: var(--sage-soft); } .emoji-av.bg-sun { background: var(--sunshine-soft); }
.emoji-av.sm { width: 26px; height: 26px; font-size: 14px; }

/* pastille étoile (motif app) */
.star-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: var(--sunshine-soft); color: var(--terracotta-dark); font-family: var(--font-display); font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.star-pill svg { width: 13px; height: 13px; color: var(--sunshine); }

/* ═══════════════════════════════════════════ CTA ═══ */
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-row-center { justify-content: center; }
.cta { display: inline-flex; align-items: center; gap: 11px; padding: 15px 24px; border-radius: 999px; font-family: var(--font-sans); font-size: 15px; font-weight: 600; border: none; cursor: pointer; transition: transform 200ms var(--ease-out), box-shadow 200ms ease, opacity 200ms; }
.cta svg { width: 19px; height: 19px; flex: none; }
.cta-store { background: var(--ink); color: var(--cream); box-shadow: 0 10px 26px rgba(43, 29, 20, 0.22); }
.cta-store:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(43, 29, 20, 0.30); }
.cta-store .cta-store-sub { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.cta-store .cta-store-sub small { font-size: 10px; font-weight: 500; opacity: 0.72; letter-spacing: 0.04em; text-transform: uppercase; }
.cta-store .cta-store-sub strong { font-size: 15px; font-weight: 700; }
.cta-soon { position: relative; opacity: 0.92; }
.cta-soon::after { content: attr(data-badge); position: absolute; top: -9px; right: 10px; font-size: 9px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: var(--sunshine); color: var(--espresso); padding: 3px 8px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.cta-meta { margin-top: 16px; font-size: 13px; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 8px; }
.cta-meta svg { width: 15px; height: 15px; opacity: 0.7; }

/* ═══════════════════════════════════════════ HERO ═══ */
.hero { position: relative; padding: var(--section-y) 28px 40px; overflow: visible; }
.hero-grid { display: grid; grid-template-columns: 1.04fr 0.96fr; gap: 40px; align-items: center; max-width: var(--maxw); margin: 0 auto; }
.hero-text { min-width: 0; }
.hero-trust { display: flex; align-items: center; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.hero-trust-item { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 500; color: var(--ink-soft); }
.hero-trust-item svg { width: 17px; height: 17px; color: var(--sage); }
.hero-trust-sep { width: 1px; height: 16px; background: var(--hair-strong); }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; perspective: 1400px; }
.hero-glow { position: absolute; inset: -10% -6%; z-index: 0; background: radial-gradient(ellipse 60% 60% at 50% 45%, rgba(244, 185, 66, 0.38), transparent 70%); filter: blur(26px); }

.float-card {
  position: absolute; z-index: 3; background: rgba(255, 252, 246, 0.9);
  backdrop-filter: saturate(160%) blur(8px); -webkit-backdrop-filter: saturate(160%) blur(8px);
  border-radius: var(--radius-md); box-shadow: var(--shadow-card);
  padding: 13px 16px; display: flex; align-items: center; gap: 12px; will-change: transform;
}
.float-card .fc-icon { width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 19px; }
.float-card .fc-icon svg { width: 21px; height: 21px; }
.float-card .fc-body { display: flex; flex-direction: column; line-height: 1.25; }
.float-card .fc-title { font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.float-card .fc-sub { font-size: 12px; color: var(--ink-soft); white-space: nowrap; }
.fc-stars { top: 8%; left: -4%; animation: floatA 6.5s var(--ease-out) infinite; }
.fc-stars .fc-icon { background: var(--sunshine-soft); color: var(--sunshine); }
.fc-task  { bottom: 16%; left: -8%; animation: floatB 7.5s var(--ease-out) infinite; }
.fc-task .fc-icon { background: var(--sage-soft); color: #5f7a5f; }
.fc-scan  { top: 22%; right: -7%; animation: floatC 7s var(--ease-out) infinite; }
.fc-scan .fc-icon { background: var(--berry-soft); color: var(--berry); }

@keyframes floatA { 0%,100% { transform: translateY(var(--py,0)) rotate(-3deg); } 50% { transform: translateY(calc(var(--py,0px) - 14px)) rotate(-3deg); } }
@keyframes floatB { 0%,100% { transform: translateY(var(--py,0)) rotate(3deg); }  50% { transform: translateY(calc(var(--py,0px) - 12px)) rotate(3deg); } }
@keyframes floatC { 0%,100% { transform: translateY(var(--py,0)) rotate(2deg); }  50% { transform: translateY(calc(var(--py,0px) - 16px)) rotate(2deg); } }

.phone-frame {
  position: relative; z-index: 2; width: 300px; aspect-ratio: 540 / 1170;
  border-radius: 46px; padding: 9px; background: linear-gradient(155deg, #221913 0%, #0a0705 100%);
  box-shadow: var(--shadow-lg), 0 16px 36px rgba(213, 106, 74, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transform: rotateY(-6deg) rotateX(3deg) rotateZ(-1deg); transform-style: preserve-3d; transition: transform 500ms var(--ease-out);
}
.phone-frame::before { content: ""; position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 34%; height: 22px; background: #0a0705; border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; z-index: 4; }
.phone-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 38px; display: block; }
.phone-frame-lg { width: 320px; }
[dir="rtl"] .phone-frame { transform: rotateY(6deg) rotateX(3deg) rotateZ(1deg); }

@media (max-width: 980px) {
  .hero { padding: 40px 20px 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-text .cta-row, .hero-text .hero-trust { justify-content: center; }
  .hero-sub, .eyebrow { margin-left: auto; margin-right: auto; }
  .phone-frame { transform: none; }
  .phone-frame-lg { width: 290px; }
  .fc-stars { left: 0; } .fc-task { left: -2%; } .fc-scan { right: 0; }
}
@media (max-width: 560px) {
  .float-card { padding: 10px 13px; }
  .float-card .fc-icon { width: 32px; height: 32px; font-size: 16px; }
  .float-card .fc-sub { display: none; }
  .fc-stars { top: 4%; left: -2%; } .fc-task { bottom: 10%; left: -4%; } .fc-scan { top: 18%; right: -2%; }
}

/* ═══════════════════════════════════════════ DÉMO ÉTOILES (lavis clair) ═══ */
.demo { margin: var(--section-y) auto; max-width: var(--maxw); padding: 0 28px; }
.demo-inner {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--surface-soft) 0%, var(--sunshine-soft) 58%, var(--terracotta-soft) 130%);
  color: var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; padding: 44px 48px;
}
.demo-inner::after { content: ""; position: absolute; right: -70px; top: -70px; width: 340px; height: 340px; background: radial-gradient(circle, rgba(244, 185, 66, 0.4), transparent 70%); pointer-events: none; filter: blur(10px); }
.demo-copy { position: relative; z-index: 1; }
.demo-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 12px; color: var(--ink); }
.demo-title em { font-style: normal; background: linear-gradient(100deg, var(--terracotta), var(--sunshine)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.demo-sub { color: var(--ink-soft); font-size: 16px; margin-bottom: 20px; }
.demo-counter { display: inline-flex; align-items: center; gap: 10px; }
.demo-counter .dc-badge { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--sunshine); box-shadow: 0 6px 16px rgba(244, 185, 66, 0.4); }
.demo-counter .dc-badge svg { width: 22px; height: 22px; color: var(--espresso); }
.demo-counter .dc-num { font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1; color: var(--espresso); transition: transform 240ms var(--ease-spring); }
.demo-counter .dc-num.pop { transform: scale(1.28); }
.demo-counter .dc-label { font-size: 13px; color: var(--ink-soft); }

.demo-tasks { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; }
.demo-task { display: flex; align-items: center; gap: 14px; padding: 15px 18px; background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-card); cursor: pointer; transition: transform 180ms ease, box-shadow 180ms ease; text-align: left; width: 100%; color: var(--ink); font-family: var(--font-sans); }
.demo-task:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.demo-check { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--hair-strong); flex: none; display: grid; place-items: center; transition: border-color 200ms, background 200ms; }
.demo-check svg { width: 15px; height: 15px; color: var(--espresso); opacity: 0; transform: scale(0.4); transition: opacity 200ms, transform 220ms var(--ease-spring); }
.demo-task.done .demo-check { background: var(--sunshine); border-color: var(--sunshine); }
.demo-task.done .demo-check svg { opacity: 1; transform: scale(1); }
.demo-task-body { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; flex: 1; }
.demo-task-name { font-size: 15.5px; font-weight: 600; color: var(--ink); transition: opacity 200ms; }
.demo-task.done .demo-task-name { opacity: 0.5; text-decoration: line-through; }
.demo-task-who { font-size: 12.5px; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 5px; }
.demo-task-who.kid { color: var(--berry-ink); }
.demo-reward { font-family: var(--font-display); font-weight: 700; font-size: 13.5px; color: var(--terracotta-dark); background: var(--sunshine-soft); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }

.spark { position: absolute; pointer-events: none; z-index: 60; color: var(--sunshine); will-change: transform, opacity; }
.spark svg { width: 100%; height: 100%; }

@media (max-width: 860px) {
  .demo-inner { grid-template-columns: 1fr; gap: 28px; padding: 34px 26px; }
  .demo-copy { text-align: center; }
  .demo-copy .eyebrow { margin-left: auto; margin-right: auto; }
  .demo-counter { justify-content: center; display: flex; }
}

/* ═══════════════════════════════════════════ SCAN / CARNET RECETTES (clair) ═══ */
.scan { padding: var(--section-y) 0 0; }
.scan-inner {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--surface) 0%, var(--berry-soft) 135%);
  color: var(--ink); border-radius: 36px; box-shadow: var(--shadow-md);
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 56px;
}
.scan-inner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 24%, rgba(244, 185, 66, 0.28), transparent 55%); pointer-events: none; }
.scan-copy { position: relative; z-index: 1; }
.scan-copy .eyebrow { color: var(--berry-ink); background: var(--berry-soft); }
.scan-copy .eyebrow .dot { background: var(--berry); }
.scan-replay { display: inline-flex; align-items: center; gap: 9px; margin-top: 8px; padding: 12px 20px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-card); color: var(--ink); font-family: var(--font-sans); font-size: 14px; font-weight: 600; cursor: pointer; transition: transform 180ms, box-shadow 180ms; }
.scan-replay:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.scan-replay svg { width: 16px; height: 16px; }

.scan-stage { position: relative; z-index: 1; min-height: 360px; display: grid; place-items: center; }
.recipe-paper { position: relative; width: 280px; background: #fffdf7; color: var(--ink); border-radius: 14px; padding: 22px 22px 24px; box-shadow: var(--shadow-lg); transform: rotate(-4deg); overflow: hidden; transition: transform 600ms var(--ease-out); }
.recipe-paper-title { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; margin-bottom: 4px; }
.recipe-paper-meta { font-size: 12px; color: var(--ink-soft); margin-bottom: 14px; }
.recipe-ing { display: flex; align-items: center; gap: 9px; padding: 7px 0; font-size: 14px; color: var(--ink-soft); border-top: 1px dashed var(--hair); transition: color 260ms, background 260ms; border-radius: 6px; }
.recipe-ing::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-muted); flex: none; transition: background 260ms, box-shadow 260ms; }
.recipe-ing.lit { color: var(--ink); background: var(--sunshine-soft); padding-left: 8px; padding-right: 8px; }
.recipe-ing.lit::before { background: var(--terracotta); box-shadow: 0 0 0 4px rgba(244, 185, 66, 0.4); }
.scan-line { position: absolute; left: 0; right: 0; height: 64px; top: -70px; pointer-events: none; opacity: 0; background: linear-gradient(180deg, transparent, rgba(244, 185, 66, 0.55), transparent); box-shadow: 0 0 22px 6px rgba(244, 185, 66, 0.4); }
.recipe-paper.scanning .scan-line { animation: scanSweep 1.5s var(--ease-out) forwards; }
@keyframes scanSweep { 0% { top: -70px; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.recipe-paper.scanning { transform: rotate(-2deg) scale(1.02); }

.scan-list { position: absolute; right: -8px; bottom: -14px; width: 214px; background: var(--surface); color: var(--ink); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow-card); transform: rotate(3deg) translateY(16px); opacity: 0; transition: opacity 400ms var(--ease-out), transform 500ms var(--ease-out); pointer-events: none; }
.scan-list.show { opacity: 1; transform: rotate(3deg) translateY(0); }
.scan-list-head { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--sage); margin-bottom: 10px; }
.scan-list-head.saved { color: var(--terracotta-dark); }
.scan-list-head svg { width: 15px; height: 15px; }
.scan-saved-name { font-size: 14px; font-weight: 700; color: var(--ink); margin: 2px 0 12px; opacity: 0; transform: translateY(6px); transition: opacity 320ms 80ms, transform 320ms 80ms; }
.scan-list.show .scan-saved-name { opacity: 1; transform: none; }
.scan-option-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; line-height: 1.35; color: var(--ink-soft); border-top: 1px dashed var(--hair); padding-top: 11px; opacity: 0; transform: translateY(6px); transition: opacity 320ms 220ms, transform 320ms 220ms; }
.scan-list.show .scan-option-row { opacity: 1; transform: none; }
.scan-option-row .tick { width: 18px; height: 18px; border-radius: 6px; background: var(--sage-soft); color: #5f7a5f; display: grid; place-items: center; flex: none; }
.scan-option-row .tick svg { width: 11px; height: 11px; }

@media (max-width: 880px) {
  .scan-inner { grid-template-columns: 1fr; gap: 36px; padding: 40px 26px; text-align: center; }
  .scan-copy .eyebrow, .scan-copy .lead { margin-left: auto; margin-right: auto; }
  .scan-stage { min-height: 320px; }
}

/* ═══════════════════════════════════════════ BOUTIQUE ═══ */
.shop { padding: var(--section-y) 0; }
.shop-wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; background: linear-gradient(150deg, var(--surface) 0%, var(--sable) 100%); border-radius: var(--radius-lg); padding: 52px 56px; box-shadow: var(--shadow-md); }
.shop-members { display: flex; gap: 12px; margin: 22px 0 18px; flex-wrap: wrap; }
.member-chip { display: inline-flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 999px; padding: 7px 16px 7px 8px; box-shadow: var(--shadow-card); }
.member-meta { display: flex; flex-direction: column; line-height: 1.2; }
.member-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.member-stars { font-size: 12.5px; color: var(--ink-soft); font-weight: 600; }
.member-stars b { color: var(--terracotta); }
.shop-rewards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 420px; }
.reward-card { background: var(--surface); border-radius: var(--radius-md); padding: 16px; box-shadow: var(--shadow-card); }
.reward-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 10px; }
.reward-ic svg { width: 21px; height: 21px; }
.reward-card.r-adult .reward-ic { background: var(--terracotta-soft); color: var(--terracotta-dark); }
.reward-card.r-kid .reward-ic { background: var(--berry-soft); color: var(--berry-ink); }
.reward-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.reward-cost { margin-top: 6px; }
.shop-visual { display: flex; justify-content: center; }
@media (max-width: 880px) {
  .shop-wrap { grid-template-columns: 1fr; gap: 36px; padding: 40px 26px; text-align: center; }
  .shop-wrap .lead { margin-left: auto; margin-right: auto; }
  .shop-members, .shop-rewards { justify-content: center; margin-left: auto; margin-right: auto; }
  .shop-visual { order: -1; }
}

/* ═══════════════════════════════════════════ FEATURE SECTIONS ═══ */
.features-intro { padding: var(--section-y) 0 8px; }

.feat { padding: clamp(40px, 5vw, 64px) 0; --acc: var(--terracotta); --acc-soft: var(--terracotta-soft); --acc-ink: var(--terracotta-dark); }
.feat.acc-sage { --acc: var(--sage); --acc-soft: var(--sage-soft); --acc-ink: #5f7a5f; }
.feat.acc-sky  { --acc: var(--sky); --acc-soft: var(--sky-soft); --acc-ink: var(--sky-ink); }
.feat-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; max-width: var(--maxw); margin: 0 auto; }
.feat-wrap.reverse .feat-visual { order: -1; }
.feat-text { min-width: 0; }
.feat .eyebrow { color: var(--acc-ink); background: var(--acc-soft); }
.feat .eyebrow .dot { background: var(--acc); }
.feat-points { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.feat-point { display: flex; align-items: flex-start; gap: 12px; }
.fp-ic { width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc-ink); margin-top: 1px; }
.fp-ic svg { width: 16px; height: 16px; }
.fp-body strong { display: block; font-weight: 700; font-size: 15.5px; color: var(--ink); line-height: 1.3; }
.fp-body span { font-size: 13.5px; color: var(--ink-soft); }
.feat-visual { position: relative; display: flex; justify-content: center; align-items: center; }

@media (max-width: 900px) {
  .feat-wrap { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .feat-wrap.reverse .feat-visual { order: 0; }
  .feat-visual { order: -1; }
  .feat .eyebrow { margin-left: auto; margin-right: auto; }
  .feat-text .lead { margin-left: auto; margin-right: auto; }
  .feat-points { text-align: left; max-width: 360px; margin-left: auto; margin-right: auto; }
}

/* chip flottant aquarelle posé sur le screenshot */
.feat-chip { position: absolute; z-index: 5; background: rgba(255, 252, 246, 0.92); backdrop-filter: saturate(160%) blur(8px); -webkit-backdrop-filter: saturate(160%) blur(8px); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 12px 15px; display: flex; align-items: center; gap: 11px; }
.feat-chip .chip-body { display: flex; flex-direction: column; line-height: 1.25; }
.feat-chip .chip-title { font-size: 13.5px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.feat-chip .chip-sub { font-size: 12px; color: var(--ink-soft); white-space: nowrap; }
.feat-chip .chip-ic { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; }
.feat-chip .chip-ic svg { width: 18px; height: 18px; }
.chip-tl { top: 6%; left: -7%; }
.chip-bl { bottom: 9%; left: -8%; }
.chip-tr { top: 12%; right: -8%; }
.chip-br { bottom: 12%; right: -7%; }
.chip-rot { display: flex; align-items: center; gap: 6px; }
.chip-rot .rot-av { transition: transform 320ms var(--ease-spring), box-shadow 320ms, opacity 320ms; opacity: 0.4; transform: scale(0.82); }
.chip-rot .rot-av.active { opacity: 1; transform: scale(1.06); box-shadow: 0 0 0 3px var(--sunshine-soft); }

/* COURSES : widget liste en direct (gardé, re-skinné pilules) */
.fx-card { width: 326px; max-width: 100%; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 18px 18px 10px; position: relative; text-align: left; }
.fx-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; padding: 0 4px; }
.fx-title { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--ink); }
.fx-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--sage); text-transform: uppercase; letter-spacing: 0.05em; }
.fx-live .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); position: relative; }
.fx-live .live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--sage); opacity: 0; animation: livePulse 2s ease-out infinite; }
@keyframes livePulse { 0% { transform: scale(0.5); opacity: 0.7; } 100% { transform: scale(1.7); opacity: 0; } }
.live-item { display: flex; align-items: center; gap: 11px; padding: 11px 13px; margin-bottom: 8px; background: var(--surface-soft); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); opacity: 0; transform: translateX(10px); transition: opacity 360ms var(--ease-out), transform 360ms var(--ease-out); }
.fx-card.in .live-item { opacity: 1; transform: none; }
.fx-card.in .live-item:nth-of-type(2) { transition-delay: 130ms; }
.fx-card.in .live-item:nth-of-type(3) { transition-delay: 340ms; }
.fx-card.in .live-item:nth-of-type(4) { transition-delay: 580ms; }
.fx-card.in .live-item:nth-of-type(5) { transition-delay: 840ms; }
.live-check { width: 19px; height: 19px; border-radius: 6px; border: 2px solid var(--hair-strong); flex: none; }
.live-name { font-size: 14px; color: var(--ink); flex: 1; }

@media (max-width: 560px) { .fx-card { width: 100%; } }

/* ═══════════════════════════════════════════ BANDE CONFIANCE ═══ */
.trust-band { padding: var(--section-y) 0 8px; }
.trust-band-inner { max-width: 920px; margin: 0 auto; text-align: center; }
.trust-tri { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.trust-tri-item { display: inline-flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 999px; padding: 12px 20px; box-shadow: var(--shadow-card); }
.trust-tri-item svg { width: 19px; height: 19px; color: var(--sage); flex: none; }
.trust-tri-item span { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--ink); letter-spacing: -0.01em; }
.trust-sub { color: var(--ink-soft); font-size: 15px; max-width: 52ch; margin: 0 auto; }
.trust-invite { margin-top: 18px; font-size: 14px; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 8px; }
.trust-invite svg { width: 16px; height: 16px; opacity: 0.7; }

/* ═══════════════════════════════════════════ DOWNLOAD ═══ */
.download { padding: var(--section-y) 0; }
.download-card { position: relative; overflow: hidden; max-width: 880px; margin: 0 auto; text-align: center; background: linear-gradient(155deg, var(--terracotta) 0%, var(--terracotta-dark) 100%); color: var(--cream); border-radius: 36px; padding: 64px 40px; box-shadow: var(--shadow-glow); }
.download-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 16% 20%, rgba(244, 185, 66, 0.40), transparent 42%), radial-gradient(circle at 88% 86%, rgba(111, 168, 201, 0.30), transparent 46%); }
.download-card > * { position: relative; }
.download-card .eyebrow { background: rgba(255, 255, 255, 0.16); color: #fff; }
.download-card .eyebrow .dot { background: var(--sunshine); }
.download-card .display-l { color: #fff; }
.download-card .display-l em { -webkit-text-fill-color: var(--sunshine-soft); color: var(--sunshine-soft); background: none; }
.download-card .lead { color: rgba(251, 246, 238, 0.86); }
.download-card .cta-store { background: var(--cream); color: var(--ink); }
.download-card .cta-store:hover { background: #fff; }
.download-card .cta-meta { color: rgba(251, 246, 238, 0.78); }
.download-mark { width: 64px; height: 64px; margin: 0 auto 22px; filter: drop-shadow(0 8px 20px rgba(0,0,0,0.25)); }

/* ═══════════════════════════════════════════ FOOTER ═══ */
.footer { border-top: 1px solid var(--hair); padding: 36px 0; font-size: 13px; margin-top: 24px; }
.footer-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; }
.footer-brand strong { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink); display: block; line-height: 1; }
.footer-tagline { display: block; font-size: 12px; color: var(--ink-soft); margin-top: 3px; }
.footer-links { display: flex; gap: 22px; font-size: 13.5px; }
.footer-links a { color: var(--ink-soft); transition: color 150ms; }
.footer-links a:hover { color: var(--terracotta); }
.footer-copyright { color: var(--ink-soft); font-size: 12px; }
@media (max-width: 720px) { .footer-wrap { flex-direction: column; align-items: flex-start; } }

/* ═══════════════════════════════════════════ SCROLL REVEAL ═══ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 80ms; }
.reveal[data-d="2"] { transition-delay: 160ms; }
.reveal[data-d="3"] { transition-delay: 240ms; }
.reveal[data-d="4"] { transition-delay: 320ms; }

/* ═══════════════════════════════════════════ REDUCED MOTION ═══ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .phone-frame { transform: none; }
  .reveal { opacity: 1; transform: none; }
  .float-card { animation: none !important; }
  .recipe-paper.scanning .scan-line { animation: none; }
}
