/* ═══════════════════════════════════════════════════════
   CRUNCH SAUNA V2 — Styles partagés (nav + footer)
   Inclus sur toutes les pages du site
═══════════════════════════════════════════════════════ */

/* ── Texte de référence — utiliser partout pour les paragraphes ── */
.text-body {
  font-family: var(--font-body, 'Inter', system-ui, sans-serif);
  font-size: 0.97rem;
  line-height: 1.85;
  color: var(--text-light, #cbbf9e);
}

/* ── NAVIGATION ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s ease;
}

/* Le backdrop-filter est sur ::before pour ne pas piéger les position:fixed enfants (bug iOS Safari) */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: transparent;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

/* État scroll — glassmorphism */
.site-header.scrolled {
  border-bottom-color: rgba(200, 165, 90, 0.12);
}
.site-header.scrolled::before {
  background: rgba(7, 8, 13, 0.88);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}

/* Pages intérieures — header toujours opaque */
.site-header.opaque {
  border-bottom-color: rgba(200, 165, 90, 0.12);
}
.site-header.opaque::before {
  background: rgba(7, 8, 13, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
  gap: 2rem;
}

/* Logo */
.site-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.site-logo img {
  height: 48px;
  width: auto;
  display: block;
  transition: opacity 0.3s;
}
.site-logo:hover img { opacity: 0.8; }

/* Nav links */
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  list-style: none;
}
.site-nav a {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(237, 228, 204, 0.7);
  padding: 0.5rem 0.85rem;
  display: block;
  position: relative;
  transition: color 0.3s;
}
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.85rem;
  right: 0.85rem;
  height: 1px;
  background: #c8a55a;
  transform: scaleX(0);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: left;
}
.site-nav a:hover,
.site-nav a.active {
  color: #ede4cc;
}
.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

/* CTA nav */
.site-nav .nav-cta {
  color: #c8a55a;
  border: 1px solid rgba(200, 165, 90, 0.3);
  padding: 0.5rem 1.1rem;
  margin-left: 0.5rem;
  transition: all 0.3s;
}
.site-nav .nav-cta::after { display: none; }
.site-nav .nav-cta:hover {
  background: rgba(200, 165, 90, 0.08);
  border-color: #c8a55a;
  color: #c8a55a;
}

/* Burger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid rgba(200, 165, 90, 0.2);
  cursor: pointer;
  padding: 10px;
  flex-shrink: 0;
  transition: border-color 0.3s;
}
.nav-toggle:hover { border-color: rgba(200, 165, 90, 0.5); }
.nav-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: #ede4cc;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ── Mobile nav ── */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #07080d !important;
    background: #07080d !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 100px;
    transform: translateY(-100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.38s cubic-bezier(0.16,1,0.3,1), visibility 0s linear 0.38s;
    z-index: 1002;
  }
  .site-nav.open {
    transform: translateY(0);
    visibility: visible;
    pointer-events: all;
    transition: transform 0.38s cubic-bezier(0.16,1,0.3,1), visibility 0s linear 0s;
  }
  .site-nav ul {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    width: 100%;
  }
  .site-nav a {
    font-size: 1.2rem;
    padding: 0.8rem 2rem;
    letter-spacing: 0.15em;
  }
  .site-nav .nav-cta {
    margin-left: 0;
    margin-top: 0.5rem;
  }
  /* Header toujours visible au-dessus du menu */
  .site-header { z-index: 1001; }
}

/* ── PAGE HERO (pour les pages intérieures) ── */
.page-hero {
  padding: clamp(100px, 14vw, 140px) 0 clamp(50px, 7vw, 70px);
  background: #07080d;
  border-bottom: 1px solid rgba(200, 165, 90, 0.12);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(200,165,90,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .label { margin-bottom: 1rem; }
.page-hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 300;
  color: #ede4cc;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.page-hero .page-hero-desc {
  max-width: 560px;
  font-size: clamp(1rem, 2vw, 1.05rem);
  color: #a89878;
  margin-top: 1rem;
  line-height: 1.75;
}
/* Responsive page-hero avec figure */
.page-hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}
.page-hero-text { flex: 1; min-width: 0; }
@media (max-width: 600px) {
  .page-hero-inner { flex-wrap: wrap; }
  .page-hero-inner .figure-responsive {
    /* Sur très petit écran, figure en dessous si nécessaire */
    width: clamp(80px, 35vw, 140px);
  }
}

/* ── FOOTER ── */
/* ── FOOTER ── */
.site-footer {
  background: #07080d;
  position: relative;
}
.site-footer::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,165,90,0.5) 25%, #c8a55a 50%, rgba(200,165,90,0.5) 75%, transparent);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr 1.5fr;
  gap: 0;
  padding: 3rem 0 2.5rem;
  align-items: start;
}
.footer-main > div {
  padding: 0 2.5rem;
}
.footer-main > div:first-child {
  padding-left: 0;
  padding-top: 0.5rem;
  border-right: 1px solid rgba(200,165,90,0.1);
}
.footer-main > div:nth-child(2) {
  border-right: 1px solid rgba(200,165,90,0.1);
}
.footer-main > div:nth-child(3) {
  border-right: 1px solid rgba(200,165,90,0.1);
}
.footer-main > div:last-child {
  padding-right: 0;
}

/* Logo */
.footer-col-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.footer-logo {
  height: 130px;
  width: auto;
  opacity: 0.88;
  margin-bottom: 0.6rem;
  display: block;
  transition: opacity 0.4s, filter 0.4s;
  filter: drop-shadow(0 0 0px rgba(200,165,90,0));
}
.footer-logo:hover {
  opacity: 1;
  filter: drop-shadow(0 0 16px rgba(200,165,90,0.4));
}
.footer-tagline {
  font-size: 0.65rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #6a5530;
}

/* Colonnes info */
.footer-info-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c8a55a;
  margin-bottom: 0.45rem;
  margin-top: 1.3rem;
}
.footer-info-label:first-child { margin-top: 0; }
.footer-info-val {
  font-size: 0.87rem;
  color: #8a7460;
  line-height: 1.7;
}

.footer-phone {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #cbbf9e;
  letter-spacing: 0.02em;
  margin-bottom: 1.3rem;
  transition: color 0.3s;
}
.footer-phone:hover { color: #c8a55a; }

.footer-socials { display: flex; gap: 0.6rem; }
.footer-social-btn {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(200,165,90,0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6a5530;
  font-size: 0.95rem;
  transition: all 0.35s;
}
.footer-social-btn:hover {
  border-color: #c8a55a;
  color: #c8a55a;
  background: rgba(200,165,90,0.08);
  transform: translateY(-2px);
}

/* Barre du bas */
.footer-bottom {
  border-top: 1px solid rgba(200,165,90,0.1);
  padding: 1.1rem 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.footer-copy {
  font-size: 0.72rem;
  color: #6a5a3a;
}
.footer-bottom-socials {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}
.footer-bottom-social {
  color: #4a3e28;
  font-size: 0.85rem;
  transition: color 0.3s;
}
.footer-bottom-social:hover { color: #c8a55a; }
.footer-legal {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6a5a3a;
  transition: color 0.3s;
}
.footer-legal:hover { color: #c8a55a; }

@media (max-width: 768px) {
  .footer-main { grid-template-columns: 1fr; gap: 0; }
  .footer-main > div { padding: 1.5rem 0; border-right: none; border-bottom: 1px solid rgba(200,165,90,0.08); }
  .footer-main > div:last-child { border-bottom: none; }
  .footer-bottom-inner { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* ── SCROLL TO TOP avec cercle de progression ── */
#scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(7, 8, 13, 0.88);
  border: none;
  color: #c8a55a;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px) scale(0.9);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  z-index: 900;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
#scroll-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}
#scroll-top:hover { color: #e0c07a; }
#scroll-top:hover #scroll-progress-circle { stroke: #e0c07a; }

#scroll-progress-circle {
  transition: stroke-dashoffset 0.1s linear;
}
@media (max-width: 640px) {
  #scroll-top { bottom: 1.2rem; right: 1.2rem; width: 44px; height: 44px; }
  .site-logo {
    flex: 1;
    justify-content: center;
  }
  .site-logo img {
    height: 58px;
  }
}

/* ── BODY-P : texte paragraphe responsive ── */
/* Plus grand sur mobile pour lisibilité, légèrement plus petit sur grand écran */
.body-p {
  font-size: clamp(1rem, 2.2vw, 0.95rem);
  line-height: 1.85;
  color: var(--text-light, #cbbf9e);
}
@media (max-width: 768px) {
  .body-p { font-size: 1.05rem; }
}

/* ── FIGURE RESPONSIVE (personnages) ── */
/* Principe : visible sur tous les écrans, taille proportionnelle */
.figure-responsive {
  flex-shrink: 0;
  align-self: flex-end;
  pointer-events: none;
  user-select: none;
  /* Taille fluide entre mobile et grand écran */
  width: clamp(100px, 18vw, 320px);
}
.figure-responsive img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 50px rgba(200,165,90,0.15));
  animation: figResponsiveFloat 6s ease-in-out infinite;
}
@keyframes figResponsiveFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
/* Sur très petit mobile, si vraiment l'espace manque, on réduit encore */
@media (max-width: 400px) {
  .figure-responsive { width: clamp(80px, 22vw, 120px); }
}

/* ── SCROLL REVEAL (animation partagée) ── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.22s; }
.reveal-delay-3 { transition-delay: 0.34s; }
.reveal-delay-4 { transition-delay: 0.46s; }

/* ══════════════════════════════════
   HERO — VAPEUR & PARTICULES (centralisé)
══════════════════════════════════ */

/* Couche vapeur miroir */
.hero-bg-vapor {
  position: absolute;
  inset: -6%;
  background-image: url('../images/hero-bg.webp');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.85;
  mix-blend-mode: screen;
  will-change: transform, opacity;
  animation: vaporDrift 32s ease-in-out infinite;
  pointer-events: none;
}
@keyframes vaporDrift {
  0%   { transform: scaleX(-1) translateX(0)   translateY(0)   scale(1.06); opacity: 0.85; }
  25%  { transform: scaleX(-1) translateX(6%)  translateY(-2%) scale(1.10); opacity: 0.65; }
  50%  { transform: scaleX(-1) translateX(-6%) translateY(2%)  scale(1.12); opacity: 0.90; }
  75%  { transform: scaleX(-1) translateX(4%)  translateY(-1%) scale(1.08); opacity: 0.60; }
  100% { transform: scaleX(-1) translateX(0)   translateY(0)   scale(1.06); opacity: 0.85; }
}

/* Points dorés */
.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0%   { opacity: 0;   transform: translateY(100%) scale(0.4); }
  8%   { opacity: 1; }
  85%  { opacity: 0.6; }
  100% { opacity: 0;   transform: translateY(-120px) scale(1); }
}

/* Étoiles en croix */
.particle-star {
  position: absolute;
  opacity: 0;
  animation: starFloat linear infinite;
}
.particle-star::before,
.particle-star::after {
  content: '';
  position: absolute;
  background: #e0c07a;
  border-radius: 2px;
}
.particle-star::before { width: 1px; height: 100%; top: 0; left: 50%; transform: translateX(-50%); }
.particle-star::after  { height: 1px; width: 100%; left: 0; top: 50%; transform: translateY(-50%); }
@keyframes starFloat {
  0%   { opacity: 0;   transform: translateY(80px)   rotate(0deg)   scale(0.5); }
  12%  { opacity: 0.9; }
  80%  { opacity: 0.4; transform: translateY(-80px)  rotate(180deg) scale(1); }
  100% { opacity: 0;   transform: translateY(-140px) rotate(220deg) scale(0.8); }
}

/* ── Hero background & overlay (centralisé) ── */
.hero-bg {
  position: absolute; inset: 0;
  background-image: url("../images/hero-bg.webp");
  background-size: cover;
  background-position: center 30%;
  will-change: opacity;
  animation: steamBreathe 9s ease-in-out infinite;
}
@keyframes steamBreathe {
  0%   { opacity: 1; }
  40%  { opacity: 0.72; }
  65%  { opacity: 0.88; }
  100% { opacity: 1; }
}
.hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 20% 60%, rgba(200,165,90,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 60% 80% at 75% 20%, rgba(200,165,90,0.04) 0%, transparent 60%);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(7,8,13,0.97) 0%,
    rgba(7,8,13,0.75) 30%,
    rgba(7,8,13,0.35) 60%,
    rgba(7,8,13,0.15) 100%
  );
}

/* ── Bouton fermeture menu mobile ── */
.nav-close {
  display: none;
}
@media (max-width: 900px) {
  .nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 1.4rem;
    right: 1.4rem;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid rgba(200, 165, 90, 0.4);
    color: #c8a55a;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 1003;
    transition: background 0.3s, border-color 0.3s;
  }
  .nav-close:hover {
    background: rgba(200, 165, 90, 0.1);
    border-color: #c8a55a;
  }
}

/* ── Hero mobile (toutes pages) ── */
@media (max-width: 640px) {
  .hero { height: auto !important; min-height: 86svh !important; }
  .hero-inner {
    position: relative !important;
    top: auto !important; bottom: auto !important;
    left: auto !important; right: auto !important;
    flex-direction: column !important;
    padding-top: 110px !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    padding-bottom: 0 !important;
    align-items: flex-start !important;
  }
  .hero-figure {
    position: relative !important;
    bottom: auto !important; right: auto !important;
    height: auto !important;
    width: clamp(140px, 55vw, 220px) !important;
    margin: 1.5rem auto 0 !important;
    order: 10;
  }
  .hero-figure img { height: auto !important; width: 100% !important; }
  .hero-content { order: 1; width: 100%; }
  .hero-actions {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.8rem !important;
  }
  .hero-actions .btn {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* ── Texte paragraphes plus lisible sur mobile ── */
@media (max-width: 640px) {
  p, .text-body, .intro-block p, .section-header p, .faq-answer-inner,
  .back-desc, .photo-info p, .rule-text, .rules-intro, .rule-card p,
  .rules-summary p, .horaires-text p, .tarifs-intro p, .legal-section p {
    font-size: 1.05rem !important;
    line-height: 1.85 !important;
  }
  h2 { font-size: 2.2rem !important; }
  .label { font-size: 0.78rem !important; letter-spacing: 0.2em !important; }

  /* Tous les boutons centrés sur mobile */
  .btn {
    display: flex !important;
    width: fit-content !important;
    margin-left: auto !important;
    margin-right: auto !important;
    justify-content: center !important;
  }
}
