*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Georgia', serif;
  color: #1a1a2e;
  background: #f9f7f4;
}

:root {
  --gold: #b8975a;
  --gold-light: #d4b27a;
  --azur: #1a5c8a;
  --azur-deep: #0f3a5c;
  --azur-light: #e8f4fd;
  --text-muted: #5a6475;
  --white: #ffffff;
  --section-pad: 90px 5%;
}

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 5%;
  background: rgba(15, 58, 92, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(184, 151, 90, 0.3);
}
.nav-logo {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
}
.nav-logo span { color: var(--white); font-weight: 300; }
nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
}
nav ul a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-family: 'Arial', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.3s;
}
nav ul a:hover { color: var(--gold); }
.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(184, 151, 90, 0.5);
  background: transparent;
  border-radius: 0;
  padding: 10px 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.site-nav.open .nav-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.site-nav.open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
.site-nav.open .nav-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.hero {
  min-height: 100vh;
  background:
    linear-gradient(to bottom, rgba(15,58,92,0.72) 0%, rgba(15,58,92,0.45) 50%, rgba(15,58,92,0.80) 100%),
    url('img/piscine_sub.webp') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 5%;
  position: relative;
}
.hero-badge {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: 'Arial', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  padding: 6px 20px;
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  color: var(--white);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.hero h1 em {
  color: var(--gold);
  font-style: normal;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: rgba(255,255,255,0.88);
  font-style: italic;
  margin-bottom: 48px;
  letter-spacing: 1px;
}
.hero-cta {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  text-decoration: none;
  font-family: 'Arial', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 16px 40px;
  transition: background 0.3s, transform 0.2s;
}
.hero-cta:hover { background: var(--gold-light); transform: translateY(-2px); }
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-family: 'Arial', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 48px;
  background: var(--gold);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.section-label {
  font-family: 'Arial', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--azur-deep);
  line-height: 1.25;
  margin-bottom: 20px;
}
.section-divider {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 28px;
}
.section-divider.left { margin-left: 0; }

.intro {
  padding: var(--section-pad);
  background: var(--white);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.intro p {
  font-size: 1.12rem;
  line-height: 1.9;
  color: var(--text-muted);
}

.stats {
  background: var(--azur-deep);
  padding: 60px 5%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.stat-item {
  text-align: center;
  padding: 32px 20px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-family: 'Arial', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}
.feature.reverse { direction: rtl; }
.feature.reverse > * { direction: ltr; }

.feature-img {
  overflow: hidden;
  position: relative;
}
.feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.feature-img:hover img { transform: scale(1.04); }
.feature-img .img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,58,92,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.feature-content {
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 8%;
}
.feature.reverse .feature-content {
  background: var(--azur-light);
}
.feature-icon {
  font-size: 2.4rem;
  margin-bottom: 18px;
}
.feature-content p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.feature-list {
  list-style: none;
  margin-top: 8px;
}
.feature-list li {
  font-family: 'Arial', sans-serif;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  gap: 10px;
}
.feature-list li::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}

.security {
  background: var(--azur-deep);
  padding: var(--section-pad);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.security::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('img/arbre-1.webp') center/cover no-repeat;
  opacity: 0.08;
}
.security > * { position: relative; }
.security .section-label { color: var(--gold-light); }
.security .section-title { color: var(--white); }
.security p {
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 1.05rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.78);
}
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.security-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(184,151,90,0.25);
  padding: 36px 28px;
  transition: background 0.3s;
}
.security-card:hover { background: rgba(255,255,255,0.1); }
.security-card .icon { font-size: 2rem; margin-bottom: 14px; }
.security-card h3 {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.security-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  margin: 0;
}

.cta-banner {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  padding: 70px 5%;
  text-align: center;
}
.cta-banner h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--azur-deep);
  margin-bottom: 14px;
}
.cta-banner p {
  color: rgba(15,58,92,0.8);
  font-size: 1.05rem;
  margin-bottom: 32px;
}
.cta-btn {
  display: inline-block;
  background: var(--azur-deep);
  color: var(--white);
  text-decoration: none;
  font-family: 'Arial', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 16px 44px;
  transition: background 0.3s, transform 0.2s;
}
.cta-btn:hover { background: var(--azur); transform: translateY(-2px); }

footer {
  background: #0a1929;
  padding: 50px 5% 30px;
  text-align: center;
  color: rgba(255,255,255,0.45);
  font-family: 'Arial', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 1px;
}
footer .footer-logo {
  font-size: 1.5rem;
  font-family: 'Georgia', serif;
  color: var(--gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
footer .footer-logo span { color: rgba(255,255,255,0.6); font-weight: 300; }
footer .footer-divider {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 20px auto;
  opacity: 0.5;
}

.page-hero {
  min-height: 54vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(to bottom, rgba(15,58,92,0.72), rgba(15,58,92,0.45)),
    url('img/piscine_sub.webp') center/cover no-repeat;
  padding: 120px 5% 70px;
}
.page-hero-content {
  max-width: 760px;
}
.page-badge {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: 'Arial', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  padding: 6px 20px;
  margin-bottom: 20px;
}
.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--white);
  line-height: 1.1;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.page-hero h1 em {
  color: var(--gold);
  font-style: normal;
}
.page-hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  font-style: italic;
  letter-spacing: 1px;
}

.gallery-wrap {
  padding: 90px 5% 40px;
  max-width: 1280px;
  margin: 0 auto;
}
.gallery-shell {
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(247,242,236,0.98) 100%);
  border: 1px solid rgba(15, 58, 92, 0.08);
  box-shadow: 0 24px 80px rgba(15, 58, 92, 0.10);
  padding: 26px;
  position: relative;
}
.gallery-shell::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(184, 151, 90, 0.25);
  pointer-events: none;
}
.carousel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(184, 151, 90, 0.38);
  background: #0d1d2d;
  min-height: 640px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}
.carousel-track {
  display: flex;
  transition: transform 0.75s cubic-bezier(.2,.8,.2,1);
  height: 100%;
}
.slide {
  min-width: 100%;
  position: relative;
  height: 640px;
  display: none;
  align-items: center;
  justify-content: center;
  background: #0d1d2d;
  overflow: hidden;
}
.slide.active { display: flex; }
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  filter: contrast(1.05) saturate(1.08) brightness(0.95);
  animation: imageZoom 9s ease-in-out infinite alternate;
}
@keyframes imageZoom {
  0% { transform: scale(1.02); }
  100% { transform: scale(1.10); }
}
.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9,16,25,0.20) 0%, rgba(9,16,25,0.60) 100%);
  pointer-events: none;
}
.slide-caption {
  position: absolute;
  left: 32px;
  bottom: 30px;
  background: rgba(11, 27, 41, 0.58);
  color: var(--white);
  padding: 16px 20px;
  border-left: 3px solid var(--gold);
  backdrop-filter: blur(6px);
  font-family: 'Arial', sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.72rem;
  z-index: 1;
}
.carousel-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding-top: 24px;
}
.arrow-group {
  display: flex;
  gap: 12px;
}
.carousel-btn {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(184, 151, 90, 0.5);
  background: var(--white);
  color: var(--azur-deep);
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.carousel-btn:hover {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
  transform: translateY(-1px);
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex: 1;
  flex-wrap: wrap;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(15,58,92,0.35);
  background: rgba(15,58,92,0.12);
  cursor: pointer;
  transition: all 0.2s ease;
}
.dot.active {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.15);
  box-shadow: 0 0 0 4px rgba(184,151,90,0.15);
}
.thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}
.thumb {
  position: relative;
  height: 110px;
  border: 1px solid rgba(15,58,92,0.08);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.72;
  transition: transform 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
  background: #dfe9ef;
}
.thumb:hover, .thumb.active {
  opacity: 1;
  border-color: rgba(184,151,90,0.6);
  transform: translateY(-2px);
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,58,92,0.10), rgba(15,58,92,0.20));
}
.gallery-intro {
  text-align: center;
  padding: 0 0 28px;
}
.gallery-intro p {
  max-width: 780px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.9;
}

@media (max-width: 900px) {
  .feature, .feature.reverse { grid-template-columns: 1fr; direction: ltr; }
  .feature-img { min-height: 320px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .security-grid { grid-template-columns: 1fr; }

  nav {
    flex-wrap: wrap;
    align-items: center;
    padding: 14px 5%;
  }
  .nav-toggle {
    display: flex;
    margin-left: auto;
  }
  nav ul {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding-top: 12px;
    border-top: 1px solid rgba(184, 151, 90, 0.3);
    background: rgba(15, 58, 92, 0.96);
  }
  .site-nav.open ul {
    display: flex;
  }
  nav ul li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  nav ul a {
    display: block;
    padding: 14px 0;
    font-size: 0.78rem;
  }

  .carousel, .slide { min-height: 440px; height: 440px; }
  .gallery-shell { padding: 18px; }
}
