/* Page d'accueil des visiteurs (voir pages.accueil). Réutilise les couleurs et les polices de style.css :
   le thème clair/sombre suit donc celui de l'appareil. Aucun style en ligne : la page tourne sous une CSP stricte. */
.page-accueil { min-height: 100vh; font-family: var(--font-body); font-size: 16px; line-height: 1.5; }
.ac a { text-decoration: none; }
.ac svg { flex: none; }
.ac-cadre { box-sizing: border-box; width: 100%; max-width: 1240px; margin: 0 auto; padding-left: clamp(20px, 4vw, 40px); padding-right: clamp(20px, 4vw, 40px); }
.ac-bande { background: var(--surface); width: 100%; }
.ac-titre-section { margin: 0; font-family: var(--font-titre); font-weight: 700; font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.1; letter-spacing: -.015em; text-wrap: balance; }
.ac-lead { margin: 0; color: var(--muted); font-size: 1.1rem; max-width: 30em; }

/* barre du haut */
.ac-haut { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: calc(22px + env(safe-area-inset-top)); padding-bottom: 22px; }
.ac-marque { display: flex; align-items: center; gap: 10px; color: var(--fg); }
.ac-marque svg { width: 40px; height: 40px; color: var(--accent); }
.ac-nom { font-family: var(--font-titre); font-weight: 700; font-size: 1.55rem; letter-spacing: -.01em; line-height: 1; }
.ac-compte { display: flex; align-items: center; gap: 8px; }
.ac-lien { color: var(--fg); font-weight: 600; padding: 12px 16px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 999px; }
.ac-lien:hover { background: var(--surface-2); }

/* boutons */
.ac-btn { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; padding: 15px 30px; min-height: 52px; display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid transparent; }
.ac-btn.plein { background: var(--accent); color: var(--bg); }
.ac-btn.plein:hover { box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent); }
.ac-btn.contour { background: var(--surface); color: var(--fg); border-color: var(--line); }
.ac-btn.contour:hover { border-color: var(--accent); }
.ac-btn.petit { font-size: 1rem; padding: 12px 22px; min-height: 44px; }
.ac-btn.moyen { font-size: 1.05rem; padding: 14px 28px; min-height: 50px; }
.ac-btn.clair { background: var(--bg); color: var(--fg); }
.ac a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* héros */
.ac-heros { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(32px, 5vw, 64px); padding-top: clamp(24px, 5vw, 64px); padding-bottom: clamp(48px, 7vw, 96px); }
.ac-heros-texte { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.ac-pastille { display: inline-flex; align-items: center; gap: 8px; background: var(--accent-soft); color: var(--fg); font-weight: 700; font-size: .85rem; padding: 6px 14px; border-radius: 999px; }
.ac-pastille svg { width: 16px; height: 16px; color: var(--accent); }
.ac h1 { margin: 0; font-family: var(--font-titre); font-weight: 700; font-size: clamp(2.3rem, 5.4vw, 4rem); line-height: 1.04; letter-spacing: -.02em; }
.ac-heros-texte > p { margin: 0; font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 34em; }
.ac-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.ac-atouts { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .95rem; }
.ac-atouts li { display: flex; align-items: center; gap: 8px; }
.ac-atouts svg, .ac-points svg { width: 22px; height: 22px; color: var(--accent); }

/* aperçu de la page Semaine */
.ac-vue { flex: 1 1 340px; min-width: 0; display: flex; justify-content: center; position: relative; padding: 24px 0; }
.ac-rond { position: absolute; top: 50%; left: 50%; width: min(440px, 100%); aspect-ratio: 1 / 1; transform: translate(-50%, -50%); border-radius: 50%; background: var(--accent-soft); }
.ac-tel { position: relative; width: 100%; max-width: 330px; background: var(--bg); border: 1px solid var(--line); border-radius: 36px; padding: 18px 14px 20px; box-shadow: 0 24px 60px rgba(22, 33, 28, .16); display: flex; flex-direction: column; gap: 9px; }
.ac-tel-tete { text-align: center; padding: 4px 0 8px; }
.ac-tel-tete b { display: block; font-family: var(--font-titre); font-size: 1.25rem; }
.ac-tel-tete span { font-size: .7rem; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.ac-jour { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px; display: flex; align-items: center; gap: 10px; min-height: 68px; }
.ac-jour.vide { background: transparent; border-style: dashed; color: var(--muted); font-size: .9rem; }
.ac-date { width: 46px; flex: none; text-align: center; background: var(--surface-2); border-radius: 10px; padding: 5px 0; line-height: 1.05; }
.ac-date small { display: block; font-size: .62rem; font-weight: 700; letter-spacing: .07em; color: var(--muted); }
.ac-date b { font-family: var(--font-display); font-size: 1.25rem; }
.ac-photo { width: 48px; height: 48px; flex: none; border-radius: 10px; background: var(--accent-soft); }
.ac-jour-texte { min-width: 0; }
.ac-jour-texte b { display: block; font-size: .92rem; line-height: 1.25; }
.ac-jour-texte span { font-size: .78rem; color: var(--muted); }
.ac-extras { margin-left: 18px; display: flex; flex-direction: column; gap: 5px; }
.ac-extra { background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 7px 10px; display: flex; gap: 10px; font-size: .78rem; }
.ac-extra span { color: var(--muted); font-weight: 700; min-width: 62px; }
.ac-extra b { font-weight: 700; }
.ac-resto { background: var(--resto-soft); color: var(--resto); font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }

/* sections vedettes */
.ac-vedette { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(32px, 5vw, 72px); padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.ac-vedette.inverse { flex-direction: row-reverse; }
.ac-vedette-texte { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.ac-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ac-points li { display: flex; gap: 12px; align-items: flex-start; }
.ac-points svg { margin-top: 2px; }
.ac-vedette-vue { flex: 1 1 340px; min-width: 0; display: flex; justify-content: center; }

/* maquette : recette traduite */
.ac-recette { width: 100%; max-width: 440px; background: var(--bg); border: 1px solid var(--line); border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.ac-recette-tete { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ac-recette-tete b { font-family: var(--font-titre); font-size: 1.25rem; line-height: 1.15; }
.ac-bascule { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 3px; font-size: .78rem; font-weight: 700; }
.ac-bascule span { padding: 4px 12px; border-radius: 999px; color: var(--muted); }
.ac-bascule span.actif { background: var(--accent); color: var(--bg); }
.ac-version { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.ac-version small { font-size: .7rem; letter-spacing: .08em; font-weight: 700; color: var(--muted); }
.ac-version span { color: var(--muted); font-style: italic; }
.ac-version.fr { border: 2px solid var(--accent); }
.ac-version.fr small { color: var(--accent); }
.ac-version.fr span { color: var(--fg); font-style: normal; font-weight: 700; }
.ac-fleche { display: flex; justify-content: center; }
.ac-fleche span { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--bg); display: flex; align-items: center; justify-content: center; }
.ac-fleche svg { width: 18px; height: 18px; }

/* maquette : liste d'épicerie */
.ac-liste { width: 100%; max-width: 430px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 18px 48px rgba(22, 33, 28, .10); }
.ac-liste-tete { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ac-liste-tete b { font-family: var(--font-titre); font-size: 1.3rem; }
.ac-regrouper { display: inline-flex; align-items: center; gap: 6px; background: var(--accent-soft); color: var(--fg); font-size: .82rem; font-weight: 700; padding: 6px 14px; border-radius: 999px; }
.ac-regrouper svg { width: 16px; height: 16px; color: var(--accent); }
.ac-barre { height: 8px; border-radius: 999px; background: var(--surface-2); }
.ac-barre span { display: block; width: 42%; height: 100%; border-radius: 999px; background: var(--accent); }
.ac-rayon { font-size: .74rem; letter-spacing: .08em; font-weight: 700; color: var(--muted); margin-top: 4px; }
.ac-article { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; align-items: center; gap: 12px; }
.ac-case { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line); background: var(--surface); flex: none; }
.ac-article-texte { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.ac-article-texte b { font-weight: 700; }
.ac-article-texte b em { font-style: normal; font-weight: 400; color: var(--muted); font-size: .85rem; }
.ac-article-texte small { font-size: .75rem; color: var(--muted); }
.ac-article > svg { width: 18px; height: 18px; color: var(--muted); }
.ac-maison { margin-top: 4px; border-top: 1px solid var(--line); padding-top: 12px; display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 700; font-size: .92rem; }
.ac-maison svg { width: 20px; height: 20px; }
.ac-maison svg:first-child { color: var(--accent); }
.ac-maison span { flex: 1; }

/* trois gestes */
.ac-section { display: flex; flex-direction: column; gap: 40px; padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.ac-entete { text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.ac-entete .ac-titre-section { max-width: 18em; }
.ac-entete p { margin: 0; color: var(--muted); font-size: 1.1rem; max-width: 34em; }
.ac-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.ac-grille.large { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.ac-etape { background: var(--bg); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.ac-etape > span { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--bg); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.ac-etape h3, .ac-carte h3 { margin: 0; font-family: var(--font-display); font-size: 1.3rem; }
.ac-etape p, .ac-carte p { margin: 0; color: var(--muted); }

/* fonctions */
.ac-carte { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.ac-carte h3 { font-size: 1.25rem; }
.ac-icone { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; }
.ac-icone svg { width: 26px; height: 26px; color: var(--accent); }
.ac-puces { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ac-puces li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; font-weight: 500; }

/* appel final */
.ac-final-cadre { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 80px); }
.ac-final { background: var(--accent); color: var(--bg); border-radius: 32px; padding: clamp(32px, 6vw, 72px); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(24px, 4vw, 56px); }
.ac-final > svg { width: 150px; height: 150px; }
.ac-final-texte { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.ac-final h2 { margin: 0; font-family: var(--font-titre); font-weight: 700; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.08; letter-spacing: -.015em; }
.ac-final p { margin: 0; font-size: 1.1rem; max-width: 30em; opacity: .9; }
.ac-final .ac-actions { align-items: center; margin-top: 6px; }
.ac-final .ac-lien { color: var(--bg); text-decoration: underline; padding: 12px 8px; }
.ac-final .ac-lien:hover { background: transparent; }

/* pied de page */
.ac-pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: .9rem; padding-top: 12px; padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
.ac-pied .ac-marque svg { width: 26px; height: 26px; }
.ac-pied .ac-nom { font-size: 1.05rem; }
.ac-pied nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.ac-pied nav a { color: var(--accent); text-decoration: underline; padding: 10px 0; min-height: 44px; display: inline-flex; align-items: center; }

@media (prefers-reduced-motion: reduce) { .ac .logo .vapeur { animation: none; } }
.ac-final > svg { color: var(--bg); }
/* style.css limite <main> à 820 px : la page d'accueil gère elle-même ses largeurs */
.ac main { max-width: none; margin: 0; padding: 0; }

/* maquette : mode cuisine (v4.7.4) */
.ac-cuisine { width: 100%; max-width: 440px; background: var(--bg); border: 1px solid var(--line); border-radius: 24px; padding: 20px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 18px 48px rgba(22, 33, 28, .10); }
.ac-cuisine-haut { display: flex; align-items: center; gap: 14px; }
.ac-x { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: flex; align-items: center; justify-content: center; font-size: .95rem; flex: none; }
.ac-cuisine-haut b { display: block; font-family: var(--font-titre); font-size: 1.2rem; line-height: 1.15; }
.ac-cuisine-haut small { color: var(--muted); font-size: .8rem; }
.ac-allume { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 700; }
.ac-allume svg { width: 14px; height: 14px; }
.ac-cuisine-liste { display: flex; flex-direction: column; gap: 10px; }
.ac-et { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; font-size: 1.05rem; line-height: 1.4; }
.ac-et p { margin: 0; }
.ac-num { width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.ac-num svg { width: 16px; height: 16px; }
.ac-et.faite { color: var(--muted); }
.ac-et.faite p { text-decoration: line-through; }
.ac-et.faite .ac-num { background: var(--accent); color: var(--bg); }
.ac-minute { display: inline-flex; align-items: center; gap: 4px; background: var(--accent-soft); color: var(--fg); font-weight: 700; font-size: .92rem; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.ac-minute svg { width: 15px; height: 15px; color: var(--accent); }
.ac-compte-rebours { background: var(--accent); color: var(--bg); border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.ac-compte-rebours > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ac-compte-rebours small { font-size: .72rem; letter-spacing: .08em; font-weight: 700; opacity: .85; }
.ac-compte-rebours b { font-family: var(--font-titre); font-size: 2.2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.ac-compte-rebours .ac-barre { background: color-mix(in srgb, var(--bg) 28%, transparent); height: 6px; }
.ac-compte-rebours .ac-barre span { background: var(--bg); width: 8%; }

/* FAQ, mention d'abonnement et application dédiée (v4.7.6) */
.ac-faq { display: flex; flex-direction: column; gap: 28px; }
.ac-questions { max-width: 760px; margin: 0 auto; width: 100%; display: flex; flex-direction: column; gap: 10px; }
.ac-q { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; }
.ac-q summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 1.05rem; padding: 16px 28px 16px 0; position: relative; }
.ac-q summary::-webkit-details-marker { display: none; }
.ac-q summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.ac-q[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.ac-q summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.ac-q p { margin: 0 0 16px; color: var(--muted); line-height: 1.6; }
.ac-prix { text-align: center; margin: 0; color: var(--muted); font-size: .95rem; }
.ac-plateformes { list-style: none; margin: 4px 0 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.ac-plateformes li { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 8px 20px; font-weight: 700; }
.ac-marmite { width: min(100%, 260px); height: auto; }
.ac-marmite .corps { fill: var(--accent); }
.ac-marmite .bord { fill: color-mix(in srgb, var(--accent) 70%, var(--surface)); }
.ac-marmite .tel { fill: var(--bg); stroke: var(--accent); stroke-width: 4; }
.ac-marmite .ecran { fill: var(--accent-soft); }
.ac-marmite .tel-bouton { fill: var(--accent); }
.ac-marmite .vap { fill: none; stroke: color-mix(in srgb, var(--accent) 45%, var(--surface)); stroke-width: 5; stroke-linecap: round; }

/* Bouton de thème (v4.7.7) : la lune en thème clair, le soleil en thème sombre */
.ac-theme { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--fg); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; flex: none; }
.ac-theme:hover { background: var(--accent-soft); }
.ac-theme:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ac-theme svg { width: 20px; height: 20px; }
.ac-theme svg.ac-soleil { display: none; }
:root[data-theme="dark"] .ac-theme svg.ac-soleil { display: block; }
:root[data-theme="dark"] .ac-theme svg.ac-lune { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .ac-theme svg.ac-soleil { display: block; }
  :root:not([data-theme]) .ac-theme svg.ac-lune { display: none; }
}
.ac-compte a { white-space: nowrap; }
@media (max-width: 520px) {      /* petit écran : le bouton de thème reste à droite du nom, les deux liens passent dessous */
  .ac-compte { display: contents; }
  .ac-marque { margin-right: auto; }
  .ac-compte .ac-lien { margin-left: auto; }
  .ac-compte .ac-btn.petit { padding-inline: 14px; }
}
@media (max-width: 380px) { .ac-haut .ac-nom { font-size: 1.1rem; } .ac-haut { gap: 10px; } }
@media (max-width: 380px) { .ac-compte .ac-lien, .ac-compte .ac-btn.petit { font-size: .9rem; } .ac-compte .ac-btn.petit { padding-inline: 12px; } }
