/* ============================================================
   INTERFACE3 — DESIGN SYSTEM v2.2 (consolidé, non destructif) (nettoyé)

   ============================================================ */

/* --- 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');

:root {
  /* ---- PALETTE SIGNATURE ---- */
  --yellow: #F5E32D;
  --violet: #4B2BFF;
  --green:  #00C46A;
  --black:  #2e3232;
  --white:  #FAF9F6;
  --red: #E11D48;
  --red-hover: #BE123C;
  --red-subtle: rgba(225, 29, 72, 0.10);
  --text-on-red: #FAF9F6;
  --fluo:   #ff81f1; /* violet-rose clair */
  --orange: #FF7A3D; /* pour distinguer Job Day des autres badges jaunes */

  /* ---- LOGO (par défaut = light) ---- */
  --color-logo: var(--black);

  /* ---- SURFACES LIGHT ---- */
  --bg:          #FAF9F6;
  --bg-alt:      #F0EFE9;
  --bg-card:     #FFFFFF;
  --bg-dark:     #2e3232;
  --bg-dark-alt: #161616;
  --bg-fluo:    #ff81f1;

  /* ---- TEXTE LIGHT ---- */
  --text-primary:   #2e3232;
  --text-secondary: #3D3D3D;
  --text-muted:     #7A7A7A;
  --text-inverse:   #FAF9F6;
  --text-on-yellow: #2e3232;
  --text-on-violet: #FAF9F6;

  /* ---- ACCENTS ---- */
  --accent:        var(--violet);
  --accent-hover:  #3618E0;
  --accent-subtle: rgba(75, 43, 255, 0.08);
  --accent-alt: var(--fluo);
  --accent-alt-subtle: rgba(223, 140, 255, 0.12);


  /* ---- BORDERS ---- */
  --border:        rgba(13, 13, 13, 0.10);
  --border-strong: rgba(13, 13, 13, 0.30);
  --border-subtle: rgba(13, 13, 13, 0.05);

  /* ---- 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);

  /* ---- TYPO ---- */
  --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;

  /* ---- TAILLES DE TEXTE ---- */
  --text-xs:   0.875rem;
  --text-sm:   1rem;
  --text-base: 1.125rem;
  --text-lg:   1.25rem;
  --text-xl:   1.5rem;
  --text-2xl:  1.875rem;
  --text-3xl:  2.25rem;
  --text-4xl:  3rem;
  --text-5xl:  4rem;
  --text-6xl:  5rem;
  --text-7xl:  6.5rem;
  --text-8xl:  8rem;

  /* ---- LINE-HEIGHT ---- */
  --lh-tight:   1.0;
  --lh-snug:    1.15;
  --lh-base:    1.6;
  --lh-relaxed: 1.75;

  /* legacy aliases */
  --leading-tight:  var(--lh-tight);
  --leading-snug:   var(--lh-snug);
  --leading-normal: var(--lh-base);

  /* ---- 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);

  /* ---- BOUTON — FLÈCHE ---- */
  --btn-arrow-bg:    currentColor;
  --btn-arrow-color: var(--bg);

  /* ---- NAV ---- */
  --nav-h: 68px;
}

[data-theme="dark"] {
  --color-logo: var(--white);
}

/* ============================================================
   DARK MODE
   Les variables de texte s'inversent : text-primary devient clair,
   text-inverse devient sombre. La logique de contraste reste identique.
   ============================================================ */
[data-theme="dark"] {
  --bg:          #2e3232;
  --bg-alt:      #161616;
  --bg-card:     #1A1A1A;
  --bg-dark:     #FAF9F6;
  --bg-dark-alt: #F0EFE9;

  --text-primary:   #FAF9F6;   /* clair sur fond sombre */
  --text-secondary: #C8C8C0;
  --text-muted:     #888880;
  --text-inverse:   #2e3232;   /* sombre sur fond clair */
  --text-on-yellow: #2e3232;   /* inchangé — yellow reste clair */
  --text-on-violet: #FAF9F6;   /* inchangé — violet reste sombre */

  --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);

  
}

/* ============================================================
   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;
  max-width: 100%;
  overflow-x: hidden;
}

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;
  max-width: 100%;
  overflow-x: hidden;
  transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}

/* max-width et overflow-x définis une seule fois sur html + body ci-dessus */

img, svg { display: block; max-width: 100%; }
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(--lh-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(--lh-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(--lh-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(--lh-snug);
  text-transform: uppercase;
}

/* Headings body */
h1, .h1 { font-family: var(--font-display); font-size: var(--text-5xl); font-weight: 800; line-height: var(--lh-snug); text-transform: uppercase; }
h2, .h2 { font-family: var(--font-display); font-size: var(--text-4xl); font-weight: 800; line-height: var(--lh-snug); text-transform: uppercase; }
h3, .h3 { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 700; line-height: var(--lh-snug); text-transform: uppercase; }
h4, .h4 { font-family: var(--font-body);    font-size: var(--text-xl);  font-weight: 700; line-height: var(--lh-base); }
h5, .h5 { font-family: var(--font-body);    font-size: var(--text-lg);  font-weight: 600; line-height: var(--lh-base); }
h6, .h6 { font-family: var(--font-body);    font-size: var(--text-base);font-weight: 600; line-height: var(--lh-base); }

/* CORRECTION : lh-snug (1.15) → lh-base (1.6) pour lisibilité WCAG texte courant */
p { font-size: var(--text-base); line-height: var(--lh-base); color: var(--text-secondary); }

.lead  { font-size: var(--text-lg);  line-height: var(--lh-base);    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 éditorial
   Contraste garanti via --text-on-yellow et --text-on-violet
   ============================================================ */
.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); /* vert clair → texte sombre */
  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), 4vw,  var(--s32)); }
.section--sm{ padding-block: clamp(var(--s10), 5vw,  var(--s24)); }
.section--lg{ padding-block: clamp(var(--s24), 12vw, var(--s48)); }
.section-special { padding-block-end: clamp(var(--s16), 6vw,  var(--s32)); }

/* 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

   LOGIQUE DE CONTRASTE :
   ─────────────────────────────────────────────────────────────
   • btn-primary  : fond sombre (text-primary) → texte clair (text-inverse)  ✅
   • btn-outline  : fond transparent → texte sombre (text-primary)            ✅ CORRIGÉ
                    (ancienne valeur text-inverse = blanc invisible en light)
   • btn-yellow   : fond jaune → texte sombre (text-on-yellow)                ✅
   • btn-violet   : fond violet → texte clair (#fff)                          ✅

   FLÈCHE INTÉGRÉE (.btn-arrow) :
   Les variables --btn-arrow-bg / --btn-arrow-color sont définies
   une seule fois par variante, directement dans la règle de la variante.
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s4);
  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;
}

/* Variante : primaire — fond sombre, texte clair */
.btn-primary {
  background: var(--text-primary);
  color: var(--text-inverse);
  border: 2px solid var(--text-primary);
  --btn-arrow-bg:    #fff;
  --btn-arrow-color: var(--text-primary);
}
.btn-primary:hover {
  background: var(--violet);
  border-color: var(--violet);
  color: var(--text-inverse);
  transform: translateY(-1px);
}

/* Variante : outline — fond transparent, texte sombre
   CORRIGÉ : color était var(--text-inverse) → blanc invisible en light mode */
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-strong);
  --btn-arrow-bg:    var(--text-primary);
  --btn-arrow-color: var(--bg);
}
.btn-outline:hover {
  background: var(--green);
  border: none;
  color: white;
  transform: translateY(-1px);
}

.btn-yellow-to-dark:hover {
  color: #FFFFFF !important; /* ON FORCE LE BLANC ICI */
}


/* Variante : jaune */
.btn-yellow {
  background: var(--yellow);
  color: var(--text-primary); /* ✅ TEXTE FONCÉ AU DÉPART */
  border: 3px solid var(--yellow);
  font-weight: 700;
  --btn-arrow-bg:    var(--text-primary);
  --btn-arrow-color: #fff;
}
.btn-yellow:hover {
  background: transparent;
  border-color: var(--yellow);
  /*color: var(--text-primary);*/
  transform: translateY(-1px);
}


.btn-yellow:hover .blanc {
  color: #fff;
}



.btn-yellow .btn-arrow {
  background-color: #fff;
  color: var(--text-primary);
}

.btn-yellow:hover .btn-arrow {
  background-color: var(--yellow);
  color: var(--text-primary);
}


/* Variante : violet */
.btn-violet {
  background: var(--violet);
  color: #fff;
  border: 2px solid var(--violet);
  --btn-arrow-bg:    #fff;
  --btn-arrow-color: var(--violet);
}
.btn-violet:hover {
  background: transparent;
  color: var(--violet);
  transform: translateY(-1px);
}


/* Variante Bouton Vert "Impact" */
.btn-green {
  background-color: var(--green) !important;
  color: #ffffff !important;           /* Texte blanc */
  border: 2px solid transparent;       /* Préparation pour le contour au survol */
  font-weight: 700;
  transition: all var(--t-fast);       /* Utilise votre variable de transition */
}

.btn-green:hover {
  background-color: var(--green);          /* Garde le fond vert */
  border: 4px solid var(--violet);           /* Contour épais plus foncé au survol */
  color: #ffffff;
  transform: translateY(-2px);         /* Petit effet de levée cohérent avec vos quiz-answers */
}

/* Tailles */
.btn--lg { 
  font-size: var(--text-base); 
  padding-left: 2rem;
  padding-right: 2rem;
 }
.btn--sm { font-size: var(--text-xs);   padding: 0.65em 1.2em; }

/* Flèche circulaire intégrée au bouton */
.btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6em;
  height: 1.6em;
  border-radius: 50%;
  background: var(--btn-arrow-bg);
  color: var(--btn-arrow-color);
  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); }

/* No-JS fallback */
.no-js [data-reveal],
.no-js [data-reveal-left] { opacity: 1; transform: none; }

/* ============================================================
   MARQUEE / TICKER
   Contraste : fond sombre (text-primary) → texte var(--bg)
   Dark mode : fond jaune → texte on-yellow (sombre)
   ============================================================ */
.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%); }
}

/* ============================================================
   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); }

/* ============================================================
   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 : fond sombre → tous les textes utilisent text-inverse ou rgba */
.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(--lh-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(--lh-base);
  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(--lh-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); }

@media (max-width: 768px) {
  .breadcrumb {
    font-size: 11px;
    flex-wrap: wrap;
    gap: 4px;
    line-height: 1.4;
  }
}

/* ============================================================
   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(--s6);
}
.filter-chips {
  display: flex;
  gap: var(--s3);
  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(--s2) var(--s4);
  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.6em 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
   Fond sombre permanent → texte via rgba(--white) ou --text-inverse
   Les couleurs de texte ici sont hardcodées en rgba car le footer
   n'est PAS affecté par les variables light/dark (fond toujours sombre).
   ============================================================ */
.footer {
  background: var(--text-primary);
  color: var(--text-inverse);
  padding-top: var(--s16);
  padding-bottom: var(--s10);
}
[data-theme="dark"] .footer {
  background: #000;
  border-top: 1px solid var(--border);
}

.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: var(--lh-base);
  max-width: 30ch;
}
.footer__address {
  font-size: var(--text-sm);
  color: rgba(250, 249, 246, 0.65);
  line-height: var(--lh-base);
}
.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 var(--t-fast), background var(--t-fast), color var(--t-fast);
}
.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: var(--lh-base);
  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 var(--t-fast);
}
.footer__funders-link:hover { color: rgba(250, 249, 246, 0.9); }

.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 = fond sombre permanent → logo blanc permanent */
.footer-logo img {
  height: 35px;
  width: auto;
  display: block;
  content: url("../images/logo/logo-if3--white.svg");
  filter: none;
  opacity: 1;
}


.footer__tagline {
  font-size: var(--text-xs);
  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 : à utiliser UNIQUEMENT sur fond sombre */
.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; }

/* ============================================================
   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 var(--t-fast);
}
.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 var(--t-fast), color var(--t-fast);
}
.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: var(--lh-relaxed);
}
.faq-answer a { color: var(--violet); text-decoration: underline; }
[data-theme="dark"] .faq-answer a { color: var(--yellow); }

/* CORRECTION : double point-virgule supprimé */
.faq-subtitle {
  font-size: var(--text-xl);
  font-weight: 900;
}

/* ============================================================
   PROFILS GRID — employeurs
   ============================================================ */
.profils-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s4);
  margin-top: var(--s10);
}

@media (max-width: 768px) {
  .profils-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--s4);
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .profils-grid::-webkit-scrollbar { display: none; }
  .profils-grid > div {
    flex: 0 0 70%;
    scroll-snap-align: start;
  }
}

/* ============================================================
   STATS GRID — hero employeurs
   Note : border-color utilise rgba blanc semi-transparent car ce
   composant est conçu pour des fonds sombres uniquement.
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s6);
  margin-top: var(--s16);
  border-top: 1px solid rgba(250, 249, 246, 0.12);
  padding-top: var(--s10);
}

@media (max-width: 768px) {
  .stats-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    margin-left: calc(var(--gutter) * -1);
    margin-right: calc(var(--gutter) * -1);
    padding-left: var(--gutter);
    padding-right: var(--gutter);
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .stats-grid::-webkit-scrollbar { display: none; }
  .stats-grid > div {
    flex: 0 0 60%;
    scroll-snap-align: start;
  }
}

/* ============================================================
   STATS MARQUEE — hero employeurs
   Note : même convention que stats-grid (fond sombre implicite)
   ============================================================ */
.stats-marquee {
  margin-top: var(--s16);
  border-top: 1px solid rgba(250, 249, 246, 0.12);
  padding-top: var(--s10);
  overflow: hidden;
}
.stats-marquee__track, .p2-mini-stats {
  display: flex;
  gap: var(--s16);
  width: max-content;
  animation: stats-scroll 20s linear infinite;
}
.stats-marquee__track:hover { animation-play-state: paused; }
.stats-marquee__item {
  flex-shrink: 0;
  min-width: 160px;
}

@keyframes stats-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - var(--s8))); }
}

@media (min-width: 769px) {
   .stats-marquee__track, .p2-mini-stats {
    animation: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s6);
    width: 100%;
  }

   
  .stats-marquee__item {
    min-width: 0; /* important pour égalité parfaite */
  }

  .stats-marquee__item:nth-child(n+5) {
    display: none;
  }

}

/* ============================================================
   bloc 40 ans
   ============================================================ */
  @media (max-width: 768px) {

  
  .p2-section .p2-about-strip {
      display: flex !important;
      flex-direction: column !important;
      gap: var(--s5);
    }
  
  .p2-section {
    text-align: left;
    font-size: var(--text-sm);
  }

  .p2-about-strip__year {
    text-align: left !important;
    font-size: var(--text-8xl)!important;
  }
}


/* ============================================================
   CTA FINAL — employeurs
   ============================================================ */
.cta-final__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s8);
  align-items: center;
}

@media (max-width: 768px) {
  .cta-final__inner {
    grid-template-columns: 1fr;
  }
  .cta-final__inner > div:last-child {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--s4);
  }
}

/* ============================================================
   FUNDER GRID
   Utilise min(300px, 100%) pour un passage automatique en colonne
   unique sur mobile sans media query supplémentaire.
   ============================================================ */
.funder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: var(--s6);
  margin: var(--s10) 0;
}

/* ============================================================
   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; }

  .container {
    padding-inline: var(--gutter);
  }
}

@media (min-width: 641px) {
  .show-mobile { display: none !important; }
}

/* ============================================================
   BUTTONS — MOBILE (bloc unique canonique)
   Remplace les 6 blocs précédents. Règle finale, pas de surcharge.
   ============================================================ */
@media (max-width: 640px) {
  .btn,
  .btn--lg,
  .btn--sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 35px;        /* touch target WCAG 2.5.5 */
    padding-inline: var(--s6);
    padding-block: 0.75rem;
    font-size: 0.85rem;
    line-height: 1.1;
    letter-spacing: 0.04em;
    white-space: normal;
    text-align: center;
    box-sizing: border-box;
  }

  /* Pseudo-éléments décoratifs replacés dans le flux normal */
  .btn::before,
  .btn::after {
    position: static;
    transform: none;
  }

  /* Enfants directs restent dans le flux flex */
  .btn > svg,
  .btn > span {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
  }

  /* Icônes masquées sur mobile */
  .btn svg,
  .btn .icon,
  .btn .btn-icon { display: none; }

  /* Boutons pleine largeur sur mobile */
  .btn--lg,
  .btn-primary,
  .nav__mobile-cta .btn {
    width: 100%;
    max-width: 100%;
  }
}

/* ============================================================
   BADGE / PILL — MOBILE ALIGNMENT
   ============================================================ */
@media (max-width: 640px) {
  .badge,
  .pill,
  .tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.1rem;
    font-size: 0.75rem;
    line-height: 1.1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    box-sizing: border-box;
  }
}


/* ============================================================
   INTERFACE3 — DESIGN SYSTEM (extrait)
   ============================================================ */

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  opacity: 0.7;
}

.filter-status {
  margin-top: var(--s4);
  font-size: 0.875rem;
  opacity: 0.7;
}


.badge--domain{background:transparent;border-color:var(--border-strong);color:var(--text-primary);}
[data-theme="dark"] .badge--domain{background:rgba(255,255,255,0.06);border-color:var(--border);color:var(--text-primary);}


/* Fix : [hidden] doit toujours cacher, même si display est défini ailleurs */
[hidden]{display:none !important;}


/* ============================================================
FILTER BAR — espacement & rythme (harmonisation Agenda)
============================================================ */



.filter-group {
  margin-bottom: var(--s4);
}

.filter-group:last-child {
  margin-bottom: 0;
}

/* Séparer visuellement TYPE et DOMAINE */
.filter-group + .filter-group {
  margin-top: var(--s6);
  padding-top: var(--s4);
  border-top: 1px solid var(--border);
}




/* ============================================================
FILTERS — TYPE (pastilles légères, non bouton)
============================================================ */

.filter-type {
  display: flex;
  gap: var(--s4);
  align-items: center;
}

.type-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease, text-decoration 0.2s ease;
}

.type-pill:hover {
  opacity: 1;
  text-decoration: underline;
}

.type-pill.is-active {
  opacity: 1;
  text-decoration: underline;
}

/* Couleurs par TYPE */
.type-pill[data-type="qualifiante"]::before {
  content: '';
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: var(--violet);
}

.type-pill[data-type="court"]::before {
  content: '';
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: var(--green);
}

