/* ============================================================
   MUGAIN — Feuille de style principale
   Polices : Fraunces (titres) + DM Sans (corps)
   ============================================================ */

/* --- Variables --- */
:root {
  --teal-dark:    #1B4A4D;
  --teal:         #2A6B6E;
  --gold:         #C9A96E;
  --cream:        #F5F0E8;
  --white-warm:   #FDFAF4;
  --green-light:  #E8F2F0;
  --text:         #1C2B2C;
  --text-sec:     #5A6E6F;

  /* Accents modules */
  --social-accent:  #C9A96E;
  --medico-accent:  #4A8B8E;
  --scolaire-accent:#6B8E70;

  /* Typographie */
  --font-h: 'Fraunces', Georgia, serif;
  --font-b: 'DM Sans', system-ui, sans-serif;

  /* Espacements */
  --s1: 0.5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2rem;
  --s6: 3rem;
  --s8: 4rem;
  --s12: 6rem;
  --s16: 8rem;

  --max-w: 1320px;
  --r-sm: 6px;
  --r-md: 14px;
  --r-lg: 24px;
  --shadow: 0 4px 24px rgba(27,74,77,.10);
  --shadow-hover: 0 8px 40px rgba(27,74,77,.16);
  --trans: .25s ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-b);
  color: var(--text);
  background: var(--white-warm);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* --- Typographie --- */
h1, h2, h3, h4 {
  font-family: var(--font-h);
  font-weight: 600;
  line-height: 1.2;
  color: var(--teal-dark);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p { max-width: 68ch; }

/* --- Layout --- */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--s4);
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s4); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--s4); }

.section { padding-block: var(--s12); }
.section-sm { padding-block: var(--s8); }
.section-alt { background: var(--cream); }
.section-teal { background: var(--teal-dark); color: var(--white-warm); }
.section-teal h2, .section-teal h3 { color: var(--white-warm); }
.section-green { background: var(--green-light); }

.section-label {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s2);
}
.section-header { margin-bottom: var(--s8); }
.section-header p { color: var(--text-sec); font-size: 1.1rem; margin-top: var(--s2); }
.centered { text-align: center; }
.centered p { margin-inline: auto; }

/* --- Boutons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  padding: .75rem 1.75rem;
  border-radius: 50px;
  font-family: var(--font-b);
  font-size: .95rem;
  font-weight: 600;
  transition: transform var(--trans), box-shadow var(--trans), background var(--trans), color var(--trans);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--gold);
  color: var(--teal-dark);
}
.btn-primary:hover { background: #b8904f; box-shadow: 0 6px 20px rgba(201,169,110,.4); }
.btn-outline {
  background: transparent;
  color: var(--teal-dark);
  border: 2px solid var(--teal-dark);
}
.btn-outline:hover { background: var(--teal-dark); color: var(--white-warm); }
.btn-outline-light {
  background: transparent;
  color: var(--white-warm);
  border: 2px solid rgba(255,255,255,.5);
}
.btn-outline-light:hover { background: rgba(255,255,255,.12); }
.btn-sm { padding: .55rem 1.25rem; font-size: .875rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }

/* --- HEADER --- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(253,250,244,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(27,74,77,.08);
  transition: box-shadow var(--trans);
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(27,74,77,.12); }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--s4);
}
.logo {
  font-family: var(--font-h);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--teal-dark);
  letter-spacing: -.02em;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0;
}
.logo span { color: var(--gold); }

.logo-icon {
  height: 36px;
  width: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Navigation */
.main-nav { flex: 1; }
.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
}
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: block;
  padding: .5rem .85rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--r-sm);
  transition: color var(--trans), background var(--trans);
}
.nav-list > li > a:hover,
.nav-list > li > a.active { color: var(--teal-dark); background: var(--green-light); }
.nav-apprenant { color: var(--teal) !important; font-weight: 600 !important; }
.nav-apprenant:hover { background: rgba(27,74,77,.08) !important; }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: var(--white-warm);
  border: 1px solid rgba(27,74,77,.1);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
  padding: var(--s1) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity var(--trans), transform var(--trans), visibility var(--trans);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown li a {
  display: block;
  padding: .6rem 1.25rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text);
  transition: background var(--trans), color var(--trans);
}
.dropdown li a:hover { background: var(--green-light); color: var(--teal-dark); }
.dropdown-sep { height: 1px; background: rgba(27,74,77,.1); margin: var(--s1) var(--s2); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--teal-dark);
  padding: var(--s1);
}

/* --- FOOTER --- */
.site-footer {
  background: var(--teal-dark);
  color: rgba(253,250,244,.8);
  padding-block: var(--s12) var(--s6);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--s8);
  margin-bottom: var(--s8);
}
.footer-brand .logo { color: var(--white-warm); margin-bottom: var(--s3); }
.footer-brand p { font-size: .9rem; line-height: 1.7; max-width: 32ch; }
.footer-col h4 {
  color: var(--white-warm);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: var(--s3);
}
.footer-col ul li { margin-bottom: var(--s1); }
.footer-col ul li a {
  font-size: .875rem;
  color: rgba(253,250,244,.7);
  transition: color var(--trans);
}
.footer-col ul li a:hover { color: var(--gold); }
.footer-col address {
  font-style: normal;
  font-size: .875rem;
  line-height: 1.8;
  color: rgba(253,250,244,.7);
}
.footer-col address a { transition: color var(--trans); }
.footer-col address a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: var(--s4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
  color: rgba(253,250,244,.45);
  flex-wrap: wrap;
  gap: var(--s2);
}

/* --- HERO --- */
.hero {
  padding-top: calc(72px + var(--s12));
  padding-bottom: var(--s12);
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(42,107,110,.1) 0%, transparent 70%);
  pointer-events: none;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s8);
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  background: var(--green-light);
  color: var(--teal);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 50px;
  margin-bottom: var(--s3);
}
.hero-badge::before { content: ''; width: 6px; height: 6px; background: var(--teal); border-radius: 50%; }
.hero h1 { margin-bottom: var(--s4); }
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-sec);
  max-width: 52ch;
  margin-bottom: var(--s6);
  line-height: 1.7;
}
.hero-actions { display: flex; gap: var(--s3); flex-wrap: wrap; }

/* Hero card */
.hero-card {
  background: var(--white-warm);
  border-radius: var(--r-lg);
  padding: var(--s6);
  box-shadow: var(--shadow);
  border: 1px solid rgba(27,74,77,.06);
  min-width: 260px;
  flex-shrink: 0;
}
.hero-card-tag {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s2);
}
.hero-card h3 {
  font-size: 1.1rem;
  margin-bottom: var(--s2);
  color: var(--teal-dark);
}
.hero-card-pillars {
  font-size: .875rem;
  color: var(--text-sec);
  margin-bottom: var(--s4);
  line-height: 1.8;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s2);
  border-top: 1px solid var(--green-light);
  padding-top: var(--s3);
}
.stat { text-align: center; }
.stat-value {
  display: block;
  font-family: var(--font-h);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--teal-dark);
  line-height: 1;
}
.stat-label { font-size: .7rem; color: var(--text-sec); margin-top: .25rem; }

/* --- CARDS --- */
.card {
  background: var(--white-warm);
  border-radius: var(--r-md);
  padding: var(--s6);
  box-shadow: var(--shadow);
  border: 1px solid rgba(27,74,77,.06);
  transition: transform var(--trans), box-shadow var(--trans);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: var(--s3);
}
.card-icon-teal { background: var(--green-light); }
.card-icon-gold { background: rgba(201,169,110,.15); }
.card h3 { margin-bottom: var(--s2); }
.card p { font-size: .95rem; color: var(--text-sec); }

/* Cards lien */
.card-link { display: block; }
.card-link .card { height: 100%; }
.card-link:hover .card { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

/* Module cards */
.card-social { border-top: 3px solid var(--social-accent); }
.card-medico { border-top: 3px solid var(--medico-accent); }
.card-scolaire { border-top: 3px solid var(--scolaire-accent); }

.card-social .card-icon { background: rgba(201,169,110,.15); }
.card-medico .card-icon { background: rgba(74,139,142,.15); }
.card-scolaire .card-icon { background: rgba(107,142,112,.15); }

/* Pilier cards */
.pilier-num {
  font-family: var(--font-h);
  font-size: 3rem;
  font-weight: 700;
  color: var(--green-light);
  line-height: 1;
  margin-bottom: var(--s2);
}
.section-teal .pilier-num { color: rgba(255,255,255,.15); }
.section-teal .pilier-item {
  background: rgba(255,255,255,.06);
  border-top-color: var(--gold);
  border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,.1);
  border-top: 4px solid var(--gold);
}
.section-teal .pilier-item h3 { color: var(--white-warm); }
.section-teal .pilier-item p { color: rgba(253,250,244,.7); }

/* --- CTA STRIP --- */
.cta-strip {
  background: var(--teal-dark);
  color: var(--white-warm);
  text-align: center;
  padding-block: var(--s12);
}
.cta-strip h2 { color: var(--white-warm); margin-bottom: var(--s2); }
.cta-strip p { color: rgba(253,250,244,.75); margin-inline: auto; margin-bottom: var(--s6); font-size: 1.1rem; }
.cta-strip-actions { display: flex; gap: var(--s3); justify-content: center; flex-wrap: wrap; }

/* --- PAGE HERO (pages internes) --- */
.page-hero {
  padding-top: calc(72px + var(--s8));
  padding-bottom: var(--s8);
  background: var(--cream);
}
.page-hero .section-label { margin-bottom: var(--s2); }
.page-hero h1 { margin-bottom: var(--s3); }
.page-hero .intro {
  font-size: 1.15rem;
  color: var(--text-sec);
  max-width: 60ch;
  line-height: 1.75;
}

/* --- LISTE PILIERS / SOURCES --- */
.pilier-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.pilier-item {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  padding: var(--s5);
  background: var(--white-warm);
  border-radius: var(--r-md);
  border-top: 4px solid var(--gold);
}
.pilier-item-num {
  font-family: var(--font-h);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  opacity: .35;
  line-height: 1;
}
.pilier-item h3 { margin-bottom: var(--s1); }
.pilier-item p { color: var(--text-sec); font-size: .95rem; }

/* Source list */
.source-list { display: grid; gap: var(--s3); }
.source-item {
  display: flex;
  gap: var(--s3);
  align-items: flex-start;
  padding: var(--s3) var(--s4);
  background: var(--white-warm);
  border-radius: var(--r-md);
}
.source-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: .45rem;
}
.source-item strong { color: var(--teal-dark); display: block; margin-bottom: .25rem; }
.source-item p { font-size: .9rem; color: var(--text-sec); }

/* Architecture pyramide */
.arch-diagram {
  background: var(--white-warm);
  border-radius: var(--r-lg);
  padding: var(--s8);
  text-align: center;
  border: 1px solid rgba(27,74,77,.08);
  box-shadow: var(--shadow);
}
.arch-socle {
  background: var(--teal-dark);
  color: var(--white-warm);
  border-radius: var(--r-md);
  padding: var(--s4) var(--s8);
  margin-bottom: var(--s4);
}
.arch-socle h3 { color: var(--white-warm); margin-bottom: var(--s2); }
.arch-socle p { color: rgba(253,250,244,.75); font-size: .9rem; margin-inline: auto; }
.arch-arrow { font-size: 1.5rem; color: var(--text-sec); margin-bottom: var(--s4); }
.arch-modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.arch-module {
  padding: var(--s3);
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: .9rem;
}
.arch-module-social { background: rgba(201,169,110,.15); color: var(--teal-dark); border: 1px solid rgba(201,169,110,.4); }
.arch-module-medico { background: rgba(74,139,142,.15); color: var(--teal-dark); border: 1px solid rgba(74,139,142,.4); }
.arch-module-scolaire { background: rgba(107,142,112,.15); color: var(--teal-dark); border: 1px solid rgba(107,142,112,.4); }

/* --- FORMATION PAGES --- */
.formation-hero { background: var(--cream); }
.formation-hero.social { border-bottom: 4px solid var(--social-accent); }
.formation-hero.medico { border-bottom: 4px solid var(--medico-accent); }
.formation-hero.scolaire { border-bottom: 4px solid var(--scolaire-accent); }

.formation-accent { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: var(--s3); }
.formation-accent-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--social-accent);
}
.formation-accent-dot.medico { background: var(--medico-accent); }
.formation-accent-dot.scolaire { background: var(--scolaire-accent); }

.info-card {
  background: var(--white-warm);
  border-radius: var(--r-lg);
  padding: var(--s6);
  box-shadow: var(--shadow);
  border: 1px solid rgba(27,74,77,.06);
}
.info-card h3 { margin-bottom: var(--s4); }
.info-row {
  display: flex;
  gap: var(--s3);
  padding-block: .85rem;
  border-bottom: 1px solid var(--green-light);
  align-items: flex-start;
}
.info-row:last-child { border-bottom: none; }
.info-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: .1rem; }
.info-label { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-sec); margin-bottom: .15rem; }
.info-val { font-size: .9rem; color: var(--text); }

.content-list { display: flex; flex-direction: column; gap: var(--s2); }
.content-item {
  display: flex;
  gap: var(--s2);
  align-items: flex-start;
  padding: var(--s2) var(--s3);
  background: var(--green-light);
  border-radius: var(--r-sm);
  font-size: .95rem;
}
.content-item::before { content: '✓'; color: var(--teal); font-weight: 700; flex-shrink: 0; }

/* --- ÉQUIPE --- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--s4); }
.team-card {
  background: var(--white-warm);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(27,74,77,.06);
  transition: transform var(--trans), box-shadow var(--trans);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.team-photo {
  aspect-ratio: 4/3;
  background: var(--green-light);
  border-bottom: 1px solid rgba(27,74,77,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-sec);
  font-size: .9rem;
  font-weight: 500;
  position: relative;
}
.team-photo::after {
  content: '📷';
  font-size: 2rem;
  position: absolute;
  opacity: .4;
}
.team-info { padding: var(--s4); }
.team-role {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gold);
  margin-bottom: var(--s1);
}
.team-info h3 { margin-bottom: var(--s1); font-size: 1.15rem; }
.team-expertise { font-size: .875rem; color: var(--text-sec); }

/* --- ACCESSIBILITÉ --- */
.steps-list { counter-reset: steps; display: flex; flex-direction: column; gap: var(--s3); }
.step {
  counter-increment: steps;
  display: flex;
  gap: var(--s4);
  padding: var(--s4);
  background: var(--white-warm);
  border-radius: var(--r-md);
  align-items: flex-start;
}
.step::before {
  content: counter(steps);
  font-family: var(--font-h);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--teal-dark);
  min-width: 2ch;
  flex-shrink: 0;
}
.step p { color: var(--text-sec); font-size: .95rem; }

/* --- FINANCEMENT --- */
.financement-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.financement-card {
  background: var(--white-warm);
  border-radius: var(--r-md);
  padding: var(--s6);
  box-shadow: var(--shadow);
  border: 1px solid rgba(27,74,77,.06);
}
.financement-card .num {
  font-family: var(--font-h);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  opacity: .35;
  line-height: 1;
  margin-bottom: var(--s2);
}
.financement-card h3 { margin-bottom: var(--s2); }
.financement-card p { color: var(--text-sec); font-size: .9rem; }
.notice {
  background: var(--green-light);
  border-radius: var(--r-md);
  padding: var(--s4);
  border-left: 4px solid var(--teal);
  margin-top: var(--s4);
}
.notice p { font-size: .9rem; color: var(--text); max-width: 100%; }

/* --- RÉSULTATS --- */
.placeholder-data {
  background: var(--cream);
  border: 2px dashed rgba(27,74,77,.2);
  border-radius: var(--r-lg);
  padding: var(--s12);
  text-align: center;
}
.placeholder-data p { color: var(--text-sec); font-size: 1rem; font-style: italic; margin-inline: auto; }

/* --- ESPACE APPRENANT --- */
.apprenant-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); margin-top: var(--s8); }
.feature-card {
  text-align: center;
  padding: var(--s6) var(--s4);
  background: var(--white-warm);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
}
.feature-icon { font-size: 2.5rem; margin-bottom: var(--s3); }
.feature-card h3 { font-size: 1rem; margin-bottom: var(--s1); }
.feature-card p { font-size: .875rem; color: var(--text-sec); }

/* === ESPACE APPRENANT — CTA COMPOSANT ===
   Pour basculer vers Moodle : changer data-label et data-href sur .apprenant-cta-btn
   Ou plus simplement remplacer le href et le texte du bouton ci-dessous.
   ZONE DE SWITCH — NE TOUCHER QU'À href ET AU TEXTE DU BOUTON
   ============================================================ */
.apprenant-cta-zone {
  text-align: center;
  padding: var(--s8);
  background: var(--cream);
  border-radius: var(--r-lg);
  margin-top: var(--s8);
}

/* --- CONTACT FORM --- */
.contact-grid { display: grid; grid-template-columns: 1fr 380px; gap: var(--s8); align-items: start; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.form-full { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: .7rem 1rem;
  border: 1.5px solid rgba(27,74,77,.15);
  border-radius: var(--r-sm);
  font-family: var(--font-b);
  font-size: .9rem;
  color: var(--text);
  background: var(--white-warm);
  transition: border-color var(--trans), box-shadow var(--trans);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42,107,110,.12);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-check-group { display: flex; flex-direction: column; gap: var(--s2); }
.form-check-group label {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: .9rem;
  cursor: pointer;
  font-weight: 400;
}
.form-check-group input[type="checkbox"] {
  width: 18px; height: 18px;
  border-radius: 4px;
  accent-color: var(--teal);
  flex-shrink: 0;
}
.form-section-title {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--teal);
  margin-bottom: var(--s2);
  margin-top: var(--s3);
}
.form-success {
  display: none;
  background: var(--green-light);
  border: 1px solid rgba(42,107,110,.3);
  border-radius: var(--r-md);
  padding: var(--s4);
  margin-top: var(--s3);
  color: var(--teal-dark);
  font-weight: 500;
  text-align: center;
}

/* Contact sidebar */
.contact-sidebar { display: flex; flex-direction: column; gap: var(--s4); }
.contact-info-card {
  background: var(--teal-dark);
  color: var(--white-warm);
  border-radius: var(--r-lg);
  padding: var(--s6);
}
.contact-info-card h3 { color: var(--white-warm); margin-bottom: var(--s4); }
.contact-info-item {
  display: flex;
  gap: var(--s3);
  align-items: flex-start;
  margin-bottom: var(--s3);
  font-size: .9rem;
}
.contact-info-item:last-child { margin-bottom: 0; }
.contact-info-item .ci-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: .1rem; }
.contact-info-item a { color: rgba(253,250,244,.8); transition: color var(--trans); }
.contact-info-item a:hover { color: var(--gold); }
.rdv-card {
  background: var(--cream);
  border-radius: var(--r-lg);
  padding: var(--s6);
  text-align: center;
  border: 1px solid rgba(27,74,77,.08);
}
.rdv-card h3 { margin-bottom: var(--s2); }
.rdv-card p { font-size: .9rem; color: var(--text-sec); margin-bottom: var(--s4); }

/* --- MENTIONS / CGV --- */
.legal-content { max-width: 72ch; }
.legal-content h2 { font-size: 1.4rem; margin-top: var(--s6); margin-bottom: var(--s2); }
.legal-content h3 { font-size: 1.1rem; margin-top: var(--s4); margin-bottom: var(--s1); }
.legal-content p { margin-bottom: var(--s3); color: var(--text-sec); font-size: .95rem; }
.legal-content ul { margin-left: var(--s4); margin-bottom: var(--s3); }
.legal-content ul li { margin-bottom: var(--s1); color: var(--text-sec); font-size: .95rem; list-style: disc; }
.legal-table { width: 100%; border-collapse: collapse; margin-block: var(--s4); font-size: .875rem; }
.legal-table th, .legal-table td { padding: .75rem var(--s3); text-align: left; border-bottom: 1px solid var(--green-light); }
.legal-table th { background: var(--green-light); font-weight: 600; color: var(--teal-dark); }

/* --- VALEURS --- */
/* --- GRID 4 --- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s6); }

/* --- COMPTEURS --- */
.counter-card { text-align: center; padding: var(--s4); }
.counter-num {
  font-family: var(--font-h);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: var(--s2);
}
.counter-label {
  color: rgba(253,250,244,.75);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .03em;
}

/* --- TÉMOIGNAGES --- */
.temoignage-card {
  background: var(--white-warm);
  border-radius: var(--r-md);
  padding: var(--s6);
  box-shadow: var(--shadow);
  border: 1px solid rgba(27,74,77,.06);
  display: flex;
  flex-direction: column;
  transition: transform var(--trans), box-shadow var(--trans);
}
.temoignage-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.temoignage-quote {
  font-size: .97rem;
  line-height: 1.75;
  color: var(--text-sec);
  font-style: italic;
  flex: 1;
  margin-bottom: var(--s4);
  padding-top: var(--s3);
  position: relative;
}
.temoignage-quote::before {
  content: '\201C';
  font-family: var(--font-h);
  font-size: 4rem;
  color: var(--gold);
  opacity: .4;
  position: absolute;
  top: -1rem;
  left: -.5rem;
  line-height: 1;
}
.temoignage-author {
  font-weight: 600;
  color: var(--teal-dark);
  font-size: .9rem;
}
.temoignage-role {
  font-size: .8rem;
  color: var(--text-sec);
  margin-top: var(--s1);
}

.valeur-card {
  padding: var(--s6);
  border-radius: var(--r-md);
  background: var(--white-warm);
  box-shadow: var(--shadow);
}
.valeur-card .valeur-icon { font-size: 2rem; margin-bottom: var(--s3); }
.valeur-card h3 { margin-bottom: var(--s2); }
.valeur-card p { color: var(--text-sec); font-size: .95rem; }

/* --- TABLEAU FORMATIONS --- */
.formations-table { width: 100%; border-collapse: collapse; margin-top: var(--s6); font-size: .9rem; }
.formations-table th, .formations-table td { padding: 1rem var(--s3); border-bottom: 1px solid var(--green-light); text-align: left; }
.formations-table th { background: var(--teal-dark); color: var(--white-warm); font-weight: 600; }
.formations-table tr:nth-child(even) { background: var(--cream); }
.formations-table tr:hover { background: var(--green-light); }
.formations-table td a { color: var(--teal); font-weight: 600; text-decoration: underline; }

/* --- ANIMATIONS --- */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Stagger children */
.stagger > * { transition-delay: calc(var(--i, 0) * 80ms); }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-sidebar { flex-direction: row; flex-wrap: wrap; }
  .contact-info-card, .rdv-card { flex: 1; min-width: 260px; }
  .financement-grid { grid-template-columns: 1fr; }
  .apprenant-features { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --s12: 4rem; --s8: 3rem; }
  .nav-toggle { display: block; }
  .main-nav { position: fixed; inset: 72px 0 0 0; background: var(--white-warm); padding: var(--s4); z-index: 99; display: none; overflow-y: auto; }
  .main-nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: flex-start; gap: 0; }
  .nav-list > li > a { padding: .9rem var(--s2); font-size: 1.05rem; width: 100%; border-radius: var(--r-sm); }
  .has-dropdown .dropdown { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: none; background: var(--green-light); border-radius: var(--r-sm); margin-top: .25rem; margin-left: var(--s2); }
  .hero .container { grid-template-columns: 1fr; }
  .hero-card { min-width: auto; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .counter-num { font-size: 2.8rem; }
  .arch-modules { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .apprenant-features { grid-template-columns: 1fr; }
  .pilier-list { grid-template-columns: 1fr; }
  .pilier-item { gap: var(--s2); }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; justify-content: center; }
  .cta-strip-actions { flex-direction: column; align-items: center; }
  .team-grid { grid-template-columns: 1fr; }
}
