/* ============================================================
   RÉUNION PREMIÈRE — Design System
   Palette volcanique : Lave / Ombre / Sable / Végétal
   ============================================================ */

/* === RESET & BASE === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Palette */
  --lava: #FF6B35;
  --lava-light: #FF8C5A;
  --lava-dark: #CC4A1A;
  /* Fonds éclaircis (+lumineux, même teinte nuit volcanique) */
  --shadow: #15152A;
  --shadow-mid: #232342;
  --sand: #F5E6D0;
  --sand-light: #FFF8F0;
  --vegetal: #2D6A4F;
  --vegetal-light: #40916C;
  --sky: #87CEEB;
  --glass-bg: rgba(255, 255, 255, 0.09);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-blur: 20px;

  /* Typo */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;

  /* Spacing */
  --section-pad: clamp(80px, 10vw, 160px);
  --container: 1280px;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --duration: 0.8s;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--shadow);
  color: var(--sand);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

/* === CURSOR PERSONNALISÉ === */
.cursor-glow {
  position: fixed;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,53,0.4) 0%, transparent 70%);
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background 0.3s;
  mix-blend-mode: screen;
}

.cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lava);
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s;
}

/* === PRELOADER === */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease-out-expo), visibility 0.8s;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.preloader-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid transparent;
}

.preloader-ring:nth-child(1) {
  width: 80px;
  height: 80px;
  border-top-color: var(--lava);
  animation: spin 1s linear infinite;
}

.preloader-ring:nth-child(2) {
  width: 60px;
  height: 60px;
  border-right-color: var(--vegetal);
  animation: spin 1.5s linear infinite reverse;
}

.preloader-ring:nth-child(3) {
  width: 40px;
  height: 40px;
  border-bottom-color: var(--sand);
  animation: spin 2s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.preloader-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.5em;
  color: var(--sand);
  margin-top: 100px;
}

.preloader-sub {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--lava);
  text-transform: uppercase;
}

/* === PARTICULES CANVAS === */
.particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* === NAVIGATION === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.5s var(--ease-out-expo);
}

.nav.scrolled {
  background: rgba(21, 21, 42, 0.85);
  backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
  padding: 12px 0;
}

.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--sand);
}

.logo-icon {
  font-size: 1.5rem;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.logo-dot {
  color: var(--lava);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-link {
  position: relative;
  text-decoration: none;
  color: var(--sand);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--lava);
  transition: width 0.4s var(--ease-out-expo);
}

.nav-link:hover,
.nav-link.active {
  color: var(--lava);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: transparent;
  color: var(--sand);
  border: 1px solid rgba(245, 230, 208, 0.3);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.35s var(--ease-out-expo);
}

.nav-cta:hover {
  background: var(--sand-light);
  border-color: var(--sand-light);
  color: var(--shadow);
  transform: translateY(-1px);
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--sand);
  transition: all 0.3s;
}

/* === HERO === */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video-wrapper {
  position: absolute;
  inset: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-gradient {
  /* Allégé : le fond doit EN JETER — on garde juste assez de sombre
     pour la lisibilité du texte et la couture avec la section suivante */
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(21,21,42,0.18) 0%, rgba(21,21,42,0.30) 55%, rgba(21,21,42,0.96) 100%),
    radial-gradient(ellipse at 50% 45%, transparent 35%, rgba(21,21,42,0.35) 100%);
}

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

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  /* padding haut = la nav fixe ne chevauche jamais le badge */
  padding: 110px 30px 70px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 26px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lava);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 30px;
}

.title-line {
  display: block;
}

.title-line-accent {
  background: linear-gradient(135deg, var(--lava) 0%, var(--lava-light) 50%, #FFB347 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(245, 230, 208, 0.85);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.8;
  text-shadow: 0 1px 12px rgba(21, 21, 42, 0.8); /* lisible sur photo claire */
}

.hero-cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

/* === BOUTONS ===
   Philosophie design : l'orange est un ACCENT, jamais un remplissage.
   Primaire = clair premium sur fond sombre. Secondaire = contour fin. */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: all 0.35s var(--ease-out-expo);
  cursor: pointer;
  border: none;
  position: relative;
}

.btn-primary {
  background: var(--sand-light);
  color: var(--shadow);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 10px 30px rgba(0, 0, 0, 0.25);
}

.btn-primary .btn-icon { color: var(--lava-dark); transition: transform 0.35s var(--ease-out-expo); }

.btn-primary:hover {
  transform: translateY(-2px);
  background: #FFFFFF;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 16px 40px rgba(0, 0, 0, 0.35);
}

.btn-primary:hover .btn-icon { transform: translateX(3px) translateY(1px); }

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(245, 230, 208, 0.25);
  color: var(--sand);
}

.btn-ghost:hover {
  border-color: rgba(245, 230, 208, 0.55);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 20px 44px;
  font-size: 1.05rem;
}

.btn-icon {
  font-size: 0.8em;
}

/* === HERO STATS === */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--lava);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 230, 208, 0.5);
  margin-top: 5px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--glass-border);
}

/* === SCROLL INDICATOR === */
.hero-scroll-indicator {
  position: absolute;
  bottom: 16px;
  z-index: 1; /* sous le contenu : ne chevauche jamais les stats */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
  color: rgba(245, 230, 208, 0.4);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--lava), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* === MARQUEE === */
.marquee-section {
  padding: 30px 0;
  background: var(--shadow-mid);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 60px;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}

.marquee-reverse {
  animation: marquee-reverse 25s linear infinite;
  margin-top: 15px;
}

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

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

.marquee-item {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 700;
  color: rgba(245, 230, 208, 0.15);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.marquee-sep {
  color: var(--lava);
  font-size: 0.8rem;
  opacity: 0.5;
}

/* === SECTIONS GÉNÉRIQUES === */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 30px;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 80px;
}

/* Variante asymétrique : casse le motif "tout centré" */
.section-header--left {
  text-align: left;
  margin-left: 0;
  max-width: 760px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 107, 53, 0.1);
  border: 1px solid rgba(255, 107, 53, 0.2);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lava);
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.section-title .accent {
  background: linear-gradient(135deg, var(--lava), var(--lava-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  font-size: 1.1rem;
  color: rgba(245, 230, 208, 0.72);
  line-height: 1.8;
}

/* === RANDONNÉES === */
.randonnees {
  padding: var(--section-pad) 0;
  position: relative;
  z-index: 1;
  /* Halos lumineux : la section respire au lieu d'être un aplat sombre */
  background:
    radial-gradient(ellipse 70% 45% at 18% 12%, rgba(255, 107, 53, 0.09) 0%, transparent 65%),
    radial-gradient(ellipse 60% 40% at 85% 80%, rgba(64, 145, 108, 0.07) 0%, transparent 65%);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Carte vedette : rompt la grille uniforme (1 héros, des seconds rôles) */
@media (min-width: 1025px) {
  .card-featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
  }

  .card-featured .card-image {
    height: 100%;
    min-height: 340px;
  }

  .card-featured .card-title { font-size: 1.8rem; }
}

.card-badge-featured {
  background: rgba(255, 107, 53, 0.16);
  border-color: rgba(255, 107, 53, 0.4);
  color: var(--lava-light);
}

.card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.5s var(--ease-out-expo);
}

.card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 107, 53, 0.3);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(255, 107, 53, 0.1);
}

.card-image {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.card:hover .card-image img {
  transform: scale(1.1);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(21,21,42,0.6) 0%, transparent 45%);
}

.card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 14px;
  background: rgba(21, 21, 42, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sand);
}

.card-body {
  padding: 28px;
}

.card-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.meta-difficulty {
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.diff-easy { background: rgba(45, 106, 79, 0.3); color: #52B788; }
.diff-medium { background: rgba(255, 107, 53, 0.2); color: var(--lava-light); }
.diff-hard { background: rgba(220, 38, 38, 0.2); color: #F87171; }

.meta-time,
.meta-distance {
  font-size: 0.8rem;
  color: rgba(245, 230, 208, 0.5);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--sand);
}

.card-text {
  font-size: 0.9rem;
  color: rgba(245, 230, 208, 0.72);
  line-height: 1.7;
  margin-bottom: 20px;
}

.card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.card-tags span {
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 0.7rem;
  color: rgba(245, 230, 208, 0.5);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--lava);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: gap 0.3s;
}

.card-link:hover {
  gap: 12px;
}

/* === FAUNE & FLORE === */
.faune-flore {
  padding: var(--section-pad) 0;
  background:
    radial-gradient(ellipse 70% 50% at 75% 20%, rgba(64, 145, 108, 0.10) 0%, transparent 65%),
    var(--shadow-mid);
  position: relative;
  z-index: 1;
}

.species-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.species-card {
  padding: 40px 30px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  text-align: center;
  transition: all 0.4s var(--ease-out-expo);
}

.species-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 107, 53, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.species-emoji {
  font-size: 3rem;
  margin-bottom: 20px;
}

/* Vraie photo de l'espèce (remplace l'emoji) */
.species-img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  display: block;
  border: 2px solid var(--glass-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.4s var(--ease-out-expo), border-color 0.4s;
}

.species-card:hover .species-img {
  transform: scale(1.07);
  border-color: rgba(255, 107, 53, 0.45);
}

.species-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--sand);
  margin-bottom: 10px;
}

.species-card p {
  font-size: 0.85rem;
  color: rgba(245, 230, 208, 0.5);
  line-height: 1.6;
}

/* === GALERIE === */
.galerie {
  padding: 60px 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.galerie-track {
  display: flex;
  gap: 20px;
  animation: galerie-scroll 40s linear infinite;
}

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

.galerie-item {
  flex-shrink: 0;
  width: 350px;
  height: 250px;
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.galerie-overlay {
  position: absolute;
  inset: 0;
  background: rgba(21, 21, 42, 0.22);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  transition: background 0.4s;
}

.galerie-item:hover .galerie-overlay {
  background: rgba(21, 21, 42, 0.2);
}

.galerie-overlay span {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
}

/* === CTA FINAL === */
.cta-final {
  padding: var(--section-pad) 0;
  position: relative;
  z-index: 1;
  text-align: center;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(255, 107, 53, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(45, 106, 79, 0.1) 0%, transparent 60%);
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 20px;
}

.cta-title .accent {
  background: linear-gradient(135deg, var(--lava), var(--lava-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-text {
  font-size: 1.1rem;
  color: rgba(245, 230, 208, 0.6);
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === FOOTER === */
.footer {
  padding: 80px 0 30px;
  background: var(--shadow-mid);
  border-top: 1px solid var(--glass-border);
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand .logo-icon,
.footer-brand .logo-text {
  font-size: 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--sand);
}

.footer-brand p {
  margin-top: 15px;
  font-size: 0.9rem;
  color: rgba(245, 230, 208, 0.5);
  line-height: 1.7;
}

.footer-links h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--sand);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.footer-links a {
  display: block;
  color: rgba(245, 230, 208, 0.5);
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 10px;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--lava);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(245, 230, 208, 0.3);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .species-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  body { cursor: auto; }
  .cursor-glow, .cursor-dot { display: none; }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(21, 21, 42, 0.98);
    backdrop-filter: blur(30px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    font-size: 1.5rem;
  }

  .nav-burger {
    display: flex;
    z-index: 1001;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .species-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .galerie-item {
    width: 250px;
    height: 180px;
  }
}

/* ============================================================
   FUSION GLM 5.1 — Hero canvas, Mini-vidéos, Vagues, Volcan,
   Témoignages, FAQ
   ============================================================ */

/* === VIEW TRANSITIONS API (2026) ===
   Transitions fluides natives entre index ↔ pages détail */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.35s;
}

/* === FOCUS VISIBLE (accessibilité clavier) === */
:focus-visible {
  outline: 2px solid var(--lava);
  outline-offset: 3px;
  border-radius: 4px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* === HERO — COUCHES DE FOND === */
/* Couche 1 : photo volcanique, toujours visible, bien lumineuse */
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  animation: heroPhotoZoom 24s ease-in-out infinite alternate;
}

@keyframes heroPhotoZoom {
  from { transform: scale(1); }
  to { transform: scale(1.12) translate(-1.5%, -1%); }
}

/* Couche 2 : canvas d'effets (braises, lave) par-dessus la photo */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s var(--ease-out-expo);
}

.hero-canvas.active { opacity: 1; }

/* Couche 3 : vidéo au-dessus de tout quand elle est prête */
.hero-video {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s var(--ease-out-expo);
}

.hero-video.loaded { opacity: 0.9; }

/* === MINI-VIDÉO CARDS (effet GLM) === */
.mini-video { position: relative; }

.mini-video img {
  will-change: transform;
  /* Ken Burns piloté par variables CSS injectées en JS */
}

@keyframes miniVideoKenBurns {
  0% {
    transform: scale(var(--kb-zoom-start, 1)) translate(0, 0);
  }
  100% {
    transform: scale(var(--kb-zoom-end, 1.15)) translate(var(--kb-pan-x, 3%), var(--kb-pan-y, 2%));
  }
}

.mini-video-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.mini-video-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(255, 255, 255, 0.012) 3px,
    rgba(255, 255, 255, 0.012) 4px
  );
}

/* L'overlay et le badge passent au-dessus des couches vidéo */
.card-overlay { z-index: 3; }
.card-badge { z-index: 4; }

/* === WAVE DIVIDERS === */
.wave-divider {
  position: relative;
  z-index: 1;
  line-height: 0;
  margin-bottom: -1px;
}

.wave-divider svg {
  width: 100%;
  height: 60px;
  display: block;
}

.wave-flip svg { transform: scaleY(-1); }

/* === SECTION VOLCAN === */
.volcan {
  padding: var(--section-pad) 0;
  background: var(--shadow-mid);
  position: relative;
  z-index: 1;
}

.volcan-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 30px;
  align-items: stretch;
}

.volcan-status-card,
.volcan-seismo-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 32px;
}

.volcan-status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.volcan-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(76, 175, 80, 0.15);
  border: 1px solid rgba(76, 175, 80, 0.4);
  border-radius: 50px;
  color: #4CAF50;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.badge-dot-green {
  background: #4CAF50;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

.volcan-coords {
  font-size: 0.75rem;
  color: rgba(245, 230, 208, 0.4);
  letter-spacing: 0.1em;
}

.volcan-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.volcan-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.volcan-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--lava);
}

.volcan-stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(245, 230, 208, 0.5);
}

.volcan-seismo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.seismo-rec {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--lava);
}

.rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FF3D00;
  animation: pulse-dot 1.2s ease-in-out infinite;
}

.seismo-station {
  font-size: 0.7rem;
  color: rgba(245, 230, 208, 0.35);
  letter-spacing: 0.05em;
}

.seismo-canvas {
  width: 100%;
  height: 160px;
  display: block;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
}

/* === TÉMOIGNAGES === */
.temoignages {
  padding: var(--section-pad) 0;
  position: relative;
  z-index: 1;
  background:
    radial-gradient(ellipse 65% 50% at 80% 15%, rgba(255, 140, 90, 0.08) 0%, transparent 65%),
    radial-gradient(ellipse 55% 45% at 12% 85%, rgba(0, 188, 212, 0.05) 0%, transparent 65%);
}

.temoignages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.temoignage-card {
  margin: 0;
  padding: 32px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  transition: all 0.4s var(--ease-out-expo);
}

.temoignage-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 107, 53, 0.25);
}

.temoignage-stars {
  color: var(--lava);
  letter-spacing: 4px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.temoignage-card blockquote {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(245, 230, 208, 0.75);
  margin-bottom: 20px;
  font-style: italic;
}

.temoignage-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--sand);
  font-size: 0.9rem;
}

.temoignage-role {
  font-size: 0.75rem;
  color: rgba(245, 230, 208, 0.4);
  letter-spacing: 0.05em;
}

/* === FAQ === */
.faq {
  padding: var(--section-pad) 0;
  background: var(--shadow-mid);
  position: relative;
  z-index: 1;
}

.container-narrow { max-width: 800px; }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item[open] { border-color: rgba(255, 107, 53, 0.3); }

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--sand);
  list-style: none;
  transition: color 0.3s;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary:hover { color: var(--lava); }

.faq-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 107, 53, 0.12);
  color: var(--lava);
  font-weight: 400;
  transition: transform 0.3s var(--ease-out-expo);
}

.faq-item[open] .faq-icon { transform: rotate(45deg); }

.faq-answer {
  padding: 0 24px 22px;
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(245, 230, 208, 0.6);
}

/* === RESPONSIVE FUSION === */
@media (max-width: 900px) {
  .volcan-grid { grid-template-columns: 1fr; }
  .temoignages-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .hero-video.loaded { opacity: 0.55; }
  .mini-video img { animation: none !important; }
}