/* ═══════════════════════════════════════════════════════════════
   SuccessPrepa — Page d'accueil premium (home.css)
   Scope : body.page-home uniquement
   ═══════════════════════════════════════════════════════════════ */

.page-home {
  --home-navy: #0a1c3a;
  --home-navy-deep: #060e1f;
  --home-gold: #c4a771;
  --home-gold-bright: #e8c878;
  --home-gold-glow: rgba(196, 167, 113, 0.45);
  --home-cream: #faf8f4;
  --home-glass: rgba(255, 255, 255, 0.06);
  --home-glass-border: rgba(255, 255, 255, 0.12);
  --home-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Hero cinématique ─────────────────────────────────────────── */
.page-home .hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 0 100px;
  border-bottom: none;
  background: var(--home-navy-deep);
  color: rgba(255, 255, 255, 0.82);
  overflow: hidden;
  isolation: isolate;
}

.page-home .hero::before,
.page-home .hero::after {
  display: none;
}

.page-home .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page-home .hero-mesh {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 55% 45% at 15% 20%, rgba(196, 167, 113, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 75%, rgba(10, 28, 58, 0.9) 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(196, 167, 113, 0.08) 0%, transparent 45%),
    linear-gradient(165deg, var(--home-navy-deep) 0%, var(--home-navy) 42%, #0d2448 100%);
  animation: homeMeshShift 18s ease-in-out infinite alternate;
}

@keyframes homeMeshShift {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.06) translate(-1.5%, -1%); }
}

.page-home .hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 75%);
}

.page-home .hero-orbs {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.page-home .hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: homeOrbFloat 12s var(--home-ease) infinite alternate;
}

.page-home .hero-orb--1 {
  width: min(420px, 55vw);
  height: min(420px, 55vw);
  top: -8%;
  right: -6%;
  background: radial-gradient(circle, var(--home-gold-glow) 0%, transparent 70%);
  animation-delay: 0s;
}

.page-home .hero-orb--2 {
  width: min(320px, 45vw);
  height: min(320px, 45vw);
  bottom: 10%;
  left: -8%;
  background: radial-gradient(circle, rgba(74, 120, 200, 0.25) 0%, transparent 70%);
  animation-delay: -4s;
  animation-duration: 16s;
}

.page-home .hero-orb--3 {
  width: 180px;
  height: 180px;
  top: 42%;
  left: 38%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  animation-duration: 10s;
}

@keyframes homeOrbFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(24px, -18px) scale(1.08); }
}

.page-home .hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.page-home .hero-inner {
  position: relative;
  z-index: 2;
  max-width: 920px;
  text-align: center;
  animation: none;
}

.page-home .hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.page-home .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--home-glass-border);
  background: var(--home-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--home-gold-bright);
}

.page-home .hero-badge svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.page-home .eyebrow {
  margin-bottom: 22px;
  border-color: rgba(196, 167, 113, 0.35);
  background: rgba(196, 167, 113, 0.12);
  color: var(--home-gold-bright);
  backdrop-filter: blur(8px);
}

.page-home .eyebrow::before {
  border-color: var(--home-gold-bright);
  background: var(--home-gold-bright);
  box-shadow: 0 0 12px var(--home-gold-glow);
  animation: homePulse 2.4s ease-in-out infinite;
}

@keyframes homePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.page-home .hero-title {
  margin-bottom: 26px;
  color: #fff;
  font-size: clamp(2.75rem, 7vw, 5.25rem);
  letter-spacing: -0.02em;
  line-height: 1.02;
}

.page-home .hero-title .title-line {
  display: block;
  overflow: hidden;
}

.page-home .hero-title .title-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(110%);
  animation: homeTitleReveal 1s var(--home-ease) forwards;
}

.page-home .hero-title .title-word[data-delay="1"] { animation-delay: 0.12s; }
.page-home .hero-title .title-word[data-delay="2"] { animation-delay: 0.24s; }
.page-home .hero-title .title-word[data-delay="3"] { animation-delay: 0.36s; }
.page-home .hero-title .title-word[data-delay="4"] { animation-delay: 0.48s; }
.page-home .hero-title .title-word[data-delay="5"] { animation-delay: 0.58s; }
.page-home .hero-title .title-word[data-delay="6"] { animation-delay: 0.68s; }
.page-home .hero-title .title-word[data-delay="7"] { animation-delay: 0.78s; }

.page-home .hero-title .title-accent {
  background: linear-gradient(120deg, var(--home-gold) 0%, var(--home-gold-bright) 45%, #f5e6c8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 24px rgba(196, 167, 113, 0.35));
}

@keyframes homeTitleReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-home .hero-lead {
  max-width: 640px;
  margin: 0 auto 36px;
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
  opacity: 0;
  animation: homeFadeUp 0.9s var(--home-ease) 0.85s forwards;
}

@keyframes homeFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-home .hero-actions {
  opacity: 0;
  animation: homeFadeUp 0.9s var(--home-ease) 1s forwards;
}

.page-home .hero-actions .btn-primary {
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 50%),
    linear-gradient(135deg, var(--home-gold) 0%, #a8894a 100%);
  color: var(--home-navy-deep);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow:
    0 8px 32px rgba(196, 167, 113, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.page-home .hero-actions .btn-primary:hover,
.page-home .hero-actions .btn-primary:focus-visible {
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 50%),
    linear-gradient(135deg, var(--home-gold-bright) 0%, var(--home-gold) 100%);
  color: var(--home-navy-deep);
  box-shadow: 0 14px 48px rgba(196, 167, 113, 0.55);
}

.page-home .hero-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  backdrop-filter: blur(14px);
}

.page-home .hero-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--home-gold);
  color: var(--home-gold-bright);
}

.page-home .hero-schools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  animation: homeFadeUp 0.9s var(--home-ease) 1.15s forwards;
}

.page-home .hero-schools span {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.page-home .hero-schools ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .hero-schools li {
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.04em;
}

.page-home .hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0;
  animation: homeFadeUp 0.8s var(--home-ease) 1.4s forwards;
  transition: color 0.25s ease;
}

.page-home .hero-scroll:hover,
.page-home .hero-scroll:focus-visible {
  color: var(--home-gold-bright);
  outline: none;
}

.page-home .hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, var(--home-gold), transparent);
  animation: homeScrollLine 2s ease-in-out infinite;
}

@keyframes homeScrollLine {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ── Bandeau stats flottant ───────────────────────────────────── */
.page-home .stats-band {
  position: relative;
  z-index: 5;
  margin-top: -56px;
  padding: 0 max(20px, calc((100% - 1120px) / 2)) 72px;
  background: transparent;
}

.page-home .stats-grid {
  width: min(1120px, 100%);
  margin-inline: auto;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  box-shadow:
    0 32px 80px rgba(10, 28, 58, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  border-radius: 16px;
}

.page-home .stat-item {
  background: transparent;
  transition: background 0.35s ease, transform 0.35s var(--home-ease);
}

.page-home .stat-item:hover {
  background: var(--gold-pale);
  transform: translateY(-2px);
}

.page-home .stat-number {
  background: linear-gradient(135deg, var(--home-navy) 0%, var(--home-gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-home .stat-label {
  color: var(--muted);
}

/* ── Histoire — mise en scène éditoriale ──────────────────────── */
.page-home .history {
  position: relative;
  background: var(--home-cream);
  overflow: hidden;
}

.page-home .history::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: min(480px, 60vw);
  height: 100%;
  background: linear-gradient(270deg, rgba(196, 167, 113, 0.06) 0%, transparent 100%);
  pointer-events: none;
}

.page-home .history-copy h2 {
  position: relative;
}

.page-home .history-copy blockquote {
  border-left-width: 3px;
  border-radius: 0 12px 12px 0;
  background: linear-gradient(90deg, rgba(196, 167, 113, 0.08) 0%, var(--white) 40%);
}

.page-home .history-visual::after {
  opacity: 0.5;
  animation: homeDotDrift 20s linear infinite;
}

@keyframes homeDotDrift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-16px, -16px); }
}

.page-home .history-frame {
  border-radius: 16px;
  padding: 10px;
  box-shadow:
    0 40px 100px rgba(10, 28, 58, 0.16),
    0 0 0 1px rgba(196, 167, 113, 0.2);
}

.page-home .history-card {
  border-radius: 12px;
  border-color: rgba(196, 167, 113, 0.35);
  backdrop-filter: blur(8px);
}

.page-home .history-card > span {
  background: linear-gradient(135deg, var(--home-navy) 0%, #1a3a6e 100%);
  color: var(--home-gold-bright);
}

/* ── Formations — cartes premium ──────────────────────────────── */
.page-home .section-formations {
  position: relative;
  background: var(--white);
}

.page-home .section-formations::before {
  content: "Excellence";
  position: absolute;
  top: 48px;
  right: 5%;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 800;
  color: rgba(10, 28, 58, 0.03);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.page-home .section-formations .program-grid-four {
  width: var(--container);
  margin-inline: auto;
  gap: 20px;
  border: none;
  background: transparent;
  box-shadow: none;
  grid-template-columns: repeat(4, 1fr);
}

.page-home .program-card {
  position: relative;
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  border-bottom: 3px solid transparent;
  transition:
    transform 0.45s var(--home-ease),
    box-shadow 0.45s ease,
    border-color 0.35s ease;
}

.page-home .program-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(196, 167, 113, 0.06) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.page-home .program-card:hover::before {
  opacity: 1;
}

@media (hover: hover) {
  .page-home .program-card:not(.program-card--school):not(.is-tilting):hover {
    transform: translateY(-10px);
    box-shadow: 0 28px 60px rgba(10, 28, 58, 0.12);
    border-color: rgba(196, 167, 113, 0.4);
    background: var(--white);
  }
}

.page-home .card-number {
  font-size: 2.6rem;
  opacity: 0.35;
  transition: opacity 0.35s ease, color 0.35s ease;
}

.page-home .program-card:hover .card-number {
  opacity: 1;
  color: var(--home-gold);
}

.page-home .program-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 10px;
  background: var(--gold-pale);
  color: var(--home-navy);
}

.page-home .program-icon svg {
  width: 22px;
  height: 22px;
}

.page-home .program-card .text-link {
  margin-top: auto;
  padding-top: 18px;
  display: inline-flex;
}

/* Logos écoles — grande bannière */
.page-home .school-logos-banner {
  width: var(--container);
  margin: 0 auto 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px 48px;
  padding: 28px 24px;
  border-radius: 14px;
  background: var(--home-cream);
  border: 1px solid var(--line);
}

.page-home .school-logos-banner img {
  height: clamp(56px, 10vw, 88px);
  width: auto;
  max-width: min(220px, 42vw);
  object-fit: contain;
}

/* Cartes écoles avec photo élève */
.page-home .program-grid-schools {
  align-items: stretch;
}

.page-home .program-card--school {
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: auto;
  overflow: hidden;
}

.page-home .program-card--school .card-number {
  display: none;
}

.page-home .program-card--school .program-icon {
  display: none;
}

.page-home .program-card-photo {
  height: 200px;
  overflow: hidden;
  background: var(--home-navy-deep);
}

.page-home .program-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s var(--home-ease);
}

.page-home .program-card--school:hover .program-card-photo img {
  transform: scale(1.04);
}

.page-home .program-card-body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.page-home .program-school-logo {
  height: 52px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  margin-bottom: 14px;
}

.page-home .program-card--school::after {
  display: none;
}

@media (hover: hover) {
  .page-home .program-card--school:not(.is-tilting):hover {
    transform: translateY(-8px);
  }
}

.page-home .section-formations .section-head-centered {
  width: var(--container);
  margin-inline: auto;
  text-align: center;
}

.page-home .section-formations .section-head-centered > p:last-child {
  max-width: 580px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.page-home .media-showcase .section-head-centered {
  width: var(--container);
  margin-inline: auto;
}

.page-home .history-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 28px;
}

.page-home .history-copy .founders-pill {
  margin-top: 4px;
}

/* ── Engagements (trust) ──────────────────────────────────────── */
.page-home .home-trust {
  padding: 64px 0;
  background: var(--white);
  border-block: 1px solid var(--line);
}

.page-home .trust-grid {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  list-style: none;
}

.page-home .trust-item {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--home-cream);
  transition: transform 0.35s var(--home-ease), box-shadow 0.35s ease, border-color 0.35s ease;
}

.page-home .trust-item:hover {
  transform: translateY(-4px);
  border-color: rgba(196, 167, 113, 0.45);
  box-shadow: 0 16px 40px rgba(10, 28, 58, 0.08);
}

.page-home .trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: var(--home-navy);
  color: var(--home-gold-bright);
  font-size: 0.75rem;
  font-weight: 800;
}

.page-home .trust-item h3 {
  margin-bottom: 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.2rem;
  color: var(--black);
}

.page-home .trust-item p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.page-home .home-cta .cta-kicker {
  color: var(--home-gold-bright);
  justify-content: center;
}

.page-home .home-cta .cta-kicker::before {
  background: var(--home-gold-bright);
}

/* ── Bandeau CTA ──────────────────────────────────────────────── */
.page-home .home-cta {
  position: relative;
  padding: 88px 0;
  overflow: hidden;
  background: var(--home-navy);
  color: #fff;
  text-align: center;
}

.page-home .home-cta-inner {
  position: relative;
  z-index: 2;
  width: var(--container);
  margin: 0 auto;
  max-width: 720px;
}

.page-home .home-cta-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 120%, rgba(196, 167, 113, 0.25) 0%, transparent 55%),
    radial-gradient(ellipse 40% 50% at 0% 50%, rgba(255, 255, 255, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.page-home .home-cta h2 {
  color: #fff;
  margin-bottom: 16px;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
}

.page-home .home-cta p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.page-home .home-cta .btn-primary {
  background: linear-gradient(135deg, var(--home-gold) 0%, #a8894a 100%);
  color: var(--home-navy-deep);
  border-color: rgba(255, 255, 255, 0.2);
}

.page-home .btn-on-dark {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  backdrop-filter: blur(12px);
}

.page-home .btn-on-dark:hover,
.page-home .btn-on-dark:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--home-gold-bright);
  color: var(--home-gold-bright);
}

/* ── Aperçu vidéos → espace dédié ─────────────────────────────── */
.page-home .home-videos-teaser {
  background: linear-gradient(180deg, var(--surface) 0%, var(--home-cream) 100%);
}

.page-home .videos-teaser-inner {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  gap: 28px;
}

.page-home .video-teaser-featured {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #060e1f;
  box-shadow: 0 24px 64px rgba(10, 28, 58, 0.12);
}

.page-home .video-teaser-featured .video-stage-mini {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #060e1f;
}

.page-home .video-teaser-featured video {
  width: 100%;
  max-height: min(50vh, 420px);
  object-fit: contain;
}

.page-home .videos-teaser-cta {
  text-align: center;
  padding: 8px 0 16px;
}

.page-home .school-logos-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 32px;
  margin-top: 24px;
}

.page-home .school-logos-row img {
  height: 48px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  opacity: 0.85;
  filter: grayscale(20%);
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.page-home .school-logos-row img:hover {
  opacity: 1;
  filter: none;
}

/* ── Marquee écoles ───────────────────────────────────────────── */
.page-home .marquee-section {
  padding: 40px 0;
  background: var(--white);
  border-block: 1px solid var(--line);
  overflow: hidden;
}

.page-home .marquee-track {
  display: flex;
  width: max-content;
  animation: homeMarquee 32s linear infinite;
}

.page-home .marquee-track:hover {
  animation-play-state: paused;
}

.page-home .marquee-group {
  display: flex;
  align-items: center;
  gap: 48px;
  padding-right: 48px;
  flex-shrink: 0;
}

.page-home .marquee-item {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  opacity: 0.65;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.page-home .marquee-item:hover {
  opacity: 1;
  color: var(--home-gold);
}

@keyframes homeMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Header sur hero sombre ───────────────────────────────────── */
.page-home .site-header {
  border-bottom-color: transparent;
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.page-home .site-header:not(.is-scrolled) .nav-link {
  color: rgba(255, 255, 255, 0.88);
}

.page-home .site-header:not(.is-scrolled) .nav-link:hover,
.page-home .site-header:not(.is-past-hero) .nav-link.is-active {
  color: var(--home-gold-bright);
}

/* Logo blanc sur hero bleu, couleur d'origine après défilement */
.page-home .site-header:not(.is-past-hero) .brand-logo {
  filter: brightness(0) invert(1);
  transition: filter 0.4s var(--home-ease);
}

.page-home .site-header.is-past-hero .brand-logo {
  filter: none;
}

.page-home .site-header:not(.is-past-hero) .menu-toggle {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.page-home .site-header:not(.is-past-hero) .nav-links .btn-primary {
  background: linear-gradient(135deg, var(--home-gold) 0%, #a8894a 100%);
  color: var(--home-navy-deep);
  border-color: rgba(255, 255, 255, 0.25);
}

.page-home .site-header:not(.is-past-hero) .nav-links .btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.page-home .site-header.is-scrolled,
.page-home .site-header.is-past-hero {
  border-bottom-color: var(--line);
  background: rgba(248, 249, 250, 0.96);
  backdrop-filter: blur(16px);
}

.page-home .site-header.is-past-hero .nav-link {
  color: var(--ink-soft);
}

/* ── Footer accent ────────────────────────────────────────────── */
.page-home .footer {
  position: relative;
}

.page-home .footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--home-navy), var(--home-gold), var(--home-navy));
}

.page-home .footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
}

.page-home .footer-legal a {
  color: inherit;
  text-decoration: none;
}

.page-home .footer-legal a:hover {
  color: var(--home-gold);
}

.page-home .footer-legal a:hover {
  color: var(--home-gold);
}

/* Désactive le fade-in global du body sur l'accueil (évite double animation) */
body.page-home {
  animation: none;
}

.page-home .program-card {
  display: flex;
  flex-direction: column;
}

.page-home .card-number {
  position: absolute;
  top: 20px;
  right: 20px;
  margin: 0;
  font-size: 2rem;
  pointer-events: none;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .page-home .section-formations .program-grid-four {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 940px) {
  .page-home .site-header:not(.is-scrolled):not(.is-past-hero) .nav-links.is-open {
    background: rgba(10, 28, 58, 0.97);
    border-color: rgba(255, 255, 255, 0.1);
  }

  .page-home .site-header:not(.is-past-hero) .nav-links.is-open .nav-link {
    color: rgba(255, 255, 255, 0.9);
  }
}

@media (max-width: 940px) {
  .page-home .hero {
    min-height: 100svh;
    padding: 120px 0 96px;
  }

  .page-home .trust-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .page-home .hero {
    padding: 112px 0 80px;
  }

  .page-home .hero-scroll {
    display: none;
  }

  .page-home .stats-band {
    margin-top: -32px;
    padding-bottom: 48px;
  }

  .page-home .section-formations .program-grid-four {
    grid-template-columns: 1fr;
  }

  .page-home .section-formations::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero-mesh,
  .page-home .hero-orb,
  .page-home .hero-title .title-word,
  .page-home .hero-lead,
  .page-home .hero-actions,
  .page-home .hero-schools,
  .page-home .hero-scroll,
  .page-home .marquee-track {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .page-home .hero-title .title-word {
    opacity: 1;
    transform: none;
  }
}
