/* ============================================
   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;
  --soie: #c4a882;
  --prise: #e85d3a;
  --prise-dark: #c94e2e;
  --grain-opacity: 0.04;
}

html { scroll-behavior: smooth; font-size: 16px; }

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;
}

/* --- 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.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  opacity: 0.5;
}

/* --- 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
  );
}

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

@keyframes silkShimmer {
  0%, 100% { opacity: 0.4; transform: translateX(0); }
  50% { opacity: 0.8; transform: translateX(2px); }
}

/* --- 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; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { max-width: 65ch; }

a { 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 {
  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 {
  color: var(--magnesie);
  transition: color 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
}

.nav__social a: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: -10px;
  background: url('../assets/photo1.jpg') center center / cover no-repeat;
  z-index: 0;
  filter: blur(6px);
}

/* Dark overlay on hero image */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 26, 26, 0.5) 0%,
    rgba(26, 26, 26, 0.35) 40%,
    rgba(26, 26, 26, 0.6) 100%
  );
}

.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-weight: 200;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeInUp 1s ease 0.5s forwards;
}

.hero__title em {
  font-style: normal;
  color: var(--prise);
  font-weight: 400;
}

/* 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;
}

.hero__height-number {
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 100;
  line-height: 0.85;
  color: var(--magnesie);
  position: relative;
}

.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 verticale */
.hero__rope {
  position: absolute;
  right: 15%;
  top: 0;
  width: 2px;
  height: 0;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--soie) 10%,
    var(--soie) 90%,
    transparent
  );
  animation: ropeDescend 2s ease 1.2s forwards;
  z-index: 1;
}

.hero__rope::before {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--prise);
  opacity: 0;
  animation: fadeIn 0.5s ease 3s forwards;
}

@keyframes ropeDescend {
  to { height: 100%; }
}

.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); }

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

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

/* 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-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/photo3.jpg') center center / cover no-repeat;
  border-radius: 2px;
  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.2rem;
  position: relative;
  color: var(--soie);
  font-size: 0.9rem;
}

.spots-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--prise);
}

/* 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;
}

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

.galerie__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
  margin-top: 3rem;
}

.galerie__item {
  overflow: hidden;
  border-radius: 2px;
  position: relative;
}

.galerie__item--large {
  grid-row: 1 / 3;
}

.galerie__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease, filter 0.6s ease;
  filter: brightness(0.85);
}

.galerie__item:hover img {
  transform: scale(1.04);
  filter: brightness(1);
}

.galerie__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,26,0.3) 0%, transparent 40%);
  pointer-events: none;
}

@media (max-width: 768px) {
  .galerie__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .galerie__item--large {
    grid-row: auto;
  }
  .galerie__item img {
    max-height: 300px;
  }
}

/* --- 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; }

/* --- Horaires Section --- */
.horaires__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.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 {
  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;
}

/* --- 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: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

.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;
}

.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);
}

.cta-overlay__number {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 200;
  letter-spacing: 0.05em;
  color: var(--magnesie);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease 0.2s;
}

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

.cta-overlay__sub {
  font-size: 0.85rem;
  color: rgba(245, 240, 235, 0.5);
}

/* --- Google Maps Section --- */
.maps {
  padding: 4rem 2rem 6rem;
}

.maps__container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

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

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

.maps__info h2 { margin-bottom: 1rem; }

.maps__address {
  color: rgba(245, 240, 235, 0.7);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.maps__address strong { color: var(--magnesie); font-weight: 400; }

.btn-itineraire {
  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;
}

.btn-itineraire: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: 180px;
  object-fit: cover;
  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);
}

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

.actu__widget {
  display: flex;
  justify-content: center;
}

.actu__widget iframe {
  width: 500px !important;
  height: 600px !important;
  max-width: 100% !important;
  border: none;
  border-radius: 4px;
  overflow: hidden;
}

/* --- 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: var(--prise);
  color: var(--magnesie);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 -2px 20px rgba(0,0,0,0.4);
  transition: background 0.3s ease;
}

.sticky-phone:hover {
  background: var(--prise-dark);
  color: var(--magnesie);
}

.sticky-phone svg { flex-shrink: 0; }

/* 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 {
  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__grid { grid-template-columns: 1fr; gap: 2rem; }
  .maps__container { grid-template-columns: 1fr; }
  .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 { border-bottom: 1px solid rgba(232, 93, 58, 0.3); }
.legal-page a:hover { border-color: var(--prise); }

.todo-marker {
  background: rgba(232, 93, 58, 0.15);
  border-left: 3px solid var(--prise);
  padding: 0.8rem 1rem;
  margin: 1rem 0;
  font-size: 0.9rem;
  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); }
