/* ==========================================================================
   TN FORMATION — feuille de styles unique
   Identité « Signature » : Bleu nuit / Ivoire / Or · Fraunces (titres) + Instrument Sans (texte)
   ========================================================================== */

/* ---------- Polices (auto-hébergées, licence SIL OFL) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-latin-wght-italic.woff2") format("woff2");
  font-weight: 400 600; font-style: italic; font-display: swap;
}

/* Polices de secours ajustées aux mêmes proportions : évite les décalages
   de mise en page pendant le chargement des polices (Core Web Vitals / CLS) */
@font-face { font-family: "Fraunces Secours"; src: local("Georgia"); size-adjust: 97.4%; ascent-override: 100.4%; descent-override: 26.2%; line-gap-override: 0%; }
@font-face { font-family: "Instrument Secours"; src: local("Arial"), local("Helvetica"), local("Roboto"); size-adjust: 103.1%; ascent-override: 94.1%; descent-override: 24.2%; line-gap-override: 0%; }

/* ---------- Jetons de design ---------- */
:root {
  --nuit: #1B2A4A;          /* bleu nuit : couleur principale */
  --nuit-2: #26395F;
  --papier: #F7F4EE;        /* ivoire : fond principal */
  --lin: #EFE9DD;
  --brume: #E6E9EF;
  --ciel: #AEBBD3;          /* texte secondaire sur fond nuit */
  --ardoise: #5B6577;
  --or: #B8913A;            /* accent graphique uniquement (filets, repères) */
  --or-clair: #D4AF5F;      /* accent sur fond nuit */
  --or-fonce: #7D5C1B;      /* accent pour du texte : ≥ 4,5:1 sur fonds clairs */
  --erreur: #A3341B;        /* messages d'erreur des formulaires */
  --blanc: #FFFFFF;
  --trait: rgba(27, 42, 74, 0.16);
  --trait-clair: rgba(246, 243, 236, 0.18);

  --f-titre: "Fraunces", "Fraunces Secours", Georgia, serif;
  --f-texte: "Instrument Sans", "Instrument Secours", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-display: clamp(2.5rem, 1.55rem + 4.2vw, 4.75rem);
  --fs-h1: clamp(2.15rem, 1.5rem + 2.7vw, 3.6rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 1.7vw, 2.6rem);
  --fs-h3: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
  --fs-lead: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
  --fs-base: 1.0625rem;
  --fs-small: 0.9rem;
  --fs-eyebrow: 0.78rem;

  --gutter: 16px;
  --max: 1200px;
  --max-texte: 68ch;
  --section: clamp(4rem, 3rem + 5vw, 7.5rem);
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 640px) { :root { --gutter: 28px; } }
@media (min-width: 1024px) { :root { --gutter: 48px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1.5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--papier);
  color: var(--nuit);
  font: 400 var(--fs-base)/1.62 var(--f-texte);
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--or); }
strong { font-weight: 600; }
:focus-visible { outline: 3px solid var(--or-fonce); outline-offset: 3px; border-radius: 2px; }
.section--nuit :focus-visible, .site-footer :focus-visible, .resume-formation :focus-visible { outline-color: var(--or-clair); }
::selection { background: var(--ciel); color: var(--nuit); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--nuit); color: var(--papier); padding: .75rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--lin { background: var(--lin); }
.section--nuit { background: var(--nuit); color: var(--papier); }
.flow > * + * { margin-top: 1.25rem; }

/* ---------- Typographie ---------- */
.display, .h1, .h2 { font-family: var(--f-titre); font-weight: 480; font-optical-sizing: auto; letter-spacing: -0.022em; }
.display { font-size: var(--fs-display); line-height: 1.02; }
.h1 { font-size: var(--fs-h1); line-height: 1.06; }
.h2 { font-size: var(--fs-h2); line-height: 1.1; }
.h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.3; letter-spacing: -0.005em; }
.display em, .h1 em, .h2 em { font-style: normal; color: var(--or-fonce); }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ardoise); max-width: 46ch; }
.section--nuit .lead { color: #C8D0DE; }
.muted { color: var(--ardoise); }
.small { font-size: var(--fs-small); }

/* Surtitre : le carré Signal, motif récurrent de la marque */
.eyebrow {
  display: inline-flex; align-items: center; gap: .65rem;
  font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ardoise); margin-bottom: 1.25rem;
}
.eyebrow::before { content: ""; width: 1.75rem; height: 1.5px; background: var(--or); flex: none; }
.section--nuit .eyebrow { color: var(--ciel); }

.prose { max-width: var(--max-texte); }
.prose h2 { font-family: var(--f-titre); font-weight: 500; font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); line-height: 1.15; margin: 2.75rem 0 1rem; letter-spacing: -0.015em; }
.prose h3 { font-size: 1.1rem; font-weight: 600; margin: 2rem 0 .5rem; }
.prose ul, .prose ol { padding-left: 1.2rem; margin: 0 0 1em; }
.prose li + li { margin-top: .35em; }
.prose a { color: var(--or-fonce); }
.prose dl { display: grid; grid-template-columns: minmax(9rem, max-content) 1fr; gap: .4rem 1.5rem; margin: 0 0 1.5rem; }
.prose dt { font-weight: 600; }
.prose dd { margin: 0; }
@media (max-width: 559px) { .prose dl { grid-template-columns: 1fr; } .prose dd { margin-bottom: .6rem; } }

/* ---------- Boutons ---------- */
.btn {
  --bg: var(--nuit); --fg: var(--papier); --bd: var(--nuit);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .8rem 1.35rem;
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bd); border-radius: var(--radius);
  font: 600 1rem/1.2 var(--f-texte); letter-spacing: .005em; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { --bg: var(--nuit-2); --bd: var(--nuit-2); }
.btn .fleche { transition: transform .2s var(--ease); }
.btn:hover .fleche { transform: translateX(3px); }
.btn--ligne { --bg: transparent; --fg: var(--nuit); --bd: var(--trait); }
.btn--ligne:hover { --bg: transparent; --bd: var(--nuit); }
.btn--clair { --bg: var(--papier); --fg: var(--nuit); --bd: var(--papier); }
.btn--clair:hover { --bg: var(--blanc); --bd: var(--blanc); }
.btn--ligne-clair { --bg: transparent; --fg: var(--papier); --bd: var(--trait-clair); }
.btn--ligne-clair:hover { --bg: transparent; --bd: var(--papier); }
.btn[disabled] { opacity: .6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.lien-fleche { display: inline-flex; gap: .45rem; align-items: center; font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--or); padding-bottom: 2px; }
.lien-fleche:hover { color: var(--or-fonce); }

/* ---------- En-tête ---------- */
.site-header { position: relative; z-index: 20; border-bottom: 1px solid var(--trait); background: var(--papier); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.logo { display: inline-flex; text-decoration: none; }
.logo img { width: 196px; height: auto; }
@media (min-width: 1024px) { .logo img { width: 232px; } }

.nav-toggle {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: .5rem .8rem;
  background: none; border: 1.5px solid var(--trait); border-radius: var(--radius);
  font: 600 .95rem var(--f-texte); color: var(--nuit); cursor: pointer;
}
.nav-toggle__icone { width: 18px; height: 12px; position: relative; }
.nav-toggle__icone::before, .nav-toggle__icone::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .2s var(--ease), top .2s var(--ease); }
.nav-toggle__icone::before { top: 1px; }
.nav-toggle__icone::after { top: 9px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icone::before { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icone::after { top: 5px; transform: rotate(-45deg); }

.nav { display: none; }
.nav.is-open {
  display: block; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--papier); border-bottom: 1px solid var(--trait); padding: .5rem var(--gutter) 1.5rem;
  box-shadow: 0 24px 40px -24px rgba(27, 42, 74, .25);
}
.nav ul { list-style: none; padding: 0; margin: 0; }
.nav a { display: block; padding: .85rem 0; text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--trait); }
.nav a[aria-current="page"] { color: var(--or-fonce); }
.nav .nav__cta { margin-top: 1rem; border: 0; }
.nav a.btn, .nav a.btn[aria-current="page"] { color: var(--papier); border-bottom: 0; padding: .8rem 1.35rem; }
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .nav, .nav.is-open { display: block; position: static; padding: 0; border: 0; box-shadow: none; background: none; }
  .nav ul { display: flex; align-items: center; gap: 2rem; }
  .nav a { padding: .4rem 0; border: 0; font-size: .98rem; position: relative; }
  .nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px; background: var(--or); transition: right .25s var(--ease); }
  .nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { right: 0; }
  .nav a[aria-current="page"] { color: inherit; }
  .nav .nav__cta { margin: 0 0 0 .5rem; }
  .nav .btn { padding: .6rem 1.1rem; min-height: 44px; }
}

/* ---------- Accueil : héros ---------- */
.hero { padding-block: clamp(3rem, 2rem + 6vw, 7rem) clamp(3.5rem, 2rem + 6vw, 7rem); overflow: hidden; }
.hero__grid { display: grid; gap: 3rem; align-items: center; }
.hero__texte .lead { margin-top: 1.75rem; max-width: 40rem; }
.hero__texte .actions { margin-top: 2.25rem; }
.hero__visuel { position: relative; max-width: 520px; width: 100%; justify-self: center; }
@media (max-width: 959px) { .hero__visuel { max-width: 280px; justify-self: start; } }
.hero__visuel svg { width: 100%; }
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4rem; }
  .hero__visuel { justify-self: end; }
}

/* Bandeau de faits vérifiés */
.faits { border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); }
.faits__liste { display: grid; grid-template-columns: 1fr; margin: 0; padding: 0; }
.faits__item { padding: 1.5rem 0; border-bottom: 1px solid var(--trait); }
.faits__item:last-child { border-bottom: 0; }
.faits dt { font-size: var(--fs-eyebrow); letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--ardoise); margin-bottom: .45rem; }
.faits dd { margin: 0; font-weight: 500; line-height: 1.4; }
.faits dd a { font-weight: 600; }
@media (min-width: 720px) {
  .faits__liste { grid-template-columns: repeat(3, 1fr); }
  .faits__item { padding: 1.75rem 2rem 1.75rem 0; border-bottom: 0; }
  .faits__item + .faits__item { padding-left: 2rem; border-left: 1px solid var(--trait); }
}

/* En-têtes de section */
.section-tete { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
@media (min-width: 960px) { .section-tete--split { grid-template-columns: 5fr 7fr; align-items: end; gap: 4rem; } }

/* Mise en avant de la formation */
.offre { display: grid; gap: 2.5rem; border-top: 2px solid var(--nuit); padding-top: 2.5rem; }
.offre__titre { font-family: var(--f-titre); font-weight: 480; font-size: clamp(1.8rem, 1.3rem + 2vw, 2.9rem); line-height: 1.08; letter-spacing: -0.02em; }
.offre__meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.5rem; margin: 0; }
.offre__meta dt { font-size: var(--fs-eyebrow); letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--ardoise); }
.offre__meta dd { margin: .3rem 0 0; font-weight: 500; }
.offre--attente { border-top-style: dashed; border-top-color: var(--ardoise); }
.statut {
  display: inline-flex; align-items: center; gap: .5rem; font-size: var(--fs-small); font-weight: 600;
  padding: .35rem .75rem; border: 1px solid var(--trait); border-radius: 999px; background: var(--papier);
}
.statut::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--or); }
@media (min-width: 960px) { .offre { grid-template-columns: 7fr 5fr; gap: 4rem; } }

/* Principes (listes à filets, pas de cartes) */
.principes { list-style: none; padding: 0; display: grid; gap: 0; counter-reset: p; }
.principes li { padding: 1.75rem 0; border-top: 1px solid var(--trait); display: grid; gap: .6rem; }
.principes li:last-child { border-bottom: 1px solid var(--trait); }
.principes .h3 { display: flex; gap: .9rem; align-items: baseline; }
.principes .h3::before { counter-increment: p; content: "0" counter(p); font: 500 .85rem var(--f-texte); color: var(--or-fonce); letter-spacing: .05em; }
.principes p { color: var(--ardoise); max-width: 60ch; }
@media (min-width: 960px) {
  .principes { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
  .principes li, .principes li:last-child { border-bottom: 0; padding-top: 2rem; }
}

/* Étapes */
.etapes { list-style: none; padding: 0; display: grid; gap: 2rem; counter-reset: e; }
.etapes li { position: relative; padding-left: 4.25rem; }
.etapes li::before {
  counter-increment: e; content: counter(e);
  position: absolute; left: 0; top: -.35rem;
  font: 400 2.75rem/1 var(--f-titre); color: var(--ciel);
}
.etapes .h3 { margin-bottom: .4rem; }
.etapes p { color: #C8D0DE; }
@media (min-width: 900px) {
  .etapes { grid-template-columns: repeat(4, 1fr); gap: 2.5rem; }
  .etapes li { padding: 4.25rem 0 0; border-top: 1px solid var(--trait-clair); }
  .etapes li::before { top: 1.25rem; }
}

/* Bandeau contact */
.cta { position: relative; overflow: hidden; }
.cta__inner { position: relative; z-index: 1; display: grid; gap: 2rem; max-width: 46rem; margin-left: 0; }
.cta__motif { position: absolute; z-index: 0; right: max(var(--gutter), calc((100vw - var(--max)) / 2 - 20px)); top: 50%; transform: translateY(-50%); width: clamp(220px, 24vw, 340px); pointer-events: none; }
@media (max-width: 959px) { .cta__motif { display: none; } }

/* ---------- Pages intérieures ---------- */
.page-tete { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(2.5rem, 2rem + 2vw, 3.5rem); border-bottom: 1px solid var(--trait); }
.page-tete .lead { margin-top: 1.25rem; }
.fil { font-size: var(--fs-small); color: var(--ardoise); margin-bottom: 1.75rem; }
.fil ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.fil li + li::before { content: "/"; margin-right: .4rem; color: var(--ciel); }
.fil a { text-decoration: none; }
.fil a:hover { text-decoration: underline; }

.colonnes { display: grid; gap: 3rem; }
@media (min-width: 960px) { .colonnes { grid-template-columns: 4fr 8fr; gap: 5rem; } .colonnes--inverse { grid-template-columns: 8fr 4fr; } }
.colle { position: sticky; top: 2rem; align-self: start; }

.fiche { margin: 0; border-top: 1px solid var(--trait); }
.fiche > div { display: grid; gap: .3rem; padding: 1rem 0; border-bottom: 1px solid var(--trait); }
.fiche dt { font-size: var(--fs-small); color: var(--ardoise); }
.fiche dd { margin: 0; font-weight: 500; }
@media (min-width: 560px) { .fiche > div { grid-template-columns: 12rem 1fr; gap: 1.5rem; } }

.engagements { list-style: none; padding: 0; display: grid; gap: 0; }
.engagements li { display: grid; gap: .5rem; padding: 1.5rem 0 1.5rem 2rem; border-top: 1px solid var(--trait); position: relative; }
.engagements li::before { content: ""; position: absolute; left: 0; top: 2.2rem; width: 1rem; height: 1.5px; background: var(--or); }
.engagements p { color: var(--ardoise); }

.encadre { background: var(--brume); border-left: 3px solid var(--nuit); padding: 1.5rem 1.75rem; border-radius: 0 var(--radius) var(--radius) 0; }
.encadre--attention { background: #F8E7E1; border-left-color: var(--erreur); }

/* Fiche formation */
.formation-grille { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .formation-grille { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 5rem; } }
.resume-formation { background: var(--nuit); color: var(--papier); padding: 2rem; border-radius: var(--radius); }
.resume-formation .fiche, .resume-formation .fiche > div { border-color: var(--trait-clair); }
.resume-formation .fiche dt { color: var(--ciel); }
.resume-formation .fiche > div { grid-template-columns: 7.5rem 1fr; gap: 1rem; }
.resume-formation .btn { width: 100%; margin-top: 1.5rem; }
.sommaire { font-size: var(--fs-small); margin-top: 2rem; }
.sommaire ol { list-style: none; padding: 0; margin-top: .75rem; display: grid; gap: .35rem; }
.sommaire a { text-decoration: none; color: var(--ardoise); }
.sommaire a:hover { color: var(--nuit); text-decoration: underline; }
.bloc { padding-top: 2.5rem; margin-top: 2.5rem; border-top: 1px solid var(--trait); scroll-margin-top: 1.5rem; }
.bloc:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.bloc > h2 { font-family: var(--f-titre); font-weight: 500; font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); letter-spacing: -0.015em; margin-bottom: 1.25rem; }
.modules { list-style: none; padding: 0; counter-reset: m; }
.modules > li { padding: 1.25rem 0 1.25rem 3rem; border-top: 1px solid var(--trait); position: relative; }
.modules > li::before { counter-increment: m; content: counter(m, decimal-leading-zero); position: absolute; left: 0; top: 1.35rem; font: 600 .85rem var(--f-texte); color: var(--or-fonce); }
.modules .duree { color: var(--ardoise); font-size: var(--fs-small); margin-left: .5rem; font-weight: 400; }
.liste-coche { list-style: none; padding: 0; display: grid; gap: .6rem; }
.liste-coche li { padding-left: 1.6rem; position: relative; }
.liste-coche li::before { content: ""; position: absolute; left: 0; top: .62em; width: .8rem; height: 1.5px; background: var(--or); }
.bandeau-brouillon { background: var(--erreur); color: var(--blanc); text-align: center; padding: .6rem var(--gutter); font-weight: 600; font-size: var(--fs-small); }

/* ---------- Formulaire ---------- */
.form { display: grid; gap: 1.4rem; }
.form__ligne { display: grid; gap: 1.4rem; }
@media (min-width: 640px) { .form__ligne { grid-template-columns: 1fr 1fr; } }
.champ { display: grid; gap: .45rem; }
.champ label, .champ legend { font-weight: 600; font-size: .95rem; }
.champ .aide { font-size: var(--fs-small); color: var(--ardoise); }
.champ .requis { color: var(--erreur); }
.champ input, .champ select, .champ textarea {
  width: 100%; min-height: 50px; padding: .75rem .9rem;
  font: 400 1rem/1.4 var(--f-texte); color: var(--nuit);
  background: var(--blanc); border: 1.5px solid #A3ABBB; border-radius: var(--radius);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.champ textarea { min-height: 170px; resize: vertical; }
.champ select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--nuit) 50%), linear-gradient(135deg, var(--nuit) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.5rem; }
.champ input:hover, .champ select:hover, .champ textarea:hover { border-color: var(--ardoise); }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--nuit); box-shadow: 0 0 0 3px rgba(184, 145, 58, .55); }
.champ [aria-invalid="true"] { border-color: var(--erreur); }
.champ .erreur { color: var(--erreur); font-size: var(--fs-small); font-weight: 600; }
.champ .erreur:empty { display: none; }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__info { font-size: var(--fs-small); color: var(--ardoise); }
.message-form { padding: 1rem 1.25rem; border-radius: var(--radius); font-weight: 500; }
.message-form:empty { display: none; }
.message-form--erreur { background: #F8E7E1; border-left: 3px solid var(--erreur); }
.message-form--succes { background: var(--brume); border-left: 3px solid var(--nuit); }

/* ---------- Actualités ---------- */
.actus { list-style: none; padding: 0; display: grid; gap: 0; }
.actus li { padding: 1.75rem 0; border-top: 1px solid var(--trait); display: grid; gap: .5rem; }
.actus time { font-size: var(--fs-small); color: var(--ardoise); }
.actus a { text-decoration: none; }
.actus a:hover .h3 { text-decoration: underline; text-decoration-color: var(--or); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--nuit); color: var(--papier); padding-block: 4.5rem 2rem; font-size: .95rem; }
.site-footer a { color: inherit; text-decoration-color: rgba(246, 243, 236, .35); }
.site-footer a:hover { text-decoration-color: var(--or); }
.footer__grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--trait-clair); }
.footer__logo img { width: 200px; }
.footer__titre { font-size: var(--fs-eyebrow); letter-spacing: .14em; text-transform: uppercase; color: var(--ciel); font-weight: 600; margin-bottom: 1rem; }
.footer__liste { list-style: none; padding: 0; display: grid; gap: .55rem; }
.footer__legal { padding-top: 1.75rem; display: grid; gap: 1rem; color: #B7BECB; font-size: .85rem; }
@media (min-width: 900px) {
  .footer__grid { grid-template-columns: 5fr 3fr 3fr 3fr; gap: 3rem; }
  .footer__legal { grid-template-columns: 1fr auto; }
}

/* ---------- Divers ---------- */
.erreur-404 { min-height: 55vh; display: grid; align-content: center; }
.placeholder { background: #FFF3C4; outline: 1px dashed #A07800; padding: 0 .3em; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .site-footer, .cta, .nav-toggle { display: none !important; }
  body { background: #fff; }
}
.footer__descripteur { margin-top: 1.25rem; color: #B7BECB; }
.engagements--espace { margin: 2rem 0 1rem; }

/* Portrait du dirigeant (page À propos) */
.dirigeant { display: grid; gap: 1.5rem; align-items: start; }
.portrait { margin: 0; position: relative; max-width: 240px; }
.portrait::after { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1.5px solid var(--or); z-index: -1; }
.portrait img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; display: block; }
@media (min-width: 640px) { .dirigeant { grid-template-columns: 240px 1fr; gap: 2.5rem; } }

/* Domaines */
.domaines { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 2px solid var(--nuit); }
.domaine-item a { display: grid; gap: .6rem; padding: 2rem 0; border-bottom: 1px solid var(--trait); text-decoration: none; }
.domaine-item a:hover .domaine-titre { color: var(--or-fonce); }
.domaine-num { font: 500 .85rem var(--f-texte); color: var(--or-fonce); letter-spacing: .05em; }
.domaine-titre { font: 480 clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem)/1.1 var(--f-titre); letter-spacing: -.02em; transition: color .2s var(--ease); }
.domaine-item p { color: var(--ardoise); max-width: 62ch; }
@media (min-width: 960px) { .domaine-item a { grid-template-columns: 4rem 5fr 6fr; align-items: baseline; gap: 2rem; } .domaine-item .lien-fleche { grid-column: 3; justify-self: start; } }
.statut-ligne { margin-top: 1.25rem; }
.principes--domaine { grid-template-columns: 1fr !important; gap: 0 !important; margin-top: 2rem; }
.principes--domaine li { padding: 1.4rem 0 !important; border-bottom: 0 !important; }
.prose--espace, .h2--espace { margin-top: 3rem; }
.encadre--espace { margin-top: 2rem; }
/* Dirigeant sur l'accueil */
.accueil-dirigeant { display: grid; gap: 2.5rem; align-items: center; }
.portrait--grand { max-width: 360px; }
@media (min-width: 900px) { .accueil-dirigeant { grid-template-columns: 360px 1fr; gap: 5rem; } }
/* Lien sur fond nuit */
.etapes-lien { margin-top: 3rem; }
.lien-fleche--clair { color: var(--papier); border-bottom-color: var(--or-clair); }
.lien-fleche--clair:hover { color: var(--or-clair); }
/* FAQ */
.faq { border-top: 2px solid var(--nuit); }
.faq-item { border-bottom: 1px solid var(--trait); }
.faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1.5rem; padding: 1.4rem 0; font: 500 1.15rem/1.35 var(--f-texte); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font: 400 1.6rem/1 var(--f-titre); color: var(--or-fonce); flex: none; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .prose { padding: 0 0 1.6rem; color: var(--ardoise); }
.deroulement { margin-top: 1.5rem; margin-bottom: 3rem; }

.reperes { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1.25rem; margin: 1.75rem 0 0; }
.reperes > div { border-top: 1.5px solid var(--or); padding-top: .75rem; }
.reperes dt { font: 480 2rem/1.1 var(--f-titre); color: var(--nuit); }
.reperes dd { margin: .3rem 0 0; font-size: var(--fs-small); color: var(--ardoise); }
.reperes dt { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.8rem); }
.article-auteur { margin-top: 1rem; }
.resume-formation .eyebrow { color: var(--ciel); }
