/* ============================================================
   INTERFACE3 — DESIGN SYSTEM v2
   Direction : Bold Editorial · Minimalisme Dynamique
   Inspiré : District Quint · Motion Media Group
   ============================================================ */

/* --- GOOGLE FONTS IMPORT --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Barlow+Condensed:ital,wght@0,600;0,700;0,800;0,900;1,700;1,800&family=Barlow:wght@400;500;600;700&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES — LIGHT MODE (default)
   ============================================================ */
:root {
  /* ---- PALETTE SIGNATURE ---- */
  --yellow:   #F5E32D;   /* jaune signature — accent primaire */
  --violet:   #4B2BFF;   /* violet profond — accent secondaire */
  --green:    #00C46A;   /* vert électrique — accent tertiaire */
  --black:    #2e3232;   /* noir quasi-total */
  --white:    #FAF9F6;   /* blanc chaud */

  /* ---- SURFACES LIGHT ---- */
  --bg:          #FAF9F6;
  --bg-alt:      #F0EFE9;
  --bg-card:     #FFFFFF;
  --bg-dark:     #2e3232;
  --bg-dark-alt: #161616;

  /* ---- TEXTE LIGHT ---- */
  --text-primary:   #2e3232;
  --text-secondary: #3D3D3D;
  --text-muted:     #7A7A7A;
  --text-inverse:   #FAF9F6;
  --text-on-yellow: #2e3232;
  --text-on-violet: #FAF9F6;


  /* Interlignages */
  --lh-tight: 1.15;   /* gros titres */
  --lh-snug:  1.3;    /* titres */
  --lh-base:  1.6;    /* texte courant */
  --lh-relaxed: 1.75; /* lecture longue / FAQ */



  /* ---- ACCENTS ---- */
  --accent:        var(--violet);
  --accent-hover:  #3618E0;
  --accent-subtle: rgba(75, 43, 255, 0.08);

  /* ---- BORDERS ---- */
  --border:        rgba(13, 13, 13, 0.10);
  --border-strong: rgba(13, 13, 13, 0.25);

  /* ---- SHADOWS ---- */
  --shadow-sm: 0 1px 4px rgba(13, 13, 13, 0.06);
  --shadow-md: 0 4px 20px rgba(13, 13, 13, 0.10);
  --shadow-lg: 0 16px 48px rgba(13, 13, 13, 0.14);

  /* ---- TYPOGRAPHIE ---- */
  --font-display: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --font-body:    'Barlow', 'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  /* ---- SIZES ---- */

--text-xs:   0.875rem;  /* 14px  ✅ lisible */
--text-sm:   1rem;      /* 16px  ✅ */
--text-base: 1.125rem;  /* 18px  ✅ nouveau confort */
--text-lg:   1.25rem;   /* 20px */
--text-xl:   1.5rem;    /* 24px */
--text-2xl:  1.875rem;  /* 30px */
--text-3xl:  2.25rem;   /* 36px */
--text-4xl:  3rem;      /* 48px */
--text-5xl:  4rem;      /* 64px */
--text-6xl:  5rem;      /* 80px */
--text-7xl:  6.5rem;    /* 104px */
--text-8xl:  8rem;      /* 128px*/


  --leading-tight:  1.0;
  --leading-snug:   1.15;
  --leading-normal: 1.55;

  /* ---- SPACING ---- */
  --s1: 0.25rem; --s2: 0.5rem;  --s3: 0.75rem;
  --s4: 1rem;    --s5: 1.25rem; --s6: 1.5rem;
  --s8: 2rem;    --s10: 2.5rem; --s12: 3rem;
  --s16: 4rem;   --s20: 5rem;   --s24: 6rem;
  --s32: 8rem;   --s40: 10rem;  --s48: 12rem;

  /* ---- GRID ---- */
  --container: 1360px;
  --gutter:    clamp(1rem, 4vw, 2.5rem);

  /* ---- RADIUS ---- */
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-full: 9999px;

  /* ---- TRANSITIONS ---- */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast:  150ms var(--ease-out);
  --t-base:  280ms var(--ease-out);
  --t-slow:  500ms var(--ease-out);

  /* ---- NAV ---- */
  --nav-h: 68px;
}

/* ============================================================
   DARK MODE
   ============================================================ */
[data-theme="dark"] {
  --bg:          #2e3232;
  --bg-alt:      #161616;
  --bg-card:     #1A1A1A;
  --bg-dark:     #FAF9F6;
  --bg-dark-alt: #F0EFE9;

  --text-primary:   #FAF9F6;
  --text-secondary: #C8C8C0;
  --text-muted:     #888880;
  --text-inverse:   #2e3232;
  --text-on-yellow: #2e3232;
  --text-on-violet: #FAF9F6;

  --border:        rgba(250, 249, 246, 0.10);
  --border-strong: rgba(250, 249, 246, 0.25);

  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);

  --accent-subtle: rgba(75, 43, 255, 0.18);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;

}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--lh-base);
  color: var(--text-primary);
  background-color: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}


html,
body {
  max-width: 100%;
  overflow-x: hidden;
}


img, svg { display: block; max-width: 70%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ============================================================
   TYPOGRAPHIE
   ============================================================ */

/* Display — Barlow Condensed ultra-bold */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, var(--text-8xl));
  font-weight: 900;
  line-height: var(--leading-tight);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, var(--text-7xl));
  font-weight: 900;
  line-height: var(--leading-tight);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.display-md {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, var(--text-6xl));
  font-weight: 800;
  line-height: var(--leading-snug);
  letter-spacing: -0.005em;
  text-transform: uppercase;
}

.display-sm {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, var(--text-5xl));
  font-weight: 800;
  line-height: var(--leading-snug);
  text-transform: uppercase;
}

/* Headings body */
h1, .h1 { font-family: var(--font-display); font-size: var(--text-5xl); font-weight: 800; line-height: var(--leading-snug); text-transform: uppercase; }
h2, .h2 { font-family: var(--font-display); font-size: var(--text-4xl); font-weight: 800; line-height: var(--leading-snug); text-transform: uppercase; }
h3, .h3 { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 700; line-height: var(--leading-snug); text-transform: uppercase; }
h4, .h4 { font-family: var(--font-body); font-size: var(--text-xl); font-weight: 700; line-height: var(--leading-normal); }
h5, .h5 { font-family: var(--font-body); font-size: var(--text-lg); font-weight: 600; line-height: var(--leading-normal); }
h6, .h6 { font-family: var(--font-body); font-size: var(--text-base); font-weight: 600; line-height: var(--leading-normal); }

p { font-size: var(--text-base); line-height: var(--lh-snug); color: var(--text-secondary); }
.lead { font-size: var(--text-lg); line-height: var(--leading-normal); color: var(--text-secondary); }
.small { font-size: var(--text-sm); }
.tiny { font-size: var(--text-xs); }

.kicker {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ============================================================
   HIGHLIGHT — mot surligné style editorial
   ============================================================ */
.highlight {
  background: var(--yellow);
  color: var(--text-on-yellow);
  display: inline-block;
  line-height: 0.88;
  padding: 0.02em 0.1em 0.04em;
  
}
.highlight--violet {
  background: var(--violet);
  color: var(--text-on-violet);
  display: inline-block;
  line-height: 0.88;
  padding: 0.02em 0.1em 0.04em;
}
.highlight--green {
  background: var(--green);
  color: var(--text-on-yellow);
  display: inline-block;
  line-height: 0.88;
  padding: 0.02em 0.1em 0.04em;
}



/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: 860px; }
.container--wide   { max-width: 1600px; }

.section { padding-block: clamp(var(--s16), 8vw, var(--s40)); }
.section--sm { padding-block: clamp(var(--s10), 5vw, var(--s24)); }
.section--lg { padding-block: clamp(var(--s24), 12vw, var(--s48)); }

/* Grid utilitaire */
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: var(--s8); }
.grid-3 { grid-template-columns: repeat(3, 1fr); gap: var(--s6); }
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: var(--s6); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: var(--s2); }
.gap-4 { gap: var(--s4); }
.gap-6 { gap: var(--s6); }
.gap-8 { gap: var(--s8); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.75em 1.5em;
  border-radius: var(--r-full);
  transition: all var(--t-base);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg);
  border: 2px solid var(--text-primary);
}
.btn-primary:hover {
  background: var(--violet);
  border-color: var(--violet);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-strong);
}
.btn-outline:hover {
  border-color: var(--text-primary);
  background: var(--text-primary);
  color: var(--bg);
  transform: translateY(-1px);
}

.btn-yellow {
  background: var(--yellow);
  color: var(--text-on-yellow);
  border: 2px solid var(--yellow);
  font-weight: 700;
}
.btn-yellow:hover {
  background: transparent;
  border-color: var(--yellow);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.btn-violet {
  background: var(--violet);
  color: #fff;
  border: 2px solid var(--violet);
}
.btn-violet:hover {
  background: transparent;
  color: var(--violet);
  transform: translateY(-1px);
}

.btn--lg { font-size: var(--text-base); padding: 1em 2em; }
.btn--sm { font-size: var(--text-xs); padding: 0.65em 1.2em; }

.btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6em;
  height: 1.6em;
  border-radius: 50%;
  background: currentColor;
  color: var(--bg);
  font-style: normal;
  transition: transform var(--t-base);
  flex-shrink: 0;
}
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ============================================================
   BADGE / TAG
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4em 0.9em;
  border-radius: var(--r-full);
  border: 1.5px solid var(--border);
  background: var(--bg-alt);
  color: var(--text-secondary);
}
.badge--yellow { background: var(--yellow); color: var(--text-on-yellow); border-color: var(--yellow); }
.badge--violet { background: var(--violet); color: #fff; border-color: var(--violet); }
.badge--green  { background: var(--green);  color: #fff; border-color: var(--green); }
.badge--dark   { background: var(--text-primary); color: var(--bg); border-color: var(--text-primary); }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-label {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-bottom: var(--s6);
}
.section-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--yellow);
  flex-shrink: 0;
}
.section-label span {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

/* ============================================================
   CIRCLE BUTTON (style flèche éditoriale)
   ============================================================ */
.circle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  background: transparent;
  color: var(--text-primary);
  font-size: var(--text-lg);
  transition: all var(--t-base);
  cursor: pointer;
  flex-shrink: 0;
}
.circle-btn:hover {
  background: var(--text-primary);
  color: var(--bg);
  border-color: var(--text-primary);
  transform: scale(1.08);
}
.circle-btn--yellow {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--text-on-yellow);
}
.circle-btn--violet {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
}

/* ============================================================
   DIVIDER
   ============================================================ */
hr, .divider {
  border: none;
  border-top: 1.5px solid var(--border);
  margin-block: var(--s8);
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.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: absolute;
  top: -100%;
  left: var(--s4);
  background: var(--violet);
  color: #fff;
  padding: var(--s3) var(--s6);
  border-radius: 0 0 var(--r-md) var(--r-md);
  font-weight: 600;
  z-index: 9999;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="100"] { transition-delay: 0.1s; }
[data-reveal-delay="200"] { transition-delay: 0.2s; }
[data-reveal-delay="300"] { transition-delay: 0.3s; }
[data-reveal-delay="400"] { transition-delay: 0.4s; }

[data-reveal-left] {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
[data-reveal-left].is-visible { opacity: 1; transform: translateX(0); }

/* ============================================================
   MARQUEE / TICKER
   ============================================================ */
.marquee-track {
  overflow: hidden;
  white-space: nowrap;
  background: var(--text-primary);
  color: var(--bg);
  padding-block: var(--s4);
}
[data-theme="dark"] .marquee-track {
  background: var(--yellow);
  color: var(--text-on-yellow);
}
.marquee-inner {
  display: inline-flex;
  gap: var(--s8);
  animation: marquee 22s linear infinite;
}
.marquee-inner:hover { animation-play-state: paused; }
.marquee-item {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: var(--s6);
}
.marquee-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  display: inline-block;
  flex-shrink: 0;
}
[data-theme="dark"] .marquee-dot { background: var(--text-on-yellow); }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   COUNTER
   ============================================================ */
.stat-number {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1;
  color: var(--text-primary);
}

/* ============================================================
   FORMATION CARD — style éditorial
   ============================================================ */
.f-card {
  position: relative;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s8);
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  overflow: hidden;
}
.f-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--violet);
  opacity: 0;
  transition: opacity var(--t-slow);
  z-index: 0;
  pointer-events: none;
}
.f-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--violet);
}
.f-card > * { position: relative; z-index: 1; }

.f-card--featured {
  background: var(--accent-hover);
  color: var(--text-inverse);
  border-color: transparent;
}
[data-theme="dark"] .f-card--featured {
  background: var(--violet);
}
.f-card--featured:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.f-card__domain {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.f-card--featured .f-card__domain { color: rgba(250,249,246,0.5); }
.f-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, var(--text-4xl));
  font-weight: 800;
  line-height: var(--leading-tight);
  text-transform: uppercase;
  color: var(--text-primary);
}
.f-card--featured .f-card__title { color: var(--text-inverse); }
.f-card__desc {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--text-muted);
  flex: 1;
}
.f-card--featured .f-card__desc { color: rgba(250,249,246,0.7); }
.f-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-top: auto;
}
.f-card__meta-item {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-alt);
  padding: 0.3em 0.7em;
  border-radius: var(--r-full);
}
.f-card--featured .f-card__meta-item {
  background: rgba(255,255,255,0.12);
  color: rgba(250,249,246,0.8);
}
.f-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: var(--s2);
  transition: gap var(--t-fast);
}
.f-card--featured .f-card__link { color: var(--yellow); }
.f-card:hover .f-card__link { gap: var(--s3); }

/* ============================================================
   PAGE HERO
   ============================================================ */
.page-hero {
  padding-top: calc(var(--nav-h) + var(--s16));
  padding-bottom: var(--s16);
  border-bottom: 1.5px solid var(--border);
  background: var(--bg);
}
.page-hero__eyebrow { margin-bottom: var(--s4); }
.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, var(--text-7xl));
  font-weight: 900;
  line-height: var(--leading-tight);
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: var(--s6);
}
.page-hero__desc {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 64ch;
  margin-bottom: var(--s8);
}
.page-hero__actions { display: flex; flex-wrap: wrap; gap: var(--s4); }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--s6);
}
.breadcrumb a { color: var(--text-muted); transition: color var(--t-fast); }
.breadcrumb a:hover { color: var(--text-primary); }
.breadcrumb-sep { color: var(--border-strong); }

/* ============================================================
   FILTER CHIPS
   ============================================================ */
.filter-bar {
  position: sticky;
  top: var(--nav-h);
  z-index: 30;
  background: var(--bg);
  border-bottom: 1.5px solid var(--border);
  padding-block: var(--s4);
}
.filter-chips {
  display: flex;
  gap: var(--s2);
  flex-wrap: wrap;
  align-items: center;
}
.filter-chip {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5em 1.1em;
  border-radius: var(--r-full);
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--t-fast);
}
.filter-chip:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}
.filter-chip.is-active {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: var(--bg);
}
[data-theme="dark"] .filter-chip.is-active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--text-on-yellow);
}

/* ============================================================
   TABS
   ============================================================ */
.tabs { display: flex; gap: 0; border-bottom: 1.5px solid var(--border); margin-bottom: var(--s10); }
.tab-btn {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  text-transform: uppercase;
  padding: var(--s4) var(--s8);
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: color var(--t-fast);
}
.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -1.5px;
  left: 0; right: 0;
  height: 3px;
  background: var(--text-primary);
  transform: scaleX(0);
  transition: transform var(--t-base);
}
.tab-btn.is-active { color: var(--text-primary); }
.tab-btn.is-active::after { transform: scaleX(1); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* ============================================================
   FORM
   ============================================================ */
.form-group { display: flex; flex-direction: column; gap: var(--s2); }
.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.875em 1.1em;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-primary);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(75,43,255,0.12);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }
.form-textarea { resize: vertical; min-height: 140px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--text-primary);
  color: var(--text-inverse);
  padding-top: var(--s16);
  padding-bottom: var(--s10);
}
/* Footer grid — défini ici, ajusté en JS pour le responsive */
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--s12);
  padding-bottom: var(--s12);
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}
.footer__since {
  font-size: var(--text-sm);
  color: rgba(250,249,246,0.45);
  line-height: 1.6;
  max-width: 30ch;
}
.footer__address {
  font-size: var(--text-sm);
  color: rgba(250,249,246,0.65);
  line-height: 1.6;
}
.footer__social {
  display: flex;
  gap: var(--s3);
  margin-top: var(--s2);
}
.footer__social-btn {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 1px solid rgba(250,249,246,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(250,249,246,0.6);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.footer__social-btn:hover {
  border-color: var(--yellow);
  background: rgba(245,227,45,0.1);
  color: var(--yellow);
}
.footer__funders {
  border-top: 1px solid rgba(250,249,246,0.1);
  padding-top: var(--s6);
  padding-bottom: var(--s6);
  margin-bottom: var(--s4);
}
.footer__funders-text {
  font-size: var(--text-sm);
  color: rgba(250,249,246,0.55);
  line-height: 1.6;
  margin-bottom: var(--s2);
}
.footer__funders-text strong { color: rgba(250,249,246,0.8); }
.footer__funders-link {
  font-size: var(--text-xs);
  color: var(--yellow);
  transition: color 0.2s;
}
.footer__funders-link:hover { color: rgba(250,249,246,0.9); }
[data-theme="dark"] .footer {
  background: #000;
  border-top: 1px solid var(--border);
}
.footer__logo {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  color: var(--text-inverse);
  letter-spacing: -0.02em;
}


.footer-logo img {
  height: 48px;        /* ajuste : 32px / 40px / 48px */
  width: auto;
  display: block;
  
  filter: invert(1);
  opacity: 0.85;

}


[data-theme="dark"] .footer__logo { color: var(--yellow); }
.footer__tagline {
  font-size: var(--text-sm);
  color: rgba(250,249,246,0.45);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer__title {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(250,249,246,0.4);
  margin-bottom: var(--s4);
}
.footer__link {
  font-size: var(--text-sm);
  color: rgba(250,249,246,0.75);
  display: block;
  padding-block: 0.35em;
  transition: color var(--t-fast);
}
.footer__link:hover { color: var(--yellow); }
.footer__bottom {
  border-top: 1px solid rgba(250,249,246,0.1);
  margin-top: var(--s12);
  padding-top: var(--s6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4);
  align-items: center;
  justify-content: space-between;
}
.footer__copy { font-size: var(--text-xs); color: rgba(250,249,246,0.35); }
.footer__legal { display: flex; gap: var(--s6); }
.footer__legal a { font-size: var(--text-xs); color: rgba(250,249,246,0.35); transition: color var(--t-fast); }
.footer__legal a:hover { color: rgba(250,249,246,0.7); }

/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  padding: 2px;
}
.lang-btn {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3em 0.8em;
  border-radius: var(--r-full);
  color: var(--text-muted);
  transition: all var(--t-fast);
  cursor: pointer;
  background: none;
  border: none;
}
.lang-btn.is-active {
  background: var(--text-primary);
  color: var(--bg);
}
[data-theme="dark"] .lang-btn.is-active {
  background: var(--yellow);
  color: var(--text-on-yellow);
}

/* ============================================================
   THEME TOGGLE
   ============================================================ */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--t-fast);
}
.theme-toggle:hover {
  background: var(--bg-alt);
  border-color: var(--border-strong);
}
.theme-toggle svg {
  width: 1.1rem;
  height: 1.1rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--violet); }
.text-yellow { color: var(--yellow); }
.text-inverse { color: var(--text-inverse); }

.bg-black { background: var(--text-primary); }
.bg-yellow { background: var(--yellow); }
.bg-violet { background: var(--violet); }
.bg-alt    { background: var(--bg-alt); }

.mt-auto { margin-top: auto; }
.mb-4  { margin-bottom: var(--s4); }
.mb-6  { margin-bottom: var(--s6); }
.mb-8  { margin-bottom: var(--s8); }
.mb-12 { margin-bottom: var(--s12); }
.mt-4  { margin-top: var(--s4); }
.mt-6  { margin-top: var(--s6); }
.mt-8  { margin-top: var(--s8); }

.w-full { width: 100%; }
.min-h-screen { min-height: 100vh; }

/* No-JS fallback */
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ============================================================
   FAQ COMPONENT
   ============================================================ */
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1.5px solid var(--border); }
.faq-item:first-child { border-top: 1.5px solid var(--border); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s5) 0;
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.2s;
}




.faq-question:hover { color: var(--violet); }
.faq-question:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.faq-icon {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s, color 0.2s;
}


.faq-item.is-open .faq-icon { transform: rotate(-180deg); color: var(--violet); }
.faq-answer {
  padding: 0 0 var(--s5);
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.75;
}
.faq-answer a { color: var(--violet); text-decoration: underline; }
[data-theme="dark"] .faq-answer a { color: var(--yellow); }

.faq-subtitle { font-size: var(--text-xl); ; 
  font-weight: 900; }



/* ============================================================
   MARQUEE LINKS
   ============================================================ */
.marquee-link {
  color: inherit;
  text-decoration: none;
}
.marquee-link .marquee-item {
  cursor: pointer;
  transition: color 0.2s;
}
.marquee-link:hover .marquee-item { color: var(--yellow); }
[data-theme="dark"] .marquee-link:hover .marquee-item { color: var(--yellow); }

/* Amélioration dark mode — contraste texte secondaire */
[data-theme="dark"] .text-secondary,
[data-theme="dark"] .page-hero__desc,
[data-theme="dark"] .formation-detail-desc {
  color: var(--text-secondary);
}
[data-theme="dark"] .bg-card,
[data-theme="dark"] .f-card {
  background: var(--bg-card);
  border-color: var(--border);
}

/* AGENDA EMPTY */
.agenda-empty {
  text-align: center;
  padding: var(--s12) var(--s4);
  color: var(--text-muted);
  font-size: var(--text-base);
}

/* ============================================================
   RESPONSIVE UTILITIES
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .display-xl { font-size: clamp(3rem, 12vw, 5.5rem); }
  .display-lg { font-size: clamp(2.5rem, 10vw, 4.5rem); }
  .display-md { font-size: clamp(2rem, 8vw, 3.5rem); }
  .hide-mobile { display: none !important; }
}
@media (min-width: 641px) {
  .show-mobile { display: none !important; }
}
