/* ═══════════════════════════════════════════════════════════
   ProjectBoxW14 — Piscine Service 67
   Feuille de styles principale
   ═══════════════════════════════════════════════════════════ */

/* ─── Variables ─── */
:root {
  --turquoise: #1FB5C9;
  --turquoise-light: #4DD3E5;
  --turquoise-dark: #0F8A9A;
  --ocean-deep: #0A3D4F;
  --ocean-darker: #052A37;
  --ocean-mid: #114F66;
  --foam: #F4FBFB;
  --foam-soft: #E8F4F5;
  --gold: #D4B896;
  --gold-light: #E5CBA8;
  --gold-dark: #B89870;
  --shadow-blue: 0 20px 60px rgba(31, 181, 201, 0.18);
  --shadow-deep: 0 30px 80px rgba(10, 61, 79, 0.4);
  --radius: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ─── Reset & base ─── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--ocean-deep);
  background: var(--foam);
  line-height: 1.65;
  overflow-x: hidden;
  cursor: none; /* curseur personnalisé */
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.section { padding: 120px 0; position: relative; overflow: hidden; }

/* ─── Curseur personnalisé (goutte d'eau) ─── */
.custom-cursor {
  position: fixed;
  width: 32px; height: 32px;
  border: 1.5px solid var(--turquoise);
  border-radius: 50% 50% 50% 0;
  transform: translate(-50%, -50%) rotate(-45deg);
  pointer-events: none;
  z-index: 9999;
  transition: width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s var(--ease);
  mix-blend-mode: difference;
  display: none;
}
.custom-cursor-dot {
  position: fixed;
  width: 6px; height: 6px;
  background: var(--turquoise);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10000;
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .custom-cursor, .custom-cursor-dot { display: block; }
}
.custom-cursor.hover {
  width: 60px; height: 60px;
  background: rgba(31, 181, 201, 0.15);
}

/* ─── Loader ─── */
.loader {
  position: fixed; inset: 0;
  background: linear-gradient(135deg, var(--ocean-deep) 0%, var(--ocean-darker) 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  z-index: 99999;
  transition: opacity 0.8s var(--ease), visibility 0.8s var(--ease);
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-pool {
  position: relative;
  width: 120px; height: 120px;
  display: flex; align-items: center; justify-content: center;
}
.loader-drop {
  width: 50px; height: 50px;
  fill: var(--turquoise);
  animation: drop-fall 1.6s var(--ease) infinite;
  filter: drop-shadow(0 0 20px var(--turquoise));
}
.loader-ripple {
  position: absolute;
  bottom: 0; left: 50%;
  width: 100px; height: 12px;
  border: 2px solid var(--turquoise);
  border-radius: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: ripple-out 1.6s var(--ease) infinite;
}
.loader-ripple-2 { animation-delay: 0.6s; }
.loader-text {
  margin-top: 28px;
  font-family: var(--font-serif);
  color: var(--foam);
  font-size: 1.4rem;
  letter-spacing: 6px;
  opacity: 0.8;
}

/* ─── Bulles d'ambiance ─── */
.bubbles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.bubbles span {
  position: absolute;
  bottom: -50px;
  width: 14px; height: 14px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.6), rgba(31, 181, 201, 0.2));
  border-radius: 50%;
  animation: bubble-up 14s linear infinite;
  opacity: 0;
}
.bubbles span:nth-child(1) { left: 5%; animation-duration: 18s; animation-delay: 0s; width: 10px; height: 10px; }
.bubbles span:nth-child(2) { left: 15%; animation-duration: 14s; animation-delay: 2s; width: 18px; height: 18px; }
.bubbles span:nth-child(3) { left: 28%; animation-duration: 16s; animation-delay: 4s; }
.bubbles span:nth-child(4) { left: 42%; animation-duration: 20s; animation-delay: 1s; width: 22px; height: 22px; }
.bubbles span:nth-child(5) { left: 55%; animation-duration: 13s; animation-delay: 3s; width: 12px; height: 12px; }
.bubbles span:nth-child(6) { left: 68%; animation-duration: 17s; animation-delay: 5s; width: 16px; height: 16px; }
.bubbles span:nth-child(7) { left: 78%; animation-duration: 15s; animation-delay: 7s; width: 8px; height: 8px; }
.bubbles span:nth-child(8) { left: 86%; animation-duration: 19s; animation-delay: 2s; width: 20px; height: 20px; }
.bubbles span:nth-child(9) { left: 92%; animation-duration: 16s; animation-delay: 4s; width: 11px; height: 11px; }
.bubbles span:nth-child(10) { left: 35%; animation-duration: 21s; animation-delay: 6s; width: 14px; height: 14px; }

/* ─── Header ─── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.4s var(--ease);
  background: linear-gradient(180deg, rgba(10, 61, 79, 0.35) 0%, transparent 100%);
}
.header.scrolled {
  padding: 10px 0;
  background: rgba(10, 61, 79, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex; align-items: center; gap: 12px;
  color: var(--foam);
  transition: transform 0.3s var(--ease);
}
.logo:hover { transform: scale(1.03); }
.logo-icon {
  width: 38px; height: 38px;
  fill: var(--turquoise);
  filter: drop-shadow(0 0 8px rgba(31, 181, 201, 0.5));
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-main {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  letter-spacing: 1px;
}
.logo-sub {
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--turquoise-light);
  opacity: 0.85;
}

.nav-list {
  display: flex;
  gap: 36px;
}
.nav-link {
  color: var(--foam);
  font-size: 0.92rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 400;
  position: relative;
  padding: 8px 0;
  transition: color 0.3s var(--ease);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0;
  width: 0; height: 1.5px;
  background: var(--turquoise);
  transition: width 0.4s var(--ease);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link:hover { color: var(--turquoise-light); }

.header-actions { display: flex; align-items: center; gap: 16px; }

.audio-toggle {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(244, 251, 251, 0.3);
  color: var(--foam);
  display: grid; place-items: center;
  transition: all 0.3s var(--ease);
}
.audio-toggle:hover { border-color: var(--turquoise); background: rgba(31, 181, 201, 0.12); }
.audio-toggle svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.audio-toggle .icon-sound-on { display: none; }
.audio-toggle.active .icon-sound-off { display: none; }
.audio-toggle.active .icon-sound-on { display: block; color: var(--turquoise); }
.audio-toggle.active { border-color: var(--turquoise); background: rgba(31, 181, 201, 0.12); }

.menu-toggle {
  display: none;
  width: 36px; height: 36px;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px;
}
.menu-toggle span {
  width: 24px; height: 2px;
  background: var(--foam);
  transition: all 0.3s var(--ease);
}

/* ─── Boutons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.btn:hover::before { opacity: 1; }
.btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

.btn-primary {
  background: linear-gradient(135deg, var(--turquoise) 0%, var(--turquoise-dark) 100%);
  color: white;
  box-shadow: 0 10px 30px rgba(31, 181, 201, 0.4);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(31, 181, 201, 0.55); }

.btn-cta {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--ocean-deep);
  padding: 12px 22px;
  font-size: 0.85rem;
  box-shadow: 0 6px 20px rgba(212, 184, 150, 0.4);
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(212, 184, 150, 0.6); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-dark) 100%);
  color: var(--ocean-deep);
  box-shadow: 0 8px 24px rgba(212, 184, 150, 0.4);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(212, 184, 150, 0.6); }

.btn-ghost {
  background: transparent;
  color: var(--foam);
  border: 1.5px solid rgba(244, 251, 251, 0.6);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(244, 251, 251, 0.12); border-color: var(--foam); }

.btn-block { width: 100%; }

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  color: var(--foam);
  text-align: center;
  background: linear-gradient(135deg, var(--ocean-deep), var(--ocean-darker));
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.65) saturate(1.1);
}

/* Slideshow Ken Burns — alternative immersive sans vidéo */
.hero-slideshow {
  position: absolute; inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--ocean-deep);
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.6) saturate(1.15);
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.6s ease-in-out;
  will-change: opacity, transform;
}
.hero-slide.active {
  opacity: 1;
  animation: ken-burns 12s ease-in-out forwards;
}
@keyframes ken-burns {
  0%   { transform: scale(1.08) translate(0, 0); }
  100% { transform: scale(1.18) translate(-2%, -1.5%); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 0%, rgba(10, 61, 79, 0.55) 80%),
    linear-gradient(180deg, rgba(10, 61, 79, 0.4) 0%, rgba(10, 61, 79, 0.7) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 80px;
}
.hero-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--turquoise-light);
  margin-bottom: 24px;
  opacity: 0.9;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 500;
  margin-bottom: 28px;
  line-height: 1.1;
  letter-spacing: 1px;
}
.reveal-word {
  display: inline-block;
  margin: 0 6px;
  opacity: 0;
  transform: translateY(40px);
  animation: word-reveal 0.9s var(--ease) forwards;
}
.reveal-word:nth-child(1) { animation-delay: 0.6s; }
.reveal-word:nth-child(2) { animation-delay: 0.75s; }
.reveal-word:nth-child(3) { animation-delay: 0.9s; }
.reveal-word:nth-child(4) {
  animation-delay: 1.05s;
  font-style: italic;
  color: var(--turquoise-light);
}
.hero-subtitle {
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto 44px;
  font-weight: 400;
  letter-spacing: 0.5px;
}
.hero-subtitle-light {
  display: block;
  font-size: 0.95rem;
  margin-top: 8px;
  opacity: 0.8;
  letter-spacing: 1.5px;
}
.hero-ctas {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}

.hero-waves {
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  z-index: 2;
  pointer-events: none;
}
.hero-waves svg { width: 100%; height: 200px; display: block; }
.wave { fill: var(--foam); opacity: 0.9; }
.wave-1 { animation: wave-shift 12s ease-in-out infinite; opacity: 0.4; }
.wave-2 { animation: wave-shift 16s ease-in-out infinite reverse; opacity: 0.6; }
.wave-3 { animation: wave-shift 20s ease-in-out infinite; opacity: 1; }

.scroll-indicator {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--foam);
  display: flex; flex-direction: column;
  align-items: center; gap: 12px;
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.85;
  animation: float-down 3s ease-in-out infinite;
}
.scroll-drop {
  width: 32px; height: 32px;
}
.scroll-drop svg { width: 100%; height: 100%; fill: var(--turquoise-light); }

/* ─── Stats ─── */
.stats {
  background: linear-gradient(180deg, var(--foam) 0%, var(--foam-soft) 100%);
  padding: 80px 0;
  position: relative;
  z-index: 5;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stat {
  text-align: center;
  padding: 24px;
  position: relative;
}
.stat::after {
  content: '';
  position: absolute;
  top: 30%; right: 0;
  height: 40%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--turquoise), transparent);
  opacity: 0.3;
}
.stat:last-child::after { display: none; }
.stat-number {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--turquoise);
  display: inline-block;
}
.stat-suffix {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--turquoise-dark);
  margin-left: 4px;
}
.stat-label {
  margin-top: 6px;
  font-size: 0.95rem;
  color: var(--ocean-deep);
  letter-spacing: 1px;
}

/* ─── Section headers ─── */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 80px;
}
.section-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--turquoise-dark);
  margin-bottom: 16px;
}
.section-eyebrow.light { color: var(--turquoise-light); }
.section-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 20px;
  color: var(--ocean-deep);
}
.section-title.light { color: var(--foam); }
.section-title em {
  font-style: italic;
  color: var(--turquoise);
  font-weight: 400;
}
.section-title.light em { color: var(--turquoise-light); }
.section-intro {
  font-size: 1.05rem;
  color: var(--ocean-mid);
  letter-spacing: 0.3px;
}
.section-intro.light { color: rgba(244, 251, 251, 0.85); }

/* ─── Services ─── */
.services { background: var(--foam); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.service-card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(31, 181, 201, 0.15);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all 0.5s var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: linear-gradient(135deg, var(--turquoise), transparent 60%);
  border-radius: var(--radius-lg);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.5s var(--ease);
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-blue);
  border-color: transparent;
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  font-size: 2.6rem;
  margin-bottom: 18px;
  display: inline-block;
  transition: transform 0.5s var(--ease);
}
.service-card:hover .service-icon { transform: scale(1.15) rotate(-6deg); }
.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--ocean-deep);
}
.service-card p {
  font-size: 0.95rem;
  color: var(--ocean-mid);
  margin-bottom: 18px;
  line-height: 1.7;
}
.service-link {
  color: var(--turquoise-dark);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: gap 0.3s var(--ease);
  display: inline-flex;
  gap: 4px;
}
.service-link:hover { gap: 10px; color: var(--turquoise); }

.section-waves {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  pointer-events: none;
  z-index: 1;
}
.section-waves svg { width: 100%; height: 80px; }
.section-waves path { fill: var(--ocean-deep); }

/* ─── Formules ─── */
.formules {
  background: linear-gradient(135deg, var(--ocean-deep) 0%, var(--ocean-darker) 100%);
  color: var(--foam);
}
.formules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}
.formule-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(31, 181, 201, 0.25);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  position: relative;
  display: flex; flex-direction: column;
  transition: all 0.5s var(--ease);
}
.formule-card:hover {
  transform: translateY(-8px);
  border-color: var(--turquoise);
  box-shadow: 0 30px 80px rgba(31, 181, 201, 0.25);
}
.formule-recommended {
  border: 2px solid var(--gold);
  background: rgba(212, 184, 150, 0.06);
  transform: scale(1.03);
  box-shadow: 0 30px 60px rgba(212, 184, 150, 0.18);
}
.formule-recommended:hover { transform: scale(1.05) translateY(-8px); }
.formule-badge {
  position: absolute;
  top: -16px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--ocean-deep);
  padding: 8px 24px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(212, 184, 150, 0.4);
}
.formule-header { margin-bottom: 32px; text-align: center; }
.formule-name {
  font-size: 1.8rem;
  color: var(--foam);
  margin-bottom: 6px;
}
.formule-tag {
  color: var(--turquoise-light);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 1px;
  margin-bottom: 24px;
}
.formule-price { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.formule-price-from {
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(244, 251, 251, 0.7);
}
.formule-price-amount {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}
.formule-recommended .formule-price-amount { color: var(--gold-light); }
.formule-price-unit {
  font-size: 0.95rem;
  color: rgba(244, 251, 251, 0.85);
  letter-spacing: 1px;
}
.formule-features {
  flex: 1;
  margin-bottom: 32px;
}
.formule-features li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(31, 181, 201, 0.12);
  display: flex; gap: 12px;
  font-size: 0.95rem;
}
.formule-features li:last-child { border-bottom: none; }
.check {
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(31, 181, 201, 0.2);
  color: var(--turquoise-light);
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.formule-recommended .check {
  background: rgba(212, 184, 150, 0.2);
  color: var(--gold-light);
}
.formule-note {
  text-align: center;
  margin-top: 14px;
  font-size: 0.82rem;
  color: rgba(244, 251, 251, 0.6);
  letter-spacing: 0.5px;
}

/* ─── Pourquoi nous choisir ─── */
.pourquoi { background: var(--foam-soft); }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.pillar {
  text-align: center;
  padding: 40px 24px;
  background: white;
  border-radius: var(--radius-lg);
  transition: all 0.5s var(--ease);
  border: 1px solid rgba(31, 181, 201, 0.1);
}
.pillar:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-blue);
}
.pillar-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: inline-block;
  animation: float-soft 4s ease-in-out infinite;
}
.pillar:nth-child(2) .pillar-icon { animation-delay: 0.5s; }
.pillar:nth-child(3) .pillar-icon { animation-delay: 1s; }
.pillar:nth-child(4) .pillar-icon { animation-delay: 1.5s; }
.pillar h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--ocean-deep);
}
.pillar p {
  font-size: 0.92rem;
  color: var(--ocean-mid);
}

/* ─── Galerie ─── */
.galerie { background: var(--foam); }
.galerie-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 12px;
}
.mosaic-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.4s var(--ease);
}
.mosaic-tall { grid-row: span 2; }
.mosaic-wide { grid-column: span 2; }
.mosaic-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.4s var(--ease);
}
.mosaic-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10, 61, 79, 0.85) 100%);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 20px;
  color: var(--foam);
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-style: italic;
  letter-spacing: 2px;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.mosaic-item:hover img { transform: scale(1.1); filter: brightness(0.85); }
.mosaic-item:hover .mosaic-overlay { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(5, 42, 55, 0.96);
  z-index: 9999;
  display: none;
  align-items: center; justify-content: center;
  padding: 40px;
  backdrop-filter: blur(10px);
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: absolute;
  top: 30px; right: 30px;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--foam);
  font-size: 2rem;
  display: grid; place-items: center;
  transition: all 0.3s var(--ease);
}
.lightbox-close:hover { background: var(--turquoise); transform: rotate(90deg); }

/* ─── Témoignages ─── */
.temoignages { background: var(--foam-soft); }
.temoignages-swiper { padding-bottom: 60px; }
.temoignage-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 20px 50px rgba(10, 61, 79, 0.08);
  height: 100%;
  display: flex; flex-direction: column;
}
.temoignage-stars {
  color: var(--gold);
  font-size: 1.2rem;
  margin-bottom: 20px;
  letter-spacing: 2px;
}
.temoignage-text {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ocean-mid);
  line-height: 1.8;
  margin-bottom: 28px;
  position: relative;
  padding-left: 24px;
  flex: 1;
}
.temoignage-text::before {
  content: '"';
  position: absolute;
  left: -8px; top: -20px;
  font-family: var(--font-serif);
  font-size: 4rem;
  color: var(--turquoise);
  opacity: 0.3;
}
.temoignage-author {
  display: flex; align-items: center; gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(31, 181, 201, 0.12);
}
.temoignage-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 2px solid var(--turquoise);
}
.temoignage-author strong {
  display: block;
  font-size: 1rem;
  color: var(--ocean-deep);
}
.temoignage-author span {
  font-size: 0.85rem;
  color: var(--ocean-mid);
  letter-spacing: 1px;
}
.swiper-pagination-bullet { background: var(--turquoise); }
.swiper-pagination-bullet-active { background: var(--turquoise-dark); width: 24px; border-radius: 4px; }

/* ─── RDV ─── */
.rdv {
  background: linear-gradient(135deg, var(--ocean-mid) 0%, var(--ocean-deep) 100%);
  color: var(--foam);
}
.rdv-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
}
.rdv-calendar-wrap {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(31, 181, 201, 0.2);
  border-radius: var(--radius-lg);
  padding: 32px;
}

/* Calendrier */
.calendar { }
.calendar-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.calendar-header h3 {
  font-size: 1.3rem;
  color: var(--foam);
  text-transform: capitalize;
}
.cal-nav {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(31, 181, 201, 0.15);
  color: var(--turquoise-light);
  font-size: 1.5rem;
  display: grid; place-items: center;
  transition: all 0.3s var(--ease);
}
.cal-nav:hover { background: var(--turquoise); color: white; }

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.calendar-weekdays span {
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--turquoise-light);
  font-weight: 500;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.cal-day {
  aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(31, 181, 201, 0.1);
  font-size: 0.95rem;
  color: var(--foam);
  transition: all 0.3s var(--ease);
  cursor: pointer;
  position: relative;
}
.cal-day:hover:not(.cal-day-disabled):not(.cal-day-empty) {
  background: rgba(31, 181, 201, 0.2);
  border-color: var(--turquoise);
  transform: scale(1.05);
}
.cal-day-empty { background: transparent; border: none; cursor: default; }
.cal-day-disabled, .cal-day-past {
  color: rgba(244, 251, 251, 0.3);
  cursor: not-allowed;
  background: rgba(255,255,255,0.01);
}
.cal-day-free::after {
  content: ''; position: absolute; bottom: 5px;
  width: 4px; height: 4px; border-radius: 50%;
  background: #4ade80;
}
.cal-day-partial::after {
  content: ''; position: absolute; bottom: 5px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold);
}
.cal-day-full {
  background: rgba(239, 68, 68, 0.08);
  color: rgba(244, 251, 251, 0.4);
  cursor: not-allowed;
}
.cal-day-full::after {
  content: ''; position: absolute; bottom: 5px;
  width: 4px; height: 4px; border-radius: 50%;
  background: #ef4444;
}
.cal-day.selected {
  background: var(--turquoise);
  border-color: var(--turquoise);
  color: white;
  transform: scale(1.05);
  box-shadow: 0 0 0 4px rgba(31, 181, 201, 0.25);
}
.cal-day-today {
  border-color: var(--gold);
}

.calendar-legend {
  display: flex; justify-content: center;
  gap: 20px; flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(31, 181, 201, 0.15);
  font-size: 0.8rem;
  color: rgba(244, 251, 251, 0.75);
}
.calendar-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-free { background: #4ade80; }
.dot-partial { background: var(--gold); }
.dot-full { background: #ef4444; }
.dot-off { background: rgba(244, 251, 251, 0.3); }

.time-slots-wrap {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(31, 181, 201, 0.2);
}
.time-slots-wrap h4 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--turquoise-light);
  letter-spacing: 1px;
}
.time-slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
}
.time-slot {
  padding: 12px 8px;
  background: rgba(31, 181, 201, 0.1);
  border: 1px solid rgba(31, 181, 201, 0.25);
  border-radius: 10px;
  color: var(--foam);
  font-size: 0.9rem;
  text-align: center;
  transition: all 0.3s var(--ease);
}
.time-slot:hover:not(.time-slot-booked) {
  background: var(--turquoise);
  border-color: var(--turquoise);
  transform: translateY(-2px);
}
.time-slot-booked {
  background: rgba(239, 68, 68, 0.08);
  color: rgba(244, 251, 251, 0.4);
  cursor: not-allowed;
  text-decoration: line-through;
}

/* RDV info */
.rdv-info {
  padding: 32px;
  background: rgba(212, 184, 150, 0.05);
  border: 1px solid rgba(212, 184, 150, 0.2);
  border-radius: var(--radius-lg);
}
.rdv-info h3 {
  font-size: 1.4rem;
  margin-bottom: 28px;
  color: var(--gold-light);
}
.rdv-steps {
  margin-bottom: 28px;
}
.rdv-steps li {
  display: flex; gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(212, 184, 150, 0.12);
}
.rdv-steps li:last-child { border-bottom: none; }
.step-num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--ocean-deep);
  display: grid; place-items: center;
  font-weight: 700;
  font-family: var(--font-serif);
}
.rdv-steps strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--foam);
}
.rdv-steps p {
  font-size: 0.88rem;
  color: rgba(244, 251, 251, 0.75);
}

/* ─── Zone d'intervention ─── */
.zone { background: var(--foam); }
.zone-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.zone-map { display: flex; justify-content: center; }
.map-svg {
  width: 100%;
  max-width: 400px;
  height: auto;
}
.map-svg .city circle {
  fill: var(--turquoise);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  filter: drop-shadow(0 0 8px rgba(31, 181, 201, 0.6));
}
.map-svg .city:hover circle {
  fill: var(--gold);
  r: 12;
  filter: drop-shadow(0 0 14px rgba(212, 184, 150, 0.8));
}
.map-svg .city text {
  fill: var(--ocean-deep);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  text-anchor: middle;
  letter-spacing: 0.5px;
  pointer-events: none;
}
.zone-info h3 {
  font-size: 1.5rem;
  margin-bottom: 24px;
  color: var(--ocean-deep);
}
.zone-cities {
  columns: 2;
  column-gap: 24px;
  margin-bottom: 24px;
}
.zone-cities li {
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--ocean-mid);
  border-bottom: 1px solid rgba(31, 181, 201, 0.1);
  position: relative;
  padding-left: 22px;
  break-inside: avoid;
}
.zone-cities li::before {
  content: '◈';
  position: absolute; left: 0;
  color: var(--turquoise);
  font-size: 0.8rem;
}
.zone-note {
  background: var(--foam-soft);
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  color: var(--ocean-mid);
  border-left: 3px solid var(--turquoise);
}
.zone-note a { color: var(--turquoise-dark); font-weight: 500; }

/* ─── Contact ─── */
.contact {
  background: linear-gradient(135deg, var(--foam-soft) 0%, var(--foam) 100%);
}
.contact-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
}
.contact-form {
  background: white;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(10, 61, 79, 0.08);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}
.contact-form label {
  display: block;
  margin-bottom: 18px;
}
.contact-form label.full { display: block; }
.contact-form label span {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ocean-mid);
  margin-bottom: 8px;
  font-weight: 500;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid rgba(31, 181, 201, 0.2);
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ocean-deep);
  background: var(--foam);
  transition: all 0.3s var(--ease);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--turquoise);
  background: white;
  box-shadow: 0 0 0 4px rgba(31, 181, 201, 0.1);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.form-feedback {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--turquoise-dark);
}

.contact-info {
  display: flex; flex-direction: column;
  gap: 24px;
}
.contact-block {
  background: white;
  padding: 20px 24px;
  border-radius: var(--radius);
  border-left: 3px solid var(--turquoise);
  box-shadow: 0 10px 30px rgba(10, 61, 79, 0.06);
}
.contact-block h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--ocean-deep);
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 1px;
}
.contact-block p, .contact-block a {
  font-size: 0.92rem;
  color: var(--ocean-mid);
  line-height: 1.7;
}
.contact-block a:hover { color: var(--turquoise); }
.contact-socials {
  display: flex; gap: 12px;
  margin-top: 8px;
}
.contact-socials a {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: white;
  display: grid; place-items: center;
  color: var(--turquoise-dark);
  font-weight: 600;
  transition: all 0.3s var(--ease);
  box-shadow: 0 4px 12px rgba(10, 61, 79, 0.08);
}
.contact-socials a:hover {
  background: var(--turquoise);
  color: white;
  transform: translateY(-3px);
}

/* ─── Footer ─── */
.footer {
  background: var(--ocean-darker);
  color: var(--foam);
  padding: 80px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
.footer-brand p {
  font-size: 0.92rem;
  color: rgba(244, 251, 251, 0.7);
  line-height: 1.8;
  margin-top: 20px;
  max-width: 320px;
}
.footer h4 {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--turquoise-light);
}
.footer ul li {
  padding: 6px 0;
  font-size: 0.9rem;
  color: rgba(244, 251, 251, 0.75);
}
.footer ul li a { transition: color 0.3s var(--ease); }
.footer ul li a:hover { color: var(--turquoise); }

.footer-bottom {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 16px;
  padding-top: 28px;
  border-top: 1px solid rgba(244, 251, 251, 0.08);
  font-size: 0.85rem;
  color: rgba(244, 251, 251, 0.5);
}
.footer-payments {
  display: flex; align-items: center; gap: 12px;
}
.pay-badge {
  background: rgba(244, 251, 251, 0.06);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  color: var(--foam);
}

/* ─── Chatbot ─── */
.chatbot-bubble {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 200;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px 12px 16px;
  background: linear-gradient(135deg, var(--turquoise) 0%, var(--turquoise-dark) 100%);
  color: white;
  border-radius: 50px;
  box-shadow: 0 12px 36px rgba(31, 181, 201, 0.45);
  transition: all 0.4s var(--ease);
}
.chatbot-bubble:hover { transform: translateY(-4px) scale(1.05); }
.chatbot-bubble.hidden { display: none; }
.bubble-icon { font-size: 1.4rem; }
.bubble-label {
  font-weight: 500;
  letter-spacing: 1px;
}
.bubble-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50px;
  background: var(--turquoise);
  opacity: 0.6;
  animation: pulse-ring 2s ease-out infinite;
  z-index: -1;
}

.chatbot {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 200;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 560px;
  max-height: calc(100vh - 64px);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(10, 61, 79, 0.3);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: chat-in 0.4s var(--ease);
}
/* Fix : l'attribut hidden doit toujours masquer, même avec display:flex défini plus haut */
.chatbot[hidden] { display: none !important; }

/* Backdrop semi-transparent pour fermer le chatbot en cliquant à côté (mobile surtout) */
.chatbot-backdrop {
  position: fixed; inset: 0;
  background: rgba(5, 42, 55, 0.4);
  z-index: 199;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  backdrop-filter: blur(2px);
}
.chatbot-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}
.chatbot-header {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 20px;
  background: linear-gradient(135deg, var(--ocean-deep) 0%, var(--ocean-mid) 100%);
  color: var(--foam);
}
.chatbot-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--turquoise), var(--turquoise-light));
  display: grid; place-items: center;
  font-size: 1.4rem;
}
.chatbot-header strong { display: block; font-size: 1rem; }
.chatbot-header span { font-size: 0.8rem; opacity: 0.75; letter-spacing: 0.5px; }
.chatbot-close {
  margin-left: auto;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  color: white;
  font-size: 1.8rem;
  line-height: 1;
  display: grid; place-items: center;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  flex-shrink: 0;
}
.chatbot-close:hover, .chatbot-close:active {
  background: rgba(255,255,255,0.35);
  transform: rotate(90deg);
}

.chatbot-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: var(--foam-soft);
  display: flex; flex-direction: column;
  gap: 12px;
}
.chatbot-body::-webkit-scrollbar { width: 6px; }
.chatbot-body::-webkit-scrollbar-thumb { background: var(--turquoise); border-radius: 3px; }

.chat-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.5;
  animation: chat-msg-in 0.4s var(--ease);
}
.chat-msg-bot {
  background: white;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  color: var(--ocean-deep);
  box-shadow: 0 4px 12px rgba(10, 61, 79, 0.05);
}
.chat-msg-user {
  background: linear-gradient(135deg, var(--turquoise), var(--turquoise-dark));
  color: white;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}
.chat-options {
  display: flex; flex-wrap: wrap; gap: 8px;
  align-self: flex-start;
  max-width: 100%;
  animation: chat-msg-in 0.5s var(--ease);
}
.chat-option {
  padding: 9px 14px;
  background: white;
  border: 1.5px solid var(--turquoise);
  color: var(--turquoise-dark);
  border-radius: 50px;
  font-size: 0.85rem;
  transition: all 0.3s var(--ease);
}
.chat-option:hover {
  background: var(--turquoise);
  color: white;
  transform: translateY(-2px);
}
.chat-input-wrap {
  display: flex; gap: 8px;
  align-self: stretch;
  margin-top: 4px;
}
.chat-input-wrap input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid rgba(31, 181, 201, 0.3);
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border 0.3s var(--ease);
}
.chat-input-wrap input:focus { border-color: var(--turquoise); }
.chat-input-wrap button {
  padding: 0 18px;
  background: var(--turquoise);
  color: white;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
}

.chatbot-footer {
  padding: 10px 20px;
  border-top: 1px solid rgba(31, 181, 201, 0.1);
  text-align: center;
}
.chatbot-footer small {
  font-size: 0.72rem;
  color: var(--ocean-mid);
  letter-spacing: 0.5px;
}

.chat-summary {
  background: linear-gradient(135deg, var(--foam) 0%, var(--foam-soft) 100%);
  border: 1.5px dashed var(--turquoise);
  padding: 14px;
  border-radius: var(--radius);
  align-self: stretch;
  font-size: 0.88rem;
}
.chat-summary strong { color: var(--turquoise-dark); display: block; margin-bottom: 6px; }
.chat-summary div { padding: 3px 0; }
