/* ============================================
   ALTIGRIMP — Salle d'escalade · Taulignan
   "Un cocon de soie devenu cathédrale de roche"
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --roche: #1a1a1a;
  --roche-light: #2d2d2d;
  --magnesie: #f5f0eb;
  --magnesie-glow: 0 0 40px rgba(245, 240, 235, 0.18), 0 0 80px rgba(196, 168, 130, 0.12);
  --soie: #c4a882;
  --soie-warm: #d9b988;
  --corde: #8b4a35;
  --prise: #e85d3a;
  --prise-dark: #c94e2e;
  --prise-soft: #f08566;
  --bleu-actif: #4a8fcf;
  --grain-opacity: 0.06;
  --radius: 3px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--roche);
  color: var(--magnesie);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  width: 100%;
  overscroll-behavior-x: none;
}

/* --- Grain overlay global --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  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)' opacity='0.06'/%3E%3C/svg%3E");
  background-repeat: repeat;
  opacity: 0.65;
}

/* --- Silk texture overlay --- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background: repeating-linear-gradient(
    135deg,
    transparent,
    transparent 2px,
    rgba(196, 168, 130, 0.015) 2px,
    rgba(196, 168, 130, 0.015) 4px
  );
}

/* --- Curseur magnésie --- */
.magnesia-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(245, 240, 235, 0.95), rgba(245, 240, 235, 0.4) 60%, transparent 80%);
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  margin-left: -9px;
  margin-top: -9px;
  opacity: 0;
  transition: opacity 0.4s ease, width 0.25s ease, height 0.25s ease;
  mix-blend-mode: screen;
  filter: blur(1px);
}

.magnesia-cursor.active { opacity: 1; }

.magnesia-trail {
  position: fixed;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 240, 235, 0.7), rgba(245, 240, 235, 0) 70%);
  pointer-events: none;
  z-index: 9996;
  transform: translate(-50%, -50%);
  animation: trailFade 0.9s ease-out forwards;
  mix-blend-mode: screen;
}

@keyframes trailFade {
  0% { opacity: 0.85; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) translateY(-12px) scale(0.4); }
}

@media (hover: none), (prefers-reduced-motion: reduce) {
  .magnesia-cursor, .magnesia-trail { display: none !important; }
}

/* --- Numérique cliquable (easter egg) --- */
.clickable-num {
  cursor: pointer;
  color: var(--prise);
  font-weight: 500;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  border-bottom: 1px dashed rgba(232, 93, 58, 0.4);
}

.clickable-num:hover, .clickable-num:focus-visible {
  color: var(--prise-soft);
  text-shadow: 0 0 12px rgba(232, 93, 58, 0.5);
  outline: none;
}

/* --- Silk Thread (fil de soie animé) --- */
.silk-thread {
  position: fixed;
  left: 0;
  top: 0;
  width: 1px;
  height: 100vh;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(196, 168, 130, 0.35) 20%,
    rgba(196, 168, 130, 0.18) 50%,
    rgba(196, 168, 130, 0.35) 80%,
    transparent 100%
  );
  z-index: 10;
  pointer-events: none;
  transform: translateX(8vw);
  animation: silkShimmer 8s ease-in-out infinite;
}

@keyframes silkShimmer {
  0%, 100% { opacity: 0.5; transform: translateX(8vw); }
  25% { opacity: 0.85; transform: translateX(calc(8vw + 4px)); }
  50% { opacity: 0.5; transform: translateX(8vw); }
  75% { opacity: 0.85; transform: translateX(calc(8vw - 4px)); }
}

/* Second fil ondulant horizontal en arrière-plan du hero */
.silk-thread-h {
  position: absolute;
  bottom: 28%;
  left: -10%;
  width: 120%;
  height: 60px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

.silk-thread-h path {
  stroke: var(--soie);
  stroke-width: 0.6;
  fill: none;
  stroke-dasharray: 3 8;
  animation: silkFlow 12s linear infinite;
}

@keyframes silkFlow {
  to { stroke-dashoffset: -110; }
}

/* --- Typography --- */
h1, h2, h3, h4 { font-weight: 300; letter-spacing: 0.02em; }

h1 { font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 1.5rem; }
h2 span { color: var(--prise); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { max-width: 65ch; }

a, a:visited { color: var(--prise); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--soie); }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s ease, padding 0.4s ease;
}

.nav.scrolled {
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(12px);
  padding: 0.7rem 2rem;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav__logo {
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--magnesie);
}

.nav__logo span { color: var(--prise); font-weight: 600; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav__links a,
.nav__links a:visited {
  color: var(--magnesie);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 2px;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--prise);
  transition: width 0.3s ease;
}

.nav__links a:hover::after { width: 100%; }

.nav__social {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav__social a,
.nav__social button {
  color: var(--magnesie);
  transition: color 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.nav__social a:hover,
.nav__social button:hover {
  color: var(--prise);
  transform: scale(1.15);
}

.nav__social svg { width: 20px; height: 20px; }

/* Burger button */
.nav__burger {
  display: none;
  width: 44px;
  height: 44px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px;
  position: relative;
  z-index: 1002;
  -webkit-tap-highlight-color: transparent;
}

.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--magnesie);
  position: absolute;
  left: 10px;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              opacity 0.3s ease,
              width 0.3s ease;
}

.nav__burger span:nth-child(1) { top: 14px; }
.nav__burger span:nth-child(2) { top: 21px; }
.nav__burger span:nth-child(3) { top: 28px; width: 16px; }

.nav__burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__burger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-8px);
}
.nav__burger.active span:nth-child(3) {
  width: 24px;
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu overlay — lives OUTSIDE <nav> to avoid stacking issues */
.mobile-menu {
  display: none;
}

@media (max-width: 768px) {
  .mobile-menu {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    background: var(--roche);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
  }
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 5rem 2rem 3rem;
}

.mobile-menu__links {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.mobile-menu__links li {
  overflow: hidden;
}

.mobile-menu__links a {
  display: block;
  padding: 1rem 2rem;
  font-size: 1.3rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--magnesie);
  text-decoration: none;
  text-transform: uppercase;
  position: relative;
  transform: translateY(40px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
              opacity 0.5s ease,
              color 0.3s ease;
}

.mobile-menu.open .mobile-menu__links a {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu.open .mobile-menu__links li:nth-child(1) a { transition-delay: 0.1s; }
.mobile-menu.open .mobile-menu__links li:nth-child(2) a { transition-delay: 0.15s; }
.mobile-menu.open .mobile-menu__links li:nth-child(3) a { transition-delay: 0.2s; }
.mobile-menu.open .mobile-menu__links li:nth-child(4) a { transition-delay: 0.25s; }
.mobile-menu.open .mobile-menu__links li:nth-child(5) a { transition-delay: 0.3s; }
.mobile-menu.open .mobile-menu__links li:nth-child(6) a { transition-delay: 0.35s; }

.mobile-menu__links a::after {
  content: '';
  position: absolute;
  bottom: 0.7rem;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 30px;
  height: 1px;
  background: var(--prise);
  transition: transform 0.3s ease;
}

.mobile-menu__links a:hover,
.mobile-menu__links a:active {
  color: var(--prise);
}

.mobile-menu__links a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.mobile-menu__social {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease 0.45s, transform 0.4s ease 0.45s;
}

.mobile-menu.open .mobile-menu__social {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu__social a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--soie);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s ease;
}

.mobile-menu__social a:hover { color: var(--prise); }
.mobile-menu__social svg { width: 20px; height: 20px; }

.mobile-menu__tagline {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(196, 168, 130, 0.3);
  margin-top: 1.5rem;
  opacity: 0;
  transition: opacity 0.4s ease 0.55s;
}

.mobile-menu.open .mobile-menu__tagline { opacity: 1; }

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

.hero__bg {
  position: absolute;
  inset: -40px;
  background: url('../assets/hero-cathedrale.jpg') center center / cover no-repeat;
  z-index: 0;
  filter: contrast(1.05) saturate(0.95);
  transform: scale(1.08);
  animation: heroPulse 14s ease-in-out infinite;
}

@keyframes heroPulse {
  0%, 100% { transform: scale(1.08); }
  50% { transform: scale(1.14); }
}

/* Vignetage radial + dégradé bas/haut */
.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 35%, rgba(26, 26, 26, 0.55) 75%, rgba(26, 26, 26, 0.85) 100%),
    linear-gradient(to bottom, rgba(26, 26, 26, 0.45) 0%, rgba(26, 26, 26, 0.15) 35%, rgba(26, 26, 26, 0.55) 100%);
  pointer-events: none;
}

/* Texture grain sur le hero */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.12'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}

.hero__subtitle {
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--soie);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp 1s ease 0.3s forwards;
}

.hero__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
}

/* Mots révélés un par un */
.hero__title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  animation: wordReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes wordReveal {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.hero__title em {
  font-style: italic;
  font-weight: 400;
  position: relative;
}

.hero__title em .word {
  background: linear-gradient(135deg, var(--prise) 0%, var(--prise-soft) 50%, var(--soie-warm) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(232, 93, 58, 0.5));
}

/* 17m reveal */
.hero__height {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.3em;
  margin: 2rem 0;
  opacity: 0;
  animation: fadeInUp 1s ease 0.8s forwards;
  cursor: pointer;
  transition: transform 0.3s ease;
  outline: none;
}

.hero__height:hover { transform: translateY(-2px); }
.hero__height:focus-visible { outline: 2px solid var(--prise); outline-offset: 8px; }

.hero__height-number {
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 100;
  line-height: 0.85;
  color: var(--magnesie);
  position: relative;
  text-shadow: var(--magnesie-glow);
  background: linear-gradient(180deg, #fff 0%, var(--magnesie) 50%, var(--soie-warm) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 24px rgba(245, 240, 235, 0.18));
}

.hero__height-unit {
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: var(--soie);
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-bottom: 0.5em;
}

/* === Corde SVG verticale animée === */
.hero__rope-svg {
  position: absolute;
  right: 12%;
  top: 0;
  width: 60px;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  animation: ropeFadeIn 1.5s ease 0.8s forwards;
}

.hero__rope-path,
.hero__rope-twist {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: ropeDraw 3s cubic-bezier(0.65, 0, 0.35, 1) 1s forwards;
}

.hero__rope-twist {
  animation-delay: 1.3s;
}

@keyframes ropeFadeIn { to { opacity: 1; } }

@keyframes ropeDraw {
  to { stroke-dashoffset: 0; }
}

/* === Holds flottants en parallaxe === */
.hero__holds {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero__hold {
  position: absolute;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.35));
  opacity: 0;
  animation: holdAppear 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.hero__hold--1 { /* jug en haut gauche */
  top: 12%; left: 6%;
  width: 70px; height: 58px;
  color: var(--prise);
  animation-delay: 1.4s;
  --float-amp: 12px;
  --float-rot: 4deg;
  --float-dur: 9s;
}
.hero__hold--2 { /* pinch droite-haut */
  top: 18%; right: 22%;
  width: 38px; height: 76px;
  color: var(--soie);
  animation-delay: 1.7s;
  --float-amp: 16px;
  --float-rot: -5deg;
  --float-dur: 11s;
}
.hero__hold--3 { /* sloper milieu gauche */
  top: 48%; left: 14%;
  width: 80px; height: 66px;
  color: var(--prise-soft);
  animation-delay: 2s;
  --float-amp: 20px;
  --float-rot: 6deg;
  --float-dur: 13s;
}
.hero__hold--4 { /* blob bas droite */
  bottom: 22%; right: 8%;
  width: 88px; height: 72px;
  color: var(--soie-warm);
  animation-delay: 2.3s;
  --float-amp: 14px;
  --float-rot: -7deg;
  --float-dur: 10s;
}
.hero__hold--5 { /* volume haut droite (loin du texte) */
  top: 32%; right: 6%;
  width: 56px; height: 56px;
  color: var(--corde);
  animation-delay: 1.9s;
  --float-amp: 10px;
  --float-rot: 8deg;
  --float-dur: 12s;
}
.hero__hold--6 { /* pocket bas gauche */
  bottom: 14%; left: 28%;
  width: 50px; height: 50px;
  color: var(--prise);
  animation-delay: 2.5s;
  --float-amp: 18px;
  --float-rot: -4deg;
  --float-dur: 14s;
}

@keyframes holdAppear {
  0% { opacity: 0; transform: scale(0.3) rotate(-30deg); }
  60% { opacity: 0.85; transform: scale(1.05) rotate(2deg); }
  100% { opacity: 0.85; transform: scale(1) rotate(0deg); }
}

/* Float animation appliquée après l'apparition */
.hero__hold {
  animation:
    holdAppear 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
    holdFloat var(--float-dur, 10s) ease-in-out infinite;
  animation-delay: var(--anim-delay, 0s), 2.5s;
}

@keyframes holdFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(calc(var(--float-amp) * -1)) rotate(var(--float-rot)); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__bg { animation: none; }
  .hero__hold { animation: none; opacity: 0.7; }
  .hero__rope-path, .hero__rope-twist { animation: none; stroke-dashoffset: 0; }
}

.hero__tagline {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: rgba(245, 240, 235, 0.6);
  margin-top: 1rem;
  font-weight: 300;
  font-style: italic;
  opacity: 0;
  animation: fadeInUp 1s ease 1.2s forwards;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeIn 1s ease 2s forwards;
}

.hero__scroll span {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--soie);
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: var(--soie);
  animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* --- Sections Common --- */
.section {
  padding: 6rem 2rem;
  position: relative;
}

.section--alt { background: var(--roche-light); }

/* Divider en haut de chaque section */
.section + .section::before,
.section--alt + .section::before,
.section + .section--alt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(540px, 80%);
  height: 28px;
  background-image:
    /* corde horizontale au centre */
    linear-gradient(90deg, transparent 0%, rgba(196, 168, 130, 0.35) 30%, rgba(232, 93, 58, 0.35) 50%, rgba(196, 168, 130, 0.35) 70%, transparent 100%),
    /* trois prises stylisées en pointillés */
    radial-gradient(circle at 35% 50%, var(--prise) 3px, transparent 4px),
    radial-gradient(circle at 50% 50%, var(--soie) 3px, transparent 4px),
    radial-gradient(circle at 65% 50%, var(--prise) 3px, transparent 4px);
  background-size: 100% 1px, 100% 8px, 100% 8px, 100% 8px;
  background-position: center, center, center, center;
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0.7;
}

.section__container {
  max-width: 1100px;
  margin: 0 auto;
}

/* === Section label : effet tape d'escalade === */
.section__label {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--magnesie);
  margin-bottom: 0.6rem;
  position: relative;
  padding: 0.4rem 1rem;
  background: linear-gradient(95deg, rgba(232, 93, 58, 0.15) 0%, rgba(232, 93, 58, 0.25) 50%, rgba(232, 93, 58, 0.15) 100%);
  border-left: 2px solid var(--prise);
  border-right: 1px solid rgba(232, 93, 58, 0.4);
  transform: rotate(-1.5deg);
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.25),
    0 4px 14px rgba(0, 0, 0, 0.2);
  /* Coins légèrement froissés via clip-path */
  clip-path: polygon(0 6%, 96% 0, 100% 92%, 4% 100%);
}

.section__label::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='r'%3E%3CfeTurbulence baseFrequency='0.6' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23r)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* Fade-in au scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reveal masqué par clip-path diagonal (pour images) */
.reveal-clip {
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  transition: clip-path 1.2s cubic-bezier(0.65, 0, 0.35, 1);
}

.reveal-clip.visible {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Héritage Section --- */
.heritage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.heritage__visual {
  position: relative;
  height: 400px;
  background: url('../assets/la-soie-taulignan.jpg') center center / cover no-repeat;
  border-radius: var(--radius);
  overflow: hidden;
}

.heritage__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 26, 0.15) 0%,
    rgba(26, 26, 26, 0.05) 50%,
    rgba(26, 26, 26, 0.2) 100%
  );
}

.heritage__text h2 { color: var(--magnesie); }

.heritage__text h2 span { color: var(--soie); font-style: italic; font-weight: 200; }

.heritage__text p {
  color: rgba(245, 240, 235, 0.7);
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

.heritage__text p:first-of-type::first-letter {
  font-size: 3rem;
  float: left;
  margin-right: 0.5rem;
  line-height: 1;
  color: var(--prise);
  font-weight: 200;
}

/* --- La Salle Section --- */
.salle__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.salle__card {
  background: rgba(245, 240, 235, 0.03);
  border: 1px solid rgba(196, 168, 130, 0.1);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s ease, transform 0.3s ease;
}

.salle__card:hover {
  border-color: rgba(232, 93, 58, 0.3);
  transform: translateY(-4px);
}

.salle__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--prise);
  transition: width 0.4s ease;
}

.salle__card:hover::before { width: 100%; }

.salle__card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.salle__card h3 {
  color: var(--magnesie);
  margin-bottom: 0.8rem;
  font-weight: 400;
}

.salle__card p {
  color: rgba(245, 240, 235, 0.6);
  font-size: 0.95rem;
}

/* Spots list inside card */
.spots-list {
  list-style: none;
  margin-top: 1rem;
  padding: 0;
}

.spots-list li {
  padding: 0.4rem 0;
  padding-left: 1.6rem;
  position: relative;
  color: var(--soie);
  font-size: 0.9rem;
  transition: padding-left 0.3s ease, color 0.3s ease;
}

.spots-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) rotate(-12deg);
  width: 14px;
  height: 12px;
  background-color: var(--prise);
  -webkit-mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 50'%3E%3Cpath d='M5 28 Q3 10 22 6 Q42 4 56 18 Q60 35 48 44 Q28 50 12 44 Q3 38 5 28Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 50'%3E%3Cpath d='M5 28 Q3 10 22 6 Q42 4 56 18 Q60 35 48 44 Q28 50 12 44 Q3 38 5 28Z'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.spots-list li:hover {
  padding-left: 1.9rem;
  color: var(--magnesie);
}

.spots-list li:hover::before {
  background-color: var(--prise-soft);
  transform: translateY(-50%) rotate(0deg) scale(1.15);
}

/* Box atypique */
.salle__box-atypique {
  margin-top: 3rem;
  background: rgba(245, 240, 235, 0.03);
  border: 1px solid rgba(196, 168, 130, 0.15);
  padding: 2.5rem 3rem;
  position: relative;
  overflow: hidden;
}

.salle__box-atypique::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--prise);
}

.salle__box-atypique h3 {
  color: var(--magnesie);
  font-weight: 400;
  margin-bottom: 1.2rem;
  font-size: 1.3rem;
}

.salle__box-atypique p {
  color: rgba(245, 240, 235, 0.7);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* --- Les Espaces (Extérieur, Intérieur, Bloc) --- */
.espaces__subhead {
  margin-top: 3rem;
  margin-bottom: 1rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 300;
  color: var(--soie);
  letter-spacing: 0.04em;
  position: relative;
  padding-left: 3rem;
}

.espaces__subhead::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 2.2rem;
  height: 1px;
  background: var(--prise);
  opacity: 0.7;
}

.espaces__subhead--secondary {
  margin-top: 4rem;
}

/* --- Loupe au survol des photos cliquables --- */
.zoomable {
  position: relative;
  cursor: zoom-in;
}

.zoomable::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0);
  transition: background 0.35s ease;
  pointer-events: none;
  z-index: 3;
}

.zoomable::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: rgba(26, 26, 26, 0.7);
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%23F5F0EB' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.5' y2='16.5'/%3E%3Cline x1='11' y1='8' x2='11' y2='14'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  border: 1px solid rgba(245, 240, 235, 0.35);
  backdrop-filter: blur(2px);
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  z-index: 4;
}

.zoomable:hover::before {
  background: rgba(26, 26, 26, 0.18);
}

.zoomable:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

@media (hover: none) {
  .zoomable::after { display: none; }
  .zoomable { cursor: pointer; }
}

.espaces__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1.4rem;
}

.espaces__grid--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
}

.espace-card {
  background: rgba(245, 240, 235, 0.03);
  border: 1px solid rgba(196, 168, 130, 0.12);
  overflow: hidden;
  position: relative;
  transition: transform 0.4s ease, border-color 0.4s ease;
  display: flex;
  flex-direction: column;
}

.espace-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 93, 58, 0.4);
}

.espace-card__media {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.espace-card__media img {
  width: 100%;
  height: 110%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
  transform: translateY(var(--card-parallax, 0));
  will-change: transform;
}

.espace-card:hover .espace-card__media img {
  transform: translateY(var(--card-parallax, 0)) scale(1.06);
}


.espace-card__tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--soie);
  background: rgba(26, 26, 26, 0.6);
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(196, 168, 130, 0.3);
  backdrop-filter: blur(4px);
}

.espace-card__body {
  padding: 1.8rem 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.espace-card__body h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--magnesie);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.8rem;
  letter-spacing: 0.02em;
}

.espace-card__body h3 em {
  color: var(--prise);
  font-style: italic;
  font-weight: 300;
}

.espace-card__body p {
  color: rgba(245, 240, 235, 0.72);
  font-size: 0.98rem;
  line-height: 1.7;
}

.espace-card__meta {
  margin-top: auto;
  padding-top: 1.2rem;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(196, 168, 130, 0.85);
  border-top: 1px solid rgba(196, 168, 130, 0.12);
  margin-top: 1.4rem;
  padding-top: 1.2rem;
}

@media (max-width: 980px) {
  .espaces__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .espaces__grid--two { grid-template-columns: 1fr; }
  .espace-card__media { height: 220px; }
  .espaces__subhead { padding-left: 2.4rem; font-size: 1.25rem; }
  .espaces__subhead::before { width: 1.6rem; }
}

/* --- Galerie Photos --- */
.galerie { text-align: center; }
.galerie h2 span { color: var(--prise); }

.galerie-carousel {
  position: relative;
  margin-top: 3rem;
  overflow: hidden;
}

.galerie-carousel__track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.galerie-carousel__slide {
  min-width: 100%;
  max-width: 100%;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
  height: clamp(420px, 75vh, 740px);
  background: #0e0e0e;
}

/* Fond flouté (élément réel pour ne pas entrer en conflit avec .zoomable::before/::after) */
.galerie-carousel__slide-bg {
  position: absolute;
  inset: 0;
  background-image: var(--bg-img);
  background-size: cover;
  background-position: center;
  filter: blur(32px) brightness(0.5) saturate(1.1);
  transform: scale(1.18);
  z-index: 0;
  pointer-events: none;
}

.galerie-carousel__slide-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0.32));
  z-index: 1;
  pointer-events: none;
}

.galerie-carousel__slide img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  z-index: 2;
  filter: brightness(0.97) drop-shadow(0 12px 30px rgba(0,0,0,0.55));
  transition: filter 0.4s ease;
}

.galerie-carousel__slide:hover img {
  filter: brightness(1) drop-shadow(0 16px 40px rgba(0,0,0,0.6));
}

.galerie-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(245, 240, 235, 0.3);
  background: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(8px);
  color: var(--magnesie);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.galerie-carousel__btn--prev { left: 0.8rem; }
.galerie-carousel__btn--next { right: 0.8rem; }
.galerie-carousel__btn:hover {
  background: var(--prise);
  border-color: var(--prise);
}

.galerie-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.galerie-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(245, 240, 235, 0.2);
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  padding: 0;
}
.galerie-carousel__dot.active {
  background: var(--prise);
  transform: scale(1.3);
}

@media (max-width: 768px) {
  .galerie-carousel__slide img {
    height: clamp(280px, 60vh, 520px);
  }
  .galerie-carousel__btn { width: 36px; height: 36px; }
}

/* --- La Règle (Magnésie) Section --- */
.regle {
  text-align: center;
  padding: 8rem 2rem;
  position: relative;
}

.regle__icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 240, 235, 0.08), transparent);
  margin-bottom: 2rem;
  cursor: pointer;
  transition: transform 0.3s ease;
  position: relative;
}

.regle__icon-wrap:hover { transform: scale(1.1); }

/* Boule de magnésie SVG */
.regle__chalk-ball {
  width: 60px;
  height: 60px;
}

/* Nuage de magnésie */
.chalk-cloud {
  position: absolute;
  width: 200px;
  height: 200px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.chalk-cloud.active { opacity: 1; }

.chalk-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(245, 240, 235, 0.4);
}

.regle h2 { margin-bottom: 1rem; }
.regle h2 span { color: var(--prise); }

.regle__text {
  font-size: 1.2rem;
  color: rgba(245, 240, 235, 0.8);
  max-width: 500px;
  margin: 0 auto 1.5rem;
}

.regle__detail {
  font-size: 0.85rem;
  color: rgba(245, 240, 235, 0.4);
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.regle__detail span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.regle__detail .no { color: rgba(232, 93, 58, 0.6); }
.regle__detail .yes { color: rgba(196, 168, 130, 0.8); }

/* --- François & Benoît --- */
.equipe__intro {
  text-align: center;
  margin-bottom: 3rem;
}

.equipe__intro p {
  color: rgba(245, 240, 235, 0.6);
  margin: 0 auto;
  font-size: 1.05rem;
}

.equipe__duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 700px;
  margin: 0 auto;
}

.equipe__person {
  text-align: center;
  padding: 2.5rem 2rem;
  background: rgba(245, 240, 235, 0.02);
  border: 1px solid rgba(196, 168, 130, 0.08);
  transition: border-color 0.3s ease;
}

.equipe__person:hover { border-color: rgba(196, 168, 130, 0.2); }

.equipe__person-initial {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--prise), var(--prise-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--magnesie);
  margin: 0 auto 1rem;
}

.equipe__person h3 { font-weight: 400; margin-bottom: 0.3rem; }
.equipe__person p { color: rgba(245, 240, 235, 0.5); font-size: 0.9rem; }

/* === Photo de l'équipe avec étiquettes === */
.equipe__photo {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: visible;
}

.equipe__photo-stage {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  isolation: isolate;
}

.equipe__photo-base {
  width: 100%;
  height: auto;
  display: block;
  filter: contrast(1.04) saturate(1.05);
  transition: filter 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  z-index: 1;
}

/* Silhouettes détourées — superposées exactement sur l'original */
.equipe__detour {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  z-index: 2;
  transition:
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.5s ease,
    filter 0.6s ease;
  filter: drop-shadow(0 0 0 transparent);
  will-change: transform;
}

.equipe__detour--francois { transform-origin: 30% 55%; }
.equipe__detour--benoit { transform-origin: 75% 55%; }

/* Zones de clic sur le corps */
.equipe__bodyhit {
  position: absolute;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 3;
  border-radius: 12px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.equipe__bodyhit:hover,
.equipe__bodyhit:focus-visible {
  background: rgba(232, 93, 58, 0.06);
  box-shadow: inset 0 0 0 1px rgba(232, 93, 58, 0.25);
  outline: none;
}

.equipe__bodyhit--francois { left: 16%; top: 22%; width: 26%; height: 70%; }
.equipe__bodyhit--benoit { left: 60%; top: 22%; width: 26%; height: 70%; }

/* État actif : la base se floute et s'assombrit */
.equipe__photo.is-active .equipe__photo-base {
  filter: blur(6px) brightness(0.4) saturate(0.65);
  transform: scale(1.04);
}

/* Le détouré de la personne active grossit */
.equipe__photo.is-active--francois .equipe__detour--francois,
.equipe__photo.is-active--benoit .equipe__detour--benoit {
  transform: scale(1.35);
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 25px rgba(232, 93, 58, 0.15));
  z-index: 4;
}

/* L'autre personne s'efface */
.equipe__photo.is-active--francois .equipe__detour--benoit,
.equipe__photo.is-active--benoit .equipe__detour--francois {
  opacity: 0;
  transform: scale(0.96);
}

/* Les tags et hotspots disparaissent quand actif */
.equipe__photo.is-active .equipe__tag,
.equipe__photo.is-active .equipe__bodyhit {
  opacity: 0;
  pointer-events: none;
}

.equipe__caption {
  text-align: center;
  margin-top: 1.4rem;
  font-style: italic;
  color: rgba(245, 240, 235, 0.55);
  font-size: 0.95rem;
}

/* Étiquette qui pointe vers une personne — maintenant cliquable */
.equipe__tag {
  position: absolute;
  left: var(--tx);
  top: var(--ty);
  transform: translate(-50%, -50%);
  z-index: 5;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: opacity 0.5s ease, transform 0.4s ease;
}

.equipe__tag:hover .equipe__tag-label,
.equipe__tag:focus-visible .equipe__tag-label {
  transform: rotate(-2deg) translateY(-3px) scale(1.04);
  box-shadow:
    0 2px 0 rgba(0, 0, 0, 0.3),
    0 14px 32px rgba(232, 93, 58, 0.35);
}

.equipe__tag--benoit:hover .equipe__tag-label,
.equipe__tag--benoit:focus-visible .equipe__tag-label {
  transform: rotate(2deg) translateY(-3px) scale(1.04);
}

.equipe__tag:focus-visible {
  outline: 2px solid var(--soie-warm);
  outline-offset: 6px;
  border-radius: 4px;
}

.equipe__tag-label {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.equipe__tag-pin {
  position: absolute;
  left: 0;
  top: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--prise);
  box-shadow:
    0 0 0 3px rgba(232, 93, 58, 0.25),
    0 0 0 6px rgba(232, 93, 58, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, -50%);
  animation: tagPulse 2.4s ease-in-out infinite;
}

@keyframes tagPulse {
  0%, 100% {
    box-shadow:
      0 0 0 3px rgba(232, 93, 58, 0.3),
      0 0 0 6px rgba(232, 93, 58, 0.15),
      0 2px 8px rgba(0, 0, 0, 0.5);
  }
  50% {
    box-shadow:
      0 0 0 8px rgba(232, 93, 58, 0.18),
      0 0 0 14px rgba(232, 93, 58, 0.06),
      0 2px 8px rgba(0, 0, 0, 0.5);
  }
}

.equipe__tag-line {
  position: absolute;
  left: 0;
  top: 0;
  width: 70px;
  height: 1px;
  background: linear-gradient(to right, var(--prise) 0%, rgba(196, 168, 130, 0.7) 100%);
  transform: translate(-100%, -50%) rotate(-25deg);
  transform-origin: right center;
}

.equipe__tag-line--right {
  left: 0;
  background: linear-gradient(to left, var(--prise) 0%, rgba(196, 168, 130, 0.7) 100%);
  transform: translate(0, -50%) rotate(25deg);
  transform-origin: left center;
}

.equipe__tag-label {
  position: absolute;
  left: -90px;
  top: -55px;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.55rem 0.9rem;
  background: linear-gradient(95deg, rgba(232, 93, 58, 0.92) 0%, rgba(201, 78, 46, 0.92) 100%);
  border-left: 2px solid var(--soie-warm);
  color: var(--magnesie);
  white-space: nowrap;
  transform: rotate(-2deg);
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.25),
    0 8px 22px rgba(0, 0, 0, 0.45);
  clip-path: polygon(0 6%, 96% 0, 100% 92%, 4% 100%);
  backdrop-filter: blur(2px);
}

.equipe__tag--benoit .equipe__tag-label {
  left: 24px;
  transform: rotate(2deg);
  border-left: none;
  border-right: 2px solid var(--soie-warm);
}

.equipe__tag-label strong {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1;
}

.equipe__tag-label em {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  font-style: normal;
}

/* === Panneau d'histoire (apparaît à côté de la silhouette grossie) === */
.equipe__story {
  position: absolute;
  top: 50%;
  width: clamp(280px, 46%, 440px);
  max-height: 88%;
  overflow-y: auto;
  padding: 1.8rem 1.6rem 1.6rem;
  background: linear-gradient(165deg, rgba(15, 12, 10, 0.93) 0%, rgba(28, 22, 18, 0.97) 100%);
  border: 1px solid rgba(196, 168, 130, 0.22);
  border-radius: var(--radius);
  color: var(--magnesie);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  z-index: 6;
  transition: opacity 0.5s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Quand François est actif, sa silhouette grossit à gauche → l'histoire arrive à droite */
.equipe__story--francois {
  right: 3%;
  transform: translate(50px, -50%);
}

/* Quand Benoît est actif, sa silhouette grossit à droite → l'histoire arrive à gauche */
.equipe__story--benoit {
  left: 3%;
  transform: translate(-50px, -50%);
}

.equipe__photo.is-active--francois .equipe__story--francois,
.equipe__photo.is-active--benoit .equipe__story--benoit {
  opacity: 1;
  pointer-events: auto;
  transform: translate(0, -50%);
}

.equipe__story-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--prise);
  margin: 0 0 0.7rem;
  font-weight: 500;
}

.equipe__story h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 400;
  margin: 0 0 0.2rem;
  color: var(--magnesie);
  line-height: 1;
}

.equipe__story-role {
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(245, 240, 235, 0.55);
  margin: 0 0 1.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(196, 168, 130, 0.18);
}

.equipe__story-body p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(245, 240, 235, 0.82);
  margin: 0 0 0.9rem;
}

.equipe__story-body p:last-child { margin-bottom: 0; }

.equipe__story-close {
  position: absolute;
  top: 0.7rem;
  right: 0.9rem;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(196, 168, 130, 0.28);
  background: rgba(28, 22, 18, 0.6);
  color: var(--magnesie);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.equipe__story-close:hover {
  background: var(--prise);
  border-color: var(--prise);
  transform: rotate(90deg);
}

/* Hint sous la photo */
.equipe__caption-hint {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(232, 93, 58, 0.72);
  transition: opacity 0.4s ease;
}

.equipe__photo.is-active .equipe__caption-hint {
  opacity: 0;
}

/* Bouton fermer global — en haut à droite de la photo, visible quand actif */
.equipe__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(232, 93, 58, 0.45);
  background: rgba(15, 12, 10, 0.85);
  color: var(--magnesie);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.85);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s ease, border-color 0.25s ease;
  z-index: 7;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
}

.equipe__photo.is-active .equipe__close {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.equipe__close:hover {
  background: var(--prise);
  border-color: var(--prise);
  transform: scale(1.08) rotate(90deg);
}

@media (max-width: 768px) {
  .equipe__tag-label {
    padding: 0.4rem 0.7rem;
    left: -65px;
    top: -45px;
  }
  .equipe__tag--benoit .equipe__tag-label { left: 18px; }
  .equipe__tag-label strong { font-size: 0.95rem; }
  .equipe__tag-label em { font-size: 0.55rem; letter-spacing: 0.18em; }
  .equipe__tag-line { width: 50px; }
  .equipe__tag-pin { width: 11px; height: 11px; }

  /* Sur mobile : panneau d'histoire en bas, plein largeur */
  .equipe__story {
    position: absolute;
    top: auto;
    bottom: 0;
    left: 0 !important;
    right: 0 !important;
    width: 100%;
    max-height: 70%;
    border-radius: var(--radius) var(--radius) 0 0;
    transform: translateY(100%);
    padding: 1.4rem 1.2rem 1.2rem;
  }

  .equipe__photo.is-active--francois .equipe__story--francois,
  .equipe__photo.is-active--benoit .equipe__story--benoit {
    transform: translateY(0);
  }

  .equipe__story h3 { font-size: 1.9rem; }
  .equipe__story-body p { font-size: 0.88rem; line-height: 1.65; }

  /* Le grossissement est plus modéré sur mobile */
  .equipe__photo.is-active--francois .equipe__detour--francois,
  .equipe__photo.is-active--benoit .equipe__detour--benoit {
    transform: scale(1.18);
  }
}

/* === LA CONSTRUCTION === */
.construction h2 span { color: var(--prise); font-style: italic; font-weight: 200; }

.construction__lead {
  max-width: 720px;
  color: rgba(245, 240, 235, 0.72);
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 1.2rem 0 3rem;
}

.construction__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 3.5rem;
}

/* Photos de la construction : grille 2x2 racontant l'histoire */
.construction__photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.construction__shot {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(196, 168, 130, 0.12);
  background: #0e0e0e;
  aspect-ratio: 4 / 3;
}

.construction__shot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.03) brightness(0.95);
  transition: transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1), filter 0.4s ease;
}

/* Le plan : on veut tout voir, pas de crop */
.construction__shot--plan img {
  object-fit: contain;
  background: #f5f0eb;
}

.construction__shot:hover img {
  transform: scale(1.04);
  filter: contrast(1.05) brightness(1);
}

@media (max-width: 540px) {
  .construction__photos { grid-template-columns: 1fr; gap: 0.6rem; }
  .construction__shot { aspect-ratio: 3 / 4; }
}

.construction__video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(196, 168, 130, 0.12);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  background: #000;
}

.construction__video-frame iframe,
.construction__video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.construction__video-frame video {
  object-fit: contain;
  background: #000;
}

.construction__video-caption {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(245, 240, 235, 0.55);
  font-style: italic;
  text-align: center;
}

/* Stats sous la grille */
.construction__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, rgba(245, 240, 235, 0.02), rgba(232, 93, 58, 0.04));
  border: 1px solid rgba(196, 168, 130, 0.12);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.construction__stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 60px;
  background: var(--prise);
}

.construction__stat {
  text-align: center;
  position: relative;
}

.construction__stat + .construction__stat {
  border-left: 1px solid rgba(196, 168, 130, 0.12);
}

.construction__stat-num {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 200;
  line-height: 1;
  background: linear-gradient(180deg, #fff 0%, var(--magnesie) 50%, var(--soie-warm) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(245, 240, 235, 0.15));
}

.construction__stat-unit {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--soie);
}

@media (max-width: 900px) {
  .construction__grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 640px) {
  .construction__stats { grid-template-columns: 1fr; gap: 1.2rem; padding: 1.6rem 1.2rem; }
  .construction__stat + .construction__stat {
    border-left: none;
    border-top: 1px solid rgba(196, 168, 130, 0.12);
    padding-top: 1.2rem;
  }
}

/* --- Horaires Section (fusionnée) --- */
.horaires-contact-map {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 3rem;
}

.horaires__col-title {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--soie);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.maps__col {
  position: relative;
}

.maps__embed-unified {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: 1px solid rgba(196, 168, 130, 0.1);
  filter: grayscale(0.5) brightness(0.8);
  transition: filter 0.4s ease;
}

.maps__embed-unified:hover { filter: grayscale(0) brightness(1); }

/* Legacy grid removed */

.horaires__table {
  width: 100%;
}

.horaires__row {
  display: flex;
  justify-content: space-between;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(196, 168, 130, 0.08);
  font-size: 0.95rem;
  transition: background 0.3s ease;
}

.horaires__row:hover { background: rgba(245, 240, 235, 0.02); }

.horaires__day { color: var(--magnesie); font-weight: 400; }
.horaires__time { color: var(--soie); }
.horaires__row.closed .horaires__time { color: rgba(232, 93, 58, 0.6); }

.horaires__note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: rgba(245, 240, 235, 0.4);
  font-style: italic;
}

/* Contact side */
.contact__block { padding-top: 1rem; }

.contact__item {
  margin-bottom: 2rem;
}

.contact__item-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--soie);
  margin-bottom: 0.5rem;
}

.contact__item-value {
  font-size: 1.1rem;
  color: var(--magnesie);
}

.contact__item-value a,
.contact__item-value a:visited {
  color: var(--magnesie);
  border-bottom: 1px solid rgba(196, 168, 130, 0.2);
  transition: border-color 0.3s ease;
}

.contact__item-value a:hover { border-color: var(--prise); color: var(--prise); }

/* CTA Bouton appel */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2.5rem;
  background: transparent;
  border: 1px solid var(--prise);
  color: var(--prise);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  font-family: inherit;
}

.cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--prise);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: -1;
}

.cta-btn:hover { color: var(--magnesie); border-color: var(--prise); }
.cta-btn:hover::before { transform: scaleX(1); }

.cta-btn:focus-visible {
  outline: 2px solid var(--prise);
  outline-offset: 3px;
}


/* --- Lightbox Photo --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(10, 10, 10, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
}
.lightbox__close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--craie);
  font-size: 2.2rem;
  cursor: pointer;
  z-index: 10001;
  transition: color 0.2s ease, transform 0.2s ease;
}
.lightbox__close:hover { color: var(--prise); transform: rotate(90deg); }
.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(245, 240, 235, 0.08);
  border: 1px solid rgba(245, 240, 235, 0.15);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--craie);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  z-index: 10001;
}
.lightbox__prev { left: 1.5rem; }
.lightbox__next { right: 1.5rem; }
.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(232, 93, 58, 0.15);
  border-color: rgba(232, 93, 58, 0.4);
}

.spots-carousel__img,
.galerie-carousel__slide img {
  cursor: pointer;
}

/* --- CTA Fullscreen Overlay --- */
.cta-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(26, 26, 26, 0.97);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  overflow: hidden;
}

.cta-overlay.active { opacity: 1; visibility: visible; }

/* Prises d'escalade flottantes */
.cta-overlay__holds {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.cta-hold {
  position: absolute;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.cta-overlay.active .cta-hold {
  opacity: 1;
  animation-play-state: running;
}

.cta-hold--1 { width: 80px; top: 8%; left: 5%; animation: holdFloat1 8s ease-in-out infinite; }
.cta-hold--2 { width: 60px; top: 15%; right: 10%; animation: holdFloat2 10s ease-in-out infinite; }
.cta-hold--3 { width: 90px; bottom: 20%; left: 8%; animation: holdFloat3 9s ease-in-out infinite; }
.cta-hold--4 { width: 55px; bottom: 12%; right: 5%; animation: holdFloat1 7s ease-in-out infinite reverse; }
.cta-hold--5 { width: 70px; top: 40%; left: 3%; animation: holdFloat2 11s ease-in-out infinite; }
.cta-hold--6 { width: 50px; top: 35%; right: 4%; animation: holdFloat3 8s ease-in-out infinite; }
.cta-hold--7 { width: 65px; bottom: 40%; left: 12%; animation: holdFloat1 9s ease-in-out infinite; }
.cta-hold--8 { width: 45px; bottom: 35%; right: 12%; animation: holdFloat2 7s ease-in-out infinite reverse; }

@keyframes holdFloat1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(12px, -18px) rotate(5deg); }
  50% { transform: translate(-8px, -30px) rotate(-3deg); }
  75% { transform: translate(15px, -12px) rotate(4deg); }
}

@keyframes holdFloat2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-15px, 12px) rotate(-4deg); }
  50% { transform: translate(10px, -20px) rotate(6deg); }
  75% { transform: translate(-8px, 15px) rotate(-2deg); }
}

@keyframes holdFloat3 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(20px, -15px) rotate(8deg); }
  66% { transform: translate(-12px, 10px) rotate(-5deg); }
}

.cta-overlay__close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--magnesie);
  font-size: 2rem;
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease, transform 0.3s ease;
  z-index: 2;
}

.cta-overlay__close:hover { color: var(--prise); transform: rotate(90deg); }

.cta-overlay__label {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--soie);
  z-index: 1;
}

.cta-overlay__number {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--magnesie);
  opacity: 0;
  transform: translateY(30px) scale(0.9);
  transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1) 0.2s;
  z-index: 1;
  text-align: center;
}

.cta-overlay.active .cta-overlay__number {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.cta-overlay__number--email {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: clamp(1.4rem, 4vw, 2.8rem) !important;
  word-break: break-all;
}

.cta-overlay__actions {
  display: flex;
  gap: 1rem;
  z-index: 1;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease 0.5s, transform 0.5s ease 0.5s;
}

.cta-overlay.active .cta-overlay__actions {
  opacity: 1;
  transform: translateY(0);
}

.cta-overlay__action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 2rem;
  border: 1px solid var(--prise);
  color: var(--prise);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  background: none;
  font-family: inherit;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.cta-overlay__action-btn:hover {
  background: var(--prise);
  color: var(--magnesie);
}

.cta-overlay__copy-btn.copied {
  border-color: #4caf50;
  color: #4caf50;
}
.cta-overlay__copy-btn.copied:hover {
  background: #4caf50;
  color: var(--magnesie);
}

.cta-overlay__sub {
  font-size: 0.85rem;
  color: rgba(245, 240, 235, 0.5);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s ease 0.6s;
}

.cta-overlay.active .cta-overlay__sub {
  opacity: 1;
}

/* --- Google Maps (legacy, now in unified section) --- */

.btn-itineraire,
.btn-itineraire:visited {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  background: var(--prise);
  color: var(--magnesie);
  border: none;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  font-family: inherit;
  text-decoration: none;
  border-radius: var(--radius);
}

.btn-itineraire:hover,
.btn-itineraire:visited:hover {
  background: var(--prise-dark);
  transform: translateY(-2px);
  color: var(--magnesie);
}

.btn-itineraire:focus-visible {
  outline: 2px solid var(--prise);
  outline-offset: 3px;
}

.btn-itineraire svg { width: 18px; height: 18px; }

/* --- Easter Egg Cocon --- */
.easter-egg {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
  cursor: pointer;
  opacity: 0.15;
  transition: opacity 0.4s ease, transform 0.3s ease;
}

.easter-egg:hover { opacity: 0.6; transform: scale(1.2); }

.easter-egg svg { width: 24px; height: 24px; }

.easter-popup {
  position: fixed;
  bottom: 5rem;
  right: 2rem;
  z-index: 101;
  background: var(--roche-light);
  border: 1px solid rgba(196, 168, 130, 0.2);
  padding: 1.2rem 1.5rem;
  max-width: 280px;
  font-size: 0.85rem;
  color: var(--soie);
  line-height: 1.5;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.4s ease;
}

.easter-popup.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.easter-popup::before {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 1rem;
  width: 12px;
  height: 12px;
  background: var(--roche-light);
  border-right: 1px solid rgba(196, 168, 130, 0.2);
  border-bottom: 1px solid rgba(196, 168, 130, 0.2);
  transform: rotate(45deg);
}

/* --- Spots Carousel --- */
.spots-carousel-section {
  background: var(--roche);
  overflow: hidden;
}

.spots-carousel {
  position: relative;
  margin-top: 3rem;
  overflow: hidden;
}

.spots-carousel__track {
  display: flex;
  gap: 0;
  padding: 1rem 0;
  transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.spots-carousel__track::-webkit-scrollbar { display: none; }

.spots-carousel__slide {
  min-width: 100%;
  max-width: 100%;
  flex-shrink: 0;
  background: rgba(245, 240, 235, 0.03);
  border: 1px solid rgba(196, 168, 130, 0.1);
  overflow: hidden;
  transition: opacity 0.5s ease, border-color 0.3s ease;
}

.spots-carousel__slide:hover {
  border-color: rgba(232, 93, 58, 0.3);
}

.spots-carousel__img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  filter: brightness(0.85);
  transition: filter 0.4s ease;
}

.spots-carousel__slide:hover .spots-carousel__img {
  filter: brightness(1);
}

.spots-carousel__info {
  padding: 1.5rem;
}

.spots-carousel__name {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--magnesie);
  margin-bottom: 0.3rem;
}

.spots-carousel__distance {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--prise);
  margin-bottom: 0.8rem;
}

.spots-carousel__desc {
  font-size: 0.9rem;
  color: rgba(245, 240, 235, 0.6);
  line-height: 1.5;
}

.spots-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  background: rgba(30, 28, 26, 0.7);
  border: 1px solid rgba(196, 168, 130, 0.2);
  color: var(--magnesie);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.spots-carousel__btn--prev { left: 0.5rem; }
.spots-carousel__btn--next { right: 0.5rem; }

.spots-carousel__btn:hover {
  background: rgba(232, 93, 58, 0.15);
  border-color: var(--prise);
}

/* Dots indicators */
.spots-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0 0;
}

.spots-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(245, 240, 235, 0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}

.spots-carousel__dot.active {
  background: var(--prise);
  transform: scale(1.3);
}

/* --- Actualités / Facebook Widget --- */
.actu-section {
  background: var(--roche);
  text-align: center;
}

.actu-section .section__label {
  display: inline-block;
}

.actu-section h2 { text-align: center; }

.actu__subtitle {
  color: rgba(245, 240, 235, 0.6);
  max-width: 500px;
  margin: 0 auto 2.5rem;
}

.actu__widget {
  display: flex;
  justify-content: center;
  max-width: 100%;
  overflow: hidden;
}

.actu__widget iframe {
  width: 500px;
  height: 600px;
  max-width: 100%;
  border: none;
  border-radius: var(--radius);
}

@media (max-width: 520px) {
  .actu__widget iframe {
    width: 100%;
    height: 500px;
  }
}

/* --- Sticky Phone CTA --- */
.sticky-phone {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1500;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1rem;
  background: linear-gradient(95deg, var(--prise-dark) 0%, var(--prise) 50%, var(--prise-soft) 100%);
  color: var(--magnesie);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 -2px 24px rgba(232, 93, 58, 0.45);
  transition: filter 0.3s ease;
  border: none;
  cursor: pointer;
  width: 100%;
  font-family: inherit;
  overflow: hidden;
}

.sticky-phone::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
  animation: ctaShine 3.5s ease-in-out infinite;
}

@keyframes ctaShine {
  0% { left: -50%; }
  60%, 100% { left: 150%; }
}

.sticky-phone:hover {
  filter: brightness(1.1);
}

.sticky-phone svg, .sticky-phone span { position: relative; flex-shrink: 0; z-index: 1; }

/* Nav phone link */
.nav__phone-link {
  color: var(--prise) !important;
  transition: color 0.3s ease, transform 0.3s ease;
}

.nav__phone-link:hover {
  color: var(--magnesie) !important;
  transform: scale(1.15);
}

/* Footer phone */
.footer__phone {
  order: 0;
}

.footer__phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--prise);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.footer__phone-link:hover { color: var(--soie); }

/* --- Footer --- */
.footer {
  padding: 3rem 2rem;
  border-top: 1px solid rgba(196, 168, 130, 0.08);
  text-align: center;
}

.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__copy {
  font-size: 0.8rem;
  color: rgba(245, 240, 235, 0.3);
}

.footer__links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer__links a,
.footer__links a:visited {
  font-size: 0.8rem;
  color: rgba(245, 240, 235, 0.4);
  transition: color 0.3s ease;
}

.footer__links a:hover { color: var(--prise); }

/* --- Magnesia Particles Canvas --- */
#magnesiaCanvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* --- Parallax depth --- */
.parallax-layer {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* --- Animations --- */
@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 900px) {
  .heritage { grid-template-columns: 1fr; gap: 2rem; }
  .heritage__visual { height: 250px; }
  .salle__grid { grid-template-columns: 1fr; }
  .horaires-contact-map { grid-template-columns: 1fr; gap: 2rem; }
  .maps__embed-unified { min-height: 300px; }
  .equipe__duo { grid-template-columns: 1fr; max-width: 350px; }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__social--desktop { display: none; }

  .nav__burger { display: flex; }

  .section { padding: 4rem 1.5rem; }

  .hero__rope { right: 8%; }

  .silk-thread { left: 4vw; }

  .regle { padding: 5rem 1.5rem; }

  .footer__inner { flex-direction: column; text-align: center; }

  /* Sticky phone visible on mobile */
  .sticky-phone { display: flex; }

  /* Add bottom padding to body so footer isn't hidden behind sticky bar */
  body { padding-bottom: 52px; }

  /* Carousel arrows smaller on mobile */
  .spots-carousel__btn { width: 36px; height: 36px; }
  .spots-carousel__slide { min-width: 100%; max-width: 100%; }

  /* Box atypique padding */
  .salle__box-atypique { padding: 2rem 1.5rem; }
}

@media (max-width: 480px) {
  .nav { padding: 0.8rem 1rem; }
  .nav__logo { font-size: 1.1rem; }
  .hero__height-number { font-size: clamp(3rem, 15vw, 6rem); }
  .equipe__duo { gap: 1.5rem; }
  .equipe__person { padding: 1.5rem 1rem; }
}

/* --- Focus visible for accessibility --- */
:focus-visible {
  outline: 2px solid var(--prise);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* --- Legal pages --- */
.legal-page {
  padding: 8rem 2rem 4rem;
  max-width: 800px;
  margin: 0 auto;
}

.legal-page h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 3rem;
  color: var(--magnesie);
}

.legal-page h2 {
  font-size: 1.3rem;
  color: var(--soie);
  margin: 2.5rem 0 1rem;
  font-weight: 400;
}

.legal-page p, .legal-page li {
  color: rgba(245, 240, 235, 0.7);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.legal-page ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-page a, .legal-page a:visited { border-bottom: 1px solid rgba(232, 93, 58, 0.3); color: var(--prise); }
.legal-page a:hover { border-color: var(--prise); }


.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  color: var(--soie);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.legal-back:hover { color: var(--prise); }

/* ============================================
   COMPOSANT MOBILE-CAROUSEL (générique)
   Applique à tout élément avec [data-mobi-carousel]
   uniquement sur mobile (≤ 768 px).
   ============================================ */
.mobi-dots { display: none; }

@media (max-width: 768px) {
  [data-mobi-carousel] {
    display: flex !important;
    grid-template-columns: none !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0 !important;
    margin-top: 2rem;
    /* Empêche le scroll-chaining vers le parent */
    overscroll-behavior-x: contain;
  }
  [data-mobi-carousel]::-webkit-scrollbar { display: none; }
  [data-mobi-carousel] > * {
    flex: 0 0 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    box-sizing: border-box;
    /* On force la révélation pour les slides du carrousel — sinon .reveal les laisse à opacity 0 hors viewport */
    opacity: 1 !important;
    transform: none !important;
  }

  .mobi-dots {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin: 1.4rem auto 0;
  }
  .mobi-dots__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(245, 240, 235, 0.22);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  }
  .mobi-dots__dot:hover { background: rgba(245, 240, 235, 0.4); }
  .mobi-dots__dot.active {
    background: var(--bleu-actif);
    transform: scale(1.35);
    box-shadow: 0 0 12px rgba(74, 143, 207, 0.55);
  }

  /* === Bande défilante mobile pour la galerie === */
  .galerie-carousel.is-mobi-marquee {
    margin-top: 2rem;
    overflow: hidden;
    /* Annule tout positionnement parent qui pourrait clipper */
    max-width: 100vw;
  }
  .galerie-carousel.is-mobi-marquee .galerie-carousel__btn,
  .galerie-carousel.is-mobi-marquee .galerie-carousel__dots {
    display: none !important;
  }
  .galerie-carousel.is-mobi-marquee .galerie-carousel__track {
    transition: none;
    animation: galerieMarquee 60s linear infinite;
    width: max-content;
    will-change: transform;
  }
  .galerie-carousel.is-mobi-marquee:hover .galerie-carousel__track,
  .galerie-carousel.is-mobi-marquee .galerie-carousel__track:active {
    animation-play-state: paused;
  }
  .galerie-carousel.is-mobi-marquee .galerie-carousel__slide {
    flex: 0 0 78vw !important;
    min-width: 78vw !important;
    max-width: 78vw !important;
    width: 78vw !important;
    height: clamp(280px, 60vh, 480px);
    margin-right: 12px;
  }
  @keyframes galerieMarquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
  }
}
