/* =========================================================================
   NextPartner × Ormail — SpaceX-style overrides
   Sections plein écran, image de fond + overlay, CTA unique
   ========================================================================= */

body.spacex {
  background: var(--c-bg);
}

/* Header transparent qui devient opaque au scroll */
.site-header--transparent {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  position: fixed;
  width: 100%;
  z-index: 100;
  transition: background var(--t-base), border-color var(--t-base), backdrop-filter var(--t-base);
}
.site-header--transparent.scrolled {
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--c-border);
}

/* HERO SpaceX — plein écran, image de fond, titre énorme */
.hero-spacex {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* effet parallaxe */
  color: white;
  overflow: hidden;
}
.hero-spacex__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10,10,15,0.55) 0%, rgba(10,10,15,0.15) 60%, rgba(10,10,15,0.45) 100%);
}
.hero-spacex__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding-top: var(--sp-9);
}
.hero-spacex__title {
  font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 var(--sp-5);
  color: #ffffff;
  text-shadow: 0 2px 30px rgba(0,0,0,0.4);
}
.hero-spacex__title em {
  font-style: normal;
  color: var(--c-primary-hi);
}
.hero-spacex__lead {
  font-size: var(--fs-lg);
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: var(--sp-6);
  max-width: 600px;
  text-shadow: 0 1px 15px rgba(0,0,0,0.3);
}

.btn--lg {
  padding: var(--sp-4) var(--sp-6);
  font-size: var(--fs-base);
}

/* Indicateur de scroll animé (caché — visuellement distrayant) */
.hero-spacex__scroll { display: none; }

/* FULL SECTION — chaque section prend 100vh avec image + overlay */
.fullsection {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  overflow: hidden;
  padding: var(--sp-9) 0;
}
.fullsection__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,10,15,0.65) 0%, rgba(10,10,15,0.2) 60%, rgba(10,10,15,0.55) 100%);
}
.fullsection__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.fullsection__content .eyebrow {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--sp-4);
  font-size: var(--fs-sm);
  letter-spacing: 0.2em;
}
.fullsection__content h2 {
  font-size: clamp(2rem, 4vw + 0.5rem, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 var(--sp-5);
  color: #ffffff;
  text-shadow: 0 2px 30px rgba(0,0,0,0.4);
}
.fullsection__content h2 em {
  font-style: normal;
  color: var(--c-primary-hi);
}
.fullsection__content p {
  font-size: var(--fs-base);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--sp-6);
  max-width: 560px;
  text-shadow: 0 1px 15px rgba(0,0,0,0.3);
}
.fullsection__content .btn--ghost {
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.fullsection__content .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: white;
  color: #0a0a0f;
}

/* Alternance : sections paires : texte à droite */
.fullsection:nth-child(even) {
  justify-content: flex-end;
}
.fullsection:nth-child(even) .fullsection__content {
  text-align: right;
}
.fullsection:nth-child(even) .fullsection__content p {
  margin-left: auto;
}
.fullsection:nth-child(even) .fullsection__content h2 {
  margin-left: auto;
}

/* Footer dark */
.site-footer--dark {
  background: #000;
  border-top-color: var(--c-border);
  padding: var(--sp-7) 0 var(--sp-5);
}
.site-footer--dark .site-footer__legal {
  border-top-color: var(--c-border);
  color: var(--c-text-dim);
}

/* ====================================================================
   RESPONSIVE — Mobile & Tablette
   ==================================================================== */

/* Tablette (≤ 1024px) */
@media (max-width: 1024px) {
  .container { padding: 0 var(--sp-4); }
  .hero-spacex__title,
  .fullsection__content h2 {
    font-size: clamp(1.75rem, 4vw + 0.5rem, 2.5rem);
  }
  .hero-spacex__content { max-width: 90%; padding-top: var(--sp-8); }
  .fullsection__content { max-width: 85%; }
}

/* Tablette portrait (≤ 768px) */
@media (max-width: 768px) {
  /* Header : logo + nav compact */
  .site-header__inner {
    padding: var(--sp-3) 0;
  }
  .nav { gap: var(--sp-3); }
  .brand { font-size: var(--fs-base); }
  .brand__mark { width: 28px; height: 28px; }
  .brand__mark svg { width: 18px; height: 18px; }

  /* Hero & fullsections : plus courts sur mobile */
  .hero-spacex,
  .fullsection {
    min-height: 85vh;
    background-attachment: scroll;
    padding: var(--sp-8) 0;
  }

  /* Texte : plus petit, mieux aligné */
  .hero-spacex__title {
    font-size: 2rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
  }
  .hero-spacex__lead { font-size: var(--fs-base); }
  .fullsection__content h2 { font-size: 1.75rem; }
  .fullsection__content p { font-size: var(--fs-sm); }

  /* Boutons : pleine largeur ou plus petits */
  .btn { padding: var(--sp-3) var(--sp-4); font-size: var(--fs-sm); }

  /* Sections paires : forcer alignement gauche sur mobile */
  .fullsection:nth-child(even) {
    justify-content: flex-start;
  }
  .fullsection:nth-child(even) .fullsection__content {
    text-align: left;
  }

  /* Footer : empiler */
  .site-footer .container { grid-template-columns: 1fr; gap: var(--sp-4); }
  .site-footer__legal { flex-direction: column; gap: var(--sp-2); text-align: left; }

  /* Container narrower sur mobile */
  .container { padding: 0 var(--sp-4); }
}

/* Mobile (≤ 480px) */
@media (max-width: 480px) {
  .hero-spacex__title { font-size: 1.75rem; }
  .fullsection__content h2 { font-size: 1.5rem; }
  .fullsection__content .eyebrow { font-size: var(--fs-xs); letter-spacing: 0.15em; }
  .hero-spacex,
  .fullsection { min-height: 80vh; padding: var(--sp-7) 0; }
  .btn--lg { padding: var(--sp-3) var(--sp-5); }
}

/* Très petits écrans (≤ 360px) */
@media (max-width: 360px) {
  .brand { gap: var(--sp-2); }
  .nav__lang { padding-left: var(--sp-3); gap: var(--sp-1); }
}

/* Préférence reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Petite scroll indicator JS : on ajoutera un script qui ajoute .scrolled au header */
