/* ==========================================================================
   EXENIA — Composer le chantier
   Charte : jaune #FAE614 · gris #EFEFEE · noirs purs · Arial Narrow
   Typographie (charte) : GROS TITRES bold capitales (h1/h2) ·
   sous-titres bold minuscules (h3) · texte regular.
   ========================================================================== */

/* Archivo Narrow (police variable, OFL) — filet condensé fiable quand
   Arial Narrow est absente (Android, Linux). Auto-hébergée, zéro requête tierce.
   Ordre voulu : latin-ext d'abord, latin ensuite. Les deux plages se recouvrent
   (œ, U+0153) et c'est la dernière déclarée qui l'emporte : ainsi le français
   courant ne télécharge que le fichier latin. */
@font-face {
  font-family: "Archivo Narrow";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/archivo-narrow-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo Narrow";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/archivo-narrow-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --jaune: #fae614;
  --gris: #efefee;
  --noir: #000;
  --blanc: #fff;
  --encre: #111;
  --texte-doux: #3c3c3b;
  --ligne: #dcdcda;
  --ligne-forte: #cfcfcd;
  --font: "Arial Narrow", "Archivo Narrow", "Helvetica Neue Condensed", Arial, sans-serif;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(4.5rem, 9vw, 8rem);
}

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

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 96px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--encre);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
picture > source { display: none; } /* sinon <source> devient une case vide dans les grilles (bloc .fondateur) */
picture { display: contents; } /* <picture> transparent pour la mise en page : les règles « … img » s'appliquent comme avant */
a { color: inherit; }
figure { margin: 0; }
sup { font-size: 0.7em; line-height: 0; text-transform: none; } /* 12e, 16e : exposant qui ne décale pas l'interligne et reste en minuscule dans les lignes en capitales */

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

/* --------------------------------------------------------------------------
   Typographie
   -------------------------------------------------------------------------- */
h1, h2 {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  line-height: 1.05;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
h3 { font-weight: 700; font-size: 1.4rem; line-height: 1.2; margin: 0 0 0.45em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.surtitre {
  display: flex; align-items: center; gap: 0.75rem;
  font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 0.9rem;
  margin: 0 0 1.25rem;
}
.surtitre::before {
  content: ""; width: 2.25rem; height: 5px; background: var(--jaune); flex: none;
}
.surtitre .num { color: var(--texte-doux); font-weight: 400; letter-spacing: 0.08em; }
.surtitre--hero { font-size: 0.95rem; margin-bottom: 1.5rem; }

.intro { font-size: clamp(1.2rem, 1.8vw, 1.4rem); line-height: 1.5; color: var(--texte-doux); max-width: 48rem; }
.marque { background: linear-gradient(transparent 60%, var(--jaune) 60%); }

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font); font-size: 1.05rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em;
  text-decoration: none; text-align: center;
  padding: 1rem 1.9rem;
  border: 2px solid var(--noir);
  cursor: pointer;
  transition: background-color 0.18s, color 0.18s, transform 0.18s;
}
.btn:hover { transform: translateY(-2px); }
.btn-jaune { background: var(--jaune); color: var(--noir); }
.btn-jaune:hover { background: var(--noir); color: var(--jaune); }
.btn-ligne { background: transparent; }
.btn-ligne:hover { background: var(--noir); color: var(--blanc); }

/* --------------------------------------------------------------------------
   En-tête
   -------------------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ligne);
}
.header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px; gap: 1.5rem;
}
.header .logo { flex: none; }
.header .logo img { height: 46px; width: auto; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(1rem, 2vw, 1.9rem); align-items: center; }
.nav a {
  text-decoration: none; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; font-size: 0.92rem; padding: 0.35rem 0;
  border-bottom: 3px solid transparent; white-space: nowrap;
  transition: border-color 0.15s;
}
.nav a:hover, .nav a:focus-visible, .nav a[aria-current] { border-bottom-color: var(--jaune); }
.nav .sous { position: relative; }
.nav-sous-bouton {
  font: inherit; color: inherit; background: none; border: 0; cursor: pointer;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.92rem;
  padding: 0.35rem 0; border-bottom: 3px solid transparent; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 0.45rem; transition: border-color 0.15s;
}
.nav-sous-bouton::after {
  content: ""; border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}
.nav-sous-bouton:hover, .nav-sous-bouton:focus-visible, .nav-sous-bouton[aria-expanded="true"], .nav .sous.actif > .nav-sous-bouton { border-bottom-color: var(--jaune); }
.nav .sous-menu {
  display: none; position: absolute; top: calc(100% + 0.9rem); left: -1.1rem; z-index: 50;
  flex-direction: column; align-items: stretch; gap: 0; min-width: 20rem; padding: 0.4rem 0;
  background: var(--blanc); border: 1px solid var(--ligne); border-top: 4px solid var(--jaune);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.09);
}
.nav .sous-menu::before { content: ""; position: absolute; left: 0; right: 0; top: calc(-0.9rem - 5px); height: calc(0.9rem + 5px); }
.nav .sous:hover > .sous-menu, .nav .sous:focus-within > .sous-menu, .nav-sous-bouton[aria-expanded="true"] + .sous-menu { display: flex; }
.nav .sous-menu a { display: block; padding: 0.7rem 1.1rem; border-bottom: 0; text-transform: none; letter-spacing: 0; font-size: 1rem; }
.nav .sous-menu a:hover, .nav .sous-menu a:focus-visible { background: var(--gris); }
.nav .sous-menu a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--jaune); }

.menu-toggle {
  display: none; background: none; border: 2px solid var(--noir);
  width: 46px; height: 46px; cursor: pointer; padding: 0; flex: none;
  transition: background-color 0.15s;
}
.menu-toggle:hover { background: var(--jaune); }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 22px; height: 2px; background: var(--noir);
  margin: 0 auto; position: relative; content: "";
  transition: transform 0.15s, top 0.15s, background-color 0.15s;
}
.menu-toggle span::before { position: absolute; top: -7px; }
.menu-toggle span::after { position: absolute; top: 7px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* --------------------------------------------------------------------------
   Sections génériques
   -------------------------------------------------------------------------- */
.section { padding: var(--section) 0; }
.section-grise { background: var(--gris); }
.section-entete { max-width: 52rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { border-bottom: 1px solid var(--ligne); }
.hero .container {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: clamp(3rem, 7vw, 6rem);
}
.hero-texte { max-width: 40rem; }
.hero h1 { margin-bottom: 0.4em; }
.hero .intro { margin-bottom: 1.75rem; }
.hero-zone { font-weight: 700; font-size: 1.02rem; letter-spacing: 0.04em; margin-bottom: 2rem; }
.hero-zone span { border-bottom: 3px solid var(--jaune); padding-bottom: 2px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-media { position: relative; }
.hero-media img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.hero-media figcaption {
  position: absolute; left: 0; bottom: 0;
  background: var(--noir); color: var(--blanc);
  font-size: 0.88rem; letter-spacing: 0.05em;
  padding: 0.55rem 1rem;
}

/* --------------------------------------------------------------------------
   Bande clients
   -------------------------------------------------------------------------- */
.clients { border-bottom: 1px solid var(--ligne); padding: 2.25rem 0; }
.clients-titre {
  text-align: center; font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--texte-doux);
  margin: 0 0 1.4rem; line-height: 1.4;
}
.clients ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.9rem 0;
  overflow: hidden;
}
.clients li {
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em;
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  padding: 0 clamp(0.9rem, 2vw, 1.6rem);
  white-space: nowrap;
  border-left: 1px solid var(--ligne); margin-left: -1px;
}
.clients .clients-logos { align-items: center; gap: 1.5rem clamp(1.5rem, 4vw, 3.25rem); }
.clients .clients-logos li { border-left: 0; margin-left: 0; padding: 0; }
.clients-logos img { height: 2.5rem; width: auto; filter: grayscale(1); opacity: 0.82; transition: opacity 0.18s, filter 0.18s; }
.clients-logos .logo-carre img { height: 3.2rem; }
.clients-logos li:hover img { filter: none; opacity: 1; }
@media (max-width: 640px) {
  .clients-logos img { height: 1.9rem; }
  .clients-logos .logo-carre img { height: 2.5rem; }
}

/* --------------------------------------------------------------------------
   Chiffres clés
   -------------------------------------------------------------------------- */
.chiffres { background: var(--gris); }
.chiffres ul {
  list-style: none; margin: 0; padding: clamp(2.5rem, 5vw, 3.75rem) 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem);
}
.chiffres li { border-top: 5px solid var(--jaune); padding-top: 1.1rem; }
.chiffres strong {
  display: block; font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1;
  text-transform: uppercase; margin-bottom: 0.45rem;
}
.chiffres span { font-size: 1.02rem; color: var(--texte-doux); line-height: 1.4; display: block; }

/* --------------------------------------------------------------------------
   Offre — deux familles
   -------------------------------------------------------------------------- */
.offre-grille { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); }
.famille { background: var(--blanc); border-top: 6px solid var(--jaune); padding: clamp(1.75rem, 3vw, 2.75rem); }
.section:not(.section-grise) .famille { background: var(--gris); }
.famille > p { color: var(--texte-doux); }
.famille h3 { font-size: 1.65rem; }

/* --------------------------------------------------------------------------
   Composer le chantier (dessin interactif)
   -------------------------------------------------------------------------- */
.composer { border-top: 1px solid var(--ligne); }
.compo { position: relative; }
.compo-dessin { border: 1px solid var(--ligne); background: var(--blanc); }
.compo-scene { position: relative; }
.compo-dessin img { width: 100%; height: auto; display: block; }
.compo-dessin figcaption { font-size: 0.9rem; color: var(--texte-doux); padding: 0.6rem 0.9rem; border-top: 1px solid var(--ligne); }
.pastilles { list-style: none; margin: 0; padding: 0; }
.pastilles li { position: absolute; transform: translate(-50%, -50%); }
.pastilles [data-metier="ec"] { left: 20.5%; top: 84%; }
.pastilles [data-metier="bv"] { left: 61.6%; top: 43.8%; }
.pastilles [data-metier="ca"] { left: 32.3%; top: 76.8%; }
.pastilles [data-metier="gl"] { left: 48%; top: 78.2%; }
.pastilles [data-metier="gs"] { left: 43.5%; top: 57.7%; }
.pastilles [data-metier="pc"] { left: 31.7%; top: 67.7%; }
.pastilles [data-metier="en"] { left: 47%; top: 53.6%; }
.pastilles [data-metier="si"] { left: 15.3%; top: 35.7%; }
.pastilles [data-metier="gp"] { left: 59.5%; top: 37.8%; }
.pastille {
  position: relative; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  border: 2px solid var(--noir); background: var(--jaune); color: var(--noir);
  font-family: var(--font); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.04em; line-height: 1;
  cursor: pointer; padding: 0; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s, background-color 0.15s, color 0.15s;
}
.pastille:hover, .pastille:focus-visible { transform: scale(1.12); }
.pastille[aria-expanded="true"] { background: var(--noir); color: var(--jaune); }
.pastille[aria-expanded="true"]::after { content: ""; position: absolute; inset: -7px; border: 2px solid var(--jaune); border-radius: 50%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.compo-panneau { position: absolute; right: 1.25rem; bottom: 4.25rem; width: min(24rem, 42%); background: rgba(239, 239, 238, 0.96); border-top: 6px solid var(--jaune); padding: clamp(1.25rem, 2vw, 1.75rem); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14); }
.metier[hidden] { display: none; }
.metier-code { display: inline-block; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.12em; background: var(--jaune); padding: 0.2rem 0.55rem; margin: 0 0 0.9rem; }
.metier h3 { font-size: 1.45rem; }
.metier p { font-size: 1.02rem; }
.metier-aide { font-size: 0.95rem; color: var(--texte-doux); font-style: italic; }
.metier-lien { font-weight: 700; }
.prestations { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.05rem; }
.prestations li { padding-left: 1.6rem; position: relative; }
.prestations li::before {
  content: ""; position: absolute; left: 0; top: 0.5rem;
  width: 0.85rem; height: 0.4rem; background: var(--jaune);
}
.prestations b { display: block; font-size: 1.12rem; }
.prestations span { color: var(--texte-doux); font-size: 1.02rem; }

/* --------------------------------------------------------------------------
   Méthode — 4 étapes
   -------------------------------------------------------------------------- */
.etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); counter-reset: etape; }
.etapes li { counter-increment: etape; border-top: 1px solid var(--noir); padding-top: 1.25rem; position: relative; }
.etapes li::before {
  content: "0" counter(etape);
  display: block; font-weight: 700; font-size: 2.4rem; line-height: 1;
  margin-bottom: 0.6rem;
  background: linear-gradient(transparent 58%, var(--jaune) 58%);
  width: max-content; padding: 0 0.2rem 0.1rem 0;
}
.etapes h3 { font-size: 1.25rem; }
.etapes p { color: var(--texte-doux); font-size: 1.02rem; }
.methode-citation {
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem); font-weight: 700; line-height: 1.35;
  border-left: 6px solid var(--jaune); padding-left: 1.5rem; max-width: 46rem;
}
.methode-citation cite { display: block; font-style: normal; font-weight: 400; font-size: 1rem; color: var(--texte-doux); margin-top: 0.75rem; }

/* --------------------------------------------------------------------------
   Sites d'exception
   -------------------------------------------------------------------------- */
.exception .container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.exception-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.exception-media figcaption { font-size: 0.92rem; color: var(--texte-doux); margin-top: 0.6rem; }
.contextes { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 0.8rem; }
.contextes li { display: flex; gap: 0.85rem; align-items: baseline; font-size: 1.06rem; }
.contextes li::before { content: ""; flex: none; width: 0.85rem; height: 0.4rem; background: var(--jaune); transform: translateY(-3px); }
.contextes-conclusion { margin-top: 1.5rem; }

/* --------------------------------------------------------------------------
   Références — fiches alternées
   -------------------------------------------------------------------------- */
.reference {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center;
  padding: clamp(2.25rem, 4.5vw, 3.5rem) 0;
}
.reference + .reference { border-top: 1px solid var(--ligne); }
.reference:nth-of-type(even) .reference-media { order: 2; }
.reference-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.reference-meta {
  font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--texte-doux); margin-bottom: 0.8rem;
}
.reference h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.reference dl { margin: 1.25rem 0 0; display: grid; gap: 0.85rem; }
.reference dt {
  font-weight: 700; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.1em;
  border-left: 4px solid var(--jaune); padding-left: 0.6rem; margin-bottom: 0.2rem;
}
.reference dd { margin: 0; color: var(--texte-doux); font-size: 1.03rem; }

.mosaique-entete { margin-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--ligne); padding-top: clamp(2rem, 4vw, 3rem); }
.mosaique-entete h3 { letter-spacing: 0.02em; font-size: 1.25rem; }
.mosaique { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.5rem; }
.mosaique img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.mosaique figcaption { font-size: 0.88rem; color: var(--texte-doux); margin-top: 0.5rem; line-height: 1.35; }

/* --------------------------------------------------------------------------
   Bureau d'études & fabrication
   -------------------------------------------------------------------------- */
.be-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }
.be-carte { background: var(--blanc); padding: clamp(1.5rem, 2.5vw, 2.25rem); border-top: 6px solid var(--jaune); }
.section:not(.section-grise) .be-carte { background: var(--gris); }
.be-carte h3 { font-size: 1.3rem; }
.be-carte p { color: var(--texte-doux); font-size: 1.02rem; }
.be-carte .norme {
  display: inline-block; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em;
  background: var(--noir); color: var(--blanc); padding: 0.25rem 0.6rem; margin: 0.5rem 0.4rem 0 0;
}

/* --------------------------------------------------------------------------
   Sécurité & conformité
   -------------------------------------------------------------------------- */
.securite .container { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.docs { background: var(--blanc); border: 1px solid var(--ligne); padding: clamp(1.5rem, 3vw, 2.25rem); }
.docs h3 { font-size: 1.15rem; letter-spacing: 0.02em; }
.docs ul { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.7rem; }
.docs li { display: flex; gap: 0.75rem; align-items: baseline; font-size: 1.02rem; color: var(--texte-doux); }
.docs li::before { content: ""; flex: none; width: 0.85rem; height: 0.4rem; background: var(--jaune); transform: translateY(-2px); }
.docs .note { font-size: 0.92rem; margin-top: 1.25rem; color: var(--texte-doux); }

/* --------------------------------------------------------------------------
   Équipe
   -------------------------------------------------------------------------- */
.equipe-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.membre img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: grayscale(1); transition: filter 0.25s; }
.membre:hover img { filter: none; }
.membre-initiales {
  width: 100%; aspect-ratio: 1; display: grid; place-items: center;
  background: var(--gris); border: 1px solid var(--ligne);
  font-weight: 700; font-size: 3rem; letter-spacing: 0.05em; color: var(--texte-doux);
}
.membre h3 { font-size: 1.15rem; margin: 0.9rem 0 0.15rem; }
.membre .role { font-size: 0.95rem; font-weight: 700; color: var(--texte-doux); display: block; margin-bottom: 0.4rem; }
.membre p { font-size: 0.98rem; color: var(--texte-doux); margin: 0; }

.fondateur { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.fondateur img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.fondateur h3 { font-size: 1.4rem; }

/* --------------------------------------------------------------------------
   Témoignages
   -------------------------------------------------------------------------- */
.temoignages-grille { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); }
.temoignage { background: var(--blanc); padding: clamp(1.75rem, 3vw, 2.5rem); position: relative; }
.section:not(.section-grise) .temoignage { background: var(--gris); }
.temoignage::before {
  content: "«"; content: "«" / ""; position: absolute; top: -0.35em; left: 1.2rem;
  font-size: 4.5rem; font-weight: 700; line-height: 1; color: var(--jaune);
  -webkit-text-stroke: 1px var(--noir);
}
.temoignage blockquote { margin: 0.75rem 0 0; font-size: 1.3rem; font-weight: 700; line-height: 1.4; }
.temoignage figcaption { margin-top: 1.1rem; font-size: 0.98rem; color: var(--texte-doux); }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq { max-width: 52rem; }
.faq details { border-top: 1px solid var(--ligne); }
.faq details:last-child { border-bottom: 1px solid var(--ligne); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-weight: 700; font-size: 1.15rem; padding: 1.15rem 0.25rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; content: "+" / ""; flex: none; width: 1.9rem; height: 1.9rem;
  display: grid; place-items: center;
  background: var(--jaune); border: 2px solid var(--noir);
  font-size: 1.3rem; line-height: 1; transition: transform 0.2s, background-color 0.15s, color 0.15s;
}
.faq summary:hover::after { background: var(--noir); color: var(--jaune); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0.25rem 1.4rem; color: var(--texte-doux); max-width: 46rem; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact { background: var(--jaune); }
.contact .container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact .surtitre::before { background: var(--noir); }
.contact-coordonnees { display: grid; gap: 1.4rem; margin-top: 2rem; }
.contact-coordonnees .etiquette { display: block; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85rem; }
.contact-coordonnees a { font-size: 1.45rem; font-weight: 700; text-decoration: none; }
.contact-coordonnees a:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.engagement { font-weight: 700; font-size: 1.05rem; border-left: 5px solid var(--noir); padding-left: 0.9rem; margin-top: 2rem; }

.formulaire { background: var(--blanc); border: 2px solid var(--noir); padding: clamp(1.5rem, 3vw, 2.5rem); }
.formulaire .grille { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.champ { display: grid; gap: 0.35rem; margin: 0; }
.champ-large { grid-column: 1 / -1; }
.champ label { font-weight: 700; font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.06em; }
.champ input, .champ select, .champ textarea {
  font-family: var(--font); font-size: 1.05rem; color: var(--encre);
  border: 1px solid var(--noir); background: var(--blanc);
  padding: 0.75rem 0.85rem; border-radius: 0; width: 100%;
}
.champ ::placeholder { color: var(--texte-doux); opacity: 1; }
.champ textarea { resize: vertical; min-height: 130px; }
.champ input:focus-visible, .champ select:focus-visible, .champ textarea:focus-visible {
  outline: 3px solid var(--noir); outline-offset: 2px; box-shadow: 0 0 0 3px var(--jaune);
}
.formulaire button { width: 100%; margin-top: 1.25rem; }
.formulaire button[disabled] { opacity: 0.6; cursor: wait; transform: none; }
.formulaire .rgpd { font-size: 0.88rem; color: var(--texte-doux); margin: 0.9rem 0 0; }
.formulaire .obligatoire { font-size: 0.88rem; color: var(--texte-doux); margin: 0 0 1rem; }
.hp { position: absolute !important; left: -9999px !important; height: 1px; width: 1px; overflow: hidden; }

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */
.footer { background: var(--gris); color: var(--texte-doux); padding: clamp(2.5rem, 5vw, 3.5rem) 0 2rem; font-size: 1rem; }
.footer-grille { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; align-items: flex-start; }
.footer .logo-footer img { height: 60px; width: auto; }
.footer p { margin: 0.2rem 0; }
.footer a { color: var(--noir); }
.footer .footer-titre { margin: 0 0 0.5rem; font-weight: 700; font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--encre); }
.footer-bas { border-top: 1px solid var(--ligne-forte); margin-top: 2rem; padding-top: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.92rem; }
.footer-bas--seul { border-top: 0; margin-top: 0; padding-top: 0; }

/* --------------------------------------------------------------------------
   Pages annexes
   -------------------------------------------------------------------------- */
.page-texte { padding: clamp(3rem, 7vw, 5rem) 0; }
.page-texte .container { max-width: 840px; }
.page-texte h2 { font-size: 1.5rem; margin-top: 2.5rem; }

/* --------------------------------------------------------------------------
   Pages prestation (SEO)
   -------------------------------------------------------------------------- */
.page-presta { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3.5rem, 7vw, 5.5rem); }
.page-presta .container { max-width: 880px; }
.fil { font-size: 0.92rem; margin-bottom: 1.75rem; }
.fil a { color: var(--texte-doux); text-decoration: none; }
.fil a:hover { text-decoration: underline; text-decoration-color: var(--jaune); text-decoration-thickness: 3px; }
.page-presta h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.page-presta .chapo { font-size: clamp(1.15rem, 1.7vw, 1.3rem); color: var(--texte-doux); line-height: 1.55; margin-bottom: 2.25rem; }
.page-presta h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  margin-top: clamp(2.25rem, 4vw, 3rem);
  padding-top: 1.1rem;
  border-top: 4px solid var(--jaune);
}
.page-presta h3 { font-size: 1.15rem; margin-top: 1.5rem; }
.page-presta p, .page-presta li { color: var(--encre); }
.page-presta ul { margin: 0 0 1.1em; padding-left: 0; list-style: none; display: grid; gap: 0.55rem; }
.page-presta ul li { padding-left: 1.5rem; position: relative; }
.page-presta ul li::before { content: ""; position: absolute; left: 0; top: 0.52em; width: 0.8rem; height: 0.38rem; background: var(--jaune); }
.encart-refs { background: var(--gris); border-left: 6px solid var(--jaune); padding: 1.4rem 1.6rem; margin: 2rem 0; }
.encart-refs h2, .encart-refs h3 { border: 0; padding-top: 0; margin-top: 0; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.08em; }
.encart-refs ul { margin-bottom: 0; }
.cta-page { background: var(--jaune); padding: clamp(1.75rem, 3.5vw, 2.5rem); margin-top: clamp(2.5rem, 5vw, 3.5rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; }
.cta-page p { margin: 0; font-weight: 700; font-size: 1.15rem; max-width: 34rem; }
.faq-page details { border-top: 1px solid var(--ligne); }
.faq-page details:last-of-type { border-bottom: 1px solid var(--ligne); }
.faq-page summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 1.08rem; padding: 0.95rem 0.25rem; }
.faq-page summary::-webkit-details-marker { display: none; }
.faq-page details > div { padding: 0 0.25rem 1.2rem; color: var(--texte-doux); }
.page-presta .media-page { margin: 0.5rem 0 0; }
.page-presta .media-page img { display: block; width: 100%; height: auto; }
.page-presta .media-page figcaption { font-size: 0.9rem; color: var(--texte-doux); padding-top: 0.55rem; }
.cta-page .btn { background: var(--noir); color: var(--jaune); }
.cta-page .btn:hover { background: var(--blanc); color: var(--noir); }
.cta-actions { display: flex; flex-direction: column; align-items: center; gap: 0.7rem; }
.cta-tel { font-weight: 700; color: var(--noir); }

/* Tableau d'exemple (pages prestation) */
.tableau-cadre { overflow-x: auto; margin: 1.5rem 0; -webkit-overflow-scrolling: touch; }
.tableau { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 1rem; }
.tableau caption { text-align: left; font-size: 0.9rem; color: var(--texte-doux); padding: 0 0 0.6rem; caption-side: top; }
.tableau th, .tableau td { padding: 0.7rem 0.8rem; text-align: left; border-bottom: 1px solid var(--ligne); vertical-align: top; }
.tableau thead th { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; border-bottom: 3px solid var(--jaune); }
.tableau tbody th { font-weight: 700; }
.tableau tbody tr:nth-child(even) { background: var(--gris); }

/* Page 404 : liens de repli */
.liens-repli { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 0.6rem; max-width: 32rem; }
.liens-repli li { padding-left: 1.5rem; position: relative; }
.liens-repli li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 0.8rem; height: 0.38rem; background: var(--jaune); }
.liens-repli a { font-weight: 700; text-decoration: none; }
.liens-repli a:hover { text-decoration: underline; text-decoration-color: var(--jaune); text-decoration-thickness: 3px; }

/* Guide compte prorata : sommaire */
.sommaire { background: var(--gris); border-left: 6px solid var(--jaune); padding: 1.4rem 1.6rem; margin: 2rem 0; }
.sommaire-titre { margin: 0 0 0.6rem; font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; }
.sommaire ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2.5rem; }
.sommaire li { padding: 0.15rem 0; break-inside: avoid; }
.sommaire a { text-decoration: none; font-weight: 700; }
.sommaire a:hover { text-decoration: underline; text-decoration-color: var(--jaune); text-decoration-thickness: 3px; }

/* Guide compte prorata : simulateur de répartition */
.simu { background: var(--gris); padding: clamp(1.4rem, 3vw, 2rem); margin: 1.5rem 0 2rem; }
.simu-lot { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 0.6rem; margin-bottom: 0.6rem; }
.simu-lot[hidden] { display: none; }
.simu input { border: 1px solid var(--ligne); background: var(--blanc); padding: 0.6rem 0.75rem; font: inherit; width: 100%; }
.simu input:focus { outline: 3px solid var(--jaune); outline-offset: -1px; }
.simu-bas { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 0.6rem; align-items: center; margin: 1rem 0; }
.simu-bas label { font-weight: 700; }
.simu .simu-ajout { background: var(--noir); color: var(--jaune); }
.simu .simu-ajout:hover { background: var(--blanc); color: var(--noir); }
.simu-resultat { margin-top: 1rem; }
.simu-resultat .tableau { background: var(--blanc); }
.simu-resultat .tableau tbody tr:nth-child(even) { background: var(--blanc); }
.simu-note { font-size: 0.9rem; color: var(--texte-doux); }
@media (max-width: 640px) {
  .sommaire ol { columns: 1; }
  .simu-lot, .simu-bas { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Valeurs (accueil) : le logo et les trois principes
   -------------------------------------------------------------------------- */
.valeurs .container { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.valeurs-signe { display: grid; justify-items: center; gap: 1rem; }
.valeurs-signe img { width: min(100%, 300px); height: auto; }
.valeurs-signe figcaption { font-size: 0.95rem; color: var(--texte-doux); text-align: center; max-width: 24rem; }
.valeurs-grille { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); margin-top: 1.5rem; }
.valeur { border-top: 1px solid var(--noir); padding-top: 1.1rem; }
.valeur h3 { font-size: 1.3rem; display: flex; align-items: center; gap: 0.75rem; }
.valeur h3::before { content: ""; width: 0.85rem; height: 0.85rem; background: var(--jaune); border: 2px solid var(--noir); flex: none; }
.valeur p { color: var(--texte-doux); font-size: 1.02rem; }

/* --------------------------------------------------------------------------
   Accessibilité & préférences
   -------------------------------------------------------------------------- */
:focus-visible { outline: 3px solid var(--noir); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--jaune); padding: 0.6rem 1.1rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .membre img, .nav a, .menu-toggle, .menu-toggle span, .faq summary::after, .pastille { transition: none; }
  .btn:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
/* Entre 1021 et 1280 px, le panneau flottant recouvrirait les pastilles BV et GP :
   il passe sous le dessin. */
@media (max-width: 1280px) {
  .compo-panneau { position: static; width: auto; margin-top: 1.25rem; background: var(--gris); box-shadow: none; }
}

@media (max-width: 1020px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 80px; left: 0; right: 0;
    background: var(--blanc); border-bottom: 1px solid var(--ligne);
    display: none;
  }
  .nav.ouvert { display: block; max-height: calc(100dvh - 80px); overflow-y: auto; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem var(--gutter) 1.25rem; }
  .nav li a { display: block; padding: 0.9rem 0; border-bottom: 1px solid var(--gris); }
  .nav .sous-menu { display: flex; position: static; min-width: 0; padding: 0 0 0.4rem 1rem; border: 0; box-shadow: none; background: none; }
  .nav .sous-menu::before { content: none; }
  .nav-sous-bouton { display: block; width: 100%; text-align: left; padding: 0.9rem 0; border-bottom: 1px solid var(--gris); cursor: default; }
  .nav-sous-bouton::after { content: none; }
  .nav .sous-menu a { padding: 0.75rem 0; border-bottom: 1px solid var(--gris); font-weight: 400; }
  .nav .sous-menu a:hover { background: none; }

  .hero .container { grid-template-columns: 1fr; }
  .hero-media img { min-height: 0; aspect-ratio: 16 / 10; }
  .offre-grille, .temoignages-grille { grid-template-columns: 1fr; }
  .pastille { width: 1.75rem; height: 1.75rem; font-size: 0.66rem; border-width: 1.5px; }
  .pastilles [data-metier="bv"] { left: 63.5%; top: 47.5%; }
  .pastilles [data-metier="gs"] { left: 41%; top: 61%; }
  .be-grille { grid-template-columns: 1fr; }
  .etapes { grid-template-columns: 1fr 1fr; }
  .chiffres ul { grid-template-columns: 1fr 1fr; }
  .exception .container, .securite .container, .contact .container, .valeurs .container { grid-template-columns: 1fr; }
  .valeurs-signe img { width: min(100%, 200px); }
  .reference { grid-template-columns: 1fr; }
  .reference:nth-of-type(even) .reference-media { order: 0; }
  .fondateur { grid-template-columns: 1fr; }
  .fondateur img { max-width: 340px; }
  .mosaique { grid-template-columns: repeat(2, 1fr); }
  .footer p a { display: inline-block; padding: 0.2rem 0; } /* cibles tactiles d'au moins 24 px de haut */
}

@media (max-width: 640px) {
  .header .container { height: 72px; }
  .header .logo img { height: 38px; }
  .nav { top: 72px; }
  .nav.ouvert { max-height: calc(100dvh - 72px); }
  .etapes { grid-template-columns: 1fr; }
  .chiffres ul { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .formulaire .grille { grid-template-columns: 1fr; }
  .clients li { border-left: 0; }
  .hero-actions .btn { flex: 1 1 100%; }
  .mosaique { gap: 0.75rem; }
}
