/* ═══════════════════════════════════════════════════════════════
   WIF — Thème "SpaceX" pour le haut des pages
   Barre de navigation transparente + bandeau plein écran cinématographique,
   même typographie (Forum) que le reste du site. Chargé après les styles de chaque page.
   ═══════════════════════════════════════════════════════════════ */
:root { --sx-font: 'Forum', serif; --sx-accent: #24b89a; }

/* ── Barre de navigation : transparente au-dessus du bandeau, blanche une fois scrollé ── */
body:has(.page-hero, .profile-hero, .hero) nav#nav {
  transition: background .4s ease, box-shadow .4s ease, border-color .4s ease;
}
body:has(.page-hero, .profile-hero, .hero) nav#nav:not(.scrolled) {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body:has(.page-hero, .profile-hero, .hero) nav#nav:not(.scrolled) .logo-img,
body:has(.page-hero, .profile-hero, .hero) nav#nav:not(.scrolled) #nav-logo {
  filter: brightness(0) invert(1);
}
body:has(.page-hero, .profile-hero, .hero) nav#nav:not(.scrolled) .nav-links a,
body:has(.page-hero, .profile-hero, .hero) nav#nav:not(.scrolled) .nav-links a.active,
body:has(.page-hero, .profile-hero, .hero) nav#nav:not(.scrolled) .nav-links a:hover { color: #fff; }
body:has(.page-hero, .profile-hero, .hero) nav#nav:not(.scrolled) .lang-btn { color: rgba(255,255,255,.7); }
body:has(.page-hero, .profile-hero, .hero) nav#nav:not(.scrolled) .lang-btn:hover,
body:has(.page-hero, .profile-hero, .hero) nav#nav:not(.scrolled) .lang-btn.active { color: #fff; }
body:has(.page-hero, .profile-hero, .hero) nav#nav:not(.scrolled) .nav-login:not(.is-logged) {
  color: #fff; border-color: rgba(255,255,255,.45); background: transparent;
}
body:has(.page-hero, .profile-hero, .hero) nav#nav:not(.scrolled) .nav-login:not(.is-logged):hover {
  background: rgba(255,255,255,.12); border-color: #fff; color: #fff;
}
body:has(.page-hero, .profile-hero, .hero) nav#nav:not(.scrolled) .nav-burger span { background: #fff; }

/* ── Bandeau plein écran (About, Nos actions, Candidature, Actualités) ── */
body .page-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 0 5% 6.5rem;
  background: #000;
  overflow: hidden;
}
body .page-hero .page-hero-photo {
  position: absolute; inset: 0; z-index: 0;
  filter: none;
  transform-origin: 60% 60%;
  animation: sxZoom 26s ease-in-out infinite alternate;
}
body .page-hero .page-hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 22%),
    linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.3) 40%, rgba(0,0,0,0) 68%),
    linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 62%);
}
body .page-hero .page-hero-inner {
  position: relative; z-index: 3;
  width: min(1200px, 90%); max-width: none;
  margin: 0 auto; padding: 0;
}
body .page-hero .page-eyebrow {
  display: inline-flex; align-items: center; gap: 1rem;
  background: none; border: 0; border-radius: 0; padding: 0;
  margin: 0 0 1.6rem;
  font-family: var(--sx-font); font-size: .74rem; font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase;
  color: rgba(255,255,255,.92); text-shadow: 0 1px 12px rgba(0,0,0,.6);
}
body .page-hero .page-eyebrow::before {
  content: ''; width: 46px; height: 1px; border-radius: 0; background: var(--sx-accent);
}
body .page-hero .page-hero-inner h1 {
  font-family: var(--sx-font); font-weight: 400;
  font-size: clamp(3.6rem, 7vw, 6.6rem);
  line-height: .93; letter-spacing: -.01em; text-transform: none;
  color: #fff; margin: 0 0 1.7rem; text-shadow: 0 6px 40px rgba(0,0,0,.45);
}
body .page-hero .page-hero-inner h1 em { font-style: italic; color: var(--sx-accent); }
body .page-hero .page-hero-inner p {
  font-family: inherit; font-size: 1.15rem; line-height: 1.85; font-weight: 300;
  color: rgba(255,255,255,.85); max-width: 530px; margin: 0;
}
/* Indicateur de défilement */
body .page-hero::after {
  content: ''; position: absolute; left: 50%; bottom: 0; z-index: 3;
  width: 1px; height: 86px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,.9));
  transform-origin: top; animation: sxScroll 2.6s ease-in-out infinite;
}

/* ── Petit bandeau des pages Support / Confidentialité : même univers, plus haut ── */
body .hero {
  position: relative; min-height: 62vh; min-height: 62svh;
  display: flex; align-items: flex-end; text-align: left;
  padding: 9rem 5% 4.5rem; background: #000; overflow: hidden;
}
body .hero::before { opacity: .6; filter: none; animation: sxZoom 26s ease-in-out infinite alternate; }
body .hero::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 28%),
    linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,0) 70%),
    linear-gradient(90deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 65%);
}
body .hero .hero-inner { position: relative; z-index: 2; width: min(1200px, 90%); max-width: none; margin: 0 auto; }
body .hero .hero-eyebrow {
  display: inline-flex; align-items: center; gap: 1rem;
  background: none; border: 0; border-radius: 0; padding: 0; margin: 0 0 1.4rem;
  font-family: var(--sx-font); font-size: .72rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--sx-accent);
}
body .hero .hero-eyebrow::before { content: ''; width: 46px; height: 1px; background: var(--sx-accent); }
body .hero h1 {
  font-family: var(--sx-font); font-weight: 700;
  font-size: clamp(2.2rem, 4.2vw, 3.6rem); line-height: 1.08; letter-spacing: normal; text-transform: none;
  color: #fff; margin: 0 0 1rem; text-shadow: 0 6px 40px rgba(0,0,0,.45);
}
body .hero h1 em { font-style: italic; color: var(--sx-accent); }
body .hero p { color: rgba(255,255,255,.75); font-size: 1rem; max-width: 560px; }

/* ── Pages profil (articles "Inspiring Leaders") : même typographie, même barre transparente ── */
body .profile-hero::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 150px; z-index: 5; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,.6), rgba(0,0,0,0));
}
body .profile-hero .profile-eyebrow {
  background: none; border: 0; border-radius: 0; padding: 0; gap: 1rem; margin-bottom: 1.5rem;
  font-family: var(--sx-font); font-size: .72rem; font-weight: 600; letter-spacing: .12em; color: var(--sx-accent);
}
body .profile-hero .profile-eyebrow::before { width: 46px; height: 1px; border-radius: 0; background: var(--sx-accent); }
body .profile-hero .profile-name {
  font-family: var(--sx-font); font-weight: 700; text-transform: none;
  font-size: clamp(1.5rem, 2.6vw, 2.4rem); line-height: 1.18; letter-spacing: normal;
  overflow-wrap: break-word; margin-bottom: 1rem;
}
body .profile-hero .profile-name em { font-style: italic; color: var(--sx-accent); }
body .profile-hero .profile-divider { width: 46px; height: 1px; background: var(--sx-accent); border-radius: 0; }
body .profile-hero .hero-left { background: radial-gradient(120% 90% at 0% 100%, #0b3d28 0%, #030c04 70%); }

/* ── Animations ── */
@keyframes sxZoom { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes sxScroll {
  0%   { transform: scaleY(0); opacity: 0; }
  35%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  body .page-hero .page-hero-photo, body .hero::before, body .page-hero::after { animation: none; }
}
@media (max-width: 768px) {
  body .page-hero { padding-bottom: 4.5rem; }
  body .hero { padding: 7rem 6% 3.5rem; }
  body .page-hero::after { height: 60px; }
}
