/* ============================================================
   EMILE — home.css — Page d'accueil (app mobile d'abord)
   Chargé uniquement par index.html, après style.css.
   Ne redéfinit AUCUNE règle de la section Tarifs (.pricing-*, .btn-primary, .btn-secondary).
   ============================================================ */

/* Police auto-hébergée (même fichier que /app) : plus d'appel à Google Fonts */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url(/fonts/plus-jakarta-sans-latin-600-800.woff2) format('woff2');
}

/* ---- Charte de l'app ---- */
:root {
  --cream:        #FFFDF8;
  --sand:         #F5E9D4;
  --sand-deep:    #EBD9B8;
  --peach:        #F4A35A;
  --peach-light:  #FDF0E4;
  --orange-deep:  #B4531C;   /* titres */
  --orange-text:  #9A4515;   /* petit texte sur fond pêche clair (contraste AA) */
  --ink:          #1A1A1A;
  --ink-muted:    #636363;   /* #6B6B6B de la charte, à peine foncé : AA aussi sur le sable */
  --wa-green:     #25D366;   /* uniquement pour WhatsApp */
  --r-card:       16px;
  --shadow-sm:    0 4px 14px rgba(180, 83, 28, 0.08);
  --shadow-md:    0 14px 40px rgba(180, 83, 28, 0.14);
  --shadow-lg:    0 30px 70px rgba(180, 83, 28, 0.22);
  --ease-out:     cubic-bezier(0.22, 1, 0.36, 1);
}

.home { font-weight: 600; }
.home h1, .home h2 { font-weight: 700; letter-spacing: -0.02em; }
.home .accent { color: var(--orange-deep); }

/* Sans JavaScript : les anciennes animations .fade-in restent visibles */
html.no-js .fade-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Bouton « Feedback » (widget existant) : texte foncé sur pêche pour le contraste AA */
.home #efb-btn { color: var(--ink); }
/* Bouton « Essai gratuit » de la navigation (pas ceux des Tarifs) : même correction */
.home .nav-links .btn-primary,
.home .nav-drawer .btn-primary { color: var(--ink); }
/* Section Tarifs : couleur du texte uniquement (accord du 25/11/2026) — fonds, prix, textes et liens inchangés */
.home .section-tarifs .btn-primary,
.home .section-tarifs .btn-primary:hover,
.home .section-tarifs .pricing-badge { color: var(--ink); }
.home .section-tarifs .pricing-launch { color: var(--orange-deep); }

/* Focus visible partout sur la page */
.home a:focus-visible,
.home button:focus-visible,
.home summary:focus-visible,
.home [role="button"]:focus-visible {
  outline: 3px solid var(--orange-deep);
  outline-offset: 3px;
  border-radius: 12px;
}

/* ============================================================
   MOUVEMENT (actif seulement si <html class="motion">)
   ============================================================ */
@keyframes home-enter {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
@keyframes home-phone-in {
  from { opacity: 0; scale: 0.94; }
  to   { opacity: 1; scale: 1; }
}
@keyframes home-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -10px; }
}

.motion [data-enter] {
  animation: home-enter 0.8s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 90ms + 80ms);
}

.motion [data-reveal="self"],
.motion [data-reveal="stagger"] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.motion [data-reveal="stagger"] > * { transition-delay: calc(var(--i, 0) * 80ms); }
.motion [data-reveal="self"].is-in,
.motion [data-reveal="stagger"].is-in > * { opacity: 1; transform: none; }

/* ============================================================
   BOUTON D'APPEL (nouvelle classe, texte foncé sur pêche : contraste AA)
   ============================================================ */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--peach);
  color: var(--ink);
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 700;
  padding: 15px 30px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(244, 163, 90, 0.38);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.2s;
}
.btn-cta:hover {
  background: #F59A47;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(244, 163, 90, 0.48);
}
.btn-cta:active { transform: translateY(0) scale(0.98); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--orange-deep);
  font-weight: 700;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}
.link-arrow:hover { border-color: currentColor; }
.link-arrow span[aria-hidden] { transition: transform 0.25s var(--ease-out); }
.link-arrow:hover span[aria-hidden] { transform: translateX(3px); }

/* ============================================================
   BADGES DES STORES
   Badges officiels intacts (ni opacité, ni filtre, ni animation) : règles Apple / Google.
   Marge libre autour >= 1/4 de la hauteur (48px → 12px).
   ============================================================ */
.stores { margin: 0 0 28px; }
.stores-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--peach-light);
  border: 1px solid rgba(244, 163, 90, 0.35);
  color: var(--orange-text);
  font-size: 0.86rem;
  font-weight: 700;
}
.stores-status::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--peach);
  box-shadow: 0 0 0 3px rgba(244, 163, 90, 0.25);
}
.stores-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.store-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 9px;
}
.store-badge img { height: 48px; width: auto; }
.store-badge.is-soon { cursor: help; }
.stores-toast {
  margin: 14px 0 0;
  display: inline-block;
  padding: 10px 16px;
  border-radius: var(--r-card);
  background: #fff;
  border: 1px solid rgba(244, 163, 90, 0.4);
  box-shadow: var(--shadow-md);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
}
.stores-toast[hidden] { display: none; }
.stores-toast.is-shown { animation: home-enter 0.45s var(--ease-out) both; }

/* ============================================================
   CADRE DE TÉLÉPHONE + ÉCRANS DE L'APP (SVG redessinés à l'identique)
   ============================================================ */
.app-phone {
  position: relative;
  width: var(--pw, 280px);
  padding: 9px;
  border-radius: 44px;
  background: #2B2421;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.app-screen {
  position: relative;
  overflow: hidden;
  border-radius: 35px;
  aspect-ratio: 860 / 1832;
  background: var(--cream);
}
.scr { display: block; width: 100%; height: 100%; }

/* Animations des écrans : ne jouent que sous .motion, quand le JS ajoute .play.
   Sans .play, l'écran est dans son état final (aucun contenu masqué). */
.scr .a-typing { opacity: 0; }
.scr .a-typing circle { transform-box: fill-box; transform-origin: center; }
.scr .a-card, .scr .a-dot { transform-box: fill-box; transform-origin: center; }
.scr .bar { transform-box: fill-box; transform-origin: 50% 100%; }

@keyframes scr-up    { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes scr-fade  { from { opacity: 0; } to { opacity: 1; } }
@keyframes scr-pop   { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes scr-typing { 0% { opacity: 0; } 12%, 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes scr-dot   { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes scr-arc   { from { stroke-dasharray: 0 2000; } }
@keyframes scr-bar   { from { transform: scaleY(0); } to { transform: none; } }
@keyframes scr-draw  { from { stroke-dasharray: 1 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1 1; stroke-dashoffset: 0; } }

/* Conversation : le message part, Emile écrit, puis répond */
.motion .scr-chat.play .a-user   { animation: scr-up 0.55s var(--ease-out) 0.15s both; }
.motion .scr-chat.play .a-time   { animation: scr-fade 0.4s ease 0.5s both; }
.motion .scr-chat.play .a-typing { animation: scr-typing 1.25s ease 0.65s both; }
.motion .scr-chat.play .a-typing .d1 { animation: scr-dot 0.6s ease-in-out 0.7s 2; }
.motion .scr-chat.play .a-typing .d2 { animation: scr-dot 0.6s ease-in-out 0.85s 2; }
.motion .scr-chat.play .a-typing .d3 { animation: scr-dot 0.6s ease-in-out 1s 2; }
.motion .scr-chat.play .a-reply  { animation: scr-up 0.5s var(--ease-out) 1.85s both; }
.motion .scr-chat.play .a-line   { animation: scr-fade 0.35s ease both; animation-delay: calc(1.95s + var(--l) * 45ms); }
.motion .scr-chat.play .a-card   { animation: scr-pop 0.55s var(--ease-out) 2.6s both; }

/* Résumé du jour : anneaux qui se remplissent, chiffres qui défilent */
.motion .scr-resume.play .a-ring .arc { animation: scr-arc 0.55s ease-out both; }
.motion .scr-resume.play .a-ring .arc:nth-child(1) { animation-delay: 0.2s; }
.motion .scr-resume.play .a-ring .arc:nth-child(2) { animation-delay: 0.7s; }
.motion .scr-resume.play .a-ring .arc:nth-child(3) { animation-delay: 1s; }
.motion .scr-resume.play .a-macro { animation: scr-up 0.55s var(--ease-out) both; animation-delay: calc(0.35s + var(--m) * 0.1s); }
.motion .scr-resume.play .a-macro .arc { animation: scr-arc 1s var(--ease-out) both; animation-delay: calc(0.6s + var(--m) * 0.12s); }
.motion .scr-resume.play .a-meal  { animation: scr-up 0.6s var(--ease-out) both; animation-delay: calc(0.85s + var(--m) * 0.15s); }

/* Progrès : barres qui montent, courbe de poids qui se trace */
.motion .scr-progres.play .a-card1 { animation: scr-up 0.55s var(--ease-out) 0.05s both; }
.motion .scr-progres.play .a-card2 { animation: scr-up 0.55s var(--ease-out) 0.2s both; }
.motion .scr-progres.play .bar     { animation: scr-bar 0.5s var(--ease-out) both; animation-delay: calc(0.3s + var(--b) * 14ms); }
.motion .scr-progres.play .a-area  { animation: scr-fade 0.8s ease 1s both; }
.motion .scr-progres.play .a-line-w { animation: scr-draw 1.3s ease-in-out 0.6s both; }
.motion .scr-progres.play .a-dot   { animation: scr-pop 0.4s var(--ease-out) 1.85s both; }

/* ============================================================
   HERO
   ============================================================ */
.home-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 88px;
  background: linear-gradient(180deg, var(--cream) 0%, #FCF5EA 55%, var(--sand) 100%);
}
.home-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.home-hero-bg span { position: absolute; border-radius: 50%; filter: blur(10px); }
.home-hero-bg .blob-1 {
  width: 520px; height: 520px;
  right: -120px; top: 40px;
  background: radial-gradient(circle at 50% 50%, rgba(244, 163, 90, 0.30), rgba(244, 163, 90, 0) 68%);
}
.home-hero-bg .blob-2 {
  width: 420px; height: 420px;
  left: -160px; bottom: -120px;
  background: radial-gradient(circle at 50% 50%, rgba(235, 217, 184, 0.9), rgba(235, 217, 184, 0) 70%);
}

.home-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(244, 163, 90, 0.35);
  color: var(--orange-text);
  font-size: 0.86rem;
  font-weight: 700;
}
.home-hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.75rem);
  line-height: 1.08;
  margin-bottom: 20px;
  color: var(--ink);
}
.home-hero-intro {
  max-width: 540px;
  margin-bottom: 28px;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--ink-muted);
}
.home-hero-intro strong { color: var(--ink); font-weight: 700; }

.home-hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}
.home-hero-cta .social-proof { margin: 0; color: var(--ink-muted); }

/* Composition : deux téléphones de même taille qui s'inversent */
.home-hero-visual { position: relative; display: flex; justify-content: center; }
.home-phones { --pw: 270px; --ph: calc((var(--pw) - 18px) * 1832 / 860 + 18px); width: 460px; max-width: 100%; }
.home-phones-stage { position: relative; height: calc(var(--ph) + 50px); }
.home-phones .app-phone {
  position: absolute;
  left: 0; top: 0;
  cursor: default;
  transition:
    transform 0.95s cubic-bezier(0.65, 0, 0.35, 1),
    box-shadow 0.95s ease,
    z-index 0.95s linear;
}
.home-phones .app-phone.is-front {
  z-index: 2;
  transform: translate3d(28px, 0, 0) rotate(-2deg);
}
.home-phones .app-phone.is-back {
  z-index: 1;
  cursor: pointer;
  transform: translate3d(170px, 44px, 0) rotate(7deg) scale(0.88);
  box-shadow: var(--shadow-md);
}

.phone-tabs {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}
.no-js .phone-tabs { display: none; }
.phone-tab {
  position: relative;
  overflow: hidden;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(244, 163, 90, 0.4);
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink-muted);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease-out);
}
.phone-tab:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.phone-tab.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.phone-tab span { position: relative; z-index: 1; }
/* Jauge de temps avant l'inversion automatique */
.phone-tab i {
  position: absolute;
  left: 0; bottom: 0;
  height: 3px; width: 100%;
  background: var(--peach);
  transform: scaleX(0);
  transform-origin: left;
}
.phone-tab.is-running i { animation: tab-run 6.5s linear both; }
@keyframes tab-run { to { transform: scaleX(1); } }

/* Flottement doux (propriété translate : se cumule avec la transformation de position) */
.motion .home-phones-stage { animation: home-phone-in 0.9s var(--ease-out) 0.15s both; }
.motion .home-phones .app-phone.is-front { animation: home-float 6s ease-in-out 1.2s infinite; }
.motion .home-phones .app-phone.is-back  { animation: home-float 7s ease-in-out 1.6s infinite; }

/* ============================================================
   EN-TÊTES DE SECTION
   ============================================================ */
.home-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.home-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--orange-text);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.home-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); line-height: 1.15; }

/* ============================================================
   COMMENT ÇA MARCHE — téléphone épinglé (position: sticky, aucun JS pour l'épinglage)
   ============================================================ */
.home-how {
  padding: 96px 0 40px;
  background: linear-gradient(180deg, var(--sand) 0%, #FBF4E9 18%, var(--cream) 100%);
}
.how {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.how-stage { order: 2; align-self: stretch; }
.how-sticky {
  position: sticky;
  top: 90px;
  height: calc(100vh - 90px);
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}
.how-phone { --pw: clamp(230px, calc((100vh - 170px) * 0.47), 300px); }
.how-screen {
  position: absolute;
  inset: 9px;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.6s ease, transform 0.8s var(--ease-out);
}
.how-screen:first-child { position: relative; inset: auto; }
.how-screen.is-active { opacity: 1; transform: none; z-index: 1; }
.how-progress { display: flex; flex-direction: column; gap: 8px; }
.how-progress span {
  width: 6px; height: 28px;
  border-radius: 999px;
  background: var(--sand-deep);
  transition: background 0.3s, height 0.4s var(--ease-out);
}
.how-progress span.is-active { background: var(--peach); height: 48px; }

.how-steps { order: 1; list-style: none; margin: 0; padding: 0; }
.how-step {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 0;
}
.how-step:first-child { min-height: 60vh; }
/* Étape inactive : titre atténué (contraste AA conservé), pastille et étiquettes estompées */
.how-step h3 { color: var(--ink-muted); transition: color 0.4s ease; }
.how-step.is-active h3, .no-js .how-step h3 { color: var(--ink); }
.how-step .how-tags { opacity: 0.6; transition: opacity 0.4s ease; }
.how-step.is-active .how-tags, .no-js .how-step .how-tags { opacity: 1; }
.how-num {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--peach-light);
  border: 1px solid rgba(244, 163, 90, 0.45);
  color: var(--orange-deep);
  font-size: 1.1rem;
  font-weight: 800;
  transition: background 0.4s, color 0.4s, transform 0.5s var(--ease-out);
}
.how-step.is-active .how-num { background: var(--peach); color: var(--ink); transform: scale(1.08); }
.how-step h3 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.how-step p { max-width: 440px; font-size: 1.08rem; line-height: 1.65; color: var(--ink-muted); margin-bottom: 18px; }
.how-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.how-tags span {
  padding: 6px 13px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(244, 163, 90, 0.35);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
}

/* ============================================================
   LE SUIVI — mosaïque de cartes avec extraits d'écrans
   ============================================================ */
.home-track {
  padding: 72px 0 96px;
  background: linear-gradient(180deg, var(--cream) 0%, #FBF4E8 100%);
}
.track-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "day progress"
    "adjust progress";
  gap: 24px;
}
.track-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 30px 26px;
  border-radius: var(--r-card);
  background: #fff;
  border: 1px solid rgba(235, 217, 184, 0.7);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.track-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.track-card h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; }
.track-card > p { color: var(--ink-muted); margin-bottom: 22px; }
.track-card--day { grid-area: day; background: linear-gradient(180deg, #FFFDF8 0%, #F5EDDC 100%); }
.track-card--progress { grid-area: progress; background: linear-gradient(180deg, #FFFDF8 0%, #F1E5CC 100%); }
.track-card--adjust { grid-area: adjust; }

.track-visual { margin-top: auto; }
.track-visual .scr { width: 100%; height: auto; }
.track-visual--stack { display: grid; gap: 14px; margin-top: 0; flex: 1; align-content: center; }
.track-visual--stack .scr { filter: drop-shadow(0 8px 18px rgba(180, 83, 28, 0.10)); }

.track-visual--adjust { display: flex; flex-direction: column; gap: 10px; }
.track-label { font-size: 0.9rem; font-weight: 700; color: var(--orange-text); }
.track-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
  color: var(--ink-muted);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.track-or::before, .track-or::after { content: ''; flex: 1; height: 1px; background: var(--sand-deep); }
.track-input, .track-meal { position: relative; }
.track-input .scr, .track-meal .scr { filter: drop-shadow(0 6px 14px rgba(180, 83, 28, 0.10)); }
/* Indication de toucher sur la flèche de la carte repas */
.track-tap {
  position: absolute;
  left: 92.4%; top: 22%;
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  border: 2px solid var(--peach);
  opacity: 0;
  pointer-events: none;
}
@keyframes track-tap { 0% { opacity: 0.9; transform: scale(0.4); } 70%, 100% { opacity: 0; transform: scale(1.4); } }
.motion .track-tap { animation: track-tap 2.4s var(--ease-out) 1s infinite; }
/* Curseur qui clignote dans la barre de saisie */
@keyframes track-caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.motion .track-input path[stroke="#2F7D6D"] { animation: track-caret 1.1s steps(1) infinite; }

/* État de départ des extraits animés à l'arrivée dans l'écran (motion.js ajoute .play) */
.motion [data-play-on-view] .scr:not(.play) .arc { stroke-dasharray: 0 2000; }
.motion [data-play-on-view] .scr:not(.play) .bar { transform: scaleY(0); }
.motion [data-play-on-view] .scr:not(.play) .a-line-w { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.motion [data-play-on-view] .scr:not(.play) .a-area,
.motion [data-play-on-view] .scr:not(.play) .a-dot { opacity: 0; }

/* ============================================================
   BANDEAU DÉFILANT (CSS pur, arrêté en mouvement réduit)
   ============================================================ */
.home-marquee {
  position: relative;
  overflow: hidden;
  padding: 18px 0;
  background: var(--peach-light);
  border-top: 1px solid rgba(244, 163, 90, 0.3);
  border-bottom: 1px solid rgba(244, 163, 90, 0.3);
}
.marquee-track { display: flex; width: max-content; }
.marquee-group { display: flex; flex-shrink: 0; }
.marquee-group span {
  display: inline-flex;
  align-items: center;
  padding: 0 22px;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}
.marquee-group span::after {
  content: '';
  width: 8px; height: 8px;
  margin-left: 44px;
  border-radius: 50%;
  background: var(--peach);
}
@keyframes marquee { to { transform: translateX(-50%); } }
.motion .marquee-track { animation: marquee 42s linear infinite; }
.motion .home-marquee:hover .marquee-track { animation-play-state: paused; }
html:not(.motion) .marquee-track { width: 100%; justify-content: center; }
html:not(.motion) .marquee-group { flex: 1 1 100%; flex-wrap: wrap; justify-content: center; row-gap: 8px; padding: 0 12px; }
html:not(.motion) .marquee-group span { padding: 0 12px; }
html:not(.motion) .marquee-group span::after { display: none; }
html:not(.motion) .marquee-group + .marquee-group { display: none; }

/* ============================================================
   WHATSAPP (canal secondaire — le vert est réservé à ce bloc)
   ============================================================ */
.home-wa {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
  background:
    radial-gradient(600px 420px at 22% 50%, rgba(37, 211, 102, 0.07), rgba(37, 211, 102, 0) 70%),
    linear-gradient(180deg, #FBF4E8 0%, var(--sand) 100%);
}
.home-wa-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.home-wa-visual { display: flex; justify-content: center; }
.home-wa-float { display: flex; justify-content: center; padding: 20px 0; }
.wa-phone { --pw: 300px; rotate: -4deg; background: #1C1C1C; }
.wa-phone .app-screen { background: #E8E1D9; }
.motion .wa-phone { animation: home-float 7s ease-in-out infinite; }

/* Écran WhatsApp : la photo part, le résumé arrive, puis le message d'Emile */
.motion .scr-wa.play .a-user  { animation: scr-pop 0.5s var(--ease-out) 0.1s both; }
.motion .scr-wa.play .a-reply { animation: scr-up 0.6s var(--ease-out) 0.55s both; }
.motion .scr-wa.play .a-ring .arc { animation: scr-arc 0.5s ease-out both; }
.motion .scr-wa.play .a-ring .arc:nth-child(1) { animation-delay: 0.9s; }
.motion .scr-wa.play .a-ring .arc:nth-child(2) { animation-delay: 1.3s; }
.motion .scr-wa.play .a-ring .arc:nth-child(3) { animation-delay: 1.6s; }
.motion .scr-wa.play .a-macro { animation: scr-up 0.5s var(--ease-out) both; animation-delay: calc(0.9s + var(--m) * 0.1s); }
.motion .scr-wa.play .a-macro .arc { animation: scr-arc 0.9s var(--ease-out) both; animation-delay: calc(1.1s + var(--m) * 0.12s); }
.motion .scr-wa.play .a-meal  { animation: scr-up 0.5s var(--ease-out) 1.3s both; }
.motion .scr-wa.play .a-card  { animation: scr-up 0.5s var(--ease-out) 2.1s both; }
.scr-wa .a-user { transform-box: fill-box; transform-origin: 100% 0; }

.wa-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: #0F6B3A;
  font-size: 0.86rem;
  font-weight: 800;
}
.wa-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--wa-green);
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.22);
}
.motion .wa-dot { animation: pulse-dot 2s ease-in-out infinite; }
.home-wa h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); line-height: 1.15; margin-bottom: 14px; }
.home-wa-lead { font-size: 1.12rem; color: var(--ink-muted); margin-bottom: 22px; }
.wa-list { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 12px; }
.wa-list li {
  position: relative;
  padding-left: 36px;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.5;
}
.wa-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 1px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%230F6B3A' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* ============================================================
   TÉMOIGNAGES
   ============================================================ */
.home-testi { padding: 96px 0; background: var(--cream); }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.testi {
  position: relative;
  margin: 0;
  padding: 30px 28px 26px;
  border-radius: var(--r-card);
  background: #fff;
  border: 1px solid rgba(235, 217, 184, 0.7);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.testi:nth-child(2) { margin-top: 32px; }
.testi:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testi::before {
  content: '“';
  position: absolute;
  top: 6px; right: 22px;
  font-size: 5.5rem;
  line-height: 1;
  font-weight: 800;
  color: rgba(244, 163, 90, 0.25);
}
.testi-stars { display: flex; gap: 3px; margin-bottom: 16px; }
.testi-stars svg { width: 18px; height: 18px; fill: var(--peach); }
.testi blockquote { margin: 0 0 22px; }
.testi blockquote p { color: var(--ink); font-size: 1.02rem; line-height: 1.65; font-weight: 600; }
.testi figcaption { display: flex; align-items: center; gap: 12px; color: var(--ink-muted); font-size: 0.92rem; font-weight: 700; }
.testi-avatar {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--peach), #E8894A);
  color: var(--ink);
  font-weight: 800;
}

/* ============================================================
   FAQ (contenu inchangé, mise en forme en cartes)
   ============================================================ */
.home .section-faq { padding: 96px 0; background: linear-gradient(180deg, #FBF4E8 0%, var(--cream) 100%); }
.home .section-faq h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.home .faq-list { gap: 12px; }
.home .section-faq details {
  background: #fff;
  border: 1px solid rgba(235, 217, 184, 0.8);
  border-radius: var(--r-card);
  padding: 0 22px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease-out), border-color 0.3s;
}
.home .section-faq details:hover { border-color: rgba(244, 163, 90, 0.55); }
.home .section-faq details[open] { box-shadow: var(--shadow-md); border-color: rgba(244, 163, 90, 0.55); }
.home .section-faq summary { gap: 16px; padding: 20px 0; font-weight: 700; }
.home .section-faq summary:hover { color: var(--orange-deep); }
.home .section-faq summary::after {
  content: '';
  width: 30px; height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--peach-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%23B4531C' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform 0.35s var(--ease-out), background-color 0.3s;
}
.home .section-faq details[open] summary::after { transform: rotate(135deg); background-color: var(--peach); }
.home .faq-answer { padding-bottom: 22px; }
.home .faq-more a { color: var(--orange-deep); }
/* Ouverture fluide là où le navigateur le permet (sinon ouverture instantanée) */
@supports (interpolate-size: allow-keywords) {
  .home .section-faq { interpolate-size: allow-keywords; }
  .home .section-faq details::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size 0.4s var(--ease-out), content-visibility 0.4s allow-discrete;
  }
  .home .section-faq details[open]::details-content { block-size: auto; }
}

/* ============================================================
   APPEL FINAL
   ============================================================ */
.home-final { padding: 40px 0 96px; background: var(--cream); }
.final-card {
  position: relative;
  overflow: hidden;
  padding: 64px 32px 56px;
  border-radius: 28px;
  text-align: center;
  background: linear-gradient(160deg, var(--peach-light) 0%, #FBE3C8 55%, #F6D2A9 100%);
  border: 1px solid rgba(244, 163, 90, 0.35);
  box-shadow: var(--shadow-md);
}
.final-bg span { position: absolute; border-radius: 50%; pointer-events: none; }
.final-bg span:first-child { width: 360px; height: 360px; left: -120px; top: -140px; background: radial-gradient(circle, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 70%); }
.final-bg span:last-child { width: 420px; height: 420px; right: -160px; bottom: -200px; background: radial-gradient(circle, rgba(244, 163, 90, 0.35), rgba(244, 163, 90, 0) 70%); }
.final-card > *:not(.final-bg) { position: relative; }
.final-mascot { width: 120px; height: 120px; margin: 0 auto 18px; filter: drop-shadow(0 12px 18px rgba(180, 83, 28, 0.22)); }
@keyframes final-bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-10px) rotate(3deg); } }
.motion .final-mascot { animation: final-bob 4.5s ease-in-out infinite; }
.final-card h2 { font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.1; margin-bottom: 14px; }
.final-lead { font-size: 1.1rem; color: #5E4A3A; margin-bottom: 28px; }
.stores--center { display: flex; flex-direction: column; align-items: center; }
.stores--center .stores-status { background: rgba(255, 255, 255, 0.7); }
.stores--center .stores-badges { justify-content: center; }

/* ============================================================
   PIED DE PAGE (liens inchangés)
   ============================================================ */
.home .footer { background: #2B2421; padding: 56px 0 40px; }
.home .footer-links a { color: rgba(255, 253, 248, 0.7); }
.home .footer-links a:hover { color: #fff; }
.home .footer-copy { color: rgba(255, 253, 248, 0.5); }
.stores--footer { margin: 0; }
.stores--footer .stores-badges { justify-content: center; }
.stores--footer .store-badge img { height: 44px; }

/* ============================================================
   PERFORMANCE — rendu différé des sections hors écran
   Le navigateur saute la mise en page des sections loin de l'écran (écrans SVG lourds)
   et les calcule à l'approche. « auto » mémorise la vraie hauteur après le premier rendu.
   La section Tarifs n'est pas concernée.
   ============================================================ */
.home-how, .home-track, .home-wa, .home-testi,
.home .section-faq, .home-final, .home .footer { content-visibility: auto; }
.home-how { contain-intrinsic-size: auto 2000px; }
.home-track { contain-intrinsic-size: auto 1950px; }
.home-wa { contain-intrinsic-size: auto 1160px; }
.home-testi { contain-intrinsic-size: auto 620px; }
.home .section-faq { contain-intrinsic-size: auto 780px; }
.home-final { contain-intrinsic-size: auto 650px; }
.home .footer { contain-intrinsic-size: auto 470px; }
@media (min-width: 900px) {
  .home-how { contain-intrinsic-size: auto 2600px; }
  .home-track { contain-intrinsic-size: auto 1350px; }
  .home-wa { contain-intrinsic-size: auto 850px; }
  .home-testi { contain-intrinsic-size: auto 560px; }
  .home .section-faq { contain-intrinsic-size: auto 760px; }
  .home-final { contain-intrinsic-size: auto 560px; }
  .home .footer { contain-intrinsic-size: auto 420px; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 899px) {
  .home-hero { padding: 40px 0 56px; }
  .home-hero-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .home-hero-intro { margin-left: auto; margin-right: auto; }
  .stores-badges, .home-hero-cta { justify-content: center; }
  .home-hero-cta { flex-direction: column; }
  .home-hero-cta .social-proof { flex-direction: column; gap: 4px; }
  .home-phones { --pw: 220px; width: 360px; }
  .home-phones .app-phone.is-front { transform: translate3d(24px, 0, 0) rotate(-2deg); }
  .home-phones .app-phone.is-back  { transform: translate3d(126px, 36px, 0) rotate(7deg) scale(0.88); }
  .app-phone { padding: 8px; border-radius: 38px; }
  .app-screen { border-radius: 30px; }
  .how-screen { inset: 8px; }

  /* Comment ça marche : téléphone épinglé en haut, les étapes défilent dessous */
  .home-how { padding-top: 64px; }
  .how { grid-template-columns: 1fr; gap: 0; }
  .how-stage { order: 1; height: auto; position: sticky; top: 0; z-index: 2; }
  .home-how { background: linear-gradient(180deg, var(--sand) 0%, var(--cream) 220px); }
  .how-sticky {
    position: static;
    height: auto;
    min-height: 0;
    padding: 72px 0 14px;
    background: var(--cream);
    box-shadow: 0 14px 18px -6px var(--cream);
  }
  .how-phone { --pw: clamp(160px, calc((46svh - 18px) * 0.47 + 18px), 210px); }
  .how-progress { flex-direction: column; }
  .how-steps { order: 2; position: relative; z-index: 1; }
  .how-step, .how-step:first-child { min-height: 52svh; justify-content: flex-start; padding: 8px 0 32px; text-align: center; align-items: center; }
  .how-step p { margin-left: auto; margin-right: auto; }
  .how-tags { justify-content: center; }
  .no-js .how-stage { position: static; }

  .home-track { padding: 56px 0 72px; }
  .track-grid { grid-template-columns: 1fr; grid-template-areas: "day" "progress" "adjust"; gap: 18px; }
  .track-card { padding: 24px 20px 20px; }

  .home-wa { padding: 64px 0; }
  .home-wa-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .home-wa-text { order: -1; }
  .wa-phone { --pw: min(250px, 66vw); }
  .wa-list { justify-items: start; max-width: 440px; margin-left: auto; margin-right: auto; text-align: left; }

  /* Témoignages : carrousel horizontal au doigt */
  .home-testi { padding: 64px 0; }
  .testi-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 -24px;
    padding: 6px 24px 18px;
    scrollbar-width: none;
  }
  .testi-grid::-webkit-scrollbar { display: none; }
  .testi { flex: 0 0 84%; scroll-snap-align: center; }
  .testi:nth-child(2) { margin-top: 0; }

  .home .section-faq { padding: 64px 0; }
  .home .section-faq details { padding: 0 16px; }
  .home-final { padding: 24px 0 64px; }
  .final-card { padding: 48px 20px 40px; border-radius: 22px; }
  .final-mascot { width: 96px; height: 96px; }
}
@media (max-width: 480px) {
  .home-hero-intro { font-size: 1.02rem; }
  .phone-tab { padding: 8px 12px; font-size: 0.8rem; white-space: nowrap; }
  .testi-grid { margin: 0 -16px; padding: 6px 16px 18px; }
  .stores-status { font-size: 0.8rem; padding: 6px 12px; }
  .final-card { padding-left: 16px; padding-right: 16px; }
  .home-hero-cta .btn-cta { width: 100%; }
  .home-phones { --pw: 196px; width: 310px; }
  .home-phones .app-phone.is-front { transform: translate3d(14px, 0, 0) rotate(-2deg); }
  .home-phones .app-phone.is-back  { transform: translate3d(104px, 30px, 0) rotate(7deg) scale(0.88); }
}
@media (prefers-reduced-motion: reduce) {
  .home-phones .app-phone, .how-screen, .how-step, .how-num { transition: none; }
  .home .section-faq details::details-content { transition: none; }
}
