/* Le matin partout (27/11) : l'allure du héros (ciel du matin, verre, lumière de l'aube) sur toute la page d'accueil.
   Une seule palette, les polices de l'appli, des fonds clairs réguliers et trois moments de ciel : ce que vous y
   gagnez, le prix, l'appel final. Aucun texte ni ordre de section ne change. Les teintes viennent du thème
   (--color-matin-…, --shadow-verre…) ; chargée juste avant demarrage-avis.css, qui reste la dernière feuille. */
:root {
  --heading: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
  --body: 'Figtree', 'Segoe UI', sans-serif;
  --font-heading: 'Bricolage Grotesque', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Figtree', 'Segoe UI', Arial, sans-serif;
  --font-voice: 'Fraunces', Georgia, 'Times New Roman', serif;
  --matin-verre: color-mix(in srgb, white 74%, transparent);
  --matin-verre-plein: color-mix(in srgb, white 90%, transparent);
  --matin-verre-bord: color-mix(in srgb, white 95%, transparent);
  --matin-trait: color-mix(in srgb, var(--color-ink) 9%, transparent);
  --matin-aube: linear-gradient(90deg, var(--blue) 0%, var(--color-matin-violet) 55%, var(--color-matin-ambre) 100%);
}

/* Fond unique de la page ; les moments de ciel débordent jusqu'au bord de l'écran sans créer de défilement horizontal
   (clip, et non hidden : la pile de la visite et le titre des questions restent collants). */
html, body { background: var(--color-matin-fond); }
body { overflow-x: clip; }
body h1, body h2, body h3 { font-family: var(--heading); letter-spacing: -.02em; }

/* En-tête sur le fond du matin, avec un filet. Jamais de flou, de filtre ni de transformation ici : l'en-tête deviendrait
   le cadre du voile et du tiroir du menu (position: fixed), qui se décaleraient. */
.site-header { background: color-mix(in srgb, var(--color-matin-fond) 92%, transparent); border-bottom: 1px solid var(--matin-trait); }

/* Boutons principaux : le bleu du plein jour, avec un reflet de lumière. */
body .button.primary { background: linear-gradient(180deg, var(--color-matin-reflet) 0%, var(--blue) 100%); box-shadow: 0 1px 0 color-mix(in srgb, white 35%, transparent) inset, 0 10px 24px -10px color-mix(in srgb, var(--blue) 70%, transparent); border-radius: 14px; }
/* Sous la souris, le reflet fonce (bloc souris plus bas). Au doigt, le bouton touché garde son reflet : la remise à zéro d'acces.css le mettrait à plat. */
@media (hover: none) { body .button.primary:hover { background: linear-gradient(180deg, var(--color-matin-reflet) 0%, var(--blue) 100%); } }

/* Le bandeau de la promesse (déjà de la nuit à l'aube, arrondi) : une ombre de verre sous la carte. */
.confiance .pas { box-shadow: var(--shadow-verre-fort); }

/* Moment de ciel n° 1 : ce que vous y gagnez. */
#valeur { position: relative; isolation: isolate; }
#valeur::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1;
  background:
    radial-gradient(42% 60% at 88% 8%, color-mix(in srgb, var(--color-matin-halo) 55%, transparent), transparent 70%),
    radial-gradient(40% 50% at 8% 30%, color-mix(in srgb, var(--color-matin-brume) 80%, transparent), transparent 70%),
    linear-gradient(180deg, var(--color-matin-fond) 0%, var(--color-matin-ciel) 22%, var(--color-matin-lilas) 62%, var(--color-matin-fond) 100%); }
#valeur .valeur-liste > li { background: var(--matin-verre); border: 1px solid var(--matin-verre-bord); border-radius: 22px; box-shadow: var(--shadow-verre); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
#valeur .valeur-scene { border-radius: 16px; background: linear-gradient(160deg, var(--matin-verre-plein), color-mix(in srgb, var(--color-matin-ciel) 90%, transparent)); }
#valeur .valeur-preuve .valeur-scene { background: linear-gradient(140deg, var(--color-matin-nuit) 0%, var(--color-matin-nuit-clair) 62%, var(--color-matin-prune) 100%); }
@media (hover: hover) and (pointer: fine) {
  body .button.primary:hover { background: linear-gradient(180deg, var(--blue) 0%, var(--blue-hover) 100%); }
  /* valeur.css soulève la carte au survol : l'ombre grandit avec elle. */
  :root #valeur .valeur-liste.pose > li:hover { box-shadow: var(--shadow-verre-fort); }
}
#valeur .valeur-mini { border-radius: 14px; box-shadow: var(--shadow-verre); border: 1px solid var(--matin-verre-bord); }

/* La visite : cartes arrondies à l'ombre de verre, onglet teinté de sa famille. Fond opaque : les cartes s'empilent
   au défilement (visite-pile.css), celle du dessous ne doit pas transparaître. */
#visite { background: var(--color-matin-fond); }
#visite .story-scene { background: white; border: 1px solid var(--matin-verre-bord); border-radius: 24px; box-shadow: 0 -10px 30px -12px color-mix(in srgb, var(--color-ink) 16%, transparent), var(--shadow-verre); }
#visite .pile-onglet { background: linear-gradient(90deg, color-mix(in srgb, var(--family) 10%, white), transparent); }
#visite .dashboard-frame { border-radius: 18px; box-shadow: var(--shadow-verre-fort); }

/* Démarrer : trois étapes sur une ligne d'aube, la troisième en soleil. */
:root #demarrage { background: var(--color-matin-fond); }
:root #demarrage .step-index { background: white; box-shadow: 0 0 0 6px var(--matin-verre-plein), 0 6px 16px -6px color-mix(in srgb, var(--color-ink) 35%, transparent); }
:root #demarrage li:last-child .step-index { background: var(--color-matin-ambre); border-color: var(--color-matin-ambre); color: white; box-shadow: 0 0 0 6px color-mix(in srgb, var(--color-matin-ambre) 18%, transparent), 0 0 26px 4px color-mix(in srgb, var(--color-matin-ambre) 45%, transparent); }
:root #demarrage .begin-apercu, :root #demarrage li:last-child > div { border-radius: 20px; }

/* Avis : fond froid léger, cartes de verre ; en grand écran, le premier avis (déjà en blanc sur sombre) passe en ciel de l'aube. */
:root #avis.avis.section { background: var(--color-matin-fond-froid); }
:root #avis .avis-carte { background: var(--matin-verre-plein); border: 1px solid var(--matin-verre-bord); border-radius: 22px; box-shadow: var(--shadow-verre); }
@media (min-width: 1101px) {
  :root #avis .avis-carte:first-child { background: linear-gradient(150deg, var(--color-matin-nuit) 0%, var(--color-matin-nuit-clair) 70%, var(--color-matin-prune) 100%); border-color: transparent; box-shadow: var(--shadow-verre-fort); }
}
:root #avis .avis-total { padding: 14px 18px; background: var(--matin-verre-plein); border: 1px solid var(--matin-verre-bord); border-radius: 18px; box-shadow: var(--shadow-verre); }

/* Fondateur : sur le fond froid, la photo dans un halo de lumière. */
.fondateur { background: var(--color-matin-fond-froid); }
.fondateur-portrait { border-radius: 50%; box-shadow: 0 0 0 10px var(--matin-verre-plein), 0 0 60px 12px color-mix(in srgb, var(--color-matin-ambre) 35%, transparent); }

/* Moment de ciel n° 2 : le prix, dans un panneau de verre au liseré d'aube. */
:root #abonnement.pricing-section { position: relative; isolation: isolate; background: none; }
:root #abonnement::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1;
  background:
    radial-gradient(38% 70% at 78% 60%, color-mix(in srgb, var(--color-matin-halo) 60%, transparent), transparent 72%),
    radial-gradient(50% 60% at 15% 20%, color-mix(in srgb, var(--color-matin-brume) 90%, transparent), transparent 70%),
    linear-gradient(180deg, var(--color-matin-fond-froid) 0%, var(--color-matin-ciel) 40%, var(--color-matin-lilas) 80%, var(--color-matin-fond) 100%); }
:root #abonnement .price-panel { position: relative; overflow: hidden; background: var(--matin-verre); border: 1px solid var(--matin-verre-bord); border-radius: 28px; box-shadow: var(--shadow-verre-fort); backdrop-filter: blur(20px) saturate(1.2); -webkit-backdrop-filter: blur(20px) saturate(1.2); }
:root #abonnement .price-panel::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--matin-aube); }

/* Questions : des lignes de verre arrondies ; en grand écran, le titre reste en vue pendant la lecture. */
:root #questions.faq-section { background: var(--color-matin-fond); align-items: start; }
@media (min-width: 641px) {
  :root #questions .section-intro { position: sticky; top: 110px; }
}
:root #questions .faq-list { display: grid; gap: 10px; border-top: 0; }
:root #questions .faq-list details { padding: 0 22px; background: var(--matin-verre-plein); border: 1px solid var(--matin-trait); border-radius: 16px; box-shadow: 0 1px 2px color-mix(in srgb, var(--color-ink) 4%, transparent); transition: box-shadow .2s ease, border-color .2s ease; }
:root #questions .faq-list details[open] { border-color: color-mix(in srgb, var(--blue) 28%, transparent); box-shadow: var(--shadow-verre); }
:root #questions .faq-list summary { padding-top: 17px; padding-bottom: 17px; }
:root #questions .faq-list summary::after { top: 50%; transform: translateY(-50%); line-height: 1; color: var(--blue); }

/* Moment de ciel n° 3 : l'appel final (déjà en aube), arrondi comme une carte. */
:root #commencer.final-section { margin: 0 clamp(16px, 3vw, 48px) 48px; overflow: hidden; border-radius: 28px; box-shadow: var(--shadow-verre-fort); }

@media (min-width: 1600px) {
  /* style.css aligne les sections par leur marge intérieure ; on retire la marge extérieure de la carte (48 px ici). */
  :root #commencer.final-section { padding-left: calc((100vw - 1440px) / 2 - 48px); padding-right: calc((100vw - 1440px) / 2 - 48px); }
}

/* Pied de page : un liseré d'aube en haut. */
footer.site-footer { position: relative; }
footer.site-footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--matin-aube); }

/* Téléphone : les cartes des gains et les avis défilent en rangée ; une ombre courte (la rangée a peu de marge) et pas de
   flou, coûteux sur les petits téléphones et presque invisible sur un fond clair. */
@media (max-width: 640px) {
  :root #valeur .valeur-liste > li, :root #avis .avis-carte { box-shadow: var(--shadow-card); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* Contraste forcé : les ciels peints disparaissent, les couleurs du système prennent la main. */
@media (forced-colors: active) {
  :root #valeur::before, :root #abonnement::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  :root #questions .faq-list details { transition: none; }
}
