/* ============================================================
   Auto-école Gambetta — V2
   Direction : chaleureux & premium · orange de marque
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Marque : l'orange de l'enseigne */
  --orange:        oklch(0.69 0.175 47);   /* accent principal  ~#ed6a1e */
  --orange-deep:   oklch(0.61 0.165 45);   /* boutons (contraste texte blanc) ~#cf5713 */
  --orange-soft:   oklch(0.95 0.035 60);   /* fond teinté très léger */
  --orange-ring:   oklch(0.69 0.175 47 / 0.35);

  /* Encres / neutres chauds (chroma très bas, hue orange) */
  --ink:           oklch(0.24 0.018 50);   /* texte titres ~#2a221c */
  --ink-body:      oklch(0.37 0.014 55);   /* texte courant ~#4f463d */
  --ink-muted:     oklch(0.52 0.012 58);   /* légendes */
  --espresso:      oklch(0.23 0.022 48);   /* sections sombres */
  --espresso-2:    oklch(0.27 0.024 48);

  /* Surfaces claires (off-white, pas crème) */
  --bg:            oklch(0.992 0.003 70);
  --surface:       oklch(1 0 0);
  --surface-2:     oklch(0.975 0.006 65);
  --line:          oklch(0.90 0.008 60);
  --line-soft:     oklch(0.93 0.006 60);

  --on-dark:       oklch(0.95 0.008 70);
  --on-dark-muted: oklch(0.78 0.012 65);

  /* Typo */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Rayons / ombres */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px oklch(0.3 0.02 50 / 0.06), 0 2px 6px oklch(0.3 0.02 50 / 0.05);
  --shadow:    0 4px 14px oklch(0.3 0.02 50 / 0.08), 0 12px 34px oklch(0.3 0.02 50 / 0.07);
  --shadow-lg: 0 10px 30px oklch(0.3 0.02 50 / 0.12), 0 30px 60px oklch(0.25 0.02 50 / 0.14);

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);

  /* z-scale sémantique */
  --z-header: 100;
  --z-burger-panel: 90;
  --z-top: 80;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset léger ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  color: var(--ink-body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange-ring); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.08;
  font-weight: 560;
  letter-spacing: -0.02em;
  text-wrap: balance;
  font-optical-sizing: auto;
}
/* Petits titres fonctionnels (étiquettes de cartes) en sans : évite le "f" débordant
   de Fraunces sur des mots courts comme "financement", et clarifie la hiérarchie. */
.panel h3, .step h3, .comp h3, .scard h3, .hours h3 {
  font-family: var(--sans);
  font-weight: 650;
  letter-spacing: -0.01em;
}
p { text-wrap: pretty; }

/* ---------- Utilitaires ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.section { padding: clamp(3.75rem, 9vw, 7rem) 0; }
.center { text-align: center; }
.eyebrow {
  font-family: var(--sans);
  font-weight: 650;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--orange-deep);
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--ink-body);
  max-width: 60ch;
}
.h-section { font-size: clamp(1.9rem, 4.2vw, 3rem); }
.muted { color: var(--ink-muted); }

/* ---------- Boutons ---------- */
.btn {
  --pad-y: 0.85rem; --pad-x: 1.5rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--sans); font-weight: 620; font-size: 1rem;
  padding: var(--pad-y) var(--pad-x);
  border-radius: var(--r-pill); border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out),
              background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--orange-deep); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px var(--orange-ring); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange-deep); transform: translateY(-2px); }
.btn-on-dark { background: #fff; color: var(--ink); }
.btn-on-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline-dark { background: transparent; color: var(--on-dark); border-color: oklch(1 0 0 / 0.3); }
.btn-outline-dark:hover { border-color: var(--on-dark); transform: translateY(-2px); }
.btn-sm { --pad-y: 0.6rem; --pad-x: 1.1rem; font-size: 0.92rem; }

/* ============================================================
   Header
   ============================================================ */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.85rem var(--gutter);
  transition: background-color 0.35s var(--ease-out), box-shadow 0.35s, padding 0.35s;
}
.header.scrolled {
  background: oklch(0.992 0.003 70 / 0.85);
  backdrop-filter: saturate(1.4) blur(12px);
  box-shadow: 0 1px 0 var(--line-soft);
  padding-block: 0.6rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; font-family: var(--serif); font-weight: 600; color: var(--ink); }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand b { font-size: 1.15rem; letter-spacing: -0.01em; }
.brand span { font-size: 0.72rem; color: var(--ink-muted); font-family: var(--sans); letter-spacing: 0.04em; text-transform: uppercase; display: block; line-height: 1; margin-top: 2px; }
/* Logo lisible quand le header est transparent au-dessus du hero sombre */
.header:not(.scrolled):not(.solid) .brand b { color: #fff; }
.header:not(.scrolled):not(.solid) .brand span { color: oklch(1 0 0 / 0.75); }

.nav { display: flex; align-items: center; gap: 0.4rem; }
.nav a:not(.btn) {
  text-decoration: none; font-weight: 520; font-size: 0.97rem;
  color: var(--ink-body); padding: 0.5rem 0.7rem; border-radius: var(--r-sm);
  transition: color 0.2s, background-color 0.2s;
}
.nav a:not(.btn):hover { color: var(--orange-deep); background: var(--orange-soft); }
.header:not(.scrolled):not(.solid) .nav a:not(.btn) { color: oklch(1 0 0 / 0.9); }
.header:not(.scrolled):not(.solid) .nav a:not(.btn):hover { background: oklch(1 0 0 / 0.15); color: #fff; }

.burger {
  display: none; background: none; border: 0; cursor: pointer; position: relative; z-index: 95;
  width: 44px; height: 44px; border-radius: var(--r-sm);
  flex-direction: column; gap: 5px; align-items: center; justify-content: center;
}
.burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--ease-out), opacity 0.2s; }
.header:not(.scrolled):not(.solid) .burger span { background: #fff; }

@media (max-width: 880px) {
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px);
    flex-direction: column; align-items: stretch; justify-content: center; gap: 0.3rem;
    background: var(--surface); padding: 2rem 1.5rem; z-index: var(--z-burger-panel);
    transform: translateX(105%); transition: transform 0.4s var(--ease-out);
    box-shadow: var(--shadow-lg);
  }
  .nav a:not(.btn) { color: var(--ink) !important; font-size: 1.1rem; padding: 0.8rem 0.7rem; }
  .nav .btn { margin-top: 0.8rem; }
  body.nav-open .nav { transform: translateX(0); }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: oklch(0.2 0.02 50 / 0.45); z-index: var(--z-top); }
  .burger { display: flex; }
  body.nav-open .burger span { background: var(--ink); }
  body.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .burger span:nth-child(2) { opacity: 0; }
  body.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, oklch(0.2 0.02 48 / 0.62) 0%, oklch(0.18 0.02 48 / 0.4) 36%, oklch(0.16 0.03 45 / 0.68) 66%, oklch(0.13 0.03 45 / 0.95) 100%);
}
.hero__inner { padding-bottom: clamp(3rem, 8vh, 6rem); padding-top: 7rem; }
.hero h1 {
  color: #fff; font-weight: 540;
  font-size: clamp(2.6rem, 7vw, 5.2rem); line-height: 1.0;
  letter-spacing: -0.03em; max-width: 16ch;
}
.hero h1 em { font-style: italic; color: var(--orange); }
.hero__sub {
  color: oklch(1 0 0 / 0.9); font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  max-width: 46ch; margin-top: 1.4rem; line-height: 1.55;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.2rem; }
.hero__trust {
  display: flex; flex-wrap: wrap; gap: 1.4rem 2.2rem; align-items: center;
  margin-top: 2.6rem; padding-top: 1.8rem; border-top: 1px solid oklch(1 0 0 / 0.18);
  color: oklch(1 0 0 / 0.92);
}
.hero__trust b { color: #fff; }
.trust-item { display: flex; align-items: center; gap: 0.6rem; font-size: 0.95rem; }
.trust-item .stars { color: var(--orange); letter-spacing: 1px; }
.scroll-hint {
  position: absolute; bottom: 1.3rem; left: 50%; translate: -50% 0; z-index: 1;
  color: oklch(1 0 0 / 0.7); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
}
.scroll-hint::after { content: ""; width: 1px; height: 34px; background: linear-gradient(oklch(1 0 0 / 0.6), transparent); animation: scrolldot 2.2s var(--ease-out) infinite; }
@keyframes scrolldot { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ============================================================
   Bandeau confiance
   ============================================================ */
.marquee-band { background: var(--surface); border-bottom: 1px solid var(--line-soft); }
.band-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line-soft);
}
.band-cell { background: var(--surface); padding: 1.8rem var(--gutter); text-align: center; }
.band-cell .n { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--orange-deep); font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.band-cell .l { font-size: 0.9rem; color: var(--ink-muted); margin-top: 0.5rem; }
@media (max-width: 720px) { .band-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   Approche (éditorial)
   ============================================================ */
.approche { background: var(--bg); }
.approche__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.approche__copy p + p { margin-top: 1.1rem; }
.approche__copy .h-section { margin: 0.7rem 0 1.3rem; }
.quote {
  position: relative; background: var(--espresso); color: var(--on-dark);
  border-radius: var(--r-lg); padding: clamp(2rem, 4vw, 3rem); box-shadow: var(--shadow-lg);
}
.quote::before {
  content: "\201C"; font-family: var(--serif); position: absolute; top: -0.35em; left: 0.3em;
  font-size: 7rem; color: var(--orange); opacity: 0.85; line-height: 1;
}
.quote blockquote { font-family: var(--serif); font-size: clamp(1.25rem, 2.4vw, 1.7rem); line-height: 1.35; font-weight: 380; font-style: italic; position: relative; }
.quote figcaption { margin-top: 1.4rem; font-family: var(--sans); font-size: 0.92rem; color: var(--on-dark-muted); font-style: normal; }
@media (max-width: 820px) { .approche__grid { grid-template-columns: 1fr; } }

/* ============================================================
   Formations
   ============================================================ */
.sec-head { max-width: 60ch; }
.sec-head.center { margin-inline: auto; }
.sec-head .h-section { margin: 0.6rem 0 0.9rem; }

.formations-grid {
  margin-top: 2.6rem; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.1rem;
}
.fcard {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.6rem 1.5rem 1.4rem; text-decoration: none; overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s;
}
.fcard::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--orange-deep));
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease-out);
}
.fcard:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.fcard:hover::before { transform: scaleX(1); }
.fcard__tag { align-self: flex-start; font-size: 0.72rem; font-weight: 650; letter-spacing: 0.03em; text-transform: uppercase; color: var(--orange-deep); background: var(--orange-soft); padding: 0.3rem 0.65rem; border-radius: var(--r-pill); }
.fcard h3 { font-size: 1.32rem; margin: 1rem 0 0.5rem; }
.fcard p { font-size: 0.96rem; color: var(--ink-body); flex: 1; }
.fcard__more { margin-top: 1.1rem; font-weight: 600; font-size: 0.92rem; color: var(--ink); display: inline-flex; align-items: center; gap: 0.45rem; transition: gap 0.25s var(--ease-out), color 0.2s; }
.fcard:hover .fcard__more { color: var(--orange-deep); gap: 0.75rem; }

/* ============================================================
   Pourquoi nous — liste éditoriale (pas un grid de cartes identiques)
   ============================================================ */
.pourquoi { background: var(--surface-2); }
.pourquoi__grid { margin-top: 2.6rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.4rem 3rem; }
.reason { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; padding: 1.5rem 0; border-top: 1px solid var(--line); align-items: start; }
.reason__ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--orange-soft); font-size: 1.4rem; }
.reason h3 { font-size: 1.18rem; margin-bottom: 0.3rem; }
.reason p { font-size: 0.96rem; color: var(--ink-body); }
@media (max-width: 760px) { .pourquoi__grid { grid-template-columns: 1fr; gap: 0; } }

/* ============================================================
   Financement (section orange drenched)
   ============================================================ */
.finance { background: var(--orange); color: #fff; position: relative; overflow: hidden; }
.finance::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 100% 0%, oklch(1 0 0 / 0.14), transparent 55%); pointer-events: none; }
.finance__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; position: relative; }
.finance h2 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.1rem); }
.finance .big { font-family: var(--serif); font-size: clamp(3.4rem, 9vw, 6rem); line-height: 0.95; font-weight: 600; letter-spacing: -0.03em; }
.finance .big small { font-size: 0.32em; font-family: var(--sans); font-weight: 600; letter-spacing: 0; opacity: 0.9; }
.finance p { color: oklch(1 0 0 / 0.92); max-width: 52ch; }
.finance__points { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 0.8rem; }
.finance__points li { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start; color: #fff; }
.finance__points li::before { content: "✓"; font-weight: 800; color: #fff; background: oklch(1 0 0 / 0.2); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 0.85rem; }
.finance__card { background: oklch(0.27 0.024 48); color: var(--on-dark); border-radius: var(--r-lg); padding: clamp(1.8rem, 3.5vw, 2.6rem); box-shadow: var(--shadow-lg); }
.finance__card .big { color: #fff; }
.finance__card p { color: var(--on-dark-muted); margin-top: 0.6rem; }
.finance__card .btn { margin-top: 1.6rem; width: 100%; }
@media (max-width: 820px) { .finance__grid { grid-template-columns: 1fr; } }

/* ============================================================
   Avis
   ============================================================ */
.avis__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem; }
.note-badge { display: flex; align-items: center; gap: 0.9rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 0.6rem 1.2rem 0.6rem 0.7rem; box-shadow: var(--shadow-sm); }
.note-badge .score { font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--orange-deep); line-height: 1; }
.note-badge .stars { color: var(--orange); font-size: 0.95rem; letter-spacing: 1px; }
.note-badge small { color: var(--ink-muted); font-size: 0.82rem; }

.avis-grid { margin-top: 2.6rem; columns: 3 280px; column-gap: 1.1rem; }
.avis-card { break-inside: avoid; margin-bottom: 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.avis-card .stars { color: var(--orange); letter-spacing: 1px; font-size: 0.95rem; }
.avis-card blockquote { font-size: 0.98rem; color: var(--ink-body); margin: 0.7rem 0 1.1rem; line-height: 1.6; }
.avis-card cite { font-style: normal; font-weight: 600; color: var(--ink); font-size: 0.92rem; }
.avis-card cite span { display: block; font-weight: 400; color: var(--ink-muted); font-size: 0.85rem; margin-top: 1px; }

/* ============================================================
   Contact
   ============================================================ */
.contact { background: var(--espresso); color: var(--on-dark); }
.contact h2, .contact h3 { color: #fff; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.contact .lead { color: var(--on-dark-muted); }
.coords { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.3rem; }
.coords li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.coords .ico { width: 44px; height: 44px; border-radius: 12px; background: oklch(1 0 0 / 0.08); display: grid; place-items: center; font-size: 1.2rem; }
.coords .k { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--on-dark-muted); margin-bottom: 0.25rem; }
.coords .v { display: block; font-size: 1.12rem; color: #fff; font-weight: 560; line-height: 1.35; }
.coords a { color: #fff; text-decoration: none; border-bottom: 1px solid var(--orange); padding-bottom: 1px; }
.coords a:hover { color: var(--orange); }

.hours { background: oklch(1 0 0 / 0.05); border: 1px solid oklch(1 0 0 / 0.1); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.2rem); }
.hours h3 { font-size: 1.3rem; margin-bottom: 1.1rem; }
.hours ul { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.62rem 0; border-bottom: 1px solid oklch(1 0 0 / 0.08); font-size: 0.98rem; }
.hours li:last-child { border-bottom: 0; }
.hours li .day { color: var(--on-dark-muted); }
.hours li .time { color: #fff; font-weight: 520; font-variant-numeric: tabular-nums; }
.hours li.closed .time { color: var(--on-dark-muted); font-weight: 400; }
.hours li.today { color: #fff; }
.hours li.today .day::after { content: " · aujourd'hui"; color: var(--orange); font-size: 0.8rem; }
.map-frame { margin-top: 1.4rem; border-radius: var(--r); overflow: hidden; border: 1px solid oklch(1 0 0 / 0.1); }
.map-frame iframe { display: block; width: 100%; height: 260px; border: 0; filter: grayscale(0.2) contrast(1.05); }
@media (max-width: 820px) { .contact__grid { grid-template-columns: 1fr; } }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: oklch(0.18 0.02 48); color: var(--on-dark-muted); padding: clamp(2.5rem, 5vw, 4rem) 0 2rem; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid oklch(1 0 0 / 0.1); }
.footer__brand b { font-family: var(--serif); font-size: 1.3rem; color: #fff; display: block; }
.footer__brand p { margin-top: 0.7rem; font-size: 0.95rem; max-width: 34ch; }
.footer h4 { color: #fff; font-family: var(--sans); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1rem; font-weight: 650; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.footer a { color: var(--on-dark-muted); text-decoration: none; font-size: 0.95rem; transition: color 0.2s; }
.footer a:hover { color: var(--orange); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 0.8rem 1.5rem; justify-content: space-between; align-items: center; padding-top: 1.8rem; font-size: 0.85rem; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
@media (max-width: 760px) { .footer__top { grid-template-columns: 1fr; gap: 1.8rem; } }

/* ============================================================
   Pages intérieures
   ============================================================ */
/* Header toujours solide (pas de hero plein écran) */
body.solid-header { padding-top: 0; }
.header.solid {
  background: oklch(0.992 0.003 70 / 0.9);
  backdrop-filter: saturate(1.4) blur(12px);
  box-shadow: 0 1px 0 var(--line-soft);
}

/* Sous-hero compact */
.subhero { position: relative; padding: calc(4.5rem + 3.5rem) 0 3rem; background: var(--espresso); color: var(--on-dark); overflow: hidden; isolation: isolate; }
.subhero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 130% at 85% -10%, oklch(0.69 0.175 47 / 0.35), transparent 55%); }
.subhero.with-img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0.28; }
.subhero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.4rem); max-width: 18ch; }
.subhero p { color: var(--on-dark-muted); max-width: 56ch; margin-top: 0.9rem; font-size: 1.08rem; }
.crumb { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; font-size: 0.88rem; color: var(--on-dark-muted); margin-bottom: 1.1rem; }
.crumb a { color: var(--on-dark-muted); text-decoration: none; }
.crumb a:hover { color: var(--orange); }
.crumb span { opacity: 0.5; }

/* Prose générique (pages contenu / légales) */
.prose { max-width: 72ch; }
.prose.wide { max-width: 80ch; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 2.4rem 0 0.9rem; }
.prose h3 { font-size: 1.25rem; margin: 1.8rem 0 0.6rem; color: var(--ink); }
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { margin: 0 0 1.2rem; padding-left: 1.3rem; }
.prose li { margin-bottom: 0.5rem; }
.prose a { color: var(--orange-deep); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--ink); }
.prose .first { margin-top: 0; }

/* Carte d'info / panneau */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.4rem); box-shadow: var(--shadow-sm); }
.panel + .panel { margin-top: 1.2rem; }
.panel h3 { font-size: 1.3rem; margin-bottom: 0.7rem; display: flex; align-items: center; gap: 0.6rem; }

/* Définitions clés (fiche formation) */
.specs { display: grid; gap: 0; margin-top: 1rem; }
.specs > div { display: grid; grid-template-columns: minmax(160px, 220px) 1fr; gap: 1.5rem; padding: 1.3rem 0; border-top: 1px solid var(--line); align-items: start; }
.specs dt { font-family: var(--serif); font-size: 1.1rem; color: var(--ink); font-weight: 560; }
.specs dd { margin: 0; color: var(--ink-body); }
.specs dd ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.specs dd li { margin-bottom: 0.35rem; }
@media (max-width: 680px) { .specs > div { grid-template-columns: 1fr; gap: 0.4rem; } }

/* Étapes numérotées (déroulé) */
.steps { display: grid; gap: 1.1rem; margin-top: 1.5rem; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.6rem 1.6rem 1.6rem 4.6rem; position: relative; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 1.3rem; top: 1.5rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--orange-soft); color: var(--orange-deep); font-family: var(--serif); font-weight: 600; display: grid; place-items: center; }
.step h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.step ul { margin: 0.6rem 0 0; padding-left: 1.2rem; }
.step li { margin-bottom: 0.35rem; color: var(--ink-body); }

/* Les 4 compétences (référentiel REMC) */
.comp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; margin-top: 1.6rem; }
.comp { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem 1.5rem 1.5rem 4.6rem; }
.comp::before { content: counter(comp); counter-increment: comp; position: absolute; left: 1.3rem; top: 1.4rem; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--orange); color: #fff; font-family: var(--serif); font-weight: 600; font-size: 1.05rem; display: grid; place-items: center; }
.comp h3 { font-size: 1.12rem; margin-bottom: 0.3rem; }
.comp p { font-size: 0.95rem; color: var(--ink-body); margin: 0; }
.comp-grid-wrap { counter-reset: comp; }
@media (max-width: 680px) { .comp-grid { grid-template-columns: 1fr; } }

/* Bandeau CTA bas de page intérieure */
.cta-band { background: var(--surface-2); text-align: center; }
.cta-band .h-section { margin-bottom: 0.8rem; }
.cta-band .actions { display: flex; gap: 0.85rem; justify-content: center; flex-wrap: wrap; margin-top: 1.6rem; }

/* Boutons documents */
.doc-links { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.2rem; }

/* Grille de cartes simples (aides, etc.) */
.cards-simple { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.1rem; margin-top: 1.5rem; }
.scard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; }
.scard .ico { font-size: 1.6rem; }
.scard h3 { font-size: 1.15rem; margin: 0.7rem 0 0.4rem; }
.scard p { font-size: 0.96rem; color: var(--ink-body); }

/* ============================================================
   Bouton retour haut
   ============================================================ */
.top-btn {
  position: fixed; bottom: 1.3rem; right: 1.3rem; z-index: var(--z-top);
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--orange-deep); color: #fff; font-size: 1.2rem; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
}
.top-btn.show { opacity: 1; pointer-events: auto; transform: none; }
.top-btn:hover { transform: translateY(-3px); }

/* ============================================================
   Reveal au scroll (améliore un défaut déjà visible)
   ============================================================ */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .stagger > * { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
  .js .stagger.in > * { opacity: 1; transform: none; }
  .js .stagger.in > *:nth-child(2) { transition-delay: 0.07s; }
  .js .stagger.in > *:nth-child(3) { transition-delay: 0.14s; }
  .js .stagger.in > *:nth-child(4) { transition-delay: 0.21s; }
  .js .stagger.in > *:nth-child(5) { transition-delay: 0.28s; }
  .js .stagger.in > *:nth-child(6) { transition-delay: 0.35s; }
  .js .stagger.in > *:nth-child(7) { transition-delay: 0.42s; }
}
