/* City Formation Academy, charte inspirée du style « Lattice » (DESIGN.md du 14/10/2026)
   Parchemin, encre forêt, une teinte pastel par famille de formations. */

:root {
  --parchemin: #f7f6f2;
  --papier: #ffffff;
  --encre: #001f1f;
  --lichen: #5c7070;
  --pierre: #6a7878;
  --ardoise: #455252;
  --brume: #889494;
  --prairie: #cdface;
  --sarcelle: #003d3d;

  --menthe: #e4f7f9;      /* sécurité */
  --tilleul: #f8fbe7;     /* transport */
  --lavande: #e1e1fa;     /* numérique */
  --rose: #fcf2fe;        /* orientation */
  --creme: #fff3c2;       /* restauration */
  --sauge: #eff5ce;

  --police: 'Switzer', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --r-petit: 7px;
  --r-carte: 14px;
  --r-grand: 29px;
  --r-champ: 12px;

  --ombre: 0 12px 12px -6px rgb(0 31 31 / .04), 0 6px 6px -3px rgb(0 31 31 / .04),
           0 3px 3px -1.5px rgb(0 31 31 / .04), 0 1px 1px -.5px rgb(0 31 31 / .08), 0 0 0 1px rgb(0 31 31 / .06);

  --largeur: 1200px;
  --gouttiere: 24px;
  --section: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--parchemin);
  color: var(--encre);
  font-family: var(--police);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.1; }
h1, h2 { overflow-wrap: normal; word-break: normal; hyphens: none; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--encre); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.conteneur { width: 100%; max-width: calc(var(--largeur) + var(--gouttiere) * 2); margin: 0 auto; padding: 0 var(--gouttiere); }
.section { padding: var(--section) 0; }
.section + .section { padding-top: 0; }
.section--blanc { background: var(--papier); padding: var(--section) 0; border-top: 1px solid rgb(0 31 31 / .06); border-bottom: 1px solid rgb(0 31 31 / .06); }
.section--blanc + .section { padding-top: var(--section); }

/* ---------------------------------------------------------------- Typo */
.display { font-size: clamp(40px, 6.4vw, 72px); line-height: .95; letter-spacing: -0.024em; }
.titre { font-size: clamp(32px, 4.4vw, 47px); line-height: 1.02; letter-spacing: -0.024em; }
.titre-s { font-size: 22px; line-height: 1.2; }
.sous { font-size: 19px; line-height: 1.45; color: var(--lichen); }
.texte-doux { color: var(--lichen); }
.petit { font-size: 14px; }
.etiquette { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; color: var(--lichen); }
.sur-titre { display: block; margin-bottom: 12px; color: var(--lichen); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }

/* ---------------------------------------------------------------- Boutons */
.boutons { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 12px 22px; border-radius: var(--r-grand);
  font: 500 15px/1.2 var(--police); text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--encre); transition: background .15s, color .15s;
}
.btn--plein { background: var(--encre); color: var(--papier); }
.btn--plein:hover { background: var(--sarcelle); border-color: var(--sarcelle); }
.btn--contour { background: transparent; color: var(--encre); }
.btn--contour:hover { background: var(--encre); color: var(--papier); }
.btn--clair { background: var(--papier); color: var(--encre); border-color: var(--papier); }
.btn--bloc { width: 100%; }
.lien-fleche { font-weight: 500; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.lien-fleche:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- Bandeau + navigation */
.bandeau { background: var(--menthe); font-size: 13px; border-bottom: 1px solid rgb(0 31 31 / .08); }
.bandeau .conteneur { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 40px; text-align: center; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.bandeau__sep { width: 1px; height: 14px; background: rgb(0 31 31 / .25); }
.bandeau a { font-weight: 500; }

.entete { position: sticky; top: 0; z-index: 50; background: rgb(247 246 242 / .94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid rgb(0 31 31 / .07); }
.entete .conteneur { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo img { width: 40px; height: auto; }
.logo span { font-weight: 500; font-size: 16px; line-height: 1.1; letter-spacing: -.01em; }
.logo small { display: block; font-size: 12px; color: var(--lichen); font-weight: 400; letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav > a, .nav__groupe > button {
  font: 500 14px/1 var(--police); color: var(--ardoise); text-decoration: none; background: none; border: 0;
  padding: 10px 12px; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.nav > a:hover, .nav__groupe > button:hover, .nav > a[aria-current], .nav__groupe > button[aria-current] { color: var(--encre); background: rgb(0 31 31 / .05); }
.nav__groupe { position: relative; }
.nav__groupe > button::after { content: ''; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.nav__menu {
  position: absolute; top: calc(100% + 8px); left: -12px; min-width: 520px; padding: 12px;
  background: var(--papier); border-radius: var(--r-carte); box-shadow: var(--ombre), 0 24px 48px -24px rgb(0 31 31 / .18);
  display: none; grid-template-columns: 1fr 1fr; gap: 4px;
}
.nav__groupe.ouvert .nav__menu, .nav__groupe:focus-within .nav__menu { display: grid; }
@media (hover: hover) { .nav__groupe:hover .nav__menu { display: grid; } .nav__groupe::before { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 12px; } }
.nav__menu a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-size: 14px; }
.nav__menu a:hover { background: var(--parchemin); }
.nav__menu a b { display: block; font-weight: 500; }
.nav__menu a span { color: var(--lichen); font-size: 13px; }
.nav__menu--entreprise { min-width: 340px; grid-template-columns: 1fr; }
.nav__cta { margin-left: 8px; min-height: 40px; padding: 9px 18px; font-size: 14px; border-radius: 12px; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgb(0 31 31 / .15); background: var(--papier); cursor: pointer; }
.burger span { display: block; width: 18px; height: 1.5px; background: var(--encre); margin: 4px auto; }

/* ---------------------------------------------------------------- Héros */
.heros { padding: 48px 0 var(--section); }
.heros__rail { --door-progress: 0; position: relative; height: 1160px; }
.heros__porte {
  position: sticky; top: 112px; height: 560px; overflow: hidden; border-radius: 30px;
  background: var(--menthe); box-shadow: 0 28px 70px -36px rgb(0 31 31 / .48);
}
.heros__revelation {
  position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px; text-align: center; background:
    radial-gradient(circle at 50% 45%, rgb(255 255 255 / .96), rgb(228 247 249 / .9) 58%, rgb(205 250 206 / .72));
}
.heros__revelation > span { color: var(--lichen); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.heros__revelation h2 { max-width: 720px; margin: 18px 0; font-size: clamp(42px, 6vw, 72px); letter-spacing: -.035em; }
.heros__revelation p { max-width: 570px; margin: 0; color: var(--lichen); font-size: 19px; }
.heros__revelation-fleche { display: grid; place-items: center; width: 48px; height: 48px; margin-top: 34px; border: 1px solid rgb(0 31 31 / .18); border-radius: 50%; font-size: 22px; }
.heros__scene {
  position: absolute; inset: 0; z-index: 2; display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); min-height: 560px;
}
.heros__contenu {
  display: flex; flex-direction: column; justify-content: center; padding: clamp(42px, 5.5vw, 72px);
  color: var(--papier); background: var(--encre); transform: translate3d(calc(var(--door-progress) * -102%), 0, 0);
  will-change: transform;
}
.heros__contenu .sur-titre { color: #b9d8d3; margin-bottom: 18px; }
.heros h1 { margin: 0; max-width: 660px; font-size: clamp(46px, 5.2vw, 68px); }
.heros__contenu .sous { max-width: 610px; margin: 28px 0; color: rgb(255 255 255 / .76); font-size: 18px; }
.heros__btn-secondaire { color: var(--papier); border-color: rgb(255 255 255 / .52); background: transparent; }
.heros__btn-secondaire:hover { color: var(--encre); background: var(--papier); border-color: var(--papier); }
.heros__preuves { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 38px; padding-top: 26px; border-top: 1px solid rgb(255 255 255 / .18); }
.heros__preuves b, .heros__preuves span { display: block; }
.heros__preuves b { font-size: 15px; font-weight: 500; }
.heros__preuves span { margin-top: 3px; color: rgb(255 255 255 / .6); font-size: 12px; line-height: 1.35; }
.heros__media { position: relative; min-width: 0; background: var(--papier); transform: translate3d(calc(var(--door-progress) * 102%), 0, 0); will-change: transform; }
.heros__media .visuel { width: 100%; height: 100%; border-radius: 0; box-shadow: none; }
.heros__media .visuel img { object-position: 50% 50%; }
.heros__rail.portes-ouvertes .heros__scene { pointer-events: none; }
.heros__cadre {
  margin-top: 32px;
}
.heros__cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.visuel { display: block; overflow: hidden; border-radius: 22px; background: var(--papier); box-shadow: var(--ombre); }
.visuel img { width: 100%; height: 100%; object-fit: cover; }
.visuel--hero { aspect-ratio: auto; }
.visuel--page { aspect-ratio: 3 / 2; }
.visuel--carte { aspect-ratio: 3 / 2; margin: -12px -12px 4px; box-shadow: none; border-radius: 14px; }
.visuel--vignette { aspect-ratio: 3 / 2; margin: -14px -14px 2px; box-shadow: none; border-radius: 10px; }
.media-texte { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.media-texte--inverse .visuel { order: 2; }

.carte { background: var(--papier); border-radius: var(--r-carte); box-shadow: var(--ombre); padding: 28px; }
.carte--fiche { display: flex; flex-direction: column; gap: 10px; text-decoration: none; transition: transform .15s; }
.carte--fiche:hover { transform: translateY(-2px); }
.carte--fiche .titre-s { font-size: 19px; }
.carte__bas { margin-top: auto; padding-top: 14px; border-top: 1px solid rgb(0 31 31 / .08); display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--lichen); }
.carte__bas b { color: var(--encre); font-weight: 500; }
.prix { font-size: 28px; font-weight: 500; letter-spacing: -.02em; color: var(--encre); }
.prix s { font-size: 15px; color: var(--brume); margin-left: 6px; font-weight: 400; }

/* ---------------------------------------------------------------- Certifications et référentiels */
.reconnaissances { display: grid; grid-template-columns: 1.35fr repeat(3, 1fr); gap: 14px; align-items: stretch; }
.reconnaissances__intro { padding: 24px 22px 24px 0; }
.reconnaissances__intro h2 { max-width: 420px; font-size: clamp(25px, 2.6vw, 34px); line-height: 1.08; letter-spacing: -.02em; }
.reconnaissance { display: flex; min-width: 0; min-height: 154px; flex-direction: column; justify-content: space-between; gap: 18px; padding: 22px; border-radius: 18px; background: var(--papier); box-shadow: var(--ombre); color: var(--encre); text-decoration: none; }
.reconnaissance:hover { transform: translateY(-2px); }
.reconnaissance img { width: auto; height: 54px; max-width: 150px; object-fit: contain; object-position: left center; }
.reconnaissance > span:last-child { color: var(--lichen); font-size: 13px; line-height: 1.4; }
.reconnaissance b { display: block; margin-bottom: 3px; color: var(--encre); font-size: 15px; font-weight: 500; }
.reconnaissance__marque { display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; min-width: 72px; height: 54px; padding: 0 14px; border-radius: 12px; font-size: 21px; font-weight: 500; letter-spacing: .04em; }
.reconnaissance__marque--sst { background: #fff1e8; color: #a63e00; border: 1px solid #f1b58e; }
.reconnaissance__marque--rncp { flex-direction: column; background: #eef0ff; color: #3e4b9b; border: 1px solid #cbd0f3; line-height: .88; }
.reconnaissance__marque small { font-size: 10px; letter-spacing: .08em; }

/* ---------------------------------------------------------------- Présentation du centre */
.presentation-centre { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(36px, 6vw, 76px); align-items: center; }
.presentation-centre__visuel { aspect-ratio: 3 / 2; }
.presentation-centre__contenu > .sous { margin: 20px 0 16px; }
.presentation-centre__contenu > p:not(.sous) { color: var(--ardoise); max-width: 640px; }
.presentation-centre__engagements { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 28px 0; }
.presentation-centre__engagements div { min-width: 0; padding: 16px; border-radius: 14px; background: var(--parchemin); }
.presentation-centre__engagements b { display: block; margin-bottom: 5px; font-size: 15px; font-weight: 500; }
.presentation-centre__engagements span { display: block; color: var(--lichen); font-size: 13px; line-height: 1.45; }

/* ---------------------------------------------------------------- En-tête de section */
.entete-section { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 56px; align-items: end; margin-bottom: 48px; }
.entete-section--seul { grid-template-columns: 1fr; max-width: 760px; }
.entete-section p { margin: 0; }

/* ---------------------------------------------------------------- Familles (cartes pastel) */
.familles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.famille { border-radius: 22px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.famille, .famille__liste, .famille__liste a { min-width: 0; }
.famille__visuel { aspect-ratio: 3 / 2; margin: -16px -16px 4px; box-shadow: none; border-radius: 14px; }
.famille--menthe { background: var(--menthe); }
.famille--lavande { background: var(--lavande); }
.famille--creme { background: #fff8db; }
.famille--tilleul { background: var(--sauge); }
.famille--rose { background: var(--rose); }
.famille__tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.famille__tete p { margin: 6px 0 0; color: var(--lichen); }
.famille__liste { display: grid; gap: 8px; }
.famille__liste a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--papier); border-radius: 12px; padding: 14px 16px; text-decoration: none; box-shadow: var(--ombre);
}
.famille__liste a:hover { outline: 1.5px solid var(--encre); }
.famille__liste b { font-weight: 500; }
.famille__liste span { color: var(--lichen); font-size: 14px; text-align: right; }
.famille--large { grid-column: 1 / -1; }
.famille--large .famille__liste { grid-template-columns: repeat(2, 1fr); }

/* ---------------------------------------------------------------- Grilles génériques */
.grille-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grille-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grille-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.carte h3 { font-size: 19px; margin-bottom: 8px; }
.carte p:last-child { margin-bottom: 0; }
.carte--teinte { box-shadow: none; }

.etapes { counter-reset: e; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.etape { counter-increment: e; padding: 28px; border-radius: var(--r-carte); background: var(--papier); box-shadow: var(--ombre); }
.etape::before { content: counter(e, decimal-leading-zero); display: block; font-size: 13px; letter-spacing: .08em; color: var(--lichen); margin-bottom: 28px; font-weight: 500; }
.etape h3 { font-size: 19px; margin-bottom: 8px; }
.etape p { margin: 0; color: var(--lichen); font-size: 15px; }

.liste { list-style: none; display: grid; gap: 10px; }
.liste li { position: relative; padding-left: 26px; }
.liste li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 12px; height: 1.5px; background: var(--encre); }
.liste--2 { grid-template-columns: repeat(2, 1fr); column-gap: 32px; }
.formation__corps > section > .liste { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.formation__corps > section > .liste > li { padding: 14px 16px; border-radius: 12px; background: var(--papier); box-shadow: var(--ombre); }
.formation__corps > section > .liste > li::before { display: none; }

/* ---------------------------------------------------------------- Page formation */
.fil { font-size: 14px; color: var(--lichen); display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.fil a { text-decoration: none; }
.fil a:hover { text-decoration: underline; }
.page-tete { padding: 48px 0 56px; }
.page-tete__grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .72fr); gap: 48px; align-items: center; }
.page-tete h1 { margin: 20px 0 20px; max-width: 900px; }
.page-tete__grille h1 { margin-top: 0; }
.page-tete .sous { max-width: 760px; }
.formation { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; }
.formation__corps > section { margin-bottom: 56px; }
.formation__corps h2 { font-size: 28px; letter-spacing: -.015em; margin-bottom: 20px; }
.formation__aside { position: sticky; top: 96px; display: grid; gap: 16px; }
.fiche { border-radius: 22px; padding: 28px; }
.fiche dl { margin: 0; display: grid; gap: 0; }
.fiche dt { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--lichen); font-weight: 500; padding-top: 14px; }
.fiche dd { margin: 4px 0 0; padding-bottom: 14px; border-bottom: 1px solid rgb(0 31 31 / .1); }
.fiche dd:last-of-type { border-bottom: 0; }
.fiche .boutons { margin-top: 20px; }
.fiche .btn { flex: 1 1 100%; }
.tarif { background: var(--encre); color: var(--papier); border-radius: 22px; padding: 28px; }
.tarif .etiquette { color: rgb(255 255 255 / .7); }
.tarif .prix { color: var(--papier); font-size: 44px; margin: 6px 0 4px; }
.tarif .prix s { color: rgb(255 255 255 / .55); }
.tarif p { color: rgb(255 255 255 / .8); font-size: 14px; margin: 0; }
.tarif__fin { margin-top: 16px; color: rgb(255 255 255 / .78); font-size: 13px; line-height: 1.5; }

.tableau { width: 100%; border-collapse: collapse; background: var(--papier); border-radius: var(--r-carte); overflow: hidden; box-shadow: var(--ombre); font-size: 15px; }
.tableau th, .tableau td { text-align: left; padding: 14px 18px; border-bottom: 1px solid rgb(0 31 31 / .07); vertical-align: top; }
.tableau thead th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--lichen); font-weight: 500; background: var(--parchemin); }
.tableau tr:last-child td { border-bottom: 0; }
.tableau td:first-child { font-weight: 500; }
.defile { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-carte); }

.onglets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.onglets button { min-height: 44px; font: 500 14px/1 var(--police); padding: 11px 16px; border-radius: 22px; border: 1.5px solid var(--encre); background: transparent; color: var(--encre); cursor: pointer; }
.onglets button[aria-selected="true"] { background: var(--encre); color: var(--papier); }
.module { border-top: 1px solid rgb(0 31 31 / .1); padding: 18px 0; display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; }
.module h3 { font-size: 17px; }
.module span { color: var(--lichen); font-size: 14px; }
.module ul { grid-column: 1 / -1; }

.encart { border-radius: var(--r-carte); padding: 20px 22px; background: var(--sauge); font-size: 15px; }
.encart--menthe { background: var(--menthe); }
.encart--creme { background: var(--creme); }

/* ---------------------------------------------------------------- FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--papier); border-radius: var(--r-carte); box-shadow: var(--ombre); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font-weight: 500; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--encre); display: grid; place-items: center; font-weight: 400; font-size: 18px; line-height: 1; }
.faq details[open] summary::after { content: '−'; background: var(--encre); color: var(--papier); }
.faq details > div { padding: 0 24px 22px; color: var(--lichen); }

/* ---------------------------------------------------------------- Formulaires */
.form { display: grid; gap: 16px; }
.form__ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.champ { display: grid; gap: 6px; }
.champ label { font-size: 14px; font-weight: 500; }
.champ label i { font-style: normal; color: var(--lichen); font-weight: 400; }
.champ input, .champ select, .champ textarea {
  width: 100%; font: 400 16px/1.4 var(--police); color: var(--encre);
  background: var(--papier); border: 1px solid rgb(0 31 31 / .2); border-radius: var(--r-champ);
  padding: 12px 14px; min-height: 48px; appearance: none; -webkit-appearance: none;
}
.champ select { background-image: linear-gradient(45deg, transparent 50%, var(--encre) 50%), linear-gradient(135deg, var(--encre) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.champ textarea { min-height: 120px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--encre); box-shadow: 0 0 0 3px rgb(205 250 206 / .9); }
.form__pot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__mention { font-size: 13px; color: var(--lichen); margin: 0; }
.form__mention a { color: inherit; }
.case { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ardoise); }
.case input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--encre); flex-shrink: 0; }
.alerte { border-radius: var(--r-champ); padding: 14px 16px; font-size: 15px; }
.alerte--ok { background: var(--prairie); }
.alerte--ko { background: #fde7e4; }
.creneaux { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.creneaux label { position: relative; }
.creneaux input { position: absolute; opacity: 0; inset: 0; }
.creneaux span { display: block; text-align: center; padding: 11px 6px; border-radius: 12px; border: 1px solid rgb(0 31 31 / .2); background: var(--papier); font-size: 15px; cursor: pointer; }
.creneaux input:checked + span { background: var(--encre); color: var(--papier); border-color: var(--encre); }
.creneaux input:focus-visible + span { outline: 2px solid var(--encre); outline-offset: 2px; }
.creneaux input:disabled + span { color: var(--brume); text-decoration: line-through; cursor: not-allowed; background: transparent; }

.bloc-contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.coordonnees { display: grid; gap: 18px; margin-top: 28px; }
.coordonnees div { display: grid; gap: 2px; }
.coordonnees a { text-decoration: none; font-weight: 500; font-size: 18px; }

/* ---------------------------------------------------------------- Article */
.article { max-width: 760px; }
.article h2 { font-size: 28px; letter-spacing: -.015em; margin: 48px 0 16px; }
.article h3 { font-size: 20px; margin: 32px 0 12px; }
.article p, .article li { font-size: 17px; line-height: 1.7; color: #1d3535; }
.article ul, .article ol { padding-left: 22px; margin: 0 0 1.2em; display: grid; gap: 6px; }
.article a { text-underline-offset: 3px; }
.article blockquote { margin: 28px 0; padding: 22px 24px; border-radius: var(--r-carte); background: var(--lavande); }
.meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--lichen); font-size: 14px; }

.billets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.billet { display: flex; flex-direction: column; gap: 14px; text-decoration: none; }
.billet .titre-s { font-size: 20px; }
.billet p { color: var(--lichen); margin: 0; }
.billet .visuel { margin: -14px -14px 2px; border-radius: 10px; box-shadow: none; aspect-ratio: 3 / 2; }

/* ---------------------------------------------------------------- Appel final */
.appel { border-radius: 29px; background: var(--encre); color: var(--papier); padding: clamp(32px, 6vw, 72px); display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: end; }
.appel .titre { color: var(--papier); }
.appel p { color: rgb(255 255 255 / .75); margin: 16px 0 0; font-size: 18px; }
.appel .boutons { justify-content: flex-end; }
.appel .btn--contour { color: var(--papier); border-color: rgb(255 255 255 / .5); }
.appel .btn--contour:hover { background: var(--papier); color: var(--encre); }

/* ---------------------------------------------------------------- Pied de page */
.pied { margin-top: var(--section); background: var(--papier); border-top: 1px solid rgb(0 31 31 / .08); padding: 64px 0 28px; font-size: 14px; }
.pied__grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.pied h3 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--lichen); margin-bottom: 14px; }
.pied ul { list-style: none; display: grid; gap: 9px; }
.pied a { text-decoration: none; color: var(--ardoise); }
.pied a:hover { color: var(--encre); text-decoration: underline; }
.pied__legal { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgb(0 31 31 / .08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--lichen); }
.pied__legal nav { display: flex; flex-wrap: wrap; gap: 18px; }

/* ---------------------------------------------------------------- Assistant */
.assistant-bouton {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: grid; place-items: center; width: 72px; height: 72px; padding: 4px;
  background: var(--papier); border: 2px solid var(--papier); border-radius: 50%;
  cursor: pointer; box-shadow: 0 14px 34px -12px rgb(0 31 31 / .5), 0 0 0 1px rgb(0 31 31 / .12);
  transition: transform .18s ease, box-shadow .18s ease;
}
.assistant-bouton:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -12px rgb(0 31 31 / .55), 0 0 0 1px rgb(0 31 31 / .12); }
.assistant-bouton img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: center 15%; background: var(--menthe); }
.assistant {
  position: fixed; right: 20px; bottom: 84px; z-index: 61; width: min(380px, calc(100vw - 32px));
  max-height: min(620px, calc(100vh - 120px)); display: none; flex-direction: column;
  background: var(--papier); border-radius: 22px; box-shadow: var(--ombre), 0 30px 60px -20px rgb(0 31 31 / .3); overflow: hidden;
}
.assistant.ouvert { display: flex; }
.assistant__tete { padding: 18px 20px; background: var(--menthe); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.assistant__tete b { font-weight: 500; display: block; }
.assistant__tete span { font-size: 13px; color: var(--lichen); }
.assistant__identite { display: flex; align-items: center; gap: 11px; min-width: 0; }
.assistant__identite img { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%; object-fit: cover; object-position: center 15%; background: var(--papier); }
.assistant__fermer { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgb(0 31 31 / .2); background: var(--papier); cursor: pointer; font-size: 18px; line-height: 1; }
.assistant__fil { padding: 18px; overflow-y: auto; display: grid; gap: 10px; align-content: start; flex: 1; }
.bulle { max-width: 88%; padding: 11px 14px; border-radius: 16px; font-size: 15px; line-height: 1.45; }
.bulle--cfa { background: var(--parchemin); border-bottom-left-radius: 6px; }
.bulle--moi { background: var(--encre); color: var(--papier); justify-self: end; border-bottom-right-radius: 6px; }
.bulle a { font-weight: 500; }
.choix { display: flex; flex-wrap: wrap; gap: 6px; }
.choix button { font: 500 13px/1.2 var(--police); padding: 8px 12px; border-radius: 22px; border: 1px solid var(--encre); background: var(--papier); cursor: pointer; text-align: left; }
.choix button:hover { background: var(--prairie); }
.assistant__saisie { display: flex; gap: 8px; padding: 12px; border-top: 1px solid rgb(0 31 31 / .08); }
.assistant__saisie input { flex: 1; font: 16px var(--police); border: 1px solid rgb(0 31 31 / .2); border-radius: 22px; padding: 10px 14px; min-width: 0; }
.assistant__saisie button { border: 0; background: var(--encre); color: var(--papier); border-radius: 22px; padding: 0 16px; font: 500 14px var(--police); cursor: pointer; }
.mobile-rappel { display: none; }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1080px) {
  .entete-section, .bloc-contact, .appel { grid-template-columns: 1fr; }
  .reconnaissances { grid-template-columns: repeat(2, 1fr); }
  .reconnaissances__intro { padding-right: 22px; }
  .presentation-centre__engagements { grid-template-columns: 1fr; }
  .appel .boutons { justify-content: flex-start; }
  .formation { grid-template-columns: 1fr; }
  .formation__aside { position: static; }
  .pied__grille { grid-template-columns: 1fr 1fr; }
  .etapes, .grille-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .nav { display: none; position: fixed; inset: 72px 0 0 0; background: var(--parchemin); flex-direction: column; align-items: stretch; padding: 16px var(--gouttiere) 40px; overflow-y: auto; gap: 2px; }
  .nav.ouvert { display: flex; }
  .nav > a, .nav__groupe > button { font-size: 18px; padding: 16px 4px; border-radius: 0; border-bottom: 1px solid rgb(0 31 31 / .08); width: 100%; justify-content: space-between; color: var(--encre); }
  .nav__menu { position: static; display: none; min-width: 0; grid-template-columns: 1fr; box-shadow: none; padding: 4px 0 12px; background: transparent; }
  .nav__groupe:hover .nav__menu { display: none; }
  .nav__groupe.ouvert .nav__menu { display: grid; }
  .nav__cta { margin: 20px 0 0; min-height: 52px; font-size: 16px; }
  .burger { display: block; }
  body.menu-ouvert { overflow: hidden; }
}
@media (max-width: 760px) {
  :root { --gouttiere: 16px; --section: 64px; }
  .heros { padding-top: 24px; }
  .heros__rail { height: auto; }
  .heros__porte { position: relative; top: auto; height: auto; border-radius: 24px; }
  .heros__revelation { display: none; }
  .heros__scene { position: relative; inset: auto; grid-template-columns: 1fr; min-height: 0; }
  .heros__contenu, .heros__media { transform: none !important; will-change: auto; }
  .heros__media { order: -1; height: 280px; }
  .heros__contenu { padding: 32px 24px 28px; }
  .heros h1 { font-size: clamp(40px, 12vw, 54px); }
  .heros__contenu .sous { margin: 22px 0; font-size: 17px; }
  .heros__contenu .boutons { display: grid; }
  .heros__preuves { grid-template-columns: 1fr; gap: 12px; margin-top: 28px; padding-top: 22px; }
  .heros__preuves div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: baseline; }
  .heros__preuves span { margin: 0; }
  .page-tete__grille, .media-texte, .presentation-centre { grid-template-columns: 1fr; gap: 28px; }
  .page-tete__grille > .visuel { order: -1; }
  .media-texte--inverse .visuel { order: 0; }
  .visuel--page { aspect-ratio: 4 / 3; }
  .heros__cartes, .familles, .grille-2, .grille-3, .billets, .famille--large .famille__liste { grid-template-columns: 1fr; }
  .reconnaissances { grid-template-columns: 1fr; }
  .reconnaissances__intro { padding: 0 0 10px; }
  .etapes, .grille-4 { grid-template-columns: 1fr !important; }
  .form__ligne, .liste--2 { grid-template-columns: 1fr; }
  .formation__corps > section > .liste { grid-template-columns: 1fr; }
  .famille { padding: 22px; }
  .famille__liste span { white-space: normal; text-align: right; }
  .pied__grille { grid-template-columns: 1fr; }
  .bandeau__sep { display: none; }
  .tarif .prix { font-size: 38px; }
  .assistant-bouton { width: 62px; height: 62px; padding: 3px; bottom: 20px; }
  body.avec-rappel .assistant-bouton { bottom: 72px; }
  .assistant { right: 16px; bottom: 80px; }
  .formation__aside { order: -1; }
  .tableau, .tableau tbody, .tableau tr, .tableau td { display: block; width: 100%; }
  .tableau thead { display: none; }
  .tableau { background: transparent; box-shadow: none; overflow: visible; }
  .tableau tr { margin-bottom: 12px; padding: 8px 16px; border-radius: var(--r-carte); background: var(--papier); box-shadow: var(--ombre); }
  .tableau td { display: grid; grid-template-columns: minmax(104px, .7fr) 1.3fr; gap: 14px; padding: 10px 0; border-bottom: 1px solid rgb(0 31 31 / .07); }
  .tableau td::before { content: attr(data-label); color: var(--lichen); font-size: 12px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
  .tableau td:last-child { border-bottom: 0; }
  .defile { overflow: visible; }
  .mobile-rappel { display: flex; position: fixed; z-index: 58; left: 12px; right: 12px; bottom: 10px; min-height: 50px; align-items: center; justify-content: center; border-radius: var(--r-grand); background: var(--encre); color: var(--papier); text-decoration: none; font-weight: 500; box-shadow: 0 12px 30px rgb(0 31 31 / .25); }
  body { padding-bottom: 66px; }
}
@media (max-width: 479px) {
  .assistant { inset: 0; width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  body.assistant-ouvert .assistant-bouton, body.assistant-ouvert .mobile-rappel { display: none; }
  .assistant__tete { padding-top: max(18px, env(safe-area-inset-top)); }
  .assistant__saisie { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .heros__rail { height: auto; }
  .heros__porte { position: relative; top: auto; height: 560px; }
  .heros__revelation { display: none; }
  .heros__contenu, .heros__media { transform: none !important; }
}
.nav > a.nav__cta { background: var(--encre); color: var(--papier); padding: 9px 18px; border-radius: 12px; }
.nav > a.nav__cta:hover { background: var(--sarcelle); color: var(--papier); }
@media (max-width: 960px) { .nav > a.nav__cta { justify-content: center; border-bottom: 0; border-radius: var(--r-grand); } }

/* 26/10/2026 : famille en pleine largeur (VTC) avec un visuel en bandeau, pas en plein format */
.famille--large .famille__visuel { aspect-ratio: 16 / 5; }
@media (max-width: 760px) { .famille--large .famille__visuel { aspect-ratio: 3 / 2; } }

/* 26/10/2026 : en mobile, le flou de l'en-tête (backdrop-filter) enfermait le menu fixe
   dans les 73 px de la barre. On retire le flou et on cale le menu sous l'en-tête (top posé en JS). */
@media (max-width: 960px) {
  .entete { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--parchemin); }
  .nav { inset: auto 0 0 0; top: var(--nav-haut, 72px); }
}
