/* =============================================================
   HÔTEL SEPT-ÎLES — Feuille de style globale
   MOA Digital Agency — Juin 2026
   Thème : Glassmorphisme clair · Prestige nordique & bord de mer
   ============================================================= */

/* ---------- BASE & TYPOGRAPHIE ---------- */
html { scroll-behavior: smooth; }

h1, h2 { font-family: 'Cormorant Garamond', serif; letter-spacing: 0.02em; }
h3, h4 { font-family: 'Playfair Display', serif; }
p, a, button, input, span { font-family: 'DM Sans', sans-serif; }

.eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #86754C; /* or-antique */
}

.gold-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #C4A95A, transparent);
  margin: 1rem auto;
}

.text-shadow-sm { text-shadow: 0 2px 12px rgba(4, 30, 66, 0.35); }

/* ---------- GLASSMORPHISME ---------- */
.glass-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(6, 51, 108, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.glass-card-blue {
  background: rgba(184, 212, 232, 0.30);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(184, 212, 232, 0.45);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(6, 51, 108, 0.10);
}

.glass-nav {
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(225, 220, 210, 0.60);
  box-shadow: 0 2px 16px rgba(6, 51, 108, 0.06);
}

.glass-hero-badge {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50px;
}

.glass-overlay {
  background: linear-gradient(
    to bottom,
    rgba(6, 51, 108, 0.55) 0%,
    rgba(6, 51, 108, 0.30) 50%,
    rgba(4, 30, 66, 0.70) 100%
  );
}

/* ---------- NAVIGATION ---------- */
.nav-transparent { background: transparent; border-bottom: 1px solid transparent; }
.nav-transparent .nav-link { color: #ffffff; }
.nav-transparent .logo-text { color: #ffffff; }
.nav-transparent #burger { color: #ffffff; }

.scrolled .nav-link { color: #1A1A2E; }
.scrolled .logo-text { color: #06336C; }

/* Le logo de la nav (un seul <img id="nav-logo">) change de src en JS :
   version claire (or + blanc) sur le hero sombre, version couleur quand
   la nav devient blanche au scroll. */
.logo-img { transition: opacity 0.3s ease; }

.nav-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: #C4A95A;
  transform: scaleX(0);
  transition: transform 0.25s;
}
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

/* =============================================================
   HERO — VIDÉO ANIMÉE AU SCROLL (scroll-scrubbing cinématique)
   La section est haute (plusieurs vh) ; le conteneur interne
   est "sticky" et reste plein écran pendant que la vidéo défile
   frame par frame et que les textes se succèdent par étapes.
   ============================================================= */
.hero-scroll {
  position: relative;
  /* hauteur réglée inline (ex. 360vh) pour la course de scroll */
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #041E42;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* léger zoom : la vidéo respire pendant le scrub */
  will-change: transform;
}

/* Overlay dégradé marine pour la lisibilité du texte */
.hero-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(4, 30, 66, 0.45) 0%,
    rgba(6, 51, 108, 0.20) 40%,
    rgba(4, 30, 66, 0.72) 100%
  );
  pointer-events: none;
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* ---------- ÉTAPES DE TEXTE (overlays synchronisés) ---------- */
.hero-stages {
  position: absolute;
  inset: 0;
  z-index: 10;
  color: #ffffff;
}

.hero-stage {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem 0;
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  filter: blur(6px);
  transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), filter 0.7s ease;
  pointer-events: none;
  will-change: opacity, transform;
}

.hero-stage.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  pointer-events: auto;
}

/* ---------- BARRE DE PROGRESSION DU HERO ---------- */
.hero-progress {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.hero-progress-track {
  width: 120px;
  height: 2px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  overflow: hidden;
}
.hero-progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #C4A95A, #E8D89A);
  border-radius: 2px;
  transition: width 0.12s linear;
}
.hero-progress-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* Indicateur "scroll" (visible uniquement au tout début) */
.hero-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 4.5rem;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  transition: opacity 0.4s ease;
}

/* ---------- HERO IMAGE DES PAGES INTÉRIEURES ---------- */
/* Parallaxe (background fixe) uniquement sur desktop : sur tablette/mobile,
   background-attachment:fixed provoque des saccades (surtout iOS). */
.page-hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
@media (min-width: 1025px) and (hover: hover) {
  .page-hero { background-attachment: fixed; }
}

/* ---------- SCROLLBAR PERSONNALISÉE ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #F5F1EB; }
::-webkit-scrollbar-thumb { background: #C4A95A; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #86754C; }

/* ---------- ACCESSIBILITÉ : mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-stage { transition: opacity 0.3s ease; transform: none; filter: none; }
}

/* ---------- RESPONSIVE HERO ---------- */
@media (max-width: 768px) {
  .hero-stage { padding: 6rem 1.25rem 0; }
}
