/* ==========================================================================
   FUTURA, centre de formation à Tunis
   1. Tokens    2. Base        3. Composants   4. Header   5. Héro
   6. Sections  7. Footer      8. Modales      9. Animations de scroll
   10. Tablette 11. Smartphone 12. Mouvement réduit
   ========================================================================== */

/* 1. Tokens
   ========================================================================== */
:root {
  --navy-950: #000348;
  --navy-900: #02055a;
  --navy-800: #0c0e58;
  --navy-700: #14177a;
  --navy-500: #2a2d9c;
  --gold: #fec82a;
  --gold-deep: #f5a60b;
  --gold-grad: linear-gradient(180deg, #ffd645 0%, #f9b212 100%);
  --ink: #12155e;
  --muted: #5b5f7e;
  --soft: #6f7390;
  --bg: #fbfbfd;
  --surface: #fff;
  --line: #eceef6;
  --lavender: #eef0fb;
  --violet: #7b2ff2;
  --green: #0f9d4d;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;

  --shadow-sm: 0 4px 18px rgba(18, 21, 94, .06);
  --shadow-md: 0 16px 36px rgba(18, 21, 94, .13);
  --shadow-lg: 0 26px 54px rgba(18, 21, 94, .2);

  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --fast: .25s;

  --gutter: 24px;
  --header-h: 86px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

html:has(dialog[open]) { overflow: hidden; }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
img { max-width: 100%; height: auto; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

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

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 100;
  padding: 10px 16px; border-radius: var(--r-sm);
  background: var(--gold); color: var(--ink); font-weight: 700;
  transform: translateY(-200%);
  transition: transform var(--fast);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: calc(1240px + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: calc(1320px + var(--gutter) * 2); }

.section { padding-block: 28px; }

.icon {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.icon--fill { fill: currentColor; stroke: none; }

/* Progression de lecture */
.progress { position: fixed; inset: 0 0 auto; z-index: 70; height: 3px; pointer-events: none; }
.progress__bar {
  display: block; height: 100%;
  background: linear-gradient(90deg, #ffd645, #f5a60b);
  transform: scaleX(0); transform-origin: left;
}

/* 3. Composants
   ========================================================================== */

/* Boutons : balayage de lumière et flèche qui avance au survol */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px;
  border-radius: 10px; overflow: hidden;
  font-size: 15px; font-weight: 700; line-height: 1.2; white-space: nowrap;
  transition: transform var(--fast) var(--ease-out), box-shadow var(--fast) var(--ease-out),
              background-color var(--fast), color var(--fast), border-color var(--fast);
}
.btn::before {
  content: ''; position: absolute; inset: 0 auto 0 -60%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .6), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}
.btn__arrow { font-size: 18px; transition: transform var(--fast) var(--ease-out); }
.btn:active { transform: scale(.97); }

.btn--gold {
  background: var(--gold-grad); color: var(--ink);
  box-shadow: 0 8px 20px rgba(249, 178, 18, .32);
}
.btn--ghost {
  border: 1.5px solid rgba(255, 255, 255, .7); color: #fff;
  background: rgba(255, 255, 255, .03);
}
.btn--ghost-dark {
  border: 1.5px solid rgba(255, 255, 255, .45); color: #fff;
}
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.btn--lg { min-height: 52px; padding: 0 26px; }
.btn--block { display: flex; width: 100%; }

.course .btn--block .btn__arrow,
.cta .btn--block .btn__arrow { position: absolute; right: 14px; }

@media (hover: hover) {
  .btn:hover::before { left: 120%; transition: left .7s var(--ease-out); }
  .btn:hover .btn__arrow { transform: translateX(5px); }
  .btn--gold:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(249, 178, 18, .45); }
  .btn--ghost:hover { background: #fff; border-color: #fff; color: var(--ink); transform: translateY(-2px); }
  .btn:active { transform: scale(.97); }
}

/* Étoiles : un seul élément, remplissage proportionnel à la note */
.stars {
  --v: 5;
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.500l2.900 6.100 6.600.9-4.800 4.600 1.200 6.600L12 17.600l-5.900 3.100 1.200-6.600L2.500 9.500l6.600-.9z'/%3E%3C/svg%3E");
  display: inline-block; flex: none;
  width: 5.5em; height: 1.1em;
  background: linear-gradient(90deg, #fbb615 calc(var(--v) / 5 * 100%), #dfe1ee 0);
  -webkit-mask: var(--star) left center / 20% 100% repeat-x;
          mask: var(--star) left center / 20% 100% repeat-x;
}

/* Titres de section et ornement trait + point */
.section-title {
  display: flex; align-items: center; gap: 18px;
  font-size: clamp(1.45rem, 2vw, 1.8rem);
  font-weight: 800; line-height: 1.2; letter-spacing: -.02em;
  color: var(--ink);
}
.section-title--center { justify-content: center; text-align: center; margin-bottom: 22px; }

.ornament {
  position: relative; flex: none; width: 58px; height: 2px;
  background: linear-gradient(90deg, var(--navy-700), rgba(20, 23, 122, 0));
  border-radius: 2px;
  transform-origin: left center;
}
.ornament::before {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 7px; height: 7px; margin-top: -3.500px;
  border-radius: 50%; background: var(--navy-700);
}
.ornament--flip { transform: scaleX(-1); transform-origin: center; }

/* Étiquettes */
.tag {
  position: absolute; top: 8px; left: 8px; z-index: 1;
  padding: 4px 9px; border-radius: 6px;
  font-size: 10.500px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase;
  color: #fff;
}
.tag--violet { background: var(--violet); }
.tag--gold { background: #f7ae0d; color: var(--ink); }
.tag--green { background: var(--green); }
.tag--dark { background: rgba(10, 12, 60, .75); text-transform: none; letter-spacing: 0; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  min-height: 44px;
  font-size: 13.500px; font-weight: 700; color: var(--ink);
  white-space: nowrap;
}
.link-arrow .icon { font-size: 17px; transition: transform var(--fast) var(--ease-out); }
.link-arrow span { background: linear-gradient(currentColor, currentColor) left bottom / 0 1.500px no-repeat; transition: background-size var(--fast) var(--ease-out); }
@media (hover: hover) {
  .link-arrow:hover .icon { transform: translateX(5px); }
  .link-arrow:hover span { background-size: 100% 1.500px; }
}

/* 4. Header
   ========================================================================== */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: #fff;
  transition: transform .35s var(--ease-out);
}
/* Le flou est porté par le pseudo-élément : le menu mobile, en position fixed, reste calé sur la fenêtre */
.header::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(6, 8, 74, .94);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 3, 72, .28);
  opacity: 0;
  transition: opacity .3s;
}
.header.is-stuck::before { opacity: 1; }

.header__inner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: 1360px; height: var(--header-h);
  margin-inline: auto; padding-inline: var(--gutter);
  transition: height .3s var(--ease-out);
}
.header.is-stuck .header__inner { height: 68px; }

.logo { display: inline-flex; align-items: center; gap: 10px; position: relative; z-index: 2; }
.logo__mark { width: 50px; height: 42px; transition: transform .5s var(--ease-spring); }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__text b { font-size: 25px; font-weight: 800; letter-spacing: .01em; color: #fff; }
.logo__text small {
  margin-top: 4px;
  font-size: 9.500px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--gold);
}
@media (hover: hover) {
  .logo:hover .logo__mark { transform: rotate(-9deg) scale(1.08); }
}

.nav { display: flex; align-items: center; gap: 36px; }
.nav__link {
  position: relative; padding: 10px 0;
  font-size: 15px; font-weight: 500;
  color: rgba(255, 255, 255, .92);
  transition: color var(--fast);
}
.nav__link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 2.500px;
  border-radius: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.nav__link.is-active { color: #fff; font-weight: 600; }
.nav__link.is-active::after { transform: scaleX(1); }
.nav__cta { display: none; }
@media (hover: hover) {
  .nav__link:hover { color: var(--gold); }
  .nav__link:hover::after { transform: scaleX(1); }
}

.header__actions { display: flex; align-items: center; gap: 16px; position: relative; z-index: 2; }

.icon-btn {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .45);
  font-size: 19px;
  transition: background-color var(--fast), color var(--fast), transform var(--fast) var(--ease-out), border-color var(--fast);
}
@media (hover: hover) {
  .icon-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); transform: rotate(-10deg) scale(1.06); }
}

.burger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px;
}
.burger span {
  display: block; height: 2.500px; border-radius: 2px; background: #fff;
  transition: transform .3s var(--ease-out), opacity .2s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.500px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.500px) rotate(-45deg); }

/* 5. Héro
   ========================================================================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 705px;
  padding: 138px 0 112px;
  color: #fff;
  background:
    radial-gradient(52% 70% at 74% 44%, rgba(49, 56, 214, .55), transparent 72%),
    radial-gradient(46% 60% at 8% 100%, rgba(38, 56, 214, .38), transparent 72%),
    radial-gradient(40% 50% at 100% 0%, rgba(42, 45, 156, .55), transparent 72%),
    linear-gradient(160deg, #0c0e58 0%, #000348 56%, #02055a 100%);
}

.hero__stars, .hero__waves { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero__wave-set { animation: wave-drift 16s ease-in-out infinite alternate; }
@keyframes wave-drift {
  from { transform: translate(-50px, 6px); }
  to { transform: translate(50px, -10px); }
}

.hero__inner { position: relative; }
.hero__copy { position: relative; z-index: 2; max-width: min(560px, 42vw); }

.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px;
  border: 1.5px solid var(--gold); border-radius: 999px;
  background: rgba(254, 200, 42, .07);
  font-size: 13.500px; font-weight: 600;
}
.hero__badge .icon { color: var(--gold); font-size: 16px; }

.hero__title {
  margin-top: 22px;
  font-size: clamp(2.5rem, 3.920vw, 3.550rem);
  font-weight: 800; line-height: 1.12; letter-spacing: -.035em;
}
.line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.line > span { display: block; }
.line--gold { color: var(--gold); }

.hero__lead {
  max-width: min(440px, 36vw);
  margin-top: 18px;
  font-size: 16.500px; line-height: 1.6;
  color: rgba(255, 255, 255, .88);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

.hero__proof { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.hero__proof p { font-size: 13.500px; line-height: 1.35; color: rgba(255, 255, 255, .88); }
.hero__proof b { font-weight: 600; color: #fff; }
.hero__proof .stars { font-size: 14px; display: block; margin-bottom: 2px; background: linear-gradient(90deg, var(--gold) 100%, #fff 0); }

.avatars { display: flex; }
.avatars img {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  border: 2px solid #fff; margin-left: -11px; background: var(--navy-700);
  transition: transform var(--fast) var(--ease-spring);
}
.avatars img:first-child { margin-left: 0; }
@media (hover: hover) {
  .avatars img:hover { transform: translateY(-6px) scale(1.12); position: relative; z-index: 1; }
}

/* Composition de droite : tout est en % et en cqw, elle garde ses proportions quelle que soit la largeur */
.hero__visual {
  position: absolute; z-index: 1;
  top: -78px;
  left: calc(50% - 120px);
  width: min(785px, 56vw);
  aspect-ratio: 785 / 620;
  container-type: inline-size;
}

.rings { position: absolute; left: 22.500%; top: -6%; width: 72cqw; height: 72cqw; }
.rings__spin { transform-origin: 50px 50px; animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.sun {
  position: absolute; left: 32.500%; top: 15.500%;
  width: 51cqw; height: 51cqw; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #ffdc55, #fbc11a 56%, #f2a30a 100%);
  box-shadow:
    0 0 0 2px rgba(255, 214, 77, .35),
    0 0 60px 12px rgba(251, 191, 23, .5),
    0 0 150px 46px rgba(251, 191, 23, .18);
}

.hero__student {
  position: absolute; left: 33.200%; top: 0;
  width: 52.400cqw; max-width: none;
  -webkit-mask-image: linear-gradient(180deg, #000 74%, transparent 91%);
          mask-image: linear-gradient(180deg, #000 74%, transparent 91%);
}

.glass {
  position: absolute; z-index: 2;
  padding: 1.800cqw 1.900cqw;
  font-size: clamp(11px, 1.720cqw, 13.500px);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(62, 68, 176, .58), rgba(22, 26, 116, .48));
  border: 1px solid rgba(255, 255, 255, .15);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(0, 3, 72, .45), inset 0 1px 0 rgba(255, 255, 255, .12);
  animation: float 6.500s ease-in-out infinite alternate;
  animation-delay: var(--f, 0s);
  transition: scale .4s var(--ease-spring), box-shadow .3s, border-color .3s;
}
.glass p { margin-top: .5em; line-height: 1.35; color: rgba(255, 255, 255, .84); }
.glass h2 { font-size: 1.200em; font-weight: 700; line-height: 1.2; }
.glass strong { font-size: 2em; font-weight: 700; line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.glass__head { display: flex; align-items: center; gap: .75em; }
.glass__icon { width: 3em; height: 3em; flex: none; filter: drop-shadow(0 2px 8px rgba(254, 200, 42, .35)); }

.glass--cert { left: 13.800%; top: 11.800%; width: 23.500cqw; }
.glass--students { left: 0; top: 54.400%; width: 23.800cqw; }
.glass--rate { left: 28.800%; top: 67%; width: 28cqw; }
.glass--trainers { left: 79.400%; top: 34.500%; width: 21.500cqw; }

@media (hover: hover) {
  .glass:hover {
    scale: 1.07;
    border-color: rgba(254, 200, 42, .65);
    box-shadow: 0 22px 50px rgba(0, 3, 72, .55), 0 0 26px rgba(254, 200, 42, .28);
  }
}

@keyframes float {
  from { transform: translateY(-7px); }
  to { transform: translateY(9px); }
}

.orb {
  position: absolute; z-index: 2;
  display: grid; place-items: center;
  width: 11.200cqw; height: 11.200cqw; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(62, 68, 176, .75), rgba(14, 18, 96, .85));
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 0 26px rgba(90, 100, 255, .4);
  animation: float 5.500s ease-in-out infinite alternate;
  animation-delay: var(--f, 0s);
  transition: scale .4s var(--ease-spring), box-shadow .3s;
}
.orb svg { width: 52%; height: 52%; }
.orb--case { left: 7%; top: 36.600%; }
.orb--cap { left: 81.900%; top: 10.500%; }
.orb--globe { left: 85.600%; top: 65%; width: 10.400cqw; height: 10.400cqw; }

@media (hover: hover) {
  .orb:hover { scale: 1.16; box-shadow: 0 0 36px rgba(254, 200, 42, .5); }
}

/* 6. Sections
   ========================================================================== */

/* Partenaires */
.partners { position: relative; z-index: 3; margin-top: -44px; }
.partners__card {
  overflow: hidden;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
}
.partners__track { display: flex; align-items: center; }
.partner {
  flex: 1 1 0;
  display: grid; place-items: center;
  height: 78px; padding: 12px 20px;
  border-left: 1px solid var(--line);
}
.partner:first-child { border-left: 0; }
.partner svg { height: 40px; width: auto; max-width: 100%; transition: transform .35s var(--ease-spring), filter .3s; }
.partner--clone { display: none; }
@media (hover: hover) {
  .partner:hover svg { transform: translateY(-3px) scale(1.12); filter: drop-shadow(0 6px 10px rgba(18, 21, 94, .18)); }
}

/* Pourquoi nous choisir */
.why { padding-top: 34px; }
.why__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }

.why-card {
  position: relative; overflow: hidden;
  padding: 24px 14px 22px;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.why-card::after {
  content: ''; position: absolute; inset: auto 0 0; height: 3px;
  background: var(--gold-grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease-out);
}
.why-card__icon {
  position: relative;
  display: inline-grid; place-items: center;
  width: 68px; height: 68px; border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #2a2d9c, #0a0c60);
  color: #fff; font-size: 29px;
  box-shadow: 0 8px 18px rgba(12, 14, 88, .28);
  transition: transform .5s var(--ease-spring);
}
.why-card--gold .why-card__icon {
  background: radial-gradient(circle at 35% 25%, #ffdc55, #f5a60b);
  box-shadow: 0 8px 18px rgba(245, 166, 11, .35);
}
.why-card__icon::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid currentColor; color: var(--navy-500);
  opacity: 0;
}
.why-card--gold .why-card__icon::after { color: var(--gold-deep); }
.why-card .icon { transition: transform .6s var(--ease-out); }
.why-card h3 { margin-top: 14px; font-size: 14.500px; font-weight: 700; line-height: 1.3; }
.why-card p { margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--muted); }

@media (hover: hover) {
  .why-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
  .why-card:hover::after { transform: scaleX(1); }
  .why-card:hover .why-card__icon { transform: scale(1.08); }
  .why-card:hover .why-card__icon::after { animation: ring-out 1s var(--ease-out); }
  .why-card:hover .icon { transform: rotateY(360deg); }
}
@keyframes ring-out {
  from { opacity: .7; transform: scale(1); }
  to { opacity: 0; transform: scale(1.5); }
}

/* Formations */
.courses__head { display: flex; align-items: center; gap: 22px; margin-bottom: 18px; }
.courses__head .section-title { flex: none; gap: 14px; }

.pills { position: relative; display: flex; gap: 10px; flex: 1; justify-content: center; min-width: 0; }
.pills__ink {
  position: absolute; left: 0; top: 0; height: 100%; width: 0;
  border-radius: 10px;
  background: var(--navy-800);
  box-shadow: 0 6px 14px rgba(12, 14, 88, .28);
  transition: transform .4s var(--ease-out), width .4s var(--ease-out);
}
.pill {
  position: relative;
  min-height: 34px; padding: 0 15px;
  border-radius: 10px;
  background: #eff0f8;
  font-size: 13px; font-weight: 600; color: #373b73;
  white-space: nowrap;
  transition: color var(--fast), background-color var(--fast), transform var(--fast) var(--ease-out);
}
.pill.is-active { background: transparent; color: #fff; }
@media (hover: hover) {
  .pill:not(.is-active):hover { background: #e2e4f6; transform: translateY(-2px); }
}

.courses__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; perspective: 1400px; }
.courses__grid.is-expanded { grid-template-columns: repeat(3, 1fr); }

.course {
  position: relative;
  display: flex; flex-direction: column;
  padding: 8px;
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transform-style: preserve-3d;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
  will-change: transform;
}
.course[hidden] { display: none; }
/* Reflet qui suit le curseur */
.course::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .55), transparent 65%);
  opacity: 0; pointer-events: none; mix-blend-mode: soft-light;
  transition: opacity .3s;
}
.course.is-flash { animation: flash 1.400s var(--ease-out); }
@keyframes flash {
  0%, 100% { box-shadow: var(--shadow-sm); }
  30% { box-shadow: 0 0 0 3px var(--gold), var(--shadow-md); }
}

.course__media {
  position: relative; overflow: hidden;
  aspect-ratio: 2 / 1;
  border-radius: var(--r-sm);
  background: var(--navy-800);
}
.course__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease-out), filter .4s;
}
.course__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(6, 8, 74, .55));
  opacity: 0; transition: opacity .3s;
}
.course__body { display: flex; flex: 1; flex-direction: column; padding: 11px 4px 4px; }
.course h3 { min-height: 2.600em; font-size: 15px; font-weight: 700; line-height: 1.3; transition: color var(--fast); }
.courses__grid.is-filtered .course h3, .courses__grid.is-expanded .course h3 { min-height: 0; }

.course__rating { display: flex; align-items: center; gap: 7px; margin-top: 4px; font-size: 12.500px; }
.course__rating b { font-weight: 700; }
.course__count { color: var(--soft); }
.course__rating .stars { font-size: 12.500px; }

.course__meta {
  display: flex; flex-wrap: wrap; gap: 4px 12px;
  margin-top: 8px;
  font-size: 12px; color: var(--muted);
}
.course__meta li { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.course__meta .icon { font-size: 14px; color: var(--soft); }
.course__meta li:first-child .icon { color: var(--gold-deep); }

.course__trainer { display: flex; align-items: center; gap: 7px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.course__trainer img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }

.course__price {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  margin-top: auto; padding-top: 11px;
  font-variant-numeric: tabular-nums;
}
.course__price strong { font-size: 15px; font-weight: 800; }
.course__price s { font-size: 12.500px; color: var(--soft); }

.course .btn { min-height: 40px; margin-top: 10px; font-size: 13.500px; border-radius: var(--r-sm); }

@media (hover: hover) {
  .course:hover { box-shadow: var(--shadow-lg); }
  .course:hover::after { opacity: 1; }
  .course:hover .course__media img { transform: scale(1.1); filter: saturate(1.2); }
  .course:hover .course__media::after { opacity: 1; }
  .course:hover h3 { color: var(--navy-500); }
}

/* Chiffres */
.stats {
  position: relative; overflow: hidden;
  margin-top: 8px;
  padding-block: 28px;
  background:
    radial-gradient(40% 130% at 50% 50%, rgba(42, 45, 156, .55), transparent 72%),
    linear-gradient(90deg, #0c0854, #0a0b60 50%, #0c0854);
  color: #fff;
}
.stats__lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.stats__line { stroke-dasharray: 1; stroke-dashoffset: var(--draw, 1); }
.stats__grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); }

.stat {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 4px 16px;
  border-left: 1px solid rgba(255, 255, 255, .16);
}
.stat:first-child { border-left: 0; }
.stat > .icon {
  box-sizing: content-box; padding: 11px;
  font-size: 40px; stroke-width: 1.600;
  fill: rgba(255, 255, 255, .22);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(92, 104, 255, .34), rgba(92, 104, 255, 0) 72%);
  transition: transform .45s var(--ease-spring), color var(--fast);
}
.stat strong {
  display: block;
  font-size: clamp(1.8rem, 2.5vw, 2.200rem); font-weight: 800; line-height: 1.1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.stat div span { font-size: 14px; color: rgba(255, 255, 255, .92); }
@media (hover: hover) {
  .stat:hover > .icon { transform: translateY(-4px) scale(1.14); color: var(--gold); }
}

/* Programmes */
.programs { padding-top: 26px; padding-bottom: 26px; }
.programs .section-title--center { margin-bottom: 14px; }
.programs__layout { display: grid; grid-template-columns: minmax(0, 1fr) 284px; gap: 22px; }
.programs__main { min-width: 0; }
.programs__side { display: flex; flex-direction: column; gap: 18px; }
.programs__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }

.program {
  overflow: hidden;
  padding: 8px 8px 16px;
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.program__media { overflow: hidden; aspect-ratio: 5 / 3; border-radius: var(--r-sm); background: var(--lavender); }
.program__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.program h3 { margin-top: 10px; font-size: 13.500px; font-weight: 700; line-height: 1.3; transition: color var(--fast); }
.program p { margin-top: 5px; padding-inline: 2px; font-size: 12.500px; line-height: 1.45; color: var(--muted); }
@media (hover: hover) {
  .program:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
  .program:hover img { transform: scale(1.1) rotate(1deg); }
  .program:hover h3 { color: var(--navy-500); }
}

.cta {
  position: relative; overflow: hidden;
  margin-top: -44px;
  padding: 26px 24px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(42, 45, 156, .75), transparent 70%),
    #000058;
  color: #fff;
  box-shadow: var(--shadow-md);
}
.cta h3 { font-size: 20px; font-weight: 700; line-height: 1.3; }
.cta p { margin-top: 10px; font-size: 13.500px; color: rgba(255, 255, 255, .84); }
.cta .btn { margin-top: 18px; }

.cta__or {
  display: flex; align-items: center; gap: 12px;
  margin-top: 16px;
  font-size: 12.500px; color: rgba(255, 255, 255, .8); white-space: nowrap;
}
.cta__or::before, .cta__or::after { content: ''; flex: 1; height: 1px; background: rgba(255, 255, 255, .22); }

.cta__phone {
  display: flex; align-items: center; gap: 12px;
  margin-top: 12px;
  font-size: 20px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums;
  transition: color var(--fast);
}
.cta__phone-icon {
  position: relative;
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .4);
  font-size: 19px;
}
.cta__phone-icon::after {
  content: ''; position: absolute; inset: -1.500px; border-radius: 50%;
  border: 1.5px solid var(--gold);
  animation: phone-ring 2.400s var(--ease-out) infinite;
}
@keyframes phone-ring {
  from { opacity: .8; transform: scale(1); }
  to { opacity: 0; transform: scale(1.5); }
}
@media (hover: hover) {
  .cta__phone:hover { color: var(--gold); }
}

/* Témoignages, ressources, newsletter */
.bottom-row {
  display: grid; grid-template-columns: 465fr 540fr; gap: 16px; align-items: stretch;
  margin-top: 22px;
  scroll-margin-top: 96px;
}
.panel {
  padding: 18px 20px;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.panel__title { font-size: 19px; font-weight: 800; letter-spacing: -.015em; line-height: 1.25; }

.testimonials { display: flex; flex-direction: column; }
.slider-arrows { display: flex; flex: none; border-radius: 10px; box-shadow: 0 3px 12px rgba(18, 21, 94, .12); overflow: hidden; }
.slider-arrows button {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  font-size: 18px; color: var(--ink);
  background: #fff;
  transition: background-color var(--fast), color var(--fast);
}
.slider-arrows button + button { border-left: 1px solid var(--line); }
@media (hover: hover) {
  .slider-arrows button:hover { background: var(--navy-800); color: #fff; }
}

.testimonials__track { display: grid; flex: 1; touch-action: pan-y; }
.testimonial {
  grid-area: 1 / 1;
  display: flex; align-items: center; gap: 18px;
  opacity: 0; visibility: hidden;
  translate: 24px 0;
  transition: opacity .45s var(--ease-out), translate .45s var(--ease-out), visibility .45s;
}
.testimonial.is-active { opacity: 1; visibility: visible; translate: 0 0; }
.testimonial__photo {
  flex: none; width: 118px; height: 118px;
  border-radius: 50%; object-fit: cover;
  background: var(--navy-800);
  box-shadow: 0 10px 22px rgba(12, 14, 88, .25);
  transition: transform .5s var(--ease-spring);
}
@media (hover: hover) {
  .testimonial:hover .testimonial__photo { transform: scale(1.06) rotate(-2deg); }
}
.testimonial__body { min-width: 0; flex: 1; }
.testimonial .stars { font-size: 15px; display: block; }
.testimonial blockquote { margin-top: 8px; font-size: 13.500px; line-height: 1.55; color: var(--muted); }
.testimonial figcaption { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 10px; }
.testimonial figcaption b { display: block; font-size: 14.500px; font-weight: 700; }
.testimonial figcaption span { display: block; font-size: 12.500px; color: var(--muted); }
.testimonial__logo { flex: none; width: 92px; height: auto; }

.slider-dots { display: flex; justify-content: center; align-items: center; gap: 2px; margin-top: 8px; }
.slider-dots button { position: relative; display: grid; place-items: center; width: 28px; height: 24px; }
.slider-dots button::before {
  content: ''; width: 6px; height: 6px; border-radius: 6px;
  background: #cfd1e4;
  transition: width .3s var(--ease-out), background-color .3s;
}
.slider-dots button.is-active::before { width: 20px; background: var(--navy-800); }

.resources__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.resource { display: block; min-width: 0; }
.resource__media { position: relative; overflow: hidden; aspect-ratio: 5 / 3; border-radius: var(--r-sm); background: var(--navy-800); }
.resource__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.resource__media .tag { top: 6px; left: 6px; padding: 3px 8px; text-transform: none; letter-spacing: 0; }
.resource__play {
  position: absolute; left: 50%; top: 50%;
  display: grid; place-items: center;
  width: 42px; height: 42px; margin: -21px 0 0 -21px;
  border: 2px solid #fff; border-radius: 50%;
  background: rgba(0, 3, 72, .5); color: #fff;
  font-size: 20px;
  transition: transform .35s var(--ease-spring), background-color var(--fast), color var(--fast), border-color var(--fast);
}
.resource h3 { margin-top: 9px; font-size: 13px; font-weight: 700; line-height: 1.35; transition: color var(--fast); }
.resource__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
  margin-top: 6px;
  font-size: 11.500px; color: var(--soft);
}
.resource__meta span { display: inline-flex; align-items: center; gap: 4px; }
@media (hover: hover) {
  .resource:hover img { transform: scale(1.1); }
  .resource:hover h3 { color: var(--navy-500); }
  .resource:hover .resource__play { transform: scale(1.18); background: var(--gold); border-color: var(--gold); color: var(--ink); }
}

.newsletter {
  margin-top: auto;
  padding: 22px 20px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(42, 45, 156, .6), transparent 70%),
    #040557;
  color: #fff;
  box-shadow: var(--shadow-md);
}
.newsletter h2 { font-size: 16.500px; font-weight: 700; color: var(--gold); }
.newsletter p { margin-top: 8px; font-size: 13.500px; color: rgba(255, 255, 255, .88); }
.newsletter form { margin-top: 14px; }
.newsletter__field {
  display: flex; overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .08);
  transition: border-color var(--fast), box-shadow var(--fast);
}
.newsletter__field:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(254, 200, 42, .25); }
.newsletter__field input {
  flex: 1; min-width: 0; height: 46px; padding: 0 12px;
  background: none; border: 0; outline: 0; color: #fff; font-size: 14px;
}
.newsletter__field input::placeholder { color: rgba(255, 255, 255, .7); }
.newsletter__field button {
  display: grid; place-items: center; flex: none;
  width: 46px;
  color: var(--gold); font-size: 20px;
  transition: background-color var(--fast), color var(--fast);
}
.newsletter__field button .icon { transition: transform var(--fast) var(--ease-out); }
@media (hover: hover) {
  .newsletter__field button:hover { background: var(--gold); color: var(--ink); }
  .newsletter__field button:hover .icon { transform: translateX(3px); }
}
.newsletter__error { margin-top: 6px; font-size: 12.500px; color: #ffd98a; }
.newsletter__error:empty { display: none; }

/* 7. Footer
   ========================================================================== */
.footer {
  margin-top: 10px;
  padding-block: 28px 26px;
  background: linear-gradient(180deg, #020554, #000348);
  color: #fff;
}
.footer__grid { display: grid; grid-template-columns: 1.600fr repeat(4, .900fr) 2.400fr; gap: 24px; align-items: stretch; }
.footer__brand p { max-width: 280px; margin-top: 12px; font-size: 13px; color: rgba(255, 255, 255, .84); }

.socials { display: flex; gap: 8px; margin-top: 12px; }
.socials a {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  font-size: 16px;
  transition: background-color var(--fast), color var(--fast), transform .35s var(--ease-spring);
}
@media (hover: hover) {
  .socials a:hover { background: var(--gold); color: var(--ink); transform: translateY(-4px) scale(1.08); }
}

.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.footer__col h2 { margin-bottom: 5px; font-size: 14px; font-weight: 700; }
.footer__col a {
  font-size: 13px; color: rgba(255, 255, 255, .8);
  transition: color var(--fast), transform var(--fast) var(--ease-out);
}
@media (hover: hover) {
  .footer__col a:hover { color: var(--gold); transform: translateX(5px); }
}

.footer__legal {
  display: flex; flex-wrap: wrap; align-content: flex-end; justify-content: flex-start; gap: 6px 18px;
  padding-right: 62px;
  font-size: 12.500px; color: rgba(255, 255, 255, .8);
}
.footer__legal a { transition: color var(--fast); }
@media (hover: hover) {
  .footer__legal a:hover { color: var(--gold); }
}

/* Retour en haut */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--gold-grad); color: var(--ink);
  font-size: 22px;
  box-shadow: 0 10px 24px rgba(249, 178, 18, .45);
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(.8);
  transition: opacity .3s, visibility .3s, transform .4s var(--ease-spring), bottom .3s var(--ease-out);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top__ring circle {
  fill: none; stroke: var(--navy-800); stroke-width: 2.500;
  stroke-dasharray: 100; stroke-dashoffset: var(--p, 100);
}
.to-top .icon { transition: transform var(--fast) var(--ease-out); }
@media (hover: hover) {
  .to-top:hover .icon { transform: translateY(-4px); }
}

.mobile-bar { display: none; }

/* 8. Modales
   ========================================================================== */
.modal {
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0; border: 0; border-radius: 18px;
  background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.modal::backdrop { background: rgba(0, 3, 72, .62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal[open] { animation: modal-in .35s var(--ease-out); }
.modal[open]::backdrop { animation: fade-in .3s; }
@keyframes modal-in { from { opacity: 0; transform: translateY(26px) scale(.97); } }
@keyframes fade-in { from { opacity: 0; } }

.modal__box { position: relative; padding: 26px 24px 22px; }
.modal__close {
  position: absolute; top: 12px; right: 12px;
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  font-size: 20px; color: var(--muted);
  transition: background-color var(--fast), color var(--fast), transform .3s var(--ease-out);
}
.modal__close:hover { background: var(--lavender); color: var(--ink); transform: rotate(90deg); }

.modal h2 { padding-right: 40px; font-size: 22px; font-weight: 800; letter-spacing: -.015em; line-height: 1.25; }
.modal__intro { margin-top: 6px; font-size: 14px; color: var(--muted); }
.modal__note { margin-top: 10px; font-size: 12.500px; line-height: 1.4; color: var(--muted); text-align: center; }

.field { margin-top: 14px; }
.field label { display: block; margin-bottom: 5px; font-size: 13.500px; font-weight: 600; }
.field label span { color: #c53030; }
.field input, .field select {
  width: 100%; height: 46px; padding: 0 12px;
  border: 1.5px solid #d9dbea; border-radius: 10px;
  background: #fff;
  font-size: 16px;
  transition: border-color var(--fast), box-shadow var(--fast);
}
.field input:focus, .field select:focus { outline: 0; border-color: var(--navy-500); box-shadow: 0 0 0 3px rgba(42, 45, 156, .16); }
.field input[aria-invalid="true"] { border-color: #c53030; }
.field__error { margin-top: 4px; font-size: 12.500px; color: #b42318; }
.field__error:empty { display: none; }
.modal .btn--block { margin-top: 18px; }

.modal--search { width: min(620px, calc(100vw - 32px)); margin-top: 12vh; }
.modal--search .modal__box { padding: 12px 58px 12px 16px; }
.search-field { display: flex; align-items: center; gap: 10px; font-size: 20px; color: var(--muted); }
.search-field input { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: none; font-size: 16px; color: var(--ink); }
.search-field input::-webkit-search-cancel-button { display: none; }
.search-results { margin: 6px -42px 0 0; max-height: 50vh; overflow-y: auto; }
.search-results:empty { display: none; }
.search-results button {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 46px; padding: 8px 10px;
  border-radius: 8px;
  text-align: left; font-size: 14.500px; font-weight: 600;
  transition: background-color var(--fast);
}
.search-results button:hover, .search-results button:focus-visible { background: var(--lavender); }
.search-results small { flex: none; font-size: 12px; font-weight: 500; color: var(--muted); }
.search-results .search-empty { padding: 10px; font-size: 14px; color: var(--muted); }

.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 80;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--navy-800); color: #fff;
  font-size: 14px; font-weight: 500; text-align: center;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transform: translate(-50%, 16px);
  transition: opacity .3s, visibility .3s, transform .35s var(--ease-out);
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* 9. Animations d'entrée et de scroll
   Le préfixe .js garantit un contenu visible si le JavaScript ne se charge pas.
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .7s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js .reveal--left { transform: translateX(-46px); }
.js .reveal--right { transform: translateX(46px); }
.js .reveal--zoom { transform: translateY(26px) scale(.93); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Les ornements se dessinent quand leur titre arrive */
.js .reveal .ornament { scale: 0 1; transition: scale .8s var(--ease-out) .25s; }
.js .reveal.is-in .ornament { scale: 1 1; }

/* Entrée du héro au chargement */
.js .hero-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity .7s var(--ease-out) var(--d, 0s), transform .7s var(--ease-out) var(--d, 0s);
}
.js.is-loaded .hero-in { opacity: 1; transform: none; }

.js .line > span {
  transform: translateY(112%);
  transition: transform .95s var(--ease-out) var(--d, 0s);
}
.js.is-loaded .line > span { transform: none; }

.js .sun { opacity: 0; scale: .55; transition: opacity .8s var(--ease-out) .3s, scale 1.1s var(--ease-spring) .3s; }
.js.is-loaded .sun { opacity: 1; scale: 1; }

.js .hero__student { opacity: 0; transform: translateY(46px); transition: opacity .9s var(--ease-out) .5s, transform 1.100s var(--ease-out) .5s; }
.js.is-loaded .hero__student { opacity: 1; transform: none; }

.js .rings { opacity: 0; transition: opacity 1.500s .6s; }
.js.is-loaded .rings { opacity: 1; }

.js .glass, .js .orb { opacity: 0; scale: .7; }
.js.is-loaded .glass, .js.is-loaded .orb {
  opacity: 1; scale: 1;
  transition: opacity .6s var(--ease-out) var(--d, 0s), scale .7s var(--ease-spring) var(--d, 0s), box-shadow .3s, border-color .3s;
}
/* Une fois l'entrée terminée, le survol réagit sans délai */
.js.is-settled .glass, .js.is-settled .orb { transition: scale .4s var(--ease-spring), box-shadow .3s, border-color .3s; }
@media (hover: hover) {
  .js.is-loaded .glass:hover { scale: 1.07; }
  .js.is-loaded .orb:hover { scale: 1.16; }
}

/* 10. Tablette
   ========================================================================== */
@media (max-width: 1240px) {
  .stats__lines { display: none; }
  .nav { gap: 24px; }
  .courses__head { flex-wrap: wrap; gap: 12px 22px; }
  .courses__head .section-title { order: 1; }
  .courses__head .link-arrow { order: 2; margin-left: auto; }
  .pills { order: 3; flex: 1 0 100%; justify-content: flex-start; }

  .programs__layout { grid-template-columns: minmax(0, 1fr); }
  .programs__side { flex-direction: row; align-items: stretch; }
  .cta, .newsletter { flex: 1 1 0; min-width: 0; margin-top: 0; }

  .why__grid { grid-template-columns: repeat(3, 1fr); }
  .courses__grid { grid-template-columns: repeat(3, 1fr); }

  .footer__grid { grid-template-columns: 1.500fr repeat(4, 1fr); }
  .footer__legal { grid-column: 1 / -1; padding-right: 70px; align-items: center; }
}

@media (max-width: 1024px) {
  :root { --header-h: 72px; }

  /* Menu plein écran */
  .burger { display: flex; }
  .header__cta { display: none; }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: stretch; justify-content: center; gap: 4px;
    padding: 90px 28px calc(28px + env(safe-area-inset-bottom));
    background:
      radial-gradient(70% 45% at 85% 10%, rgba(49, 56, 214, .5), transparent 70%),
      linear-gradient(170deg, #0c0e58, #000348);
    visibility: hidden; opacity: 0;
    transform: translateY(-12px);
    transition: opacity .3s, transform .35s var(--ease-out), visibility .3s;
  }
  body.nav-open .nav { visibility: visible; opacity: 1; transform: none; }
  body.nav-open { overflow: hidden; }
  body.nav-open .header::before { opacity: 0; }

  .nav__link {
    padding: 12px 4px;
    font-size: 24px; font-weight: 700;
    opacity: 0; transform: translateX(26px);
    transition: opacity .4s var(--ease-out), transform .45s var(--ease-out), color var(--fast);
  }
  .nav__link::after { right: auto; width: 34px; bottom: 6px; }
  body.nav-open .nav__link { opacity: 1; transform: none; }
  body.nav-open .nav__link:nth-child(1) { transition-delay: .06s; }
  body.nav-open .nav__link:nth-child(2) { transition-delay: .11s; }
  body.nav-open .nav__link:nth-child(3) { transition-delay: .16s; }
  body.nav-open .nav__link:nth-child(4) { transition-delay: .21s; }
  body.nav-open .nav__link:nth-child(5) { transition-delay: .26s; }
  body.nav-open .nav__link:nth-child(6) { transition-delay: .31s; }
  .nav__cta { display: inline-flex; margin-top: 22px; min-height: 52px; }

  /* Héro empilé */
  .hero { padding: 112px 0 84px; min-height: 0; }
  .hero__copy { max-width: 620px; }
  .hero__title { font-size: clamp(2rem, 7vw, 3.400rem); }
  .hero__lead { max-width: 560px; }
  .hero__visual {
    position: relative; top: auto; left: auto;
    width: min(100%, 680px); margin: 34px auto 0;
  }

  /* Carrousels horizontaux */
  .courses__grid, .courses__grid.is-expanded {
    display: flex; gap: 14px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 6px var(--gutter) 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    perspective: none;
  }
  .courses__grid::-webkit-scrollbar { display: none; }
  .course { flex: 0 0 280px; scroll-snap-align: start; will-change: auto; }

  .pills {
    margin-inline: calc(var(--gutter) * -1);
    padding: 3px var(--gutter);
    overflow-x: auto; scrollbar-width: none;
  }
  .pills::-webkit-scrollbar { display: none; }
  .pill { min-height: 40px; flex: none; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 20px 0; }
  .stat:nth-child(odd) { border-left: 0; }

  /* 3 + 2 cartes, la seconde rangée centrée */
  .programs__grid { grid-template-columns: repeat(6, 1fr); }
  .program { grid-column: span 2; }
  .program:nth-child(4) { grid-column: 2 / span 2; }
  .bottom-row { grid-template-columns: minmax(0, 1fr); }
}

/* 11. Smartphone
   ========================================================================== */
@media (max-width: 720px) {
  :root { --gutter: 16px; --header-h: 64px; }

  html { scroll-padding-top: 76px; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); font-size: 15px; }

  .logo__mark { width: 40px; height: 34px; }
  .logo__text b { font-size: 21px; }
  .logo__text small { font-size: 8px; }
  .header.is-stuck .header__inner { height: 58px; }
  .header__actions { gap: 6px; }

  .section { padding-block: 24px; }
  .section-title { font-size: 1.400rem; gap: 12px; }
  .section-title--center { margin-bottom: 16px; }
  .ornament { width: 32px; }

  /* Héro */
  .hero { padding: 92px 0 54px; }
  .hero__waves { opacity: .5; }
  .hero__badge { font-size: 12.500px; padding: 6px 13px; }
  .hero__title { margin-top: 16px; font-size: clamp(1.950rem, 9.300vw, 3rem); }
  .hero__lead { margin-top: 12px; font-size: 15.500px; }
  .hero__actions { flex-wrap: nowrap; gap: 10px; margin-top: 20px; }
  .hero__actions .btn { flex: 1 1 auto; min-height: 50px; padding: 0 12px; font-size: 14px; gap: 6px; }
  .hero__actions .btn__arrow { font-size: 16px; }
  .hero__proof { margin-top: 20px; }
  .avatars img { width: 36px; height: 36px; }

  .hero__visual {
    width: 100%; aspect-ratio: 342 / 392; margin-top: 18px;
  }
  .rings { left: 3%; top: 3%; width: 94cqw; height: 94cqw; }
  .sun { left: 14.300%; top: 13%; width: 68cqw; height: 68cqw; }
  .hero__student { left: 15%; top: 0; width: 70cqw; }
  .glass { padding: 9px 10px; font-size: 11px; border-radius: 12px; }
  .glass h2 { font-size: 1.200em; }
  .glass strong { font-size: 1.800em; }
  .glass__icon { width: 2.500em; height: 2.500em; }
  .glass p { margin-top: .35em; }
  .glass__head { gap: .6em; }
  .glass--cert { left: 0; top: 7%; width: 41cqw; }
  .glass--trainers { left: auto; right: 0; top: 39%; width: 37cqw; }
  .glass--rate { left: 7%; top: 61%; width: 41cqw; }
  .glass--students { left: auto; right: 0; top: 73%; width: 36cqw; }
  .orb { width: 44px; height: 44px; }
  .orb--cap { left: auto; right: 3%; top: 8%; }
  .orb--case { left: 3%; top: 38%; }
  .orb--globe { left: 8%; top: 87%; width: 40px; height: 40px; }

  /* Partenaires : défilement continu */
  .partners { margin-top: -38px; }
  .partners__track { width: max-content; animation: marquee 22s linear infinite; }
  .partner { flex: 0 0 auto; width: 132px; height: 66px; padding: 10px 16px; }
  .partner svg { height: 32px; }
  .partner--clone { display: grid; }

  /* Pourquoi */
  .why { padding-top: 30px; }
  .why__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .why-card { padding: 18px 12px 16px; }
  .why-card__icon { width: 58px; height: 58px; font-size: 25px; }
  .why-card h3 { margin-top: 10px; font-size: 14px; }

  /* Formations */
  .courses__head { margin-bottom: 8px; }
  .course { flex-basis: 78vw; max-width: 300px; padding: 9px; }
  .course h3 { font-size: 16px; }
  .course__meta, .course__trainer { font-size: 13px; }
  .course__rating { font-size: 13px; }
  .course__price strong { font-size: 17px; }
  .course__price s { font-size: 13px; }
  .course .btn { min-height: 46px; font-size: 14.500px; }

  /* Chiffres */
  .stats { padding-block: 22px; }
  .stats__lines { display: none; }
  .stat { justify-content: flex-start; gap: 10px; padding: 2px 4px 2px 12px; }
  .stat > .icon { padding: 6px; font-size: 30px; }
  .stat strong { font-size: 1.650rem; }
  .stat div span { display: block; font-size: 12.500px; line-height: 1.3; }

  /* Programmes en liste */
  .programs__grid { grid-template-columns: 1fr; gap: 10px; }
  .program, .program:nth-child(4) { grid-column: auto; }
  .program { display: flex; align-items: center; gap: 12px; padding: 8px; text-align: left; }
  .program__media { flex: 0 0 104px; }
  .program__text { flex: 1; min-width: 0; }
  .program h3 { margin-top: 0; font-size: 14.500px; }
  .program p { padding: 0; font-size: 13px; }

  .programs__side { flex-direction: column; gap: 14px; }
  .cta { flex: none; padding: 22px 18px; }
  .cta h3 { font-size: 20px; }
  .cta__phone { justify-content: center; font-size: 21px; }

  /* Témoignages, ressources, newsletter */
  .bottom-row { gap: 14px; }
  .newsletter { flex: none; }
  .panel { padding: 16px; }
  .panel__title { font-size: 18px; }
  .slider-arrows button { width: 44px; height: 44px; }

  .testimonial { flex-direction: column; align-items: center; gap: 10px; text-align: center; }
  .testimonial__photo { width: 92px; height: 92px; }
  .testimonial .stars { margin-inline: auto; }
  .testimonial blockquote { font-size: 14.500px; }
  .testimonial figcaption { flex-direction: column; align-items: center; gap: 6px; }
  .testimonial figcaption b { font-size: 15px; }
  .testimonial figcaption span { font-size: 13px; }

  .resources__grid {
    display: flex; gap: 12px;
    margin-inline: -16px; padding: 2px 16px 4px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px;
    scrollbar-width: none;
  }
  .resources__grid::-webkit-scrollbar { display: none; }
  .resource { flex: 0 0 66vw; max-width: 250px; scroll-snap-align: start; }
  .resource h3 { font-size: 14px; }
  .resource__meta { font-size: 12.500px; }

  .newsletter__field input { font-size: 16px; height: 50px; }
  .newsletter__field button { width: 50px; }

  /* Footer */
  .footer { padding-block: 26px 22px; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__brand p { max-width: none; font-size: 14px; }
  .socials { gap: 10px; }
  .socials a { width: 44px; height: 44px; font-size: 18px; }
  .footer__col { gap: 0; }
  .footer__col h2 { font-size: 15px; margin-bottom: 4px; }
  .footer__col a { display: flex; align-items: center; min-height: 36px; font-size: 14px; }
  .footer__legal { grid-column: 1 / -1; gap: 0 18px; padding: 10px 0 0; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 13px; }
  .footer__legal a { display: flex; align-items: center; min-height: 40px; }

  /* Barre d'action fixe */
  .mobile-bar {
    position: fixed; inset: auto 0 0; z-index: 45;
    display: grid; grid-template-columns: 1fr 1.400fr; gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(6, 8, 74, .94);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: 0 -8px 24px rgba(0, 3, 72, .28);
    transform: translateY(110%);
    transition: transform .4s var(--ease-out);
  }
  .mobile-bar.is-visible { transform: none; }
  .mobile-bar .btn { min-height: 48px; font-size: 15px; }

  .to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; font-size: 18px; }
  .to-top.is-raised { bottom: calc(82px + env(safe-area-inset-bottom)); }

  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); width: calc(100vw - 32px); }

  .modal__box { padding: 22px 18px 18px; }
  .modal--search { margin-top: 8vh; }

  /* Sur téléphone, une entrée plus courte et plus sobre */
  .js .reveal { transform: translateY(22px); transition-duration: .55s, .6s; }
  .js .reveal--zoom { transform: translateY(16px) scale(.96); }
}

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

/* Retour tactile : pas de survol sur téléphone, donc un retour à la pression */
@media (hover: none) {
  .why-card:active, .program:active, .resource:active, .course:active {
    transform: scale(.98);
    transition-duration: .1s;
  }
  .pill:active { transform: scale(.95); }
}

@media (max-width: 360px) {
  .hero__actions { flex-wrap: wrap; }
  .hero__actions .btn { flex-basis: 100%; }
  .glass { padding: 8px; font-size: 10.500px; }
  .glass__icon { width: 2.100em; height: 2.100em; }
  .glass--cert { top: 4%; width: 41cqw; }
  .glass--trainers { width: 43cqw; }
  .glass--students { width: 42cqw; }
  .orb--case { display: none; }
  .stat { padding-left: 4px; }
}

/* 12. Mouvement réduit
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .glass, .orb, .hero__wave-set, .rings__spin { animation: none !important; }
  .partners__track { animation: none !important; width: auto; overflow-x: auto; }
  .partner--clone { display: none !important; }
}
