/* ==========================================================================
   Racines d'Avenir — styles communs
   La mise en page de chaque section est portée par le balisage (fidèle à la
   maquette) ; ce fichier contient la base, les composants partagés et les
   états interactifs.

   Palette
     --vert-foret  #0F4D35   texte fort, fonds sombres
     --vert-sauge  #4E7F68   texte secondaire
     --vert-brume  #E6EDE6   fonds doux, pastilles d'icônes
     --ligne       #CFDCCF   filets
     --soleil      #F2B134   accent
     --creme       #F7F5EC   fond de page
     --papier      #FFFDF7   cartes
     --encre       #253A30   texte courant
   ========================================================================== */

:root {
  --vert-foret: #0F4D35;
  --vert-sauge: #4E7F68;
  --vert-brume: #E6EDE6;
  --ligne: #CFDCCF;
  --soleil: #F2B134;
  --creme: #F7F5EC;
  --papier: #FFFDF7;
  --encre: #253A30;
}

/* Base (reprise de la maquette) */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--encre);
  font-family: 'Poppins', sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, blockquote { margin: 0; }
main ::placeholder { color: #6b8478; }
a { color: var(--vert-foret); }
a:hover { color: var(--vert-sauge); }
:focus-visible { outline: 3px solid var(--soleil); outline-offset: 3px; }
img { max-width: 100%; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 100;
  padding: 12px 20px; border-radius: 999px;
  background: var(--soleil); color: var(--vert-foret);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* --------------------------------------------------------------------------
   En-tête : pilule desktop ≥ 1360 px, bouton menu en dessous
   -------------------------------------------------------------------------- */
.hdr-pill {
  width: 100%;
  box-shadow: 0 12px 30px -22px rgba(15,77,53,.4);
  transition: box-shadow .3s;
}
.site-header.is-scrolled .hdr-pill { box-shadow: 0 18px 40px -18px rgba(15,77,53,.45); }
.hdr-desktop { display: none; }
.hdr-mobile { display: flex; }
.hdr-menu { display: flex; }

@media (min-width: 1360px) {
  nav.hdr-desktop { display: flex; }
  a.hdr-desktop { display: inline-flex; }
  .hdr-mobile, .hdr-menu { display: none !important; }
}

/* --------------------------------------------------------------------------
   Emplacements photo
   Une photo déposée dans src/assets/photos/<id>.jpg remplace l'emplacement.
   -------------------------------------------------------------------------- */
.img-slot {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  font: 13px/1.3 system-ui, -apple-system, sans-serif;
}
.img-slot__frame {
  position: absolute; inset: 0; overflow: hidden;
  background: rgba(127,127,127,.08);
}
.img-slot--circle .img-slot__frame,
.img-slot--circle .img-slot__ring { border-radius: 50%; }
.img-slot__frame img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.img-slot--contain .img-slot__frame img { object-fit: contain; padding: 12px 24px; }
.img-slot--filled .img-slot__frame { background: none; }
.img-slot__empty {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 12px; text-align: center;
}
.img-slot__empty svg { opacity: .45; }
.img-slot__cap { max-width: 90%; font-weight: 500; letter-spacing: .01em; opacity: .75; }
.img-slot__ring {
  position: absolute; inset: 0; pointer-events: none;
  border: 1.5px dashed currentColor; opacity: .35;
}

/* --------------------------------------------------------------------------
   Pastilles de filtre / sélection
   -------------------------------------------------------------------------- */
.chip {
  min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1.5px solid var(--ligne);
  background: transparent; color: var(--vert-foret);
  font: inherit; font-size: 14px; font-weight: 500;
  cursor: pointer; white-space: nowrap;
  transition: all .2s;
}
.chip--paper { background: var(--creme); }
.chip:hover { border-color: var(--vert-foret); }
.chip[aria-pressed="true"] {
  border-color: var(--vert-foret);
  background: var(--vert-foret);
  color: var(--papier);
}

/* --------------------------------------------------------------------------
   Carrousel des filières (accueil)
   -------------------------------------------------------------------------- */
.rail::-webkit-scrollbar { display: none; }

/* --------------------------------------------------------------------------
   Programme en accordéon (fiche formation)
   -------------------------------------------------------------------------- */
.acc__num { color: var(--vert-sauge); }
.acc__btn { background: var(--vert-brume); transform: none; }
.acc[aria-expanded="true"] .acc__num { color: var(--vert-foret); }
.acc[aria-expanded="true"] .acc__btn { background: var(--soleil); transform: rotate(45deg); }

/* --------------------------------------------------------------------------
   Parcours : frise desktop ≥ 900 px, verticale en dessous
   -------------------------------------------------------------------------- */
.only-desktop { display: none !important; }
@media (min-width: 900px) {
  .only-desktop { display: block !important; }
  .only-mobile { display: none !important; }
}

/* Témoignages */
.dot span { width: 16px; background: rgba(230,237,230,.45); }
.dot[aria-selected="true"] span { width: 40px; background: var(--soleil); }

/* --------------------------------------------------------------------------
   Formulaires
   -------------------------------------------------------------------------- */
select { cursor: pointer; }
.form-error {
  grid-column: 1 / -1;
  padding: 14px 20px; border-radius: 20px;
  background: #FBE9E7; color: #8A2A1B; font-size: 14px;
}


/* ==========================================================================
   Composants ajoutés (version 2)
   ========================================================================== */
.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;
}
.ancre { scroll-margin-top: 110px; }

/* --------------------------------------------------------------------------
   Bannière d'accueil : carrousel plein écran
   Photo bord à bord, texte posé sur un dégradé, onglets de progression.
   -------------------------------------------------------------------------- */
.hs {
  --hs-pad: max(clamp(20px, 4vw, 56px), calc((100% - 1320px) / 2));
  --hs-shade: 6, 32, 21;
  position: relative; overflow: hidden;
  height: 100vh; height: 100svh; min-height: 660px; max-height: 1120px;
  background: #0A2A1D; color: var(--papier);
}
.hs-track { position: absolute; inset: 0; }
.hs-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 1.1s cubic-bezier(.4, 0, .2, 1), visibility 0s linear 1.1s;
}
.hs-slide.is-active { z-index: 1; opacity: 1; visibility: visible; transition: opacity 1.1s cubic-bezier(.4, 0, .2, 1), visibility 0s; }

.hs-media { position: absolute; inset: 0; overflow: hidden; }
.hs-media .img-slot { aspect-ratio: auto; color: var(--papier); }
.hs-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(var(--hs-shade), .9) 0%, rgba(var(--hs-shade), .66) 30%, rgba(var(--hs-shade), .18) 58%, rgba(var(--hs-shade), 0) 76%),
    linear-gradient(0deg, rgba(var(--hs-shade), .82) 0%, rgba(var(--hs-shade), 0) 32%),
    linear-gradient(180deg, rgba(var(--hs-shade), .4) 0%, rgba(var(--hs-shade), 0) 20%);
}

.hs-content {
  position: absolute; z-index: 2;
  left: var(--hs-pad); bottom: clamp(150px, 20vh, 210px);
  width: min(900px, calc(100% - 2 * var(--hs-pad)));
}
.hs-kicker {
  display: flex; align-items: center; gap: 14px;
  font-family: 'JetBrains Mono', monospace; font-size: 12.5px; letter-spacing: .18em;
  color: var(--soleil);
}
.hs-kicker__num { color: var(--papier); }
.hs-kicker__rule { width: 44px; height: 1.5px; background: var(--soleil); }
.hs-title {
  margin-top: clamp(18px, 2.4vh, 26px);
  font-size: clamp(40px, 5.2vw, 88px); line-height: .98; letter-spacing: -.05em; font-weight: 700;
  color: var(--papier); text-wrap: balance;
}
.hs-line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hs-line > span { display: block; }
.hs-line--light { font-weight: 300; color: var(--soleil); }
.hs-text {
  margin-top: clamp(18px, 2.6vh, 28px); max-width: 520px;
  font-size: clamp(16px, 1.25vw, 19px); line-height: 1.65; color: rgba(255, 253, 247, .84);
}
.hs-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 3.4vh, 36px); }
.hs-cta {
  min-height: 58px; padding: 0 28px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 600; text-decoration: none;
  transition: transform .3s, background .3s, color .3s, border-color .3s;
}
.hs-cta--primary { background: var(--soleil); color: var(--vert-foret); font-weight: 700; }
.hs-cta--primary:hover { color: var(--vert-foret); background: #F6C254; transform: translateY(-2px); }
.hs-cta--ghost {
  border: 1.5px solid rgba(255, 253, 247, .55); color: var(--papier);
  background: rgba(255, 253, 247, .06);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.hs-cta--ghost:hover { color: var(--vert-foret); background: var(--papier); border-color: var(--papier); }
.hs-cta .i { transition: transform .35s; }
.hs-cta:hover .i { transform: translateX(4px); }

/* Barre du bas : onglets avec progression + navigation */
.hs-bar {
  position: absolute; z-index: 3;
  /* à droite, place laissée au bouton WhatsApp flottant */
  left: var(--hs-pad); right: max(var(--hs-pad), 100px); bottom: clamp(24px, 4vh, 44px);
  display: flex; align-items: flex-end; gap: clamp(20px, 3vw, 48px);
}
.hs-tabs { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 24px); }
.hs-tab {
  padding: 14px 0 4px; border: none; background: transparent; cursor: pointer;
  text-align: left; color: rgba(255, 253, 247, .58); font: inherit;
  transition: color .3s;
}
.hs-tab:hover, .hs-tab[aria-selected="true"] { color: var(--papier); }
.hs-tab__track { position: relative; display: block; height: 2px; overflow: hidden; background: rgba(255, 253, 247, .26); }
.hs-tab__fill {
  position: absolute; inset: 0; background: var(--soleil);
  transform: scaleX(0); transform-origin: 0 50%;
}
.hs-tab[aria-selected="true"] .hs-tab__fill { transform: scaleX(1); }
.hs-tab:hover .hs-tab__track { background: rgba(255, 253, 247, .5); }
.hs-tab__label {
  display: flex; align-items: baseline; gap: 10px; margin-top: 14px;
  font-size: 14px; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.hs-tab__num { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; font-weight: 400; color: var(--soleil); }

.hs-nav { display: flex; align-items: center; gap: 10px; }
.hs-btn {
  width: 52px; height: 52px; border-radius: 999px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(255, 253, 247, .5); background: rgba(255, 253, 247, .06);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  cursor: pointer; transition: transform .3s, background .3s, border-color .3s;
}
.hs-btn:hover { background: rgba(255, 253, 247, .18); border-color: var(--papier); transform: scale(1.06); }
.hs-btn--small { width: 40px; height: 40px; border-color: rgba(255, 253, 247, .3); }
.hs-ico-pause, .hs-ico-play { display: flex; }
.hs-ico-play, .hs.is-stopped .hs-ico-pause { display: none; }
.hs.is-stopped .hs-ico-play { display: flex; }

@media (max-width: 1180px) {
  .hs-tab__name { display: none; }
}
@media (max-width: 899px) {
  .hs { min-height: 620px; }
  .hs-shade {
    background:
      linear-gradient(0deg, rgba(var(--hs-shade), .96) 0%, rgba(var(--hs-shade), .8) 38%, rgba(var(--hs-shade), .2) 64%, rgba(var(--hs-shade), 0) 78%),
      linear-gradient(180deg, rgba(var(--hs-shade), .45) 0%, rgba(var(--hs-shade), 0) 22%);
  }
  .hs-content { bottom: 104px; }
  .hs-text { font-size: 15.5px; }
  .hs-cta { min-height: 52px; padding: 0 22px; font-size: 15px; }
  .hs-bar { bottom: 24px; right: 92px; align-items: center; gap: 16px; }
  .hs-kicker { gap: 10px; font-size: 11px; letter-spacing: .12em; }
  .hs-kicker__rule { width: 24px; }
  .hs-kicker__meta { display: none; }
  .hs-tabs { gap: 8px; }
  .hs-tab { padding: 18px 0; }
  .hs-tab__label { display: none; }
  .hs-btn { width: 46px; height: 46px; }
  .hs-btn--small { display: none; }
}
@media (max-width: 899px) and (max-height: 700px) {
  .hs-text { display: none; }
}

/* --------------------------------------------------------------------------
   Fiches formation
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 36px; padding: 0 14px; border-radius: 999px;
  background: var(--vert-brume); color: var(--vert-foret);
  font-size: 14px; font-weight: 600;
}
.badge--or { background: var(--soleil); }
.badge-cqp {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  padding: 5px 10px; border-radius: 999px;
  background: var(--soleil); color: var(--vert-foret);
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 500; letter-spacing: .08em;
}
.badge-cqp--module { background: var(--vert-foret); color: var(--papier); }
.etapes li { display: flex; gap: 12px; align-items: center; }
.etapes li span {
  width: 28px; height: 28px; border-radius: 999px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--vert-brume); color: var(--vert-foret); font-weight: 700; font-size: 13px;
}
@media (max-width: 899px) {
  .fiche-hero__inner { align-items: stretch !important; }
  .fiche-hero__photo { order: -1; max-height: 440px !important; }
  .fiche-hero__card { margin-top: -72px; position: relative; z-index: 1; }
}

/* --------------------------------------------------------------------------
   Cartes et liens
   -------------------------------------------------------------------------- */
.carte-lien, .action, .chip-lien { transition: transform .3s, box-shadow .3s, background .3s, border-color .3s; }
.carte-lien:hover, .action:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -38px rgba(15,77,53,.55); }
.pilier { transition: background .3s; }
/* Titres FORMER / ACCOMPAGNER / TRANSFORMER : même taille pour les trois,
   calculée d'après la largeur de la grille (unité cqi) pour que le mot le
   plus long tienne dans la colonne la plus étroite (celle du milieu) */
.piliers { container-type: inline-size; }
.pilier__titre { font-size: clamp(28px, 3.1vw, 44px); }
@supports (font-size: 1cqi) {
  /* une colonne (petits écrans) */
  .pilier__titre { font-size: clamp(28px, 10.8cqi, 64px); }
  /* trois colonnes : largeur d'une colonne moins ses deux marges */
  @container (min-width: 782px) {
    .pilier__titre { font-size: clamp(28px, calc((33.33cqi - 2 * clamp(20px, 3vw, 40px)) * .124), 64px); }
  }
}
}
.pilier:hover { background: var(--papier) !important; }

.action {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  min-height: 250px; padding: 28px; border-radius: 36px 36px 36px 0; text-decoration: none;
}
.action__icon { width: 60px; height: 60px; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
.action__title { margin-top: 8px; font-size: 22px; font-weight: 700; line-height: 1.15; }
.action__text { font-size: 15px; line-height: 1.55; }
.action__go { position: absolute; top: 28px; right: 28px; }

.bloc {
  display: flex; flex-direction: column; gap: 14px;
  padding: clamp(28px, 3vw, 44px); border-radius: 40px 40px 40px 0;
  color: var(--vert-foret);
}
.bloc__icon { width: 64px; height: 64px; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
.bloc__kicker { margin-top: 6px; font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .16em; color: var(--vert-sauge); }
.bloc__title { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; letter-spacing: -.03em; font-weight: 700; }
.bloc__text { font-size: 16px; line-height: 1.7; color: var(--encre); }
.bloc__link {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: auto;
  font-weight: 600; color: var(--vert-foret); text-decoration: none; box-shadow: inset 0 -2px 0 var(--soleil);
}

.mini-stat {
  display: flex; flex-direction: column; gap: 6px;
  padding: 22px; border-radius: 28px 28px 28px 0;
  background: rgba(255,253,247,.08); border: 1px solid rgba(230,237,230,.2);
  font-size: 14px; line-height: 1.4; color: var(--vert-brume);
}
.mini-stat span { font-size: clamp(30px, 3.2vw, 46px); font-weight: 700; letter-spacing: -.04em; line-height: 1; color: var(--papier); }

.trajet { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.trajet li {
  display: grid; grid-template-columns: 104px 1fr; gap: 12px;
  padding: 14px 0; border-top: 1px solid rgba(230,237,230,.22);
  font-size: 15px; line-height: 1.5;
}
.trajet__quand { padding-top: 3px; font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .06em; color: var(--soleil); }

/* Drapeau du Cameroun (vert, rouge étoilé, jaune) */
.flag-cm {
  position: relative; display: inline-block; flex-shrink: 0;
  width: 24px; height: 16px; border-radius: 3px;
  background: linear-gradient(90deg, #007A5E 0 33.34%, #CE1126 33.34% 66.67%, #FCD116 66.67%);
  box-shadow: 0 0 0 1px rgba(255,253,247,.25);
}
.flag-cm::after {
  content: "★"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -54%);
  font-size: 8px; line-height: 1; color: #FCD116;
}
.flag-cm--lg { width: 30px; height: 20px; }
.flag-cm--lg::after { font-size: 10px; }

/* Bouton WhatsApp flottant */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: flex; align-items: center;
  height: 60px; padding: 0 16px; border-radius: 999px;
  background: #25D366; color: #fff; text-decoration: none;
  box-shadow: 0 18px 40px -16px rgba(15,77,53,.6);
}
.wa-float:hover { color: #fff; }
.wa-float__label {
  max-width: 0; overflow: hidden; white-space: nowrap;
  font-size: 15px; font-weight: 600;
  transition: max-width .45s ease, margin .45s ease;
}
.wa-float:hover .wa-float__label, .wa-float:focus-visible .wa-float__label { max-width: 260px; margin-left: 10px; }
@media print { .wa-float { display: none; } }

/* --------------------------------------------------------------------------
   Sélecteur de langue : liste déroulante (FR / EN)
   -------------------------------------------------------------------------- */
.lang-dd { position: relative; flex-shrink: 0; margin-left: 6px; }
.lang-dd__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  width: 92px; min-height: 44px; padding: 0 10px; border-radius: 999px;
  background: var(--vert-brume); color: var(--vert-foret);
  font-size: 13px; font-weight: 700; letter-spacing: .05em;
  cursor: pointer; list-style: none; user-select: none;
  transition: background .25s, box-shadow .25s;
}
.lang-dd__btn::-webkit-details-marker { display: none; }
.lang-dd__btn::marker { content: ""; }
.lang-dd__btn:hover { background: #DCE6DC; }
.lang-dd[open] > .lang-dd__btn { background: var(--papier); box-shadow: 0 0 0 1.5px var(--ligne); }
.lang-dd__btn img, .lang-dd__opt img {
  border-radius: 50%; flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(15, 77, 53, .14);
}
.lang-dd__chev { display: flex; transition: transform .3s; }
.lang-dd[open] .lang-dd__chev { transform: rotate(180deg); }

.lang-dd__menu {
  position: absolute; z-index: 5; top: calc(100% + 10px); right: 0;
  width: 196px; margin: 0; padding: 6px; list-style: none;
  border-radius: 20px; background: var(--papier);
  box-shadow: 0 24px 48px -20px rgba(15, 77, 53, .45), 0 0 0 1px rgba(15, 77, 53, .08);
}
.lang-dd__opt {
  display: flex; align-items: center; gap: 12px;
  min-height: 46px; padding: 0 12px; border-radius: 14px;
  font-size: 15px; font-weight: 500; color: var(--encre); text-decoration: none;
  transition: background .2s;
}
.lang-dd__opt:hover { background: var(--vert-brume); color: var(--vert-foret); }
.lang-dd__opt[aria-current="true"] { font-weight: 700; color: var(--vert-foret); }
.lang-dd__opt span:first-of-type { flex: 1; }
.lang-dd__check { display: flex; visibility: hidden; }
.lang-dd__opt[aria-current="true"] .lang-dd__check { visibility: visible; }

@media (prefers-reduced-motion: no-preference) {
  .lang-dd[open] .lang-dd__menu { animation: lang-dd-in .22s cubic-bezier(.2, .7, .2, 1); }
}
@keyframes lang-dd-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }

/* Dimensions de la barre identiques quelle que soit la langue :
   pilule pleine largeur, marque, langue et bouton à largeur fixe
   (calées sur le français, plus long), menu centré dans l'espace restant */
.hdr-pill { width: 100%; }
.hdr-nav { flex: 1; justify-content: center; }
.hdr-brand { width: 256px; }
/* Trait vertical entre l'arbre et le nom, comme sur le logo officiel */
.brand-sep { align-self: stretch; width: 1.5px; margin: 4px 0; border-radius: 2px; background: rgba(15, 77, 53, .35); flex-shrink: 0; }
.brand-sep--light { background: rgba(255, 253, 247, .4); margin: 6px 2px; }
@media (min-width: 1360px) {
  .hdr-cta { width: 160px; justify-content: center; }
}
@media (max-width: 1359px) {
  .lang-dd { margin-left: auto; margin-right: 6px; }
}
/* Petit écran : marque compacte, sous-titre sur deux lignes */
@media (max-width: 479px) {
  .hdr-pill { padding-left: 14px !important; }
  .hdr-brand { width: 178px; gap: 8px !important; margin-right: 0 !important; }
  .hdr-brand > img { width: 28px !important; height: 34px !important; }
  .hdr-brand > .brand-sep { display: none; }
  .hdr-brand > span > span:first-child { font-size: 13px !important; letter-spacing: .06em !important; }
  .hdr-baseline { white-space: normal !important; font-size: 7px !important; letter-spacing: .1em !important; line-height: 1.3; max-width: 128px; }
  .lang-dd__btn { width: 68px; gap: 6px; padding: 0 8px; }
  .lang-dd__chev { display: none; }
}

/* --------------------------------------------------------------------------
   Pied de page : 4 colonnes (présentation, plan du site, services, contact)
   -------------------------------------------------------------------------- */
.ft-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 40px clamp(28px, 3.5vw, 56px);
  padding: clamp(40px, 5vw, 64px) 0;
  border-top: 1px solid rgba(230, 237, 230, .18);
}
.ft-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ft-title {
  margin-bottom: 4px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .16em;
  color: var(--soleil);
}

/* Colonne 1 : logo et présentation */
.ft-brand { display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; text-decoration: none; }
.ft-brand__text { display: flex; flex-direction: column; gap: 4px; line-height: 1; }
.ft-brand__name { font-size: 17px; font-weight: 800; letter-spacing: .08em; color: var(--papier); white-space: nowrap; }
.ft-brand__sub { font-size: 9px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--vert-brume); white-space: nowrap; }
.ft-text { max-width: 360px; font-size: 15px; line-height: 1.7; color: rgba(255, 253, 247, .82); }
.ft-mission {
  max-width: 360px; padding-left: 14px; border-left: 3px solid var(--soleil);
  font-size: 15px; line-height: 1.6; font-weight: 500; color: var(--papier);
}

/* Colonnes 2 et 3 : listes de liens */
.ft-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ft-links a {
  display: inline-flex; align-items: center; min-height: 38px;
  font-size: 15px; color: var(--papier); text-decoration: none;
  transition: color .25s, transform .25s;
}
.ft-links a:hover { color: var(--soleil); transform: translateX(3px); }

/* Colonne 4 : contact et réseaux */
.ft-contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ft-contact li, .ft-contact a {
  display: flex; align-items: center; gap: 12px; min-height: 38px;
  font-size: 15px; color: var(--papier); text-decoration: none;
}
.ft-contact span { min-width: 0; overflow-wrap: anywhere; }
.ft-contact a:hover { color: var(--soleil); }
.ft-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.ft-social a {
  width: 44px; height: 44px; border-radius: 999px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--papier); transition: background .25s, transform .25s;
}
.ft-social a:hover { background: var(--soleil); transform: translateY(-2px); }

@media (max-width: 1099px) {
  .ft-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .ft-cols { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}

/* --------------------------------------------------------------------------
   Trois niveaux de formation (accueil et catalogue)
   -------------------------------------------------------------------------- */
.niveaux { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.niveau {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: clamp(26px, 2.6vw, 36px); border-radius: 36px 36px 36px 0;
  text-decoration: none; color: var(--encre);
  transition: transform .3s, box-shadow .3s;
}
.niveau:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -38px rgba(15, 77, 53, .55); color: var(--encre); }
.niveau--pro { background: var(--papier); }
.niveau--bac { background: var(--vert-brume); }
.niveau--sup { background: var(--vert-foret); color: var(--papier); }
.niveau--sup:hover { color: var(--papier); }
.niveau__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.niveau__num { font-size: clamp(44px, 4.4vw, 64px); font-weight: 200; letter-spacing: -.06em; line-height: .9; color: var(--vert-foret); }
.niveau--sup .niveau__num { color: var(--soleil); }
.niveau__count {
  padding: 6px 12px; border-radius: 999px; background: var(--soleil); color: var(--vert-foret);
  font-family: 'JetBrains Mono', monospace; font-size: 11.5px; letter-spacing: .06em; white-space: nowrap;
}
.niveau__title { font-size: clamp(22px, 2vw, 28px); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; color: var(--vert-foret); }
.niveau--sup .niveau__title { color: var(--papier); }
.niveau__text { font-size: 15.5px; line-height: 1.6; }
.niveau--sup .niveau__text { color: var(--vert-brume); }
.niveau__ex { display: flex; flex-wrap: wrap; gap: 6px; }
.niveau__ex span {
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--ligne);
  font-size: 13px; font-weight: 500; color: var(--vert-foret);
}
.niveau--sup .niveau__ex span { border-color: rgba(230, 237, 230, .3); color: var(--papier); }
.niveau__go {
  display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px;
  font-weight: 600; color: var(--vert-foret);
}
.niveau--sup .niveau__go { color: var(--soleil); }
.niveau--sup .niveau__go svg { stroke: var(--soleil); }
.niveau--sup .niveau__go svg * { stroke: var(--soleil); }
@media (max-width: 899px) {
  .niveaux { grid-template-columns: minmax(0, 1fr); }
}

/* Badge de niveau sur les fiches formation */
a.badge { text-decoration: none; transition: background .25s; }
.badge--niveau { background: var(--vert-foret); color: var(--papier); }
.badge--niveau:hover { color: var(--papier); background: #16603f; }
.badge--niveau svg, .badge--niveau svg * { stroke: var(--papier); }
.badge--sup { background: var(--soleil); color: var(--vert-foret); }
.badge--sup:hover { background: #F6C254; color: var(--vert-foret); }
.badge--sup svg, .badge--sup svg * { stroke: var(--vert-foret); }
