/* ==========================================================================
   WILLSIM — Feuille de style professionnelle & responsive
   Charte : Vert Forêt Épuré, Ivoire Chaud, Citron Vert & Manrope / DM Sans
   ========================================================================== */


/* Polices auto-hébergées (sous-ensemble latin, variables) — remplace Google Fonts */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/dm-sans-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/dm-sans-italic-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("assets/fonts/manrope-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  /* Palette de couleurs */
  --paper: #f8f8f3;
  --paper-card: #ffffff;
  --paper-deep: #efefe6;
  --ink: #14221c;
  --ink-secondary: #47544d;
  --muted: #5c6961; /* audit : contraste >= 4,5:1 sur tous les fonds */
  --accent-text: #566b14; /* vert lisible pour du texte (remplace #8da433, 2,4-2,8:1) */
  --green: #243c30;
  --green-dark: #16261e;
  --green-light: #325041;
  --lime: #d2ec6c;
  --lime-hover: #e2f592;
  --line: #dedfd7;
  --line-light: #eceee6;
  --on-dark: #ffffff; /* texte sur fond vert foncé */
  --on-dark-muted: #bfd0c3;
  
  /* Typographie */
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Rayons et ombres */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(20, 34, 28, 0.04);
  --shadow-md: 0 8px 24px rgba(20, 34, 28, 0.08);
  --shadow-lg: 0 16px 40px rgba(20, 34, 28, 0.12);

  /* Transitions */
  --transition-fast: 0.18s ease;
  --transition-base: 0.28s ease;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

body.menu-locked {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

h1, h2, h3, h4, p {
  margin-top: 0;
}

/* Conteneur fluide */
.page-width {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

@media (max-width: 768px) {
  .page-width {
    width: calc(100% - 32px);
  }
}

.section-padding {
  padding-block: clamp(56px, 8vw, 104px);
}

/* --------------------------------------------------------------------------
   En-tête & Barre de navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 248, 243, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background var(--transition-base), border var(--transition-base);
}

.header-container {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.04em;
  color: var(--ink);
  flex-shrink: 0;
}

.brand-period {
  color: #92ab36;
}

.brand-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.brand:hover .brand-logo-img {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.footer-brand .brand-logo-img {
  width: 38px;
  height: 38px;
}

.mobile-brand-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.mobile-brand-group .brand-logo-img {
  width: 32px;
  height: 32px;
}

/* Navigation bureau */
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-secondary);
  position: relative;
  padding-block: 6px;
}

.main-nav a:hover {
  color: #243c30;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: #92ab36;
  transition: width var(--transition-fast);
}

.main-nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
}

.header-cta:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.header-cta .cta-arrow {
  color: #92ab36;
  font-size: 14px;
}

/* Bouton burger mobile */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  padding: 0;
}

.burger-box {
  width: 22px;
  height: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.burger-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--ink);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

/* Animation hamburger ouvert */
.nav-toggle[aria-expanded="true"] .burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .burger-line:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Tiroir mobile (Mobile Nav Drawer)
   -------------------------------------------------------------------------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  visibility: hidden;
  transition: visibility var(--transition-base);
}

.mobile-nav.is-open {
  visibility: visible;
  /* Visible immédiatement à l'ouverture (sinon le focus JS échoue pendant la transition) ;
     la transition de 0.28s reste active à la fermeture pour laisser glisser le panneau. */
  transition-duration: 0s;
}

.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 30, 24, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.mobile-nav.is-open .mobile-nav-backdrop {
  opacity: 1;
}

.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 86%);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  padding: 24px;
  transform: translateX(100%);
  transition: transform var(--transition-base);
  overflow-y: auto;
}

.mobile-nav.is-open .mobile-nav-panel {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

.mobile-brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
}

.mobile-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  background: var(--green);
  color: #ffffff;
  border-radius: 4px;
  text-transform: uppercase;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.mobile-nav-link .link-num {
  min-width: 16px;
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-text);
}

.mobile-nav-link:hover, .mobile-nav-link:active {
  background: #ffffff;
  color: var(--green);
}

.mobile-nav-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-contact-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.mobile-mail {
  font-weight: 700;
  color: var(--green);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Boutons & Éléments réutilisables
   -------------------------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.button-dark {
  background: var(--ink);
  color: #ffffff;
}

.button-dark:hover {
  background: var(--green);
}

.button-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid #c8cbbe;
}

.button-outline:hover {
  background: #ffffff;
  border-color: var(--ink);
}

.button-lime {
  background: var(--lime);
  color: var(--ink);
}

.button-lime:hover {
  background: var(--lime-hover);
  box-shadow: 0 4px 14px rgba(210, 236, 108, 0.4);
}

.button-light {
  background: #ffffff;
  color: var(--ink);
}

.button-light:hover {
  background: #f0f0e7;
}

.button-full {
  width: 100%;
}

/* En-tête de section (Eyebrows) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9ab43e;
  flex-shrink: 0;
}

.eyebrow-light {
  color: #bfd0c3;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  padding-top: clamp(32px, 6vw, 64px);
  padding-bottom: clamp(48px, 8vw, 84px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.3rem, 5.5vw, 4.3rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 22px;
  text-wrap: balance;
}

.hero h1 span {
  color: var(--accent-text);
}

.hero-description {
  max-width: 520px;
  font-size: clamp(14px, 1.8vw, 16px);
  line-height: 1.8;
  color: var(--ink-secondary);
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.hero-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.hero-badge-item .badge-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e9ece0;
  color: #69831d;
  font-size: 12px;
}

/* Visuel Hero */
.hero-visual {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.visual-header-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(22, 38, 30, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  width: fit-content;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px rgba(210, 236, 108, 0.8);
}

.visual-cards-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  height: 440px;
}

.visual-card {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #1c2e25;
}

.visual-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.visual-card:hover img {
  transform: scale(1.04);
}

.visual-card-primary {
  grid-row: 1 / 3;
}

.visual-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 25, 21, 0.1) 0%, rgba(16, 25, 21, 0.85) 100%);
  pointer-events: none;
}

.visual-card figcaption {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  z-index: 2;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.visual-card figcaption strong {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
}

.visual-card-primary figcaption strong {
  font-size: 22px;
}

.photo-tag {
  font-size: 9px;
  font-weight: 700;
  color: var(--lime);
  letter-spacing: 0.08em;
}

.photo-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
}

/* --------------------------------------------------------------------------
   Bandeau de confiance (Trust Strip)
   -------------------------------------------------------------------------- */
.trust-strip {
  background: var(--paper-deep);
  border-block: 1px solid var(--line);
  padding-block: 36px;
}

.trust-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.trust-number {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1;
  color: var(--accent-text);
  flex-shrink: 0;
}

.trust-content strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.trust-content p {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Section Formations / Ateliers
   -------------------------------------------------------------------------- */
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 48px;
}

.section-heading h2 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.8vw, 2.7rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

.section-intro {
  max-width: 420px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.program-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.program-card:hover {
  transform: translateY(-4px);
  border-color: #c9ccc0;
  box-shadow: var(--shadow-md);
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.program-number {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-text);
  letter-spacing: 0.05em;
}

.program-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--paper-deep);
  color: var(--ink-secondary);
}

.card-icon-wrapper {
  margin-bottom: 18px;
}

.program-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f0f2e8;
  color: #728925;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 700;
}

.program-card h3 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--ink);
}

.card-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.skills-tags span {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: #f3f4ec;
  color: var(--ink-secondary);
}

.card-footer {
  padding-top: 18px;
  border-top: 1px solid var(--line-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-meta {
  font-size: 11px;
  color: var(--muted);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
}

.card-link:hover {
  color: var(--accent-text);
}

/* --------------------------------------------------------------------------
   Section Mission / L'Association
   -------------------------------------------------------------------------- */
.mission {
  background: var(--green-dark);
  color: #ffffff;
  padding-block: clamp(60px, 9vw, 110px);
  position: relative;
  overflow: hidden;
}

.mission-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: clamp(32px, 6vw, 64px);
}

.mission-visual-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mission-photo-frame {
  margin: 0;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-md);
  background: #192a21;
}

.mission-photo-frame img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.mission-photo-frame:hover img {
  transform: scale(1.03);
}

.mission-photo-overlay {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: rgba(18, 30, 24, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
}

.mission-stats-strip {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.mission-stat-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.mission-stat-badge strong {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
  color: var(--lime);
  line-height: 1;
}

.mission-stat-badge span {
  font-size: 10px;
  font-weight: 600;
  color: #c0d0c3;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mission-stat-sep {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.15);
}

.mission-copy h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.mission-copy h2 span {
  color: var(--lime);
}

.mission-copy > p {
  color: #c7d4ca;
  font-size: 14px;
  line-height: 1.85;
  margin-bottom: 32px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.value-item {
  display: flex;
  gap: 12px;
}

.value-icon {
  font-size: 16px;
  color: var(--lime);
  flex-shrink: 0;
  padding-top: 2px;
}

.value-item strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 3px;
}

.value-item p {
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
  color: #9cb19f;
}

/* --------------------------------------------------------------------------
   Section Approche
   -------------------------------------------------------------------------- */
.approach-header-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 48px;
}

.approach-header-grid h2 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.8vw, 2.7rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin: 0;
}

.approach-intro {
  max-width: 440px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
}

.approach-steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.approach-step-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
}

.step-badge {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 18px;
}

.step-num {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 800;
  color: var(--accent-text);
  line-height: 1;
}

.step-title-short {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.step-body h3 {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--ink);
}

.step-body p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 18px;
}

.step-list {
  margin: 0;
  padding-left: 18px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--ink-secondary);
}

/* --------------------------------------------------------------------------
   Section FAQ
   -------------------------------------------------------------------------- */
.faq {
  background: var(--paper-deep);
  border-block: 1px solid var(--line);
}

.faq-container {
  max-width: 840px;
  margin-inline: auto;
}

.faq-heading {
  margin-bottom: 36px;
}

.faq-accordion {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Alignement des icônes SVG vectorielles */
.badge-icon svg,
.program-icon svg,
.value-icon svg,
.detail-icon svg,
.btn-icon svg {
  display: block;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.faq-item[open] {
  border-color: #c4c7ba;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  padding: 20px 22px;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  font-size: 20px;
  font-weight: 400;
  color: #7f972b;
  transition: transform var(--transition-fast);
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 22px 20px 22px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-secondary);
  border-top: 1px solid var(--line-light);
}

.faq-answer a {
  color: var(--green);
  text-decoration: underline;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Section Contact & Inscription
   -------------------------------------------------------------------------- */
.contact-section {
  padding-block: clamp(48px, 8vw, 84px);
}

.contact-card {
  background: var(--green);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: clamp(32px, 6vw, 64px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  box-shadow: var(--shadow-md);
}

.contact-content h2 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}

.contact-lead {
  color: #c7d6cc;
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 28px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.detail-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.detail-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  color: var(--lime);
  font-size: 14px;
  flex-shrink: 0;
}

.detail-label {
  display: block;
  font-size: 10px;
  color: #a4b9ab;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-val {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

a.detail-val:hover {
  color: var(--lime);
}

.contact-action-panel {
  background: #ffffff;
  color: var(--ink);
  border-radius: var(--radius-md);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--shadow-md);
}

.action-card-inner h3 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.action-card-inner p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 22px;
}

.action-caption {
  display: block;
  margin-top: 12px;
  font-size: 10px;
  color: var(--muted);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */
.site-footer {
  background: #eeeee5;
  border-top: 1px solid var(--line);
  padding-top: 54px;
  padding-bottom: 32px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.footer-brand-col .footer-tagline {
  margin-top: 14px;
  max-width: 320px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

.footer-links-col strong, .footer-contact-col strong {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin-bottom: 16px;
}

.footer-links-col nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-col a {
  font-size: 12px;
  color: var(--muted);
}

.footer-links-col a:hover {
  color: var(--ink);
}

.footer-contact-col p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}

.footer-contact-col a {
  color: var(--green);
  font-weight: 600;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 11px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}

.back-to-top {
  font-weight: 600;
  color: var(--ink-secondary);
}

.back-to-top:hover {
  color: var(--green);
}

/* ==========================================================================
   Breakpoints & Adaptations Mobiles Spécifiques
   ========================================================================== */

/* Écrans intermédiaires / Tablettes (max 1024px) */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .visual-cards-grid {
    height: 380px;
  }

  .trust-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .program-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .approach-steps-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .mission-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-card {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

/* Smartphones et petites tablettes (max 768px) */
@media (max-width: 768px) {
  .main-nav, .header-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .header-container {
    height: 64px;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 8.5vw, 3rem);
    letter-spacing: -0.025em;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button {
    width: 100%;
  }

  .visual-cards-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 240px auto;
    height: auto;
  }

  .visual-card-primary {
    grid-row: auto;
    height: 240px;
  }

  .visual-cards-grid .visual-card:not(.visual-card-primary) {
    display: none; /* Simplification sur petit écran pour alléger et éviter le fouillis */
  }

  .trust-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section-heading, .approach-header-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .mission-photo-frame img {
    height: 240px;
  }

  .mission-visual-col {
    margin-bottom: 8px;
  }

  .contact-card {
    padding: 28px 20px;
    border-radius: var(--radius-md);
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* Petits smartphones (< 380px) */
@media (max-width: 380px) {
  .brand {
    font-size: 18px;
  }

  .hero h1 {
    font-size: 1.95rem;
  }

  .program-card, .approach-step-card {
    padding: 20px 16px;
  }
}

/* Réduction des mouvements pour l'accessibilité */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Correctifs audit 2026-10 : accessibilité, menu mobile, bandeau cookies
   ========================================================================== */

/* Lien d'évitement (WCAG 2.4.1) : visible uniquement au clavier */
.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus {
  top: 8px;
}

/* Focus clavier maîtrisé, y compris sur les fonds sombres */
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}
.mission :focus-visible,
.contact-card :focus-visible,
.cookie-banner :focus-visible {
  outline-color: var(--lime);
}

/* Liens du pied de page : non distingués par la seule couleur (WCAG 1.4.1) */
.footer-contact-col a,
.footer-legal a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Bouton qui ressemble à un lien (« Cookies », « Gérer mes préférences ») */
.link-button {
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

@media (max-width: 768px) {
  /* Le tiroir démarre sous l'en-tête sticky (64 px) : son contenu n'est plus masqué,
     et le bouton burger reste accessible pour fermer. */
  .mobile-nav {
    inset: 64px 0 0 0;
  }
  /* backdrop-filter recalculé à chaque scroll : coûteux sur mobile d'entrée de gamme */
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--paper);
  }
}

/* Bandeau de consentement (créé par script.js) : Accepter et Refuser à égalité (CNIL) */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 150;
  max-width: 560px;
  margin-inline: auto;
  padding: 20px;
  background: var(--green-dark);
  color: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
}
.cookie-banner p {
  margin: 0 0 16px;
}
.cookie-banner a {
  color: var(--lime);
  text-decoration: underline;
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cookie-actions button {
  flex: 1 1 140px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  background: var(--lime);
  color: var(--ink);
}

/* ==========================================================================
   Sections Mission / Projets / bloc légal (2026-10)
   ========================================================================== */

/* Navigation : libellés sur une ligne ; sous 1024 px, place au tiroir (burger)
   car la nav bureau + le CTA ne tiennent pas sans déborder */
.main-nav a {
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

/* Section Mission (fond blanc pour la distinguer de #formations qui suit) */
.purpose {
  background: var(--paper-card);
  border-bottom: 1px solid var(--line);
}

.purpose-quote {
  margin: 0 0 48px;
  padding: clamp(24px, 4vw, 44px);
  background: var(--green-dark);
  border-left: 4px solid var(--lime);
  border-radius: var(--radius-md);
}

.purpose-quote blockquote {
  margin: 0;
}

.purpose-quote blockquote p {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.6vw, 1.9rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--on-dark);
}

.purpose-quote figcaption {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--on-dark-muted);
}

.purpose-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.purpose-pillar {
  padding: 26px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.purpose-pillar .program-icon {
  margin-bottom: 16px;
}

.purpose-pillar h3 {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--ink);
}

.purpose-pillar p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* Section Projets & formations à venir (réutilise .program-grid / .program-card) */
.projects {
  background: var(--paper-deep);
  border-block: 1px solid var(--line);
}

.projects-grid .skills-tags {
  margin-bottom: 0;
}

/* Badge « Formation à venir » distinct de « Projet en préparation » */
.program-badge-training {
  background: var(--green);
  color: var(--on-dark);
}

.projects-cta {
  margin: 40px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--ink-secondary);
}

/* inline-block : la flèche ne passe pas seule à la ligne sur mobile */
.projects-cta a {
  display: inline-block;
}

.projects-cta a,
.section-intro a {
  font-weight: 700;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.projects-cta a:hover,
.section-intro a:hover {
  color: var(--ink);
}

/* Bloc légal du pied de page : 32 px sous .footer-main (index) ; aucune marge
   quand il ouvre le pied de page (pages légales et 404, cf. :first-child) */
.footer-legal-info {
  margin-top: 32px;
  padding: clamp(20px, 3vw, 28px);
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.footer-legal-info:first-child {
  margin-top: 0;
}

.footer-legal-title {
  margin: 0 0 16px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.legal-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 40px;
  margin: 0;
}

.legal-facts-wide {
  grid-column: 1 / -1;
}

.legal-facts dt {
  margin-bottom: 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.legal-facts dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.legal-facts-wide dd {
  font-weight: 500;
}

/* Tablette : tiroir sous l'en-tête de 76 px (64 px sous 768 px, cf. correctifs audit)
   et grille des projets sur 2 colonnes */
@media (min-width: 769px) and (max-width: 1024px) {
  .mobile-nav {
    inset: 76px 0 0 0;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .purpose-quote {
    margin-bottom: 32px;
  }

  .purpose-pillars {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .legal-facts {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* Titres : retours à la ligne forcés réservés au bureau */
  .section-heading h2 br {
    display: none;
  }
}

@media (max-width: 380px) {
  .purpose-pillar {
    padding: 20px 16px;
  }
}

/* ==========================================================================
   Pages cours et projets (2026-10)
   Sous-pages /cours/*.html et /projets/*.html, catalogue des cours, cartes
   cliquables de l'accueil. CSP stricte : aucun attribut style="" dans le HTML.
   ========================================================================== */

/* --- En-tête des sous-pages (.site-header.site-header-sub) : logo, petite
       navigation (.subnav) et bouton « Retour à l'accueil » toujours visible --- */
.site-header-sub .header-cta {
  display: inline-flex;
}

.subnav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0 auto 0 8px;
}

.subnav a {
  padding-block: 6px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink-secondary);
}

.subnav a:hover,
.subnav a[aria-current] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent-text);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.subnav a[aria-current] {
  font-weight: 700;
}

/* --- Fil d'Ariane : <nav class="breadcrumb" aria-label="Fil d'Ariane"><ol>… --- */
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb li + li::before {
  content: "/";
  content: "/" / ""; /* séparateur décoratif, ignoré par les lecteurs d'écran */
  margin-inline: 8px;
}

.breadcrumb a {
  font-weight: 600;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.breadcrumb a:hover {
  color: var(--ink);
}

.breadcrumb [aria-current="page"] {
  font-weight: 600;
  color: var(--ink);
}

/* --- En-tête de page : fil d'Ariane, surtitre (.eyebrow), h1, chapeau,
       badges de statut et puces d'infos --- */
.page-hero {
  padding-block: 28px clamp(40px, 6vw, 64px);
  background: var(--paper-card);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-family: var(--display);
  font-size: clamp(2rem, 4.8vw, 3.1rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
  overflow-wrap: break-word;
}

.page-lead {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(15px, 1.9vw, 17px);
  line-height: 1.75;
  color: var(--ink-secondary);
}

.page-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

/* Puces d'infos (dl) : <dl class="course-meta"><div><dt>Niveau</dt><dd>…</dd></div>… */
.course-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  gap: 12px;
  margin: 0;
}

.course-meta > div {
  padding: 12px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.course-meta dt {
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.course-meta dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}

/* --- Badge de statut : « Projet en préparation », « Sessions à venir »
       (neutre) ; .status-badge-available : « Fiche PDF disponible » --- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-deep);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}

.status-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-text);
  flex-shrink: 0;
}

.status-badge-available {
  background: var(--green);
  border-color: var(--green);
  color: var(--on-dark);
}

.status-badge-available::before {
  background: var(--lime);
}

/* --- Grille de contenu : colonne principale (.page-content) + encadré
       latéral (.page-aside) ; une seule colonne sous 1024 px --- */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: clamp(32px, 5vw, 64px);
  padding-block: clamp(40px, 6vw, 72px);
}

.page-aside {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  align-items: start;
  gap: 20px;
}

/* Texte courant des sous-pages (titres, listes simples, liens, code, tableaux) */
.page-content {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-secondary);
}

.page-content > section + section {
  margin-top: clamp(40px, 5vw, 56px);
}

.page-content h2 {
  margin-bottom: 16px;
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.6vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.page-content h3 {
  margin: 28px 0 8px;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.page-content strong {
  color: var(--ink);
}

.page-content ul:not([class]),
.page-content ol:not([class]) {
  margin: 0 0 16px;
  padding-left: 22px;
}

.page-content :is(ul, ol):not([class]) > li + li {
  margin-top: 6px;
}

.page-content a:not([class]) {
  font-weight: 600;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-content a:not([class]):hover {
  color: var(--ink);
}

.page-content code {
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: #eef0e6;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.88em;
  color: var(--ink);
}

.table-scroll {
  overflow-x: auto;
}

.page-content table {
  width: 100%;
  margin-bottom: 16px;
  border-collapse: collapse;
  background: var(--paper-card);
  font-size: 14px;
  line-height: 1.55;
}

.page-content th,
.page-content td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.page-content th {
  background: var(--paper-deep);
  color: var(--ink);
}

.page-content caption {
  padding-bottom: 8px;
  font-weight: 600;
  text-align: left;
  color: var(--ink);
}

.page-content .skills-tags span {
  padding: 4px 10px;
  font-size: 12px;
}

/* Encadré d'information (honnêteté du statut, conseils) */
.page-note {
  margin-bottom: 16px;
  padding: 16px 20px;
  border-left: 4px solid var(--accent-text);
  border-radius: var(--radius-sm);
  background: var(--paper-deep);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-secondary);
}

.page-note > :last-child {
  margin-bottom: 0;
}

/* Lien texte secondaire (ex. « Être informé des prochaines sessions » → /#contact) */
.text-link {
  font-weight: 700;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link:hover {
  color: var(--ink);
}

/* --- Objectifs : <ul class="objectives"> avec coche dessinée en CSS --- */
.objectives {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.objectives li {
  position: relative;
  padding-left: 36px;
}

.objectives li::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e9ece0;
}

.objectives li::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 9px;
  width: 6px;
  height: 11px;
  border: solid var(--accent-text);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

/* --- Plan du cours : <ol class="course-toc"><li><p class="toc-meta">Séance 1 · 2 h</p>
       <h3>…</h3><p>…</p></li> (numéro 01, 02… généré en CSS) --- */
.course-toc {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.course-toc > li {
  position: relative;
  padding: 20px 22px 20px 78px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  counter-increment: toc;
}

.course-toc > li::before {
  content: counter(toc, decimal-leading-zero);
  content: counter(toc, decimal-leading-zero) / "";
  position: absolute;
  top: 18px;
  left: 22px;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--accent-text);
}

.toc-meta {
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.course-toc h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.course-toc p:not(.toc-meta),
.course-toc ul {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
}

.course-toc ul {
  margin-top: 8px;
  padding-left: 18px;
}

/* --- Étapes d'un projet : <ol class="steps-list"><li><h3>…</h3><p>…</p></li>
       (frise verticale numérotée) --- */
.steps-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps-list > li {
  position: relative;
  padding: 0 0 28px 56px;
  counter-increment: step;
}

.steps-list > li:last-child {
  padding-bottom: 0;
}

.steps-list > li::before {
  content: counter(step);
  content: counter(step) / "";
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 800;
  color: var(--on-dark);
}

.steps-list > li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 44px;
  bottom: 8px;
  left: 17px;
  width: 2px;
  background: var(--line);
}

.steps-list h3 {
  margin: 6px 0 6px;
  font-size: 1.05rem;
}

.steps-list p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

/* --- Carte de téléchargement (.download-card) et carte d'appel à l'action
       des projets (.cta-card) : fond vert foncé, UN bouton plein .button-lime --- */
.download-card,
.cta-card {
  padding: 26px 24px;
  border-radius: var(--radius-md);
  background: var(--green-dark);
  box-shadow: var(--shadow-md);
  color: var(--on-dark);
}

.download-card .eyebrow,
.cta-card .eyebrow {
  color: var(--on-dark-muted);
}

.download-card h2,
.cta-card h2 {
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--on-dark);
}

.download-card p,
.cta-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--on-dark-muted);
}

.download-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--lime);
}

.download-icon svg {
  display: block;
}

.download-meta {
  margin: 12px 0 0;
  font-size: 13px;
  text-align: center;
}

.download-licence {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12px;
}

.download-licence a {
  white-space: nowrap;
}

.download-card a:not(.button),
.cta-card a:not(.button) {
  font-weight: 600;
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.download-card :focus-visible,
.cta-card :focus-visible {
  outline-color: var(--lime);
}

/* --- Liens connexes : <section class="related-links"><h2>…</h2><ul><li><a>
       <span class="related-kicker">Projet</span> Titre</a></li></ul> --- */
.related-links {
  padding: 24px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.related-links h2 {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.related-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.related-links li + li {
  border-top: 1px solid var(--line-light);
}

.related-links a {
  display: block;
  padding-block: 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.related-links a:hover {
  color: var(--ink);
}

.related-kicker {
  display: inline-block; /* inline-block : n'hérite pas du soulignement du lien */
  width: 100%;
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.related-links .page-note {
  margin: 12px 0 0;
  font-size: 14px;
}

/* --- Catalogue / accueil : <div class="course-grid"> de
       <article class="course-card"> (mêmes éléments internes que .program-card) --- */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 24px;
}

.course-card {
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.course-card:hover {
  transform: translateY(-4px);
  border-color: #c9ccc0;
  box-shadow: var(--shadow-md);
}

.course-card h3 {
  margin-bottom: 10px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.course-card .card-footer {
  margin-top: auto;
}

/* --- Carte entièrement cliquable (« lien étiré ») : le <a class="card-link-stretched">
       est dans le h3 ; son ::after couvre toute la carte. Le contour de focus est
       porté par ce ::after (clavier uniquement, :focus-visible) : il entoure toute
       la carte sans doubler le focus des cartes .program-card à liens classiques.
       Dans la carte, le libellé « Voir le cours » est un <span class="card-link"
       aria-hidden="true">, pas un second lien. --- */
.program-card,
.course-card {
  position: relative;
}

.card-link-stretched {
  color: inherit;
}

.card-link-stretched::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--radius-md);
}

.card-link-stretched:hover,
.program-card:hover .card-link-stretched,
.course-card:hover .card-link-stretched {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.card-link-stretched:focus-visible {
  outline: none;
}

.card-link-stretched:focus-visible::after {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

/* Autres liens éventuels dans une carte étirée : restent cliquables au-dessus */
.program-card a:not(.card-link-stretched),
.course-card a:not(.card-link-stretched) {
  position: relative;
  z-index: 2;
}

/* --- Adaptations responsive --- */
@media (max-width: 1024px) {
  .page-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  /* En-tête des sous-pages sur deux lignes, non collant (pas de tiroir ici) */
  .site-header-sub {
    position: static;
  }

  .site-header-sub .header-container {
    flex-wrap: wrap;
    height: auto;
    min-height: 64px;
    padding-block: 10px;
    row-gap: 4px;
  }

  .subnav {
    order: 3;
    width: 100%;
    margin: 0;
    padding-top: 6px;
    border-top: 1px solid var(--line-light);
    gap: 20px;
  }

  .breadcrumb ol {
    margin-bottom: 20px;
  }

  .course-toc > li {
    padding: 18px 18px 18px 64px;
  }

  .course-toc > li::before {
    left: 18px;
    font-size: 20px;
  }
}

@media (max-width: 380px) {
  .page-hero h1 {
    font-size: 1.75rem;
  }

  .site-header-sub .header-container {
    column-gap: 12px;
  }

  .site-header-sub .header-cta {
    padding: 9px 12px;
  }

  .course-card,
  .download-card,
  .cta-card,
  .related-links {
    padding: 20px 16px;
  }

  .course-toc > li {
    padding: 52px 16px 18px;
  }

  .course-toc > li::before {
    top: 16px;
    left: 16px;
  }

  .steps-list > li {
    padding-left: 48px;
  }
}
