/* D3F Furmazioni — feuille de style principale
   Charte : DM Sans (titres) + Lato (texte), orange #FF9410 / #FF6100, bleu #1BA6E1, marine #2E5E9E */

/* Polices hébergées sur le site (pas d'appel à Google Fonts : plus rapide et conforme RGPD) */
@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lato"; src: url("../fonts/lato-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lato"; src: url("../fonts/lato-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --blanc: #ffffff;
  --brume: #eaf6fc;
  --encre: #1d1e20;
  --encre-2: #55585e;
  --marine: #2e5e9e;
  --profond: #1f3b4d;
  --orange: #ff9410;
  --orange-action: #ff6100;
  --bleu: #1ba6e1;
  --trait: #d5dde4;
  --trait-sombre: #35556b;

  --titre: "DM Sans", system-ui, sans-serif;
  --texte: "Lato", system-ui, sans-serif;

  --page: 1240px;
  --marge: clamp(20px, 4vw, 48px);
  --section: clamp(64px, 9vw, 120px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--texte);
  font-size: 1.0625rem;           /* 17px */
  line-height: 1.6;
  color: var(--encre);
  background: var(--blanc);
}

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

a { color: var(--marine); }
a:hover { color: var(--encre); }

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

h1, h2, h3 { font-family: var(--titre); font-weight: 700; margin: 0; letter-spacing: -0.02em; line-height: 1.08; }
h1 { font-size: clamp(2.6rem, 6vw, 4.75rem); }            /* jusqu'à 76px */
h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); }            /* jusqu'à 44px */
h3 { font-size: 1.3125rem; letter-spacing: -0.01em; line-height: 1.25; }  /* 21px */
p { margin: 0; }

.lien-evitement {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--encre); color: var(--blanc); padding: 10px 16px; border-radius: 6px;
}
.lien-evitement:focus { top: 12px; }

/* Masqué à l'écran, lu par les lecteurs d'écran */
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.conteneur { width: 100%; max-width: var(--page); margin: 0 auto; padding-inline: var(--marge); }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border-radius: 999px;
  font-family: var(--titre); font-weight: 700; font-size: 1.1875rem; /* 19px, texte "large" pour le contraste */
  text-decoration: none; border: 2px solid transparent; cursor: pointer; white-space: nowrap;
}
.bouton--action { background: var(--orange-action); color: var(--blanc); }
.bouton--action:hover { background: #e65700; color: var(--blanc); }
.bouton--contour { border-color: var(--marine); color: var(--marine); background: transparent; }
.bouton--contour:hover { background: var(--marine); color: var(--blanc); }
.bouton--clair { border-color: var(--blanc); color: var(--blanc); }
.bouton--clair:hover { background: var(--blanc); color: var(--profond); }
.bouton[aria-disabled="true"] { background: #e3e5e8; color: var(--encre-2); pointer-events: none; }

/* ---------- En-tête ---------- */
.entete { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid var(--trait); }
.entete__ligne { display: flex; align-items: center; gap: 16px 32px; min-height: 84px; flex-wrap: wrap; }
.entete__logo img { height: 62px; width: auto; }
.entete__nav { flex: 1 1 auto; min-width: 0; }
.menu { display: flex; gap: 4px 26px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; flex: 1 1 auto; }
.menu a { color: var(--encre); text-decoration: none; font-size: 1rem; padding: 8px 0; display: inline-block; border-bottom: 2px solid transparent; }
.menu a:hover { border-bottom-color: var(--orange); }
.entete__contact { display: flex; align-items: center; gap: 18px; }
.entete__tel { font-family: var(--titre); font-weight: 700; color: var(--marine); text-decoration: none; font-size: 1.0625rem; }
.entete .bouton { min-height: 46px; padding: 0 22px; }

@media (max-width: 1080px) {
  .entete { position: static; }
  .entete__nav { order: 3; flex-basis: 100%; }
  .menu { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; gap: 22px; }
  .menu a { white-space: nowrap; }
  .entete__contact { margin-left: auto; }
}
@media (max-width: 560px) {
  .entete__ligne { min-height: 72px; padding-top: 8px; }
  .entete__logo img { height: 52px; }
  .entete__tel { display: none; }
}

/* ---------- Héros + carte ---------- */
.heros { padding-block: clamp(40px, 6vw, 80px) clamp(56px, 7vw, 96px); overflow: hidden; }
.heros__grille { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.heros h1 { max-width: 11ch; }
.heros__intro { font-size: 1.3125rem; line-height: 1.55; color: var(--encre-2); max-width: 34em; margin-top: 28px; }
.heros__actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 36px; }
.heros__tel { font-family: var(--titre); font-weight: 700; font-size: 1.25rem; color: var(--encre); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.heros__tel svg { color: var(--marine); }
.heros__preuve { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--trait); font-size: 0.9375rem; color: var(--encre-2); max-width: 40em; }
.heros__preuve strong { color: var(--encre); }

.carte { position: relative; }
.carte svg { width: 100%; height: auto; display: block; max-height: 700px; overflow: visible; }
.carte__ile { fill: var(--marine); }
.carte__route { fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 9; }
.carte__point { fill: var(--orange); stroke: var(--blanc); stroke-width: 3; }
.carte__point--centre { fill: var(--blanc); stroke: var(--orange); stroke-width: 6; }
.carte__nom { font-family: var(--titre); font-weight: 700; font-size: 19px; fill: var(--encre); }
.carte__nom--dedans { fill: var(--blanc); }
.carte__legende { font-family: var(--texte); font-size: 15px; fill: var(--encre-2); }
.carte__legende--dedans { fill: #d9e6f5; }

/* L'unique animation de la page : la tournée se dessine au chargement */
.carte__revele { stroke-dasharray: 1; stroke-dashoffset: 1; animation: tracer 2.6s 0.4s cubic-bezier(.45, 0, .2, 1) forwards; }
.carte__etape { opacity: 0; transform-box: fill-box; transform-origin: center; animation: poser 0.45s ease-out forwards; }
.carte__etape:nth-of-type(1) { animation-delay: 0.2s; }
.carte__etape:nth-of-type(2) { animation-delay: 0.7s; }
.carte__etape:nth-of-type(3) { animation-delay: 1.5s; }
.carte__etape:nth-of-type(4) { animation-delay: 2.2s; }
.carte__etape:nth-of-type(5) { animation-delay: 2.8s; }
@keyframes tracer { to { stroke-dashoffset: 0; } }
@keyframes poser { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .carte__revele { animation: none; stroke-dashoffset: 0; }
  .carte__etape { animation: none; opacity: 1; }
}

@media (max-width: 900px) {
  .heros__grille { grid-template-columns: 1fr; }
  .carte { max-width: 320px; margin-inline: auto; width: 100%; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--brume { background: var(--brume); }
.section--profonde { background: var(--profond); color: var(--blanc); }
.section--profonde a:not(.bouton) { color: var(--blanc); }
.section__tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 48px; margin-bottom: clamp(32px, 4vw, 48px); }
.section__tete p { color: var(--encre-2); max-width: 36em; margin-top: 14px; }
.lien-fort { font-family: var(--titre); font-weight: 700; font-size: 1.0625rem; text-decoration: none; color: var(--marine); border-bottom: 2px solid var(--orange); padding-bottom: 2px; }

/* ---------- Tableau des sessions ---------- */
.sessions { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sessions th { text-align: left; font-family: var(--texte); font-weight: 700; font-size: 0.875rem; color: var(--encre-2); padding: 0 16px 12px 0; border-bottom: 2px solid var(--encre); }
.sessions td { padding: 22px 16px 22px 0; border-bottom: 1px solid var(--trait); vertical-align: middle; }
.sessions td:last-child, .sessions th:last-child { padding-right: 0; text-align: right; }
.sessions__date { font-family: var(--titre); font-weight: 700; font-size: 1.75rem; line-height: 1.1; letter-spacing: -0.02em; white-space: nowrap; }
.sessions__annee { display: block; font-family: var(--texte); font-weight: 400; font-size: 0.875rem; letter-spacing: 0; color: var(--encre-2); margin-top: 4px; }
.sessions__formation { font-family: var(--titre); font-weight: 700; font-size: 1.1875rem; }
.sessions__formation a { color: var(--encre); text-decoration: none; }
.sessions__formation a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; }
.sessions__detail { display: block; color: var(--encre-2); font-size: 0.9375rem; }
.sessions__tarif { font-family: var(--titre); font-weight: 700; white-space: nowrap; }
.sessions td[data-col="duree"] { white-space: nowrap; }
.sessions__places { display: block; margin-top: 4px; font-size: 0.875rem; font-weight: 700; color: var(--marine); }
.sessions__places--complet { color: var(--encre-2); }
.sessions .bouton { min-height: 48px; padding: 0 22px; }
.sessions__vide td { padding: 32px 0; color: var(--encre-2); text-align: left !important; }

.sessions-a1 { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 28px; padding: 22px 26px; background: var(--brume); border-radius: 8px; }
.sessions-a1 p { max-width: 44em; }

@media (max-width: 820px) {
  .sessions thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sessions, .sessions tbody, .sessions tr, .sessions td { display: block; width: 100%; }
  .sessions tr { padding: 22px 0; border-bottom: 1px solid var(--trait); display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; }
  .sessions td { border: 0; padding: 0; }
  .sessions td:last-child { grid-column: 1 / -1; text-align: left; margin-top: 12px; }
  .sessions td[data-col="formation"] { grid-column: 1 / -1; order: -1; }
  .sessions td[data-col="date"] { grid-column: 1 / -1; order: -2; }
  .sessions td[data-col="lieu"]::before { content: "Lieu : "; color: var(--encre-2); }
  .sessions .bouton { width: 100%; }
}

/* ---------- Terrain (photo + plateformes) ---------- */
.terrain { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.terrain figure { margin: 0; }
.terrain img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 35%; border-radius: 8px; }
.terrain figcaption { font-size: 0.875rem; color: var(--encre-2); margin-top: 12px; }
.terrain__texte p { color: var(--encre-2); margin-top: 20px; font-size: 1.125rem; }
.villes { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--trait); }
.villes li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--trait); }
.villes strong { font-family: var(--titre); font-size: 1.125rem; }
.villes span { color: var(--encre-2); font-size: 0.9375rem; text-align: right; }
@media (max-width: 900px) { .terrain { grid-template-columns: 1fr; } }

/* ---------- Choisir sa formation ---------- */
.metiers { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--encre); }
.metier { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) auto; gap: 12px 40px; align-items: center; padding: 26px 0; border-bottom: 1px solid #c3d6e2; }
.metier h3 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); }
.metier__offres { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.metier__offres li { display: flex; flex-wrap: wrap; gap: 2px 14px; align-items: baseline; }
.metier__offres strong { font-family: var(--titre); font-size: 1.0625rem; min-width: 11.5em; }
.metier__offres span { color: var(--encre-2); font-size: 0.9375rem; }
.metier > a { font-family: var(--titre); font-weight: 700; color: var(--marine); text-decoration: none; white-space: nowrap; border-bottom: 2px solid var(--orange); }
.metier--aide { border-bottom: 0; }
.metier--aide h3 { color: var(--marine); }
@media (max-width: 820px) {
  .metier { grid-template-columns: 1fr; }
  .metier__offres strong { min-width: 0; }
  .metier > a { justify-self: start; }
}

/* ---------- Passerelle A1 ---------- */
.a1 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.a1 img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; }
.a1__etiquette { display: inline-flex; align-items: center; gap: 10px; font-family: var(--titre); font-weight: 700; font-size: 1rem; color: var(--orange); margin-bottom: 20px; }
.a1__etiquette svg { flex: none; }
.a1 p { color: #d3dde6; font-size: 1.125rem; margin-top: 20px; max-width: 34em; }
.a1__points { list-style: none; margin: 28px 0 36px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--trait-sombre); }
.a1__points li { padding: 16px 16px 0 0; }
.a1__points strong { display: block; font-family: var(--titre); font-size: 1.75rem; color: var(--blanc); letter-spacing: -0.02em; }
.a1__points span { font-size: 0.9375rem; color: #c4d2dd; }
@media (max-width: 900px) { .a1 { grid-template-columns: 1fr; } .a1 img { aspect-ratio: 16 / 10; } }
@media (max-width: 520px) { .a1__points { grid-template-columns: 1fr; } .a1__points li { padding: 12px 0; border-bottom: 1px solid var(--trait-sombre); } }

/* ---------- Financer + s'inscrire ---------- */
.financer { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.financer > div > p { color: var(--encre-2); margin-top: 16px; }
.statuts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.statut { min-height: 48px; padding: 0 20px; border-radius: 999px; border: 2px solid var(--marine); background: var(--blanc); color: var(--marine); font-family: var(--titre); font-weight: 700; font-size: 1rem; cursor: pointer; }
.statut[aria-pressed="true"] { background: var(--marine); color: var(--blanc); }
.piste { margin-top: 24px; padding: 28px; border-left: 4px solid var(--orange); background: var(--brume); border-radius: 0 8px 8px 0; }
.piste h3 { font-size: 1.5rem; }
.piste p { color: var(--encre-2); margin-top: 10px; }
.piste[hidden] { display: none; }
.cpf { margin-top: 20px; font-size: 0.9375rem; color: var(--encre-2); }
.cpf strong { color: var(--encre); }

.etapes { list-style: none; margin: 24px 0 0; padding: 0; counter-reset: etape; }
.etapes li { counter-increment: etape; display: grid; grid-template-columns: 52px 1fr; gap: 4px 16px; padding: 18px 0; border-bottom: 1px solid var(--trait); }
.etapes li::before { content: counter(etape); grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 50%; background: var(--encre); color: var(--blanc); font-family: var(--titre); font-weight: 700; display: grid; place-items: center; }
.etapes strong { font-family: var(--titre); font-size: 1.125rem; }
.etapes span { color: var(--encre-2); font-size: 0.9375rem; }
@media (max-width: 900px) { .financer { grid-template-columns: 1fr; } }

/* ---------- Preuve + équipe ---------- */
.preuve { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.chiffre { font-family: var(--titre); font-weight: 700; font-size: clamp(6rem, 14vw, 10.5rem); line-height: 0.85; letter-spacing: -0.05em; color: var(--marine); }
.chiffre small { font-size: 0.45em; letter-spacing: -0.02em; }
.preuve__titre { font-family: var(--titre); font-weight: 700; font-size: 1.75rem; line-height: 1.2; }
.preuve__note { color: var(--encre-2); font-size: 0.9375rem; margin-top: 12px; max-width: 32em; }
.reconnaissances { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 32px 0 0; border-top: 1px solid #c3d6e2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.reconnaissances img { height: 32px; width: auto; }
.reconnaissances .logo-renoperf, .reconnaissances .logo-qualibat, .reconnaissances .logo-bureau-veritas, .reconnaissances .logo-fonds-vert { height: 52px; }
@media (max-width: 820px) { .reconnaissances { justify-content: flex-start; gap: 20px 28px; } }
.qualiopi { margin-top: 24px; font-size: 0.9375rem; color: var(--encre-2); max-width: 52em; }
.qualiopi strong { color: var(--encre); }

.equipe { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); column-gap: 40px; border-top: 2px solid var(--encre); }
.personne { display: grid; grid-template-columns: 88px 1fr; gap: 20px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--trait); }
.personne img, .personne .personne__initiales { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.personne .personne__initiales { display: grid; place-items: center; background: var(--marine); color: var(--blanc); font-family: var(--titre); font-weight: 700; font-size: 1.5rem; }
.personne strong { font-family: var(--titre); font-size: 1.25rem; display: block; }
.personne span { color: var(--encre-2); font-size: 0.9375rem; display: block; }
.personne a { font-weight: 700; text-decoration: none; display: inline-block; margin-top: 4px; }
@media (max-width: 900px) { .preuve { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .personne { grid-template-columns: 80px 1fr; } .personne img, .personne .personne__initiales { width: 80px; height: 80px; } }

/* ---------- Rappel ---------- */
.rappel { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.rappel > div > p { color: #d3dde6; font-size: 1.125rem; margin-top: 18px; max-width: 30em; }
.coordonnees { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 10px; font-size: 1.0625rem; }
.coordonnees a { font-weight: 700; text-decoration: none; }
.formulaire { background: var(--blanc); color: var(--encre); border-radius: 8px; padding: clamp(24px, 3vw, 36px); display: grid; gap: 18px; }
.champ { display: grid; gap: 6px; }
.champ label { font-weight: 700; font-size: 0.9375rem; }
.champ input, .champ select { min-height: 52px; border: 1px solid #8a8f96; border-radius: 6px; padding: 0 14px; font: inherit; color: var(--encre); background: var(--blanc); width: 100%; }
.formulaire .bouton { width: 100%; }
.formulaire__note { font-size: 0.8125rem; color: var(--encre-2); }
.formulaire__retour { font-weight: 700; color: var(--marine); }
@media (max-width: 900px) { .rappel { grid-template-columns: 1fr; } }

/* ---------- Pied de page ---------- */
.pied { background: #142836; color: #c4d2dd; padding-block: 56px 32px; font-size: 0.9375rem; }
.pied__grille { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; }
.pied h2 { font-size: 1rem; letter-spacing: 0; color: var(--blanc); margin-bottom: 12px; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pied a { color: #c4d2dd; text-decoration: none; }
.pied a:hover { color: var(--blanc); text-decoration: underline; }
.pied__legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid #2a4456; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 0.8125rem; }
@media (max-width: 820px) { .pied__grille { grid-template-columns: 1fr 1fr; } .pied__grille > div:first-child { grid-column: 1 / -1; } }

/* ---------- Barre d'action mobile ---------- */
.barre-mobile { display: none; }
@media (max-width: 720px) {
  .barre-mobile {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--blanc); border-top: 1px solid var(--trait);
  }
  .barre-mobile .bouton { min-height: 50px; padding: 0 12px; font-size: 1.1875rem; }
  body { padding-bottom: 76px; }
}

/* =================================================================
   Pages intérieures
   ================================================================= */
.menu a[aria-current="page"] { border-bottom-color: var(--orange); font-weight: 700; }

.bandeau-beta { background: var(--profond); color: var(--blanc); font-weight: 700; font-size: 0.875rem; text-align: center; padding: 8px max(16px, env(safe-area-inset-left, 0px)) 8px max(16px, env(safe-area-inset-right, 0px)); }
.a-completer { background: #fff2c2; color: #5c4400; border-bottom: 2px dashed #c99500; padding: 0 4px; border-radius: 3px; font-weight: 700; }
.section--profonde .a-completer { color: #5c4400; }

/* Fil d'Ariane */
.fil ol { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 0.875rem; color: var(--encre-2); }
.fil li + li::before { content: "/"; margin-right: 10px; color: #a3aab2; }
.fil a { color: var(--encre-2); }

/* En-tête de page */
.tete { padding-block: clamp(28px, 4vw, 48px) clamp(40px, 5vw, 64px); }
.tete__grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.tete__grille--visuel { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.tete h1 { font-size: clamp(2.4rem, 5vw, 4rem); max-width: 16ch; }
.tete__nature { font-family: var(--titre); font-weight: 700; color: var(--marine); margin-bottom: 14px; }
.tete__sous { font-family: var(--titre); font-size: clamp(1.2rem, 2vw, 1.5rem); color: var(--encre); margin-top: 14px; max-width: 32em; line-height: 1.3; }
.tete__intro { font-size: 1.1875rem; color: var(--encre-2); margin-top: 20px; max-width: 40em; }
.tete__visuel { margin: 0; }
.tete__visuel img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 35%; border-radius: 8px; }
.tete__logo { display: flex; justify-content: flex-end; }
.tete__logo img { width: min(100%, 380px); height: auto; }
@media (max-width: 900px) { .tete__grille--visuel { grid-template-columns: 1fr; } .tete__logo { justify-content: flex-start; } .tete__logo img { width: min(100%, 260px); } }

/* Chiffres clés d'une formation */
.faits { margin: 0 0 clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border-top: 2px solid var(--encre); border-bottom: 1px solid var(--trait); }
.faits > div { padding: 18px 20px 20px 0; }
.faits dt { font-size: 0.875rem; color: var(--encre-2); }
.faits dd { margin: 4px 0 0; font-family: var(--titre); font-weight: 700; font-size: 1.1875rem; line-height: 1.3; }

.bloc { padding-top: 0; }
.bloc + .bloc { padding-top: var(--section); border-top: 1px solid var(--trait); }
.bloc__tete { margin-bottom: 28px; }
.bloc__tete h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); }
.sommaire { list-style: none; margin: 0 0 40px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.sommaire a { display: inline-flex; min-height: 44px; align-items: center; padding: 0 18px; border: 2px solid var(--marine); border-radius: 999px; font-family: var(--titre); font-weight: 700; text-decoration: none; }

/* Fiche : contenu + colonne de contact */
.fiche { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.fiche__corps { display: grid; gap: 40px; min-width: 0; }
.rubrique { min-width: 0; }
.rubrique h2 { font-size: 1.75rem; margin-bottom: 14px; }
.rubrique h3 { font-size: 1.25rem; margin: 20px 0 8px; }
.rubrique .bloc h3 { font-size: 1.5rem; }
.rubrique p + p { margin-top: 12px; }
.fiche__cote { position: sticky; top: 104px; }
.carte-contact { background: var(--brume); border-radius: 8px; padding: 28px; display: grid; gap: 14px; }
.carte-contact h2 { font-size: 1.375rem; }
.carte-contact p { color: var(--encre-2); }
.carte-contact__tel a { font-family: var(--titre); font-weight: 700; font-size: 1.5rem; color: var(--encre); text-decoration: none; }
.carte-contact .lien-fort { justify-self: start; }
.carte-contact h3 { font-size: 1.0625rem; margin-top: 10px; }
.equipe--compacte { grid-template-columns: 1fr; border-top: 1px solid #c3d6e2; }
.equipe--compacte .personne { grid-template-columns: 56px 1fr; gap: 14px; padding: 14px 0; border-bottom-color: #c3d6e2; }
.equipe--compacte .personne img, .equipe--compacte .personne .personne__initiales { width: 56px; height: 56px; font-size: 1.0625rem; }
.equipe--compacte .personne strong { font-size: 1.0625rem; }
@media (max-width: 1080px) { .fiche__cote { position: static; } }
@media (max-width: 900px) { .fiche { grid-template-columns: 1fr; } }

.liste-coches { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.liste-coches li { position: relative; padding-left: 30px; }
.liste-coches li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 14px; height: 8px; border-left: 3px solid var(--bleu); border-bottom: 3px solid var(--bleu); transform: rotate(-45deg); }

.programme { list-style: none; margin: 0; padding: 0; counter-reset: prog; border-top: 1px solid var(--trait); }
.programme li { counter-increment: prog; display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--trait); }
.programme li::before { content: counter(prog, decimal-leading-zero); grid-row: 1 / 3; font-family: var(--titre); font-weight: 700; font-size: 1.125rem; color: var(--marine); font-variant-numeric: tabular-nums; }
.programme strong { font-family: var(--titre); font-size: 1.125rem; }
.programme span { color: var(--encre-2); font-size: 0.9875rem; }

.encart { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding: 28px 32px; background: var(--profond); color: var(--blanc); border-radius: 8px; margin-bottom: var(--section); }
.encart h2 { font-size: 1.625rem; }
.encart p { color: #d3dde6; margin-top: 6px; max-width: 40em; }
.encart--plein { margin-bottom: 0; }

.colonnes-texte { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 40px clamp(40px, 6vw, 96px); }
.colonnes-texte h2 { font-size: 1.75rem; margin-bottom: 14px; }
.colonnes-texte p + p { margin-top: 12px; }
.grille-texte { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 32px 48px; margin-top: 28px; }
.section > .conteneur.grille-texte { margin-top: 0; }
.grille-texte h2 { font-size: 1.375rem; margin-bottom: 10px; }
.grille-texte h3 { font-size: 1.25rem; margin-bottom: 8px; }
.grille-texte p + p { margin-top: 10px; }
.gros-lien a { font-family: var(--titre); font-weight: 700; font-size: 1.375rem; color: var(--encre); text-decoration: none; overflow-wrap: anywhere; }
.vigilance { margin-top: 32px; padding: 18px 22px; border-left: 4px solid var(--orange); background: var(--blanc); border-radius: 0 8px 8px 0; color: var(--encre-2); }
.note { font-size: 0.9375rem; color: var(--encre-2); margin-top: 14px; }

.liste-simple { list-style: none; margin: 24px 0 0; padding: 0; border-top: 2px solid var(--encre); }
.liste-simple li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 4px 24px; padding: 16px 0; border-bottom: 1px solid #c3d6e2; }
.liste-simple strong { font-family: var(--titre); font-size: 1.125rem; }
.liste-simple strong a { color: var(--encre); }
.liste-simple span { color: var(--encre-2); }
@media (max-width: 640px) { .liste-simple li { grid-template-columns: 1fr; } }

/* Tableau des modules RenoPerf */
.tableau-defilant { overflow-x: auto; }
.tableau { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 560px; }
.tableau th, .tableau td { text-align: left; padding: 14px 14px 14px 0; border-bottom: 1px solid var(--trait); vertical-align: top; }
.tableau thead th { font-size: 0.875rem; color: var(--encre-2); border-bottom: 2px solid var(--encre); }
.tableau tbody th { font-family: var(--titre); font-weight: 700; }
.tableau tbody th a { color: var(--encre); text-decoration: none; }
.tableau tbody th span { display: block; font-family: var(--texte); font-weight: 400; font-size: 0.875rem; color: var(--encre-2); }
.tableau__ref { font-size: 0.8125rem; font-weight: 700; color: var(--marine); white-space: nowrap; }
.tableau__prix { font-family: var(--titre); font-weight: 700; white-space: nowrap; }

.module { border-bottom: 1px solid var(--trait); }
.module:first-of-type { border-top: 1px solid var(--trait); }
.module summary { cursor: pointer; padding: 16px 0; font-family: var(--titre); font-weight: 700; font-size: 1.0625rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; list-style: none; }
.module summary::-webkit-details-marker { display: none; }
.module summary::before { content: "+"; width: 20px; color: var(--marine); font-size: 1.25rem; line-height: 1; }
.module[open] summary::before { content: "–"; }
.module__meta { margin-left: auto; font-family: var(--texte); font-weight: 400; font-size: 0.9375rem; color: var(--encre-2); }
.module__sous { color: var(--encre-2); margin: 0 0 12px 32px; }
.module .liste-coches { margin: 0 0 20px 32px; }

/* Certifications */
.certifs { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--encre); }
.certifs > li { display: grid; grid-template-columns: 220px 1fr; gap: 20px 40px; padding: 28px 0; border-bottom: 1px solid var(--trait); align-items: start; }
.certifs h2 { font-size: 1.5rem; margin-bottom: 8px; }
.certif__logo { height: 52px; width: auto; }
.certif__logos { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.certif__logos .certif__logo { height: 30px; }
.certif__code { font-family: var(--titre); font-weight: 700; font-size: 1.75rem; color: var(--marine); }
@media (max-width: 720px) { .certifs > li { grid-template-columns: 1fr; } }

/* Actualités */
.articles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 0 56px; border-top: 2px solid var(--encre); }
.article { padding: 28px 0; border-bottom: 1px solid var(--trait); display: grid; gap: 12px; align-content: start; }
.article__date { font-weight: 700; color: var(--marine); font-size: 0.9375rem; }
.article h2 { font-size: 1.625rem; }
.article p { color: var(--encre-2); }
.article .lien-fort { justify-self: start; }

/* Pages de texte (mentions, CGV, confidentialité) */
.texte-long { max-width: 46em; }
.texte-long h2 { font-size: 1.5rem; margin: 36px 0 10px; }
.texte-long h2:first-child { margin-top: 0; }
.texte-long p + p { margin-top: 12px; }
.texte-long .liste-coches { margin-top: 10px; }

/* ---------- Retours client du 20/10 ---------- */
.heros__parcours { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 8px; font-size: 1.1875rem; line-height: 1.5; color: var(--encre-2); max-width: 34em; }
.heros__parcours strong { font-family: var(--titre); color: var(--encre); }
.heros__parcours + .heros__intro { margin-top: 14px; font-size: 1.1875rem; }
.metier__liens { display: grid; gap: 12px; justify-items: end; }
.metier__liens a { font-family: var(--titre); font-weight: 700; color: var(--marine); text-decoration: none; white-space: nowrap; border-bottom: 2px solid var(--orange); }
@media (max-width: 900px) { .metier__liens { justify-items: start; } }
.marque-a1 { display: inline-flex; align-items: center; gap: 12px; background: var(--blanc); color: var(--encre); border-radius: 999px; padding: 6px 18px 6px 8px; margin: 0 0 22px; font-size: 1rem; }
.a1 .marque-a1 { color: var(--encre); margin-top: 0; font-size: 1rem; }
.marque-a1 img { width: 40px; height: auto; aspect-ratio: auto; border-radius: 0; flex: none; }
.marque-a1 strong { font-family: var(--titre); }
.tete .marque-a1 { background: var(--brume); }
.programme-groupe { margin: 28px 0 4px; font-family: var(--titre); font-weight: 700; font-size: 1.125rem; color: var(--marine); }
.programme-groupe:first-of-type { margin-top: 0; }
.organisme { display: flex; align-items: center; gap: 14px; margin-top: 22px; font-size: 0.9375rem; color: var(--encre-2); }
.organisme img { height: 48px; width: auto; flex: none; }
.lien-pdf { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 900px) { .a1 { grid-template-columns: minmax(0, 1fr); } .a1 .bouton { white-space: normal; text-align: center; } }

.reconnaissances .logo-formation { height: 46px; }
.reconnaissances .logo-qualiopi { height: 64px; }
.certif__logo--qualiopi { height: 72px; width: auto; }
.tete__logo img[src*="formation-2026"] { width: min(100%, 280px); }

/* Bandeau cookies (actif seulement si la mesure Google est branchée) */
.cookies { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 720px; margin: 0 auto; background: var(--blanc); color: var(--encre); border: 1px solid var(--trait); border-radius: 12px; padding: 18px 20px; display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; box-shadow: 0 6px 24px rgba(29, 30, 32, 0.12); }
.cookies[hidden] { display: none; }
.cookies p { flex: 1 1 320px; font-size: 0.9375rem; color: var(--encre-2); }
.cookies__actions { display: flex; gap: 10px; }
@media (max-width: 760px) { .cookies { bottom: 84px; } }
.lien-cookies { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
@media (max-width: 600px) { .encart .bouton { white-space: normal; text-align: center; } }

/* Vidéos */
.videos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px; }
.video__cadre { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--encre); }
.video__cadre img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video__cadre iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__lancer { position: absolute; inset: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: transparent; border: 0; cursor: pointer; }
.video__lancer:hover svg path:first-child, .video__lancer:focus-visible svg path:first-child { fill: #ff0000; fill-opacity: 1; }
.video__lancer:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }
.video__titre { font-size: 1.25rem; margin-top: 16px; }
.video p { color: var(--encre-2); margin-top: 6px; }

/* Logos cliquables (reconnaissances, certifications) */
.reconnaissances a, .certif__marque a, .certif__logos a { display: block; border-radius: 6px; transition: opacity .15s; }
.reconnaissances a:hover, .certif__marque a:hover, .certif__logos a:hover { opacity: .75; }
.reconnaissances a:focus-visible, .certif__marque a:focus-visible, .certif__logos a:focus-visible { outline: 3px solid #ff6100; outline-offset: 4px; }
.reconnaissances a img, .certif__logos a img { max-width: none; display: block; }
.certif__marque a img { max-width: 100%; display: block; }
