/*
* ============================================================
* STYLE.CSS — AQUAZEN PISCINES · Orange (84)
* ============================================================
*
* RÔLE : CSS custom uniquement — tout ce qui dépasse Tailwind.
* Complémente (ne remplace pas) les utilitaires Tailwind du HTML.
*
* DIRECTION ESTHÉTIQUE — /ui-ux-pro-max :
* Styles retenus : Trust & Authority (base) · Glassmorphism (ponctuel,
* cartes flottantes sur photo) · Editorial Premium (typo XXL, tracking
* large, surtitres filetés) · signature propre « Ligne d'eau ».
*
* Essence visuelle : la lumière d'un bassin provençal en plein midi —
* bleu profond, or, pierre chaude, beaucoup d'air.
* Signature unique : la LIGNE D'EAU — une onde reprise du logo qui
* sépare les sections, souligne les surtitres, relie les jalons du
* parcours client et marque l'onglet actif de la nav.
*
* PALETTE (hex pixel-perfect extraits du logo, sans modification) :
*   #003C60  bleu profond du lettrage « AQUA »        → primary
*   #005484  bleu médian du dégradé du lettrage        → primary-light
*   #0090C0  bleu cyan de l'eau du pictogramme         → secondary
*   #54CCE4  cyan clair des vagues                     → aqua
*   #CC9030  or du lettrage « ZEN » et du cercle       → accent
* Couleurs COMPLÉMENTAIRES ajoutées (nuances, non substituées) :
*   #001B33  nuance -dark du bleu profond → fonds sombres, texte sur or
*   #E0B45E  nuance -light de l'or        → hover, filets sur fond sombre
*   #8A5F14  nuance -dark de l'or         → surtitres sur fond clair
*            (l'or #CC9030 ne passe pas 4.5:1 en texte sur fond clair)
*   #F6F9FB / #E7EFF4  fonds bleutés — jamais de blanc pur plat
*   #0C1F2E / #33505F / #4E6675  3 niveaux d encre, tous ≥ 4.5:1 sur les 2 fonds
*
* ⚠️ Les tokens vivent dans @theme + :root inline dans le <head>.
*    Ici on utilise var(--color-primary), var(--font-display), etc.
* ⚠️ @apply NON disponible (Play CDN) — CSS classique uniquement.
* ============================================================
*/

/* ============================================================
   1. RESET & BASE CUSTOM
   ============================================================ */

html { scroll-behavior: smooth; }

body {
  background-color: var(--color-surface);
  color: var(--color-ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--color-accent);
  color: var(--color-primary-dark);
}

:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 3px;
  border-radius: 3px;
}

img { max-width: 100%; height: auto; }

/* Lien d'évitement clavier */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--color-primary-dark);
  color: #fff;
  padding: 12px 24px;
  z-index: 9999;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* Largeur de lecture confortable */
main p { max-width: 68ch; }
.card p, .hero p, .cta p, .stat p, .u-wide p { max-width: none; }

/* ============================================================
   2. TYPOGRAPHIE AVANCÉE
   ============================================================ */

.display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.06;
  text-wrap: balance;
}

.h-xxl  { font-size: clamp(2.5rem, 6.2vw, 4.75rem); }
.h-xl   { font-size: clamp(2rem, 4.2vw, 3.15rem); }
.h-lg   { font-size: clamp(1.5rem, 2.4vw, 1.95rem); }
.h-md   { font-size: clamp(1.2rem, 1.7vw, 1.4rem); letter-spacing: 0; }

/* Surtitre fileté — signature « ligne d'eau » en miniature */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 6px;
  flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 6'%3E%3Cpath d='M0 3.4c3.4-3.6 6.8-3.6 10.2 0s6.8 3.6 10.2 0 6.8-3.6 10.2 0' fill='none' stroke='%23CC9030' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat;
}
.eyebrow--light { color: var(--color-accent-light); }
.eyebrow--light::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 6'%3E%3Cpath d='M0 3.4c3.4-3.6 6.8-3.6 10.2 0s6.8 3.6 10.2 0 6.8-3.6 10.2 0' fill='none' stroke='%23E0B45E' stroke-width='1.6'/%3E%3C/svg%3E");
}

.lead {
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  line-height: 1.72;
  color: var(--color-ink-soft);
}

.prose p { line-height: 1.78; color: var(--color-ink-soft); }
.prose p + p { margin-top: 1.25rem; }

/* Fragment mis en exergue — INLINE dans le flux (règle H8.1) */
.hl { color: var(--color-primary); font-weight: 600; }
.hl-gold { color: var(--color-accent-dark); font-weight: 600; }
.on-dark .hl,
.on-dark .hl-gold { color: var(--color-accent-light); }

/* ============================================================
   3. ATMOSPHÈRE DE FOND
   ============================================================ */

/* Grain très fin + halo bleuté : le fond ne doit jamais être plat.
   z-index négatif : le voile passe derrière tout le contenu SANS avoir à
   repositionner les enfants de <body> — une règle `body > *` casserait les
   utilitaires Tailwind (sticky / z-50), qui vivent dans un @layer et
   perdent face à n'importe quelle règle hors layer. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.5;
  background:
    radial-gradient(1100px 620px at 82% -8%, rgba(0, 144, 192, 0.10), transparent 62%),
    radial-gradient(900px 560px at -6% 34%, rgba(204, 144, 48, 0.07), transparent 60%);
}


.section { padding: clamp(4.5rem, 9vw, 8.5rem) 0; }
.section--tight { padding: clamp(3.5rem, 6vw, 5.5rem) 0; }
.bg-alt { background: var(--color-surface-alt); }

/* Bloc sombre — bleu nuit + caustiques d'eau très discrètes */
.on-dark {
  position: relative;
  background:
    radial-gradient(900px 520px at 15% 0%, rgba(0, 144, 192, 0.30), transparent 65%),
    linear-gradient(165deg, #002743 0%, var(--color-primary-dark) 58%, #000f1e 100%);
  color: var(--color-surface);
  overflow: hidden;
}
.on-dark p { color: rgba(233, 243, 249, 0.86); }
.on-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.012 0.028' numOctaves='3' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0.33 0 0 0 0 0.80 0 0 0 0 0.92 0 0 0 -1.4 0.62'/%3E%3C/filter%3E%3Crect width='420' height='420' filter='url(%23c)'/%3E%3C/svg%3E");
  background-size: 640px 640px;
}
.on-dark > * { position: relative; z-index: 2; }

/* Bloc de conversion final : photo de crépuscule sous le voile sombre.
   L'image est décorative (aucune information) — elle vit donc en CSS. */
.cta-photo {
  background:
    linear-gradient(100deg, rgba(0, 18, 34, 0.97) 0%, rgba(0, 24, 45, 0.92) 46%, rgba(0, 31, 54, 0.84) 100%),
    url("../images/cta-soir.jpg") center / cover no-repeat;
}

/* Séparateur « ligne d'eau » entre deux sections */
.waterline {
  display: block;
  width: 100%;
  height: clamp(38px, 5vw, 74px);
  color: var(--color-surface);
}

/* ============================================================
   4. NAVIGATION
   ============================================================ */

.site-header {
  background: rgba(246, 249, 251, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(12, 31, 46, 0.07);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(246, 249, 251, 0.95);
  box-shadow: 0 10px 34px -20px rgba(0, 27, 51, 0.5);
}

.nav-logo__img {
  height: 58px;
  width: auto;
  object-fit: contain;
  transition: opacity 0.2s ease;
}
.nav-logo__img:hover { opacity: 0.85; }
@media (max-width: 768px) { .nav-logo__img { height: 42px; } }

/* Fallback responsive OBLIGATOIRE — empêche le double menu (H2.1/H2.4).
   Sélecteurs doublés (.a.b) pour l'emporter sur le display des composants. */
.site-header .nav-links-desktop { display: none; }
.site-header .nav-cta-desktop.btn-primary { display: none; }
.site-header .burger { display: inline-flex; }

@media (min-width: 1024px) {
  .site-header .nav-links-desktop { display: flex; }
  .site-header .nav-cta-desktop.btn-primary { display: inline-flex; }
  .site-header .burger { display: none; }
}

.nav-cta-desktop.btn-primary {
  white-space: nowrap;
  padding-inline: 1.55rem;
  font-size: 0.9rem;
}

/* Onglets : la distinction passe par la TYPO et l'ESPACEMENT.
   Aucune décoration uniforme — au repos, les onglets sont nus (H2.5). */
.nav-links-desktop { list-style: none; padding: 0; margin: 0; }

.nav-link {
  position: relative;
  display: inline-block;
  padding: 0.35rem 0;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--color-ink-soft);
  transition: color 0.22s ease;
}
.nav-link:hover { color: var(--color-primary); }

/* Indicateur d'état ACTIF uniquement : losange doré, jamais de soulignement */
.nav-link.active { color: var(--color-primary); font-weight: 600; }
.nav-link.active::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -0.95rem;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  background: var(--color-accent);
  transform: rotate(45deg);
}

/* Menu mobile */
.mobile-menu {
  position: fixed;
  inset: 0 0 auto 0;
  top: 0;
  padding: 6.5rem 1.5rem 2.5rem;
  background: linear-gradient(168deg, #00304f 0%, var(--color-primary-dark) 100%);
  z-index: 40;
  height: 100dvh;
  overflow-y: auto;
}
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li + li { margin-top: 0.35rem; }
.mobile-menu a {
  display: block;
  padding: 0.95rem 0.25rem;
  font-family: var(--font-display);
  font-size: 1.16rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(240, 248, 252, 0.92);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.mobile-menu a:hover { color: var(--color-accent-light); padding-left: 0.7rem; }
.mobile-menu .mobile-cta {
  margin-top: 1.6rem;
  border-bottom: none;
  text-align: center;
  border-radius: var(--radius-btn);
  background: linear-gradient(120deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
  color: var(--color-primary-dark);
  font-weight: 700;
}
.mobile-menu .mobile-cta:hover { padding-left: 0.25rem; }

.burger {
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(12, 31, 46, 0.14);
  background: transparent;
  cursor: pointer;
  z-index: 60;
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.burger:hover { background: rgba(0, 60, 96, 0.06); }
.burger-lines { display: block; width: 20px; height: 14px; position: relative; }
.burger-lines span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.8px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.2s ease, background 0.2s ease;
}
.burger-lines span:nth-child(1) { top: 0; }
.burger-lines span:nth-child(2) { top: 6px; }
.burger-lines span:nth-child(3) { top: 12px; }
.burger.is-open { border-color: rgba(255, 255, 255, 0.3); }
.burger.is-open .burger-lines span { background: #fff; }
.burger.is-open .burger-lines span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open .burger-lines span:nth-child(2) { opacity: 0; }
.burger.is-open .burger-lines span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   5. BOUTONS — HIÉRARCHIE STRICTE À 3 NIVEAUX (H3.5)
   ============================================================ */

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 54px;
  padding: 0.95rem 1.9rem;
  border-radius: var(--radius-btn);
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.045em;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.22s ease;
}

/* NIVEAU 1 — conversion (devis, rappel, contact) */
.btn-primary {
  background: linear-gradient(118deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
  color: var(--color-primary-dark);
  border: 1.6px solid transparent;
  box-shadow: 0 12px 26px -14px rgba(204, 144, 48, 0.85);
}
.btn-primary:hover {
  background: linear-gradient(118deg, var(--color-accent-light) 0%, var(--color-accent) 100%);
  box-shadow: 0 16px 32px -14px rgba(204, 144, 48, 0.95);
  transform: translateY(-2px);
}

/* NIVEAU 2 — action secondaire · silhouette IDENTIQUE au primaire,
   affordance au repos garantie (bordure + fond) */
.btn-secondary {
  background: rgba(0, 60, 96, 0.06);
  color: var(--color-primary);
  border: 1.6px solid rgba(0, 60, 96, 0.42);
}
.btn-secondary:hover {
  background: rgba(0, 60, 96, 0.13);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

/* Variante sur photo / fond sombre : bordure + blur + fond semi-opaque */
.btn-secondary.on-photo {
  color: #fff;
  background: rgba(0, 27, 51, 0.42);
  border-color: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  box-shadow: 0 10px 26px -16px rgba(0, 0, 0, 0.9);
}
.btn-secondary.on-photo:hover {
  background: rgba(0, 27, 51, 0.62);
  border-color: #fff;
}

.btn-block { width: 100%; }

/* NIVEAU 3 — lien textuel de référence interne */
.link-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: all 0.2s ease;
}
.link-inline svg { transition: transform 0.2s ease; }
.link-inline:hover { color: var(--color-secondary); }
.link-inline:hover svg { transform: translateX(4px); }
.on-dark .link-inline { color: var(--color-accent-light); }
.on-dark .link-inline:hover { color: #fff; }

/* ============================================================
   6. HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-height));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-primary-dark);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(96deg, rgba(0, 18, 34, 0.96) 0%, rgba(0, 24, 45, 0.90) 42%, rgba(0, 34, 59, 0.48) 72%, rgba(0, 39, 67, 0.16) 100%),
    linear-gradient(to top, rgba(0, 18, 34, 0.78) 0%, transparent 46%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding-top: clamp(3.5rem, 8vw, 6rem);
  padding-bottom: clamp(8rem, 14vw, 11rem);
}
.hero h1 { color: #fff; }
.hero__lead {
  color: rgba(226, 240, 248, 0.9);
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  line-height: 1.75;
}
.hero__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.06rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: color 0.2s ease;
}
.hero__phone span { color: rgba(226, 240, 248, 0.74); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }
.hero__phone:hover { color: var(--color-accent-light); }

/* Repère de scroll animé */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  z-index: 3;
  width: 1px;
  height: 46px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.55));
  overflow: hidden;
}
.hero__scroll::after {
  content: "";
  position: absolute;
  left: -1px;
  width: 3px;
  height: 14px;
  background: var(--color-accent);
  animation: drip 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes drip {
  0%   { top: -16px; opacity: 0; }
  30%  { opacity: 1; }
  100% { top: 46px; opacity: 0; }
}

/* Bandeau de réassurance — 4 cartes verre qui chevauchent le hero */
.trust-strip {
  position: relative;
  z-index: 5;
  margin-top: 2.5rem;
}
@media (min-width: 1024px) {
  .trust-strip { margin-top: clamp(-6.5rem, -8vw, -5rem); }
}
.trust-card {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  height: 100%;
  padding: 1.35rem 1.4rem;
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.trust-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.trust-card__icon {
  flex: none;
  width: 34px;
  height: 34px;
  color: var(--color-accent-dark);
}
.trust-card p {
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-ink);
}

/* ============================================================
   7. COMPOSANTS RÉCURRENTS
   ============================================================ */

/* --- Carte générique --- */
.card {
  position: relative;
  height: 100%;
  border-radius: var(--radius-card);
  background: #fff;
  border: 1px solid rgba(12, 31, 46, 0.08);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 144, 192, 0.28);
}
.card__body { padding: clamp(1.5rem, 2.4vw, 2rem); }
.card__media { position: relative; overflow: hidden; }
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.card:hover .card__media img { transform: scale(1.05); }

/* --- Bento des trois modèles --- */
.bento { display: grid; gap: clamp(1rem, 1.6vw, 1.5rem); }
@media (min-width: 900px) {
  .bento {
    grid-template-columns: 1.28fr 1fr;
    grid-template-rows: auto auto;
  }
  .bento > :nth-child(1) { grid-row: span 2; }
}
.bento .card__media { aspect-ratio: 4 / 3; }
@media (min-width: 900px) {
  .bento > :nth-child(1) { display: flex; flex-direction: column; }
  .bento > :nth-child(1) .card__media { aspect-ratio: auto; flex: 1 1 auto; min-height: 300px; }
  .bento > :nth-child(1) .card__body { flex: none; }
  .bento > :nth-child(2) .card__media,
  .bento > :nth-child(3) .card__media { aspect-ratio: 16 / 8; }
}

/* --- Schéma du circuit court (3 jalons reliés par la ligne d'eau) --- */
.route { position: relative; display: grid; gap: 2rem; }
@media (min-width: 860px) {
  .route { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .route::before {
    content: "";
    position: absolute;
    top: 27px;
    left: 12%;
    right: 12%;
    height: 8px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 8' preserveAspectRatio='none'%3E%3Cpath d='M0 4.4c5-4.4 10-4.4 15 0s10 4.4 15 0 10-4.4 15 0 10 4.4 15 0' fill='none' stroke='%23CC9030' stroke-width='1.5' opacity='.55'/%3E%3C/svg%3E") repeat-x center/60px 8px;
  }
}
.route__step { position: relative; text-align: center; }
.route__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 1.1rem;
  border-radius: 999px;
  background: var(--color-surface);
  border: 1.6px solid var(--color-accent);
  color: var(--color-accent-dark);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}
.bg-alt .route__num { background: var(--color-surface-alt); }
.route__step h3 {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 0.4rem;
}
.route__step p { font-size: 0.95rem; line-height: 1.62; color: var(--color-ink-soft); margin-inline: auto; }

/* --- Points clés du bloc matière --- */
.keypoint {
  padding: 1.6rem 1.5rem;
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(84, 204, 228, 0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color 0.25s ease, background 0.25s ease;
}
.keypoint:hover { border-color: rgba(224, 180, 94, 0.6); background: rgba(255, 255, 255, 0.09); }
.keypoint__idx {
  display: block;
  margin-bottom: 0.85rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--color-accent-light);
}
.keypoint p { font-size: 0.97rem; line-height: 1.65; }

/* --- Familles d'équipements --- */
.family__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1.15rem;
  border-radius: 16px;
  background: linear-gradient(140deg, rgba(0, 144, 192, 0.13), rgba(84, 204, 228, 0.06));
  border: 1px solid rgba(0, 144, 192, 0.2);
  color: var(--color-primary);
}
.family__icon svg { width: 26px; height: 26px; }
.family h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 0.6rem;
}
.family p { font-size: 0.97rem; line-height: 1.68; color: var(--color-ink-soft); }

/* --- Étapes du projet (liste numérotée éditoriale) --- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  position: relative;
  counter-increment: step;
  padding: 1.9rem 0 1.9rem 5.4rem;
  border-top: 1px solid rgba(12, 31, 46, 0.1);
}
.steps li:last-child { border-bottom: 1px solid rgba(12, 31, 46, 0.1); }
.steps li::before {
  content: "0" counter(step);
  position: absolute;
  left: 0;
  top: 1.55rem;
  font-family: var(--font-display);
  font-size: 2.35rem;
  font-weight: 300;
  line-height: 1;
  color: rgba(0, 60, 96, 0.2);
  transition: color 0.3s ease;
}
.steps li:hover::before { color: var(--color-accent); }
.steps p { font-size: 1rem; line-height: 1.72; color: var(--color-ink-soft); }
.steps strong { color: var(--color-ink); font-weight: 600; }
@media (max-width: 640px) {
  .steps li { padding-left: 3.9rem; }
  .steps li::before { font-size: 1.8rem; }
}

/* --- Encart urbanisme --- */
.notice {
  position: relative;
  padding: 1.75rem 1.75rem 1.75rem 2.1rem;
  border-radius: var(--radius-card);
  background: linear-gradient(140deg, rgba(204, 144, 48, 0.10), rgba(204, 144, 48, 0.03));
  border: 1px solid rgba(204, 144, 48, 0.32);
}
.notice::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.4rem;
  bottom: 1.4rem;
  width: 3px;
  border-radius: 3px;
  background: var(--color-accent);
}
.notice h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
}
.notice p { font-size: 0.97rem; line-height: 1.7; color: var(--color-ink-soft); }

/* --- Carte Leaflet --- */
.map-wrapper {
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid rgba(12, 31, 46, 0.1);
  box-shadow: var(--shadow-card);
}
.map-container {
  width: 100%;
  height: 400px;
  background: var(--color-surface-alt);
}
@media (max-width: 768px) { .map-container { height: 300px; } }
.leaflet-container { font-family: var(--font-body); }
.leaflet-popup-content-wrapper {
  border-radius: 12px;
  background: var(--color-surface);
  color: var(--color-ink);
}
.leaflet-popup-content { font-family: var(--font-body); margin: 13px 17px; font-size: 0.9rem; }
.leaflet-popup-tip { background: var(--color-surface); }
.map-zones { list-style: none; padding: 1rem 0 0; margin: 0; color: var(--color-ink-muted); font-size: 0.92rem; }
.map-zones li { display: flex; gap: 0.55rem; padding: 0.25rem 0; }
.map-zones svg { flex: none; width: 17px; height: 17px; margin-top: 2px; color: var(--color-secondary); }

/* --- Galerie de réalisations --- */
.gallery { display: grid; gap: clamp(0.75rem, 1.2vw, 1.15rem); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 152px; } }
.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  cursor: pointer;
  background: var(--color-surface-alt);
  border: none;
  padding: 0;
  aspect-ratio: 4 / 3;
}
@media (min-width: 900px) {
  .gallery__item { aspect-ratio: auto; }
  .gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .gallery__item:nth-child(2) { grid-column: span 1; grid-row: span 2; }
  .gallery__item:nth-child(3) { grid-column: span 1; grid-row: span 1; }
  .gallery__item:nth-child(4) { grid-column: span 1; grid-row: span 1; }
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1); }
.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 27, 51, 0.55), transparent 48%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item:hover::after { opacity: 1; }
.gallery__zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-primary);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.gallery__item:hover .gallery__zoom { opacity: 1; transform: translateY(0); }
.gallery__zoom svg { width: 17px; height: 17px; }

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(0, 15, 30, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 10px; box-shadow: 0 30px 80px -30px #000; }
.lightbox__caption {
  position: absolute;
  bottom: clamp(0.9rem, 3vw, 2rem);
  left: 50%;
  transform: translateX(-50%);
  max-width: 82%;
  text-align: center;
  color: rgba(235, 245, 250, 0.9);
  font-size: 0.9rem;
}
.lightbox__btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.6); }
.lightbox__btn svg { width: 20px; height: 20px; }
.lightbox__close { top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); }
.lightbox__prev { left: clamp(0.6rem, 3vw, 2rem); top: 50%; margin-top: -25px; }
.lightbox__next { right: clamp(0.6rem, 3vw, 2rem); top: 50%; margin-top: -25px; }

/* --- Accordéon FAQ --- */
.faq-item { border-bottom: 1px solid rgba(12, 31, 46, 0.11); }
.faq-item:first-child { border-top: 1px solid rgba(12, 31, 46, 0.11); }
.faq-question {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.65rem 0;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 1.35vw, 1.16rem);
  font-weight: 500;
  color: var(--color-ink);
  transition: color 0.2s ease;
}
.faq-question:hover { color: var(--color-primary); }
.faq-icon {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  margin-top: 2px;
  border-radius: 999px;
  border: 1.4px solid rgba(0, 60, 96, 0.28);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.3s ease;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--color-primary);
  transition: opacity 0.25s ease, background 0.25s ease;
}
.faq-icon::before { width: 11px; height: 1.6px; margin: -0.8px 0 0 -5.5px; }
.faq-icon::after  { width: 1.6px; height: 11px; margin: -5.5px 0 0 -0.8px; }
.faq-question[aria-expanded="true"] .faq-icon {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: rotate(180deg);
}
.faq-question[aria-expanded="true"] .faq-icon::before { background: var(--color-primary-dark); }
.faq-question[aria-expanded="true"] .faq-icon::after { opacity: 0; }
.faq-answer { padding: 0 0 1.75rem; }
.faq-answer p { font-size: 1rem; line-height: 1.76; color: var(--color-ink-soft); max-width: 74ch; }

/* --- Formulaire de rappel --- */
.form-field { display: block; margin-bottom: 1.05rem; }
.form-field label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(226, 240, 248, 0.72);
}
.form-field input,
.form-field select {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form-field select option { color: var(--color-ink); }
.form-field input::placeholder { color: rgba(226, 240, 248, 0.45); }
.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.12);
}
.form-note { font-size: 0.83rem; color: rgba(226, 240, 248, 0.6); }
.form-success,
.form-error {
  margin-top: 1rem;
  padding: 0.85rem 1.1rem;
  border-radius: 10px;
  font-size: 0.93rem;
}
.form-success:empty,
.form-error:empty { display: none; }
.form-success { background: rgba(84, 204, 228, 0.16); border: 1px solid rgba(84, 204, 228, 0.5); color: #dff4fb; }
.form-error { background: rgba(230, 110, 90, 0.16); border: 1px solid rgba(230, 110, 90, 0.5); color: #ffe3dd; }

/* --- Rail de contact fixe (desktop) + barre fixe (mobile) --- */
.contact-rail {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 45;
  display: none;
  flex-direction: column;
  gap: 1px;
  border-radius: 14px 0 0 14px;
  overflow: hidden;
  box-shadow: -8px 0 28px -16px rgba(0, 27, 51, 0.7);
}
@media (min-width: 1180px) { .contact-rail { display: flex; } }
.contact-rail a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  background: rgba(0, 60, 96, 0.94);
  color: #fff;
  transition: background 0.2s ease, width 0.2s ease;
}
.contact-rail a:hover { background: var(--color-accent); color: var(--color-primary-dark); }
.contact-rail svg { width: 21px; height: 21px; }

.contact-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 27, 51, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@media (min-width: 768px) { .contact-bar { display: none; } }
.contact-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 0.5rem;
  min-height: 56px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  text-decoration: none;
}
.contact-bar a svg { width: 17px; height: 17px; }
.contact-bar a + a {
  background: linear-gradient(118deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
  color: var(--color-primary-dark);
}
@media (max-width: 767px) { body { padding-bottom: 56px; } }

/* ============================================================
   8. FOOTER
   ============================================================ */

/* Scénario A — footer clair, même palette que la nav : le logo multicolore
   du client y reste parfaitement lisible sans aucune retouche (G1/H3). */
.site-footer {
  position: relative;
  background:
    radial-gradient(760px 400px at 88% 6%, rgba(0, 144, 192, 0.09), transparent 62%),
    var(--color-surface-alt);
  color: var(--color-ink-soft);
  border-top: 3px solid var(--color-accent);
}
.footer-logo { display: inline-block; }
.footer-logo img {
  display: block;
  height: 68px;
  width: auto;
  object-fit: contain;
  max-width: 100%;
}
@media (max-width: 768px) { .footer-logo img { height: 52px; } }

.footer-title {
  margin-bottom: 1.15rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
}
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li + li { margin-top: 0.6rem; }
.footer-list a,
.footer-contact a {
  color: var(--color-ink-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-list a:hover,
.footer-contact a:hover { color: var(--color-primary); }
.footer-contact li { display: flex; gap: 0.7rem; align-items: flex-start; }
.footer-contact li + li { margin-top: 0.85rem; }
.footer-contact svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--color-secondary); }
.footer-bottom { border-top: 1px solid rgba(12, 31, 46, 0.13); }
.footer-legal { font-size: 0.86rem; color: var(--color-ink-muted); }
.footer-legal a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-legal a:hover { color: var(--color-primary); }
.photo-credits { font-size: 0.78rem; color: var(--color-ink-muted); }

.readyup-credit {
  font-size: 12px;
  color: var(--color-ink-muted);
  text-align: center;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(12, 31, 46, 0.1);
}
.readyup-credit a { color: inherit; text-decoration: underline; }
.readyup-credit a:hover { color: var(--color-primary); }

/* ============================================================
   9. ANIMATIONS & MICRO-INTERACTIONS
   ============================================================ */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.animate-on-scroll.is-visible { opacity: 1; transform: none; }
.stagger > * { transition-delay: 0ms; }
.stagger > :nth-child(2) { transition-delay: 90ms; }
.stagger > :nth-child(3) { transition-delay: 180ms; }
.stagger > :nth-child(4) { transition-delay: 270ms; }

/* Entrée du hero au chargement */
.hero__inner > * { animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero__inner > :nth-child(2) { animation-delay: 0.1s; }
.hero__inner > :nth-child(3) { animation-delay: 0.2s; }
.hero__inner > :nth-child(4) { animation-delay: 0.3s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .animate-on-scroll { opacity: 1; transform: none; }
}

/* ============================================================
   10. UTILITAIRES & RESPONSIVE
   ============================================================ */

.u-overlap-media { position: relative; }
@media (min-width: 1024px) {
  .u-overlap-media img { border-radius: var(--radius-card); }
  .u-overlap-frame::before {
    content: "";
    position: absolute;
    left: -22px;
    top: -22px;
    width: 58%;
    height: 58%;
    border: 1.5px solid rgba(204, 144, 48, 0.55);
    border-radius: var(--radius-card);
    z-index: 0;
  }
  .u-overlap-frame img { position: relative; z-index: 1; }
}

.u-media-round { border-radius: var(--radius-card); overflow: hidden; }
.u-shadow-media { box-shadow: 0 34px 68px -38px rgba(0, 27, 51, 0.62); }

@media (max-width: 1023px) {
  .hero { min-height: auto; padding-top: 2.5rem; }
  .hero__veil {
    background:
      linear-gradient(180deg, rgba(0, 20, 38, 0.86) 0%, rgba(0, 27, 51, 0.78) 55%, rgba(0, 20, 38, 0.9) 100%);
  }
}

/* Verrou de défilement quand un panneau plein écran est ouvert (menu, lightbox) */
body.is-locked { overflow: hidden; }
/* La barre de contact fixe s'efface quand un panneau plein écran est ouvert */
body.is-locked .contact-bar { display: none; }

/* Largeur de lecture — exceptions complémentaires aux composants */
.trust-card p,
.keypoint p,
.family p,
.route__step p,
.steps p,
.notice p,
.form-note,
.footer-list p,
.site-footer p { max-width: none; }
