/* ============================================================
   hero-cinematic.css  —  Hero vidéo immersif + Nav Studio
   Isolation totale : .nav-studio + #hero-cinematic
   Inspiration : Rolex / Apple / Studio haut-de-gamme
   ============================================================ */

/* ── NAV STUDIO ───────────────────────────────────────────── */

.nav-studio {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 76px;
  /* Transparent au départ */
  background: transparent;
  transition:
    background   0.55s cubic-bezier(0.25, 1, 0.5, 1),
    backdrop-filter 0.55s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Anthracite translucide + blur au scroll */
.nav-studio.scrolled {
  background: rgba(12, 12, 12, 0.72);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
}

.nav-studio__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Hamburger + MENU ─────────────────────────────────────── */
.nav-studio__burger {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 0;
  z-index: 2;
}

.burger-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.burger-icon span {
  display: block;
  width: 22px;
  height: 1px;
  background: #F5F5F5;
  border-radius: 1px;
  transition: transform 0.38s cubic-bezier(0.25, 1, 0.5, 1),
              opacity   0.28s ease;
}

.burger-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.80);
  font-weight: 500;
  transition: color 0.25s ease;
}

/* Animation croix à l'ouverture */
.nav-studio__burger[aria-expanded="true"] .burger-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-studio__burger[aria-expanded="true"] .burger-icon span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-studio__burger[aria-expanded="true"] .burger-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ── Logo centré absolu ───────────────────────────────────── */
.nav-studio__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  z-index: 1;
  transition: opacity 0.25s ease;
}
.nav-studio__logo:hover { opacity: 0.78; }

/* ── Lien Contact (droite, symétrique) ───────────────────── */
.nav-studio__cta {
  font-family: 'Inter', sans-serif;
  font-size: 0.70rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.70);
  font-weight: 500;
  transition: color 0.22s ease;
  z-index: 2;
}
.nav-studio__cta:hover { color: #F5F5F5; }

/* ── HERO CINÉMATIQUE ─────────────────────────────────────── */

#hero-cinematic {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a; /* Fallback si video.mp4 absent */
}

/* Vidéo plein écran */
#hero-cinematic .hero-cin-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#hero-cinematic .hero-cin-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Voile sombre gradienté — garantit lisibilité + transition vers section suivante */
#hero-cinematic .hero-cin-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.28) 0%,
    rgba(0, 0, 0, 0.40) 40%,
    rgba(0, 0, 0, 0.60) 80%,
    rgba(0, 0, 0, 0.88) 100%
  );
}

/* ── Contenu centré ───────────────────────────────────────── */
#hero-cinematic .hero-cin-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 820px;
  padding: 0 32px;
}

/* H1 — Typographie massive, line-height serré */
#hero-cinematic .hero-cin-h1 {
  font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
  font-size: clamp(3.8rem, 8.5vw, 7.2rem);
  line-height: 0.90;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #F5F5F5;
  margin-bottom: 40px;

  /* Reveal : glissement du bas, très lent et fluide */
  animation: cin-reveal 1.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Accent ambre sur la dernière ligne */
#hero-cinematic .hero-cin-accent {
  color: oklch(58% 0.14 48);
}

/* CTAs centrés */
#hero-cinematic .hero-cin-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: cin-reveal 1.3s 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Bouton Primary — fond ambre/brique */
#hero-cinematic .hero-cin-btn--primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 999px;
  background: oklch(58% 0.14 48);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1.5px solid transparent;
  transition: background 0.22s ease, transform 0.28s ease, box-shadow 0.28s ease;
  position: relative;
  overflow: hidden;
}
#hero-cinematic .hero-cin-btn--primary::after {
  content: '';
  position: absolute;
  top: -50%; left: -65%;
  width: 40%; height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}
#hero-cinematic .hero-cin-btn--primary:hover::after {
  animation: cin-shimmer 0.5s ease forwards;
}
@keyframes cin-shimmer {
  0%   { left: -65%; }
  100% { left: 130%; }
}
#hero-cinematic .hero-cin-btn--primary:hover {
  background: oklch(50% 0.14 45);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px oklch(58% 0.14 48 / .40);
}

/* Bouton Ghost — contour blanc translucide */
#hero-cinematic .hero-cin-btn--ghost {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(245, 245, 245, 0.88);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.28s ease;
}
#hero-cinematic .hero-cin-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.55);
  color: #F5F5F5;
  transform: translateY(-2px);
}

/* ── Indicateur de scroll : ligne animée ─────────────────── */
#hero-cinematic .hero-cin-scroll {
  position: absolute;
  bottom: 38px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  width: 1px;
  height: 58px;
  background: rgba(245, 245, 245, 0.18);
  overflow: hidden;
}

#hero-cinematic .hero-cin-scroll::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, #F5F5F5 50%, transparent 100%);
  animation: cin-scroll-drop 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes cin-scroll-drop {
  0%   { top: -100%; opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { top: 200%; opacity: 0; }
}

/* ── Reveal keyframe ──────────────────────────────────────── */
@keyframes cin-reveal {
  from {
    opacity: 0;
    transform: translateY(36px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-studio__inner { padding: 0 24px; }
}

@media (max-width: 480px) {
  #hero-cinematic .hero-cin-content { padding: 0 24px; }
}

/* ============================================================
   OVERRIDES & NOUVEAUX COMPOSANTS — v2
   ============================================================ */

/* ── SMOOTH SCROLL GLOBAL ─────────────────────────────────── */
html { scroll-behavior: smooth; }

/* ── LOGO NAV : pile verticale centrée ───────────────────── */
.nav-studio__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  z-index: 1;
  transition: opacity 0.25s ease;
  text-decoration: none;
}
.nav-studio__logo:hover { opacity: 0.78; }

/* Logo image — blanc, sans fond */
.nav-studio__logo-img {
  height: 26px;
  width: auto;
  display: block;
  margin-bottom: 2px;
  /* Logo blanc transparent : visible sur fond sombre */
  filter: brightness(0) invert(1);
}

/* Nom de marque — Inter 600 : même famille que le sous-titre.
   Letter-spacing généreux = cohésion aérée entre les deux lignes. */
.nav-studio__logo-name {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 8px;
  text-transform: uppercase;
  color: #F5F5F5;
  line-height: 1;
}

/* Sous-titre sobre — Inter, très espacé, discret */
.nav-studio__logo-sub {
  font-family: 'Inter', 'Montserrat', sans-serif;
  font-size: 10px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.38);
  font-weight: 400;
  white-space: nowrap;
  margin-top: 5px;
}

/* ── EYEBROW TEXT (au-dessus du H1) ─────────────────────── */
#hero-cinematic .hero-cin-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.70rem;
  font-variant-numeric: normal;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: oklch(58% 0.14 48);
  font-weight: 600;
  margin-bottom: 22px;
  animation: cin-reveal 1s 0.05s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ── H1 : letter-spacing plus aéré ──────────────────────── */
#hero-cinematic .hero-cin-h1 {
  letter-spacing: 0.04em; /* Plus aéré — override du -0.01em */
  margin-bottom: 0;        /* Buttons supprimés, plus de marge */
}

/* ── MENU OVERLAY ────────────────────────────────────────── */
.nav-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 999; /* sous la nav (1000) mais au-dessus de tout le reste */
  background: rgba(6, 6, 6, 0.90);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  display: flex;
  align-items: center;
  justify-content: center;

  /* Caché par défaut */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-menu-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* ── Bouton fermeture × ──────────────────────────────────── */
.nav-menu-close {
  position: absolute;
  top: 28px;
  right: 36px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-menu-close span {
  position: absolute;
  width: 22px;
  height: 1px;
  background: rgba(245, 245, 245, 0.65);
  border-radius: 1px;
  transition: background 0.2s ease;
}
.nav-menu-close span:nth-child(1) { transform: rotate(45deg); }
.nav-menu-close span:nth-child(2) { transform: rotate(-45deg); }
.nav-menu-close:hover span { background: #F5F5F5; }

/* ── Contenu intérieur du menu ───────────────────────────── */
.nav-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 52px;
  text-align: center;
}

/* ── Liens de navigation ──────────────────────────────────── */
.nav-menu-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.nav-menu-link {
  font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 1.0;
  letter-spacing: 0.06em;
  color: rgba(245, 245, 245, 0.75);
  text-decoration: none;
  display: block;
  transition:
    color     0.22s ease,
    transform 0.28s cubic-bezier(0.25, 1, 0.5, 1);

  /* Reveal décalé à l'ouverture */
  opacity: 0;
  transform: translateY(20px);
}

/* Stagger animé à l'ouverture */
.nav-menu-overlay.open .nav-menu-link {
  animation: menu-link-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.nav-menu-overlay.open .nav-menu-link:nth-child(1) { animation-delay: 0.08s; }
.nav-menu-overlay.open .nav-menu-link:nth-child(2) { animation-delay: 0.15s; }
.nav-menu-overlay.open .nav-menu-link:nth-child(3) { animation-delay: 0.22s; }

@keyframes menu-link-in {
  to { opacity: 1; transform: translateY(0); }
}

.nav-menu-link:hover {
  color: #F5F5F5;
  transform: translateX(10px);
}

/* ── Bouton DEVIS GRATUIT ────────────────────────────────── */
.nav-menu-devis {
  display: inline-block;
  padding: 14px 44px;
  border-radius: 999px;
  border: 1.5px solid oklch(58% 0.14 48);
  color: oklch(58% 0.14 48);
  font-family: 'Inter', sans-serif;
  font-size: 0.80rem;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, transform 0.28s ease;

  /* Reveal décalé */
  opacity: 0;
  animation: none;
}
.nav-menu-overlay.open .nav-menu-devis {
  animation: menu-link-in 0.55s 0.30s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.nav-menu-devis:hover {
  background: oklch(58% 0.14 48);
  color: #fff;
  transform: translateY(-2px);
}

/* ── Tagline de bas de menu ──────────────────────────────── */
.nav-menu-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.28);
  font-weight: 400;
  opacity: 0;
}
.nav-menu-overlay.open .nav-menu-tagline {
  animation: menu-link-in 0.55s 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ── RESPONSIVE MENU ─────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-menu-close { top: 20px; right: 20px; }
  .nav-menu-inner { gap: 36px; }
  .nav-menu-link  { font-size: clamp(2.2rem, 9vw, 3.2rem); }
  
  /* Centrage forcé et affichage du sous-titre sur mobile */
  .nav-studio__logo-name {
    font-size: 1.3rem;
    letter-spacing: 5px;
  }
  .nav-studio__logo-sub { 
    display: block !important; 
    font-size: 8px;
    letter-spacing: 2px;
    margin-top: 2px;
  }
}

/* ── LOGO DANS LE MENU OVERLAY ───────────────────────────── */
/*
   Positionnement :
   - Le menu overlay est un flex column centré.
   - Le logo apparaît EN HAUT de la zone de navigation,
     juste avant les liens. Il est intégré dans le flux (pas absolute)
     pour former une pile cohésive : Logo → Liens → Devis.
*/
.nav-menu-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding-bottom: 36px;
  /* Reveal légèrement avant les liens */
  opacity: 0;
}

.nav-menu-overlay.open .nav-menu-logo {
  animation: menu-link-in 0.55s 0.03s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.nav-menu-logo__img {
  /* Grand et dominant — brand mark central */
  height: 180px;
  width: auto;
  max-width: 340px;
  display: block;
  /* Aucun filtre : on veut les couleurs réelles (navigateur bleu + cathédrale rouge) */
  filter: none;
  /* Ombre portée légère pour détacher du fond sombre */
  filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.45));
  object-fit: contain;
  transition: transform 0.30s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-menu-logo__img:hover {
  transform: scale(1.03);
}

/* Le logo est maintenant dans le flux du menu-inner (pas absolute).
   On retire le padding-top qui compensait l'ancien positionnement absolute. */
.nav-menu-overlay .nav-menu-inner {
  padding-top: 0;
}

