/* =========================================================
   MDS 37 — feuille de style
   ---------------------------------------------------------
   Toutes les couleurs sont dans :root. Pour caler la charte,
   ne modifier QUE ce bloc.

   Alternance clair / sombre : les sections portent .t-clair,
   .t-gris ou .t-sombre, qui REDÉFINISSENT les tokens
   localement. Les composants ne connaissent que les
   variables — aucun composant n'est dupliqué.
   ========================================================= */

:root {
  /* --- Couleurs de marque (relevées sur mds37.fr) --- */
  --c-noir:        #111215;
  --c-noir-2:      #141416;
  --c-noir-3:      #1C1C1F;
  --c-noir-pur:    #000000;   /* fond du logo — en-tête et pied */
  --c-blanc:       #FFFFFF;
  --c-blanc-2:     #F2F2F0;
  --c-blanc-3:     #E6E6E3;
  --c-accent:      #BE2D21;   /* rouge d'interface        */
  --c-accent-fonce:#99231A;   /* survol                   */
  --c-accent-logo: #EB0001;   /* rouge du logo (plus vif) */

  /* --- Tokens actifs (défaut = sombre) --- */
  --c-fond:       var(--c-noir);
  --c-surface:    var(--c-noir-2);
  --c-texte:      #F5F5F4;
  --c-texte-doux: #A0A0A5;
  --c-filet:      rgba(245, 245, 244, .14);

  /* --- Typographie --- */
  --f-display: "Anton", "Arial Narrow", sans-serif;
  --f-titre:   "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-corps:   "Barlow", system-ui, -apple-system, sans-serif;

  /* --- Échelle de type --- */
  --t-hero:  clamp(2.75rem, 9vw, 7rem);
  --t-h1:    clamp(2.25rem, 6vw, 4.25rem);
  --t-h2:    clamp(1.75rem, 3.6vw, 2.75rem);
  --t-h3:    clamp(1.25rem, 2.2vw, 1.6rem);
  --t-corps: clamp(1rem, 1.1vw, 1.075rem);

  /* --- Rythme --- */
  --gap:       clamp(1.25rem, 2.5vw, 2rem);
  --section-y: clamp(4rem, 9vw, 8rem);
  --largeur:   1220px;

  /* --- Angle de coupe (signature graphique) --- */
  --coupe: 18px;
}

/* --- Thèmes de section --- */

.t-sombre {
  --c-fond:       var(--c-noir);
  --c-surface:    var(--c-noir-2);
  --c-texte:      #F5F5F4;
  --c-texte-doux: #A0A0A5;
  --c-filet:      rgba(245, 245, 244, .14);
}

.t-clair {
  --c-fond:       var(--c-blanc);
  --c-surface:    var(--c-blanc-2);
  --c-texte:      #101013;
  --c-texte-doux: #55555C;
  --c-filet:      rgba(16, 16, 19, .15);
}

.t-gris {
  --c-fond:       var(--c-blanc-2);
  --c-surface:    var(--c-blanc);
  --c-texte:      #101013;
  --c-texte-doux: #55555C;
  --c-filet:      rgba(16, 16, 19, .13);
}

.t-sombre, .t-clair, .t-gris { background: var(--c-fond); color: var(--c-texte); }

/* =========================================================
   Base
   ========================================================= */

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

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--c-noir);
  color: var(--c-texte);
  font-family: var(--f-corps);
  font-size: var(--t-corps);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.02; }
p { margin: 0 0 1em; }

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

.conteneur { width: min(100% - 2.5rem, var(--largeur)); margin-inline: auto; }

.saut { position: absolute; left: -9999px; }
.saut:focus {
  left: 1rem; top: 1rem;
  position: fixed; z-index: 1001;
  background: var(--c-accent); color: #fff;
  padding: .75rem 1.25rem;
}

/* =========================================================
   Éléments typographiques
   ========================================================= */

.surtitre {
  font-family: var(--f-titre);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--c-accent);
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: 1.4rem;
}
.surtitre::after { content: ""; flex: 1; height: 1px; background: var(--c-filet); }
.surtitre--centre { justify-content: center; }
.surtitre--centre::after { display: none; }

.titre-section {
  font-family: var(--f-display);
  font-size: var(--t-h1);
  text-transform: uppercase;
  letter-spacing: -.015em;
}

.chapo { color: var(--c-texte-doux); max-width: 58ch; font-size: 1.075rem; }

/* =========================================================
   Boutons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: 1rem 2rem;
  font-family: var(--f-titre);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  background: var(--c-accent);
  color: #fff;
  border: 0;
  cursor: pointer;
  clip-path: polygon(var(--coupe) 0, 100% 0, 100% calc(100% - var(--coupe)), calc(100% - var(--coupe)) 100%, 0 100%, 0 var(--coupe));
  transition: background .18s ease, transform .18s ease;
}
.btn:hover { background: var(--c-accent-fonce); transform: translateY(-2px); }
.btn::after { content: "\00BB"; font-size: 1.15em; line-height: 0; }

.btn--fantome {
  background: transparent;
  color: var(--c-texte);
  box-shadow: inset 0 0 0 1px var(--c-filet);
}
.btn--fantome:hover { background: var(--c-accent); color: #fff; box-shadow: none; }

/* Variante pour fond image / fond sombre imposé */
.btn--clair { color: #F5F5F4; box-shadow: inset 0 0 0 1px rgba(245, 245, 244, .32); }

/* =========================================================
   En-tête (toujours sombre)
   ========================================================= */

.entete {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-noir-pur);
  border-bottom: 1px solid rgba(245, 245, 244, .12);
  color: #F5F5F4;
}

.entete__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  min-height: 96px;
}

.logo img { height: 62px; width: auto; }

.nav ul { display: flex; align-items: center; gap: 2.15rem; list-style: none; margin: 0; padding: 0; }

.nav a {
  font-family: var(--f-titre);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #A0A0A5;
  padding: .4rem 0;
  position: relative;
  transition: color .15s ease;
}
.nav a:hover, .nav a[aria-current="page"] { color: #F5F5F4; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--c-accent);
  transition: width .22s ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }

.sous-menu { position: relative; }
.sous-menu > ul {
  position: absolute;
  top: 100%;
  left: -1rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  min-width: 235px;
  padding: .6rem 0;
  background: var(--c-noir-2);
  border: 1px solid rgba(245, 245, 244, .14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.sous-menu:hover > ul,
.sous-menu:focus-within > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.sous-menu > ul a { display: block; width: 100%; padding: .65rem 1.4rem; font-size: .975rem; }
.sous-menu > ul a::after { display: none; }
.sous-menu > ul li:hover { background: var(--c-noir-3); }

.burger, .burger-label { display: none; }

/* =========================================================
   Bandes à image de fond (héros, appel, témoignages)
   ========================================================= */

.bande { position: relative; overflow: hidden; background: var(--c-noir); color: #F5F5F4; }
.bande__media { position: absolute; inset: 0; z-index: 0; }
.bande__media img { width: 100%; height: 100%; object-fit: cover; }
.bande > .conteneur { position: relative; z-index: 2; }
.bande::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* --- Héros --- */
.heros {
  min-height: min(88vh, 780px);
  display: grid;
  align-items: end;
  padding-block: clamp(4rem, 12vw, 8rem);
}
.heros .bande__media img { object-position: center 32%; filter: contrast(1.04) brightness(.88); }
.heros::after {
  background:
    linear-gradient(to top, var(--c-noir) 2%, transparent 42%),
    linear-gradient(to right, color-mix(in srgb, var(--c-noir) 58%, transparent), transparent 62%);
}

.heros__titre {
  font-family: var(--f-display);
  font-size: var(--t-hero);
  text-transform: uppercase;
  letter-spacing: -.02em;
  max-width: 16ch;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .85), 0 1px 4px rgba(0, 0, 0, .5);
}
.heros__titre em { font-style: normal; color: var(--c-accent); display: block; }

.heros__accroche {
  display: block;
  font-family: var(--f-titre);
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #D8D8DA;
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .8);
}

.heros__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; }

/* --- Bande d'appel --- */
.appel { padding-block: clamp(5rem, 12vw, 9rem); text-align: center; }
.appel .bande__media img { object-position: center 38%; filter: contrast(1.03) brightness(.86); }
.appel::after {
  background: linear-gradient(to bottom,
    color-mix(in srgb, var(--c-noir) 52%, transparent),
    color-mix(in srgb, var(--c-noir) 22%, transparent) 50%,
    color-mix(in srgb, var(--c-noir) 52%, transparent));
}
.appel__titre {
  font-family: var(--f-display);
  font-size: clamp(2rem, 5.5vw, 4rem);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 2rem;
  text-shadow: 0 2px 26px rgba(0, 0, 0, .7);
}
.appel__titre span { color: var(--c-accent); }

/* =========================================================
   Bandeau défilant (signature)
   ========================================================= */

.bandeau { background: var(--c-accent); overflow: hidden; padding-block: .85rem; }
.bandeau__piste { display: flex; width: max-content; animation: defile 34s linear infinite; }
.bandeau__piste span {
  font-family: var(--f-display);
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  text-transform: uppercase;
  letter-spacing: .12em;
  padding-inline: 1.4rem;
  color: #fff;
  white-space: nowrap;
}
.bandeau__piste span::after {
  content: "\25C6";
  font-size: .55em;
  vertical-align: middle;
  margin-left: 1.6rem;
  opacity: .6;
}

@keyframes defile {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .bandeau__piste { animation: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Sections
   ========================================================= */

.section { padding-block: var(--section-y); }
.section__entete { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__entete--centre { text-align: center; }

/* --- Introduction --- */
.intro__grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.intro__accroche {
  font-family: var(--f-titre);
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--c-texte);
}

/* --- Cadre image à coins coupés --- */
.cadre { clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 34px 100%, 0 calc(100% - 34px)); }
.cadre img { width: 100%; }
.cadre--paysage img { aspect-ratio: 4 / 3; object-fit: cover; object-position: center 40%; }

/* --- Piliers : pictogrammes, pas photos --- */
.piliers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
}

.pilier {
  background: var(--c-surface);
  border: 1px solid var(--c-filet);
  padding: 2.5rem 2rem;
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px));
  transition: transform .25s ease, border-color .25s ease;
}
.pilier:hover { transform: translateY(-6px); border-color: var(--c-accent); }

.pilier__icone {
  width: 84px; height: 84px;
  object-fit: contain;
  margin-bottom: 1.75rem;
}

.pilier__titre {
  font-family: var(--f-display);
  font-size: var(--t-h3);
  text-transform: uppercase;
  margin-bottom: .9rem;
}
.pilier__titre small {
  display: block;
  font-family: var(--f-titre);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .28em;
  color: var(--c-accent);
  margin-bottom: .35rem;
}
.pilier p { color: var(--c-texte-doux); margin: 0; }

/* =========================================================
   Instructeur
   ========================================================= */

.instructeur__grille {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.instructeur__nom { font-family: var(--f-display); font-size: var(--t-h2); text-transform: uppercase; }
.instructeur__niveau {
  font-family: var(--f-titre);
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-size: .82rem;
  color: var(--c-accent);
  margin-bottom: .5rem;
}

.citation { margin: 2rem 0 0; padding-left: 1.75rem; border-left: 3px solid var(--c-accent); }
.citation p {
  font-family: var(--f-titre);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: .6rem;
}
.citation footer {
  font-family: var(--f-titre);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--c-texte-doux);
}

.instructeur__actions { margin-top: 2rem; }

/* =========================================================
   Témoignages — sur image de fond, photos EN COULEUR
   ========================================================= */

.temoins { padding-block: clamp(4.5rem, 10vw, 8rem); }
.temoins .bande__media img { object-position: center 45%; filter: none; }
.temoins::after {
  background: linear-gradient(to bottom,
    color-mix(in srgb, var(--c-noir) 55%, transparent),
    color-mix(in srgb, var(--c-noir) 34%, transparent) 45%,
    color-mix(in srgb, var(--c-noir) 58%, transparent));
}

.temoins__entete { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.temoins__titre {
  font-family: var(--f-display);
  font-size: var(--t-h1);
  text-transform: uppercase;
  text-shadow: 0 2px 26px rgba(0, 0, 0, .7);
}
.temoins__filet {
  width: 92px; height: 3px;
  background: var(--c-accent);
  margin: 1.25rem auto 0;
}

.temoignages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}

.temoignage { text-align: center; }

.temoignage__photo {
  width: 132px; height: 132px;
  margin: 0 auto 1.25rem;
  object-fit: cover;
  border-radius: 50%;
  /* photos en couleur — pas de désaturation */
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .22), 0 10px 30px rgba(0, 0, 0, .45);
}

.temoignage__nom {
  font-family: var(--f-titre);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .85);
}
.temoignage__niveau {
  font-family: var(--f-titre);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #DCDCDE;
  margin: 0;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .85);
}
.temoignage blockquote { margin: 0; }
.temoignage__guillemet {
  display: block;
  font-family: var(--f-display);
  font-size: 2.75rem;
  line-height: .6;
  color: var(--c-accent);
  margin: 1.25rem 0 .75rem;
}
.temoignage p:last-child { color: #EDEDEB; margin: 0; text-shadow: 0 1px 10px rgba(0, 0, 0, .85); }

/* =========================================================
   FAQ — <details>, sans JavaScript
   ========================================================= */

.faq { max-width: 900px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--c-filet); }
.faq details:first-of-type { border-top: 1px solid var(--c-filet); }
.faq details[open] { background: var(--c-surface); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem clamp(1rem, 2vw, 1.75rem);
  cursor: pointer;
  list-style: none;
  font-family: var(--f-titre);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: color .15s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font: inherit; margin: 0; letter-spacing: inherit; }
.faq summary:hover { color: var(--c-accent); }
.faq summary::after {
  content: "+";
  font-family: var(--f-display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--c-accent);
  flex: 0 0 auto;
  transition: transform .22s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }

.faq__reponse {
  padding: 0 clamp(1rem, 2vw, 1.75rem) 1.75rem;
  color: var(--c-texte-doux);
  max-width: 72ch;
}

/* =========================================================
   Pied de page (toujours sombre)
   ========================================================= */

.pied { padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; background: var(--c-noir-pur); color: #F5F5F4; }

.pied__haut {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(245, 245, 244, .14);
}

.pied__logo img { height: 62px; width: auto; }

.reseaux { display: flex; gap: 1rem; }
.reseaux a {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid rgba(245, 245, 244, .14);
  transition: background .18s ease, border-color .18s ease;
}
.reseaux a:hover { background: var(--c-accent); border-color: var(--c-accent); }
.reseaux svg { width: 19px; height: 19px; fill: currentColor; }

.pied__bas {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  font-size: .875rem;
  color: #A0A0A5;
}
.pied__bas p { margin: 0; }
.pied__bas nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.pied__bas a:hover { color: var(--c-accent); }

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 960px) {
  .intro__grille, .instructeur__grille { grid-template-columns: 1fr; }
  .instructeur__grille .cadre { max-width: 420px; }
}

@media (max-width: 860px) {
  .burger-label {
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    cursor: pointer;
    border: 1px solid rgba(245, 245, 244, .14);
  }
  .burger-label span,
  .burger-label span::before,
  .burger-label span::after {
    content: "";
    display: block;
    width: 22px; height: 2px;
    background: #F5F5F4;
    transition: transform .22s ease, opacity .22s ease;
  }
  .burger-label span::before { transform: translateY(-7px); }
  .burger-label span::after  { transform: translateY(5px); }

  .burger:checked ~ .entete__inner .burger-label span { background: transparent; }
  .burger:checked ~ .entete__inner .burger-label span::before { transform: rotate(45deg); }
  .burger:checked ~ .entete__inner .burger-label span::after  { transform: rotate(-45deg); }

  .nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--c-noir);
    border-bottom: 1px solid rgba(245, 245, 244, .14);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .burger:checked ~ .entete__inner .nav { max-height: 80vh; overflow-y: auto; }

  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 0; }
  .nav > ul > li > a { display: block; padding: .95rem 1.25rem; }
  .nav a::after { display: none; }

  .sous-menu > ul {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    border: 0;
    background: var(--c-noir-2);
    padding: 0;
  }
  .sous-menu > ul a { padding-left: 2.5rem; }

  .entete__cta { display: none; }
}

@media (max-width: 560px) {
  .heros { min-height: 78vh; }
  .heros__actions .btn { width: 100%; justify-content: center; }
}


/* =========================================================
   Tablettes et mobiles — compléments
   ========================================================= */

/* Hauteur de viewport fiable sur mobile (barres d'URL rétractables) */
@supports (height: 100svh) {
  .heros { min-height: min(88svh, 780px); }
}

/* Tablette portrait : la grille instructeur passe en colonne plus tôt */
@media (max-width: 1024px) {
  .instructeur__grille { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); }
  .nav ul { gap: 1.5rem; }
  .nav a { font-size: .98rem; }
}

@media (max-width: 860px) {
  /* barre plus compacte une fois la navigation repliée */
  .entete__inner { min-height: 76px; }
  .logo img { height: 50px; }
  /* cibles tactiles : 44px minimum (WCAG 2.5.8) */
  .nav > ul > li > a,
  .sous-menu > ul a { min-height: 44px; display: flex; align-items: center; }
}

@media (max-width: 700px) {
  .temoignages { grid-template-columns: 1fr; max-width: 34rem; margin-inline: auto; }
  .pied__haut { flex-direction: column; align-items: flex-start; }
  .pied__bas { flex-direction: column; }
}

@media (max-width: 560px) {
  .heros { min-height: 78vh; }
  .heros__actions .btn { width: 100%; justify-content: center; }
  .appel .btn { width: 100%; max-width: 22rem; justify-content: center; }
  .pilier { padding: 2rem 1.5rem; }
  .faq summary { padding-inline: 1rem; }
}

/* Impression : on ne gaspille pas d'encre sur les fonds sombres */
@media print {
  .entete, .bandeau, .reseaux { display: none; }
  .bande__media, .bande::after { display: none; }
  .bande, .pied { background: #fff; color: #000; }
  .faq details { display: block; }
  .faq__reponse { display: block !important; }
}


/* =========================================================
   ===== PAGES INTÉRIEURES =====
   ========================================================= */

/* ---------------------------------------------------------
   Bandeau de page + fil d'Ariane
   --------------------------------------------------------- */

.entete-page {
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 6vw, 5rem);
  background: var(--c-noir);
  color: #F5F5F4;
  position: relative;
  overflow: hidden;
}
.entete-page .bande__media img { object-position: center 40%; filter: contrast(1.03) brightness(.72); }
.entete-page::after {
  background: linear-gradient(to bottom,
    color-mix(in srgb, var(--c-noir) 72%, transparent),
    color-mix(in srgb, var(--c-noir) 55%, transparent));
}
/* variante sans photo : la typographie porte seule */
.entete-page--type { background: var(--c-noir-pur); }
.entete-page--type::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg,
    transparent 0 34px,
    rgba(190, 45, 33, .07) 34px 36px);
  pointer-events: none;
}

.entete-page__titre {
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  text-transform: uppercase;
  letter-spacing: -.015em;
  margin-top: .75rem;
  position: relative;
  text-shadow: 0 2px 26px rgba(0, 0, 0, .6);
}
.entete-page__titre span { color: var(--c-accent); }
.entete-page__chapo {
  position: relative;
  margin-top: 1.25rem;
  max-width: 58ch;
  color: #D2D2D5;
  font-size: 1.1rem;
}

.fil {
  position: relative;
  font-family: var(--f-titre);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #9A9AA0;
}
.fil ol { display: flex; flex-wrap: wrap; gap: .55rem; list-style: none; margin: 0; padding: 0; }
.fil li + li::before { content: "/"; margin-right: .55rem; opacity: .5; }
.fil a:hover { color: var(--c-accent); }
.fil [aria-current="page"] { color: #F5F5F4; }

/* ---------------------------------------------------------
   Bande de chiffres
   --------------------------------------------------------- */

.mesures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--c-filet);
  border: 1px solid var(--c-filet);
}
.mesure { background: var(--c-fond); padding: 2rem 1.5rem; text-align: center; }
.mesure__valeur {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1;
  color: var(--c-accent);
}
.mesure__valeur sup { font-size: .48em; vertical-align: .7em; margin-right: .04em; }
.mesure__libelle {
  display: block;
  margin-top: .6rem;
  font-family: var(--f-titre);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-texte-doux);
}

/* ---------------------------------------------------------
   Parcours chronologique (mds-37)
   Le numéro encode un ordre réel : il porte l'information.
   --------------------------------------------------------- */

.parcours {
  list-style: none;
  margin: 0; padding: 0;
  position: relative;
  counter-reset: etape-parcours;
}
.parcours::before {
  content: "";
  position: absolute;
  left: 27px; top: .5rem; bottom: .5rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--c-accent), var(--c-filet));
}
.parcours li {
  counter-increment: etape-parcours;
  position: relative;
  padding: 0 0 2.75rem 5rem;
}
.parcours li:last-child { padding-bottom: 0; }

/* Un seul axe : l'ordre. Les âges, durées et grades — qui ne se
   comparent pas entre eux — sont passés en sous-titre. */
.parcours li::before {
  content: counter(etape-parcours, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: var(--c-accent);
  color: #fff;
  font-family: var(--f-display);
  font-size: 1.15rem;
  letter-spacing: .02em;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.parcours li:not(:first-child)::before {
  background: var(--c-fond);
  color: var(--c-texte);
  box-shadow: inset 0 0 0 1px var(--c-filet);
}
.parcours__titre {
  font-family: var(--f-display);
  font-size: 1.4rem;
  text-transform: uppercase;
  margin-bottom: .3rem;
  padding-top: .35rem;
}
.parcours__meta {
  font-family: var(--f-titre);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin: 0 0 .6rem;
}
.parcours__meta sup { font-size: .62em; vertical-align: .45em; margin-right: .08em; }
.parcours p { color: var(--c-texte-doux); margin: 0; }

/* ---------------------------------------------------------
   Étapes numérotées (candidater)
   --------------------------------------------------------- */

.etapes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--gap);
  counter-reset: etape;
  list-style: none;
  margin: 0; padding: 0;
}
.etape {
  counter-increment: etape;
  position: relative;
  padding: 2.75rem 1.75rem 2rem;
  background: var(--c-surface);
  border: 1px solid var(--c-filet);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}
.etape::before {
  content: counter(etape, decimal-leading-zero);
  position: absolute;
  top: 1rem; right: 1.25rem;
  font-family: var(--f-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--c-accent);
  opacity: .28;
}
.etape h3 {
  font-family: var(--f-display);
  font-size: 1.2rem;
  text-transform: uppercase;
  margin-bottom: .7rem;
}
.etape p { color: var(--c-texte-doux); margin: 0; }

/* ---------------------------------------------------------
   Critères (liste à coche)
   --------------------------------------------------------- */

.criteres { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.criteres li { position: relative; padding-left: 2.1rem; color: var(--c-texte-doux); }
.criteres li::before {
  content: "";
  position: absolute;
  left: 0; top: .45em;
  width: 1rem; height: .55rem;
  border-left: 2px solid var(--c-accent);
  border-bottom: 2px solid var(--c-accent);
  transform: rotate(-45deg);
}

/* ---------------------------------------------------------
   Tarifs
   --------------------------------------------------------- */

.offres {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
  align-items: start;
}

.offre {
  background: var(--c-surface);
  border: 1px solid var(--c-filet);
  padding: 2.25rem 1.9rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px));
}
.offre--phare {
  background: var(--c-noir);
  color: #F5F5F4;
  border-color: var(--c-accent);
  position: relative;
}
.offre--phare .offre__prix,
.offre--phare .offre__nom small { color: var(--c-accent); }
.offre--phare .offre__liste li { color: #C8C8CC; }
.offre--phare .offre__liste li::before { border-color: var(--c-accent); }

.offre__badge {
  align-self: flex-start;
  background: var(--c-accent);
  color: #fff;
  font-family: var(--f-titre);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: .35rem .85rem;
}
.offre__nom {
  font-family: var(--f-display);
  font-size: 1.5rem;
  text-transform: uppercase;
}
.offre__nom small {
  display: block;
  font-family: var(--f-titre);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .26em;
  color: var(--c-accent);
  margin-bottom: .3rem;
}
.offre__prix {
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 5vw, 3.25rem);
  line-height: .95;
  color: var(--c-accent);
}
.offre__prix span {
  display: block;
  font-family: var(--f-titre);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-texte-doux);
  margin-top: .35rem;
}
.offre__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; flex: 1; }
.offre__liste li { position: relative; padding-left: 1.9rem; color: var(--c-texte-doux); font-size: .98rem; }
.offre__liste li::before {
  content: "";
  position: absolute;
  left: 0; top: .42em;
  width: .95rem; height: .5rem;
  border-left: 2px solid var(--c-accent);
  border-bottom: 2px solid var(--c-accent);
  transform: rotate(-45deg);
}
.offre .btn { justify-content: center; }

/* ---------------------------------------------------------
   Cartes d'information (contact)
   --------------------------------------------------------- */

.jalons { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--gap); }
.jalon {
  background: var(--c-surface);
  border: 1px solid var(--c-filet);
  border-top: 3px solid var(--c-accent);
  padding: 1.9rem 1.6rem;
}
.jalon__date {
  font-family: var(--f-titre);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: .5rem;
}
.jalon h3 { font-family: var(--f-display); font-size: 1.25rem; text-transform: uppercase; margin-bottom: .6rem; }
.jalon p { color: var(--c-texte-doux); margin: 0; }

/* Encart d'alerte (information datée, à vérifier) */
.encart {
  border-left: 3px solid var(--c-accent);
  background: var(--c-surface);
  padding: 1.4rem 1.6rem;
  color: var(--c-texte-doux);
}
.encart strong { color: var(--c-texte); }

/* ---------------------------------------------------------
   Corps de texte long (mentions légales, CGV…)
   --------------------------------------------------------- */

.prose { max-width: 72ch; }
.prose h2 {
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  text-transform: uppercase;
  margin: 2.75rem 0 1rem;
}
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--c-texte-doux); }
.prose a { color: var(--c-accent); text-decoration: underline; text-underline-offset: .2em; }

/* ---------------------------------------------------------
   Grille texte + image, sens inversable
   --------------------------------------------------------- */

.duo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.duo--inverse > *:first-child { order: 2; }

@media (max-width: 960px) {
  .duo, .duo--inverse { grid-template-columns: 1fr; }
  .duo--inverse > *:first-child { order: 0; }
}

@media (max-width: 560px) {
  .parcours li { padding-left: 4.25rem; }
  .parcours::before { left: 23px; }
  .parcours li::before { width: 48px; height: 48px; font-size: 1rem; }
}


/* ---------------------------------------------------------
   Bandeau à portrait détouré
   Le visuel a un fond #000000 plein, identique à celui de
   .entete-page--type : aucun détourage n'est nécessaire.
   --------------------------------------------------------- */

.entete-page--portrait { padding-bottom: 0; }
.entete-page__grille {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: end;
}
.entete-page__portrait { align-self: end; }
.entete-page__portrait img {
  width: 100%;
  max-width: 480px;
  margin-left: auto;
  display: block;
}

@media (max-width: 860px) {
  .entete-page__grille { grid-template-columns: 1fr; align-items: start; }
  .entete-page__portrait img { max-width: 340px; margin-inline: auto; margin-top: 1.5rem; }
}

/* ---------------------------------------------------------
   Formulaire
   --------------------------------------------------------- */

.formulaire {
  display: grid;
  gap: 1.4rem;
  max-width: 46rem;
}
.formulaire__duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
  align-items: start;   /* sinon la colonne la plus haute étire sa voisine */
}

.champ { display: grid; gap: .5rem; align-content: start; }
.champ > label {
  font-family: var(--f-titre);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-texte);
}
.champ > label .requis { color: var(--c-accent); }
.champ__aide { font-size: .85rem; color: var(--c-texte-doux); }

.champ input,
.champ select,
.champ textarea {
  width: 100%;
  font-family: var(--f-corps);
  font-size: 1rem;
  color: var(--c-texte);
  background: var(--c-fond);
  border: 1px solid var(--c-filet);
  border-radius: 0;
  padding: .95rem 1rem;
  min-height: 48px;              /* confort tactile */
  transition: border-color .15s ease, box-shadow .15s ease;
}
.champ textarea { min-height: 9rem; resize: vertical; line-height: 1.6; }
.champ select { appearance: none; background-image: none; cursor: pointer; }

.champ input:hover,
.champ select:hover,
.champ textarea:hover { border-color: color-mix(in srgb, var(--c-texte) 35%, transparent); }

.champ input:focus,
.champ select:focus,
.champ textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: inset 0 0 0 1px var(--c-accent);
}

/* signalement d'erreur natif, sans JavaScript */
.champ input:not(:placeholder-shown):invalid,
.champ textarea:not(:placeholder-shown):invalid { border-color: var(--c-accent); }

.champ--consentement {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: .85rem;
}
.champ--consentement input {
  width: 22px; height: 22px;
  min-height: 0;
  margin-top: .2rem;
  accent-color: var(--c-accent);
  padding: 0;
}
.champ--consentement label {
  font-family: var(--f-corps);
  font-size: .92rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: var(--c-texte-doux);
  line-height: 1.55;
}
.champ--consentement a { color: var(--c-accent); text-decoration: underline; text-underline-offset: .15em; }

/* piège à robots : invisible pour l'humain, rempli par les automates */
.pot-de-miel {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.formulaire button { justify-self: start; }

@media (max-width: 560px) {
  .formulaire button { justify-self: stretch; width: 100%; justify-content: center; }
}

/* ---------------------------------------------------------
   Encart « terrain » (page fondateur)
   Occupe la colonne réservée à la photo urbaine, en attente
   du visuel client. Se supprime sans toucher au reste.
   --------------------------------------------------------- */

.terrain {
  background: var(--c-noir);
  color: #F5F5F4;
  padding: 2.25rem 2rem;
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 30px 100%, 0 calc(100% - 30px));
}
.terrain__titre {
  font-family: var(--f-titre);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 1.5rem;
}
.terrain__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.terrain__liste li {
  padding-left: 1.25rem;
  border-left: 2px solid var(--c-accent);
  color: #A8A8AD;
  font-size: .96rem;
  line-height: 1.5;
}
.terrain__liste span {
  display: block;
  font-family: var(--f-display);
  font-size: 1.05rem;
  text-transform: uppercase;
  color: #F5F5F4;
  margin-bottom: .15rem;
}
