/* ==========================================================================
   SugarFriend — Design system web V1.1
   Sources de vérité :
   - references/03-direction-artistique.md (« Charte V2 — tokens extraits »)
   - ADR-002 (typo Instrument Serif + Poppins)
   - site/DA-WEB-NOTES.md (directives d'élévation visuelle Alex, 05/08/2026) :
     fond « atmosphère », cards verre + liseré, nav pilule, bento, motion sobre.
   Aucune couleur / radius / ombre hors tokens sans validation Alex.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts self-hostées (Google Fonts, woff2 latin) — ADR-002
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-serif-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/poppins-400.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/poppins-500.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/poppins-600.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/poppins-700.woff2") format("woff2");
}

/* --------------------------------------------------------------------------
   2. Tokens (extraction Figma V2 — references/03) + couche verre (DA-WEB-NOTES)
   -------------------------------------------------------------------------- */
:root {
  /* Couleurs charte */
  --c-violet: #6e62d8;          /* seule couleur vive de l'UI (CTA, accents) */
  --c-orange: #d88705;
  --c-orange-vif: #ef5d0f;
  --c-corail: #ff7659;
  --c-creme: #f3eeee;           /* base du fond atmosphère */
  --c-creme-2: #fbfaf9;
  --c-creme-3: #fffdfa;
  --c-rose-clair: #ffe7e1;
  --c-rose-2: #f5dee7;
  --c-texte: #1c1c1e;           /* near-black chaud — jamais #000 */
  --c-texte-2: #434343;
  --c-texte-sec: #848484;
  --c-placeholder: #939393;
  --c-brun: #592409;
  --c-rouge: #ea0000;
  --c-vert: #48c492;
  --c-bleu-clair: #b4cfdb;
  --c-bleu: #458aa8;
  --c-blanc: #ffffff;

  /* Dégradés mascottes / cards de rôle (charte) */
  --grad-peche-rose: linear-gradient(145deg, #ffd9cb, #f9c2ea);
  --grad-jaune-orange: linear-gradient(145deg, #ffda00, #ff8d00);
  --grad-lavande: linear-gradient(145deg, #f9ddff, #bda5ff);
  --grad-lavande-2: linear-gradient(145deg, #ffcbf4, #afa5ff);
  --grad-ambre: linear-gradient(145deg, #ffefa1, #ffba4c);

  /* Surfaces verre — 3 intensités (DA-WEB-NOTES §2) */
  --glass-strong: rgba(255, 255, 255, 0.72);
  --glass: rgba(255, 255, 255, 0.5);
  --glass-soft: rgba(255, 255, 255, 0.38);
  --glass-border: rgba(255, 255, 255, 0.65);
  /* Liseré lumineux du haut : ce qui fait « verre » et pas « boîte » */
  --glass-inset: inset 0 1px 0 rgba(255, 255, 255, 0.85);

  /* Radius (charte) */
  --r-12: 12px;
  --r-16: 16px;
  --r-20: 20px;
  --r-24: 24px;
  --r-28: 28px;
  --r-pill: 50px;

  /* Ombres chaudes (base charte rgba(122,86,58)) — jamais de noir froid */
  --shadow-soft: 0 0 10px rgba(122, 86, 58, 0.15);
  --shadow-card: 0 10px 30px rgba(122, 86, 58, 0.1);
  --shadow-lift: 0 16px 40px rgba(122, 86, 58, 0.16);
  /* Ombre violette du CTA primaire (DA-WEB-NOTES §4) */
  --shadow-cta: 0 10px 24px rgba(110, 98, 216, 0.3);

  /* Typo */
  --f-display: "Instrument Serif", Georgia, serif;
  --f-ui: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Motion (DA-WEB-NOTES §7) */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  /* Mise en page */
  --container: 68rem;
  --gutter: 1.25rem;
}

/* --------------------------------------------------------------------------
   3. Base / reset léger — mobile-first
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--f-ui);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-texte);
  background: var(--c-creme);
}

/* Fond « atmosphère » : crème + 2 halos radiaux doux issus des dégradés
   mascottes (lavande haut-droite = source lumineuse, pêche-rose bas-gauche
   = remplissage). Calque fixe : les halos restent ancrés au viewport. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(52% 44% at 88% -6%, rgba(189, 165, 255, 0.4), transparent 72%),
    radial-gradient(40% 34% at 108% 26%, rgba(249, 221, 255, 0.42), transparent 70%),
    radial-gradient(50% 42% at -8% 104%, rgba(249, 194, 234, 0.32), transparent 72%),
    var(--c-creme);
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3 {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

/* Échelle éditoriale (DA-WEB-NOTES §5) */
h1 {
  font-size: clamp(2.375rem, 5.5vw + 0.5rem, 4rem); /* 38 → 64 px */
  line-height: 1.05;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem); /* 28 → 44 px */
  line-height: 1.12;
  letter-spacing: -0.015em;
}
h3 {
  font-size: clamp(1.375rem, 1.5vw + 1rem, 1.75rem);
}

/* Fragment d'accent : Instrument Serif italic (même fonte, graisse 400) */
h1 em,
h2 em,
h3 em {
  font-style: italic;
  color: var(--c-violet);
}

/* Eyebrow au-dessus des titres de section */
.eyebrow {
  display: block;
  font-family: var(--f-ui);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-violet);
  margin-bottom: 0.875rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--c-violet);
}

ul,
ol {
  padding-left: 1.25rem;
}

:focus-visible {
  outline: 3px solid var(--c-violet);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: 3rem;
}
@media (min-width: 48em) {
  .section {
    padding-block: 5rem;
  }
}

/* Sous-section : bloc empilé dans une page déjà en .section (Sécurité…) —
   rythme vertical resserré, sans les 5rem de .section */
.section--sub {
  padding-block: 1.25rem;
}
@media (min-width: 48em) {
  .section--sub {
    padding-block: 2rem;
  }
}

.section__intro {
  max-width: 42rem;
}

.text-sec {
  color: var(--c-texte-2);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--c-violet);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--r-12) 0;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

/* --------------------------------------------------------------------------
   4. Composants
   -------------------------------------------------------------------------- */

/* CTA primaire — LE seul élément « plein » de la page (DA-WEB-NOTES §4) :
   violet charte, ombre violette, hover translateY + assombrissement léger. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 58px;
  max-width: 100%;
  padding: 0.9em 1.4em;
  background: var(--c-violet);
  color: #fff;
  font-family: var(--f-ui);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  border-radius: var(--r-16);
  cursor: pointer;
  box-shadow: var(--shadow-cta);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background-color 0.18s var(--ease);
}
@media (min-width: 48em) {
  .btn {
    min-height: 65px;
    padding: 0.9em 1.75em;
    font-size: 1rem;
    letter-spacing: 0.04em;
  }
}
.btn:hover {
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--c-violet) 88%, var(--c-texte));
  box-shadow: 0 14px 30px rgba(110, 98, 216, 0.36);
}
.btn--arrow::after {
  content: "→";
  font-size: 1.2em;
  line-height: 1;
}
.btn--r24 {
  border-radius: var(--r-24);
}

/* Ghost verre — action secondaire (blanc translucide + blur, liseré) */
.btn--secondary {
  background: var(--glass);
  color: var(--c-violet);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-pill);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--glass-inset), 0 4px 14px rgba(122, 86, 58, 0.08);
}
.btn--secondary:hover {
  background: var(--glass-strong);
  box-shadow: var(--glass-inset), var(--shadow-card);
}

/* Ghost teinté violet — troisième poids */
.btn--tint {
  background: rgba(110, 98, 216, 0.1);
  color: var(--c-violet);
  border: 0;
  border-radius: var(--r-pill);
  box-shadow: none;
}
.btn--tint:hover {
  background: rgba(110, 98, 216, 0.16);
  box-shadow: none;
}

/* Cards verre — intensité moyenne par défaut, strong/soft en variantes.
   Liseré lumineux inset + ombre chaude externe (DA-WEB-NOTES §2). */
.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-16);
  box-shadow: var(--glass-inset), var(--shadow-card);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  padding: 1.5rem;
}
.card--r24 {
  border-radius: var(--r-24);
}
.card--strong {
  background: var(--glass-strong);
}
.card--soft {
  background: var(--glass-soft);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.card--hover {
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.card--hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--glass-inset), var(--shadow-lift);
}

/* Chip / pill */
.chip {
  display: inline-block;
  padding: 0.35em 1em;
  border-radius: var(--r-pill);
  background: var(--c-rose-clair);
  color: var(--c-orange-vif);
  font-size: 0.875rem;
  font-weight: 500;
}
.chip--violet {
  background: rgba(110, 98, 216, 0.1);
  color: var(--c-violet);
}

/* Champ de saisie — fond crème clair, bord violet 1 px (charte) */
.field {
  display: block;
  width: 100%;
  padding: 1em 1.25em;
  font: inherit;
  color: var(--c-texte);
  background: var(--c-creme-3);
  border: 1px solid var(--c-violet);
  border-radius: var(--r-16);
}
.field::placeholder {
  color: var(--c-placeholder);
}

/* Mascottes sucres (assets vectoriels de marque — pas des emojis) */
.mascot {
  width: 5rem;
  height: auto;
  flex: none;
  filter: drop-shadow(0 6px 12px rgba(122, 86, 58, 0.18));
}
.mascot--sm {
  width: 3.25rem;
}

/* Cadre téléphone — bezel fin (demande Alex 05/08), ombre charte.
   Captures au ratio 390×800 (barre de statut iOS recadrée au pipeline). */
.phone {
  --phone-w: min(240px, 62vw);
  width: var(--phone-w);
  flex: none;
  padding: 4px;
  background: var(--c-texte);
  border-radius: 36px;
  box-shadow: 0 14px 34px rgba(122, 86, 58, 0.22);
}
.phone img {
  width: 100%;
  height: auto;
  border-radius: 32px;
  background: var(--c-creme);
}
.phone--solo {
  margin-inline: auto;
}
/* Duo de téléphones (héro, parcours) : principal + second en décalé */
.phone-duo {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-bottom: 2.5rem; /* absorbe le décalage du second téléphone */
}
.phone-duo .phone--secondary {
  --phone-w: min(190px, 42vw);
  margin-left: -2.75rem;
  margin-top: 4.5rem;
  position: relative;
  z-index: 1;
}
@media (min-width: 48em) {
  .phone {
    --phone-w: 260px;
  }
  .phone-duo .phone--secondary {
    --phone-w: 210px;
  }
}

/* Carrousel d'écrans — scroll-snap horizontal, dots + autoplay (site.js).
   Retours Alex 06/08 : une slide = une image 100 % (aucun aperçu du slide
   suivant), SANS ombre (elle était coupée par l'overflow), avec la même
   bordure/bezel que les autres écrans du site (.phone). Dots seuls.
   Usage limité aux parcours de Comment ça marche. Zéro librairie. */
.carousel-wrap {
  position: relative;
  /* Même gabarit que les cadres téléphone du site (.phone : min(240px, 62vw)),
     un poil plus large pour la lisibilité des écrans de parcours */
  width: min(280px, 78vw);
  margin-inline: auto;
}
.carousel {
  display: flex;
  gap: 0; /* pas d'écart : le slide suivant reste totalement hors champ */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 0 1rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.carousel::-webkit-scrollbar {
  display: none;
}
.carousel__slide {
  /* Une slide = 100 % du rail : un seul écran visible à la fois */
  width: 100%;
  flex: none;
  scroll-snap-align: center;
  /* Bezel identique aux autres écrans (.phone), sans box-shadow */
  padding: 4px;
  background: var(--c-texte);
  border-radius: 36px;
}
.carousel__slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 32px;
  background: var(--c-creme);
}
.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.carousel__dots button {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: 0;
  border-radius: var(--r-pill);
  background: rgba(110, 98, 216, 0.25);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), width 0.2s var(--ease);
}
.carousel__dots button[aria-current="true"] {
  width: 1.375rem;
  background: var(--c-violet);
}

/* Bandeau pré-lancement */
.banner {
  background: var(--c-violet);
  color: #fff;
  text-align: center;
  padding: 0.6rem var(--gutter);
  font-size: 0.9rem;
  font-weight: 500;
}
.banner a {
  color: #fff;
}

/* --------------------------------------------------------------------------
   5. Header pilule flottante / footer
   -------------------------------------------------------------------------- */
/* Écho direct de la tab bar pilule flottante de l'app (DA-WEB-NOTES §3). */
.site-header {
  position: sticky;
  top: 0.75rem;
  z-index: 50;
  padding: 0.75rem var(--gutter) 0;
}
.site-header .container {
  max-width: 54rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding: 0.5rem 0.75rem 0.5rem 1.5rem;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-pill);
  box-shadow: var(--glass-inset), var(--shadow-card);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.logo {
  font-family: var(--f-display);
  font-size: 1.625rem;
  color: var(--c-texte);
  text-decoration: none;
}
.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.125rem;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: inline-block;
  padding: 0.45em 0.8em;
  border-radius: var(--r-pill);
  color: var(--c-texte-2);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.site-nav a:hover {
  background: rgba(255, 255, 255, 0.75);
  color: var(--c-violet);
}
.site-nav a[aria-current="page"] {
  background: rgba(110, 98, 216, 0.12);
  color: var(--c-violet);
}
@media (max-width: 35.99em) {
  .site-header .container {
    justify-content: center;
    padding-inline: 1rem;
  }
}

.site-footer {
  background: var(--glass-soft);
  border-top: 1px solid var(--glass-border);
  box-shadow: var(--glass-inset);
  padding: 2.5rem 0;
  margin-top: 3rem;
  font-size: 0.9rem;
  color: var(--c-texte-2);
}
.site-footer nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0 0 1rem;
  padding: 0;
}
.site-footer a {
  color: var(--c-texte-2);
}

/* --------------------------------------------------------------------------
   6. Sections spécifiques
   -------------------------------------------------------------------------- */

/* Héro — TOUT centré (retour Alex 05/08) : mascottes, titre, textes, CTA,
   puis duo de téléphones en dessous. Une seule colonne à toutes les tailles. */
.hero {
  text-align: center;
  padding-block: 2.5rem 1rem;
  overflow: hidden;
}
.hero .container {
  display: grid;
  gap: 2.5rem;
  justify-items: center;
}
.hero__copy {
  max-width: 44rem;
}
.hero__mascots {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.hero__tagline {
  max-width: 38rem;
  margin-inline: auto;
  font-size: 1.125rem;
  color: var(--c-texte-2);
}
.hero__pitch {
  max-width: 38rem;
  margin-inline: auto;
  color: var(--c-texte-2);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1.5rem;
}
.hero__media {
  /* min-width:0 : la largeur min-content d'un éventuel scroll container
     forcerait sinon un débordement horizontal de toute la page */
  min-width: 0;
  width: 100%;
}
@media (min-width: 62em) {
  .hero {
    padding-block: 4rem 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   6bis. Héros de pages — arbitrage Alex 06/08 sur /test-heros/ :
   accueil = style 5 (trio en éventail) · CCM = style 6 (typo XXL + mascottes
   dans le titre) · Sécurité = style 14 (checklist du cadre) · FAQ = style 12
   (halos renforcés + mascottes flottantes).
   -------------------------------------------------------------------------- */

/* Accueil — trio d'écrans en éventail (style 5) */
.phone-fan {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.phone-fan .phone {
  --phone-w: min(230px, 52vw);
}
.phone-fan .phone--side {
  --phone-w: min(170px, 36vw);
  margin-top: 3.5rem;
}
.phone-fan .phone--l {
  transform: rotate(-7deg);
  margin-right: -2rem;
}
.phone-fan .phone--r {
  transform: rotate(7deg);
  margin-left: -2rem;
}
.phone-fan .phone--c {
  position: relative;
  z-index: 1;
}

/* Comment ça marche — typo XXL, mascottes intégrées au titre (style 6) */
.hero-xxl h1 {
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  line-height: 1.04;
}
.hero-xxl h1 picture {
  display: inline-block;
  vertical-align: -0.1em;
}
.hero-xxl h1 .mascot {
  width: 0.95em;
  filter: drop-shadow(0 4px 8px rgba(122, 86, 58, 0.2));
}

/* Sécurité — checklist du cadre + duo d'écrans (style 14) */
.hero-checks {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  text-align: left;
}
.checks {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 0.75rem;
}
.checks li {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  color: var(--c-texte-2);
}
.checks li::before {
  content: "✓";
  flex: none;
  font-weight: 700;
  color: var(--c-violet);
  background: rgba(110, 98, 216, 0.12);
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 0.85rem;
  transform: translateY(0.2em);
}
@media (min-width: 62em) {
  .hero-checks {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }
}
@media (max-width: 61.99em) {
  .hero-checks {
    text-align: center;
  }
  .hero-checks .checks {
    max-width: 26rem;
    margin-inline: auto;
    text-align: left;
  }
}

/* FAQ — halos renforcés + mascottes flottantes (style 12).
   Section pleine largeur (hors container) pour que les halos s'étendent. */
.hero-glow {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 3rem 0 0.5rem;
}
@media (min-width: 48em) {
  .hero-glow {
    padding: 4.5rem 0 1.5rem;
  }
}
.hero-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(42% 55% at 12% 18%, rgba(189, 165, 255, 0.5), transparent 70%),
    radial-gradient(42% 55% at 88% 22%, rgba(249, 194, 234, 0.5), transparent 70%),
    radial-gradient(36% 45% at 50% 100%, rgba(255, 239, 161, 0.45), transparent 72%);
}
.hero-glow .container {
  position: relative;
  z-index: 1;
}
.hero-glow__m {
  position: absolute;
  z-index: 0;
}
.hero-glow__m .mascot {
  width: min(7rem, 14vw);
}
.hero-glow__m--1 {
  left: 6%;
  top: 24%;
  transform: rotate(-10deg);
}
.hero-glow__m--2 {
  right: 6%;
  top: 20%;
  transform: rotate(10deg);
}
.hero-glow__m--3 {
  right: 16%;
  bottom: 8%;
  transform: rotate(-6deg);
}
@media (max-width: 47.99em) {
  .hero-glow__m {
    display: none;
  }
}
/* La section qui suit le héro à halos n'a pas besoin de tout son padding haut */
.hero-glow + .section {
  padding-top: 1rem;
}

/* Section « titre + texte » seulement : tout centré (retour Alex 05/08) */
.section--center {
  text-align: center;
}
/* En-tête de section centré, sans toucher au contenu qui suit (cards…) —
   demande Alex 06/08 (section rôles de la home) */
.section__head--center {
  text-align: center;
}
.section__head--center .section__intro {
  margin-inline: auto;
}
.section--center p {
  max-width: 46rem;
  margin-inline: auto;
}

/* Split texte / visuel — mobile : empilé ; desktop : 2 colonnes */
.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  margin-top: 2rem;
}
.split__body > :first-child {
  margin-top: 0;
}
.split__media {
  justify-self: center;
  width: 100%;
  min-width: 0;
  max-width: 26rem;
}
@media (min-width: 62em) {
  .split {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 3rem;
  }
  .split--reverse .split__media {
    order: -1;
  }
}

/* Grille de cards uniforme (étapes, listes simples) */
.grid {
  display: grid;
  gap: 1.25rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 48em) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Cards de rôle — verre + voile dégradé charte propre à chaque rôle
   (écho des cards « Tu es plutôt ? » de l'app) */
.role-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.role-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.28;
  pointer-events: none;
}
.role-card--sugar::before {
  background: var(--grad-lavande);
}
.role-card--friend::before {
  background: var(--grad-peche-rose);
}
.role-card--lesdeux::before {
  background: var(--grad-ambre);
}
.role-card > * {
  position: relative;
}
.role-card h3 {
  margin: 0;
}
.role-card p {
  margin: 0;
  color: var(--c-texte-2);
}

/* Bento — grille asymétrique (réassurance, features) DA-WEB-NOTES §6 */
.bento {
  display: grid;
  gap: 1.25rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.bento > li {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.bento h3 {
  margin: 0;
}
.bento p {
  margin: 0;
}
@media (min-width: 48em) {
  .bento {
    grid-template-columns: repeat(6, 1fr);
  }
  .bento > .bento--w4 {
    grid-column: span 4;
  }
  .bento > .bento--w3 {
    grid-column: span 3;
  }
  .bento > .bento--w2 {
    grid-column: span 2;
  }
}
.bento__visual {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
}

/* Mini-composants UI recréés (badges de la charte, pas des inventions) */
.badge-round {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(110, 98, 216, 0.12);
  color: var(--c-violet);
  font-weight: 600;
  font-size: 0.9rem;
}
/* Badge certifié : pastille violette + coche blanche (token charte) */
.badge-certified {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.35em 0.9em;
  border-radius: var(--r-pill);
  background: var(--c-violet);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
}
.stars {
  display: inline-flex;
  gap: 0.2rem;
  color: var(--c-violet);
}
.stars svg {
  width: 1.1rem;
  height: 1.1rem;
}

/* Étapes numérotées */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 1rem;
}
.steps > li {
  counter-increment: step;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.steps > li::before {
  content: counter(step);
  font-family: var(--f-display);
  font-size: 1.5rem;
  line-height: 1;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  background: var(--c-violet);
  color: #fff;
  border-radius: 32%;
  box-shadow: 0 6px 14px rgba(110, 98, 216, 0.28);
}

/* FAQ (details natifs) */
.faq-item {
  margin-bottom: 1rem;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 500;
  padding: 1.25rem 3rem 1.25rem 1.5rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-16);
  box-shadow: var(--glass-inset), var(--shadow-card);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  list-style: none;
  position: relative;
  transition: background-color 0.2s var(--ease);
}
.faq-item summary:hover {
  background: var(--glass-strong);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--f-display);
  font-size: 1.5rem;
  color: var(--c-violet);
}
.faq-item[open] summary::after {
  content: "–";
}
.faq-item .faq-item__body {
  padding: 1rem 1.5rem 0.5rem;
  color: var(--c-texte-2);
}

/* Capture email pré-lancement — panneau verre fort */
.signup {
  text-align: center;
}
.signup__panel {
  /* Fullwidth (demande Alex 05/08) : le panneau occupe toute la largeur du container */
  width: 100%;
  padding: 2.5rem 1.5rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-28);
  box-shadow: var(--glass-inset), var(--shadow-card);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
@media (min-width: 48em) {
  .signup__panel {
    padding: 3rem 3.5rem;
  }
}
.signup form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 30rem;
  margin: 1.5rem auto 0;
}
@media (min-width: 36em) {
  .signup form {
    flex-direction: row;
  }
  .signup .field {
    flex: 1;
  }
  .signup .btn {
    min-height: 0;
  }
}
.signup__note {
  font-size: 0.8rem;
  color: var(--c-texte-sec);
  margin: 0.75rem 0 0;
}
/* Depuis le 06/08 : le bloc du bas est un simple rappel vers la section bêta
   (pas deux formulaires concurrents) — panneau plus discret */
.signup__panel--mini {
  padding: 2rem 1.5rem;
  background: var(--glass-soft);
}
.signup__cta {
  margin: 1.25rem 0 0;
}

/* --------------------------------------------------------------------------
   Section bêta-testeurs (home, sous le héro) — demande Alex 06/08.
   Panneau verre fort + voiles dégradés charte (lavande / pêche-rose), mascotte.
   -------------------------------------------------------------------------- */
.beta {
  text-align: center;
  padding-block: 1rem 3rem;
}
@media (min-width: 48em) {
  .beta {
    padding-block: 1rem 4rem;
  }
}
.beta__panel {
  width: 100%;
  padding: 2.5rem 1.25rem 2.25rem;
  border-radius: var(--r-28);
  border: 1px solid var(--glass-border);
  background:
    radial-gradient(110% 130% at 88% -15%, rgba(189, 165, 255, 0.28), transparent 55%),
    radial-gradient(110% 130% at 8% 115%, rgba(249, 194, 234, 0.3), transparent 55%),
    var(--glass-strong);
  box-shadow: var(--glass-inset), var(--shadow-lift);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
@media (min-width: 48em) {
  .beta__panel {
    padding: 3rem 3.5rem 2.75rem;
  }
}
.beta__mascot .mascot {
  width: 4.25rem;
  margin-inline: auto; /* img est display:block (reset global) : centrage explicite */
  margin-bottom: 0.75rem;
}
.beta__intro {
  max-width: 34rem;
  margin-inline: auto;
}
.beta form {
  max-width: 34rem;
  margin: 1.5rem auto 0;
}
.beta__row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 36em) {
  .beta__row {
    flex-direction: row;
  }
  .beta__row .field {
    flex: 1;
  }
  .beta__row .btn {
    min-height: 0;
    white-space: nowrap;
  }
}
/* L'attribut hidden (retour DOI confirmé, site.js) doit gagner sur display:flex */
.beta__row[hidden],
.beta__consent[hidden] {
  display: none;
}
/* Honeypot anti-bot : sorti de l'écran (pas de display:none, trop vite détecté) */
.beta__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.beta__consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-top: 1rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--c-texte-sec);
  text-align: left;
  cursor: pointer;
}
.beta__consent input {
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.15rem;
  accent-color: var(--c-violet);
}
.beta__consent a {
  color: var(--c-violet);
}
.beta__msg {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: var(--r-12);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--c-violet);
  background: rgba(110, 98, 216, 0.1);
}
.beta__msg--error {
  color: var(--c-rouge);
  background: rgba(234, 0, 0, 0.07);
}
.beta__note {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: var(--c-texte-sec);
}

/* Placeholder « contenu en préparation » (pages légales, FAQ) */
.placeholder-note {
  border: 1px dashed var(--c-placeholder);
  border-radius: var(--r-16);
  padding: 1.5rem;
  color: var(--c-texte-sec);
  background: var(--glass-soft);
}

/* --------------------------------------------------------------------------
   Pages légales (CGU, confidentialité, mentions) — lecture longue.
   Contenus legal-writer (legal/site-*.md), intégrés le 06/08/2026.
   -------------------------------------------------------------------------- */
.legal {
  max-width: 46rem;
}
.legal h1 {
  margin-bottom: 0.5rem;
}
.legal__date {
  color: var(--c-texte-sec);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}
.legal h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 2.5rem 0 0.75rem;
}
.legal h3 {
  margin: 1.75rem 0 0.5rem;
}
.legal p,
.legal li {
  color: var(--c-texte-2);
  line-height: 1.65;
}
.legal ul,
.legal ol {
  padding-left: 1.25rem;
}
.legal li {
  margin: 0.4rem 0;
}
.legal hr {
  border: 0;
  border-top: 1px solid rgba(122, 86, 58, 0.16);
  margin: 2.5rem 0;
}
.legal blockquote {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--c-violet);
  border-radius: 0 var(--r-12) var(--r-12) 0;
  background: var(--glass-soft);
}
/* Sommaire ancré (documents longs) */
.legal-toc {
  margin: 0 0 2rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--r-16);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  box-shadow: var(--glass-inset);
}
.legal-toc strong {
  display: block;
  margin-bottom: 0.5rem;
}
.legal-toc ol {
  margin: 0;
  padding-left: 1.25rem;
  columns: 1;
}
@media (min-width: 36em) {
  .legal-toc ol {
    columns: 2;
    column-gap: 2rem;
  }
}
.legal-toc li {
  margin: 0.25rem 0;
  font-size: 0.9rem;
  break-inside: avoid;
}
/* Tableaux (politique de confidentialité) : scroll horizontal interne en mobile */
.table-scroll {
  overflow-x: auto;
  margin: 1rem 0;
  border-radius: var(--r-16);
  border: 1px solid var(--glass-border);
  background: var(--glass-soft);
  box-shadow: var(--glass-inset);
}
.legal table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.legal th,
.legal td {
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(122, 86, 58, 0.12);
  color: var(--c-texte-2);
}
.legal th {
  font-weight: 600;
  color: var(--c-texte);
}
.legal tr:last-child td {
  border-bottom: 0;
}

/* --------------------------------------------------------------------------
   7. Motion sobre (DA-WEB-NOTES §7) — reveals au chargement / au scroll.
   Sans JS (html sans .js) : tout reste visible.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  /* Reveal du héro au chargement */
  .hero__copy > *,
  .hero__media {
    animation: rise 0.9s var(--ease) both;
  }
  .hero__copy > :nth-child(2) { animation-delay: 0.08s; }
  .hero__copy > :nth-child(3) { animation-delay: 0.16s; }
  .hero__copy > :nth-child(4) { animation-delay: 0.24s; }
  .hero__copy > :nth-child(5) { animation-delay: 0.32s; }
  .hero__media { animation-delay: 0.3s; }

  /* Reveal des sections au scroll (IntersectionObserver, site.js) */
  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  }
  .js .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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