/* ==========================================================================
   Ma Bonne Étoile — Design system
   Concept : « ciel de nuit & lune dorée », tiré du logo (croissant doré,
   feuillage sauge, fleurs pêche, encre noire).
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Nuit — la couleur dominante des sections d'accroche */
  --night-900: oklch(19% 0.045 268);
  --night-800: oklch(24% 0.050 268);
  --night-700: oklch(31% 0.052 268);
  --night-600: oklch(42% 0.045 268);

  /* Or — l'accent, repris du croissant de lune */
  /* Assombri pour atteindre 4,5:1 sur le fond crème : c'est la couleur des
     libellés, des liens fléchés et des numéros, donc du texte à lire. */
  --gold-600: oklch(54.5% 0.125 78);
  --gold-500: oklch(78% 0.130  82);
  --gold-400: oklch(86% 0.095  88);
  --gold-200: oklch(93% 0.048  90);

  /* Sauge & pêche — les touches florales du logo, en usage parcimonieux */
  /* Idem sur la pastille sauge des étapes (était à 3,81:1). */
  --sage-600: oklch(47.5% 0.055 152);
  --sage-200: oklch(88% 0.030 152);
  --peach-300: oklch(84% 0.065  48);

  /* Neutres teintés vers l'or (cohésion subconsciente) */
  --cream-50:  oklch(98.5% 0.010 88);
  --cream-100: oklch(96.5% 0.016 88);
  --cream-200: oklch(93%   0.020 88);
  --ink-900:   oklch(22%   0.020 88);
  --ink-700:   oklch(38%   0.016 88);
  --ink-500:   oklch(52%   0.014 88);

  /* Rôles */
  --bg: var(--cream-50);
  --bg-alt: var(--cream-100);
  --fg: var(--ink-900);
  --fg-muted: var(--ink-700);
  --fg-subtle: var(--ink-500);
  --border: oklch(89% 0.018 88);
  --border-strong: oklch(82% 0.026 88);

  /* Typo fluide */
  --step--1: clamp(0.875rem, 0.84rem + 0.18vw, 0.95rem);
  --step-0:  clamp(1rem,     0.96rem + 0.22vw, 1.125rem);
  --step-1:  clamp(1.2rem,   1.12rem + 0.4vw,  1.4rem);
  --step-2:  clamp(1.45rem,  1.3rem  + 0.8vw,  1.95rem);
  --step-3:  clamp(1.85rem,  1.55rem + 1.5vw,  2.8rem);
  --step-4:  clamp(2.3rem,   1.75rem + 2.7vw,  4rem);
  --step-5:  clamp(2.75rem,  1.9rem  + 4.2vw,  5.25rem);

  /* Espacement */
  --space-section: clamp(4.5rem, 8vw, 8.5rem);
  --space-block:   clamp(2rem, 4vw, 3.5rem);
  --gutter:        clamp(1.25rem, 4vw, 2.5rem);
  --measure: 62ch;

  /* Formes & mouvement */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --shadow-sm: 0 1px 2px oklch(22% 0.02 88 / 0.05), 0 2px 8px oklch(22% 0.02 88 / 0.04);
  --shadow-md: 0 2px 4px oklch(22% 0.02 88 / 0.05), 0 8px 24px oklch(22% 0.02 88 / 0.07);
  --shadow-lg: 0 4px 8px oklch(22% 0.02 88 / 0.06), 0 20px 48px oklch(22% 0.02 88 / 0.10);

  --header-h: 72px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "DM Sans", ui-sans-serif, sans-serif;
  font-size: var(--step-0);
  line-height: 1.65;
  font-feature-settings: "liga" 1, "calt" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); font-weight: 600; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p  { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-color: color-mix(in oklch, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
li { margin-bottom: 0.45em; }
strong { font-weight: 600; color: var(--fg); }

:focus-visible {
  outline: 2.5px solid var(--gold-600);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 200;
  background: var(--night-900); color: var(--cream-50);
  padding: 12px 18px; border-radius: var(--radius-sm); font-weight: 600;
  transition: top 160ms var(--ease-out);
}
.skip-link:focus { top: 8px; }

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

/* ---------- 3. Layout ---------- */
.wrap { width: min(100% - (var(--gutter) * 2), 1180px); margin-inline: auto; }
.wrap--narrow { width: min(100% - (var(--gutter) * 2), 780px); margin-inline: auto; }
.section { padding-block: var(--space-section); }
.section--tight { padding-block: clamp(3rem, 5vw, 4.5rem); }
.section--alt { background: var(--bg-alt); }

.section--night {
  background: var(--night-900);
  color: var(--cream-100);
  position: relative;
  overflow: hidden;
}
.section--night h2, .section--night h3 { color: var(--cream-50); }
.section--night p { color: oklch(88% 0.012 88); }

/* Ciel étoilé : trois nappes de points, sans image */
.starfield::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, oklch(96% 0.05 88 / 0.85), transparent 60%),
    radial-gradient(1px 1px   at 28% 68%, oklch(96% 0.05 88 / 0.55), transparent 60%),
    radial-gradient(1.5px 1.5px at 47% 14%, oklch(96% 0.05 88 / 0.7),  transparent 60%),
    radial-gradient(1px 1px   at 63% 52%, oklch(96% 0.05 88 / 0.5),  transparent 60%),
    radial-gradient(2px 2px   at 78% 28%, oklch(96% 0.05 88 / 0.9),  transparent 60%),
    radial-gradient(1px 1px   at 88% 72%, oklch(96% 0.05 88 / 0.5),  transparent 60%),
    radial-gradient(1.5px 1.5px at 8% 84%, oklch(96% 0.05 88 / 0.6),  transparent 60%),
    radial-gradient(1px 1px   at 56% 88%, oklch(96% 0.05 88 / 0.45), transparent 60%),
    radial-gradient(1px 1px   at 36% 40%, oklch(96% 0.05 88 / 0.4),  transparent 60%),
    radial-gradient(1.5px 1.5px at 70% 78%, oklch(96% 0.05 88 / 0.6), transparent 60%);
  pointer-events: none;
}
.starfield > * { position: relative; z-index: 1; }

/* ---------- 4. Éléments de texte ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-size: var(--step--1); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-600); margin: 0 0 1.1rem;
}
.section--night .eyebrow,
.hero .eyebrow,
.page-head .eyebrow,
.cta-band .eyebrow { color: var(--gold-500); }
.section--night .arrow-link,
.cta-band .arrow-link,
.service--feature .arrow-link { color: var(--gold-500); }
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: currentColor; opacity: 0.6;
}
/* Dans le hero, le libellé est court : on l'encadre des deux côtés. */
.hero .eyebrow::after {
  content: ""; width: 26px; height: 1px; background: currentColor; opacity: 0.6;
}

.lead { font-size: var(--step-1); line-height: 1.55; color: var(--fg-muted); max-width: var(--measure); }
.section--night .lead { color: oklch(85% 0.014 88); }
.prose { max-width: var(--measure); }
/* Dans une colonne de texte, un h2 garde la taille d'un sous-titre : la
   hiérarchie est corrigée pour les lecteurs d'écran sans changer le rendu. */
.stack > h2, .prose > h2 { font-size: var(--step-2); line-height: 1.15; margin-top: 2.2em; }
.stack > h2:first-child, .prose > h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 2.2em; }
.prose h3:first-child { margin-top: 0; }

.u-gold { color: var(--gold-600); }
.script {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "SOFT" 60, "WONK" 1;
}

/* ---------- 5. Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 48px; padding: 0.85em 1.6em;
  font-family: inherit; font-size: var(--step-0); font-weight: 600; line-height: 1;
  border: 1.5px solid transparent; border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease,
              border-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--gold-500); color: var(--night-900);
  box-shadow: 0 2px 10px oklch(70% 0.125 78 / 0.35);
}
.btn--primary:hover { background: var(--gold-400); box-shadow: 0 6px 20px oklch(70% 0.125 78 / 0.42); }

.btn--dark { background: var(--night-900); color: var(--cream-50); }
.btn--dark:hover { background: var(--night-800); }

.btn--ghost { border-color: var(--border-strong); color: var(--fg); background: transparent; }
.btn--ghost:hover { border-color: var(--night-900); background: oklch(22% 0.02 88 / 0.04); }

/* Variante claire du bouton fantôme : sur TOUS les fonds sombres du site */
.section--night .btn--ghost,
.hero .btn--ghost,
.page-head .btn--ghost,
.cta-band .btn--ghost,
.footer .btn--ghost {
  border-color: oklch(100% 0 0 / 0.30);
  color: var(--cream-50);
  background: transparent;
}
.section--night .btn--ghost:hover,
.hero .btn--ghost:hover,
.page-head .btn--ghost:hover,
.cta-band .btn--ghost:hover,
.footer .btn--ghost:hover {
  border-color: var(--gold-500);
  background: oklch(100% 0 0 / 0.08);
  color: var(--cream-50);
}

.btn--sm { min-height: 42px; padding: 0.6em 1.2em; font-size: var(--step--1); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }

/* Lien fléché */
.arrow-link {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-weight: 600; color: var(--gold-600); text-decoration: none;
  min-height: 44px;
}
.arrow-link svg { transition: transform 200ms var(--ease-out); }
.arrow-link:hover svg { transform: translateX(4px); }

/* ---------- 6. En-tête ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: oklch(98.5% 0.01 88 / 0.82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 250ms ease, box-shadow 250ms ease;
}
.header[data-scrolled="true"] { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand__mark {
  width: 42px; height: 42px; border-radius: 50%;
  object-fit: cover; box-shadow: 0 2px 8px oklch(70% 0.125 78 / 0.3);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: "Fraunces", serif; font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand__role { font-size: 0.7rem; color: var(--fg-subtle); letter-spacing: 0.04em; }

.nav { display: flex; align-items: center; gap: 0.35rem; }
.nav a {
  padding: 0.55em 0.75em; border-radius: var(--radius-sm);
  font-size: 0.94rem; font-weight: 500; text-decoration: none; white-space: nowrap;
  color: var(--fg-muted); transition: color 180ms ease, background-color 180ms ease;
}
.nav a:hover { color: var(--fg); background: oklch(22% 0.02 88 / 0.045); }
.nav a[aria-current="page"] { color: var(--fg); font-weight: 600; }

.header__cta { display: inline-flex; white-space: nowrap; }

.burger {
  display: none;
  width: 44px; height: 44px; padding: 0;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); cursor: pointer;
}
.burger span {
  display: block; width: 18px; height: 1.5px; background: var(--fg);
  position: relative; transition: background-color 120ms ease;
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--fg);
  transition: transform 220ms var(--ease-out);
}
.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0; z-index: 99;
  background: var(--bg);
  padding: 1.5rem var(--gutter) 2.5rem;
  display: flex; flex-direction: column; gap: 0.25rem;
  overflow-y: auto;
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}
.mobile-nav[data-open="true"] { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-nav a {
  padding: 0.9em 0.25em; font-size: 1.15rem; font-weight: 500;
  text-decoration: none; border-bottom: 1px solid var(--border);
}
.mobile-nav .btn { margin-top: 1.5rem; }

/* En dessous de 1080 px, la barre complète ne tient plus sans que les
   libellés se coupent : on passe au menu hamburger. */
@media (max-width: 1080px) {
  .nav, .header__cta { display: none; }
  .burger { display: inline-flex; }
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(120% 80% at 78% 8%, oklch(31% 0.052 268) 0%, transparent 55%),
    linear-gradient(170deg, var(--night-800) 0%, var(--night-900) 62%, oklch(17% 0.04 268) 100%);
  color: var(--cream-100);
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(4rem, 9vw, 7rem);
  overflow: hidden;
}
.hero__grid {
  display: grid; gap: clamp(2.5rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.08fr 0.92fr; }
}
.hero h1 { color: var(--cream-50); margin-bottom: 0.45em; }
.hero__lead { font-size: var(--step-1); color: oklch(87% 0.014 88); max-width: 46ch; margin-bottom: 2rem; }
.hero .btn-row { margin-bottom: 2.25rem; }

.hero__rating {
  display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap;
  font-size: var(--step--1); color: oklch(84% 0.014 88);
}
.stars { display: inline-flex; gap: 2px; color: var(--gold-500); }
.stars svg { width: 17px; height: 17px; }

/* Visuel : la lune du logo dans un halo */
.hero__visual { position: relative; display: grid; place-items: center; }
.hero__moon {
  width: min(78%, 360px); aspect-ratio: 1; border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px oklch(100% 0 0 / 0.12), 0 24px 70px oklch(70% 0.125 78 / 0.28);
}
.hero__halo {
  position: absolute; width: min(100%, 460px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, oklch(78% 0.13 82 / 0.22) 0%, transparent 62%);
  animation: breathe 7s var(--ease-in-out) infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(1);    opacity: 0.85; }
  50%      { transform: scale(1.07); opacity: 1; }
}

/* ---------- 8. Bandeau de confiance ---------- */
.trust {
  background: var(--night-900);
  border-top: 1px solid oklch(100% 0 0 / 0.08);
  color: var(--cream-100);
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
}
.trust__grid {
  display: grid; gap: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.trust__item { display: flex; flex-direction: column; gap: 0.2rem; }
.trust__value {
  font-family: "Fraunces", serif; font-size: var(--step-2); font-weight: 600;
  color: var(--gold-500); line-height: 1; font-variant-numeric: tabular-nums;
}
.trust__label { font-size: var(--step--1); color: oklch(80% 0.014 88); line-height: 1.4; }

/* ---------- 9. Services (grille asymétrique) ---------- */
.services { display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: 1fr; }
@media (min-width: 860px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .service--feature { grid-column: 1 / -1; }
}

.service {
  position: relative;
  display: flex; flex-direction: column;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  background: var(--cream-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out),
              border-color 260ms ease;
}
.service:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-400);
}
.service__num {
  font-family: "Fraunces", serif; font-size: 0.9rem; font-weight: 600;
  color: var(--gold-600); letter-spacing: 0.1em; margin-bottom: 0.9rem;
}
.service h3 { margin-bottom: 0.5rem; }
.service p { color: var(--fg-muted); font-size: var(--step--1); line-height: 1.6; }
.service__more { margin-top: auto; padding-top: 1.2rem; }

/* La carte vedette : deux colonnes, fond nuit */
.service--feature {
  background: linear-gradient(135deg, var(--night-800), var(--night-900));
  border-color: transparent; color: var(--cream-100);
  overflow: hidden;
}
.service--feature h3 { color: var(--cream-50); font-size: var(--step-3); }
.service--feature p { color: oklch(85% 0.014 88); font-size: var(--step-0); }
.service--feature .service__num { color: var(--gold-500); }
.service--feature:hover { border-color: transparent; }
@media (min-width: 860px) {
  .service--feature { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(1.5rem, 3vw, 3rem); align-items: center; }
}
.service__badge {
  display: inline-flex; align-items: center; gap: 0.45em;
  align-self: flex-start;
  padding: 0.4em 0.9em; margin-bottom: 1rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--night-900); background: var(--gold-500); border-radius: 999px;
}
.service__list { margin: 1.4rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.7rem; }
.service__list li {
  display: flex; gap: 0.7rem; align-items: flex-start;
  font-size: var(--step--1); color: oklch(86% 0.014 88); margin: 0;
}
.service__list svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--gold-500); }

/* ---------- 10. Étapes (timeline) ---------- */
.steps { display: grid; gap: clamp(1.5rem, 3vw, 2rem); grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step { position: relative; padding-top: 2.6rem; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-family: "Fraunces", serif; font-size: 1.6rem; font-weight: 600;
  color: var(--gold-600); line-height: 1;
}
.step::after {
  content: ""; position: absolute; top: 10px; left: 3.2rem; right: 0; height: 1px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
}
.step h3 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.step p { font-size: var(--step--1); color: var(--fg-muted); }
/* Même spécificité que « .section--night p » mais déclarée plus bas, la règle
   ci-dessus l'emportait et posait du gris foncé sur le bleu nuit (1,86:1).
   On rétablit explicitement la couleur claire dans ces sections. */
.section--night .step p,
.section--night .step__meta + p,
.section--night .tool-card p { color: oklch(86% 0.014 88); }
.step__meta {
  display: inline-block; margin-top: 0.8rem; padding: 0.25em 0.7em;
  font-size: 0.78rem; font-weight: 600; color: var(--sage-600);
  background: var(--sage-200); border-radius: 999px;
}

/* ---------- 11. Témoignages ---------- */
.testimonials { display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: 1fr; }
@media (min-width: 760px)  { .testimonials { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .testimonials { grid-template-columns: repeat(3, 1fr); } }

.quote {
  display: flex; flex-direction: column;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  background: var(--cream-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.quote .stars { margin-bottom: 1rem; }
.quote blockquote { margin: 0 0 1.25rem; font-size: var(--step--1); line-height: 1.7; color: var(--fg-muted); }
.quote blockquote p::before { content: "« "; }
.quote blockquote p::after  { content: " »"; }
.quote figcaption { margin-top: auto; font-size: 0.85rem; }
.quote__name { font-weight: 600; color: var(--fg); }
.quote__role { color: var(--fg-subtle); }

.quote--lead {
  background: linear-gradient(135deg, var(--gold-200), var(--cream-100));
  border-color: var(--gold-400);
}
@media (min-width: 1040px) { .quote--lead { grid-column: span 1; } }

/* ---------- 12. Public concerné ---------- */
.audience { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 680px) { .audience { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .audience { grid-template-columns: repeat(4, 1fr); } }
.audience__item { background: var(--cream-50); padding: clamp(1.4rem, 2.5vw, 2rem); }
.audience__item h3 { font-size: var(--step-1); margin-bottom: 0.35rem; }
.audience__item p { font-size: var(--step--1); color: var(--fg-muted); }
.audience__tag { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-600); display: block; margin-bottom: 0.7rem; }

/* ---------- 13. FAQ ---------- */
.faq { border-top: 1px solid var(--border); }
.faq details {
  border-bottom: 1px solid var(--border);
}
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.35rem 0; cursor: pointer; list-style: none;
  font-family: "Fraunces", serif; font-size: var(--step-1); font-weight: 600;
  color: var(--fg); transition: color 180ms ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold-600); }
.faq summary::after {
  content: ""; flex: none; width: 13px; height: 13px;
  border-right: 2px solid var(--gold-600); border-bottom: 2px solid var(--gold-600);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 250ms var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq__body { padding-bottom: 1.5rem; max-width: var(--measure); color: var(--fg-muted); font-size: var(--step--1); }

/* ---------- 14. Bandeau CTA ---------- */
.cta-band {
  position: relative;
  background: linear-gradient(135deg, var(--night-800), var(--night-900) 65%);
  color: var(--cream-100);
  border-radius: var(--radius-xl);
  padding: clamp(2.25rem, 5vw, 4rem);
  overflow: hidden;
}
.cta-band h2 { color: var(--cream-50); max-width: 18ch; }
.cta-band p { color: oklch(86% 0.014 88); max-width: 48ch; }
.cta-band__glow {
  position: absolute; right: -10%; top: -40%;
  width: 55%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, oklch(78% 0.13 82 / 0.28), transparent 65%);
  pointer-events: none;
}

/* ---------- 15. Contact ---------- */
.contact-grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.95fr 1.05fr; } }

.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; }
.info-list li { display: flex; gap: 1rem; margin: 0; }
.info-list svg { flex: none; width: 22px; height: 22px; color: var(--gold-600); margin-top: 3px; }
.info-list dt, .info-list .info__label {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fg-subtle); margin-bottom: 0.15rem;
}
.info-list a { font-weight: 600; text-decoration: none; }
.info-list a:hover { color: var(--gold-600); }

.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; gap: 1.1rem; }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--fg-muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.8em 1em;
  font-family: inherit; font-size: var(--step-0); color: var(--fg);
  background: var(--cream-50);
  border: 1.5px solid var(--border-strong); border-radius: var(--radius);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-600);
  box-shadow: 0 0 0 3px oklch(78% 0.13 82 / 0.22);
}
.field__hint { font-size: 0.8rem; color: var(--fg-subtle); }
.field__opt { font-weight: 400; color: var(--fg-subtle); }
.form__consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.85rem; color: var(--fg-muted); }
.form__consent input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--gold-600); }

.map-embed {
  width: 100%; aspect-ratio: 16 / 10; border: 0;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}

/* Bloc affiché à la place de la carte tant qu'elle n'a pas été demandée */
.map-consent {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1rem;
  justify-content: center;
  width: 100%; aspect-ratio: 16 / 10;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--cream-100);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
}
.map-consent__text {
  font-size: var(--step--1); color: var(--fg-muted); max-width: 46ch; margin: 0;
}

/* ---------- 16. Pied de page ---------- */
.footer {
  background: var(--night-900); color: oklch(82% 0.014 88);
  padding-block: clamp(3rem, 5vw, 4.5rem) 2rem;
  position: relative; overflow: hidden;
}
.footer__grid {
  display: grid; gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer h2 {
  font-family: "DM Sans", sans-serif; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-500);
  margin-bottom: 1.1rem;
}
.footer a { text-decoration: none; }
.footer a:hover { color: var(--gold-500); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer li { margin: 0; font-size: 0.92rem; }
.footer .brand__name { color: var(--cream-50); }
.footer .brand__role { color: oklch(72% 0.014 88); }
.footer__tag { font-size: 0.92rem; max-width: 34ch; margin-top: 1rem; color: oklch(78% 0.014 88); }

.socials { display: flex; gap: 0.6rem; margin-top: 1.4rem; }
.socials a {
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid oklch(100% 0 0 / 0.18); border-radius: 50%;
  transition: border-color 200ms ease, background-color 200ms ease, transform 200ms var(--ease-out);
}
.socials a:hover { border-color: var(--gold-500); background: oklch(100% 0 0 / 0.07); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }

.footer__legal { display: inline-flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; }
.footer__bottom {
  margin-top: clamp(2.5rem, 4vw, 3.5rem); padding-top: 1.5rem;
  border-top: 1px solid oklch(100% 0 0 / 0.12);
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; justify-content: space-between;
  font-size: 0.85rem; color: oklch(70% 0.014 88);
}

/* ---------- 17. En-tête de page intérieure ---------- */
.page-head {
  background: linear-gradient(165deg, var(--night-800), var(--night-900));
  color: var(--cream-100);
  padding-block: clamp(3rem, 6vw, 5rem);
  position: relative; overflow: hidden;
}
.page-head h1 { font-size: var(--step-4); color: var(--cream-50); max-width: 20ch; }
.page-head p { color: oklch(86% 0.014 88); max-width: var(--measure); font-size: var(--step-1); }

.breadcrumb { font-size: 0.85rem; color: oklch(76% 0.014 88); margin-bottom: 1.5rem; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-500); }
.breadcrumb span { opacity: 0.5; margin-inline: 0.45em; }

/* ---------- 18. Blocs de contenu ---------- */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .split--sticky > :first-child { position: sticky; top: calc(var(--header-h) + 2rem); } }

.callout {
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--gold-200);
  border-left: 3px solid var(--gold-600);
  border-radius: var(--radius);
}
.callout p { font-size: var(--step--1); color: var(--ink-900); }
.callout strong { display: block; margin-bottom: 0.35rem; font-family: "Fraunces", serif; font-size: var(--step-1); }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.check-list li { display: flex; gap: 0.8rem; align-items: flex-start; margin: 0; }
.check-list svg { flex: none; width: 20px; height: 20px; margin-top: 4px; color: var(--sage-600); }

.pill-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.2rem; }
.pill {
  padding: 0.45em 1em; font-size: 0.85rem; font-weight: 500;
  background: var(--cream-100); border: 1px solid var(--border);
  border-radius: 999px; color: var(--fg-muted);
}

.tool-card {
  padding: clamp(1.3rem, 2.5vw, 1.8rem);
  background: var(--cream-50); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.tool-card h3 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.tool-card p { font-size: var(--step--1); color: var(--fg-muted); }
.tool-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 680px) { .tool-grid { grid-template-columns: repeat(2, 1fr); } }

/* Bloc affiliation — le logo d'un organisme à côté du texte qui l'explique */
.affiliation {
  display: grid; gap: clamp(1.1rem, 3vw, 1.8rem); align-items: start;
  margin-top: 2.2rem;
  padding: clamp(1.4rem, 3vw, 1.9rem);
  background: var(--cream-100);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.affiliation__mark {
  width: 118px; height: auto; justify-self: center; align-self: center;
}
/* Dès que les deux colonnes cohabitent, le logo s'aligne sur le titre
   plutôt que de flotter au milieu d'un bloc de texte plus haut que lui. */
@media (min-width: 560px) {
  .affiliation { grid-template-columns: 118px 1fr; }
  .affiliation__mark { align-self: start; margin-top: 0.2rem; }
}
.affiliation h3 {
  font-size: var(--step-1); margin-bottom: 0.45rem;
}
.affiliation p {
  font-size: var(--step--1); color: var(--fg-muted); margin-bottom: 0.9em;
}
.affiliation p:last-of-type { margin-bottom: 0; }
.affiliation .arrow-link { margin-top: 0.6rem; font-size: var(--step--1); }

/* Frise Parcoursup */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--gold-500), var(--sage-200));
}
.timeline li { position: relative; padding-left: 2.4rem; margin-bottom: 1.8rem; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--cream-50); border: 3px solid var(--gold-600);
}
.timeline__when {
  display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gold-600); margin-bottom: 0.2rem;
}
.timeline__what { font-size: var(--step--1); color: var(--fg-muted); }
.timeline strong { font-family: "Fraunces", serif; font-size: var(--step-1); font-weight: 600; display: block; margin-bottom: 0.2rem; }

/* ---------- 19. Révélation au défilement ---------- */
/* Sans JavaScript, rien n'est masqué : la classe .js n'est posée que par le script. */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal[data-visible="true"] {
  opacity: 1; transform: translateY(0);
  transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out);
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- 20. Utilitaires ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1.1rem; }
.stack-lg > * + * { margin-top: var(--space-block); }
.text-center { text-align: center; }
@media (min-width: 900px) { .text-center-desktop { text-align: center; margin-inline: auto; } }
