/* ==========================================================================
   EUTG — Université d'Excellence · Design system
   Style « indigo-ink ledger » : canvas blanc, encre bleu nuit, un seul accent indigo,
   typographie légère (300), rayons 4px, aucune ombre — la profondeur vient des teintes.
   ========================================================================== */

/* Police Inter Tight auto-hébergée (licence SIL OFL 1.1 — voir assets/fonts/OFL-LICENSE.txt) */
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/inter-tight-latin-300-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-tight-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-tight-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/inter-tight-latin-ext-300-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-tight-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-tight-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* Couleurs */
  --indigo: #533afd;
  --indigo-hover: #7389ff;
  --ink: #061b31;
  --slate: #64748d;
  --steel: #50617a;
  --smoke: #839bc8;
  --white: #ffffff;
  --mist: #f8fafd;
  --frost: #e5edf5;
  --lavender: #b9b9f9;
  --lilac: #d6d9fc;
  --wash: #e8e9ff;
  --deep: #182659;
  --amethyst: #7f71e6;
  --warm: #ff8a4c; /* clin d'œil au blason EUTG — utilisé uniquement dans le dégradé animé */
  --whatsapp: #25d366;

  /* Sur fond sombre */
  --on-dark: #ffffff;
  --on-dark-muted: rgba(255, 255, 255, 0.72);
  --on-dark-line: rgba(255, 255, 255, 0.14);

  /* Typographie */
  --font: "Inter Tight", "sohne-var", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --fs-caption: 12px;
  --fs-sm: 14px;
  --fs-body: 16px;
  --fs-lg: 20px;
  --fs-sub: 22px;
  --fs-h4: 26px;
  --fs-h3: 32px;
  --fs-h2: clamp(32px, 3.6vw, 48px);
  --fs-h1: clamp(38px, 5vw, 64px);
  --fs-display: clamp(42px, 6.2vw, 80px);

  /* Espacements */
  --s-8: 8px;
  --s-16: 16px;
  --s-24: 24px;
  --s-32: 32px;
  --s-40: 40px;
  --s-48: 48px;
  --s-64: 64px;
  --s-80: 80px;
  --s-96: 96px;

  --maxw: 1320px;
  --gutter: 24px;
  --radius: 4px;
  --radius-pill: 9999px;
  --header-h: 72px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: var(--fs-body);
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--ink);
  background: var(--white);
  font-feature-settings: "ss01" on, "tnum" on;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}
html { overflow-x: clip; }

img, video, svg, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, h5, p, ul, ol, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
strong, b { font-weight: 400; }
::selection { background: var(--wash); color: var(--indigo); }

:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--indigo);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 400;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   Typographie
   -------------------------------------------------------------------------- */
.display,
.h1, .h2, .h3, .h4 {
  font-weight: 300;
  color: var(--ink);
  text-wrap: balance;
}
.display { font-size: var(--fs-display); line-height: 1.02; letter-spacing: -0.035em; }
.h1 { font-size: var(--fs-h1); line-height: 1.03; letter-spacing: -0.03em; }
.h2 { font-size: var(--fs-h2); line-height: 1.06; letter-spacing: -0.022em; }
.h3 { font-size: var(--fs-h3); line-height: 1.1; letter-spacing: -0.02em; }
.h4 { font-size: var(--fs-h4); line-height: 1.12; letter-spacing: -0.012em; }
.h5 { font-size: var(--fs-lg); line-height: 1.25; letter-spacing: -0.01em; font-weight: 400; }

.lead {
  font-size: clamp(18px, 1.7vw, var(--fs-sub));
  line-height: 1.45;
  color: var(--slate);
  max-width: 62ch;
  text-wrap: pretty;
}
.text-muted { color: var(--slate); }
.text-steel { color: var(--steel); }
.text-indigo { color: var(--indigo); }
.text-smoke { color: var(--smoke); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-caption);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--smoke);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
}
.eyebrow--indigo { color: var(--indigo); }
.eyebrow--plain::before { display: none; }

.prose p + p { margin-top: 1em; }
.prose p { color: var(--steel); }

.gradient-text {
  background: linear-gradient(100deg, var(--indigo) 0%, var(--amethyst) 45%, var(--indigo-hover) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------------------------
   Mise en page
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(980px + var(--gutter) * 2); }

.section { padding-block: var(--s-96); position: relative; }
.section--tight { padding-block: var(--s-64); }
.section--mist { background: var(--mist); }
.section--wash { background: var(--wash); }
.section--frost { background: var(--frost); }
.section--dark {
  background: var(--ink);
  color: var(--on-dark);
}
.section--dark .h1, .section--dark .h2, .section--dark .h3, .section--dark .h4, .section--dark .display { color: var(--on-dark); }
.section--dark .lead, .section--dark .text-muted { color: var(--on-dark-muted); }
.section--dark .eyebrow { color: var(--lavender); }

.rule { height: 1px; background: var(--frost); border: 0; margin: 0; }

.section-head {
  display: grid;
  gap: var(--s-24);
  margin-bottom: var(--s-64);
  max-width: 820px;
}
.section-head--split {
  max-width: none;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: end;
  gap: var(--s-48);
}
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }

.grid { display: grid; gap: var(--s-24); }
.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)); }
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-64);
  align-items: center;
}
.split--wide-left { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.stack-8 > * + * { margin-top: 8px; }
.stack-16 > * + * { margin-top: 16px; }
.stack-24 > * + * { margin-top: 24px; }
.stack-32 > * + * { margin-top: 32px; }

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--indigo);
  --btn-border: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 14.5px 24px 15.5px;
  border-radius: var(--radius);
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--fs-sm);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.4s var(--ease);
  will-change: transform;
}
.btn::after {
  /* balayage lumineux au survol */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.35) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: scale(0.98); }

.btn-primary { --btn-bg: var(--indigo); --btn-fg: #fff; }
.btn-primary:hover { --btn-bg: var(--indigo-hover); }
.btn-ghost { --btn-border: var(--lavender); --btn-fg: var(--indigo); }
.btn-ghost:hover { --btn-bg: var(--wash); --btn-border: var(--indigo-hover); }
.btn-tertiary { --btn-border: var(--lilac); --btn-fg: var(--indigo); min-height: 40px; padding: 11px 18px 12px; }
.btn-tertiary:hover { --btn-bg: var(--wash); }
.btn-white { --btn-bg: #fff; --btn-fg: var(--indigo); }
.btn-white:hover { --btn-bg: var(--wash); }
.btn-ghost-light { --btn-border: rgba(255, 255, 255, 0.45); --btn-fg: #fff; }
.btn-ghost-light:hover { --btn-bg: rgba(255, 255, 255, 0.12); --btn-border: #fff; }
.btn-wa { --btn-border: var(--lavender); --btn-fg: var(--ink); }
.btn-wa:hover { --btn-bg: var(--mist); --btn-border: var(--whatsapp); }
.btn-wa svg { color: var(--whatsapp); }
.btn-lg { min-height: 56px; padding: 18px 28px 19px; font-size: 15px; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Flèche Stripe : chevron + trait qui apparaît au survol */
.arrow {
  position: relative;
  display: inline-block;
  width: 10px;
  height: 10px;
  flex: none;
  transition: transform 0.35s var(--ease);
}
.arrow svg { position: absolute; inset: 0; width: 10px; height: 10px; overflow: visible; }
.arrow .arrow-line { opacity: 0; transition: opacity 0.25s var(--ease); }
.btn:hover .arrow, .link-arrow:hover .arrow, .card-link:hover .arrow, a:hover > .arrow { transform: translateX(3px); }
.btn:hover .arrow .arrow-line, .link-arrow:hover .arrow .arrow-line, .card-link:hover .arrow .arrow-line, a:hover > .arrow .arrow-line { opacity: 1; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--indigo);
  font-weight: 400;
}
.section--dark .link-arrow { color: var(--lavender); }

.link-underline {
  color: var(--indigo);
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.4s var(--ease);
}
.link-underline:hover { background-size: 0 1px; background-position: 100% 100%; }

.cta-pair { display: flex; flex-wrap: wrap; gap: 8px; }

/* --------------------------------------------------------------------------
   Tags & puces
   -------------------------------------------------------------------------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: var(--wash);
  color: var(--indigo);
  font-size: var(--fs-caption);
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
}
.tag--outline { background: transparent; border: 1px solid var(--lilac); }
.tag--light { background: rgba(255, 255, 255, 0.14); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.tag--ink { background: var(--ink); color: #fff; }
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag .dot--live { background: var(--whatsapp); animation: pulse-dot 1.8s infinite; }
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid var(--frost);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 400;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.3s var(--ease);
}
.chip:hover { border-color: var(--lavender); color: var(--indigo); transform: translateY(-2px); }
.chip.is-active, .chip[aria-pressed="true"] { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.chip .count { font-size: 12px; opacity: 0.6; }
.chip svg { width: 16px; height: 16px; flex: none; }

/* --------------------------------------------------------------------------
   Barre d'annonce & en-tête
   -------------------------------------------------------------------------- */
.announce {
  position: relative;
  z-index: 60;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 300;
  overflow: hidden;
}
.announce a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 40px;
  padding: 8px var(--gutter);
  text-align: center;
}
.announce strong { font-weight: 400; color: var(--lavender); }
.announce .arrow { color: var(--lavender); }
.announce::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(115, 137, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: shimmer 5s var(--ease-in-out) infinite;
  pointer-events: none;
}
@keyframes shimmer { 0%, 30% { transform: translateX(-100%); } 70%, 100% { transform: translateX(100%); } }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0);
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.45s var(--ease), color 0.35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.86);
  border-bottom-color: var(--frost);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-hidden.menu-open { transform: none; }

/* En-tête posé sur un héros vidéo sombre */
.header-overlay .site-header { position: fixed; left: 0; right: 0; color: #fff; }
.header-overlay .announce + .site-header { top: 40px; }
.header-overlay .site-header.is-scrolled { top: 0; color: var(--ink); }
.header-overlay .site-header:not(.is-scrolled) .nav-link:hover { color: #fff; opacity: 0.8; }
.header-overlay .site-header:not(.is-scrolled) .btn-ghost { --btn-border: rgba(255, 255, 255, 0.45); --btn-fg: #fff; }
.header-overlay .site-header:not(.is-scrolled) .btn-ghost:hover { --btn-bg: rgba(255, 255, 255, 0.12); }
.header-overlay .site-header:not(.is-scrolled) .brand-sub { color: rgba(255, 255, 255, 0.7); }
.header-overlay .site-header:not(.is-scrolled) .menu-toggle span { background: #fff; }

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--s-32);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.brand img { width: 40px; height: 38px; object-fit: contain; transition: transform 0.6s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.brand-text { display: grid; line-height: 1.05; }
.brand-name { font-size: 19px; font-weight: 500; letter-spacing: -0.02em; }
.brand-sub { font-size: 11px; color: var(--slate); letter-spacing: 0.01em; transition: color 0.3s var(--ease); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  font-weight: 400;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.nav-link:hover { color: var(--indigo); }
.nav-link[aria-current="page"] { color: var(--indigo); }
.header-overlay .site-header:not(.is-scrolled) .nav-link[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.nav-link .caret { width: 9px; height: 9px; transition: transform 0.3s var(--ease); }
.nav-item:hover .caret, .nav-item.is-open .caret { transform: rotate(180deg); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-actions .btn { min-height: 40px; padding: 11px 16px 12px; }

/* Méga-menu Formations */
.mega {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  width: min(940px, calc(100vw - 48px));
  padding: 8px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--frost);
  border-radius: 6px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px) rotateX(-8deg);
  transform-origin: top center;
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease), visibility 0.3s;
}
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav-item:hover > .mega,
.nav-item:focus-within > .mega,
.nav-item.is-open > .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0) rotateX(0); }
.mega-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 16px; padding: 20px 16px; }
.mega-group h4 {
  font-size: 11px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--smoke); margin: 8px 0 6px;
}
.mega-group a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  margin-inline: -8px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 300;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), padding 0.3s var(--ease);
}
.mega-group a:hover { background: var(--mist); color: var(--indigo); padding-left: 12px; }
.mega-group a .lvl { margin-left: auto; font-size: 11px; color: var(--smoke); }
.mega-feature {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  padding: 24px;
}
.mega-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.mega-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 27, 49, 0) 30%, rgba(6, 27, 49, 0.88)); }
.mega-feature:hover img { transform: scale(1.06); }
.mega-feature > div { position: relative; z-index: 1; }
.mega-feature .h5 { color: #fff; margin: 8px 0 6px; }
.mega-feature p { font-size: 14px; color: rgba(255, 255, 255, 0.8); }

/* Menu mobile */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  position: relative;
  border-radius: var(--radius);
}
.menu-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease), background-color 0.3s;
}
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 21.5px; }
.menu-toggle span:nth-child(3) { top: 27px; }
.menu-open .menu-toggle span { background: var(--ink) !important; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: #fff;
  color: var(--ink);
  padding: calc(var(--header-h) + 64px) var(--gutter) 32px;
  overflow-y: auto;
  clip-path: circle(0 at calc(100% - 44px) 36px);
  visibility: hidden;
  transition: clip-path 0.7s var(--ease), visibility 0.7s;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 44px) 36px); visibility: visible; }
.mobile-menu nav > a, .mobile-menu details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--frost);
  font-size: 24px;
  letter-spacing: -0.02em;
  list-style: none;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.menu-open .mobile-menu nav > a, .menu-open .mobile-menu details > summary { opacity: 1; transform: none; }
.mobile-menu nav > :nth-child(1) > summary, .mobile-menu nav > a:nth-child(1) { transition-delay: 0.10s; }
.mobile-menu nav > :nth-child(2), .mobile-menu nav > :nth-child(2) > summary { transition-delay: 0.14s; }
.mobile-menu nav > :nth-child(3) { transition-delay: 0.18s; }
.mobile-menu nav > :nth-child(4) { transition-delay: 0.22s; }
.mobile-menu nav > :nth-child(5) { transition-delay: 0.26s; }
.mobile-menu nav > :nth-child(6) { transition-delay: 0.30s; }
.mobile-menu nav > :nth-child(7) { transition-delay: 0.34s; }
.mobile-menu .caret { width: 16px; height: 16px; flex: none; transition: transform 0.35s var(--ease); }
.mobile-menu details[open] > summary .caret { transform: rotate(180deg); }
.header-overlay .site-header.menu-open { color: var(--ink); }
.header-overlay .site-header.menu-open .brand-sub { color: var(--slate); }
.header-overlay .site-header.menu-open .nav-link { color: var(--ink); }
.mobile-menu details .sub { display: grid; padding: 8px 0 16px; }
.mobile-menu details .sub a { padding: 8px 0; color: var(--steel); font-size: 16px; }
.mobile-menu .menu-cta { display: grid; gap: 8px; margin-top: 32px; }

/* --------------------------------------------------------------------------
   Progression de défilement
   -------------------------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  z-index: 100;
  background: linear-gradient(90deg, var(--indigo), var(--indigo-hover), var(--warm));
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Dégradé animé (WebGL, repli CSS)
   -------------------------------------------------------------------------- */
.gradient-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(60% 80% at 15% 20%, #7389ff 0%, transparent 60%),
    radial-gradient(50% 70% at 85% 30%, #ff8a4c 0%, transparent 60%),
    radial-gradient(70% 90% at 60% 90%, #b9b9f9 0%, transparent 60%),
    linear-gradient(120deg, #533afd, #7f71e6);
  background-size: 160% 160%;
  animation: gradient-drift 18s var(--ease-in-out) infinite alternate;
}
.gradient-canvas.is-webgl { animation: none; background: #533afd; }
@keyframes gradient-drift {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 40%; }
  100% { background-position: 30% 100%; }
}

/* --------------------------------------------------------------------------
   HÉROS — Accueil
   -------------------------------------------------------------------------- */
.hero-home {
  position: relative;
  overflow: hidden;
  padding: calc(var(--s-64) + 8px) 0 var(--s-96);
  min-height: min(920px, calc(100svh - 40px));
  display: flex;
  align-items: center;
  isolation: isolate;
}
.hero-home .hero-stage {
  position: absolute;
  z-index: -1;
  top: calc(var(--header-h) * -1 - 40px);
  right: -8%;
  bottom: 12%;
  width: 60%;
  transform: skewX(-10deg);
  transform-origin: bottom left;
  overflow: hidden;
  border-bottom-left-radius: 8px;
}
.hero-home .hero-stage::after {
  /* grain + liseré */
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.hero-home .hero-grid-lines {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(90deg, var(--frost) 1px, transparent 1px);
  background-size: calc((min(100vw, 1368px) - 48px) / 4) 100%;
  background-position: center;
  opacity: 0.55;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.hero-home .hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: var(--s-48);
  align-items: center;
}
.hero-copy { position: relative; z-index: 2; }
.hero-copy .eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--frost);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 400;
  color: var(--steel);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.hero-copy .eyebrow-pill:hover { border-color: var(--lavender); color: var(--indigo); }
.hero-copy .eyebrow-pill .tag { height: 22px; }
.hero-copy h1 { margin: 24px 0 22px; font-size: clamp(40px, 4.9vw, 68px); }
.hero-copy .lead { margin-bottom: 36px; }

.rotator {
  position: relative;
  display: inline-grid;
  vertical-align: bottom;
  overflow: hidden;
  height: 1.08em;
  padding-bottom: 0.08em;
}
.rotator > span {
  grid-area: 1 / 1;
  white-space: nowrap;
  color: var(--indigo);
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.75s var(--ease), opacity 0.5s var(--ease);
}
.rotator > span.is-active { transform: translateY(0); opacity: 1; }
.rotator > span.is-leaving { transform: translateY(-110%); opacity: 0; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--frost);
  max-width: 560px;
}
.hero-trust div { display: grid; }
.hero-trust b { font-size: 28px; font-weight: 300; letter-spacing: -0.03em; color: var(--ink); }
.hero-trust span { font-size: 13px; color: var(--slate); }

/* Composition média du héros */
.hero-media {
  position: relative;
  z-index: 1;
  perspective: 1400px;
}
.media-frame {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.4);
  aspect-ratio: 16 / 11;
  transform-style: preserve-3d;
  transition: transform 0.8s var(--ease);
}
.media-frame video, .media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame .frame-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  background: linear-gradient(180deg, rgba(6, 27, 49, 0.55), transparent);
  z-index: 2;
}
.media-frame .frame-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.7); }
.media-frame .frame-bar span { margin-left: 8px; font-size: 11px; color: rgba(255, 255, 255, 0.85); letter-spacing: 0.02em; }
.media-frame .play-chip {
  position: absolute;
  left: 16px; bottom: 16px;
  z-index: 2;
}

.float-card {
  position: absolute;
  z-index: 3;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--frost);
  border-radius: 6px;
  padding: 16px 18px;
  min-width: 200px;
  will-change: transform;
}
.float-card .fc-label { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--smoke); }
.float-card .fc-value { font-size: 30px; letter-spacing: -0.03em; line-height: 1.1; margin-top: 4px; }
.float-card .fc-sub { font-size: 13px; color: var(--slate); }
.float-card .bar { height: 4px; border-radius: 4px; background: var(--frost); margin-top: 12px; overflow: hidden; }
.float-card .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--indigo), var(--indigo-hover)); border-radius: 4px; transition: width 1.6s var(--ease) 0.4s; }
.is-inview .float-card .bar i { width: var(--w, 100%); }
.float-card--a { top: -40px; right: -24px; animation: bob 6s var(--ease-in-out) infinite; }
.float-card--b { left: -56px; top: 44%; animation: bob 7s var(--ease-in-out) -2s infinite; }
.float-card--c { right: 6%; bottom: -40px; animation: bob 8s var(--ease-in-out) -4s infinite; display: flex; align-items: center; gap: 12px; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

.donut { width: 52px; height: 52px; transform: rotate(-90deg); flex: none; }
.donut circle { fill: none; stroke-width: 6; }
.donut .track { stroke: var(--frost); }
.donut .val { stroke: var(--indigo); stroke-dasharray: 0 100; transition: stroke-dasharray 1.8s var(--ease) 0.6s; stroke-linecap: round; }
.is-inview .donut .val { stroke-dasharray: 80 100; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list li svg { width: 18px; height: 18px; color: var(--indigo); flex: none; margin-top: 2px; }
.section--dark .check-list li svg { color: var(--lavender); }

/* --------------------------------------------------------------------------
   Héros vidéo plein écran (pages & landing)
   -------------------------------------------------------------------------- */
.hero-video {
  position: relative;
  min-height: min(860px, 100svh);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  padding: calc(var(--header-h) + 64px) 0 var(--s-80);
}
.hero-video .form-card { padding: 28px; }
.hero-video .form-card .fc-head { margin-bottom: 18px; }
.hero-video--short { min-height: min(640px, 82svh); }
.hero-video--facts { padding-bottom: 136px; }
.hero-video--facts .video-toggle { bottom: 84px; }
.hero-video .bg-media {
  position: absolute;
  inset: -6% 0;
  z-index: -2;
  will-change: transform;
}
.hero-video .bg-media video, .hero-video .bg-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}
.hero-video::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 27, 49, 0.9) 0%, rgba(6, 27, 49, 0.6) 45%, rgba(6, 27, 49, 0.22) 100%),
    linear-gradient(0deg, rgba(6, 27, 49, 0.65) 0%, transparent 38%);
}
.hero-video::after {
  /* voile indigo animé */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(60% 80% at 85% 10%, rgba(83, 58, 253, 0.45), transparent 60%), radial-gradient(40% 60% at 100% 100%, rgba(255, 138, 76, 0.22), transparent 60%);
  mix-blend-mode: screen;
  animation: veil 14s var(--ease-in-out) infinite alternate;
}
@keyframes veil { from { opacity: 0.6; transform: translate3d(0, 0, 0); } to { opacity: 1; transform: translate3d(-3%, 2%, 0); } }
.hero-video .h1, .hero-video .display { color: #fff; }
.hero-video .lead { color: rgba(255, 255, 255, 0.82); }
.hero-video .eyebrow { color: var(--lavender); }
.hero-video-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: var(--s-64);
  align-items: center;
  width: 100%;
}
.hero-video-inner--single { grid-template-columns: minmax(0, 860px); }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
}
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { opacity: 0.5; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.hero-bullets { list-style: none; padding: 0; margin: 28px 0 36px; display: grid; gap: 12px; }
.hero-bullets li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255, 255, 255, 0.9); }
.hero-bullets svg { width: 20px; height: 20px; flex: none; color: var(--lavender); margin-top: 1px; }

.video-toggle {
  position: absolute;
  left: var(--gutter);
  bottom: 24px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 12px;
  background: rgba(6, 27, 49, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background-color 0.3s var(--ease);
}
.video-toggle:hover { background: rgba(6, 27, 49, 0.6); }
.video-toggle svg { width: 12px; height: 12px; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  z-index: 3;
}
.scroll-cue::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  width: 2px;
  height: 7px;
  margin-left: -1px;
  border-radius: 2px;
  background: #fff;
  animation: wheel 1.8s var(--ease) infinite;
}
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }

/* Héros clair (pages internes) */
.hero-light {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: var(--s-80) 0 var(--s-80);
}
.hero-light .hero-stage {
  position: absolute;
  z-index: -1;
  inset: -40% -12% auto 56%;
  height: 150%;
  transform: skewX(-12deg) rotate(-4deg);
  overflow: hidden;
  border-radius: 8px;
  opacity: 0.95;
}
.hero-light .hero-stage--soft { opacity: 0.22; }
.hero-light-inner { max-width: 620px; position: relative; z-index: 1; }
.hero-light h1 { margin: 20px 0 20px; }

/* --------------------------------------------------------------------------
   Défilement infini (marquee)
   -------------------------------------------------------------------------- */
.marquee {
  --gap: 56px;
  --duration: 40s;
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: var(--gap);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  flex: none;
  display: flex;
  align-items: center;
  gap: var(--gap);
  min-width: 100%;
  justify-content: space-around;
  animation: marquee var(--duration) linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee--reverse .marquee-track { animation-direction: reverse; }
@keyframes marquee { to { transform: translateX(calc(-100% - var(--gap))); } }

.logo-rail { padding: var(--s-40) 0; border-block: 1px solid var(--frost); }
.logo-rail .rail-label { text-align: center; margin-bottom: 24px; }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--steel);
  white-space: nowrap;
  transition: color 0.3s var(--ease);
}
.wordmark small { font-size: 11px; font-weight: 300; letter-spacing: 0.04em; text-transform: uppercase; color: var(--smoke); }
.wordmark:hover { color: var(--indigo); }
.wordmark svg { width: 22px; height: 22px; color: var(--indigo); }

.ticker {
  background: var(--indigo);
  color: #fff;
  padding: 18px 0;
  font-size: clamp(20px, 2.4vw, 32px);
  letter-spacing: -0.02em;
}
.ticker .marquee { --gap: 40px; --duration: 32s; mask-image: none; -webkit-mask-image: none; }
.ticker .marquee-track span { display: inline-flex; align-items: center; gap: 40px; white-space: nowrap; }
.ticker .marquee-track span::after { content: "✦"; font-size: 0.6em; color: var(--lavender); }

.photo-marquee .marquee { --gap: 16px; --duration: 60s; mask-image: none; -webkit-mask-image: none; }
.photo-marquee figure {
  width: clamp(220px, 24vw, 340px);
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  flex: none;
}
.photo-marquee figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter 0.6s var(--ease); }
.photo-marquee figure:hover img { transform: scale(1.08); }

/* --------------------------------------------------------------------------
   Cartes
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--frost);
  border-radius: var(--radius);
  padding: var(--s-32);
  transition: border-color 0.35s var(--ease), transform 0.5s var(--ease), background-color 0.35s var(--ease);
}
.card:hover { border-color: var(--lavender); }
.card--flat { border-color: transparent; }
.card--mist { background: var(--mist); border-color: transparent; }
.card--wash { background: var(--wash); border-color: transparent; }
.card--dark { background: rgba(255, 255, 255, 0.04); border-color: var(--on-dark-line); color: #fff; }
.card--dark:hover { border-color: rgba(185, 185, 249, 0.6); }
.card .card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--wash);
  color: var(--indigo);
  margin-bottom: 24px;
  transition: transform 0.5s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.card .card-icon svg { width: 22px; height: 22px; stroke-width: 1.5; }
.card:hover .card-icon { transform: rotate(-8deg) scale(1.08); background: var(--indigo); color: #fff; }
.card--dark .card-icon { background: rgba(185, 185, 249, 0.12); color: var(--lavender); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--steel); }
.card--dark p { color: var(--on-dark-muted); }
.card-num {
  font-size: 13px;
  color: var(--smoke);
  letter-spacing: 0.04em;
  margin-bottom: 18px;
  display: block;
}

/* Effet « projecteur » qui suit la souris */
.spotlight { --mx: 50%; --my: 50%; }
.spotlight::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(83, 58, 253, 0.9), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.spotlight:hover::before { opacity: 1; }
.spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(83, 58, 253, 0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.spotlight:hover::after { opacity: 1; }
.card--dark.spotlight::after { background: radial-gradient(420px circle at var(--mx) var(--my), rgba(185, 185, 249, 0.1), transparent 60%); }

/* Carte formation */
.program-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--frost);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.35s var(--ease), transform 0.6s var(--ease);
  transform-style: preserve-3d;
}
.program-card:hover { border-color: var(--lavender); }
.program-card .pc-media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--frost);
}
.program-card .pc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.1s var(--ease), filter 0.6s var(--ease);
}
.program-card:hover .pc-media img { transform: scale(1.1); }
.program-card .pc-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(6, 27, 49, 0.55));
  opacity: 0.8;
  transition: opacity 0.5s var(--ease);
}
.program-card .pc-level {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
}
.program-card .pc-go {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--indigo);
  display: grid;
  place-items: center;
  transform: translateY(12px) scale(0.7);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease);
}
.program-card:hover .pc-go { transform: none; opacity: 1; }
.program-card .pc-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.program-card .pc-domain { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--smoke); }
.program-card .pc-title { font-size: 22px; line-height: 1.15; letter-spacing: -0.018em; font-weight: 300; }
.program-card .pc-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--frost); font-size: 13px; color: var(--slate); }
.program-card .pc-meta span { display: inline-flex; align-items: center; gap: 6px; }
.program-card .pc-meta svg { width: 14px; height: 14px; color: var(--indigo); }
.program-card .stretched { position: absolute; inset: 0; z-index: 2; }
.program-card.is-hidden { display: none; }

/* Cartes « cycles » à grande image */
.cycle-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  padding: 32px;
  isolation: isolate;
}
.cycle-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease); }
.cycle-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 27, 49, 0.05) 20%, rgba(6, 27, 49, 0.92) 100%); transition: background 0.5s var(--ease); }
.cycle-card:hover img { transform: scale(1.08) rotate(0.6deg); }
.cycle-card:hover::before { background: linear-gradient(180deg, rgba(83, 58, 253, 0.15) 0%, rgba(6, 27, 49, 0.95) 100%); }
.cycle-card .cc-bac { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lavender); }
.cycle-card .cc-title { font-size: 34px; letter-spacing: -0.025em; line-height: 1.05; margin: 8px 0 12px; }
.cycle-card p { color: rgba(255, 255, 255, 0.8); max-width: 34ch; }
.cycle-card .cc-more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s var(--ease);
}
.cycle-card .cc-more > div { overflow: hidden; }
.cycle-card:hover .cc-more, .cycle-card:focus-within .cc-more { grid-template-rows: 1fr; }
.cycle-card .cc-more ul { list-style: none; padding: 16px 0 0; margin: 0; display: grid; gap: 6px; font-size: 14px; color: rgba(255, 255, 255, 0.85); }
.cycle-card .cc-link { margin-top: 20px; display: inline-flex; align-items: center; gap: 8px; font-weight: 400; color: #fff; }

/* --------------------------------------------------------------------------
   Statistiques
   -------------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat {
  padding: 32px 24px 8px 0;
  border-top: 1px solid var(--frost);
  position: relative;
}
.stat::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  height: 1px;
  width: 0;
  background: var(--indigo);
  transition: width 1.4s var(--ease);
}
.is-inview .stat::before, .stat.is-inview::before { width: 100%; }
.section--dark .stat { border-top-color: var(--on-dark-line); }
.section--dark .stat::before { background: var(--lavender); }
.stat-num {
  font-size: clamp(44px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
}
.stat-label { margin-top: 12px; color: var(--slate); font-size: 15px; max-width: 24ch; }
.section--dark .stat-label { color: var(--on-dark-muted); }

/* --------------------------------------------------------------------------
   Défilement horizontal épinglé
   -------------------------------------------------------------------------- */
.hscroll { position: relative; }
.hscroll-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.hscroll-track {
  display: flex;
  gap: 24px;
  padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2));
  will-change: transform;
}
.hscroll-track > * { flex: none; width: min(380px, 78vw); }
.hscroll-progress { margin-top: 40px; height: 1px; background: var(--frost); position: relative; }
.hscroll-progress i { position: absolute; inset: 0; background: var(--indigo); transform-origin: 0 50%; transform: scaleX(0); }
.hscroll-head { margin-bottom: 40px; }
.hscroll--native .hscroll-sticky { position: static; height: auto; padding-block: var(--s-96); }
.hscroll--native .hscroll-track { overflow-x: auto; scroll-snap-type: x mandatory; transform: none !important; padding-bottom: 16px; scrollbar-width: none; }
.hscroll--native .hscroll-track::-webkit-scrollbar { display: none; }
.hscroll--native .hscroll-track > * { scroll-snap-align: start; }
.hscroll--native .hscroll-progress { display: none; }

/* --------------------------------------------------------------------------
   Récit épinglé (80/20)
   -------------------------------------------------------------------------- */
.story {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--s-80);
}
.story-sticky { position: sticky; top: calc(var(--header-h) + 48px); align-self: start; }
.story-steps { display: grid; gap: 96px; padding-bottom: 48px; }
.story-step { display: grid; gap: 20px; }
.story-step figure {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  clip-path: inset(12% 8% 12% 8% round 4px);
  transition: clip-path 1.2s var(--ease);
}
.story-step.is-inview figure { clip-path: inset(0 0 0 0 round 4px); }
.story-step figure img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform 1.6s var(--ease); }
.story-step.is-inview figure img { transform: scale(1); }
.story-step .step-k { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--indigo); }
.big-split { display: flex; gap: 32px; align-items: flex-end; margin: 40px 0 32px; }
.big-split .pct { font-size: clamp(72px, 9vw, 132px); line-height: 0.9; letter-spacing: -0.05em; font-weight: 300; }
.big-split .pct small { display: block; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate); margin-top: 12px; }
.big-split .pct--b { color: var(--lavender); }
.ratio-bar { display: flex; height: 8px; border-radius: 8px; overflow: hidden; background: var(--frost); max-width: 460px; }
.ratio-bar i { display: block; height: 100%; width: 0; transition: width 1.8s var(--ease); }
.ratio-bar i:first-child { background: linear-gradient(90deg, var(--indigo), var(--indigo-hover)); }
.ratio-bar i:last-child { background: var(--lavender); }
.is-inview .ratio-bar i:first-child { width: 80%; }
.is-inview .ratio-bar i:last-child { width: 20%; }

/* --------------------------------------------------------------------------
   Média : images avec révélation, parallaxe, collages
   -------------------------------------------------------------------------- */
.img-reveal {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--frost);
}
.img-reveal img { width: 100%; height: 100%; object-fit: cover; }
[data-reveal="clip"] { clip-path: inset(0 0 100% 0 round 4px); transition: clip-path 1.3s var(--ease); }
[data-reveal="clip"].is-inview { clip-path: inset(0 0 0 0 round 4px); }
[data-reveal="clip-x"] { clip-path: inset(0 100% 0 0 round 4px); transition: clip-path 1.3s var(--ease); }
[data-reveal="clip-x"].is-inview { clip-path: inset(0 0 0 0 round 4px); }

.parallax-wrap { overflow: hidden; border-radius: var(--radius); position: relative; }
.parallax-wrap img, .parallax-wrap video { width: 100%; height: 118%; object-fit: cover; will-change: transform; }

.collage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, 64px);
  gap: 12px;
}
.collage > * { border-radius: var(--radius); overflow: hidden; position: relative; }
.collage img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.collage > *:hover img { transform: scale(1.06); }
.collage .c1 { grid-column: 1 / 5; grid-row: 1 / 5; }
.collage .c2 { grid-column: 5 / 7; grid-row: 2 / 5; }
.collage .c3 { grid-column: 2 / 7; grid-row: 5 / 7; }
.collage .c-badge {
  position: absolute;
  z-index: 2;
  left: -12px;
  bottom: 24px;
  background: var(--indigo);
  color: #fff;
  border-radius: var(--radius);
  padding: 16px 20px;
  overflow: visible;
}
.collage .c-badge b { display: block; font-size: 34px; font-weight: 300; letter-spacing: -0.03em; line-height: 1; }
.collage .c-badge span { font-size: 13px; opacity: 0.85; }

/* Vidéo encadrée avec bouton lecture */
.video-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  isolation: isolate;
  cursor: pointer;
}
.video-card img, .video-card video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity 0.6s; }
.video-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 27, 49, 0.1), rgba(6, 27, 49, 0.65)); z-index: 1; }
.video-card:hover img, .video-card:hover video { transform: scale(1.04); }
.video-card .vc-caption { position: absolute; left: 28px; bottom: 24px; right: 28px; z-index: 2; color: #fff; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.video-card .vc-caption .h4 { color: #fff; }
.play-btn {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 92px;
  height: 92px;
  margin: -46px 0 0 -46px;
  border-radius: 50%;
  background: #fff;
  color: var(--indigo);
  display: grid;
  place-items: center;
  transition: transform 0.6s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.play-btn::before, .play-btn::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  animation: ripple 2.6s var(--ease) infinite;
}
.play-btn::after { animation-delay: 1.3s; }
@keyframes ripple { from { transform: scale(0.85); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.play-btn svg { width: 26px; height: 26px; margin-left: 4px; }
.video-card:hover .play-btn, .play-btn:hover { transform: scale(1.1); background: var(--indigo); color: #fff; }
.play-btn--sm { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
.play-btn--sm svg { width: 18px; height: 18px; }
.play-btn--inline { position: relative; top: auto; left: auto; margin: 0; width: 56px; height: 56px; flex: none; }

/* --------------------------------------------------------------------------
   Témoignages
   -------------------------------------------------------------------------- */
.testimonials { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-64); align-items: center; }
.quote-slider { position: relative; min-height: 330px; }
.quote {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.8s var(--ease), visibility 0.7s;
}
.quote.is-active { opacity: 1; visibility: visible; transform: none; position: relative; }
.quote blockquote { font-size: clamp(20px, 2vw, 26px); line-height: 1.35; letter-spacing: -0.015em; font-weight: 300; text-wrap: pretty; }
.quote blockquote::before { content: "“"; display: block; font-size: 72px; line-height: 0.6; color: var(--lavender); margin-bottom: 12px; }
.quote figcaption { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.quote figcaption img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 1px solid var(--on-dark-line); }
.quote figcaption b { display: block; font-weight: 400; }
.quote figcaption span { font-size: 14px; color: var(--on-dark-muted); }
.slider-ctrl { display: flex; align-items: center; gap: 16px; margin-top: 32px; }
.slider-dots { display: flex; gap: 8px; }
.slider-dots button { width: 32px; height: 3px; border-radius: 3px; background: var(--on-dark-line); position: relative; overflow: hidden; }
.slider-dots button i { position: absolute; inset: 0; background: var(--lavender); transform-origin: 0 50%; transform: scaleX(0); }
.slider-dots button.is-active i { animation: dot-fill var(--slide-ms, 6000ms) linear forwards; }
.slider-dots button.is-done i { transform: scaleX(1); }
@keyframes dot-fill { to { transform: scaleX(1); } }
.slider-arrows { display: flex; gap: 8px; margin-left: auto; }
.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--frost);
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.icon-btn:hover { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.icon-btn svg { width: 18px; height: 18px; }
.section--dark .icon-btn { border-color: var(--on-dark-line); color: #fff; }

.alumni-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.alumni {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--frost);
  border-radius: var(--radius);
  transition: border-color 0.3s var(--ease), background-color 0.3s;
}
.alumni:hover { border-color: var(--lavender); background: var(--mist); }
.alumni img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.alumni b { display: block; font-weight: 400; font-size: 14px; }
.alumni span { font-size: 12px; color: var(--slate); }

/* --------------------------------------------------------------------------
   Galerie (maçonnerie) & affiches
   -------------------------------------------------------------------------- */
.masonry { columns: 4 260px; column-gap: 16px; }
.masonry figure {
  break-inside: avoid;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: zoom-in;
  background: var(--frost);
}
.masonry img { width: 100%; transition: transform 1s var(--ease), filter 0.6s var(--ease); }
.masonry figure:hover img { transform: scale(1.06); }
.masonry figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 36px 16px 14px;
  color: #fff;
  font-size: 14px;
  background: linear-gradient(180deg, transparent, rgba(6, 27, 49, 0.85));
  transform: translateY(100%);
  transition: transform 0.5s var(--ease);
}
.masonry figure:hover figcaption, .masonry figure:focus-visible figcaption { transform: none; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }

.posters { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px var(--gutter) 24px; scrollbar-width: thin; }
.posters::-webkit-scrollbar { height: 4px; }
.posters::-webkit-scrollbar-thumb { background: var(--lilac); border-radius: 4px; }
.poster {
  flex: none;
  width: clamp(240px, 26vw, 340px);
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--frost);
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease);
  cursor: zoom-in;
}
.poster img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.poster--wide { width: clamp(320px, 42vw, 620px); }
.poster--wide img { aspect-ratio: 16 / 9; }
.poster .poster-tag { position: absolute; left: 12px; top: 12px; }

/* Affiche « construite » en HTML */
.poster-built {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  padding: 40px;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  isolation: isolate;
}
.poster-built > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0.9; }
.poster-built::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(160deg, rgba(83, 58, 253, 0.92) 0%, rgba(6, 27, 49, 0.55) 55%, rgba(6, 27, 49, 0.92) 100%); }
.poster-built .pb-big { font-size: clamp(56px, 7vw, 108px); line-height: 0.88; letter-spacing: -0.05em; font-weight: 300; }
.poster-built .pb-big em { font-style: normal; color: var(--lavender); }

/* --------------------------------------------------------------------------
   Formulaires
   -------------------------------------------------------------------------- */
.form-card {
  position: relative;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--frost);
  border-radius: 6px;
  padding: 32px;
}
.form-card--glow { border-color: transparent; }
.form-card--glow::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 7px;
  padding: 1px;
  background: conic-gradient(from var(--angle, 0deg), var(--indigo), var(--indigo-hover), var(--warm), var(--lavender), var(--indigo));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: spin-angle 6s linear infinite;
  pointer-events: none;
}
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin-angle { to { --angle: 360deg; } }
.form-card .fc-head { margin-bottom: 24px; }
.form-card .fc-head .h4 { margin: 8px 0 6px; }
.form-card .fc-head p { font-size: 14px; color: var(--slate); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; position: relative; }
.field label, .field .label { font-size: 13px; font-weight: 400; color: var(--ink); }
.field label .opt { color: var(--smoke); font-weight: 300; }
.input, .select, .textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--frost);
  border-radius: var(--radius);
  background: #fff;
  font-size: 15px;
  font-weight: 300;
  color: var(--ink);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s;
  appearance: none;
  -webkit-appearance: none;
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%23533afd' stroke-width='1.5'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.input::placeholder, .textarea::placeholder { color: #9aa8bd; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--lilac); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px var(--wash);
}
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: #df1b41; }
.field .error-msg {
  font-size: 12px;
  color: #df1b41;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease);
}
.field.has-error .error-msg { max-height: 40px; }
.field.has-error { animation: shake 0.4s var(--ease); }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }

.segmented { display: flex; flex-wrap: wrap; gap: 6px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--frost);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 400;
  transition: all 0.25s var(--ease);
}
.segmented input:hover + span { border-color: var(--lavender); }
.segmented input:checked + span { background: var(--indigo); color: #fff; border-color: var(--indigo); }
.segmented input:focus-visible + span { outline: 2px solid var(--indigo); outline-offset: 2px; }

.form-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
.form-note { margin-top: 14px; font-size: 12px; color: var(--slate); display: flex; gap: 8px; align-items: flex-start; }
.form-note svg { width: 14px; height: 14px; flex: none; color: var(--indigo); margin-top: 2px; }
.btn-wa-solid { --btn-bg: #1fb855; --btn-fg: #fff; }
.btn-wa-solid:hover { --btn-bg: #25d366; }

.form-success {
  display: none;
  text-align: center;
  padding: 24px 8px;
}
.form-card.is-sent form { display: none; }
.form-card.is-sent .form-success { display: block; animation: rise 0.7s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.success-check { width: 72px; height: 72px; margin: 0 auto 20px; }
.success-check circle { fill: var(--wash); }
.success-check path { fill: none; stroke: var(--indigo); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 0.8s var(--ease) 0.3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* --------------------------------------------------------------------------
   Onglets (programme par semestre)
   -------------------------------------------------------------------------- */
.tabs-list {
  position: relative;
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--mist);
  border: 1px solid var(--frost);
  border-radius: 6px;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs-list::-webkit-scrollbar { display: none; }
.tab {
  position: relative;
  z-index: 1;
  min-height: 40px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 400;
  color: var(--steel);
  white-space: nowrap;
  transition: color 0.3s var(--ease);
}
.tab[aria-selected="true"] { color: #fff; }
.tab-indicator {
  position: absolute;
  z-index: 0;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  border-radius: var(--radius);
  background: var(--indigo);
  transition: transform 0.5s var(--ease), width 0.5s var(--ease);
}
.tab-panel { margin-top: 32px; }
.tab-panel[hidden] { display: none; }
.tab-panel.is-entering > * { animation: rise 0.6s var(--ease) both; }
.tab-panel.is-entering > *:nth-child(2) { animation-delay: 0.06s; }
.tab-panel.is-entering > *:nth-child(3) { animation-delay: 0.12s; }
.tab-panel.is-entering > *:nth-child(4) { animation-delay: 0.18s; }
.tab-panel.is-entering > *:nth-child(5) { animation-delay: 0.24s; }

.ue-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ue {
  position: relative;
  padding: 24px;
  border: 1px solid var(--frost);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.3s var(--ease), transform 0.4s var(--ease);
}
.ue:hover { border-color: var(--lavender); transform: translateY(-3px); }
.ue-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.ue-code { font-size: 12px; letter-spacing: 0.06em; color: var(--smoke); text-transform: uppercase; }
.ue-cr { font-size: 13px; color: var(--indigo); font-weight: 400; white-space: nowrap; }
.ue h4 { font-size: 19px; font-weight: 300; letter-spacing: -0.012em; line-height: 1.25; }
.ue-bar { height: 3px; background: var(--frost); border-radius: 3px; margin: 14px 0; overflow: hidden; }
.ue-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--indigo), var(--indigo-hover)); width: 0; transition: width 1.2s var(--ease) 0.2s; border-radius: 3px; }
.tab-panel:not([hidden]) .ue-bar i { width: var(--w); }
.ue ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.ue li { font-size: 14px; color: var(--steel); display: flex; gap: 8px; }
.ue li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--lavender); flex: none; margin-top: 9px; }
.sem-summary { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 20px; font-size: 14px; color: var(--slate); }
.sem-summary b { color: var(--ink); font-weight: 400; }

/* --------------------------------------------------------------------------
   Accordéon (FAQ)
   -------------------------------------------------------------------------- */
.accordion { border-top: 1px solid var(--frost); }
.acc-item { border-bottom: 1px solid var(--frost); }
.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  text-align: left;
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 300;
  letter-spacing: -0.012em;
  transition: color 0.25s var(--ease);
}
.acc-trigger:hover { color: var(--indigo); }
.acc-icon { position: relative; width: 28px; height: 28px; flex: none; border: 1px solid var(--lilac); border-radius: 50%; transition: transform 0.5s var(--ease), background-color 0.3s; }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; margin: -0.75px 0 0 -5px; background: var(--indigo); transition: transform 0.4s var(--ease); }
.acc-icon::after { transform: rotate(90deg); }
.acc-item.is-open .acc-icon { transform: rotate(180deg); background: var(--wash); }
.acc-item.is-open .acc-icon::after { transform: rotate(0); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.acc-panel > div { overflow: hidden; }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel .acc-body { padding: 0 48px 24px 0; color: var(--steel); }
.acc-body ul { margin: 8px 0 0; padding-left: 18px; }

/* --------------------------------------------------------------------------
   Étapes / chronologie
   -------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 22px; left: 22px; right: 22px; height: 1px; background: var(--frost); }
.steps .step-line { position: absolute; top: 22px; left: 22px; height: 1px; width: 0; background: var(--indigo); transition: width 2s var(--ease) 0.3s; }
.steps.is-inview .step-line { width: calc(100% - 44px); }
.step { position: relative; }
.step .step-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--lilac);
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 15px;
  color: var(--indigo);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s;
}
.steps.is-inview .step .step-dot { background: var(--indigo); color: #fff; border-color: var(--indigo); }
.steps.is-inview .step:nth-child(3) .step-dot { transition-delay: 0.5s; }
.steps.is-inview .step:nth-child(4) .step-dot { transition-delay: 1s; }
.steps.is-inview .step:nth-child(5) .step-dot { transition-delay: 1.5s; }
.step h3 { font-size: 20px; font-weight: 300; letter-spacing: -0.012em; margin-bottom: 8px; }
.step p { color: var(--steel); font-size: 15px; }

.timeline { position: relative; display: grid; gap: 40px; padding-left: 36px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1px; background: var(--frost); }
.timeline-item { position: relative; }
.timeline-item::before { content: ""; position: absolute; left: -36px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 1px solid var(--indigo); transition: background-color 0.5s var(--ease); }
.timeline-item.is-inview::before { background: var(--indigo); }
.timeline-item .t-date { font-size: 13px; color: var(--indigo); letter-spacing: 0.04em; margin-bottom: 6px; }
.timeline-item h3 { font-size: 22px; font-weight: 300; letter-spacing: -0.015em; margin-bottom: 6px; }
.timeline-item p { color: var(--steel); }

/* --------------------------------------------------------------------------
   Faits clés (landing)
   -------------------------------------------------------------------------- */
.facts {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid var(--frost);
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}
.fact { padding: 24px; border-right: 1px solid var(--frost); transition: background-color 0.3s var(--ease); }
.fact:last-child { border-right: 0; }
.fact:hover { background: var(--mist); }
.fact svg { width: 22px; height: 22px; color: var(--indigo); margin-bottom: 14px; }
.fact b { display: block; font-size: 20px; font-weight: 300; letter-spacing: -0.015em; line-height: 1.2; }
.fact span { font-size: 13px; color: var(--slate); }
.facts-wrap { position: relative; z-index: 2; margin-top: -56px; }

.job-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.job {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--frost);
  border-radius: var(--radius);
  background: #fff;
  font-weight: 300;
  transition: border-color 0.3s var(--ease), transform 0.45s var(--ease), background-color 0.3s;
}
.job:hover { border-color: var(--lavender); transform: translateX(6px); background: var(--mist); }
.job .job-ico { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--wash); color: var(--indigo); flex: none; transition: transform 0.5s var(--ease); }
.job:hover .job-ico { transform: rotate(-12deg); }
.job .job-ico svg { width: 18px; height: 18px; }

.comp-list { counter-reset: comp; display: grid; gap: 0; }
.comp {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--frost);
  transition: padding 0.4s var(--ease);
}
.comp:last-child { border-bottom: 1px solid var(--frost); }
.comp:hover { padding-left: 8px; }
.comp::before { counter-increment: comp; content: counter(comp, decimal-leading-zero); font-size: 14px; color: var(--indigo); padding-top: 3px; }
.comp b { font-weight: 400; color: var(--ink); }
.comp p { color: var(--steel); }

/* --------------------------------------------------------------------------
   Bandeau CTA
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  padding: clamp(40px, 6vw, 80px);
  color: #fff;
  isolation: isolate;
  background: var(--indigo);
}
.cta-band .gradient-canvas { z-index: -1; }
.cta-band .h2, .cta-band .h1 { color: #fff; }
.cta-band .lead { color: rgba(255, 255, 255, 0.86); }
.cta-band-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 48px; align-items: center; }

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */
.site-footer { background: var(--mist); border-top: 1px solid var(--frost); padding: var(--s-80) 0 var(--s-32); }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; }
.footer-brand p { color: var(--slate); font-size: 14px; margin: 16px 0 20px; max-width: 34ch; }
.footer-col h4 { font-size: 12px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--smoke); margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--steel); transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--indigo); }
.footer-contact li { display: flex; gap: 10px; font-size: 14px; color: var(--steel); }
.footer-contact svg { width: 16px; height: 16px; color: var(--indigo); flex: none; margin-top: 3px; }
.socials { display: flex; gap: 8px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--frost); display: grid; place-items: center; color: var(--steel); background: #fff; transition: all 0.3s var(--ease); }
.socials a:hover { background: var(--indigo); border-color: var(--indigo); color: #fff; transform: translateY(-3px); }
.socials svg { width: 16px; height: 16px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--frost); font-size: 13px; color: var(--slate); }
.footer-giant {
  font-size: clamp(64px, 15vw, 220px);
  line-height: 0.8;
  letter-spacing: -0.06em;
  font-weight: 300;
  color: transparent;
  -webkit-text-stroke: 1px var(--lilac);
  margin-top: 48px;
  white-space: nowrap;
  overflow: hidden;
  user-select: none;
}

/* --------------------------------------------------------------------------
   WhatsApp flottant & barre CTA mobile
   -------------------------------------------------------------------------- */
.wa-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
}
.wa-fab .wa-bubble {
  background: #fff;
  border: 1px solid var(--frost);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink);
  max-width: 220px;
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.wa-fab.show-bubble .wa-bubble, .wa-fab:hover .wa-bubble { opacity: 1; transform: none; }
.wa-fab .wa-btn {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #1fb855;
  color: #fff;
  display: grid;
  place-items: center;
  transition: transform 0.4s var(--ease), background-color 0.3s;
}
.wa-fab .wa-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: ripple 2.4s var(--ease) infinite;
}
.wa-fab .wa-btn:hover { transform: scale(1.08) rotate(-6deg); background: #25d366; }
.wa-fab .wa-btn svg { width: 30px; height: 30px; }

.mobile-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 41;
  display: none;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--frost);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateY(110%);
  transition: transform 0.5s var(--ease);
}
.mobile-cta.is-visible { transform: none; }
.mobile-cta .btn { flex: 1; min-height: 48px; }

/* --------------------------------------------------------------------------
   Modale vidéo & visionneuse
   -------------------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(6, 27, 49, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal-inner {
  position: relative;
  width: min(1100px, 100%);
  transform: scale(0.94) translateY(20px);
  transition: transform 0.6s var(--ease);
}
.modal.is-open .modal-inner { transform: none; }
.modal-media { aspect-ratio: 16 / 9; background: #000; border-radius: 6px; overflow: hidden; }
.modal-media video, .modal-media iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal-media img { width: 100%; height: 100%; object-fit: contain; }
.modal--lightbox .modal-media { aspect-ratio: auto; background: transparent; max-height: 84vh; display: grid; place-items: center; }
.modal--lightbox .modal-media img { max-height: 84vh; width: auto; border-radius: 4px; }
.modal-close {
  position: absolute;
  top: -52px;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  display: grid;
  place-items: center;
  transition: background-color 0.3s, transform 0.4s var(--ease);
}
.modal-close:hover { background: rgba(255, 255, 255, 0.15); transform: rotate(90deg); }
.modal-close svg { width: 16px; height: 16px; }
.modal-caption { color: rgba(255, 255, 255, 0.8); font-size: 14px; margin-top: 14px; text-align: center; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: -64px; }
.lb-next { right: -64px; }
.modal .icon-btn { border-color: rgba(255, 255, 255, 0.3); color: #fff; }

/* Curseur « Voir » */
.cursor-bubble {
  position: fixed;
  top: 0; left: 0;
  z-index: 250;
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  border-radius: 50%;
  background: var(--indigo);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 400;
  pointer-events: none;
  transform: translate3d(var(--cx, -200px), var(--cy, -200px), 0) scale(0);
  transition: transform 0.35s var(--ease);
}
.cursor-bubble.is-active { transform: translate3d(var(--cx), var(--cy), 0) scale(1); }

/* --------------------------------------------------------------------------
   Animations d'apparition au défilement
   -------------------------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="left"] { transform: translate3d(-40px, 0, 0); }
.js [data-reveal="right"] { transform: translate3d(40px, 0, 0); }
.js [data-reveal="zoom"] { transform: scale(0.94); }
.js [data-reveal].is-inview { opacity: 1; transform: none; }
.js [data-reveal="clip"], .js [data-reveal="clip-x"] { opacity: 1; transform: none; }

/* Titres découpés mot à mot */
.split-word { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split-word > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 45ms + var(--d, 0s)); }
.is-inview .split-word > span, .split-done .split-word > span { transform: none; }

/* Survol 3D */
[data-tilt] { transform-style: preserve-3d; }

/* --------------------------------------------------------------------------
   Divers
   -------------------------------------------------------------------------- */
.badge-row { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.kv { display: grid; gap: 2px; }
.kv b { font-weight: 400; }
.kv span { color: var(--slate); font-size: 14px; }
.media-rounded { border-radius: var(--radius); overflow: hidden; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-1x1 { aspect-ratio: 1; }
.cover { width: 100%; height: 100%; object-fit: cover; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; } .mt-64 { margin-top: 64px; }
.mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; } .mb-48 { margin-bottom: 48px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.map-frame { border: 1px solid var(--frost); border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--mist); }
.map-frame { position: relative; background-size: cover; background-position: center; }
.map-frame iframe { position: relative; width: 100%; height: 100%; border: 0; filter: grayscale(0.35) contrast(1.05); }
.map-link { position: absolute; left: 16px; bottom: 16px; z-index: 2; min-height: 40px; padding: 10px 16px; border: 1px solid var(--frost); }
.contact-card { display: flex; gap: 16px; align-items: flex-start; }
.contact-card .card-icon { margin-bottom: 0; flex: none; }
.contact-card a { color: var(--indigo); overflow-wrap: anywhere; }
.notice {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--wash);
  color: var(--deep);
  font-size: 14px;
}
.notice svg { width: 18px; height: 18px; color: var(--indigo); flex: none; margin-top: 2px; }
.empty-state { display: none; padding: 48px; text-align: center; color: var(--slate); border: 1px dashed var(--lilac); border-radius: 6px; }
.empty-state.is-visible { display: block; }
.search-box { position: relative; max-width: 520px; }
.search-box svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--smoke); pointer-events: none; }
.search-box .input { padding-left: 46px; min-height: 52px; font-size: 16px; }

/* --------------------------------------------------------------------------
   Adaptatif
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .nav-menu .nav-link { padding: 0 9px; }
  .nav-actions .btn-ghost { display: none; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-right: 0; }
  .fact:nth-child(-n + 3) { border-bottom: 1px solid var(--frost); }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  :root { --header-h: 64px; }
  .nav-menu, .nav-actions { display: none; }
  .menu-toggle { display: block; }
  .hero-home .hero-inner, .hero-video-inner, .split, .split--wide-left, .testimonials, .story, .cta-band-inner, .section-head--split { grid-template-columns: minmax(0, 1fr); }
  .hero-home { padding-top: 40px; min-height: 0; }
  .hero-home .hero-stage { width: 130%; right: -30%; top: auto; bottom: -2%; height: 44%; transform: skewY(-8deg); transform-origin: top left; border-radius: 0; }
  .hero-media { margin: 24px 12px 32px; }
  .story-sticky { position: relative; top: 0; }
  .grid-4, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .alumni-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .steps::before, .steps .step-line { display: none; }
  .hero-light .hero-stage { inset: auto -20% -60% 20%; height: 70%; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
  .lb-nav { z-index: 2; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; --s-96: 72px; --s-80: 56px; --s-64: 44px; }
  .section { padding-block: var(--s-96); }
  .grid-2, .grid-3, .grid-4, .ue-grid, .job-list, .form-grid, .form-actions { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding-right: 12px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact { border-right: 1px solid var(--frost); border-bottom: 1px solid var(--frost); padding: 18px; }
  .fact:nth-child(2n) { border-right: 0; }
  .fact:nth-child(3) { border-right: 1px solid var(--frost); }
  .fact:nth-last-child(-n + 2) { border-bottom: 0; }
  .facts-wrap { margin-top: -40px; }
  .form-card { padding: 24px 20px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .float-card { min-width: 0; padding: 12px 14px; }
  .float-card .fc-value { font-size: 22px; }
  .float-card--a { right: -8px; top: -28px; }
  .float-card--b { left: -8px; top: auto; bottom: -32px; }
  .float-card--c { display: none; }
  .hero-trust b { font-size: 24px; }
  .cycle-card { min-height: 380px; padding: 24px; }
  .collage { grid-template-rows: repeat(6, 44px); }
  .mobile-cta { display: flex; }
  .js [data-reveal="right"], .js [data-reveal="left"] { transform: translate3d(0, 28px, 0); }
  .wa-fab { bottom: 16px; right: 14px; transition: opacity .4s var(--ease), transform .4s var(--ease); }
  .cta-bar-on .wa-fab { opacity: 0; transform: scale(.6); pointer-events: none; }
  .hero-home .hero-trust { display: none; }
  .float-card--b { display: none !important; }
  .filter-bar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-bar .chip { flex: none; }
  .hero-light .hero-stage { inset: auto -20% -24px -20%; height: 120px; transform: skewY(-6deg); border-radius: 0; }
  .hero-light { padding-bottom: 88px; }
  .wa-fab .wa-btn { width: 54px; height: 54px; }
  .wa-fab .wa-bubble { display: none; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .big-split { gap: 20px; }
  .hero-video { padding-top: calc(var(--header-h) + 56px); }
  .video-toggle { display: none; }
  .scroll-cue { display: none; }
  .modal-close { top: -48px; }
  .acc-panel .acc-body { padding-right: 0; }
  .announce a { font-size: 12px; gap: 8px; }
  .announce .hide-sm { display: none; }
  .tabs-list { width: 100%; }
  .alumni-grid { grid-template-columns: 1fr; }
  .masonry { columns: 2 140px; column-gap: 10px; }
  .masonry figure { margin-bottom: 10px; }
  .hscroll-track > * { width: 82vw; }
}

@media (hover: none) {
  .program-card .pc-go { opacity: 1; transform: none; }
  .cycle-card .cc-more { grid-template-rows: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .split-word > span { transform: none; }
  .marquee-track { animation: none; }
}
