
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600&display=swap');

:root {
  --yellow: #FBE216;
  --yellow-dark: #E8CC00;
  --cyan: #00E5FF;
  --cyan-dark: #00B8CC;
  --navy: #0D0F1A;
  --navy-mid: #141726;
  --navy-light: #1E2340;
  --white: #FFFFFF;
  --off-white: #FAFAFA;
  --gray-light: #F4F5F8;
  --gray-mid: #E4E5EC;
  --gray-dark: #6B7280;
  --neon-y: rgba(251,226,22,0.55);
  --neon-c: rgba(0,229,255,0.45);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 12px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-md: 0 12px 32px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 24px 48px rgba(0,0,0,0.15), 0 8px 24px rgba(0,0,0,0.08);
  --shadow-yellow: 0 0 20px rgba(251,226,22,0.5), 0 0 60px rgba(251,226,22,0.2);
  --shadow-cyan: 0 0 20px rgba(0,229,255,0.4), 0 0 60px rgba(0,229,255,0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --container: 1200px;
  /* Easing library — design-motion-principles */
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);       /* standard */
  --ease-out:    cubic-bezier(0, 0, 0.2, 1);          /* decelerate */
  --ease-in:     cubic-bezier(0.4, 0, 1, 1);          /* accelerate — for exit animations */
  --spring:      cubic-bezier(0.34, 1.56, 0.64, 1);   /* physical spring */
  --spring-soft: cubic-bezier(0.22, 1.2, 0.36, 1);    /* soft spring */
  --snappy:      cubic-bezier(0.2, 0, 0, 1);          /* Kowalski snappy — for modal/drawer slides */
  --reveal:      cubic-bezier(0.77, 0, 0.175, 1);     /* clip-path reveal */

  /* Timing scale — Kowalski */
  --dur-micro:  150ms;   /* instant feedback */
  --dur-fast:   250ms;   /* micro-interactions */
  --dur-base:   350ms;   /* standard transitions */
  --dur-slow:   550ms;   /* entrances, reveals */
  --dur-crawl:  800ms;   /* hero / page-level */

  /* Deprecated — keep for backward compat */
  --transition: color var(--dur-fast) var(--ease),
                background-color var(--dur-fast) var(--ease),
                border-color var(--dur-fast) var(--ease),
                box-shadow var(--dur-base) var(--ease),
                opacity var(--dur-base) var(--ease),
                transform var(--dur-base) var(--ease);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ── Page fade-in — only when JS has run ───────────────────
   body-ready is added by site.js on DOMContentLoaded.
   Without JS the page is always fully visible (no opacity:0).
   ────────────────────────────────────────────────────────── */
.js body {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.js body.body-ready { opacity: 1; }

/* ── Reveal fallback — no JS = everything visible ─────────
   When the html.js class is absent (JS disabled / not yet run)
   all animated elements are fully visible so users never
   see a blank page.
   ────────────────────────────────────────────────────────── */
:not(.js) .fmp-reveal,
:not(.js) .hp-reveal,
:not(.js) .reveal-heading,
:not(.js) .yellow-underline,
:not(.js) .anim-up,
:not(.js) .anim-scale,
:not(.js) .anim-left,
:not(.js) .wcard,
:not(.js) .ctr-item,
:not(.js) .fmp-mc {
  opacity: 1 !important;
  transform: none !important;
  clip-path: none !important;
}

body {
  margin: 0;
  font-family: 'Inter', 'Outfit', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--navy);
  background: var(--white);
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: color var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease); }
img { max-width: 100%; display: block; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.section-white, .section-gray { padding: 100px 0; }
.section-white { background: var(--white); }
.section-gray { background: var(--gray-light); }

/* ── Typography ─────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 20px;
  color: var(--navy);
}
h1 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
p  { margin: 0 0 16px; color: var(--gray-dark); }
ul { padding-left: 20px; margin: 0 0 16px; }
ul li { color: var(--gray-dark); margin-bottom: 8px; line-height: 1.7; }
.small    { font-size: 0.875rem; }
.uppercase { text-transform: uppercase; }

/* ── Accent elements ─────────────────────────────────── */
.yellow-highlight {
  background: var(--yellow);
  display: inline-block;
  padding: 2px 10px 4px;
  font-weight: 800;
  line-height: 1.2;
  border-radius: 4px;
}
.yellow-underline {
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, var(--yellow), var(--yellow-dark));
  border-radius: 2px;
  margin: 16px 0 40px;
}

/* ── Buttons ─────────────────────────────────────────── */
.btn-yellow, .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  transition: box-shadow 0.3s ease, transform 0.2s ease, background 0.3s ease;
}
/* Light sweep on hover */
.btn-yellow::before, .btn-outline::before {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}
.btn-yellow:hover::before, .btn-outline:hover::before {
  animation: neonSweep 0.55s ease forwards;
}
.btn-yellow {
  background: var(--yellow);
  color: var(--navy);
  box-shadow: 0 0 0 rgba(251,226,22,0);
}
.btn-yellow:hover {
  background: var(--yellow);
  box-shadow: var(--shadow-yellow);
  transform: translateY(-3px) scale(1.02);
}
.btn-yellow:active { transform: translateY(0) scale(0.98); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 0 20px rgba(13,15,26,0.25);
  transform: translateY(-3px) scale(1.02);
}
/* White section outline buttons */
.dark-banner .btn-outline, footer .btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.dark-banner .btn-outline:hover { background: rgba(255,255,255,0.1); }

/* ── Grid ────────────────────────────────────────────── */
.grid   { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

/* ── Cards — futuristic HUD panel ────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  padding: 36px;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
  position: relative;
  overflow: visible;
}
/* HUD corner brackets */
.card::before, .card::after {
  content: '';
  position: absolute;
  width: 0; height: 0;
  border-style: solid;
  border-color: var(--yellow);
  opacity: 0;
  transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}
.card::before {
  top: -1px; left: -1px;
  border-width: 2px 0 0 2px;
  border-radius: 2px 0 0 0;
}
.card::after {
  bottom: -1px; right: -1px;
  border-width: 0 2px 2px 0;
  border-radius: 0 0 2px 0;
}
.card:hover::before, .card:hover::after {
  width: 20px; height: 20px;
  opacity: 1;
}
.card > * { position: relative; z-index: 1; }
.card:hover {
  border-color: rgba(251,226,22,0.4);
  box-shadow:
    0 0 0 1px rgba(251,226,22,0.15),
    0 0 30px rgba(251,226,22,0.1),
    0 16px 40px rgba(0,0,0,0.1);
  /* transform defined in CSS-only block below */
}
.card-sm {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  padding: 24px;
  transition: var(--transition);
}
.card-sm:hover {
  border-color: rgba(251,226,22,0.35);
  box-shadow: 0 0 16px rgba(251,226,22,0.12), 0 8px 24px rgba(0,0,0,0.08);
}

/* ── Hero ────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
  color: #fff;
  overflow: hidden;
}
.hero-bg, .page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(0.2);
  transform: scale(1.04);
  transition: transform 10s ease;
}
.hero:hover .hero-bg { transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,15,26,0.9) 0%, rgba(13,15,26,0.65) 60%, rgba(251,226,22,0.06) 100%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; width: 100%; }
.hero h1 {
  color: #fff;
  text-shadow:
    0 2px 0 rgba(0,0,0,0.3),
    0 4px 0 rgba(0,0,0,0.2),
    0 8px 20px rgba(0,0,0,0.4);
}
.hero p { color: rgba(255,255,255,0.88); }

/* ── Topbar ──────────────────────────────────────────── */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  font-weight: 600;
  padding: 10px 0;
  letter-spacing: 0.04em;
  border-bottom: 2px solid var(--yellow);
}
.topbar .container-wide { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ── Header ──────────────────────────────────────────── */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 1px 24px rgba(0,0,0,0.06);
  transition: var(--transition);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}
.logo-wrap { display: flex; align-items: center; text-decoration: none; }
.site-logo-img {
  height: 52px;
  width: auto;
  display: block;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--spring);
}
.logo-wrap:hover .site-logo-img {
  opacity: 0.85;
  transform: scale(1.03);
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 8px 14px;
  border-radius: 8px;
  text-transform: uppercase;
  color: var(--gray-dark);
  position: relative;
  background: transparent;
  transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
/* Krehel: sliding underline reveal instead of instant bg pop */
.nav a::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 14px; right: 14px;
  height: 2px;
  background: var(--yellow);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-fast) var(--spring);
}
.nav a:hover::after { transform: scaleX(1); }
.nav a.active {
  background: var(--yellow);
  color: var(--navy);
}
.nav a.active::after { display: none; }
.nav a:hover { color: var(--navy); background: rgba(251,226,22,0.12); }
.mobile-toggle { display: none; background: none; border: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--navy); min-width: 44px; min-height: 44px; padding: 11px; align-items: center; justify-content: center; }
.mobile-panel { display: none; padding: 0 0 24px; }
.mobile-panel a { display: block; padding: 14px 0; font-weight: 700; color: var(--gray-dark); border-bottom: 1px solid var(--gray-mid); transition: var(--transition); }
.mobile-panel a.active { color: var(--navy); padding-left: 12px; border-left: 3px solid var(--yellow); }
.search-link {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-dark);
  padding: 8px 14px;
  border-radius: 8px;
  transition: var(--transition);
}
.search-link:hover { background: var(--gray-light); color: var(--navy); }

/* ── Breadcrumb ──────────────────────────────────────── */
.breadcrumb { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 24px; color: var(--gray-dark); }
.breadcrumb a { color: var(--gray-dark); }
.breadcrumb a:hover { color: var(--navy); }
.hero .breadcrumb, .dark-banner .breadcrumb { color: rgba(255,255,255,0.55); }

/* ── Hero search ─────────────────────────────────────── */
.hero-search-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; max-width: 860px; margin-top: 48px; }
.hero-card {
  background: rgba(13,15,26,0.55);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(251,226,22,0.2);
  border-top: 1px solid rgba(251,226,22,0.4);
  padding: 28px;
  border-radius: 4px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35), inset 0 1px 0 rgba(251,226,22,0.1);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
  position: relative;
  overflow: hidden;
}
.hero-card:hover {
  border-color: rgba(251,226,22,0.5);
  box-shadow: var(--shadow-yellow), 0 28px 50px rgba(0,0,0,0.4);
  /* transform defined in CSS-only block below */
}
.hero-card h3 { color: #fff; font-size: 15px; margin-bottom: 14px; letter-spacing: 0.02em; }

/* ── Form ────────────────────────────────────────────── */
.field-row { display: flex; gap: 10px; }
/* Default: light inputs for all sections */
input, select, textarea {
  width: 100%;
  border: 1px solid var(--gray-mid);
  border-radius: 10px;
  padding: 12px 18px;
  font: inherit;
  color: var(--navy);
  background: var(--white);
  transition: var(--transition);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(251,226,22,0.2);
}
input::placeholder, textarea::placeholder { color: var(--gray-dark); }
/* Override: white glassy inputs only inside hero */
.hero input, .hero select, .hero textarea {
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 50px;
  color: #fff;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero input::placeholder { color: rgba(255,255,255,0.6); }
.hero select option { color: var(--navy); background: #fff; }
label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--navy); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
.form-grid .full { grid-column: 1 / -1; }

/* ── Responsive typography helpers ──────────────────── */
.page-intro {
  font-size: clamp(15px, 2.5vw, 20px);
  font-weight: 500;
  color: var(--gray-dark);
  max-width: 860px;
  line-height: 1.7;
}
.hero-sub {
  font-size: clamp(16px, 2.8vw, 22px);
  font-weight: 500;
  max-width: 700px;
  margin-bottom: 48px;
}

/* ── Card thumbnail (responsive image area) ─────────── */
.card-thumb {
  height: 250px;
}
@media (max-width: 768px) { .card-thumb { height: 200px; } }
@media (max-width: 480px) { .card-thumb { height: 160px; } }

/* ── Program cards — futuristic ──────────────────────── */
a.program-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.prog-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--yellow);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: letter-spacing 0.2s ease;
}
a.program-card:hover .prog-link {
  letter-spacing: 0.1em;
}
.program-card {
  position: relative;
  height: 420px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.04);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s ease;
}
/* Neon border overlay that appears on hover */
.program-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(0,229,255,0);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  pointer-events: none;
  z-index: 3;
}
.program-card:hover {
  /* transform defined in CSS-only block below */
  box-shadow: var(--shadow-cyan), 0 24px 50px rgba(0,0,0,0.4);
}
.program-card:hover::after {
  border-color: rgba(0,229,255,0.5);
  box-shadow: inset 0 0 30px rgba(0,229,255,0.08);
}
.program-card .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(0.5);
  transform: scale(1.06);
  transition: 0.65s var(--ease);
}
.program-card:hover .bg { filter: grayscale(0); transform: scale(1); }
.program-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,15,26,0.95) 0%, rgba(13,15,26,0.4) 55%, transparent 100%);
}
.program-card .content { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; color: #fff; }
.program-card .content h3 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; line-height: 1.3; }
.program-card p { color: rgba(255,255,255,0.78); font-size: 14px; line-height: 1.6; margin-bottom: 0; }

/* ── Pills ───────────────────────────────────────────── */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 48px; }
.pill {
  border: 1.5px solid var(--yellow);
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--navy);
  background: rgba(251,226,22,0.08);
  transition: var(--transition);
}
.pill:hover { background: var(--yellow); }

/* ── Stats — holographic futuristic ──────────────────── */
.stat-box {
  text-align: center;
  background: linear-gradient(145deg, #0f1220, #0D0F1A);
  padding: 40px 24px;
  border-radius: 4px;
  border: 1px solid rgba(0,229,255,0.1);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.04);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease, border-color 0.35s ease;
}
/* Holographic top edge */
.stat-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.5;
}
/* Cyber scan line */
.stat-box::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0,229,255,0.4), transparent);
  top: -2px;
  opacity: 0;
  pointer-events: none;
}
.stat-box:hover {
  border-color: rgba(0,229,255,0.4);
  box-shadow: var(--shadow-cyan), 0 24px 48px rgba(0,0,0,0.5);
  /* transform defined in CSS-only block below */
}
.stat-box:hover::after {
  animation: cyberScan 1.2s linear 1; /* Jhey: fire once, not forever */
  opacity: 1;
}
.stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 12px;
  position: relative;
  /* Holographic gradient text */
  background: linear-gradient(135deg, var(--yellow) 0%, #fff8a0 40%, var(--cyan) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 12px rgba(251,226,22,0.5));
}
.stat-box:hover .stat-value {
  animation: holoShift 2s ease infinite;
}
.stat-box .uppercase { font-weight: 700; color: rgba(255,255,255,0.55); font-size: 11px; letter-spacing: 0.12em; position: relative; }

/* ── News ────────────────────────────────────────────── */
.news-item {
  padding: 0 0 28px 16px;
  border-bottom: 1px solid var(--gray-mid);
  border-left: 3px solid transparent;
  transition: border-color 0.3s var(--ease), padding-left 0.3s var(--ease), transform 0.3s var(--ease);
}
.news-item:hover {
  border-left-color: var(--yellow);
  padding-left: 24px;
  transform: translateX(4px);
}
.news-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.badge {
  background: var(--yellow);
  color: var(--navy);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

/* ── Dark banner ─────────────────────────────────────── */
.dark-banner { position: relative; padding: 120px 0; background: var(--navy); }
.dark-banner .page-hero-bg { filter: grayscale(0.5); opacity: 0.25; }
.dark-banner .hero-overlay { background: linear-gradient(135deg, rgba(13,15,26,0.97) 0%, rgba(13,15,26,0.88) 100%); }
.dark-banner .grid { position: relative; z-index: 1; }

/* ── Quote cards — holographic glass ────────────────── */
.quote-card {
  background: rgba(14,17,32,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0,229,255,0.12);
  border-top: 1px solid rgba(0,229,255,0.3);
  padding: 36px;
  border-radius: 4px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35), inset 0 1px 0 rgba(0,229,255,0.1);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease, background 0.35s ease;
  position: relative;
  overflow: hidden;
}
/* Animated scan line on hover */
.quote-card::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,229,255,0.6), transparent);
  top: -2px;
  opacity: 0;
  pointer-events: none;
}
.quote-card:hover {
  background: rgba(14,17,32,0.85);
  border-color: rgba(0,229,255,0.4);
  border-top-color: rgba(0,229,255,0.7);
  box-shadow: var(--shadow-cyan), 0 28px 56px rgba(0,0,0,0.5);
  /* transform defined in CSS-only block below */
}
.quote-card:hover::before {
  animation: cyberScan 1s linear 1; /* Jhey: fire once, not forever */
  opacity: 1;
}
.quote-card h3 { color: #fff; }
.quote-card p  { color: rgba(255,255,255,0.68); }

/* ── FAQ ─────────────────────────────────────────────── */
.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.faq-item:hover { box-shadow: var(--shadow); }
.faq-q {
  padding: 22px 28px;
  font-weight: 700;
  cursor: pointer;
  font-size: 15px;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-q::after { content: '+'; font-size: 22px; font-weight: 400; color: var(--gray-dark); flex-shrink: 0; }
.faq-a { color: var(--gray-dark); font-size: 15px; } /* height controlled by max-height below */
.faq-item.open { border-color: var(--yellow); border-left: 4px solid var(--yellow); }
.faq-item.open .faq-q::after { content: '−'; color: var(--navy); }

/* ── Footer ──────────────────────────────────────────── */
footer.site-footer { background: var(--navy); color: #fff; padding: 80px 0 32px; border-top: 3px solid var(--yellow); }
footer h3 { font-size: 14px; color: var(--yellow); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 20px; }
footer p, footer a, footer li { color: rgba(255,255,255,0.6); font-size: 14px; }
footer a:hover { color: var(--yellow); }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 48px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 28px; margin-top: 48px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.socials { display: flex; gap: 10px; }
.social {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  transition: var(--transition);
}
.social:hover { background: var(--yellow); color: var(--navy); border-color: var(--yellow); }

/* ── Misc ────────────────────────────────────────────── */
.alert {
  padding: 18px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-mid);
  border-left: 4px solid var(--yellow);
  background: rgba(251,226,22,0.04);
  margin-bottom: 24px;
  font-weight: 600;
}
.table-wrap { overflow: auto; border: 1px solid var(--gray-mid); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; background: #fff; min-width: 760px; }
th, td { padding: 18px 20px; border-right: 1px solid var(--gray-mid); border-bottom: 1px solid var(--gray-mid); text-align: left; }
th:last-child, td:last-child { border-right: 0; }
thead th { background: var(--navy); color: var(--yellow); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
tbody tr:hover { background: var(--gray-light); }
.map-embed { width: 100%; height: 400px; border: 0; border-radius: var(--radius); filter: grayscale(0.4); }
.info-list { display: grid; gap: 20px; }
.info-line { display: flex; gap: 16px; align-items: flex-start; font-weight: 600; }
.center  { text-align: center; }
.mt-24   { margin-top: 24px; }
.mt-32   { margin-top: 32px; }
.mt-48   { margin-top: 48px; }
.mb-0    { margin-bottom: 0; }

/* ══════════════════════════════════════════════════════
   ANIMATION SYSTEM
   ══════════════════════════════════════════════════════ */

/* ── Keyframes ───────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-18px) rotate(1.5deg); }
  66%       { transform: translateY(-8px) rotate(-1deg); }
}
@keyframes floatSlow {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  50%       { transform: translateY(-28px) translateX(12px); }
}
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 4px 16px rgba(251,226,22,0.35); }
  50%       { box-shadow: 0 4px 40px rgba(251,226,22,0.7), 0 0 80px rgba(251,226,22,0.2); }
}
@keyframes pulseRing {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(2.2); opacity: 0; }
}
@keyframes gradientShift {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}
@keyframes revealClip {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0% 0 0); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%       { transform: translateY(8px); opacity: 0.4; }
}
@keyframes orb1 {
  0%, 100% { transform: translate(0,0)    scale(1); }
  33%       { transform: translate(40px,-30px) scale(1.08); }
  66%       { transform: translate(-20px,20px) scale(0.95); }
}
@keyframes orb2 {
  0%, 100% { transform: translate(0,0)    scale(1); }
  33%       { transform: translate(-50px,20px) scale(0.92); }
  66%       { transform: translate(30px,-40px) scale(1.1); }
}
@keyframes orb3 {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%       { transform: translate(20px,30px) scale(1.05); }
}
@keyframes progressBar {
  from { width: 0; }
}
/* ── Futuristic keyframes ────────────────────────────── */
@keyframes neonSweep {
  0%   { left: -80%; }
  100% { left: 140%; }
}
@keyframes holoShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes cyberScan {
  0%   { top: -2px; opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
@keyframes neonPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}
@keyframes cornerGrow {
  from { width: 0; height: 0; opacity: 0; }
  to   { width: 16px; height: 16px; opacity: 1; }
}
@keyframes glitch {
  0%,100% { transform: translate(0); clip-path: none; }
  20%      { transform: translate(-2px, 1px); clip-path: inset(20% 0 60% 0); }
  40%      { transform: translate(2px, -1px); clip-path: inset(60% 0 10% 0); }
  60%      { transform: translate(-1px, 2px); clip-path: inset(40% 0 40% 0); }
  80%      { transform: translate(1px, -2px); clip-path: none; }
}
@keyframes navSlideDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.04); }
}

/* ── Scroll progress bar ─────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--yellow);
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px rgba(251,226,22,0.6);
}

/* ── Header entrance ─────────────────────────────────── */
header.site-header { animation: navSlideDown 0.5s var(--ease) forwards; }

/* ── Hero animations ─────────────────────────────────── */
.hero-content { animation: fadeInUp 0.9s var(--ease) 0.1s both; }

/* Animated gradient background on hero */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(251,226,22,0.04) 0%,
    transparent 40%,
    rgba(59,130,246,0.04) 100%);
  background-size: 300% 300%;
  animation: gradientShift 8s ease infinite;
  pointer-events: none;
  z-index: 0;
}

/* Hero floating orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
.hero-orb-1 {
  width: 400px; height: 400px;
  background: rgba(251,226,22,0.12);
  top: -10%; right: 5%;
  animation: orb1 12s ease-in-out infinite;
}
.hero-orb-2 {
  width: 300px; height: 300px;
  background: rgba(59,130,246,0.08);
  bottom: 5%; right: 25%;
  animation: orb2 16s ease-in-out infinite;
}
.hero-orb-3 {
  width: 200px; height: 200px;
  background: rgba(251,226,22,0.07);
  bottom: 20%; left: 10%;
  animation: orb3 10s ease-in-out infinite;
}

/* Animated badge in hero */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(251,226,22,0.15);
  border: 1px solid rgba(251,226,22,0.35);
  color: var(--yellow);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
  animation: badgePulse 3s ease-in-out 3; /* Kowalski: stop after 3 cycles */
}
.hero-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  position: relative;
  flex-shrink: 0;
}
.hero-badge-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--yellow);
  animation: pulseRing 1.8s ease-out 3; /* Kowalski: stop after 3 cycles */
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.5);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 2;
}
.hero-scroll-arrow {
  width: 24px; height: 24px;
  border-right: 2px solid rgba(255,255,255,0.5);
  border-bottom: 2px solid rgba(255,255,255,0.5);
  transform: rotate(45deg);
  animation: scrollBounce 1.5s ease-in-out infinite;
}

/* ── Section heading reveal — Krehel clip-path ───────── */
.reveal-heading {
  clip-path: inset(0 102% 0 0);
  transition: clip-path var(--dur-crawl) var(--reveal);
  will-change: clip-path;
}
.reveal-heading.visible {
  clip-path: inset(0 0% 0 0);
}

/* ── Yellow underline animated grow ─────────────────── */
.yellow-underline {
  transform-origin: left;
  transform: scaleX(0);
}
.yellow-underline.visible { transform: scaleX(1); }

/* ── Stagger delay classes ───────────────────────────── */
.delay-1 { transition-delay: 0.08s !important; }
.delay-2 { transition-delay: 0.16s !important; }
.delay-3 { transition-delay: 0.24s !important; }
.delay-4 { transition-delay: 0.32s !important; }
.delay-5 { transition-delay: 0.40s !important; }
.delay-6 { transition-delay: 0.48s !important; }

/* ── Animate-on-scroll — spring physics (Krehel) ─────── */
.anim-up    { opacity: 0; transform: translateY(28px); will-change: opacity, transform; }
.anim-left  { opacity: 0; transform: translateX(-28px); will-change: opacity, transform; }
.anim-right { opacity: 0; transform: translateX(28px); will-change: opacity, transform; }
.anim-scale { opacity: 0; transform: scale(0.92); will-change: opacity, transform; }
.anim-up, .anim-left, .anim-right, .anim-scale {
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--spring-soft);
}
.anim-up.visible, .anim-left.visible,
.anim-right.visible, .anim-scale.visible {
  opacity: 1;
  transform: none;
}

/* Keep old class working */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  will-change: opacity, transform;
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--spring-soft);
}
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* ── Button: no continuous animation, only on hover ─── */
.btn-yellow:hover {
  box-shadow:
    0 2px 0 #c4ae00,
    0 4px 0 rgba(0,0,0,0.15),
    0 12px 28px rgba(251,226,22,0.55),
    0 0 40px rgba(251,226,22,0.2);
}

/* ── Yellow-highlight: shimmer only on hover ────────── */
.yellow-highlight {
  position: relative;
  overflow: hidden;
}
.yellow-highlight::after {
  content: '';
  position: absolute;
  top: 0; left: -80px;
  width: 60px; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  opacity: 0;
  transition: none;
}
.yellow-highlight:hover::after {
  animation: shimmer 0.5s ease forwards;
}

/* ── Card 3D tilt (applied via JS) ──────────────────── */
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* stat-box hover handled above in futuristic block */

/* ── Social icons lift on hover ──────────────────────── */
.social { transition: background 0.28s var(--ease), border-color 0.28s var(--ease), color 0.28s var(--ease), transform 0.28s var(--ease), box-shadow 0.28s var(--ease); }
.social:hover { transform: translateY(-5px) scale(1.08); box-shadow: 0 8px 20px rgba(0,0,0,0.28); }

/* ── Program card content slide up on hover ─────────── */
.program-card .content {
  transition: transform 0.45s var(--ease);
  transform: translateY(8px);
}
.program-card:hover .content { transform: translateY(0); }

/* ── FAQ smooth height ───────────────────────────────── */
.faq-a {
  display: block !important;
  max-height: 0;
  overflow: hidden;
  padding: 0 28px;
  transition: max-height 0.4s var(--ease), padding 0.3s var(--ease);
}
.faq-item.open .faq-a {
  max-height: 300px;
  padding: 0 28px 22px;
}

/* ── Section separator ───────────────────────────────── */
.section-separator {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--yellow), transparent);
  opacity: 0.4;
  margin: 0;
  border: none;
}

/* ── Pill hover lift ─────────────────────────────────── */
.pill { transition: var(--transition), transform 0.25s var(--ease); }
.pill:hover { transform: translateY(-2px) scale(1.04); }

/* quote-card styles handled in futuristic block above */

/* ── Logo: Jhey glitch on hover ──────────────────────── */
/* logo hover handled above via .site-logo-img */

/* ── Hero bg: will-change for parallax ───────────────── */
.hero-bg, .page-hero-bg { will-change: transform; }

/* ── Orbs: will-change for continuous animation ──────── */
.hero-orb { will-change: transform; }

/* ── Program card bg: will-change ────────────────────── */
.program-card .bg { will-change: transform, filter; }

/* ── Buttons: spring easing ──────────────────────────── */
.btn-yellow, .btn-outline {
  will-change: transform, box-shadow;
  transition: transform var(--dur-fast) var(--spring),
              box-shadow var(--dur-base) var(--ease),
              background-color var(--dur-fast) var(--ease);
}

/* ── Yellow underline: spring grow ───────────────────── */
.yellow-underline {
  transition: transform var(--dur-slow) var(--spring-soft) 0.15s;
}

/* ── Card transitions: specific properties only ──────── */
.card {
  transition: border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-base) var(--ease),
              transform var(--dur-base) var(--spring-soft);
}
.stat-box {
  transition: transform var(--dur-base) var(--spring),
              box-shadow var(--dur-base) var(--ease),
              border-color var(--dur-fast) var(--ease);
}
.quote-card {
  transition: border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-base) var(--ease),
              transform var(--dur-base) var(--spring-soft),
              background-color var(--dur-fast) var(--ease);
}
.program-card {
  transition: transform var(--dur-base) var(--spring-soft),
              box-shadow var(--dur-base) var(--ease);
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  /* hero-search only — grid-2 & form-grid stay 2-col until 768 */
  .hero-search-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  /* Navigation */
  .nav, .search-link { display: none; }
  .mobile-toggle { display: flex; }
  .mobile-panel.open { display: block; }

  /* Spacing */
  .hero { padding: 90px 0 64px; }
  .section-white, .section-gray { padding: 56px 0; }
  .container, .container-wide { padding: 0 18px; }

  /* Grids */
  .grid-2, .grid-3, .grid-4, .footer-grid, .form-grid, .hero-search-grid {
    grid-template-columns: 1fr;
  }
  /* Override large inline gaps */
  .grid { gap: 24px !important; }

  /* Header */
  .header-inner { padding: 12px 0; }
  .site-logo-img { height: 40px; }

  /* Typography — override inline font sizes */
  h1 { font-size: clamp(28px, 7vw, 44px) !important; }
  h2 { font-size: clamp(22px, 5vw, 32px) !important; }
  .hero-content p,
  .section-white > .container > p,
  .section-gray  > .container > p { font-size: 15px !important; }

  /* Cards with fixed-height image thumbnails */
  .card div[style*="height:250px"] { height: 180px !important; }
  .card div[style*="height:200px"] { height: 160px !important; }

  /* Campus photo */
  img[alt="Campus L'ISSI"] { height: 220px !important; }

  /* Map */
  .map-embed { height: 240px !important; }

  /* Table — reduce font, keep horizontal scroll */
  .table-wrap table { font-size: 13px; }
  .table-wrap th, .table-wrap td { padding: 10px 12px; }

  /* Stats */
  .stat-value { font-size: 40px !important; }

  /* Form fields */
  .field-row { flex-direction: column; }
  input, select, textarea { font-size: 16px; } /* prevent iOS zoom */

  /* Hero cards */
  .hero-card { padding: 20px; }

  /* Dark banner grid */
  .dark-banner .grid-3 { grid-template-columns: 1fr; gap: 16px; }

  /* Footer */
  .footer-grid { gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-links { justify-content: center; flex-wrap: wrap; }
}

/* ── Small phones (≤ 480px) ─────────────────────────── */
@media (max-width: 480px) {
  .container, .container-wide { padding: 0 14px; }
  .section-white, .section-gray { padding: 40px 0; }
  .hero { padding: 80px 0 48px; }

  h1 { font-size: clamp(26px, 8vw, 36px) !important; }
  h2 { font-size: clamp(20px, 6vw, 28px) !important; }

  /* Stat boxes */
  .stat-value { font-size: 34px !important; }
  .grid-4 .stat-box { padding: 20px 12px; }

  /* Admission step circles */
  .card div[style*="width:80px;height:80px"] {
    width: 60px !important;
    height: 60px !important;
    font-size: 24px !important;
  }

  /* Map */
  .map-embed { height: 200px !important; }

  /* Campus photo */
  img[alt="Campus L'ISSI"] { height: 180px !important; }

  /* Program cards */
  .program-card { height: 240px; }

  /* Table */
  .table-wrap table { font-size: 12px; }
  .table-wrap th, .table-wrap td { padding: 8px; }

  /* FAQ */
  .faq-q { font-size: 14px; }

  /* Buttons */
  .btn-yellow, .btn-outline { padding: 12px 20px; font-size: 12px; }
}

/* ── CMS page-content (Quill-generated HTML) ─────────── */
.page-content { max-width: 800px; margin: 0 auto; font-size: 16px; line-height: 1.8; color: #374151 }
.page-content h1 { font-size: 2rem; font-weight: 800; color: var(--navy); margin: 1.5em 0 .5em }
.page-content h2 { font-size: 1.5rem; font-weight: 700; color: var(--navy); margin: 1.4em 0 .4em; padding-bottom: .3em; border-bottom: 2px solid var(--yellow) }
.page-content h3 { font-size: 1.2rem; font-weight: 700; color: var(--navy); margin: 1.2em 0 .3em }
.page-content p  { margin: 0 0 1em }
.page-content ul, .page-content ol { padding-left: 1.6em; margin: 0 0 1em }
.page-content li { margin-bottom: .35em }
.page-content blockquote { border-left: 4px solid var(--yellow); padding: 12px 20px; margin: 1.2em 0; background: #fffdf0; font-style: italic; color: #4B5563; border-radius: 0 8px 8px 0 }
.page-content pre { background: #1e2340; color: #e5e7eb; padding: 16px 20px; border-radius: 8px; overflow-x: auto; font-size: 14px; margin: 1em 0 }
.page-content code { background: #f3f4f6; padding: 2px 6px; border-radius: 4px; font-size: .9em; color: #dc2626 }
.page-content pre code { background: none; color: inherit; padding: 0 }
.page-content img { max-width: 100%; height: auto; border-radius: 10px; display: block; margin: 1.2em auto }
.page-content a { color: var(--navy); font-weight: 600; text-decoration: underline }
.page-content a:hover { color: #92750a }
.page-content table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 14px }
.page-content table th { background: var(--navy); color: var(--yellow); padding: 10px 14px; text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em }
.page-content table td { padding: 10px 14px; border-bottom: 1px solid #e9ecef }
.page-content table tr:hover td { background: #fafbfc }
.page-content hr { border: none; border-top: 2px solid #e9ecef; margin: 2em 0 }

/* Word break for long emails/URLs on all screen sizes */
p, li, td { overflow-wrap: break-word; word-break: break-word; }

@media (max-width: 480px) {
  /* Chatbot widget position on small screens */
  #issi-chat { bottom: 14px; right: 14px; }
  #issi-chat-toggle { width: 52px; height: 52px; }
}

/* ══════════════════════════════════════════════════════
   PREFERS-REDUCED-MOTION — Kowalski compliance
   All motion disabled for users who opt out.
   ══════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  /* Kill all keyframe animations */
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Keep layout transitions but instant */
  .faq-a { transition: none !important; }

  /* Freeze parallax */
  .hero-bg, .page-hero-bg { transform: none !important; }

  /* No floating orbs */
  .hero-orb { display: none; }

  /* No scroll indicator bounce */
  .hero-scroll { display: none; }

  /* Disable tilt (JS will still run but CSS override wins) */
  .card, .card-sm, .stat-box, .quote-card,
  .hero-card, .program-card {
    transform: none !important;
    transition: none !important;
  }

  /* Reveal all hidden elements immediately */
  .anim-up, .anim-left, .anim-right, .anim-scale,
  .animate-on-scroll, .reveal-heading {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
  }

  /* Disable progress bar animation */
  #scroll-progress { display: none; }
}

/* ══════════════════════════════════════════════════════
   CSS-ONLY CONCERNS (moved from JS per simplify audit)
   ══════════════════════════════════════════════════════ */

/* navCta: CSS media query replaces JS window.innerWidth check */
#navCta { display: none; }
@media (min-width: 769px) { #navCta { display: inline-flex !important; } }

/* news-meta date: CSS replaces JS inline style injection */
.news-meta span:first-child { color: var(--gray-dark); font-size: 13px; }

/* Button press: CSS class toggled by delegated pointerdown/up */
.btn-pressed {
  transform: scale(0.95) !important;
  box-shadow: none !important;
  transition: transform 80ms ease, box-shadow 80ms ease !important;
}

/* Cards: position + overflow set in CSS, not JS */
.card, .card-sm, .quote-card, .hero-card, .stat-box {
  position: relative;
  overflow: hidden;
}

/* Remove card tilt — pure CSS hover only, no JS movement */
.card:hover     { transform: translateY(-4px); }
.stat-box:hover { transform: translateY(-6px) scale(1.02); }
.quote-card:hover { transform: translateY(-6px); }
.hero-card:hover  { transform: translateY(-4px); }
.program-card:hover { transform: translateY(-8px) scale(1.01); }

/* ════════════════════════════════════════════════════════
   PREMIUM SECTIONS — Pourquoi ISSI & Chiffres
   ════════════════════════════════════════════════════════ */

/* ── Section badge ───────────────────────────────────── */
.section-badge {
  display: inline-block;
  background: rgba(251,226,22,0.12);
  border: 1px solid rgba(251,226,22,0.45);
  color: var(--navy);
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 5px 18px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.section-badge--light {
  background: rgba(251,226,22,0.15);
  border-color: rgba(251,226,22,0.5);
  color: var(--yellow);
}

/* ── Pourquoi section ────────────────────────────────── */
.section-why {
  background: var(--gray-light);
  padding: 100px 0;
}
.why-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}
.why-sub {
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray-dark);
  margin: 0;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
.why-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ── Why card ────────────────────────────────────────── */
.wcard {
  background: var(--white);
  border-radius: 14px;
  padding: 40px 36px 36px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  border-left: 3px solid transparent;
  /* reveal: hidden until .is-visible */
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity     0.6s var(--ease-out),
    transform   0.6s var(--spring-soft),
    box-shadow  var(--dur-slow) var(--ease),
    border-color var(--dur-base) var(--ease);
  transition-delay: var(--d, 0ms);
}
.wcard.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.wcard:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg);
  border-left-color: var(--yellow);
}

/* Ghost step number */
.wcard-num {
  position: absolute;
  top: -16px;
  right: 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 110px;
  font-weight: 900;
  line-height: 1;
  color: var(--navy);
  opacity: 0.035;
  pointer-events: none;
  user-select: none;
  transition: opacity var(--dur-slow) var(--ease);
}
.wcard:hover .wcard-num { opacity: 0.065; }

/* Icon box */
.wcard-icon {
  width: 54px;
  height: 54px;
  background: rgba(251,226,22,0.12);
  border: 1.5px solid rgba(251,226,22,0.4);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 22px;
  transition:
    background    var(--dur-base) var(--ease),
    border-color  var(--dur-base) var(--ease),
    transform     var(--dur-base) var(--spring);
}
.wcard:hover .wcard-icon {
  background: var(--yellow);
  border-color: var(--yellow);
  transform: scale(1.1) rotate(-4deg);
}

/* Text */
.wcard-title {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--navy);
  margin: 0 0 14px;
  line-height: 1.4;
}
.wcard-text {
  font-size: 14px;
  line-height: 1.85;
  color: var(--gray-dark);
  margin: 0;
}

/* Bottom slide-in accent bar */
.wcard-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--yellow), var(--yellow-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}
.wcard:hover .wcard-bar { transform: scaleX(1); }

/* ── Counters section ────────────────────────────────── */
.section-counters {
  background: var(--navy);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
/* Dot-grid texture */
.section-counters::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}
/* Yellow glow top line */
.section-counters::after {
  content: '';
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--yellow), transparent);
  opacity: 0.55;
  pointer-events: none;
}
.ctr-head {
  text-align: center;
  margin-bottom: 52px;
  position: relative;
  z-index: 1;
}
.ctr-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  z-index: 1;
}
.ctr-item {
  text-align: center;
  padding: 20px 24px;
  border-left: 1px solid rgba(255,255,255,0.08);
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity   0.55s var(--ease-out),
    transform 0.55s var(--spring-soft);
}
.ctr-item:first-child { border-left: none; }
.ctr-item.is-visible  { opacity: 1; transform: translateY(0); }

.ctr-num {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.6rem, 4.5vw, 3.8rem);
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  filter: drop-shadow(0 0 16px rgba(251,226,22,0.35));
}
.ctr-lbl {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.45);
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  .why-cards { grid-template-columns: 1fr; gap: 16px; }
  .wcard { padding: 32px 24px 28px; }
  .wcard-num { font-size: 80px; }
  .ctr-row { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .ctr-item { padding: 28px 16px; }
  .ctr-item:nth-child(1) { border-left: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .ctr-item:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .ctr-item:nth-child(3) { border-left: none; }
}
@media (max-width: 480px) {
  .section-why { padding: 72px 0; }
  .why-head { margin-bottom: 40px; }
  .why-sub { font-size: 15px; }
  .section-counters { padding: 60px 0; }
  .ctr-num { font-size: 2.4rem; }
}

/* ── View Transitions (client-side router) ───────────── */
::view-transition-old(root) {
  animation: 220ms ease both vtFadeOut;
}
::view-transition-new(root) {
  animation: 280ms ease both vtFadeIn;
}
@keyframes vtFadeOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-8px); }
}
@keyframes vtFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════
   DESIGN POLISH v5
   ══════════════════════════════════════════════════════ */

/* ── Branded text selection ──────────────────────────── */
::selection      { background: var(--yellow); color: var(--navy); }
::-moz-selection { background: var(--yellow); color: var(--navy); }

/* ── Accessible focus ring ───────────────────────────── */
:focus-visible {
  outline: 2.5px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 4px;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none; /* handled by border + box-shadow already */
}

/* ── Scroll margin — content never hides under sticky header ── */
[id] { scroll-margin-top: 96px; }

/* ── Mobile nav panel — smooth slide-down ───────────── */
@keyframes mobileNavIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mobile-panel.open {
  animation: mobileNavIn 0.32s var(--spring-soft) both;
}
/* Tighter link style + hover state */
.mobile-panel a {
  padding: 13px 4px;
  border-radius: 6px;
  transition: background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              padding-left var(--dur-fast) var(--ease);
}
.mobile-panel a:hover,
.mobile-panel a:focus-visible {
  color: var(--navy);
  background: rgba(251,226,22,0.09);
  padding-left: 10px;
}

/* ── Touch devices — disable hover transforms to prevent stuck states ── */
@media (hover: none) {
  .card:hover,
  .wcard:hover,
  .stat-box:hover,
  .quote-card:hover,
  .hero-card:hover,
  .program-card:hover { transform: none !important; }
  .program-card:hover .content { transform: translateY(8px); }
  .btn-yellow:hover,
  .btn-outline:hover  { transform: none; box-shadow: none; }
  .pill:hover         { transform: none; }
  .social:hover       { transform: none; }
}

/* ── Responsive grid-2 / form-grid — collapse at 768px not 1024px ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .grid-2  { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .form-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* ── Section padding — tighter on mid tablets ────────── */
@media (max-width: 900px) {
  .section-white, .section-gray { padding: 72px 0; }
  .section-why                   { padding: 72px 0; }
  .dark-banner                   { padding: 80px 0; }
}

/* ── Button — full width on small screens ────────────── */
@media (max-width: 480px) {
  .btn-yellow, .btn-outline {
    width: 100%;
    justify-content: center;
  }
  /* Except CTA groups that use inline-block side by side */
  .center .btn-yellow,
  .center .btn-outline {
    width: auto;
  }
}

/* ── Yellow underline — slightly thicker & more visible ─ */
.yellow-underline {
  height: 5px;
  border-radius: 3px;
}

/* ── Card — slightly more rounded for modern feel ──────── */
.card, .card-sm, .hero-card, .faq-item {
  border-radius: 12px;
}

/* ── Stats / counter boxes — more rounded ──────────────── */
.stat-box, .quote-card, .program-card {
  border-radius: 12px;
}

/* ── Badge — slightly taller for readability ──────────── */
.badge {
  padding: 4px 12px;
  font-size: 11.5px;
  letter-spacing: 0.05em;
}
.hero-badge { border-radius: 999px; }

/* ── Smooth image reveal on lazy-load ───────────────────── */
img[loading="lazy"] {
  transition: opacity 0.4s var(--ease-out);
}
img[loading="lazy"].loaded { opacity: 1; }

/* ── Footer — better list reset ────────────────────────── */
footer ul   { padding-left: 0; list-style: none; }
footer li   { padding-left: 0; }
footer li::marker { content: ''; }
footer a    { transition: color var(--dur-fast) var(--ease),
                           letter-spacing var(--dur-fast) var(--ease); }
footer a:hover { letter-spacing: 0.01em; }

/* ── FAQ — rounder + better hover ──────────────────────── */
.faq-item  { border-radius: 12px; }
.faq-q     {
  border-radius: 12px;
  transition: background var(--dur-fast) var(--ease);
}
.faq-q:hover { background: rgba(251,226,22,0.04); }
.faq-item.open .faq-q { background: rgba(251,226,22,0.04); border-radius: 12px 12px 0 0; }

/* ── News items — remove left border jump on mobile ──────── */
@media (max-width: 480px) {
  .news-item:hover { transform: none; padding-left: 16px; }
}

/* ── Alert — slightly rounder ────────────────────────────── */
.alert { border-radius: 12px; }

/* ── Table — striped rows for readability ────────────────── */
tbody tr:nth-child(even) td { background: var(--gray-light); }
tbody tr:hover td { background: rgba(251,226,22,0.06) !important; }

/* ── Link underline offset for body copy ─────────────────── */
p a, li a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(13,15,26,0.25);
  transition: text-decoration-color var(--dur-fast) var(--ease);
}
p a:hover, li a:hover {
  text-decoration-color: var(--navy);
}

/* ── Pill — tighter focus ring ───────────────────────────── */
.pill:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

/* ── Scroll progress — slightly thicker ─────────────────── */
#scroll-progress { height: 3px; }

/* ── Why-cards responsive ────────────────────────────────── */
@media (max-width: 900px) {
  .why-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .why-cards { grid-template-columns: 1fr; }
}

/* ── Counters grid responsive ───────────────────────────── */
@media (max-width: 600px) {
  .ctr-row { grid-template-columns: repeat(2, 1fr); }
}

/* ── Hero scroll indicator — hide on short viewports ─────── */
@media (max-height: 700px) {
  .hero-scroll { display: none; }
}

/* ── Smooth transition for header background on scroll ──── */
header.site-header {
  transition: box-shadow var(--dur-base) var(--ease),
              background-color var(--dur-base) var(--ease),
              backdrop-filter var(--dur-base) var(--ease);
}

/* ── Section separator — more opaque ─────────────────────── */
.section-separator { opacity: 0.55; }

/* ── Métier cards (formations page) ─────────────────────── */
/* Context overrides */
.section-gray .metiers-wrap { background: var(--white); }
.section-gray .metier-card  { background: var(--gray-light); }

.metiers-wrap {
  margin-top: 52px;
  padding: 36px 40px;
  background: rgba(10,15,30,.028);
  border: 1px solid var(--gray-mid);
  border-radius: 14px;
}
.metiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}
.metier-card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-top: 3px solid var(--navy);
  border-radius: 12px;
  padding: 22px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition:
    box-shadow var(--dur-base) var(--ease),
    transform  var(--dur-base) var(--spring-soft),
    border-top-color var(--dur-fast) var(--ease);
}
.metier-card:hover {
  box-shadow: 0 8px 28px rgba(13,15,26,.1);
  transform: translateY(-4px);
  border-top-color: var(--yellow);
}
@media (hover: none) { .metier-card:hover { transform: none; } }

.metier-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.metier-icon { font-size: 26px; line-height: 1; }
.metier-badge {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  white-space: nowrap;
}
.mb-yellow { background: var(--yellow);   color: var(--navy); }
.mb-navy   { background: var(--navy);     color: var(--yellow); }

.metier-title {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
  line-height: 1.3;
}
.metier-mission {
  font-size: 13px;
  color: var(--gray-dark);
  line-height: 1.7;
  margin: 0;
}
.metier-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.metier-skill {
  font-size: 11px;
  font-weight: 700;
  color: var(--navy);
  background: rgba(10,15,30,.055);
  border: 1px solid var(--gray-mid);
  border-radius: 4px;
  padding: 2px 8px;
}
.metier-evo {
  border-top: 1px solid var(--gray-mid);
  padding-top: 12px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--gray-dark);
  margin-top: auto;
}
.metier-evo strong {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
  margin-bottom: 4px;
}

@media (max-width: 768px) {
  .metiers-wrap  { padding: 24px 20px; margin-top: 36px; }
  .metiers-grid  { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 480px) {
  .metiers-grid  { grid-template-columns: 1fr; }
  .metier-card   { padding: 18px 16px 14px; }
}

/* ══════════════════════════════════════════════════════
   FORMATIONS REDESIGN — layout system
   ══════════════════════════════════════════════════════ */

/* ── Quick nav ───────────────────────────────────────── */
.fm-quicknav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}
.fm-qn-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  background: var(--white);
  border: 1.5px solid var(--gray-mid);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  transition: border-color var(--dur-fast) var(--ease),
              background  var(--dur-fast) var(--ease),
              transform   var(--dur-fast) var(--spring),
              box-shadow  var(--dur-base) var(--ease);
}
.fm-qn-pill:hover {
  border-color: var(--yellow);
  background: rgba(251,226,22,.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(251,226,22,.2);
}
.section-gray .fm-qn-pill { background: var(--gray-light); }

/* ── Formation badge ─────────────────────────────────── */
.fm-badge {
  display: inline-block;
  background: var(--navy);
  color: var(--yellow);
  font-family: 'Outfit', sans-serif;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* ── Formation title ─────────────────────────────────── */
.fm-title { margin-bottom: 0; }
.fm-desc {
  font-size: 17px;
  line-height: 1.8;
  color: var(--gray-dark);
  max-width: 680px;
  margin: 0;
}

/* ── Formation stats row ─────────────────────────────── */
.fm-stats {
  display: flex;
  gap: 0;
  margin-top: 32px;
  border: 1.5px solid var(--gray-mid);
  border-radius: 12px;
  overflow: hidden;
  max-width: 420px;
}
.fm-stat {
  flex: 1;
  text-align: center;
  padding: 16px 12px;
  border-right: 1.5px solid var(--gray-mid);
  background: var(--white);
}
.fm-stat:last-child { border-right: none; }
.section-gray .fm-stat { background: var(--gray-light); }
.fm-stat-num {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 4px;
}
.fm-stat-lbl {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-dark);
}

/* ── Formation head (2-col: content + CTA card) ──────── */
.fm-head {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  align-items: start;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--gray-mid);
  margin-bottom: 56px;
}
.fm-head-reverse {
  grid-template-columns: 340px 1fr;
}
.fm-head-reverse .fm-head-cta { order: -1; }

/* ── CTA card ────────────────────────────────────────── */
.fm-cta-card {
  background: var(--white);
  border: 1.5px solid var(--gray-mid);
  border-top: 4px solid var(--yellow);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 108px;
}
.section-gray .fm-cta-card { background: var(--white); }
.fm-cta-card--dark {
  background: var(--navy);
  border-color: rgba(251,226,22,.25);
  border-top-color: var(--yellow);
}
.fm-cta-icon {
  font-size: 36px;
  margin-bottom: 16px;
  line-height: 1;
}
.fm-cta-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 16px;
}
.fm-cta-card--dark .fm-cta-title { color: var(--yellow); }
.fm-cta-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.fm-cta-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.5;
}
.fm-cta-list li::before {
  content: '›';
  color: var(--yellow);
  font-weight: 900;
  font-size: 16px;
  flex-shrink: 0;
  line-height: 1.3;
}
.fm-cta-list--light li { color: rgba(255,255,255,.82); }
.fm-cta-list--light li::before { color: var(--yellow); }

/* ── Formation body (modules + programme) ────────────── */
.fm-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

/* ── Block title ─────────────────────────────────────── */
.fm-block-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-dark);
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gray-mid);
}

/* ── Modules grid ────────────────────────────────────── */
.fm-modules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.fm-module-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  background: var(--gray-light);
  border-radius: 8px;
  border-left: 3px solid var(--yellow);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.45;
  transition: background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}
.fm-module-item:hover {
  background: rgba(251,226,22,.1);
}
.section-gray .fm-module-item { background: var(--white); }
.section-gray .fm-module-item:hover { background: rgba(251,226,22,.1); }
.fm-mod-arrow {
  color: var(--yellow);
  font-weight: 900;
  font-size: 16px;
  flex-shrink: 0;
  line-height: 1.3;
}

/* ── Débouchés grid ──────────────────────────────────── */
.fm-outputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}
.fm-output-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.5;
  padding: 6px 0;
}
.fm-check {
  color: var(--yellow);
  font-weight: 900;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
  background: rgba(251,226,22,.15);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

/* ── Timeline (programme 3 ans) ──────────────────────── */
.fm-timeline {
  position: relative;
  padding-left: 48px;
}
/* Vertical line */
.fm-timeline::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 6px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--navy) 0%, var(--gray-mid) 100%);
  border-radius: 1px;
}
.fm-tl-item {
  position: relative;
  padding-bottom: 36px;
}
.fm-tl-last { padding-bottom: 0; }
/* Dot */
.fm-tl-dot {
  position: absolute;
  left: -48px;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  border: 3px solid var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: transform var(--dur-base) var(--spring),
              box-shadow var(--dur-base) var(--ease);
}
.fm-tl-dot span {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 900;
  color: var(--yellow);
  letter-spacing: 0.03em;
}
.fm-tl-dot-gold {
  background: var(--yellow);
  border-color: var(--yellow);
}
.fm-tl-dot-gold span { color: var(--navy); }
.fm-tl-item:hover .fm-tl-dot {
  transform: scale(1.15);
  box-shadow: 0 0 0 4px rgba(251,226,22,.2), 0 4px 12px rgba(0,0,0,.15);
}
/* Content */
.fm-tl-year {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.2;
  padding-top: 6px;
}
.fm-tl-sem {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-dark);
  margin-bottom: 8px;
}
.fm-tl-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--gray-dark);
  margin: 0;
}
.fm-tl-list {
  list-style: none;
  padding: 0;
  margin: 0 0 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 12px;
}
.fm-tl-list li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 12.5px;
  color: var(--gray-dark);
  line-height: 1.5;
  font-weight: 500;
}
.fm-tl-list li::before {
  content: '›';
  color: var(--navy);
  font-weight: 900;
  flex-shrink: 0;
  font-size: 13px;
  line-height: 1.4;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .fm-head { grid-template-columns: 1fr 300px; gap: 36px; }
  .fm-head-reverse { grid-template-columns: 300px 1fr; }
  .fm-body { grid-template-columns: 1fr 1fr; gap: 36px; }
  .fm-cta-card { position: static; }
}
@media (max-width: 768px) {
  .fm-head,
  .fm-head-reverse { grid-template-columns: 1fr; gap: 28px; }
  .fm-head-reverse .fm-head-cta { order: 0; }
  .fm-body { grid-template-columns: 1fr; gap: 40px; }
  .fm-modules-grid { grid-template-columns: 1fr; }
  .fm-outputs { grid-template-columns: 1fr; }
  .fm-tl-list { grid-template-columns: 1fr; }
  .fm-stats { max-width: 100%; }
  .fm-head { padding-bottom: 36px; margin-bottom: 36px; }
  .fm-title { font-size: clamp(1.5rem, 6vw, 2.2rem) !important; }
}
@media (max-width: 480px) {
  .fm-timeline { padding-left: 38px; }
  .fm-timeline::before { left: 13px; }
  .fm-tl-dot { left: -38px; width: 28px; height: 28px; }
  .fm-tl-dot span { font-size: 9px; }
  .fm-cta-card { padding: 24px 20px; }
}

/* ── page-intro — max-width on mobile ─────────────────── */
@media (max-width: 768px) {
  .page-intro { max-width: 100%; font-size: 15px; }
}

/* ── Logo loading — prevent layout shift ────────────────── */
.site-logo-img { aspect-ratio: auto; }

/* ── Section heading — more breathing room below ───────── */
h2 + .yellow-underline { margin-top: 10px; }

/* ══════════════════════════════════════════════════════════
   FORMATIONS PREMIUM — fmp-* system
   ══════════════════════════════════════════════════════════ */

/* ── Keyframes ──────────────────────────────────────────── */
@keyframes fmp-orb1 {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(60px,-40px) scale(1.12); }
  66%      { transform: translate(-30px,50px) scale(0.9); }
}
@keyframes fmp-orb2 {
  0%,100% { transform: translate(0,0) scale(1); }
  40%      { transform: translate(-70px,30px) scale(1.08); }
  70%      { transform: translate(40px,-60px) scale(0.95); }
}
@keyframes fmp-orb3 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(30px,60px) scale(1.1); }
}
@keyframes fmp-hc-in {
  from { opacity:0; transform: translateY(28px) scale(.97); }
  to   { opacity:1; transform: translateY(0)     scale(1); }
}
@keyframes fmp-scroll-bounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}
@keyframes fmp-badge-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(251,226,22,.4); }
  50%      { box-shadow: 0 0 0 8px rgba(251,226,22,0); }
}
@keyframes fmp-line-grow {
  from { height: 0; }
  to   { height: 100%; }
}

/* ── Base wrapper ───────────────────────────────────────── */
.fmp { overflow-x: hidden; }

/* ── Reveal animation ───────────────────────────────────── */
.fmp-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity   0.65s var(--ease),
    transform 0.65s var(--spring-soft);
  transition-delay: var(--d, 0s);
}
.fmp-visible {
  opacity: 1 !important;
  transform: none !important;
}

/* ══════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════ */
.fmp-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
  padding: 140px 0 80px;
}

.fmp-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(251,226,22,.07) 0%, transparent 60%),
    linear-gradient(135deg, #0b0f1e 0%, #0d1428 50%, #10162e 100%);
}

/* Orbs */
.fmp-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  will-change: transform;
}
.fmp-orb1 {
  width: 600px; height: 600px;
  background: rgba(251,226,22,.055);
  top: -150px; right: -100px;
  animation: fmp-orb1 18s ease-in-out infinite;
}
.fmp-orb2 {
  width: 400px; height: 400px;
  background: rgba(255,255,255,.025);
  bottom: -80px; left: 15%;
  animation: fmp-orb2 22s ease-in-out infinite;
}
.fmp-orb3 {
  width: 300px; height: 300px;
  background: rgba(251,226,22,.04);
  top: 40%; left: 40%;
  animation: fmp-orb3 28s ease-in-out infinite;
}

/* Grid overlay */
.fmp-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
}

/* Inner layout */
.fmp-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: center;
}

/* Text side */
.fmp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(251,226,22,.12);
  border: 1px solid rgba(251,226,22,.3);
  color: var(--yellow);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
  animation: fmp-badge-pulse 3s ease-in-out infinite;
}
.fmp-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  animation: fmp-badge-pulse 1.5s ease-in-out infinite;
}
.fmp-hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.fmp-hero-title br { display: block; }
.fmp-hero-sub {
  font-size: clamp(15px, 1.6vw, 17px);
  color: rgba(255,255,255,.65);
  line-height: 1.85;
  margin: 0 0 36px;
  max-width: 540px;
}
.fmp-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero formation cards */
.fmp-hero-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fmp-hero-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    background var(--dur-base) var(--ease),
    border-color var(--dur-base) var(--ease),
    transform   var(--dur-base) var(--spring);
  opacity: 0;
}
.fmp-hero-card.fmp-hc-animate { animation: fmp-hc-in 0.7s var(--spring-soft) forwards; }
.fmp-hero-card:hover {
  background: rgba(251,226,22,.1);
  border-color: rgba(251,226,22,.4);
  transform: translateX(6px);
}
.fmp-hero-card.fmp-hc-active {
  background: rgba(251,226,22,.12);
  border-color: rgba(251,226,22,.5);
}
.fmp-hc-num {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 900;
  color: var(--yellow);
  letter-spacing: 0.06em;
  opacity: .7;
  flex-shrink: 0;
  width: 24px;
}
.fmp-hc-icon { font-size: 22px; flex-shrink: 0; }
.fmp-hc-name {
  flex: 1;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}
.fmp-hc-tag {
  font-size: 11px;
  color: rgba(255,255,255,.45);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.fmp-hc-arrow {
  color: var(--yellow);
  font-size: 16px;
  opacity: .6;
  flex-shrink: 0;
  transition: transform var(--dur-fast) var(--spring), opacity var(--dur-fast) var(--ease);
}
.fmp-hero-card:hover .fmp-hc-arrow { transform: translateX(4px); opacity: 1; }

/* Scroll hint */
.fmp-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.35);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
}
.fmp-scroll-arrow {
  width: 2px; height: 32px;
  background: linear-gradient(to bottom, rgba(255,255,255,.35), transparent);
  border-radius: 1px;
  animation: fmp-scroll-bounce 2s ease-in-out infinite;
}

/* ══════════════════════════════════════════════════════════
   STATS BAR
   ══════════════════════════════════════════════════════════ */
.fmp-statsbar {
  background: var(--yellow);
  padding: 0;
  overflow: hidden;
}
.fmp-statsbar-inner {
  display: flex;
  align-items: stretch;
}
.fmp-sbar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 16px;
  text-align: center;
}
.fmp-sbar-item strong {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
  display: block;
}
.fmp-sbar-item span {
  font-size: 12px;
  font-weight: 700;
  color: rgba(10,15,30,.65);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.fmp-sbar-sep {
  width: 1px;
  background: rgba(10,15,30,.15);
  align-self: stretch;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   OVERVIEW SECTION
   ══════════════════════════════════════════════════════════ */
.fmp-overview {
  background: var(--white);
  padding: 100px 0 80px;
}
.fmp-section-head {
  text-align: center;
  margin-bottom: 64px;
}
.fmp-section-head h2 { margin-bottom: 0; }
.fmp-section-sub {
  font-size: 16px;
  color: var(--gray-dark);
  line-height: 1.8;
  max-width: 580px;
  margin: 16px auto 0;
}
.fmp-ov-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.fmp-ov-card {
  position: relative;
  background: var(--white);
  border: 1.5px solid var(--gray-mid);
  border-radius: 20px;
  padding: 36px 32px 32px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition:
    box-shadow var(--dur-base) var(--ease),
    transform  var(--dur-base) var(--spring),
    border-color var(--dur-base) var(--ease);
}
.fmp-ov-card:hover {
  box-shadow: 0 16px 48px rgba(10,15,30,.1);
  transform: translateY(-6px);
  border-color: var(--yellow);
}
.fmp-ov-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--yellow) 100%);
  border-radius: 20px 20px 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--spring-soft);
}
.fmp-ov-card:hover .fmp-ov-accent { transform: scaleX(1); }
.fmp-ov-ghost {
  position: absolute;
  top: 16px; right: 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 80px;
  font-weight: 900;
  color: rgba(10,15,30,.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.03em;
}
.fmp-ov-icon { font-size: 36px; line-height: 1; }
.fmp-ov-title {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
  line-height: 1.2;
}
.fmp-ov-desc {
  font-size: 14.5px;
  color: var(--gray-dark);
  line-height: 1.75;
  margin: 0;
}
.fmp-ov-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fmp-ov-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.5;
}
.fmp-ov-bullets li::before {
  content: '›';
  color: var(--yellow);
  font-weight: 900;
  font-size: 15px;
  flex-shrink: 0;
  line-height: 1.3;
}
.fmp-ov-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.fmp-ov-tags span {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  background: rgba(10,15,30,.06);
  border: 1px solid var(--gray-mid);
  border-radius: 999px;
  color: var(--navy);
  letter-spacing: 0.03em;
}
.fmp-ov-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--dur-fast) var(--spring), color var(--dur-fast) var(--ease);
}
.fmp-ov-card:hover .fmp-ov-link { color: var(--yellow); gap: 10px; }
.fmp-ov-arrow { transition: transform var(--dur-fast) var(--spring); }

/* ══════════════════════════════════════════════════════════
   FORMATION SECTION
   ══════════════════════════════════════════════════════════ */
.fmp-formation { padding: 0; }
.fmp-sec-white { background: var(--white); }
.fmp-sec-gray  { background: var(--gray-light); }

/* Section identifier header */
.fmp-sec-id {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--gray-mid);
}
.fmp-sec-id-inner {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}
.fmp-sec-id-num {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(80px, 12vw, 140px);
  font-weight: 900;
  color: rgba(10,15,30,.05);
  line-height: 0.85;
  letter-spacing: -0.04em;
  flex-shrink: 0;
  user-select: none;
  margin-top: -10px;
}
.fmp-sec-id-content { flex: 1; padding-top: 8px; }
.fmp-sec-domain {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--yellow-dark, #c49b00);
  margin-bottom: 8px;
}
.fmp-sec-gray .fmp-sec-domain { color: var(--navy); }
.fmp-sec-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: var(--navy);
  margin: 0 0 14px;
  line-height: 1.1;
}
.fmp-sec-desc {
  font-size: 16px;
  color: var(--gray-dark);
  line-height: 1.8;
  max-width: 680px;
  margin: 0 0 28px;
}
.fmp-sec-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.fmp-ss-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 72px;
}
.fmp-ss-n {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
}
.fmp-ss-l {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-dark);
  margin-top: 4px;
}

/* Layout grid */
.fmp-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: start;
  padding: 64px 0 72px;
}
.fmp-layout-rev {
  grid-template-columns: 300px 1fr;
}
.fmp-layout-rev .fmp-aside { order: -1; }

/* Main content */
.fmp-main { display: flex; flex-direction: column; gap: 48px; }
.fmp-block { display: flex; flex-direction: column; gap: 20px; }
.fmp-block-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gray-dark);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gray-mid);
  margin-bottom: 4px;
}

/* Modules grid */
.fmp-mods-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.fmp-mod-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: var(--gray-light);
  border-radius: 10px;
  border-left: 3px solid var(--yellow);
  transition: background var(--dur-fast) var(--ease);
}
.fmp-sec-gray .fmp-mod-item { background: var(--white); }
.fmp-mod-item:hover { background: rgba(251,226,22,.1); }
.fmp-mod-n {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 900;
  color: var(--yellow);
  opacity: .6;
  flex-shrink: 0;
  width: 22px;
  margin-top: 1px;
}
.fmp-mod-text {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.45;
}

/* Programme timeline */
.fmp-prog {
  position: relative;
  padding-left: 52px;
}
.fmp-prog-line {
  position: absolute;
  left: 18px;
  top: 18px;
  width: 2px;
  height: 0;
  background: linear-gradient(to bottom, var(--navy) 0%, var(--yellow) 60%, var(--gray-mid) 100%);
  border-radius: 1px;
  transition: height 1.2s var(--ease);
}
.fmp-prog-line.fmp-line-drawn { height: calc(100% - 18px); }
.fmp-prog-item {
  position: relative;
  padding-bottom: 36px;
  display: flex;
  gap: 0;
  align-items: flex-start;
}
.fmp-prog-last { padding-bottom: 0; }
.fmp-prog-dot {
  position: absolute;
  left: -52px;
  top: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  flex-shrink: 0;
  transition: transform var(--dur-base) var(--spring), box-shadow var(--dur-base) var(--ease);
}
.fmp-sec-gray .fmp-prog-dot { border-color: var(--gray-light); }
.fmp-prog-dot span {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 900;
  color: var(--yellow);
  letter-spacing: 0.03em;
}
.fmp-prog-dot-gold {
  background: var(--yellow);
  box-shadow: 0 0 0 2px var(--yellow);
}
.fmp-prog-dot-gold span { color: var(--navy); }
.fmp-prog-item:hover .fmp-prog-dot {
  transform: scale(1.15);
  box-shadow: 0 0 0 4px rgba(251,226,22,.25), 0 4px 12px rgba(0,0,0,.12);
}
.fmp-prog-body { flex: 1; }
.fmp-prog-year {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
  padding-top: 8px;
  line-height: 1.2;
}
.fmp-prog-sem {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-dark);
  margin: 10px 0 6px;
}
.fmp-prog-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--gray-dark);
  margin: 0;
}
.fmp-prog-list {
  list-style: none;
  padding: 0;
  margin: 0 0 6px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 16px;
}
.fmp-prog-list li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 12.5px;
  color: var(--gray-dark);
  line-height: 1.5;
  font-weight: 500;
}
.fmp-prog-list li::before {
  content: '›';
  color: var(--navy);
  font-weight: 900;
  flex-shrink: 0;
  font-size: 13px;
  line-height: 1.4;
}

/* Débouchés grid */
.fmp-outputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.fmp-output-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.5;
  padding: 5px 0;
}
.fmp-output-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: rgba(251,226,22,.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: var(--navy);
  margin-top: 1px;
}

/* Sidebar / Aside */
.fmp-aside { align-self: start; }
.fmp-cta-sticky {
  position: sticky;
  top: 108px;
  background: var(--white);
  border: 1.5px solid var(--gray-mid);
  border-top: 4px solid var(--yellow);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.fmp-sec-gray .fmp-cta-sticky { background: var(--white); }
.fmp-cta-section { padding: 24px 24px 20px; }
.fmp-cta-icon-wrap {
  font-size: 32px;
  margin-bottom: 12px;
  line-height: 1;
}
.fmp-cta-h {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 14px;
  line-height: 1.3;
}
.fmp-cta-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fmp-cta-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.5;
}
.fmp-cta-list li::before {
  content: '›';
  color: var(--yellow);
  font-weight: 900;
  font-size: 15px;
  flex-shrink: 0;
  line-height: 1.35;
}
.fmp-cta-note {
  font-size: 13px;
  color: var(--gray-dark);
  line-height: 1.65;
  margin: 0 0 16px;
}
.fmp-cta-divider {
  height: 1px;
  background: var(--gray-mid);
  margin: 0 24px;
}
.fmp-cta-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: rgba(10,15,30,.03);
  border-top: 1px solid var(--gray-mid);
}
.fmp-cta-badge-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  flex-shrink: 0;
}
.fmp-cta-badge strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 2px;
}
.fmp-cta-badge span {
  font-size: 11px;
  color: var(--gray-dark);
}

/* ══════════════════════════════════════════════════════════
   MÉTIERS CARDS (new fmp-mc system)
   ══════════════════════════════════════════════════════════ */
.fmp-metiers-outer {
  padding: 48px 0 72px;
  background: inherit;
  border-top: 1px solid var(--gray-mid);
}
.fmp-metiers-head {
  margin-bottom: 32px;
}
.fmp-metiers-sub {
  font-size: 15px;
  color: var(--gray-dark);
  line-height: 1.75;
  margin: 10px 0 0;
}
.fmp-metiers-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

/* Individual métier card */
.fmp-mc {
  background: var(--white);
  border: 1.5px solid var(--gray-mid);
  border-top: 3px solid var(--navy);
  border-radius: 14px;
  padding: 24px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  transition:
    box-shadow var(--dur-base) var(--ease),
    transform  var(--dur-base) var(--spring),
    border-top-color var(--dur-fast) var(--ease),
    opacity 0.55s var(--ease);
}
.fmp-mc.fmp-visible {
  opacity: 1;
  transform: none;
}
.fmp-mc:hover {
  box-shadow: 0 10px 32px rgba(10,15,30,.1);
  transform: translateY(-5px);
  border-top-color: var(--yellow);
}
@media (hover: none) { .fmp-mc:hover { transform: none; } }
.fmp-sec-gray .fmp-mc { background: var(--white); }
.fmp-mc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.fmp-mc-icon { font-size: 28px; line-height: 1; }
.fmp-mc-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  white-space: nowrap;
}
.mb-yellow { background: var(--yellow); color: var(--navy); }
.mb-navy   { background: var(--navy);   color: var(--yellow); }
.fmp-mc-title {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
  line-height: 1.3;
}
.fmp-mc-mission {
  font-size: 13px;
  color: var(--gray-dark);
  line-height: 1.7;
  margin: 0;
  flex: 1;
}
.fmp-mc-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.fmp-mc-skill {
  font-size: 11px;
  font-weight: 700;
  color: var(--navy);
  background: rgba(10,15,30,.055);
  border: 1px solid var(--gray-mid);
  border-radius: 4px;
  padding: 2px 8px;
}
.fmp-mc-evo {
  border-top: 1px solid var(--gray-mid);
  padding-top: 12px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--gray-dark);
  margin-top: auto;
}
.fmp-mc-evo-label {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
  margin-bottom: 4px;
}

/* ══════════════════════════════════════════════════════════
   PÉDAGOGIE STRIP
   ══════════════════════════════════════════════════════════ */
.fmp-peda {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
  background: var(--navy);
}
.fmp-peda-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 70% at 10% 50%, rgba(251,226,22,.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 90% 20%, rgba(255,255,255,.03) 0%, transparent 50%);
}
.fmp-peda-head {
  text-align: center;
  margin-bottom: 64px;
  position: relative;
  z-index: 1;
}
.fmp-peda-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.fmp-peda-item {
  text-align: center;
  padding: 36px 24px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background var(--dur-base) var(--ease), transform var(--dur-base) var(--spring);
}
.fmp-peda-item:hover {
  background: rgba(251,226,22,.08);
  transform: translateY(-4px);
}
@media (hover: none) { .fmp-peda-item:hover { transform: none; } }
.fmp-peda-icon {
  font-size: 40px;
  margin-bottom: 20px;
  line-height: 1;
  display: block;
}
.fmp-peda-item h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.3;
}
.fmp-peda-item p {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  line-height: 1.75;
  margin: 0;
}

/* ══════════════════════════════════════════════════════════
   COMPARE SECTION
   ══════════════════════════════════════════════════════════ */
.fmp-compare { padding: 100px 0; }

/* ══════════════════════════════════════════════════════════
   FINAL CTA
   ══════════════════════════════════════════════════════════ */
.fmp-final-cta {
  position: relative;
  padding: 120px 0;
  background: var(--navy);
  overflow: hidden;
}
.fmp-final-cta-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(251,226,22,.07) 0%, transparent 60%),
    linear-gradient(135deg, #0b0f1e 0%, #101830 100%);
}
.fmp-final-cta-orb1,
.fmp-final-cta-orb2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}
.fmp-final-cta-orb1 {
  width: 500px; height: 500px;
  background: rgba(251,226,22,.05);
  top: -150px; left: -100px;
  animation: fmp-orb1 20s ease-in-out infinite;
}
.fmp-final-cta-orb2 {
  width: 350px; height: 350px;
  background: rgba(255,255,255,.025);
  bottom: -80px; right: 10%;
  animation: fmp-orb2 24s ease-in-out infinite;
}
.fmp-final-cta-badge {
  display: inline-block;
  background: rgba(251,226,22,.12);
  border: 1px solid rgba(251,226,22,.3);
  color: var(--yellow);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 20px;
  border-radius: 999px;
  margin-bottom: 24px;
}

/* Section badge — dark-bg variant (inside fmp-peda, final-cta, etc.) */
.fmp-peda .section-badge--light,
.fmp-final-cta .section-badge--light {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.18);
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — fmp-* system
   ══════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .fmp-hero-inner { grid-template-columns: 1fr 320px; gap: 48px; }
  .fmp-ov-grid    { grid-template-columns: repeat(3,1fr); gap: 18px; }
  .fmp-layout     { grid-template-columns: 1fr 270px; gap: 40px; }
  .fmp-layout-rev { grid-template-columns: 270px 1fr; }
  .fmp-peda-grid  { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .fmp-hero       { padding: 120px 0 70px; }
  .fmp-hero-inner { grid-template-columns: 1fr; }
  .fmp-hero-cards { display: none; }
  .fmp-hero-title { font-size: clamp(2rem, 5vw, 3rem); }
  .fmp-layout,
  .fmp-layout-rev { grid-template-columns: 1fr; gap: 32px; }
  .fmp-layout-rev .fmp-aside { order: 0; }
  .fmp-cta-sticky { position: static; }
  .fmp-sec-id-num { font-size: 80px; }
  .fmp-mods-grid  { grid-template-columns: 1fr 1fr; }
  .fmp-peda-grid  { grid-template-columns: repeat(2,1fr); gap: 20px; }
}
@media (max-width: 768px) {
  .fmp-hero       { min-height: auto; padding: 100px 0 60px; }
  .fmp-hero-title { font-size: clamp(1.8rem, 6vw, 2.6rem); }
  .fmp-hero-actions { flex-direction: column; align-items: flex-start; }
  .fmp-statsbar-inner { flex-wrap: wrap; }
  .fmp-sbar-item  { flex: 1 1 40%; min-width: 40%; }
  .fmp-sbar-sep   { display: none; }
  .fmp-ov-grid    { grid-template-columns: 1fr; }
  .fmp-overview   { padding: 72px 0 56px; }
  .fmp-sec-id     { padding: 48px 0 36px; }
  .fmp-sec-id-inner { flex-direction: column; gap: 16px; }
  .fmp-sec-id-num { font-size: 60px; margin-top: 0; }
  .fmp-mods-grid  { grid-template-columns: 1fr; }
  .fmp-outputs-grid { grid-template-columns: 1fr; }
  .fmp-prog-list  { grid-template-columns: 1fr; }
  .fmp-metiers-cards { grid-template-columns: 1fr; }
  .fmp-peda       { padding: 72px 0; }
  .fmp-peda-grid  { grid-template-columns: 1fr; gap: 16px; }
  .fmp-compare    { padding: 72px 0; }
  .fmp-final-cta  { padding: 80px 0; }
  .fmp-section-head { margin-bottom: 40px; }
}
@media (max-width: 480px) {
  .fmp-hero { padding: 90px 0 52px; }
  .fmp-hero-badge { font-size: 10px; }
  .fmp-hero-title { font-size: 1.75rem; }
  .fmp-hero-sub   { font-size: 14px; }
  .fmp-prog { padding-left: 42px; }
  .fmp-prog-dot { left: -42px; width: 32px; height: 32px; }
  .fmp-prog-dot span { font-size: 9px; }
  .fmp-prog-line { left: 16px; }
  .fmp-cta-sticky { border-radius: 14px; }
  .fmp-cta-section { padding: 20px 18px 16px; }
  .fmp-cta-badge { padding: 14px 18px; }
  .fmp-peda-item { padding: 28px 20px; }
  .fmp-sec-stats  { gap: 18px; }
}

/* ── Reduced motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .fmp-reveal,
  .fmp-mc { transition: none !important; animation: none !important; }
  .fmp-hero-orb,
  .fmp-final-cta-orb1,
  .fmp-final-cta-orb2,
  .fmp-scroll-arrow,
  .fmp-badge-dot { animation: none !important; }
  .fmp-reveal  { opacity: 1 !important; transform: none !important; }
  .fmp-mc      { opacity: 1 !important; transform: none !important; }
  .fmp-hero-card.fmp-hc-animate { animation: none !important; opacity: 1; }
}

/* ══════════════════════════════════════════════════════════
   HOMEPAGE PREMIUM — hp-* system
   ══════════════════════════════════════════════════════════ */

/* ── Base & reveal ──────────────────────────────────────── */
.hp { overflow-x: hidden; }

.hp-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity   0.6s var(--ease),
    transform 0.6s var(--spring-soft);
  transition-delay: var(--d, 0s);
}
.hp-visible {
  opacity: 1 !important;
  transform: none !important;
}

/* ── Hero additions ─────────────────────────────────────── */
.hp-hero-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  align-items: center;
}
.hp-hero-badge-jpo {
  background: rgba(251,226,22,.15) !important;
  border: 1.5px solid var(--yellow) !important;
  color: var(--yellow) !important;
  font-weight: 900 !important;
  letter-spacing: .02em !important;
}
.hp-hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
}
/* White-on-dark outline button variant */
.hp-btn-outline-light {
  color: #fff !important;
  border-color: rgba(255,255,255,.38) !important;
}
.hp-btn-outline-light:hover {
  border-color: rgba(255,255,255,.75) !important;
  background: rgba(255,255,255,.07) !important;
}

/* ══════════════════════════════════════════════════════════
   FORMATIONS CARDS
   ══════════════════════════════════════════════════════════ */
.hp-formations {
  padding: 100px 0 80px;
  background: var(--white);
}
.hp-section-head {
  text-align: center;
  margin-bottom: 56px;
}
.hp-section-head h2 { margin-bottom: 0; }
.hp-section-sub {
  font-size: 16px;
  color: var(--gray-dark);
  line-height: 1.8;
  max-width: 580px;
  margin: 14px auto 0;
}

.hp-prog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.hp-prog-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform var(--dur-base) var(--spring), box-shadow var(--dur-base) var(--ease);
}
.hp-prog-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 24px 64px rgba(10,15,30,.22);
}
@media (hover: none) { .hp-prog-card:hover { transform: none; } }

.hp-prog-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s var(--ease);
}
.hp-prog-card:hover .hp-prog-bg { transform: scale(1.06); }

.hp-prog-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,15,30,.92) 0%,
    rgba(10,15,30,.55) 50%,
    rgba(10,15,30,.18) 100%
  );
  transition: opacity var(--dur-base) var(--ease);
}
.hp-prog-card:hover .hp-prog-overlay {
  background: linear-gradient(
    to top,
    rgba(10,15,30,.96) 0%,
    rgba(10,15,30,.65) 50%,
    rgba(10,15,30,.22) 100%
  );
}

/* Yellow accent line at bottom */
.hp-prog-accent {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--spring-soft);
}
.hp-prog-card:hover .hp-prog-accent { transform: scaleX(1); }

.hp-prog-content {
  position: relative;
  z-index: 1;
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hp-prog-domain {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  opacity: .85;
}
.hp-prog-icon { font-size: 28px; line-height: 1; }
.hp-prog-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 900;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}
.hp-prog-desc {
  font-size: 13.5px;
  color: rgba(255,255,255,.72);
  line-height: 1.7;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.4s var(--ease),
    opacity    0.4s var(--ease),
    margin     0.4s var(--ease);
}
.hp-prog-card:hover .hp-prog-desc {
  max-height: 80px;
  opacity: 1;
  margin-top: 2px;
}
.hp-prog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.hp-prog-tags span {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 10px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: rgba(255,255,255,.85);
}
.hp-prog-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--yellow);
  margin-top: 4px;
  letter-spacing: 0.02em;
  transition: gap var(--dur-fast) var(--spring);
}
.hp-prog-arrow { transition: transform var(--dur-fast) var(--spring); }
.hp-prog-card:hover .hp-prog-link { gap: 10px; }
.hp-prog-card:hover .hp-prog-arrow { transform: translateX(4px); }

.hp-prog-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 48px;
}

/* ══════════════════════════════════════════════════════════
   HÉRITAGE EXIA
   ══════════════════════════════════════════════════════════ */
.hp-exia {
  position: relative;
  background: var(--navy);
  padding: 80px 0;
  border-bottom: 3px solid var(--yellow);
  overflow: hidden;
}
.hp-exia-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(251,226,22,.055) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 10% 30%, rgba(255,255,255,.02) 0%, transparent 50%);
}
.hp-exia-orb1,
.hp-exia-orb2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  pointer-events: none;
}
.hp-exia-orb1 {
  width: 400px; height: 400px;
  background: rgba(251,226,22,.05);
  top: -120px; right: -60px;
  animation: fmp-orb1 20s ease-in-out infinite;
}
.hp-exia-orb2 {
  width: 280px; height: 280px;
  background: rgba(255,255,255,.02);
  bottom: -60px; left: 10%;
  animation: fmp-orb2 26s ease-in-out infinite;
}
.hp-exia-head {
  text-align: center;
  margin-bottom: 52px;
  position: relative;
  z-index: 1;
}
.hp-exia-badge {
  display: inline-block;
  background: rgba(251,226,22,.1);
  border: 1px solid rgba(251,226,22,.3);
  border-radius: 999px;
  padding: 6px 20px;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hp-exia-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.15;
}
.hp-exia-yellow { color: var(--yellow); }
.hp-exia-sub {
  font-size: 16px;
  color: rgba(255,255,255,.6);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.75;
}
.hp-exia-stats {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  overflow: hidden;
  max-width: 860px;
  margin: 0 auto;
  background: rgba(255,255,255,.035);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hp-exia-stat {
  flex: 1;
  text-align: center;
  padding: 32px 20px;
}
.hp-exia-sep {
  width: 1px;
  background: rgba(255,255,255,.1);
  align-self: stretch;
  flex-shrink: 0;
}
.hp-exia-stat-n {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 10px;
}
.hp-exia-stat-l {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.5);
}

/* ══════════════════════════════════════════════════════════
   WIDGET BANNER
   ══════════════════════════════════════════════════════════ */
.hp-widget-banner {
  padding: 0 0 32px;
  background: var(--white);
}
.hp-widget-inner {
  background: var(--navy);
  border-radius: 12px;
  padding: 28px 32px;
  color: #fff;
}
.hp-widget-title {
  display: block;
  color: var(--yellow);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 800;
  margin-bottom: 10px;
}
.hp-widget-body p {
  margin: 0;
  opacity: .85;
  line-height: 1.7;
}

/* Above / below news widgets */
.hp-widget-above {
  margin-bottom: 20px;
  padding: 18px 22px;
  background: var(--gray-light);
  border-left: 4px solid var(--yellow);
  border-radius: 0 8px 8px 0;
}
.hp-widget-above-title {
  font-weight: 800;
  font-size: 13px;
  color: var(--navy);
  margin-bottom: 6px;
}
.hp-widget-above-text { margin: 0; font-size: 14px; color: var(--gray-dark); }

.hp-widget-below {
  margin-top: 24px;
  padding: 18px 22px;
  background: var(--gray-light);
  border-radius: 8px;
  border: 1.5px solid var(--gray-mid);
}
.hp-widget-below-title {
  font-weight: 800;
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 8px;
}
.hp-widget-below-text { margin: 0; font-size: 14px; color: var(--gray-dark); }

/* ══════════════════════════════════════════════════════════
   NEWS SECTION
   ══════════════════════════════════════════════════════════ */
.hp-news {
  padding: 100px 0 80px;
  background: var(--gray-light);
}
.hp-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.hp-news-card {
  background: var(--white);
  border: 1.5px solid var(--gray-mid);
  border-radius: 16px;
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition:
    box-shadow var(--dur-base) var(--ease),
    transform  var(--dur-base) var(--spring),
    border-color var(--dur-base) var(--ease);
}
.hp-news-card:hover {
  box-shadow: 0 12px 36px rgba(10,15,30,.1);
  transform: translateY(-4px);
  border-color: var(--yellow);
}
@media (hover: none) { .hp-news-card:hover { transform: none; } }
.hp-news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hp-news-date {
  font-size: 12px;
  color: var(--gray-dark);
  font-weight: 600;
}
.hp-news-title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
  line-height: 1.3;
  flex: 1;
}
.hp-news-text {
  font-size: 14px;
  color: var(--gray-dark);
  line-height: 1.75;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hp-news-link {
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--navy);
  margin-top: auto;
  transition: color var(--dur-fast) var(--ease);
}
.hp-news-link:hover { color: var(--yellow); }
.hp-news-empty {
  color: var(--gray-dark);
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 0;
}

/* ══════════════════════════════════════════════════════════
   DARK BANNER
   ══════════════════════════════════════════════════════════ */
.hp-dark-banner {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}
.hp-dark-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hp-dark-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,15,30,.88) 0%, rgba(10,15,30,.78) 100%);
}
.hp-dark-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}
.hp-dark-card {
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  padding: 36px 30px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease);
}
.hp-dark-card:hover {
  background: rgba(251,226,22,.07);
  border-color: rgba(251,226,22,.3);
}
@media (hover: none) { .hp-dark-card:hover { background: rgba(255,255,255,.055); } }
/* Featured / testimonial card */
.hp-dark-card-featured {
  border-color: rgba(251,226,22,.35);
  background: rgba(251,226,22,.06);
}
.hp-dark-card-label {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--yellow);
  opacity: .8;
}
.hp-dark-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  margin: 0;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.hp-dark-card-text {
  font-size: 14.5px;
  color: rgba(255,255,255,.65);
  line-height: 1.75;
  margin: 0;
  flex: 1;
}
.hp-dark-link {
  font-weight: 800;
  font-size: 13.5px;
  color: var(--yellow);
  text-decoration: none;
  margin-top: auto;
  transition: opacity var(--dur-fast) var(--ease);
}
.hp-dark-link:hover { opacity: .75; }

/* Testimonial quote */
.hp-dark-quote-icon {
  font-family: Georgia, serif;
  font-size: 56px;
  color: var(--yellow);
  line-height: .7;
  opacity: .7;
  flex-shrink: 0;
}
.hp-dark-quote {
  font-size: 15.5px;
  font-style: italic;
  color: rgba(255,255,255,.82);
  line-height: 1.8;
  margin: 0;
  flex: 1;
}
.hp-dark-quote-author {
  font-weight: 800;
  font-size: 12.5px;
  color: var(--yellow);
  margin: 0;
  letter-spacing: .02em;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — hp-* system
   ══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hp-prog-grid   { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .hp-prog-card   { min-height: 360px; }
  .hp-dark-inner  { grid-template-columns: 1fr 1fr; }
  .hp-dark-card:last-child { grid-column: 1 / -1; }
  .hp-exia-stats  { flex-wrap: wrap; }
  .hp-exia-stat   { flex: 1 1 40%; }
  .hp-exia-sep    { display: none; }
}
@media (max-width: 768px) {
  .hp-formations  { padding: 72px 0 56px; }
  .hp-prog-grid   { grid-template-columns: 1fr; }
  .hp-prog-card   { min-height: 300px; }
  .hp-prog-desc   { max-height: 60px !important; opacity: 1 !important; }
  .hp-exia        { padding: 64px 0; }
  .hp-exia-stats  { flex-direction: column; border-radius: 12px; }
  .hp-exia-stat   { padding: 24px 20px; }
  .hp-exia-sep    { display: none; }
  .hp-news        { padding: 72px 0 56px; }
  .hp-news-grid   { grid-template-columns: 1fr; }
  .hp-dark-banner { padding: 72px 0; }
  .hp-dark-inner  { grid-template-columns: 1fr; }
  .hp-dark-card:last-child { grid-column: auto; }
  .hp-hero-actions { flex-direction: column; align-items: flex-start; }
  .hp-hero-actions .btn-yellow,
  .hp-hero-actions .btn-outline { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .hp-prog-content { padding: 22px 22px 26px; }
  .hp-dark-card   { padding: 28px 22px; }
  .hp-section-head { margin-bottom: 36px; }
  .hp-exia-badge  { font-size: 10px; padding: 5px 14px; }
}

/* ── Reduced motion — hp-* ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hp-reveal { transition: none !important; }
  .hp-reveal { opacity: 1 !important; transform: none !important; }
  .hp-exia-orb1, .hp-exia-orb2 { animation: none !important; }
  .hp-prog-bg { transition: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════
   LUCIDE ICON SYSTEM
   Professional, minimal stroke-based icons — replaces all emoji
   Consistent weight: stroke-width 1.75 (default set via createIcons)
═══════════════════════════════════════════════════════════════════ */

/* All injected Lucide SVGs */
svg.lucide {
  display: block;
  flex-shrink: 0;
  overflow: visible;
}

/* ── "Why ISSI" benefit cards — 54×54 yellow box ── */
.wcard-icon svg {
  width: 26px; height: 26px;
  color: var(--navy);
  transition: color var(--dur-fast) var(--ease);
}
.wcard:hover .wcard-icon svg { color: var(--navy); }

/* ── Homepage program cards ── */
.hp-prog-icon svg {
  width: 28px; height: 28px;
  color: rgba(255,255,255,.9);
}

/* ── Formations hero preview cards ── */
.fmp-hc-icon svg {
  width: 22px; height: 22px;
  color: rgba(255,255,255,.95);
}

/* ── Formations overview grid cards ── */
.fmp-ov-icon svg {
  width: 32px; height: 32px;
  color: var(--navy);
}

/* ── Formations pedagogy strip ── */
.fmp-peda-icon svg {
  width: 36px; height: 36px;
  color: var(--yellow);
}

/* ── Formations metier card ── */
.fmp-mc-top svg {
  width: 26px; height: 26px;
}

/* ── Formations section title inline icon ── */
.fmp-sec-title svg {
  width: 30px; height: 30px;
  vertical-align: middle;
  margin-right: 10px;
  color: var(--yellow);
  display: inline-block;
}

/* ── Formations sidebar icon (above admissions) ── */
.fmp-cta-icon-wrap svg {
  width: 40px; height: 40px;
  color: var(--yellow);
}

/* ── Formation sidebar badge check ── */
.fmp-cta-badge-icon svg {
  width: 15px; height: 15px;
  color: var(--yellow);
}

/* ── About page values icon box ── */
.about-val-icon svg {
  width: 22px; height: 22px;
}

/* ── Contact info lines ── */
.info-line svg {
  width: 22px; height: 22px;
  flex-shrink: 0;
  color: var(--navy);
  margin-top: 1px;
}

/* ── Footer contact icons ── */
.ftr-icon svg {
  width: 14px; height: 14px;
  flex-shrink: 0;
  color: rgba(255,255,255,.55);
}

/* ── Checklist bullet icons ── */
.li-check svg {
  width: 16px; height: 16px;
  color: var(--yellow);
  flex-shrink: 0;
}
.li-dot svg {
  width: 14px; height: 14px;
  color: var(--navy);
  flex-shrink: 0;
}

/* ── Admissions closed (large centered lock) ── */
.adm-closed-icon svg {
  width: 56px; height: 56px;
  color: var(--gray-dark);
}

/* ── Alert / success banner ── */
.alert svg {
  width: 18px; height: 18px;
  color: var(--navy);
  vertical-align: -3px;
  flex-shrink: 0;
  display: inline-block;
}

/* ── Gallery lightbox controls ── */
#lb button svg {
  width: 22px; height: 22px;
  color: #fff;
  pointer-events: none;
}

/* ── Social icons ── */
.social svg {
  width: 18px; height: 18px;
  display: block;
}

/* ── Mobile hamburger ── */
.mobile-toggle svg {
  width: 22px; height: 22px;
  color: var(--navy);
  display: block;
  pointer-events: none; /* pass clicks through to the button */
  flex-shrink: 0;
}

/* ── JPO date badge ── */
.hp-hero-badge-jpo svg {
  width: 14px; height: 14px;
  vertical-align: middle;
  margin-right: 3px;
  display: inline-block;
}

/* ── Comparison table header icons ── */
th svg {
  width: 18px; height: 18px;
  vertical-align: middle;
  margin-right: 6px;
  display: inline-block;
}

/* ── Table cell check mark ── */
.td-check svg {
  width: 15px; height: 15px;
  color: #16a34a;
  vertical-align: -2px;
  display: inline-block;
}

/* ── Gallery album placeholder ── */
.album-placeholder svg {
  width: 40px; height: 40px;
  color: var(--gray-dark);
  opacity: .5;
}

/* ── Formation output check circles ── */
.fmp-output-check svg {
  width: 12px; height: 12px;
  color: var(--navy);
}

/* ══════════════════════════════════════════════════════════
   SOCIAL MEDIA — Platform brand animations
   ══════════════════════════════════════════════════════════ */

/* Facebook — blue brand */
.social-fb:hover { background: #1877F2; border-color: #1877F2; color: #fff; }
.social-fb:hover svg { color: #fff; }

/* LinkedIn — professional blue */
.social-li:hover { background: #0A66C2; border-color: #0A66C2; color: #fff; }
.social-li:hover svg { color: #fff; }

/* Instagram — gradient via pseudo-element (smooth transition) */
.social-ig {
  position: relative;
  z-index: 0;
  overflow: hidden;
}
.social-ig::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  opacity: 0;
  transition: opacity 0.28s var(--ease);
  z-index: -1;
}
.social-ig:hover::before { opacity: 1; }
.social-ig:hover { background: transparent; border-color: #d6249f; color: #fff; }
.social-ig:hover svg { color: #fff; }

/* SVG position above the pseudo-element */
.social-ig svg { position: relative; z-index: 1; }

/* Contact page socials — navy base on white background */
.socials-contact .social {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  width: 48px;
  height: 48px;
}
.socials-contact .social svg { color: #fff; }
.socials-contact .social:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.22); }
.socials-contact .social-ig::before { border-radius: 10px; }

/* ══════════════════════════════════════════════════════════
   MOBILE RESPONSIVENESS — additional fixes
   ══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  /* Social icons — larger touch targets */
  .social { width: 48px; height: 48px; border-radius: 12px; }
  .socials { gap: 12px; }

  /* Contact info lines — allow icon to stay top-aligned */
  .info-line { align-items: flex-start; }

  /* Gallery lightbox prev/next — pull inward */
  #lb [data-lb="prev"] { left: 8px !important; }
  #lb [data-lb="next"] { right: 8px !important; }

  /* Site footer — break long emails/addresses */
  .site-footer p,
  .site-footer a { word-break: break-word; }

  /* Chatbot container — tuck in from the edge on mobile */
  #issi-chat { bottom: 16px !important; right: 16px !important; }

  /* Wide inline-style CTA button pairs — stack */
  a[style*="margin-left:16px"],
  a[style*="margin-left: 16px"] { margin-left: 0 !important; margin-top: 12px !important; }

  /* Admissions step cards — reduce horizontal padding */
  .adm-step-card { padding: 24px 20px !important; }

  /* Footer socials — left-aligned (already default) */
  .footer-grid .socials { margin-top: 8px; }

  /* Hide header CTA on mobile — accessible via mobile panel */
  #navCta { display: none !important; }
}

@media (max-width: 480px) {
  /* Social icons — ensure minimum 44px tap target */
  .social { width: 44px; height: 44px; }
  .socials-contact .social { width: 48px; height: 48px; }

  /* Hero cards — tighten padding */
  .hero-card { padding: 16px; }

  /* Footer grid — tighter gap */
  .footer-grid { gap: 24px; }

  /* Stack sibling CTA buttons — but NEVER affect header/nav buttons */
  main .btn-yellow,
  main .btn-outline,
  .mobile-panel .btn-yellow {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    margin-left: 0 !important;
  }
  /* Restore inline-flex for badges and icon-only elements */
  .hero-badge,
  .hero-badge.btn-yellow,
  .hp-hero-badge-jpo,
  .fmp-hero-badge {
    display: inline-flex !important;
    width: auto !important;
  }

  /* Program hero CTA — stack */
  .fmp-hero-actions { flex-direction: column; align-items: stretch; }
  .fmp-hero-actions .btn-yellow,
  .fmp-hero-actions .btn-outline { width: 100%; justify-content: center; margin-left: 0 !important; }

  /* Gallery album placeholder — smaller icon */
  .album-placeholder svg { width: 28px; height: 28px; }
}
