/* ==========================================================================
   Baélec — feuille de styles principale
   ========================================================================== */

:root {
  /* Couleurs reprises du logo : bleu foncé du toit, bleu ciel des lettres, jaune, vert */
  --navy-900: #2f5d8a;
  --navy-800: #3a6b9b;
  --navy-700: #264f78;
  --navy-100: #e3f4fd;
  --sky-500: #00aeef;
  --green-500: #3aaa35;
  --amber-500: #ffe066;
  --amber-400: #ffea8f;
  --amber-100: #fff8cc;
  --ink: #0f1f3d;
  --ink-soft: #46597a;
  --line: #d9e4f0;
  --bg: #ffffff;
  --bg-soft: #f3f8fc;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(8, 42, 110, 0.08);
  --shadow-lg: 0 24px 60px rgba(8, 42, 110, 0.16);
  --container: 1180px;
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 136px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--amber-500); color: var(--navy-900);
  padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600; font-size: 16px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--amber-500); color: var(--navy-900); box-shadow: 0 8px 20px rgba(255,224,102, .35); }
.btn-primary:hover { background: var(--amber-400); }

.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: #fff; }

.btn-dark { background: var(--navy-900); color: #fff; }
.btn-dark:hover { background: var(--navy-700); }

/* ---------- En-tête ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 3px solid var(--green-500);
  box-shadow: 0 4px 20px rgba(8, 42, 110, 0.06);
}
/* Logo centré : logo au milieu (bouton d'appel à droite), navigation en dessous */
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: ". logo cta" "nav nav nav";
  align-items: center;
  row-gap: 4px;
  padding: 10px 24px 6px;
}
.header-inner > .logo { grid-area: logo; }
.header-inner > .main-nav { grid-area: nav; justify-self: center; }
.header-inner > .header-cta,
.header-inner > .btn { grid-area: cta; justify-self: end; }

.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 62px; width: auto; }
/* Page d'accueil (ordinateur) : grand logo dans un bandeau, aussi large que le menu
   (largeur ajustée en JS), puis barre de menu collante sans logo */
.brand-banner { display: none; }
@media (min-width: 921px) {
  html:has(.page-accueil) { scroll-padding-top: 80px; }
  .page-accueil .brand-banner {
    display: flex; justify-content: center;
    background: #fff; padding: 20px 24px 8px;
  }
  .brand-banner-logo { display: block; }
  .brand-banner-logo img { width: var(--nav-width, 830px); max-width: 100%; height: auto; }
  .page-accueil .site-header .logo { display: none; }
  .page-accueil .header-inner { grid-template-areas: ". nav cta"; padding-top: 8px; padding-bottom: 8px; }
}

.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: #0141ad; text-decoration: none; font-weight: 700; font-size: 15px;
  transition: color .2s, background .2s;
}
.main-nav a:hover, .main-nav a.active { color: #0141ad; background: var(--navy-100); }

.header-cta { display: flex; align-items: center; gap: 12px; }
.btn-back { padding: 10px 18px; font-size: 15px; white-space: nowrap; }
.header-cta .btn { padding: 10px 18px; font-size: 15px; }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy-700);
}
.nav-toggle svg { width: 28px; height: 28px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(255,224,102,.16), transparent 60%),
    radial-gradient(700px 400px at 10% 90%, rgba(80,130,220,.18), transparent 60%),
    var(--navy-900);
  color: #fff;
  overflow: hidden;
  padding: 96px 0 120px;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 40%, transparent);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255,224,102,.12); color: var(--amber-400);
  font-size: 14px; font-weight: 600; letter-spacing: .02em;
  margin-bottom: 22px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber-500); box-shadow: 0 0 0 4px rgba(255,224,102,.2); }

.hero h1 { font-size: clamp(38px, 5.2vw, 62px); font-weight: 700; margin-bottom: 22px; }
.hero h1 .accent { color: var(--amber-500); }
.hero-lead { font-size: 19px; color: rgba(255,255,255,.78); max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 36px; }
.hero-stats div { border-left: 3px solid var(--amber-500); padding-left: 14px; }
.hero-stats strong { display: block; font-family: var(--font-head); font-size: 30px; line-height: 1; margin-bottom: 4px; }
.hero-stats span { font-size: 14px; color: rgba(255,255,255,.65); }

.hero-visual { position: relative; }
@media (min-width: 921px) {
  /* Le badge s'aligne sur la ligne des chiffres clés (13+ ans, 12, 1) */
  .hero-grid { align-items: stretch; }
  .hero-visual { display: flex; flex-direction: column; justify-content: center; }
  .hero-visual .hero-badge { position: absolute; left: 0; bottom: 0; margin: 0; }
}
.hero-card {
  position: relative;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-800));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-lg);
}
.hero-card h3 { font-size: 18px; margin-bottom: 18px; color: rgba(255,255,255,.9); }
.panel-rows { display: grid; gap: 12px; }
.panel-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-radius: 12px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06);
  font-size: 15px;
}
.panel-row .label { display: flex; align-items: center; gap: 12px; }
.panel-row .label svg { width: 22px; height: 22px; color: var(--amber-400); }
.switch {
  width: 42px; height: 24px; border-radius: 999px; background: rgba(255,255,255,.15);
  position: relative; flex-shrink: 0;
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; transition: transform .3s;
}
.switch.on { background: var(--amber-500); }
.switch.on::after { transform: translateX(18px); }

.hero-badge {
  position: relative; margin-top: 18px; width: fit-content;
  background: #fff; color: var(--ink);
  border-radius: 16px; padding: 16px 20px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: var(--shadow-lg);
}
.hero-badge .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--amber-100); display: grid; place-items: center; color: #b07d00; }
.hero-badge .icon svg { width: 24px; height: 24px; }
.hero-badge strong { display: block; font-family: var(--font-head); font-size: 16px; line-height: 1.2; }
.hero-badge span { font-size: 13px; color: var(--ink-soft); }

/* ---------- Sections ---------- */

.section { padding: 104px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--navy-900); color: #fff; }

.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--navy-700); margin-bottom: 12px;
}
.section-dark .kicker,
.contact-info .kicker { color: var(--amber-400); }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); }
.section-head p { color: var(--ink-soft); font-size: 18px; }
.section-dark .section-head p { color: rgba(255,255,255,.7); }

/* ---------- Services ---------- */

.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.service-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background-color .25s ease, color .25s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; background: var(--navy-900); color: #fff; }
.service-card p { transition: color .25s ease; }
.service-card:hover p { color: rgba(255,255,255,.72); }
.service-card .icon {
  width: 54px; height: 54px; border-radius: 14px;
  background: var(--navy-100); color: var(--navy-700);
  display: grid; place-items: center; margin-bottom: 20px;
  transition: background .25s, color .25s;
}
.service-card:hover .icon { background: var(--amber-500); color: var(--navy-900); }
.service-card .icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 20px; margin-bottom: 10px; }
.service-card p { color: var(--ink-soft); font-size: 15.5px; margin: 0; }
.service-card.featured { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.service-card.featured p { color: rgba(255,255,255,.72); }
.service-card.featured .icon { background: var(--amber-500); color: var(--navy-900); }
.service-tag {
  position: absolute; top: 18px; right: 18px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(255,224,102,.18); color: var(--amber-400);
  padding: 4px 10px; border-radius: 999px;
}

/* ---------- Pourquoi ---------- */

.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.why-list { display: grid; gap: 22px; }
.why-item { display: flex; gap: 18px; }
.why-item .num {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px;
  background: var(--amber-100); color: #8a6200;
  display: grid; place-items: center;
}
.why-item .num svg { width: 24px; height: 24px; }
.why-item h3 { font-size: 19px; margin-bottom: 4px; }
.why-item p { color: var(--ink-soft); margin: 0; font-size: 16px; }

.anniv-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--navy-900);
  color: #fff;
  padding: 48px;
  overflow: hidden;
}
.anniv-card::before {
  content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%;
  right: -120px; top: -120px;
  background: radial-gradient(circle, rgba(255,224,102,.35), transparent 70%);
}
.anniv-card .big { position: relative; font-family: var(--font-head); font-weight: 700; font-size: 120px; line-height: .9; color: var(--amber-500); }
.anniv-card .big small { font-size: 32px; color: #fff; margin-left: 8px; }
.anniv-card p { position: relative; color: rgba(255,255,255,.75); font-size: 18px; margin: 18px 0 30px; max-width: 380px; }
.anniv-timeline { position: relative; display: flex; justify-content: space-between; border-top: 1px dashed rgba(255,255,255,.25); padding-top: 18px; font-size: 14px; color: rgba(255,255,255,.65); }
.anniv-timeline strong { display: block; color: #fff; font-family: var(--font-head); font-size: 18px; }

/* ---------- À propos ---------- */

.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.portrait {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  overflow: hidden;
  display: grid; place-items: center;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.portrait-placeholder { text-align: center; color: rgba(255,255,255,.55); padding: 24px; }
.portrait-placeholder .initials {
  width: 140px; height: 140px; margin: 0 auto 16px; border-radius: 50%;
  border: 3px solid var(--amber-500);
  display: grid; place-items: center;
  font-family: var(--font-head); font-size: 52px; font-weight: 700; color: #fff;
}
.portrait-caption {
  position: absolute; left: 20px; right: 20px; bottom: 20px;
  background: rgba(255,255,255,.95); color: var(--ink);
  border-radius: 14px; padding: 16px 20px;
}
.portrait-caption strong { display: block; font-family: var(--font-head); font-size: 19px; }
.portrait-caption span { color: var(--ink-soft); font-size: 14px; }

.about-text h2 { font-size: clamp(30px, 3.6vw, 42px); }
.about-text p { color: var(--ink-soft); font-size: 17.5px; }
.about-quote {
  margin: 28px 0 0; padding: 22px 26px;
  border-left: 4px solid var(--amber-500);
  background: var(--bg-soft); border-radius: 0 12px 12px 0;
  font-family: var(--font-head); font-size: 19px; color: var(--ink);
}
.about-quote cite { display: block; margin-top: 8px; font-family: var(--font-body); font-style: normal; font-size: 14px; color: var(--ink-soft); }

/* ---------- Méthode ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step {
  position: relative;
  padding: 32px 26px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-family: var(--font-head); font-weight: 700; font-size: 40px;
  color: var(--amber-500); line-height: 1; margin-bottom: 18px;
}
.step h3 { font-size: 20px; }
.step p { color: rgba(255,255,255,.7); font-size: 15.5px; margin: 0; }

/* ---------- Zone ---------- */

.zone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.zone-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 30px; padding: 0; list-style: none; }
.zone-list li {
  padding: 8px 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: 15px; font-weight: 500;
}
.zone-list li.main { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.zone-list li small { font-size: 13px; font-weight: 400; opacity: .8; }
.zone-list li { display: inline-flex; align-items: center; gap: 8px; }
.zone-list .dept { display: inline-grid; place-items: center; min-width: 28px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--amber-500); color: var(--navy-900); font-family: var(--font-head); font-size: 13px; font-weight: 700; }
.map-frame {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 4 / 3; background: var(--navy-100);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; }
.contact-info {
  background: var(--navy-900); color: #fff;
  border-radius: var(--radius-lg); padding: 44px;
}
.contact-info h2 { font-size: 34px; }
.contact-info > p { color: rgba(255,255,255,.72); }
.contact-lines { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 22px; }
.contact-lines li { display: flex; gap: 16px; align-items: flex-start; }
.contact-lines .icon {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px;
  background: rgba(255,224,102,.14); color: var(--amber-400);
  display: grid; place-items: center;
}
.contact-lines .icon svg { width: 22px; height: 22px; }
.contact-lines small { display: block; font-size: 13px; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .06em; }
.contact-lines a, .contact-lines span.val { color: #fff; text-decoration: none; font-weight: 600; font-size: 17px; }
.contact-lines a:hover { color: var(--amber-400); }

.contact-form {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 44px;
  box-shadow: var(--shadow);
}
.contact-form h3 { font-size: 24px; margin-bottom: 6px; }
.contact-form > p { color: var(--ink-soft); margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row.cp-row { grid-template-columns: 160px 1fr; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit; font-size: 16px; color: var(--ink);
  padding: 13px 15px;
  border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--bg-soft);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--amber-500); background: #fff;
  box-shadow: 0 0 0 4px rgba(255,224,102,.18);
}
/* Type de demande : choix multiples sous forme d'étiquettes à cocher */
.choices-field { border: 0; padding: 0; min-width: 0; }
.choices-field legend { font-weight: 600; font-size: 14px; margin-bottom: 8px; padding: 0; }
.choices-field legend small { font-weight: 400; color: var(--ink-soft); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.field .choice { position: relative; cursor: pointer; margin: 0; font-weight: 500; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--bg-soft);
  font-size: 14.5px; color: var(--ink);
  transition: border-color .2s, background .2s, color .2s;
}
.choice span::before {
  content: ""; width: 14px; height: 14px; border-radius: 4px; flex-shrink: 0;
  border: 1.5px solid var(--ink-soft); background: #fff;
}
.choice:hover span { border-color: var(--navy-800); }
.choice input:checked + span { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.choice input:checked + span::before {
  border-color: var(--amber-500); background: var(--amber-500)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5d8a' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.choice input:focus-visible + span { box-shadow: 0 0 0 4px rgba(255,224,102,.35); }
.choices-error { color: #b42318; font-size: 14px; font-weight: 600; margin: 8px 0 0; }

.field-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); margin-bottom: 22px; }
.field-check input { margin-top: 4px; accent-color: var(--amber-500); }
.form-note { font-size: 14px; margin-top: 14px; color: var(--ink-soft); }
.form-note.success { color: #1c7c3c; font-weight: 600; }

/* ---------- Bandeau CTA ---------- */

.cta-band {
  background: var(--amber-500);
  padding: 56px 0;
}
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(26px, 3vw, 34px); margin: 0; color: var(--navy-900); }
.cta-band p { margin: 6px 0 0; color: rgba(8,42,110,.75); }

/* ---------- Pied de page ---------- */

.site-footer { background: var(--navy-900); color: rgba(255,255,255,.7); padding: 72px 0 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: rgba(255,255,255,.7); }
.site-footer a:hover { color: var(--amber-400); }
.footer-about .logo { background: #fff; padding: 12px 16px; border-radius: 12px; }
.footer-about .logo img { height: 60px; }
.footer-about p { margin-top: 16px; max-width: 320px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 14px;
}
.footer-bottom .credit { font-size: 12px; opacity: .55; text-decoration: none; }
.footer-bottom .credit:hover { opacity: .9; text-decoration: underline; }

/* ---------- FAQ ---------- */

.faq-list { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.faq-item:hover { border-color: var(--navy-800); }
.faq-item[open] { border-color: var(--navy-900); box-shadow: var(--shadow); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 24px;
  font-family: var(--font-head); font-weight: 600; font-size: 18px; line-height: 1.35; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex-shrink: 0;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy-100); color: var(--navy-700);
  font-family: var(--font-body, inherit); font-size: 22px; font-weight: 500; line-height: 1;
  transition: transform .25s ease, background-color .25s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); background: var(--amber-500); color: var(--navy-900); }
.faq-item summary:focus-visible { outline: 2px solid var(--amber-500); outline-offset: 2px; border-radius: var(--radius); }
.faq-answer { padding: 0 24px 22px; color: var(--ink-soft); }
.faq-answer p { margin: 0 0 10px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer a { color: var(--navy-900); font-weight: 600; }

@media (max-width: 600px) {
  .faq-item summary { padding: 16px 18px; font-size: 16px; }
  .faq-answer { padding: 0 18px 18px; font-size: 15.5px; }
}

/* ---------- Pages internes ---------- */

.page-hero { background: var(--navy-900); color: #fff; padding: 72px 0 64px; }
.page-hero h1 { font-size: clamp(32px, 4vw, 46px); margin: 0; }
.legal { max-width: 820px; }
.legal h2 { font-size: 24px; margin-top: 44px; }
.legal p, .legal li { color: var(--ink-soft); }
.todo { background: var(--amber-100); color: #7a5600; padding: 1px 6px; border-radius: 4px; font-weight: 600; }

/* ---------- Animations d'apparition ---------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 920px) {
  /* Téléphone / tablette : logo centré, menu toujours visible en dessous sur une seule ligne.
     Centré s'il tient, sinon défilement horizontal au doigt (fondu sur les bords). */
  html, html:has(.page-accueil) { scroll-padding-top: 120px; }
  .site-header .header-inner { padding: 8px 16px 4px; row-gap: 2px; }
  .logo img { height: 52px; }
  .page-accueil .site-header .logo img { height: 60px; }
  .header-cta .btn { padding: 10px 12px; }
  .header-inner > .main-nav { justify-self: stretch; min-width: 0; }
  .main-nav ul {
    position: relative; flex-wrap: nowrap; gap: 2px;
    overflow-x: auto; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 14px, #000 calc(100% - 22px), transparent);
            mask-image: linear-gradient(to right, transparent, #000 14px, #000 calc(100% - 22px), transparent);
  }
  .main-nav ul::-webkit-scrollbar { display: none; }
  .main-nav li:first-child { margin-left: auto; padding-left: 8px; }
  .main-nav li:last-child { margin-right: auto; padding-right: 14px; }
  .main-nav a { padding: 5px 9px; font-size: 14px; white-space: nowrap; }
  .header-cta .btn-text { display: none; }

  .hero { padding: 64px 0 96px; }
  .hero-grid, .why-grid, .about-grid, .zone-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .portrait { max-width: 440px; }
  .section { padding: 80px 0; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .services-grid, .steps, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .form-row.cp-row { grid-template-columns: 120px 1fr; gap: 12px; }
  .hero-stats { gap: 22px; }
  .anniv-card, .contact-info, .contact-form { padding: 30px 24px; }
  .anniv-card .big { font-size: 92px; }
  .hero-card { padding: 22px; }
  .logo img { height: 44px; }
  .btn-back { padding: 8px 12px; font-size: 13px; }
  .choices { gap: 6px; }
  .choice span { padding: 7px 10px; font-size: 13.5px; gap: 5px; }
}
