/* =========================================================
   CEFIB — site vitrine
   ========================================================= */

/* ---------- Polices (auto-hébergées) ---------- */
@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/inter-tight-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  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";
  src: url("../fonts/inter-tight-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  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: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin-ext.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  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: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic-latin-ext.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Jetons ---------- */
:root {
  --paper: #f5f5f0;
  --paper-2: #ebece5;
  --white: #fff;
  --ink: #14181b;
  --ink-2: #2a3034;
  --muted: #59626a;
  --line: rgba(20, 24, 27, 0.12);
  --line-strong: rgba(20, 24, 27, 0.22);

  --grey: #7e8a93;          /* gris du logo */
  --green: #80bc4a;         /* vert du logo */
  --green-deep: #3b7520;    /* vert lisible sur fond clair */
  --green-soft: #e4efd8;

  --night: #111518;
  --night-2: #1b2024;
  --night-line: rgba(255, 255, 255, 0.12);
  --night-muted: #a6b0b7;

  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --pad: clamp(20px, 4vw, 56px);
  --max: 1320px;
  --radius: 18px;
  --header-h: 76px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.7, 0, 0.2, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }

::selection { background: var(--green); color: var(--ink); }

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

.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;
}

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white);
  padding: 10px 16px; border-radius: 999px;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--pad) * 2);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: clamp(96px, 13vw, 180px); position: relative; }

/* ---------- Typographie ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow__num {
  display: inline-grid;
  place-items: center;
  min-width: 2.6em;
  height: 1.9em;
  padding-inline: 0.5em;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.eyebrow--light { color: var(--night-muted); }
.eyebrow--light .eyebrow__num { color: var(--white); border-color: var(--night-line); }

.dot {
  width: 8px; height: 8px;
  background: var(--green);
  transform: rotate(45deg);
  flex: none;
}

.h2 {
  font-size: clamp(2.3rem, 5.2vw, 4.6rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.035em;
  margin-top: 22px;
  text-wrap: balance;
}
.h2 em { font-size: 1.08em; letter-spacing: -0.01em; color: var(--green-deep); }

.lead {
  font-size: clamp(1.08rem, 1.35vw, 1.25rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 38ch;
  text-wrap: pretty;
}

.link {
  display: inline-block;
  font-weight: 500;
  color: var(--ink);
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.4s var(--ease), color 0.2s;
}
.link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- Boutons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn--sm { height: 44px; padding: 0 20px; font-size: 0.95rem; }
.btn__arrow { width: 18px; height: 18px; transition: transform 0.4s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--primary { background: var(--ink); color: var(--white); }
.btn--primary:hover { background: var(--green); color: var(--ink); }

.btn--ghost { border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }

.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--green); }

.btn--outline-light { border-color: rgba(255, 255, 255, 0.35); color: var(--white); }
.btn--outline-light:hover { border-color: var(--white); }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease), color 0.4s var(--ease), transform 0.5s var(--ease);
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand { flex: none; display: block; }
.brand img { height: 52px; width: auto; }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: 4px; }
.nav__list a {
  position: relative;
  display: block;
  padding: 8px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 999px;
  transition: background-color 0.3s var(--ease), color 0.3s;
}
.nav__list a:hover { background: rgba(20, 24, 27, 0.06); }
.nav__list a.is-current::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 2px;
  width: 5px; height: 5px;
  background: var(--green);
  transform: translateX(-50%) rotate(45deg);
}

.site-header.is-solid {
  background: rgba(245, 245, 240, 0.82);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-dark { color: var(--white); }
.site-header.is-solid.is-dark { background: rgba(17, 21, 24, 0.78); box-shadow: 0 1px 0 var(--night-line); }
.site-header.is-dark .nav__list a:hover { background: rgba(255, 255, 255, 0.12); }
.site-header.is-dark .site-header__cta { background: var(--white); color: var(--ink); }
.site-header.is-dark .site-header__cta:hover { background: var(--green); }
.site-header.is-dark .menu-toggle__bar { background: var(--white); }

/* Intro de l’en-tête */
.js .site-header { opacity: 0; transform: translateY(-12px); }
.js.is-loaded .site-header { opacity: 1; transform: none; transition: opacity 0.9s var(--ease) 0.5s, transform 0.9s var(--ease) 0.5s, background-color 0.4s, box-shadow 0.4s, color 0.4s; }

.menu-toggle {
  display: none;
  position: relative;
  width: 46px; height: 46px;
  margin-left: auto;
  border: 0; background: transparent;
  cursor: pointer;
}
.menu-toggle__bar {
  position: absolute;
  left: 12px; right: 12px;
  height: 1.6px;
  background: var(--ink);
  transition: transform 0.4s var(--ease), background-color 0.3s;
}
.menu-toggle__bar:nth-child(2) { transform: translateY(-4px); }
.menu-toggle__bar:nth-child(3) { transform: translateY(4px); }
.menu-open .menu-toggle__bar:nth-child(2) { transform: rotate(45deg); }
.menu-open .menu-toggle__bar:nth-child(3) { transform: rotate(-45deg); }
.menu-open .site-header { color: var(--ink); background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.menu-open .site-header .menu-toggle__bar { background: var(--ink); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--paper);
  padding: calc(var(--header-h) + 24px) var(--pad) 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; }
.mobile-menu ul { display: grid; gap: 4px; }
.mobile-menu nav a {
  display: block;
  font-size: clamp(2rem, 9vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
  padding-block: 4px;
}
.mobile-menu__foot { display: grid; gap: 18px; justify-items: start; color: var(--muted); }

/* =========================================================
   Héros
   ========================================================= */
.hero { position: relative; height: 100vh; height: 100svh; }
.js .hero { height: 250vh; height: 250svh; }
.js.reduced-motion .hero { height: 100vh; height: 100svh; }

.hero__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--paper);
}

.hero__media {
  position: absolute;
  inset: 0;
  /* Valeur sans JS : losange à droite */
  clip-path: polygon(72% 22%, 90% 50%, 72% 78%, 54% 50%);
  will-change: clip-path;
  background: var(--paper-2);
}
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  transform-origin: 50% 50%;
  will-change: transform;
}
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 13, 15, 0.5) 0%, rgba(10, 13, 15, 0) 22%),
    linear-gradient(90deg, rgba(10, 13, 15, 0.62) 0%, rgba(10, 13, 15, 0.25) 50%, rgba(10, 13, 15, 0) 75%),
    linear-gradient(0deg, rgba(10, 13, 15, 0.82) 0%, rgba(10, 13, 15, 0.4) 40%, rgba(10, 13, 15, 0) 72%);
  opacity: 0;
}

.hero__gems { position: absolute; inset: 0; pointer-events: none; }
.gem {
  position: absolute;
  left: 0; top: 0;
  width: 100px; height: 100px;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}
.gem i {
  display: block;
  width: 100%; height: 100%;
  background: var(--green);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.js .gem i { transform: scale(0); }
.js.is-loaded .gem i { transform: scale(1); transition: transform 1.1s var(--ease); }
.js.is-loaded .gem:nth-child(1) i { transition-delay: 0.55s; }
.js.is-loaded .gem:nth-child(2) i { transition-delay: 0.7s; }
.js.is-loaded .gem:nth-child(3) i { transition-delay: 0.85s; }
.js.reduced-motion .gem i { transform: none; transition: none; }
html:not(.js) .hero__gems { display: none; }

.hero__layout {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  pointer-events: none;
}
.hero__content { max-width: min(46vw, 640px); pointer-events: auto; will-change: opacity, transform; }
.hero__eyebrow { margin-bottom: 28px; }
.hero__title {
  font-size: clamp(3.3rem, 7.4vw, 8.4rem);
  line-height: 0.9;
  font-weight: 500;
  letter-spacing: -0.045em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero__title .line > span { display: inline-block; }
.hero__title em {
  font-size: 1.1em;
  letter-spacing: -0.02em;
  color: var(--green-deep);
  padding-right: 0.06em;
}
.hero__lead {
  margin-top: 30px;
  max-width: 34ch;
  font-size: clamp(1.05rem, 1.25vw, 1.2rem);
  color: var(--muted);
  line-height: 1.55;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Intro du héros */
.js .hero__title .line > span { transform: translateY(105%); }
.js .hero__eyebrow, .js .hero__lead, .js .hero__actions { opacity: 0; transform: translateY(16px); }
.js.is-loaded .hero__title .line > span { transform: none; transition: transform 1.2s var(--ease); }
.js.is-loaded .hero__title .line:nth-child(2) > span { transition-delay: 0.08s; }
.js.is-loaded .hero__title .line:nth-child(3) > span { transition-delay: 0.16s; }
.js.is-loaded .hero__eyebrow,
.js.is-loaded .hero__lead,
.js.is-loaded .hero__actions { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js.is-loaded .hero__eyebrow { transition-delay: 0.1s; }
.js.is-loaded .hero__lead { transition-delay: 0.45s; }
.js.is-loaded .hero__actions { transition-delay: 0.55s; }

.hero__caption {
  position: absolute;
  left: 0; right: 0; bottom: clamp(48px, 9vh, 96px);
  margin-inline: auto;
  color: var(--white);
  opacity: 0;
  pointer-events: none;
}
.hero__caption-title {
  margin-top: 18px;
  font-size: clamp(2rem, 4.6vw, 4.4rem);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.035em;
  max-width: 17ch;
  text-wrap: balance;
}
.hero__caption-title em { color: #b9e394; font-size: 1.06em; }
.hero__caption .eyebrow { color: rgba(255, 255, 255, 0.85); }
html:not(.js) .hero__caption, .reduced-motion .hero__caption { display: none; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__scroll-line {
  position: relative;
  width: 1px; height: 44px;
  background: var(--line-strong);
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 40%;
  background: var(--ink);
  animation: scroll-hint 2.2s var(--ease-io) infinite;
}
@keyframes scroll-hint {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(260%); }
}
.js .hero__scroll { opacity: 0; transition: opacity 0.8s var(--ease) 1.2s; }
.js.is-loaded .hero__scroll { opacity: 1; }
.js.is-loaded .hero__scroll.is-hidden { opacity: 0; transition-delay: 0s; }

/* =========================================================
   Apparitions au défilement
   ========================================================= */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Images révélées en losange (rappel du logo) */
[data-diamond] { overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
[data-diamond] img { width: 100%; height: 100%; object-fit: cover; }
.js [data-diamond] {
  clip-path: polygon(50% 38%, 62% 50%, 50% 62%, 38% 50%);
  transition: clip-path 1.5s var(--ease-io);
  transition-delay: var(--d, 0s);
}
.js [data-diamond] img { transform: scale(1.25); transition: transform 2s var(--ease); transition-delay: var(--d, 0s); }
.js [data-diamond].is-in { clip-path: polygon(50% -60%, 160% 50%, 50% 160%, -60% 50%); }
.js [data-diamond].is-in img { transform: scale(1); }

.reduced-motion [data-reveal],
.reduced-motion [data-diamond],
.reduced-motion [data-diamond] img { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }

/* =========================================================
   01 — Le CEFIB
   ========================================================= */
.about { padding-top: clamp(110px, 14vw, 200px); }

.manifesto {
  margin-top: 36px;
  font-size: clamp(1.9rem, 4.2vw, 3.9rem);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.032em;
  max-width: 27ch;
  text-wrap: balance;
}
.manifesto em { color: var(--green-deep); font-size: 1.06em; }
.manifesto .w { transition: opacity 0.25s linear; }
.js .manifesto .w { opacity: 0.16; }
.reduced-motion .manifesto .w { opacity: 1 !important; }

.facts {
  margin-top: clamp(64px, 9vw, 120px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.fact {
  padding: 28px 28px 0 0;
  border-right: 1px solid var(--line);
  margin-right: 28px;
}
.fact:last-child { border-right: 0; margin-right: 0; }
.fact__value {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 5.4vw, 5.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.fact__label {
  margin-top: 16px;
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 26ch;
}

.approach {
  margin-top: clamp(96px, 12vw, 170px);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}
.approach__visual { position: relative; padding-bottom: 16%; }
.approach__img--main { aspect-ratio: 4 / 4.6; }
.approach__img--small {
  position: absolute;
  right: -6%;
  bottom: 0;
  width: 52%;
  aspect-ratio: 16 / 10;
  border: 8px solid var(--paper);
  border-radius: calc(var(--radius) + 6px);
}
.approach__img--small img { border-radius: calc(var(--radius) - 4px); }
.approach__text .lead { margin-top: 26px; }

.pillars { margin-top: 44px; display: grid; }
.pillar {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 18px;
  padding-block: 24px;
  border-top: 1px solid var(--line);
}
.pillar:last-child { border-bottom: 1px solid var(--line); }
.pillar__icon {
  width: 12px; height: 12px;
  margin-top: 9px;
  background: var(--green);
  transform: rotate(45deg);
  transition: transform 0.6s var(--ease);
}
.pillar:hover .pillar__icon { transform: rotate(225deg); }
.pillar h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.015em; }
.pillar p { margin-top: 6px; color: var(--muted); }

/* =========================================================
   02 — Formations
   ========================================================= */
.programs { background: var(--white); }
.programs__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 96px);
}
.programs__sticky { position: sticky; top: calc(var(--header-h) + 32px); }
.programs__aside .lead { margin-top: 24px; }

.programs__img { margin-top: 40px; aspect-ratio: 3 / 2; }

.program-list { counter-reset: none; border-top: 1px solid var(--line); }
.program {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr auto 44px;
  gap: 20px;
  align-items: center;
  padding: 28px 8px 28px 0;
  border-bottom: 1px solid var(--line);
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
}
.program::before {
  content: "";
  position: absolute;
  inset: 0 -16px;
  background: var(--paper);
  border-radius: 14px;
  opacity: 0;
  transform: scaleY(0.85);
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
  z-index: 0;
}
.program > * { position: relative; z-index: 1; }
.program:hover::before { opacity: 1; transform: none; }
.program__num {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--grey);
  font-variant-numeric: tabular-nums;
}
.program__title {
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.program__options { margin-top: 8px; font-size: 0.93rem; color: var(--muted); max-width: 52ch; }
.program__levels { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.program__levels li {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  white-space: nowrap;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
.program__levels li.is-muted { border-style: dashed; color: var(--muted); font-weight: 500; }
.program__levels li.is-match { background: var(--green); border-color: var(--green); color: var(--ink); }
.program__link {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition: background-color 0.35s var(--ease), color 0.35s, border-color 0.35s, transform 0.45s var(--ease);
}
.program__link::after { content: ""; position: absolute; inset: 0; }
.program__link svg { width: 18px; height: 18px; }
.program:hover .program__link { background: var(--ink); color: var(--white); border-color: var(--ink); transform: rotate(-45deg); }
.domain { padding-block: 34px; }
.domain .program__title { font-size: clamp(1.3rem, 2vw, 1.75rem); }
.domain__meta {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

.programs__note {
  margin-top: 36px;
  color: var(--muted);
  max-width: 56ch;
}
.programs__note .link { margin-left: 4px; }

/* =========================================================
   03 — Formations courtes (section sombre)
   ========================================================= */
.short { background: var(--night); color: var(--white); overflow: hidden; }
.short .h2 em { color: var(--green); }
.short .lead { color: var(--night-muted); }
.short__head {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: end;
}

.short__meta {
  margin-top: clamp(56px, 7vw, 88px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--night-line);
  border-bottom: 1px solid var(--night-line);
}
.short__meta li { padding: 26px 24px 26px 0; display: grid; gap: 4px; }
.short__meta li + li { padding-left: 24px; border-left: 1px solid var(--night-line); }
.short__meta strong { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.short__meta span { font-size: 0.92rem; color: var(--night-muted); }

.modules {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.module {
  position: relative;
  min-height: 210px;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--night-2);
  border: 1px solid var(--night-line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease);
}
.module::after {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 80px; height: 80px;
  background: var(--green);
  transform: rotate(45deg) scale(0.4);
  opacity: 0;
  transition: opacity 0.5s var(--ease), transform 0.7s var(--ease);
}
.module:hover { border-color: rgba(128, 188, 74, 0.5); }
.module:hover::after { opacity: 1; transform: rotate(45deg) scale(1); }
.module__num { font-family: var(--serif); font-size: 1.5rem; color: var(--green); }
.module h3 { font-size: 1.2rem; font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; max-width: 18ch; }
.module p { margin-top: 6px; font-size: 0.88rem; color: var(--night-muted); }
.module--cta { padding: 0; background: var(--green); border-color: var(--green); color: var(--ink); }
.module--cta::after { display: none; }
.module--cta a {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 26px;
}
.module--cta span { font-size: 0.88rem; font-weight: 500; opacity: 0.75; }
.module--cta strong { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; max-width: 14ch; }
.module--cta svg { width: 26px; height: 26px; transition: transform 0.4s var(--ease); }
.module--cta:hover { background: #8fcb58; }
.module--cta:hover svg { transform: translateX(6px); }

.services {
  margin-top: clamp(56px, 7vw, 96px);
  display: grid;
  grid-template-columns: 1fr 2.4fr;
  gap: 32px;
  align-items: start;
}
.services__title { font-size: 1.05rem; font-weight: 600; max-width: 20ch; }
.services__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
.services__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-block: 14px;
  border-top: 1px solid var(--night-line);
  color: var(--night-muted);
}
.services__list li::before {
  content: "";
  width: 7px; height: 7px;
  flex: none;
  background: var(--green);
  transform: rotate(45deg);
}

/* =========================================================
   04 — Campus
   ========================================================= */
.campus__head { max-width: 900px; }
.campus__grid {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
.campus__img { aspect-ratio: 4 / 3; }
.equip { margin-top: 36px; }
.equip li {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: baseline;
  gap: 16px;
  padding-block: 16px;
  border-top: 1px solid var(--line);
}
.equip li:last-child { border-bottom: 1px solid var(--line); }
.equip__value { font-family: var(--serif); font-size: 2.4rem; line-height: 1; }
.equip__label { color: var(--muted); }
.equip__value--mark { align-self: center; width: 10px; height: 10px; margin-left: 4px; background: var(--green); transform: rotate(45deg); }

/* =========================================================
   05 — Vie étudiante
   ========================================================= */
.life { overflow: hidden; background: var(--white); padding-bottom: clamp(72px, 9vw, 120px); }
.life__head .lead { margin-top: 24px; }
.life__rows { margin-top: clamp(56px, 7vw, 96px); display: grid; gap: 16px; }
.life__row {
  display: flex;
  gap: 16px;
  width: max-content;
  will-change: transform;
}
.life__row[data-life-row="2"] { margin-left: -18vw; }
.shot {
  position: relative;
  flex: none;
  height: clamp(220px, 26vw, 380px);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-2);
}
.shot img {
  height: 100%;
  width: auto;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.shot:hover img { transform: scale(1.04); }
.shot figcaption {
  position: absolute;
  left: 14px; bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(20, 24, 27, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 500;
}

/* =========================================================
   Admissions
   ========================================================= */
.admissions { padding-bottom: 0; }
.admissions__panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(32px, 5vw, 72px);
  border-radius: calc(var(--radius) + 10px);
  background: var(--night);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.admissions__panel::before {
  content: "";
  position: absolute;
  left: -12%; bottom: -55%;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(128, 188, 74, 0.28), rgba(128, 188, 74, 0));
  z-index: -1;
}
.admissions .h2 em { color: var(--green); }
.admissions .lead { margin-top: 24px; color: var(--night-muted); }
.admissions__img { aspect-ratio: 4 / 3.4; background: var(--night-2); }

/* =========================================================
   Contact
   ========================================================= */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}
.coords { margin-top: 44px; display: grid; }
.coords > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
}
.coords > div:last-child { border-bottom: 1px solid var(--line); }
.coords dt { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.coords dd { font-size: 1.08rem; }
.coords dd > a:not(.link) { font-weight: 500; transition: color 0.2s; }
.coords dd > a:not(.link):hover { color: var(--green-deep); }
.coords .link { margin-top: 8px; font-size: 0.95rem; }
.coords__hint { display: block; margin-top: 6px; font-size: 0.93rem; color: var(--muted); }
.coords__hint a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.socials { display: flex; gap: 10px; }
.socials a {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.socials a:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.socials svg { width: 18px; height: 18px; }

.form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 48px);
  border-radius: calc(var(--radius) + 6px);
  background: var(--white);
  box-shadow: 0 1px 0 var(--line), 0 30px 60px -40px rgba(20, 24, 27, 0.25);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field__label { font-size: 0.88rem; font-weight: 500; }
.field__opt { color: var(--muted); font-weight: 400; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  font-size: 1rem;
  transition: border-color 0.25s, background-color 0.25s, box-shadow 0.25s;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%2314181b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(128, 188, 74, 0.25);
}
.field.is-invalid input,
.field.is-invalid textarea { border-color: #b3261e; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 6px; }
.form__note { font-size: 0.88rem; color: var(--muted); max-width: 34ch; }
.form__note.is-error { color: #b3261e; }
.form__note.is-success { color: var(--green-deep); }

/* =========================================================
   Pied de page
   ========================================================= */
.contact { padding-bottom: clamp(72px, 9vw, 120px); }
.footer { padding-top: clamp(56px, 7vw, 96px); padding-bottom: 32px; background: var(--paper); border-top: 1px solid var(--line); }
.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.footer__brand img { height: 64px; width: auto; }
.footer__brand p { margin-top: 16px; color: var(--muted); max-width: 30ch; font-size: 0.95rem; }
.footer__motto {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  text-align: right;
}
.footer__motto em { color: var(--green-deep); }
.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-block: 48px;
}
.footer__title { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer__cols ul { display: grid; gap: 8px; }
.footer__cols a { transition: color 0.2s; }
.footer__cols a:hover { color: var(--green-deep); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}

/* =========================================================
   Page Filières
   ========================================================= */
.page-hero { padding: calc(var(--header-h) + clamp(56px, 8vw, 110px)) 0 clamp(56px, 7vw, 96px); }
.page-hero .eyebrow a { color: var(--ink); transition: color 0.2s; }
.page-hero .eyebrow a:hover { color: var(--green-deep); }
.page-hero .eyebrow span { color: var(--line-strong); }
.page-hero__title {
  margin-top: 26px;
  font-size: clamp(3rem, 7vw, 6.6rem);
  line-height: 0.95;
  font-weight: 500;
  letter-spacing: -0.045em;
}
.page-hero__title em { color: var(--green-deep); font-size: 1.06em; }
.page-hero .lead { margin-top: 28px; max-width: 52ch; }
.page-hero .container { position: relative; }
/* Rappel du logo : losange photo + trois losanges verts */
.page-hero__art {
  --s: clamp(110px, 11vw, 165px);
  position: absolute;
  right: var(--pad);
  top: 0;
  width: calc(var(--s) * 3.114);
  height: calc(var(--s) * 2);
  pointer-events: none;
}
.page-hero__diamond {
  position: absolute;
  left: 0; top: 0;
  width: calc(var(--s) * 2);
  height: calc(var(--s) * 2);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background: var(--paper-2);
}
.page-hero__diamond img { width: 100%; height: 100%; object-fit: cover; }
.gem--static {
  width: calc(var(--s) * 0.828);
  height: calc(var(--s) * 0.828);
  transform: none;
}
.gem--static:nth-of-type(1) { left: calc(var(--s) * 1.732); top: calc(var(--s) * 0.015); }
.gem--static:nth-of-type(2) { left: calc(var(--s) * 2.286); top: calc(var(--s) * 0.586); }
.gem--static:nth-of-type(3) { left: calc(var(--s) * 1.735); top: calc(var(--s) * 1.157); }
.js .page-hero__art .gem i { transform: scale(0); }
.js.is-loaded .page-hero__art .gem i { transform: scale(1); transition: transform 1.1s var(--ease); }
.js.is-loaded .page-hero__art .gem:nth-of-type(1) i { transition-delay: 0.3s; }
.js.is-loaded .page-hero__art .gem:nth-of-type(2) i { transition-delay: 0.45s; }
.js.is-loaded .page-hero__art .gem:nth-of-type(3) i { transition-delay: 0.6s; }
.js .page-hero__diamond { clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%); transition: clip-path 1.3s var(--ease-io) 0.1s; }
.js.is-loaded .page-hero__diamond { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.reduced-motion .page-hero__art .gem i { transform: none !important; }
.reduced-motion .page-hero__diamond { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%) !important; transition: none !important; }

.domain-nav {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.domain-nav a {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: baseline;
  height: 100%;
  padding: 22px 20px 22px 0;
  font-weight: 500;
  line-height: 1.3;
  transition: color 0.3s;
}
.domain-nav li + li a { padding-left: 20px; border-left: 1px solid var(--line); }
.domain-nav a span { font-family: var(--serif); font-size: 1.2rem; color: var(--grey); }
.domain-nav a em { font-family: var(--sans); font-style: normal; font-size: 0.8rem; color: var(--muted); }
.domain-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.domain-nav a:hover { color: var(--green-deep); }
.domain-nav a:hover::after { transform: scaleX(1); }

.track { padding-block: clamp(72px, 9vw, 130px); border-top: 1px solid var(--line); }
.track:nth-of-type(odd) { background: var(--white); }
.track__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 96px);
}
.track__sticky { position: sticky; top: calc(var(--header-h) + 32px); }
.track__aside .lead { margin-top: 22px; }
.track__img { margin-top: 36px; aspect-ratio: 4 / 3; max-width: 440px; }

.track__list { display: grid; gap: 16px; }
.course {
  padding: clamp(24px, 3vw, 36px);
  border-radius: calc(var(--radius) + 4px);
  background: var(--paper);
  border: 1px solid var(--line);
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.track:nth-of-type(even) .course { background: var(--white); }
.course:hover { border-color: rgba(128, 188, 74, 0.6); box-shadow: 0 24px 50px -36px rgba(20, 24, 27, 0.35); }
.course__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  align-items: baseline;
}
.course__num { font-family: var(--serif); font-size: 1.35rem; color: var(--grey); }
.course__title { font-size: clamp(1.25rem, 1.9vw, 1.6rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.course__head .program__levels { grid-column: 2; justify-content: flex-start; margin-top: 10px; }
.course__desc { margin-top: 18px; color: var(--muted); max-width: 60ch; }
.course__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.course__opts, .course__jobs { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.course__opts ul { display: flex; flex-wrap: wrap; gap: 8px; }
.course__opts li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 0.9rem;
  font-weight: 500;
}
.course__jobs ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px; }
.course__jobs li { display: flex; gap: 12px; align-items: baseline; font-size: 0.98rem; }
.course__jobs li::before {
  content: "";
  flex: none;
  width: 7px; height: 7px;
  background: var(--green);
  transform: translateY(-2px) rotate(45deg);
}
.course__cta { margin-top: 24px; font-size: 0.95rem; }
.track__disclaimer { margin-top: 24px; font-size: 0.85rem; color: var(--muted); }

@media (max-width: 960px) {
  .domain-nav { grid-template-columns: repeat(2, 1fr); }
  .domain-nav li:nth-child(3) a { padding-left: 0; border-left: 0; }
  .domain-nav li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .track__grid { grid-template-columns: 1fr; }
  .track__sticky { position: static; }
  .track__img { display: none; }
  .page-hero__art { display: none; }
}
@media (max-width: 640px) {
  .domain-nav { grid-template-columns: 1fr; }
  .domain-nav li + li a { padding-left: 0; border-left: 0; }
  .domain-nav li + li { border-top: 1px solid var(--line); }
  .course__jobs ul { grid-template-columns: 1fr; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .nav__list a { padding-inline: 10px; }
  .modules { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2) { border-right: 0; margin-right: 0; }
  .fact:nth-child(n + 3) { margin-top: 28px; border-top: 1px solid var(--line); }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .nav, .site-header__cta { display: none; }
  .menu-toggle { display: block; }
  .brand img { height: 38px; }

  .hero__layout { align-items: flex-start; padding-top: calc(var(--header-h) + 5vh); }
  .hero__content { max-width: 100%; }
  .hero__title { font-size: clamp(3rem, 13vw, 5.6rem); }
  .hero__eyebrow { margin-bottom: 20px; }
  .hero__lead { margin-top: 20px; }
  .hero__actions { margin-top: 26px; }
  .hero__scroll { display: none; }
  .hero__media { clip-path: polygon(50% 58%, 72% 78%, 50% 98%, 28% 78%); }
  .hero__media img { object-position: 52% 30%; }

  .approach,
  .programs__grid,
  .short__head,
  .campus__grid,
  .admissions__panel,
  .contact__grid,
  .services { grid-template-columns: 1fr; }

  .approach__visual { order: 2; padding-bottom: 22%; }
  .approach__img--main { aspect-ratio: 5 / 4; }
  .approach__img--small { right: 0; }
  .programs__sticky { position: static; }
  .programs__img { display: none; }
  .admissions__img { order: -1; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__lead { display: none; }
  .facts { grid-template-columns: 1fr; }
  .fact { border-right: 0; margin-right: 0; padding-right: 0; }
  .fact + .fact { margin-top: 0; border-top: 1px solid var(--line); }
  .fact { padding-bottom: 28px; }
  .program { grid-template-columns: 36px 1fr 40px; gap: 14px; align-items: start; }
  .program__num { padding-top: 6px; }
  .program__num { grid-column: 1; grid-row: 1; }
  .program__body { grid-column: 2; grid-row: 1; }
  .program__levels,
  .domain__meta { grid-column: 2; grid-row: 2; justify-content: flex-start; }
  .program__link { grid-column: 3; grid-row: 1; width: 40px; height: 40px; }
  .program__num { font-size: 1.1rem; }
  .short__meta { grid-template-columns: 1fr; }
  .short__meta li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--night-line); }
  .modules { grid-template-columns: 1fr; }
  .module { min-height: 150px; }
  .services__list { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .coords > div { grid-template-columns: 1fr; gap: 6px; }
  .footer__top { flex-direction: column; align-items: flex-start; }
  .footer__motto { text-align: left; }
  .footer__cols { grid-template-columns: 1fr; }
  .equip li { grid-template-columns: 72px 1fr; }
  .equip__value { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
