/* ─────────────────────────────────────────
   AqualexPiscine — Feuille de styles
   ───────────────────────────────────────── */

   *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

   :root {
     --deep:    #051824;
     --ocean:   #0a3045;
     --water:   #1a6b8a;
     --sky:     #2db8d8;
     --foam:    #a8e6f0;
     --white:   #f5f9fb;
     --gold:    #c9a96e;
     --text:    #d0e8ef;
     --serif:   'Playfair Display', Georgia, serif;
     --sans:    'DM Sans', sans-serif;
   }
   
   html { scroll-behavior: smooth; }
   
   body {
     background: var(--deep);
     color: var(--white);
     font-family: var(--sans);
     font-weight: 300;
     overflow-x: hidden;
   }
   
   /* ─── NAV ─── */
   nav {
     position: fixed; top: 0; left: 0; right: 0; z-index: 100;
     display: flex; align-items: center; justify-content: space-between;
     padding: 1.4rem 4rem;
     transition: background 0.4s, backdrop-filter 0.4s;
   }
   nav.scrolled {
     background: rgba(5, 24, 36, 0.88);
     backdrop-filter: blur(14px);
     border-bottom: 1px solid rgba(45,184,216,0.12);
   }
   .nav-logo img {
    height: 44px;
    width: auto;
    display: block;
   }
   .nav-links { display: flex; gap: 2.4rem; list-style: none; }
   .nav-links a {
     color: var(--text);
     text-decoration: none;
     font-size: 0.85rem;
     letter-spacing: 0.12em;
     text-transform: uppercase;
     transition: color 0.25s;
   }
   .nav-links a:hover { color: var(--sky); }
   .nav-cta {
     background: transparent;
     border: 1px solid var(--sky);
     color: var(--sky);
     padding: 0.55rem 1.4rem;
     border-radius: 2px;
     font-family: var(--sans);
     font-size: 0.82rem;
     letter-spacing: 0.1em;
     text-transform: uppercase;
     cursor: pointer;
     transition: all 0.25s;
   }
   .nav-cta:hover { background: var(--sky); color: var(--deep); }
   
   /* ─── HERO ─── */
   #hero {
     position: relative;
     height: 100vh;
     display: flex; align-items: center; justify-content: center;
     overflow: hidden;
   }
   .water-canvas {
     position: absolute; inset: 0;
     width: 100%; height: 100%;
   }
   .hero-overlay {
     position: absolute; inset: 0;
     background: linear-gradient(160deg, rgba(5,24,36,0.55) 0%, rgba(10,48,69,0.35) 60%, rgba(5,24,36,0.8) 100%);
   }
   .hero-content {
     position: relative; z-index: 2;
     text-align: center;
     max-width: 760px;
     padding: 0 2rem;
   }
   .hero-badge {
     display: inline-block;
     border: 1px solid var(--gold);
     color: var(--gold);
     font-size: 0.72rem;
     letter-spacing: 0.2em;
     text-transform: uppercase;
     padding: 0.4rem 1.2rem;
     margin-bottom: 2rem;
     opacity: 0;
     animation: fadeUp 0.8s 0.2s forwards;
   }
   .hero-title {
     font-family: var(--serif);
     font-size: clamp(3rem, 7vw, 5.5rem);
     font-weight: 700;
     line-height: 1.05;
     margin-bottom: 1.6rem;
     opacity: 0;
     animation: fadeUp 0.9s 0.45s forwards;
   }
   .hero-title em { font-style: italic; color: var(--sky); }
   .hero-sub {
     font-size: 1.05rem;
     font-weight: 300;
     color: var(--text);
     line-height: 1.7;
     margin-bottom: 2.8rem;
     opacity: 0;
     animation: fadeUp 0.9s 0.7s forwards;
   }
   .hero-actions {
     display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap;
     opacity: 0;
     animation: fadeUp 0.9s 0.95s forwards;
   }
   .btn-primary {
     background: var(--sky);
     color: var(--deep);
     border: none;
     padding: 1rem 2.4rem;
     font-family: var(--sans);
     font-size: 0.88rem;
     font-weight: 500;
     letter-spacing: 0.1em;
     text-transform: uppercase;
     cursor: pointer;
     border-radius: 2px;
     transition: all 0.25s;
     text-decoration: none;
   }
   .btn-primary:hover { background: var(--foam); transform: translateY(-2px); }
   .btn-outline {
     background: transparent;
     color: var(--white);
     border: 1px solid rgba(255,255,255,0.35);
     padding: 1rem 2.4rem;
     font-family: var(--sans);
     font-size: 0.88rem;
     font-weight: 300;
     letter-spacing: 0.1em;
     text-transform: uppercase;
     cursor: pointer;
     border-radius: 2px;
     transition: all 0.25s;
     text-decoration: none;
   }
   .btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }
   .hero-scroll {
      position: absolute; bottom: 2.5rem; left: 0; right: 0;
      display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
      opacity: 0; animation: fadeUp 1s 1.4s forwards;
    }
   .hero-scroll span {
     font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text);
   }
   .scroll-line {
     width: 1px; height: 48px;
     background: linear-gradient(to bottom, var(--sky), transparent);
     animation: scrollPulse 2s infinite;
   }
   
    /* ─── ACCROCHE ─── */
    #accroche {
      background: var(--ocean);
      border-top: 1px solid rgba(45,184,216,0.15);
      border-bottom: 1px solid rgba(45,184,216,0.15);
      padding: 2rem 4rem;
      text-align: center;
    }
    #accroche p {
      font-family: var(--serif);
      font-size: 1.1rem;
      font-style: italic;
      color: var(--text);
      letter-spacing: 0.02em;
    }
   
   /* ─── SECTIONS GÉNÉRIQUES ─── */
   section { padding: 6rem 4rem; }
   .section-tag {
     font-size: 0.72rem;
     letter-spacing: 0.22em;
     text-transform: uppercase;
     color: var(--sky);
     margin-bottom: 1rem;
   }
   .section-title {
     font-family: var(--serif);
     font-size: clamp(2rem, 4vw, 3rem);
     font-weight: 700;
     line-height: 1.1;
     margin-bottom: 1.4rem;
   }
   .section-title em { font-style: italic; color: var(--sky); }
   .section-sub {
     font-size: 1rem;
     color: var(--text);
     line-height: 1.75;
     max-width: 580px;
   }
   
   /* ─── SERVICES ─── */
   #services { background: var(--deep); }
   .services-header {
     display: flex; justify-content: space-between; align-items: flex-end;
     margin-bottom: 4rem; flex-wrap: wrap; gap: 2rem;
   }
   .services-grid {
     display: grid;
     grid-template-columns: repeat(3, 1fr);
     gap: 1.5px;
     background: rgba(45,184,216,0.08);
     border: 1px solid rgba(45,184,216,0.08);
   }
   .service-card {
     background: var(--deep);
     padding: 3rem 2.5rem;
     transition: background 0.3s;
     position: relative;
     overflow: hidden;
     cursor: default;
   }
   .service-card::before {
     content: '';
     position: absolute; top: 0; left: 0;
     width: 100%; height: 2px;
     background: linear-gradient(90deg, transparent, var(--sky), transparent);
     transform: scaleX(0);
     transition: transform 0.4s;
   }
   .service-card:hover::before { transform: scaleX(1); }
   .service-card:hover { background: rgba(26,107,138,0.12); }
   .service-icon { font-size: 2.2rem; margin-bottom: 1.6rem; display: block; }
   .service-title { font-family: var(--serif); font-size: 1.3rem; margin-bottom: 0.8rem; font-weight: 600; }
   .service-desc { font-size: 0.9rem; color: var(--text); line-height: 1.7; margin-bottom: 1.5rem; }
   .service-link {
     font-size: 0.78rem;
     letter-spacing: 0.12em;
     text-transform: uppercase;
     color: var(--sky);
     text-decoration: none;
     display: flex; align-items: center; gap: 0.4rem;
     transition: gap 0.2s;
   }
   .service-link:hover { gap: 0.8rem; }
   
   /* ─── NOS RÉALISATIONS ─── */
   #realisations { background: var(--ocean); }
   .realisations-header {
     display: flex; justify-content: space-between; align-items: flex-end;
     margin-bottom: 3.5rem; flex-wrap: wrap; gap: 2rem;
   }
   
   .gallery-grid {
     display: grid;
     grid-template-columns: repeat(3, 1fr);
     grid-template-rows: auto auto;
     gap: 1rem;
   }
   
   /* La première photo prend 2 lignes à gauche */
   .gallery-item--large {
     grid-row: span 2;
   }
   
   .gallery-item {
     position: relative;
     overflow: hidden;
     border-radius: 2px;
     background: var(--deep);
     aspect-ratio: 4/3;
     cursor: pointer;
   }
   .gallery-item--large {
     aspect-ratio: unset;
   }
   
   .gallery-item img {
     width: 100%; height: 100%;
     object-fit: cover;
     display: block;
     transition: transform 0.5s ease;
   }
   .gallery-item:hover img { transform: scale(1.05); }
   
   .gallery-overlay {
     position: absolute; inset: 0;
     background: linear-gradient(to top, rgba(5,24,36,0.75) 0%, transparent 50%);
     display: flex; align-items: flex-end; padding: 1.2rem;
     opacity: 0;
     transition: opacity 0.3s;
   }
   .gallery-item:hover .gallery-overlay { opacity: 1; }
   
   .gallery-tag {
     background: var(--sky);
     color: var(--deep);
     font-size: 0.75rem;
     font-weight: 500;
     letter-spacing: 0.1em;
     text-transform: uppercase;
     padding: 0.3rem 0.8rem;
     border-radius: 2px;
   }
   
   /* ─── ZONE INTERVENTION ─── */
   #zone { background: var(--deep); text-align: center; }
   .zone-content { max-width: 700px; margin: 0 auto; }
   .zone-map-placeholder {
     margin: 3.5rem auto 0;
     max-width: 600px;
     aspect-ratio: 16/9;
     background: var(--ocean);
     border: 1px solid rgba(45,184,216,0.15);
     border-radius: 2px;
     display: flex; flex-direction: column; align-items: center; justify-content: center;
     gap: 1rem;
     color: var(--text);
     font-size: 0.88rem;
   }
   .zone-map-placeholder .map-icon { font-size: 2.5rem; }
   .zone-tags {
     display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-top: 2.5rem;
   }
   .zone-tag {
     background: rgba(45,184,216,0.08);
     border: 1px solid rgba(45,184,216,0.2);
     color: var(--foam);
     padding: 0.45rem 1.1rem;
     font-size: 0.82rem;
     border-radius: 2px;
     letter-spacing: 0.06em;
   }
   
   /* ─── TÉMOIGNAGES ─── */
   #temoignages { background: var(--ocean); overflow: hidden; }
   .temoignages-header { margin-bottom: 3.5rem; }
   .reviews-track {
     display: grid;
     grid-template-columns: repeat(3, 1fr);
     gap: 2rem;
   }
   .review-card {
     background: rgba(5,24,36,0.6);
     border: 1px solid rgba(45,184,216,0.1);
     padding: 2.5rem;
     border-radius: 2px;
     transition: border-color 0.3s;
   }
   .review-card:hover { border-color: rgba(45,184,216,0.3); }
   .review-stars { color: var(--gold); font-size: 0.85rem; letter-spacing: 0.1em; margin-bottom: 1.2rem; }
   .review-text { font-size: 0.92rem; color: var(--text); line-height: 1.75; font-style: italic; margin-bottom: 1.8rem; }
   .review-author { display: flex; align-items: center; gap: 1rem; }
   .review-avatar {
     width: 42px; height: 42px;
     border-radius: 50%;
     background: linear-gradient(135deg, var(--water), var(--sky));
     display: flex; align-items: center; justify-content: center;
     font-family: var(--serif);
     font-size: 1.1rem;
     font-weight: 700;
     color: var(--deep);
   }
   .review-name { font-weight: 500; font-size: 0.9rem; }
   .review-loc { font-size: 0.78rem; color: var(--text); margin-top: 0.15rem; }
   
   /* ─── CONTACT ─── */
   #contact {
     background: var(--deep);
     display: grid;
     grid-template-columns: 1fr 1.2fr;
     gap: 6rem;
     align-items: start;
   }
   .contact-items { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.8rem; }
   .contact-item { display: flex; gap: 1.2rem; align-items: flex-start; }
   .contact-icon {
     font-size: 1.3rem;
     width: 44px; height: 44px; min-width: 44px;
     background: rgba(45,184,216,0.08);
     border: 1px solid rgba(45,184,216,0.2);
     display: flex; align-items: center; justify-content: center;
     border-radius: 2px;
   }
   .contact-item-label { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--sky); margin-bottom: 0.3rem; }
   .contact-item-value { font-size: 0.95rem; color: var(--white); line-height: 1.5; }
   .contact-form { background: var(--ocean); padding: 3rem; border: 1px solid rgba(45,184,216,0.1); }
   .form-title { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 2rem; }
   .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
   .form-group { margin-bottom: 1.2rem; }
   .form-group label {
     display: block;
     font-size: 0.75rem;
     letter-spacing: 0.12em;
     text-transform: uppercase;
     color: var(--text);
     margin-bottom: 0.5rem;
   }
   .form-group input,
   .form-group select,
   .form-group textarea {
     width: 100%;
     background: rgba(5,24,36,0.5);
     border: 1px solid rgba(45,184,216,0.15);
     color: var(--white);
     padding: 0.85rem 1rem;
     font-family: var(--sans);
     font-size: 0.9rem;
     font-weight: 300;
     border-radius: 2px;
     outline: none;
     transition: border-color 0.25s;
   }
   .form-group input:focus,
   .form-group select:focus,
   .form-group textarea:focus { border-color: var(--sky); }
   .form-group textarea { resize: vertical; min-height: 110px; }
   .form-group select option { background: var(--ocean); }
   .form-submit {
     width: 100%;
     background: var(--sky);
     color: var(--deep);
     border: none;
     padding: 1.05rem;
     font-family: var(--sans);
     font-size: 0.88rem;
     font-weight: 500;
     letter-spacing: 0.12em;
     text-transform: uppercase;
     cursor: pointer;
     border-radius: 2px;
     transition: all 0.25s;
     margin-top: 0.5rem;
   }
   .form-submit:hover { background: var(--foam); transform: translateY(-2px); }
   
   .form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
    padding: 3rem;
    min-height: 200px;
  }
  .form-success-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: rgba(45,184,216,0.12);
    border: 1px solid var(--sky);
    color: var(--sky);
    font-size: 1.4rem;
    display: flex; align-items: center; justify-content: center;
  }
  .form-success h4 {
    font-family: var(--serif);
    font-size: 1.4rem;
  }
  .form-success p {
    font-size: 0.9rem;
    color: var(--text);
  }
  
   /* ─── FOOTER ─── */
   footer {
     background: #020d13;
     border-top: 1px solid rgba(45,184,216,0.08);
     padding: 3rem 4rem;
     display: flex;
     justify-content: space-between;
     align-items: center;
     flex-wrap: wrap;
     gap: 1.5rem;
   }
   .footer-logo img {
    height: 52px;
    width: auto;
    display: block;
   }
   .footer-links { display: flex; gap: 2rem; flex-wrap: wrap; }
   .footer-links a {
     font-size: 0.8rem;
     color: var(--text);
     text-decoration: none;
     letter-spacing: 0.08em;
     transition: color 0.2s;
   }
   .footer-links a:hover { color: var(--sky); }
   .footer-copy { font-size: 0.78rem; color: rgba(208,232,239,0.4); }
   
   /* ─── REVEAL ANIMATIONS ─── */
   .reveal {
     opacity: 0;
     transform: translateY(30px);
     transition: opacity 0.7s ease, transform 0.7s ease;
   }
   .reveal.visible { opacity: 1; transform: none; }
   
   @keyframes fadeUp {
     from { opacity: 0; transform: translateY(24px); }
     to   { opacity: 1; transform: translateY(0); }
   }
   @keyframes scrollPulse {
     0%, 100% { opacity: 1; }
     50%       { opacity: 0.3; }
   }
   
   /* ─── RESPONSIVE ─── */
   @media (max-width: 900px) {
     nav { padding: 1.2rem 2rem; }
     .nav-links { display: none; }
     section { padding: 4rem 2rem; }
     #stats { grid-template-columns: repeat(2, 1fr); padding: 3rem 2rem; }
     .services-grid { grid-template-columns: 1fr; }
     #why, #contact { grid-template-columns: 1fr; gap: 3rem; }
     .gallery-grid { grid-template-columns: 1fr 1fr; }
     .gallery-item--large { grid-row: span 1; aspect-ratio: 4/3; }
     .reviews-track { grid-template-columns: 1fr; }
     footer { flex-direction: column; align-items: flex-start; padding: 2.5rem 2rem; }
     .form-row { grid-template-columns: 1fr; }
   }