/* =====================================================================
   XAM XAM ACADEMY — Feuille de style principale
   ---------------------------------------------------------------------
   Organisation :
   1.  Polices
   2.  Variables (couleurs, typographie, espacements)
   3.  Base & accessibilité
   4.  Mise en page & composants communs (boutons, cartes, titres…)
   5.  En-tête & navigation
   6.  Hero
   7.  Nos cours
   8.  Niveaux
   9.  Méthode
   10. Xam Xam Online
   11. Comment ça marche
   12. Contenus pédagogiques
   13. À propos
   14. Parents
   15. FAQ
   16. Contact & formulaire
   17. Pied de page
   18. Bouton WhatsApp flottant
   19. Animations
   20. Pages intérieures (ressources, vidéos, blog)
   21. Contenu des cours et articles (Markdown, formules, encadrés)
   Approche « mobile first » : les styles de base visent le smartphone,
   les media queries (min-width) enrichissent la tablette et l'ordinateur.
   ===================================================================== */


/* 1. POLICES (auto-hébergées, sous-ensemble latin, licence SIL OFL) ==== */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}


/* 2. VARIABLES ========================================================= */
:root {
  /* Couleurs de marque */
  --navy-950: #011633;
  --navy-900: #021f4d;   /* bleu marine du logo : couleur principale */
  --navy-800: #0b2d62;
  --navy-700: #173d7a;
  --blue-600: #2355d6;   /* bleu secondaire */
  --blue-500: #3a6cf0;
  --blue-300: #9db8f5;
  --blue-100: #e3ebfc;
  --blue-50:  #f2f6fe;
  --gold-500: #f9b603;   /* doré du logo : à utiliser avec parcimonie */
  --gold-300: #fbc53a;   /* doré pour du texte sur fond marine */
  --gold-700: #7a5800;   /* doré lisible sur fond clair */
  --green-700: #15803d;  /* WhatsApp (contraste AA avec texte blanc) */
  --green-800: #116a33;
  --error: #b42318;

  /* Textes & fonds */
  --ink: #0e1a2b;
  --text: #1f2d42;
  --muted: #56657c;
  --muted-light: #9fb0cb; /* texte secondaire sur fond marine */
  --line: #e2e8f1;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;

  /* Typographie */
  --font-heading: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Formes & ombres */
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(2, 31, 77, 0.05);
  --shadow: 0 1px 2px rgba(2, 31, 77, 0.04), 0 10px 30px -14px rgba(2, 31, 77, 0.12);
  --shadow-lg: 0 2px 4px rgba(2, 31, 77, 0.04), 0 28px 56px -24px rgba(2, 31, 77, 0.22);

  /* Mise en page */
  --container: 1200px;
  --gutter: 20px;
  --header-h: 68px;
  --section-y: clamp(4.5rem, 9vw, 7.5rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
    --header-h: 76px;
  }
}


/* 3. BASE & ACCESSIBILITÉ ============================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-heading);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  word-spacing: 0.04em;
  text-wrap: balance;
}

p,
blockquote,
figure {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 6px;
}

main:focus {
  outline: none;
}

[hidden] {
  display: none !important;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.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;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--navy-900);
  color: #fff;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: none;
}

/* Icônes SVG (sprite en haut de index.html) */
.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* 4. MISE EN PAGE & COMPOSANTS COMMUNS ================================= */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section--soft {
  background: var(--bg-soft);
}

.section--dark {
  background: var(--navy-900);
  color: var(--muted-light);
}

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.section-title {
  font-size: clamp(1.875rem, 1.2rem + 2.6vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-lead {
  margin-top: 1rem;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  color: var(--muted);
}

.section--dark .section-title {
  color: #fff;
}

.section--dark .section-lead {
  color: var(--muted-light);
}

/* Sur-titre (petit libellé au-dessus des titres) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-600);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-500);
}

.section--dark .eyebrow,
.eyebrow--light {
  color: var(--gold-300);
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.975rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}

.btn .icon {
  width: 1.15em;
  height: 1.15em;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: none;
}

.btn--primary {
  background: var(--navy-900);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(2, 31, 77, 0.6);
}

.btn--primary:hover {
  background: var(--navy-700);
}

.btn--secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--navy-900);
  box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
  border-color: var(--blue-300);
  color: var(--blue-600);
}

.btn--outline-light {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.btn--outline-light:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

.btn--whatsapp {
  background: var(--green-700);
  color: #fff;
  box-shadow: 0 14px 30px -14px rgba(21, 128, 61, 0.8);
}

.btn--whatsapp:hover {
  background: var(--green-800);
}

.btn--sm {
  min-height: 42px;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
}

.btn--lg {
  min-height: 54px;
  padding: 0.9rem 1.6rem;
  font-size: 1rem;
}

.btn--xl {
  min-height: 60px;
  padding: 1rem 1.9rem;
  font-size: 1.075rem;
}

.btn--block {
  width: 100%;
}

/* Lien avec flèche */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue-600);
  transition: color 0.2s;
}

.link-arrow .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.2s var(--ease);
}

.link-arrow:hover {
  color: var(--navy-900);
}

.link-arrow:hover .icon {
  transform: translateX(3px);
}

/* Grilles */
.grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

/* Cartes */
.card {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--blue-100);
  box-shadow: var(--shadow-lg);
}

.card__title {
  margin: 1.5rem 0 0.6rem;
  font-size: 1.3rem;
  font-weight: 700;
}

.card__text {
  color: var(--muted);
}

/* Pastille d'icône */
.icon-badge {
  display: inline-grid;
  flex-shrink: 0;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--blue-100);
  border-radius: 14px;
  background: var(--blue-50);
  color: var(--blue-600);
}

.icon-badge .icon {
  width: 24px;
  height: 24px;
}

.icon-badge--sm {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.icon-badge--sm .icon {
  width: 20px;
  height: 20px;
}

/* Étiquettes */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.chip--accent {
  border-color: var(--navy-900);
  background: var(--navy-900);
  color: #fff;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.tags li {
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--blue-50);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--blue-600);
}


/* 5. EN-TÊTE & NAVIGATION ============================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

/* Le flou est porté par un pseudo-élément pour ne pas perturber
   le positionnement du menu mobile (position: fixed). */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  transition: background-color 0.3s;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 28px -22px rgba(2, 31, 77, 0.45);
}

.site-header.is-scrolled::before,
.nav-open .site-header::before {
  background: rgba(255, 255, 255, 0.96);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 100%;
}

/* Logo */
.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
}

.brand__logo {
  width: auto;
  height: 40px;
}

@media (min-width: 768px) {
  .brand__logo {
    height: 46px;
  }
}

/* Menu : version mobile (panneau plein écran) */
.nav {
  position: fixed;
  inset: var(--header-h) 0 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem var(--gutter) max(2rem, env(safe-area-inset-bottom));
  overflow-y: auto;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0s linear 0.25s;
}

.nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0s;
}

.nav__list {
  display: flex;
  flex-direction: column;
}

.nav__link {
  position: relative;
  display: block;
  padding: 1rem 0.25rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy-900);
  transition: color 0.2s;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--blue-600);
}

.nav__mobile-footer {
  display: grid;
  gap: 0.75rem;
}

.nav__mobile-note {
  font-size: 0.9rem;
  text-align: center;
  color: var(--muted);
}

.header__cta {
  display: none;
}

.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--navy-900);
  cursor: pointer;
}

.nav-toggle .icon {
  width: 22px;
  height: 22px;
}

.nav-toggle__close,
.nav-toggle[aria-expanded="true"] .nav-toggle__open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__close {
  display: block;
}

/* Menu : version ordinateur */
@media (min-width: 1240px) {
  .nav {
    position: static;
    flex-direction: row;
    padding: 0;
    overflow: visible;
    background: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .nav__list {
    flex-direction: row;
    gap: 0.15rem;
  }

  .nav__link {
    padding: 0.5rem 0.7rem;
    border: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    white-space: nowrap;
    color: var(--text);
  }

  .nav__link::after {
    content: "";
    position: absolute;
    left: 0.7rem;
    right: 0.7rem;
    bottom: 0.15rem;
    height: 2px;
    border-radius: 2px;
    background: var(--gold-500);
    transform: scaleX(0);
    transition: transform 0.25s var(--ease);
  }

  .nav__link.is-active {
    color: var(--navy-900);
  }

  .nav__link.is-active::after {
    transform: scaleX(1);
  }

  .nav__mobile-footer,
  .nav-toggle {
    display: none;
  }

  .header__cta {
    display: inline-flex;
  }
}


/* 6. HERO ============================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem));
  padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
  background:
    radial-gradient(55% 60% at 88% 18%, rgba(58, 108, 240, 0.1), transparent 70%),
    linear-gradient(180deg, #fff 0%, #f8fafe 100%);
}

/* Quadrillage discret façon cahier de sciences */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(2, 31, 77, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(2, 31, 77, 0.045) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 72% 35%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 65% at 72% 35%, #000 15%, transparent 72%);
  pointer-events: none;
}

@media (max-width: 479px) {
  .hero .eyebrow {
    gap: 0.6rem;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
  }

  .hero .eyebrow::before {
    width: 18px;
  }
}

.hero__grid {
  position: relative;
  display: grid;
  align-items: center;
  gap: 3rem;
}

.hero__title {
  margin-bottom: 1.25rem;
  font-size: clamp(2.35rem, 1.3rem + 4.4vw, 4.1rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.highlight {
  white-space: nowrap;
  color: var(--blue-600);
  background: linear-gradient(var(--gold-500), var(--gold-500)) no-repeat left 0 bottom 0.04em / 100% 0.09em;
  padding-bottom: 0.04em;
}

.hero__lead {
  max-width: 34rem;
  font-size: clamp(1.0625rem, 1rem + 0.45vw, 1.25rem);
  color: var(--muted);
}

.hero__services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.75rem 0 2rem;
}

.hero__services li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
}

.hero__services .icon {
  width: 1rem;
  height: 1rem;
  stroke-width: 2.25;
  color: var(--blue-600);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero__zones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}

.hero__zones .icon {
  color: var(--blue-600);
}

.hero__zones .dot {
  color: var(--gold-500);
}

.hero__visual {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
}

.hero-art {
  width: 100%;
  height: auto;
  overflow: visible;
}

/* Textes de l'illustration */
.art-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  fill: rgba(255, 255, 255, 0.55);
}

.art-formula {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  fill: rgba(255, 255, 255, 0.82);
}

.art-formula--xl {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.02em;
  fill: #fff;
}

.art-sub {
  font-size: 17px;
}

.art-caption {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  fill: var(--gold-300);
}

.art-card-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  fill: var(--navy-900);
}

.art-steps circle {
  fill: var(--blue-50);
  stroke: var(--blue-100);
}

.art-step-num {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  text-anchor: middle;
  fill: var(--blue-600);
}

.art-step {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  fill: var(--text);
}

.art-card-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  fill: var(--muted);
}

.art-card-value {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  fill: var(--navy-900);
}

@media (min-width: 560px) {
  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (min-width: 992px) {
  .hero__grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 3.5rem;
  }

  .hero__visual {
    max-width: none;
  }
}


/* 7. NOS COURS ========================================================= */
.service {
  display: flex;
  flex-direction: column;
}

.service .card__text {
  flex: 1;
}

.service__meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--text);
}

.service__meta .icon {
  width: 18px;
  height: 18px;
  color: var(--blue-600);
}

.service__meta strong {
  font-weight: 600;
  color: var(--ink);
}

.service .link-arrow {
  margin-top: 1.25rem;
}


/* 8. NIVEAUX =========================================================== */
.level {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.level::before {
  content: "";
  position: absolute;
  top: -1px;
  left: clamp(1.5rem, 3vw, 2rem);
  width: 40px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--gold-500);
}

.level__step {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--blue-600);
}

.level__title {
  margin: 0.35rem 0 1.25rem;
  font-size: 1.4rem;
  font-weight: 800;
}

.focus {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  text-align: center;
}

.focus__label {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

.focus__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.5rem;
}

.focus__list li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--navy-900);
}

.focus__list .icon {
  color: var(--blue-600);
}

@media (min-width: 1100px) {
  .focus {
    flex-direction: row;
    justify-content: space-between;
    padding: 1.35rem 2rem;
    text-align: left;
  }
}


/* 9. MÉTHODE =========================================================== */
.steps {
  position: relative;
  display: grid;
  gap: 1.25rem;
}

.step {
  position: relative;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.step__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.step__num {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--navy-900);
}

.step__num::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 3px;
  border-radius: 50%;
  background: var(--gold-500);
}

.step__title {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.step__text {
  font-size: 0.975rem;
  color: var(--muted);
}

.quote {
  position: relative;
  max-width: 880px;
  margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 4vw, 2.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}

.quote::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  width: 56px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--gold-500);
  transform: translateX(-50%);
}

.quote p {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.45rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--navy-900);
  text-wrap: balance;
}

@media (min-width: 700px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }

  /* Fil conducteur entre les étapes */
  .steps::before {
    content: "";
    position: absolute;
    top: 3.4rem;
    left: 3rem;
    right: 3rem;
    border-top: 1.5px dashed var(--blue-300);
  }
}


/* 10. XAM XAM ONLINE =================================================== */
.online {
  overflow: hidden;
  background:
    radial-gradient(70% 55% at 50% 0%, rgba(58, 108, 240, 0.2), transparent 70%),
    var(--navy-900);
}

.online__decor {
  position: absolute;
  top: 3rem;
  right: -60px;
  width: 420px;
  color: #fff;
  opacity: 0.06;
  pointer-events: none;
}

.online .container {
  position: relative;
}

.plans {
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 3vw, 2.25rem);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-light);
}

.plan__kicker {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-300);
}

.plan__title {
  margin: 0.6rem 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}

.plan__title span {
  display: block;
  margin-top: 0.15rem;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.plan__desc {
  font-size: 0.95rem;
}

.plan__includes {
  margin-top: 1.25rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold-300);
}

.plan__features {
  flex: 1;
  display: grid;
  align-content: start;
  gap: 0.8rem;
  margin: 1.25rem 0 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.plan__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-weight: 500;
  color: #e6ecf5;
}

.plan__features .icon {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  stroke-width: 2.25;
  color: var(--gold-300);
}

/* Formule mise en avant (suivi renforcé) */
.plan--featured {
  border: 1px solid #fff;
  background: #fff;
  color: var(--muted);
  box-shadow: 0 36px 70px -34px rgba(0, 0, 0, 0.6);
}

.plan--featured::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  height: 4px;
  border-radius: 20px 20px 0 0;
  background: var(--gold-500);
}

.plan--featured .plan__kicker {
  color: var(--blue-600);
}

.plan--featured .plan__title {
  color: var(--ink);
}

.plan--featured .plan__includes {
  color: var(--gold-700);
}

.plan--featured .plan__features {
  border-color: var(--line);
}

.plan--featured .plan__features li {
  color: var(--ink);
}

.plan--featured .plan__features .icon {
  color: var(--blue-600);
}

.plan__badge {
  position: absolute;
  top: 1.6rem;
  right: 1.6rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--navy-900);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-300);
}

.online__note {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2.5rem;
  font-size: 0.95rem;
  text-align: center;
  color: var(--muted-light);
}

.online__note .icon {
  color: var(--gold-300);
}

@media (min-width: 700px) {
  .online__note {
    flex-direction: row;
  }
}

@media (min-width: 900px) {
  .plan--featured {
    margin-block: -0.75rem;
    padding-block: calc(clamp(1.75rem, 3vw, 2.25rem) + 0.75rem);
  }
}


/* 11. COMMENT ÇA MARCHE ================================================ */
.process {
  position: relative;
  display: grid;
  max-width: 560px;
  margin-inline: auto;
}

/* Mobile : frise verticale */
.process__item {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  align-content: start;
  column-gap: 1.1rem;
  padding-bottom: 2rem;
}

.process__item:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 64px;
  bottom: 8px;
  left: 27px;
  width: 2px;
  border-radius: 2px;
  background: var(--blue-100);
}

.process__item:last-child {
  padding-bottom: 0;
}

.process__icon {
  grid-row: span 3;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--blue-600);
}

.process__icon .icon {
  width: 24px;
  height: 24px;
}

.process__num {
  align-self: end;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-600);
}

.process__title {
  margin: 0.2rem 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.process__text {
  font-size: 0.95rem;
  color: var(--muted);
}

/* Ordinateur : frise horizontale */
@media (min-width: 1000px) {
  .process {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    max-width: none;
  }

  .process::before {
    content: "";
    position: absolute;
    top: 32px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--blue-300) 0 6px, transparent 6px 12px);
  }

  .process__item {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 0;
    text-align: center;
  }

  .process__item:not(:last-child)::before {
    display: none;
  }

  .process__icon {
    position: relative;
    grid-row: auto;
    width: 64px;
    height: 64px;
    margin-bottom: 1.25rem;
  }

  .process__item:last-child .process__icon {
    border-color: var(--navy-900);
    background: var(--navy-900);
    color: var(--gold-300);
  }
}


/* 12. CONTENUS PÉDAGOGIQUES ============================================ */
.resources {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.resource {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.resource:hover {
  border-color: var(--blue-100);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.resource__link {
  display: block;
  height: 100%;
  padding: 1.5rem 1.25rem;
  border-radius: inherit;
}

.resource__link:hover .resource__title {
  color: var(--blue-600);
}

.resource:last-child {
  grid-column: 1 / -1;
}

.resource__title {
  margin: 1.1rem 0 0.3rem;
  font-size: 1.02rem;
  font-weight: 700;
}

.resource__text {
  font-size: 0.9rem;
  color: var(--muted);
}

.resources__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2.5rem;
  text-align: center;
}

.resources__footer > p {
  max-width: 36rem;
  font-weight: 500;
  color: var(--ink);
}

.resources__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

@media (min-width: 700px) {
  .resources {
    grid-template-columns: repeat(3, 1fr);
  }

  .resource:last-child {
    grid-column: auto;
  }
}

@media (min-width: 1100px) {
  .resources {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
  }
}


/* 13. À PROPOS ========================================================= */
.about {
  display: grid;
  align-items: center;
  gap: 3rem;
}

.about__visual {
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
}

.about__figure {
  position: relative;
  margin: 0;
  padding: 0 14px 14px 0;
}

/* Cadre décoratif décalé derrière la photo */
.about__figure::before {
  content: "";
  position: absolute;
  inset: 14px 0 0 14px;
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--blue-100), var(--blue-50));
}

.about__figure picture {
  display: block;
  position: relative;
}

.about__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Étiquette posée sur la photo */
.about__caption {
  position: absolute;
  bottom: 36px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 1.1rem 0.55rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-lg);
}

.about__caption img {
  width: 48px;
  height: auto;
}

.about__caption span {
  display: grid;
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--muted);
}

.about__caption strong {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
}

.about__lead {
  margin-top: 1.25rem;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.2rem);
  color: var(--text);
}

.about__text {
  margin-top: 1rem;
  color: var(--muted);
}

.pillars {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
}

@media (min-width: 480px) {
  .pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.pillars li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.pillars .icon {
  color: var(--blue-600);
}

@media (min-width: 992px) {
  .about {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
  }

  .about__visual {
    max-width: none;
  }

  .about__caption {
    left: -28px;
    bottom: 56px;
  }
}


/* 14. PARENTS ========================================================== */
.parents {
  display: grid;
  align-items: center;
  gap: 3rem;
}

.parents__lead {
  margin-top: 1.25rem;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.2rem);
  color: var(--text);
}

.parents__list {
  display: grid;
  gap: 0.9rem;
  margin-top: 2rem;
}

.parents__list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: var(--ink);
}

.flow-card {
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.flow-card__title {
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  text-align: center;
  color: var(--ink);
}

.flow__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy-900);
}

.flow__item:not(:last-child) {
  margin-bottom: 2.1rem;
}

/* Flèche « ↓ » entre les étapes (décorative) */
.flow__item:not(:last-child)::after {
  content: "↓";
  content: "↓" / "";
  position: absolute;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.2rem;
  line-height: 2rem;
  color: var(--blue-300);
}

.flow__item .icon {
  color: var(--blue-600);
}

.flow__item--final {
  border-color: var(--navy-900);
  background: var(--navy-900);
  color: #fff;
}

.flow__item--final .icon {
  color: var(--gold-300);
}

@media (min-width: 560px) {
  .parents__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .parents {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
  }
}


/* 15. FAQ ============================================================== */
.faq {
  display: grid;
  gap: 2.5rem;
}

.faq__intro .link-arrow {
  margin-top: 1.5rem;
}

.faq__list {
  display: grid;
  gap: 0.75rem;
}

.faq__item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq__item[open] {
  border-color: var(--blue-100);
  box-shadow: var(--shadow);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.35rem;
  border-radius: 16px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  list-style: none;
  cursor: pointer;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary:hover {
  color: var(--blue-600);
}

.faq__item summary .icon {
  width: 22px;
  height: 22px;
  color: var(--blue-600);
  transition: transform 0.25s var(--ease);
}

.faq__item[open] summary .icon {
  transform: rotate(180deg);
}

.faq__answer {
  padding: 0 1.35rem 1.3rem;
  color: var(--muted);
}

.faq__answer a {
  font-weight: 600;
  color: var(--blue-600);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq__answer ul {
  display: grid;
  gap: 0.3rem;
  margin-top: 0.6rem;
}

.faq__answer li {
  position: relative;
  padding-left: 1.1rem;
}

.faq__answer li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 0.1rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-500);
}

/* Ouverture animée (navigateurs récents ; ailleurs, ouverture instantanée) */
@supports selector(::details-content) {
  .faq__item {
    interpolate-size: allow-keywords;
  }

  .faq__item::details-content {
    height: 0;
    overflow: clip;
    transition: height 0.3s var(--ease), content-visibility 0.3s allow-discrete;
  }

  .faq__item[open]::details-content {
    height: auto;
  }
}

@media (min-width: 992px) {
  .faq {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
    gap: 5rem;
  }

  .faq__intro {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}


/* 16. CONTACT & FORMULAIRE ============================================= */
.contact {
  position: relative;
  display: grid;
  gap: 2.5rem;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(70% 90% at 0% 0%, rgba(58, 108, 240, 0.28), transparent 60%),
    var(--navy-900);
  color: var(--muted-light);
}

.contact__decor {
  position: absolute;
  bottom: -150px;
  left: -130px;
  width: 440px;
  color: #fff;
  opacity: 0.05;
  pointer-events: none;
}

.contact__intro {
  position: relative;
}

.contact__title {
  font-size: clamp(2rem, 1.3rem + 2.8vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: #fff;
}

.contact__text {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: #c9d4e5;
}

.contact .btn--whatsapp {
  margin-top: 2rem;
}

.contact__details {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
}

.contact__details li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #c9d4e5;
}

.contact__details strong {
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.contact__details .icon {
  color: var(--gold-300);
}

.form {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5);
  color: var(--text);
}

.form__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink);
}

.form__row {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.req {
  color: var(--blue-600);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  font-size: 1rem; /* 16 px minimum : évite le zoom automatique sur iPhone */
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.field textarea {
  min-height: 112px;
  resize: vertical;
}

.field select {
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2356657c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 18px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.field ::placeholder {
  color: #6b7a90;
  opacity: 1;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #cdd6e4;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(58, 108, 240, 0.16);
}

.field [aria-invalid="true"] {
  border-color: var(--error);
}

.field__error {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--error);
}

.field__error:empty {
  display: none;
}

.form__note {
  font-size: 0.85rem;
  text-align: center;
  color: var(--muted);
}

.form__status {
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  color: var(--green-700);
}

.form__status:empty {
  display: none;
}

@media (min-width: 520px) {
  .form__row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 992px) {
  .contact {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
  }
}


/* 17. PIED DE PAGE ===================================================== */
.site-footer {
  padding-top: clamp(3.5rem, 7vw, 5rem);
  background: var(--navy-950);
  color: var(--muted-light);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 1.5rem;
  padding-bottom: 3rem;
}

.footer__brand,
.footer__col:last-child {
  grid-column: 1 / -1;
}

.footer__logo {
  display: inline-block;
  border-radius: 50%;
}

.footer__logo img {
  width: 96px;
  height: auto;
}

.footer__slogan {
  margin-top: 1.25rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
}

.footer__about {
  max-width: 22rem;
  margin-top: 0.4rem;
  font-size: 0.95rem;
}

.footer__title {
  margin-bottom: 1.1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-300);
}

.footer__col ul {
  display: grid;
  gap: 0.6rem;
}

.footer__col a {
  transition: color 0.2s;
}

.footer__col a:hover {
  color: #fff;
}

.footer__contacts {
  display: grid;
  gap: 1rem;
}

.footer__contact {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
  color: #fff;
}

.footer__contact > .icon {
  width: 44px;
  height: 44px;
  padding: 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  transition: background-color 0.2s;
}

.footer__contact--whatsapp:hover > .icon {
  background: var(--green-700);
}

.footer__contact--youtube:hover > .icon {
  background: rgba(255, 255, 255, 0.18);
}

.footer__contact-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted-light);
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
}

.footer__top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
}

.footer__top:hover {
  color: #fff;
}

.footer__top .icon {
  width: 16px;
  height: 16px;
  transform: rotate(-90deg);
}

@media (min-width: 640px) {
  .footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 992px) {
  .footer__grid {
    grid-template-columns: 1.35fr 1fr 1fr 0.75fr 1.35fr;
    gap: 2.5rem 2rem;
  }

  .footer__brand,
  .footer__col:last-child {
    grid-column: auto;
  }
}


/* 18. BOUTON WHATSAPP FLOTTANT ========================================= */
.wa-float {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green-700);
  color: #fff;
  box-shadow: 0 14px 30px -10px rgba(21, 128, 61, 0.6), 0 4px 12px rgba(2, 31, 77, 0.14);
  transition: transform 0.25s var(--ease), opacity 0.3s, visibility 0.3s, background-color 0.2s;
}

.wa-float .icon {
  width: 28px;
  height: 28px;
}

.wa-float:hover {
  background: var(--green-800);
  transform: translateY(-2px);
}

.wa-float__tip {
  position: absolute;
  top: 50%;
  right: calc(100% + 12px);
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  background: var(--navy-900);
  box-shadow: var(--shadow);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translate(6px, -50%);
  transition: opacity 0.2s, transform 0.2s var(--ease);
}

.wa-float:hover .wa-float__tip,
.wa-float:focus-visible .wa-float__tip {
  opacity: 1;
  transform: translate(0, -50%);
}

.wa-float.is-hidden,
.nav-open .wa-float {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
}

@media (min-width: 768px) {
  .wa-float {
    right: 1.5rem;
    bottom: 1.5rem;
    width: 60px;
    height: 60px;
  }
}


/* 19. ANIMATIONS ======================================================= */
/* Décalage progressif des animations : data-delay="1" à "5" dans le HTML */
[data-delay="1"] { --d: 1; }
[data-delay="2"] { --d: 2; }
[data-delay="3"] { --d: 3; }
[data-delay="4"] { --d: 4; }
[data-delay="5"] { --d: 5; }

/* Entrée du hero : animation CSS pure (ne dépend pas du JavaScript) */
.rise {
  animation: rise 0.8s var(--ease) both;
  animation-delay: calc(var(--d, 0) * 90ms);
}

@keyframes rise {
  from {
    opacity: 0;
    translate: 0 14px;
  }
}

/* Apparition au défilement : activée uniquement si le JavaScript est chargé */
.js .reveal {
  opacity: 0;
  translate: 0 18px;
  transition:
    opacity 0.8s var(--ease) calc(var(--d, 0) * 90ms),
    translate 0.8s var(--ease) calc(var(--d, 0) * 90ms),
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    border-color 0.3s;
}

.js .reveal.is-visible {
  opacity: 1;
  translate: 0 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js .reveal {
    opacity: 1;
    translate: none;
  }
}

@media print {
  .js .reveal {
    opacity: 1;
    translate: none;
  }

  .site-header,
  .wa-float,
  .contact .form {
    display: none;
  }
}


/* 20. PAGES INTÉRIEURES (RESSOURCES, VIDÉOS, BLOG) ===================== */
.section--tight {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.container--narrow {
  width: min(100% - 2 * var(--gutter), 800px);
}

/* En-tête de page */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 5vw, 4rem));
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(55% 80% at 90% 0%, rgba(58, 108, 240, 0.1), transparent 70%),
    linear-gradient(180deg, #fff 0%, #f8fafe 100%);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(2, 31, 77, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(2, 31, 77, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 60% 90% at 85% 10%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 90% at 85% 10%, #000 10%, transparent 70%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
}

.page-hero__title {
  font-size: clamp(2rem, 1.3rem + 2.8vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.page-hero__lead {
  max-width: 44rem;
  margin-top: 0.9rem;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.2rem);
  color: var(--muted);
}

/* Onglets Cours et exercices · Vidéos · Blog */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.tabs__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-family: var(--font-heading);
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--navy-900);
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.tabs__link .icon {
  width: 18px;
  height: 18px;
  color: var(--blue-600);
}

.tabs__link:hover {
  border-color: var(--blue-300);
}

.tabs__link.is-active {
  border-color: var(--navy-900);
  background: var(--navy-900);
  color: #fff;
}

.tabs__link.is-active .icon {
  color: var(--gold-300);
}

/* Fil d'Ariane */
.breadcrumb {
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.breadcrumb .icon {
  width: 14px;
  height: 14px;
}

.breadcrumb a {
  color: var(--blue-600);
  font-weight: 500;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb [aria-current] {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

/* Filtres */
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem 2.5rem;
  margin-bottom: 1.75rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.no-js .filters {
  display: none;
}

.filters__group {
  display: grid;
  gap: 0.5rem;
}

.filters__label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.filters__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.filter {
  min-height: 38px;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.filter:hover {
  border-color: var(--blue-300);
}

.filter.is-active {
  border-color: var(--blue-600);
  background: var(--blue-600);
  color: #fff;
}

.filters__count {
  margin-left: auto;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
}

.filters__none {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--muted);
}

/* Grilles de cartes */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.25rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1.5rem;
}

.related__title {
  margin-bottom: 1.5rem;
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
  font-weight: 800;
}

.more-link {
  margin-top: 2rem;
  text-align: center;
}

.more-link .link-arrow {
  align-self: center;
}

/* Étiquettes */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}

.badge .icon {
  width: 14px;
  height: 14px;
}

.badge--type {
  border-color: var(--blue-100);
  background: var(--blue-50);
  color: var(--blue-600);
}

.badge--pdf {
  border-color: var(--navy-900);
  background: var(--navy-900);
  color: #fff;
}

.badge--draft {
  border-color: #f3dca4;
  background: #fdf6e3;
  color: var(--gold-700);
}

/* Carte ressource */
.rcard {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}

.rcard:hover {
  border-color: var(--blue-100);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.rcard__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.4rem 1.4rem 1.2rem;
  border-radius: inherit;
}

.rcard__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.rcard__title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

.rcard__link:hover .rcard__title {
  color: var(--blue-600);
}

.rcard__chapter {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue-600);
}

.rcard__text {
  flex: 1;
  margin-top: 0.6rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.rcard__meta {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-size: 0.825rem;
  color: var(--muted);
}

/* Carte vidéo */
.vcard {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.vcard__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--navy-900);
}

.vcard__play,
.vcard__iframe,
.vcard__placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.vcard__play {
  padding: 0;
  background: none;
  cursor: pointer;
}

.vcard__play img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}

.vcard__play:hover img {
  opacity: 0.9;
  transform: scale(1.03);
}

.vcard__play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(2, 31, 77, 0.88);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
  transition: background-color 0.2s, transform 0.2s var(--ease);
}

.vcard__play:hover .vcard__play-icon {
  background: var(--navy-900);
  transform: translate(-50%, -50%) scale(1.06);
}

.vcard__play-icon .icon {
  width: 28px;
  height: 28px;
}

.vcard__placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(58, 108, 240, 0.35), transparent 60%),
    var(--navy-900);
  color: var(--gold-300);
}

.vcard__placeholder .icon {
  width: 44px;
  height: 44px;
}

.vcard__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem 1.4rem 1.4rem;
}

.vcard__title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}

.vcard__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.vcard__actions .link-arrow {
  align-self: center;
}

/* Carte article */
.pcard {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}

.pcard:hover {
  border-color: var(--blue-100);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.pcard__link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pcard__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--navy-900);
}

.pcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pcard__placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(58, 108, 240, 0.35), transparent 60%),
    var(--navy-900);
  color: var(--gold-300);
}

.pcard__placeholder .icon {
  width: 48px;
  height: 48px;
  opacity: 0.9;
}

.pcard__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.35rem 1.4rem 1.4rem;
}

.pcard__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  color: var(--muted);
}

.pcard__title {
  margin-top: 0.75rem;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
}

.pcard__link:hover .pcard__title {
  color: var(--blue-600);
}

.pcard__text {
  flex: 1;
  margin: 0.6rem 0 1.1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Rubrique vide */
.empty {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.25rem, 4vw, 2.5rem);
  border: 1px dashed var(--blue-300);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  text-align: center;
}

.empty__icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold-300);
}

.empty__icon .icon {
  width: 28px;
  height: 28px;
}

.empty__title {
  margin-top: 1.25rem;
  font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.6rem);
  font-weight: 800;
}

.empty__text {
  margin-top: 0.75rem;
  color: var(--muted);
}

.empty__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* Derniers ajouts (accueil) */
.latest {
  margin-top: 2.5rem;
}

.latest__title {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
}

.latest__list {
  display: grid;
  gap: 0.75rem;
}

.latest__item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  height: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.latest__item:hover {
  border-color: var(--blue-100);
  box-shadow: var(--shadow);
}

.latest__body {
  display: grid;
  flex: 1;
  min-width: 0;
}

.latest__meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.latest__name {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.latest__arrow {
  width: 18px;
  height: 18px;
  color: var(--blue-600);
}

@media (min-width: 900px) {
  .latest__list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Bandeau d'appel à l'action */
.cta-band {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.cta-band__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(70% 120% at 0% 0%, rgba(58, 108, 240, 0.3), transparent 60%),
    var(--navy-900);
}

.cta-band__title {
  font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.85rem);
  font-weight: 800;
  color: #fff;
}

.cta-band__text {
  margin-top: 0.4rem;
  color: #c9d4e5;
}

@media (min-width: 800px) {
  .cta-band__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .cta-band__inner .btn {
    flex-shrink: 0;
  }
}

/* Page 404 */
.notfound {
  padding: calc(var(--header-h) + clamp(3rem, 8vw, 6rem)) 0 clamp(3rem, 8vw, 6rem);
  background: var(--bg-soft);
  text-align: center;
}

.notfound__code {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--navy-900);
}

.notfound__title {
  margin: 1rem 0 0.75rem;
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
}

.notfound__text {
  max-width: 30rem;
  margin: 0 auto 2rem;
  color: var(--muted);
}

.notfound__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}


/* 21. CONTENU DES COURS ET ARTICLES ==================================== */
.doc__header {
  padding-top: calc(var(--header-h) + clamp(1.75rem, 4vw, 3rem));
  padding-bottom: clamp(1.75rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff 0%, #f8fafe 100%);
}

.doc__title {
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.doc__lead {
  margin-top: 0.9rem;
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.175rem);
  color: var(--muted);
}

.doc__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin-top: 1.1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.doc__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.doc__meta .icon {
  width: 16px;
  height: 16px;
}

.doc__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.doc__cover {
  width: 100%;
  height: auto;
  margin-top: 2rem;
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.doc__help {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin: clamp(2rem, 4vw, 3rem) 0 clamp(2.5rem, 5vw, 4rem);
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.doc__help > div {
  flex: 1;
  min-width: 14rem;
}

.doc__help-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--ink);
}

.doc__help-text {
  font-size: 0.925rem;
  color: var(--muted);
}

/* Typographie du contenu Markdown */
.prose {
  padding-top: clamp(1.75rem, 4vw, 2.5rem);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose h2 {
  margin-top: 2.2em;
  font-size: clamp(1.4rem, 1.25rem + 0.6vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.prose h3 {
  margin-top: 1.8em;
  font-size: 1.25rem;
  font-weight: 700;
}

.prose h2 + *,
.prose h3 + * {
  margin-top: 0.6em;
}

.prose a {
  font-weight: 600;
  color: var(--blue-600);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose strong {
  font-weight: 700;
  color: var(--ink);
}

.prose ul,
.prose ol {
  padding-left: 1.4em;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li + li {
  margin-top: 0.35em;
}

.prose li::marker {
  color: var(--blue-600);
  font-weight: 700;
}

.prose blockquote {
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--gold-500);
  border-radius: 0 12px 12px 0;
  background: var(--bg-soft);
  font-style: italic;
  color: var(--ink);
}

.prose code {
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: var(--blue-50);
  font-size: 0.9em;
  color: var(--navy-900);
}

.prose pre {
  overflow-x: auto;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: var(--navy-950);
  color: #e6ecf5;
}

.prose pre code {
  padding: 0;
  background: none;
  color: inherit;
}

.prose img {
  height: auto;
  border-radius: 12px;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
}

.prose table {
  display: block;
  overflow-x: auto;
  max-width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.prose th,
.prose td {
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--line);
  text-align: left;
}

.prose th {
  background: var(--bg-soft);
  font-weight: 700;
  color: var(--ink);
}

/* Formules (KaTeX) : défilement horizontal sur petit écran */
.prose .katex {
  font-size: 1.08em;
}

.math-nowrap {
  white-space: nowrap;
}

.prose .katex-display {
  overflow-x: auto;
  overflow-y: hidden;
  margin: 1.2em 0;
  padding: 0.35rem 0;
}

/* Encadrés : :::definition, :::retenir, :::attention, :::methode, :::exemple */
.bloc {
  --bloc: var(--blue-600);
  --bloc-fond: var(--blue-50);
  padding: 1.1rem 1.3rem;
  border-left: 4px solid var(--bloc);
  border-radius: 0 14px 14px 0;
  background: var(--bloc-fond);
}

.bloc__titre {
  margin-bottom: 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bloc);
}

.bloc__contenu > * + * {
  margin-top: 0.8em;
}

.bloc--retenir {
  --bloc: var(--gold-700);
  --bloc-fond: #fdf6e3;
  border-left-color: var(--gold-500);
}

.bloc--attention {
  --bloc: var(--error);
  --bloc-fond: #fdf1f0;
}

.bloc--methode {
  --bloc: var(--navy-900);
  --bloc-fond: #eef2f8;
}

.bloc--exemple {
  --bloc: var(--muted);
  --bloc-fond: var(--bg-soft);
  border-left-color: var(--line);
}

/* Correction dépliable : :::correction */
.bloc--correction {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.bloc--correction > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 0.85rem 1.2rem;
  border-radius: 14px;
  font-size: 0.85rem;
  color: var(--green-700);
  list-style: none;
  cursor: pointer;
}

.bloc--correction > summary::-webkit-details-marker {
  display: none;
}

.bloc--correction > summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.25s var(--ease);
}

.bloc--correction[open] > summary {
  border-bottom: 1px solid var(--line);
  border-radius: 14px 14px 0 0;
  background: #f1f8f3;
}

.bloc--correction[open] > summary::after {
  transform: rotate(-135deg) translateY(-3px);
}

.bloc--correction > .bloc__contenu {
  padding: 1rem 1.2rem 1.2rem;
}

@media print {
  .bloc--correction > .bloc__contenu {
    display: block;
  }
}
