/* ============================================================
   ID9 PISCINES — Feuille de styles
   Palette : fond #0D1B24, accent #2DD4BF, doré #C4A882
   ============================================================ */

/* --- Variables -------------------------------------------- */
:root {
  --dark:       #0D1B24;
  --dark-2:     #121f2a;
  --dark-3:     #182531;
  --light:      #F8F5F0;
  --light-2:    #EDE9E3;
  --teal:       #2DD4BF;
  --teal-dark:  #0d9488;
  --gold:       #C4A882;
  --gold-light: #dcc9a8;
  --text:       #E2E8F0;
  --text-muted: #94A3B8;
  --text-dark:  #1e293b;

  --font-head:  'Helvetica Neue', Arial, sans-serif;
  --font-body:  'Helvetica Neue', Arial, sans-serif;

  --radius:     8px;
  --radius-lg:  16px;

  --header-h:   68px;
  --header-h-sm: 56px;

  --ease:       cubic-bezier(.25,.46,.45,.94);
  --ease-out:   cubic-bezier(.16,1,.3,1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

/* Respecter les préférences de mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 3px; }

ul, ol { list-style: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}
button:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 3px; }

input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
}

address { font-style: normal; }

/* --- Utilitaires ------------------------------------------ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px) { .container { padding: 0 2rem; } }
@media (min-width: 1024px) { .container { padding: 0 3rem; } }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

section { padding: 6rem 0; }
.section-light {
  background: var(--light);
  color: var(--text-dark);
}
.section-light .section-header p,
.section-light .text-muted { color: #64748b; }
.section-dark { background: var(--dark-2); }

/* --- Boutons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 1.75rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
              transform 0.25s var(--ease), box-shadow 0.3s var(--ease);
  min-height: 48px;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--teal);
  color: #0D1B24;
  box-shadow: 0 4px 20px rgba(45,212,191,0.3);
}
.btn-primary:hover {
  background: #5eead4;
  box-shadow: 0 6px 28px rgba(45,212,191,0.45);
}

.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.18);
}
.btn-ghost:hover { background: rgba(255,255,255,0.14); }

.btn-full { width: 100%; justify-content: center; }

/* --- Scroll reveal ---------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   HEADER
   ============================================================ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13,27,36,0.0);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease),
              padding 0.3s var(--ease);
}
#site-header.scrolled {
  background: rgba(13,27,36,0.96);
  border-color: rgba(196,168,130,0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--header-h);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  transition: height 0.3s var(--ease);
}
#site-header.scrolled .header-inner { height: var(--header-h-sm); }

@media (min-width: 768px) { .header-inner { padding: 0 2rem; } }
@media (min-width: 1024px) { .header-inner { padding: 0 3rem; } }

.logo {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo-id9 { color: var(--teal); }
.logo-piscines { color: var(--text); margin-left: 2px; }

#site-header nav { display: none; }
@media (min-width: 900px) {
  #site-header nav {
    display: flex;
    flex: 1;
    justify-content: center;
  }
  #site-header nav ul {
    display: flex;
    gap: 0.25rem;
  }
  #site-header nav a {
    display: block;
    padding: 0.5rem 0.85rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius);
    transition: color 0.25s, background 0.25s;
  }
  #site-header nav a:hover {
    color: var(--text);
    background: rgba(255,255,255,0.06);
  }
}

.header-tel {
  display: none;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(45,212,191,0.1);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  border: 1px solid rgba(45,212,191,0.25);
  transition: background 0.25s, border-color 0.25s;
  flex-shrink: 0;
  white-space: nowrap;
}
.header-tel:hover { background: rgba(45,212,191,0.2); border-color: rgba(45,212,191,0.5); }
@media (min-width: 900px) { .header-tel { display: flex; } }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px; height: 20px;
  margin-left: auto;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (min-width: 900px) { .nav-toggle { display: none; } }

/* Menu mobile */
.nav-mobile {
  background: rgba(13,27,36,0.98);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 1.5rem 1.25rem;
}
.nav-mobile ul { display: flex; flex-direction: column; gap: 0.25rem; margin-bottom: 1.25rem; }
.nav-mobile a {
  display: block;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: background 0.2s;
}
.nav-mobile a:hover { background: rgba(255,255,255,0.06); }
.nav-mobile-tel {
  display: inline-flex;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--teal);
  padding: 0.6rem 1rem;
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  /* PHOTO HERO : Remplacer l'URL ci-dessous par votre photo de piscine.
     Format recommandé : JPEG 1920×1080px, optimisé web (moins de 500 Ko).
     Exemple : background-image: url('photos/hero.jpg'); */
  background-image: url('photos/hero.jpg');
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  transition: transform 0.1s linear;
  will-change: transform;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13,27,36,0.35) 0%,
    rgba(13,27,36,0.55) 60%,
    rgba(13,27,36,0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: calc(var(--header-h) + 2rem) 1.5rem 4rem;
  max-width: 820px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.7s 0.2s var(--ease-out) forwards;
}

.hero-content h1 {
  font-size: clamp(2rem, 5.5vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s 0.4s var(--ease-out) forwards;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.7s 0.55s var(--ease-out) forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.7s 0.7s var(--ease-out) forwards;
}

@keyframes fadeUp {
  to { opacity: 1; transform: none; }
}

/* Indicateur de scroll */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
  animation: fadeUp 0.7s 1s var(--ease-out) forwards;
  z-index: 1;
}
.scroll-mouse {
  width: 24px; height: 38px;
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-wheel {
  width: 3px; height: 7px;
  background: var(--teal);
  border-radius: 2px;
  animation: scrollWheel 1.8s infinite var(--ease);
}
@keyframes scrollWheel {
  0%   { opacity: 1; transform: translateY(0); }
  80%  { opacity: 0; transform: translateY(10px); }
  100% { opacity: 0; transform: translateY(0); }
}
.scroll-indicator span {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

/* ============================================================
   CONFIGURATEUR
   ============================================================ */
#configurateur { background: var(--dark); }

/* Barre de progression */
.config-progress {
  max-width: 700px;
  margin: 0 auto 3.5rem;
}
.progress-steps-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.prog-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.25s;
}
.prog-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--dark-3);
  border: 2px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
  color: var(--text-muted);
  min-width: 44px; min-height: 44px;
}
.prog-name {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.3s;
  white-space: nowrap;
  display: none;
}
@media (min-width: 520px) { .prog-name { display: block; } }

.prog-dot.active .prog-num {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--dark);
}
.prog-dot.active .prog-name { color: var(--teal); }
.prog-dot.done .prog-num {
  background: rgba(45,212,191,0.2);
  border-color: var(--teal);
  color: var(--teal);
}

.prog-line {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.1);
  min-width: 20px;
  max-width: 80px;
  margin-bottom: 22px;
  transition: background 0.4s;
}
.prog-line.filled { background: var(--teal); }

/* Corps du configurateur (2 colonnes sur grand écran) */
.config-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 900px) {
  .config-body {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

/* Panneau formulaire */
.config-form-panel {
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
}
@media (min-width: 600px) { .config-form-panel { padding: 2.5rem 2rem; } }

.step-panel { display: none; }
.step-panel.active { display: block; }

.step-panel h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}
.step-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  margin-top: -0.75rem;
}

/* Cartes de forme */
.shape-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.shape-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 0.5rem;
  border-radius: var(--radius);
  border: 2px solid rgba(255,255,255,0.1);
  background: var(--dark-2);
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  min-height: 44px;
}
.shape-card:hover {
  border-color: rgba(45,212,191,0.45);
  background: rgba(45,212,191,0.05);
  transform: translateY(-2px);
}
.shape-card.selected {
  border-color: var(--teal);
  background: rgba(45,212,191,0.08);
  color: var(--text);
}
.shape-illus { width: 100%; max-width: 80px; }
.shape-illus svg { width: 100%; height: auto; }

/* Sliders */
.sliders-stack { display: flex; flex-direction: column; gap: 1.75rem; }

.slider-group {}
.slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.6rem;
  font-size: 0.92rem;
  font-weight: 500;
}
.slider-val {
  color: var(--teal);
  font-weight: 700;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.12);
  outline: none;
  cursor: pointer;
  min-height: 44px;
  padding: 19px 0;
  background-clip: content-box;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--teal);
  border: 3px solid var(--dark-2);
  box-shadow: 0 0 0 2px var(--teal);
  cursor: grab;
  transition: transform 0.15s, box-shadow 0.15s;
}
input[type="range"]::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.15); }
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--teal);
  border: 3px solid var(--dark-2);
  box-shadow: 0 0 0 2px var(--teal);
  cursor: grab;
}

/* Cartes de revêtement */
.coating-cards { display: flex; flex-direction: column; gap: 0.75rem; }

.coating-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  border: 2px solid rgba(255,255,255,0.1);
  background: var(--dark-2);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.25s, background 0.25s;
  min-height: 44px;
}
.coating-card:hover { border-color: rgba(45,212,191,0.4); background: rgba(45,212,191,0.04); }
.coating-card.selected { border-color: var(--teal); background: rgba(45,212,191,0.08); }

.coating-swatch {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.swatch-liner {
  background: linear-gradient(135deg, #38BDF8 0%, #0369A1 100%);
}
.swatch-polyester {
  background: linear-gradient(135deg, #2DD4BF 0%, #0891B2 100%);
}
.swatch-carrelage {
  background: linear-gradient(135deg, #7DD3FC 0%, #1D4ED8 100%);
  background-image:
    linear-gradient(135deg, #7DD3FC 0%, #1D4ED8 100%),
    repeating-linear-gradient(0deg, transparent, transparent 9px, rgba(255,255,255,0.25) 9px, rgba(255,255,255,0.25) 10px),
    repeating-linear-gradient(90deg, transparent, transparent 9px, rgba(255,255,255,0.25) 9px, rgba(255,255,255,0.25) 10px);
  background-blend-mode: normal;
}
.coating-text { flex: 1; }
.coating-text strong { display: block; font-size: 0.95rem; margin-bottom: 0.2rem; }
.coating-text span { font-size: 0.8rem; color: var(--text-muted); }

/* Options */
.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
@media (min-width: 480px) { .options-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .options-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .options-grid { grid-template-columns: repeat(3, 1fr); } }

.option-toggle { display: block; cursor: pointer; }
.option-toggle input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.option-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.9rem 0.6rem;
  border-radius: var(--radius);
  border: 2px solid rgba(255,255,255,0.1);
  background: var(--dark-2);
  text-align: center;
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
  min-height: 44px;
}
.option-card:hover { border-color: rgba(45,212,191,0.4); transform: translateY(-2px); }
.option-toggle input:checked + .option-card {
  border-color: var(--teal);
  background: rgba(45,212,191,0.08);
}
.option-toggle input:focus-visible + .option-card { outline: 2px solid var(--teal); outline-offset: 2px; }
.opt-icon {
  width: 28px; height: 28px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color 0.25s;
}
.option-toggle input:checked + .option-card .opt-icon { color: var(--teal); }
.option-card strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
}
.option-card span {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Formulaire de contact (étape 5) */
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 480px) {
  .form-row { grid-template-columns: 1fr 1fr; gap: 0 1rem; }
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}
.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}
.form-group input,
.form-group textarea {
  background: var(--dark-2);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.25s;
  min-height: 48px;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(45,212,191,0.15);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(148,163,184,0.5); }
.form-group input:invalid:not(:placeholder-shown) { border-color: #f87171; }
.form-group textarea { resize: vertical; min-height: 110px; }

/* Section light : formulaire contact */
.section-light .form-group input,
.section-light .form-group textarea {
  background: white;
  border-color: rgba(0,0,0,0.15);
  color: var(--text-dark);
}
.section-light .form-group input:focus,
.section-light .form-group textarea:focus { border-color: var(--teal-dark); }
.section-light .form-group label { color: #475569; }
.section-light .btn-ghost { color: var(--text-dark); border-color: rgba(0,0,0,0.2); }
.section-light .btn-ghost:hover { background: rgba(0,0,0,0.06); }

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  text-align: center;
  font-size: 1rem;
}

/* Navigation entre étapes */
.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.step-nav .btn[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* Panneau aperçu SVG */
.config-preview-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}
.preview-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.pool-svg-wrap {
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  padding: 1rem;
  overflow: hidden;
}
#pool-svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

/* Budget */
.budget-block {
  background: var(--dark-3);
  border: 1px solid rgba(196,168,130,0.2);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
}
.budget-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.budget-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.budget-range {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.budget-dash { color: var(--text-muted); margin: 0 0.25rem; }
.budget-notice {
  font-size: 0.73rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================================
   GALERIE
   ============================================================ */
#realisations { padding: 6rem 0; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 200px;
  gap: 6px;
}
@media (min-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 180px;
  }
}
@media (min-width: 900px) { .gallery-grid { grid-auto-rows: 220px; gap: 8px; } }

.gallery-item.g-large { grid-column: span 2; grid-row: span 2; }
.gallery-item.g-wide  { grid-column: span 2; }
.gallery-item.g-tall  { grid-row: span 2; }

.gallery-btn {
  display: block;
  width: 100%; height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
}
.gallery-img {
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  /* Couleur de substitution si photo manquante */
  background-color: var(--dark-3);
  transition: transform 0.5s var(--ease-out);
}
.gallery-btn:hover .gallery-img { transform: scale(1.04); }
.gallery-btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.gallery-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1rem 0.75rem 0.75rem;
  background: linear-gradient(to top, rgba(13,27,36,0.75), transparent);
  transform: translateY(100%);
  transition: transform 0.35s var(--ease);
}
.gallery-btn:hover .gallery-overlay,
.gallery-btn:focus-visible .gallery-overlay { transform: none; }
.gallery-overlay span { font-size: 0.8rem; font-weight: 600; }

/* Lightbox */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}
#lightbox[hidden] { display: none; }

.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5,12,18,0.94);
  backdrop-filter: blur(8px);
}
.lb-content {
  position: relative;
  z-index: 1;
  max-width: min(90vw, 1000px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
#lb-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0,0,0,0.7);
  object-fit: contain;
  background: var(--dark-3);
}
.lb-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}
.lb-close {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  z-index: 2;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background 0.2s, transform 0.2s;
}
.lb-close:hover { background: rgba(255,255,255,0.2); transform: rotate(90deg); }
.lb-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 2;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background 0.2s;
}
.lb-arrow:hover { background: rgba(255,255,255,0.22); }
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }
@media (min-width: 600px) { .lb-prev { left: 2rem; } .lb-next { right: 2rem; } }

/* ============================================================
   TIMELINE DU CHANTIER
   ============================================================ */
#chantier { background: var(--dark-2); }

.timeline {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.tl-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0 1.5rem;
  position: relative;
}
.tl-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 3px;
}
.tl-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--dark-3);
  border: 2px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
  transition: background 0.4s, border-color 0.4s;
  z-index: 1;
  min-width: 16px;
}
.tl-item.visible .tl-dot {
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(45,212,191,0.2);
}
.tl-line {
  flex: 1;
  width: 2px;
  background: rgba(255,255,255,0.08);
  margin: 6px 0;
  position: relative;
  overflow: hidden;
  min-height: 40px;
}
.tl-line::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 0%;
  background: var(--teal);
  transition: height 0.6s var(--ease-out);
}
.tl-item.visible .tl-line::after { height: 100%; }

.tl-body {
  padding-bottom: 2.5rem;
}
.tl-item:last-child .tl-body { padding-bottom: 0; }
.tl-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text);
  line-height: 1.3;
}
.tl-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   RÉNOVATION
   ============================================================ */
.renov-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 4rem;
}
@media (min-width: 640px) { .renov-cards { grid-template-columns: repeat(3, 1fr); } }

.renov-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.renov-icon { margin-bottom: 1.25rem; }
.renov-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text-dark);
}
.renov-card p { font-size: 0.9rem; color: #64748b; line-height: 1.65; }

/* Avant/Après */
.ba-section-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}
.ba-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 700px) { .ba-list { grid-template-columns: 1fr 1fr; } }

.ba-item { border-radius: var(--radius-lg); overflow: hidden; }
.ba-stage {
  position: relative;
  width: 100%;
  padding-top: 65%;
  overflow: hidden;
  cursor: ew-resize;
  touch-action: none;
  background: var(--light-2);
  user-select: none;
}
.ba-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.ba-layer-before {
  /* couleur de substitution si photo manquante */
  background-color: #b0bec5;
}
.ba-layer-after {
  background-color: #80cbc4;
  clip-path: inset(0 50% 0 0);
  transition: clip-path 0s;
}

.ba-handle-wrap {
  position: absolute;
  top: 0; bottom: 0;
  width: 44px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
  z-index: 3;
}
.ba-handle-line {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%; transform: translateX(-50%);
  width: 2px;
  background: white;
  box-shadow: 0 0 8px rgba(0,0,0,0.4);
}
.ba-handle-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 16px rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  z-index: 1;
  flex-shrink: 0;
  transition: transform 0.15s;
}
.ba-handle-btn:active { transform: scale(1.1); }

.ba-tag {
  position: absolute;
  top: 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(0,0,0,0.55);
  color: white;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  pointer-events: none;
}
.ba-tag-l { left: 0.75rem; }
.ba-tag-r { right: 0.75rem; }

/* ============================================================
   AVIS
   ============================================================ */
#avis { background: var(--dark); }
#avis .section-header h2 { color: var(--text); }

.rating-summary {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.stars {
  color: #FBBF24;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }

.review-card {
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.review-featured {
  border-color: rgba(196,168,130,0.3);
  background: linear-gradient(135deg, var(--dark-3) 0%, rgba(196,168,130,0.06) 100%);
}

.review-header { display: flex; align-items: center; gap: 0.75rem; }
.review-stars { color: #FBBF24; font-size: 0.95rem; letter-spacing: 0.06em; }

.review-card blockquote {
  flex: 1;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-muted);
  font-style: italic;
}
.review-card footer {
  font-size: 0.82rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.review-card footer strong { color: var(--text); font-style: normal; }
.review-card footer span { color: var(--text-muted); }

/* ============================================================
   CONTACT
   ============================================================ */
#contact.section-light .section-header h2 { color: var(--text-dark); }

.contact-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 768px) { .contact-body { grid-template-columns: 1fr 1fr; } }

.contact-phone {
  display: block;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--dark);
  margin-bottom: 1.25rem;
  transition: color 0.2s;
}
.contact-phone:hover { color: var(--teal-dark); }

.contact-info address {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.contact-info address svg { margin-top: 3px; flex-shrink: 0; color: var(--teal-dark); }

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.1);
}
.map-wrap iframe { display: block; }

.contact-form-col h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: #080f14;
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 640px)  { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-logo { font-size: 1.4rem; font-weight: 800; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

#footer h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
#footer address, #footer p, #footer nav {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.75;
}
#footer a { color: var(--text-muted); transition: color 0.2s; }
#footer a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(148,163,184,0.5);
}

/* ============================================================
   BOUTON FLOTTANT MOBILE
   ============================================================ */
.fab-call {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--dark);
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(45,212,191,0.45);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.fab-call:hover { transform: scale(1.08); box-shadow: 0 8px 32px rgba(45,212,191,0.6); }
@media (max-width: 899px) { .fab-call { display: flex; } }

/* ============================================================
   SECTION LIGHT — surcharges
   ============================================================ */
.section-light h2, .section-light h3 { color: var(--text-dark); }
.section-light .section-header p { color: #64748b; }
