/* ------------------------------------------------------------------
   pages.css — feuille de style des pages publiques statiques
   (/la-certification, /organismes-de-formation, /financement, /faq)

   Ces pages sont du HTML pur, servi directement par Vercel : Google les
   lit sans exécuter de JavaScript, et elles s'affichent instantanément.
   Elles reprennent la charte de l'application React (minimalisme suisse,
   bleu Klein #002FA7, angles droits, Cabinet Grotesk + IBM Plex).
   ------------------------------------------------------------------ */

:root {
  --bleu: #002FA7;
  --bleu-fonce: #00227A;
  --rouge: #FF3B30;
  --noir: #121212;
  --gris: #6B7280;
  --gris-clair: #F4F6FB;
  --trait: rgba(0, 0, 0, 0.1);
  --largeur: 1120px;
}

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

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

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--noir);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01', 'cv11';
}

h1, h2, h3, h4 {
  font-family: 'Cabinet Grotesk', 'IBM Plex Sans', sans-serif;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
  font-weight: 800;
}

p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
li { margin-bottom: 0.45em; }
img, svg { max-width: 100%; height: auto; }

a { color: var(--bleu); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: var(--bleu); color: #fff; }

.mono {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.wrap {
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- En-tête --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--trait);
}
.site-header .wrap {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.marque {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.03em;
  color: var(--noir);
}
.marque:hover { text-decoration: none; }
.marque sup { color: var(--bleu); font-size: 0.6em; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}
.site-nav a { color: var(--noir); }
.site-nav a:hover { color: var(--bleu); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--bleu); font-weight: 600; }
@media (max-width: 900px) { .site-nav { display: none; } }

.bouton-fin {
  border: 1px solid var(--noir);
  padding: 9px 16px;
  font-size: 14px;
  color: var(--noir);
  white-space: nowrap;
  transition: background 150ms ease, color 150ms ease;
}
.bouton-fin:hover { background: var(--noir); color: #fff; text-decoration: none; }

/* --- Bandeau d'ouverture --- */
.hero { border-bottom: 1px solid var(--trait); }
.hero .wrap { padding-top: 72px; padding-bottom: 64px; }

.etiquette {
  display: inline-block;
  border: 1px solid var(--bleu);
  color: var(--bleu);
  padding: 5px 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

.hero h1 {
  margin-top: 30px;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  letter-spacing: -0.04em;
  max-width: 17ch;
}
.chapo {
  margin-top: 28px;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  line-height: 1.6;
  color: #374151;
  max-width: 62ch;
}

/* --- Chiffres clés --- */
.chiffres {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--trait);
  gap: 0;
}
@media (max-width: 720px) { .chiffres { grid-template-columns: repeat(2, 1fr); } }
.chiffres > div { padding: 30px 24px 30px 0; }
.chiffres .n {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-weight: 800;
  font-size: 2.3rem;
  color: var(--bleu);
  line-height: 1;
}
.chiffres .t { margin-top: 8px; font-size: 14px; color: var(--gris); line-height: 1.4; }

/* --- Sections --- */
section { border-bottom: 1px solid var(--trait); }
section.sombre { background: var(--noir); color: #fff; border-bottom: none; }
section.sombre h2, section.sombre h3 { color: #fff; }
section.sombre p, section.sombre li { color: #C9CDD4; }
section.sombre .num { color: var(--rouge); }
section.sombre a { color: #fff; text-decoration: underline; }

.grille {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  padding: 80px 0;
}
@media (max-width: 900px) { .grille { grid-template-columns: 1fr; gap: 24px; padding: 56px 0; } }

.num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--bleu);
}
.grille h2 { margin-top: 12px; font-size: clamp(1.8rem, 3.6vw, 2.5rem); }

/* --- Cartes --- */
.cartes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--trait);
  border: 1px solid var(--trait);
  margin-top: 36px;
}
@media (max-width: 720px) { .cartes { grid-template-columns: 1fr; } }
.carte { background: #fff; padding: 26px; }
.carte .code { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--bleu); }
.carte h3 { margin-top: 8px; font-size: 1.22rem; font-weight: 700; }
.carte ul { margin-top: 16px; margin-bottom: 0; padding: 0; list-style: none; }
.carte li {
  padding-left: 14px;
  border-left: 2px solid rgba(0, 47, 167, 0.3);
  font-size: 14.5px;
  color: #374151;
  margin-bottom: 10px;
  line-height: 1.5;
}

/* --- Listes de définitions --- */
.defs { border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); }
.defs > div {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--trait);
}
.defs > div:last-child { border-bottom: none; }
@media (max-width: 720px) { .defs > div { grid-template-columns: 1fr; gap: 4px; } }
.defs dt { font-weight: 600; }
.defs dd { margin: 0; color: #374151; }

/* --- Encadré --- */
.encadre {
  background: var(--gris-clair);
  padding: 26px;
  margin-top: 40px;
  border-left: 3px solid var(--bleu);
}
.encadre h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.encadre p:last-child { margin-bottom: 0; }
.encadre p { font-size: 15px; color: #374151; }

/* --- Étapes numérotées --- */
.etapes { counter-reset: etape; list-style: none; padding: 0; margin-top: 32px; }
.etapes > li {
  counter-increment: etape;
  position: relative;
  padding: 0 0 26px 58px;
  margin: 0;
  border-left: 1px solid var(--trait);
}
.etapes > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.etapes > li::before {
  content: counter(etape, decimal-leading-zero);
  position: absolute;
  left: -17px;
  top: 0;
  width: 34px;
  height: 34px;
  background: var(--bleu);
  color: #fff;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.etapes h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.etapes p { font-size: 15px; color: #374151; margin-bottom: 0; }

/* --- Boutons d'action --- */
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.cta {
  background: var(--bleu);
  color: #fff;
  padding: 15px 26px;
  font-size: 15px;
  font-weight: 500;
  display: inline-block;
}
.cta:hover { background: var(--bleu-fonce); text-decoration: none; }
.cta-secondaire {
  border: 1px solid var(--noir);
  color: var(--noir);
  padding: 15px 26px;
  font-size: 15px;
  font-weight: 500;
  display: inline-block;
  transition: background 150ms ease, color 150ms ease;
}
.cta-secondaire:hover { background: var(--noir); color: #fff; text-decoration: none; }

/* --- Questions / réponses --- */
.qr { border-top: 1px solid var(--trait); margin-top: 32px; }
.qr details {
  border-bottom: 1px solid var(--trait);
  padding: 0;
}
.qr summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 40px 20px 0;
  position: relative;
  font-family: 'Cabinet Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.qr summary::-webkit-details-marker { display: none; }
.qr summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 17px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.3rem;
  color: var(--bleu);
}
.qr details[open] summary::after { content: '–'; }
.qr summary:hover { color: var(--bleu); }
.qr .reponse { padding: 0 40px 22px 0; color: #374151; font-size: 15.5px; }
.qr .reponse p:last-child { margin-bottom: 0; }

/* --- Navigation entre pages --- */
.suite { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--trait); border-top: 1px solid var(--trait); }
@media (max-width: 720px) { .suite { grid-template-columns: 1fr; } }
.suite a {
  background: #fff;
  padding: 28px 24px;
  color: var(--noir);
  display: block;
  transition: background 150ms ease;
}
.suite a:hover { background: var(--gris-clair); text-decoration: none; }
.suite .mono { color: var(--bleu); }
.suite strong {
  display: block;
  margin-top: 8px;
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.suite span { display: block; margin-top: 6px; font-size: 14px; color: var(--gris); }

/* --- Pied de page --- */
.site-footer { border-top: 1px solid var(--trait); }
.site-footer .wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  padding-top: 42px;
  padding-bottom: 42px;
  font-size: 14px;
  color: var(--gris);
}
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr; } }
.site-footer strong { color: var(--noir); font-family: 'IBM Plex Sans', sans-serif; font-weight: 600; }
.site-footer .liens { display: flex; flex-direction: column; gap: 7px; font-size: 13px; }
.site-footer .liens a { color: var(--gris); }
.site-footer .liens a:hover { color: var(--noir); }
.site-footer .note { margin-top: 10px; font-size: 12px; color: #9CA3AF; }

/* --- Accessibilité --- */
.lien-evitement {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bleu);
  color: #fff;
  padding: 12px 18px;
  z-index: 100;
}
.lien-evitement:focus { left: 0; }

a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--bleu);
  outline-offset: 3px;
}

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