/* ============================================================
   VILLES AQUA : design partage par toutes les pages villes-*
   Depend de aqua-theme.css (header, footer, click splash, etc.)
   Bibliotheque de blocs varies pour generer des layouts uniques.
   ============================================================ */

.ville-page main { padding-top: 0 !important; }

/* ===== Breadcrumb ===== */
.ville-breadcrumb {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 6vw 0;
  font-size: 13px;
  color: var(--text-soft);
}
.ville-breadcrumb a { color: var(--cyan) !important; font-weight: 600; }
.ville-breadcrumb a:hover { text-decoration: underline; }
.ville-breadcrumb .sep { margin: 0 8px; opacity: 0.5; }
.ville-breadcrumb strong { color: var(--blue); }

/* ============================================================
   HEROS (4 variantes)
   ============================================================ */

/* Variante H1 : 2 colonnes (texte gauche / image droite) */
.hero-v1 {
  position: relative;
  padding: 130px 6vw 60px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(56, 189, 248, 0.40) 0%, transparent 55%),
    radial-gradient(ellipse at 100% 50%, rgba(125, 211, 252, 0.28) 0%, transparent 50%),
    linear-gradient(180deg, #F0F9FF 0%, #E0F2FE 100%);
}
.hero-v1::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(14, 165, 233, 0.18) 1px, transparent 0);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 25%, #000 90%, transparent 100%);
  pointer-events: none;
  opacity: 0.45;
}
.hero-v1-grid {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 880px) { .hero-v1-grid { grid-template-columns: 1fr; } }

/* Variante H2 : image plein ecran avec overlay + texte centre */
.hero-v2 {
  position: relative;
  min-height: 540px;
  padding: 130px 6vw 70px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}
.hero-v2-bg { position: absolute; inset: 0; z-index: 0; }
.hero-v2-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-v2-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(2, 24, 51, 0.45) 0%, rgba(2, 24, 51, 0.78) 100%);
}
.hero-v2-inner { position: relative; z-index: 2; max-width: 880px; }
.hero-v2 .ville-title { color: #fff !important; }
.hero-v2 .ville-subtitle { color: rgba(255,255,255,0.92) !important; }
.hero-v2 .ville-subtitle strong { color: #fff !important; }

/* Variante H3 : centre + image large dessous */
.hero-v3 {
  padding: 130px 6vw 50px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #F0F9FF 0%, #E0F2FE 100%);
}
.hero-v3-text { max-width: 900px; margin: 0 auto; text-align: center; position: relative; z-index: 2; }
.hero-v3-image {
  max-width: 1100px;
  margin: 30px auto 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px -16px rgba(2, 24, 51, 0.22);
  border: 1px solid rgba(56, 189, 248, 0.20);
}
.hero-v3-image img { width: 100%; aspect-ratio: 21/9; object-fit: cover; display: block; }

/* Variante H4 : 2 colonnes texte + carte stats */
.hero-v4 {
  position: relative;
  padding: 130px 6vw 60px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(56, 189, 248, 0.35) 0%, transparent 50%),
    linear-gradient(180deg, #F0F9FF 0%, #E0F2FE 100%);
}
.hero-v4-grid {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 36px;
  align-items: start;
}
@media (max-width: 980px) { .hero-v4-grid { grid-template-columns: 1fr; } }
.hero-v4-card {
  padding: 30px 28px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.20);
  box-shadow: 0 22px 50px -16px rgba(2, 24, 51, 0.18);
}
.hero-v4-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(2, 24, 51, 0.08);
}
.hero-v4-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-v4-stat {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(14, 165, 233, 0.05);
  border: 1px solid rgba(14, 165, 233, 0.18);
}
.hero-v4-stat .label {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 4px;
}
.hero-v4-stat .value {
  font-size: 18px;
  font-weight: 800;
  color: var(--blue);
}

/* Communes aux 4 heros */
.ville-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  color: var(--blue);
  font-size: 11.5px;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border: 1px solid rgba(2, 24, 51, 0.08);
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.10);
}
.ville-badge::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.6);
  animation: nav-pulse 2.4s ease-in-out infinite;
}
.hero-v2 .ville-badge {
  background: rgba(255, 255, 255, 0.20);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.ville-title {
  font-size: clamp(28px, 4.4vw, 44px);
  font-weight: 800;
  color: var(--blue);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.ville-title .accent {
  background: linear-gradient(135deg, #0EA5E9 0%, #38BDF8 50%, #7DD3FC 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-v2 .ville-title .accent {
  background: linear-gradient(135deg, #BAE6FD 0%, #7DD3FC 50%, #38BDF8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ville-subtitle {
  font-size: 15.5px;
  line-height: 1.7;
  margin-bottom: 22px;
  color: var(--text-soft);
  max-width: 640px;
}
.ville-subtitle strong { color: var(--blue); font-weight: 700; }
.hero-v3 .ville-subtitle, .hero-v2 .ville-subtitle { margin-left: auto; margin-right: auto; }

.ville-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-v3 .ville-actions { justify-content: center; }
.hero-v2 .ville-actions { justify-content: center; }

.ville-hero-img {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 60px -16px rgba(2, 24, 51, 0.25);
  border: 1px solid rgba(56, 189, 248, 0.22);
  position: relative;
}
.ville-hero-img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.ville-hero-img-credit {
  position: absolute;
  bottom: 6px; right: 8px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(2, 24, 51, 0.55);
  padding: 3px 8px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.ville-hero-img-credit a { color: inherit !important; text-decoration: underline; }

/* ============================================================
   SECTIONS DE CONTENU
   ============================================================ */

.ville-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 6vw;
}

.ville-section-head { text-align: center; margin-bottom: 30px; }
.ville-section-head.left { text-align: left; }
.ville-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
}
.ville-section h2 {
  font-size: clamp(22px, 3.2vw, 30px);
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: 12px;
}
.ville-section h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 10px;
}
.ville-section p { font-size: 14.5px; line-height: 1.75; color: var(--text-main); margin-bottom: 14px; }
.ville-section p strong { color: var(--blue); font-weight: 700; }
.ville-section a:not(.btn-primary):not(.btn-secondary) {
  color: var(--cyan) !important;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(14, 165, 233, 0.35);
  text-underline-offset: 3px;
}

/* C1 : A propos (texte + image cote a cote) */
.bloc-about {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: center;
}
@media (max-width: 880px) { .bloc-about { grid-template-columns: 1fr; } }
.bloc-about.reversed { grid-template-columns: 1fr 1.2fr; }
.bloc-about.reversed .bloc-about-image { order: -1; }
@media (max-width: 880px) { .bloc-about.reversed .bloc-about-image { order: 0; } }
.bloc-about-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 22px 48px -14px rgba(2, 24, 51, 0.20);
  border: 1px solid rgba(56, 189, 248, 0.18);
  position: relative;
}
.bloc-about-image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }

/* C2 : Donnees cles (4 stat cards) */
.bloc-kpi {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 760px) { .bloc-kpi { grid-template-columns: repeat(2, 1fr); } }
.bloc-kpi-card {
  padding: 22px 20px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(2, 24, 51, 0.08);
  box-shadow: 0 12px 28px -10px rgba(2, 24, 51, 0.10);
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.bloc-kpi-card:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
}
.bloc-kpi-card .icon {
  width: 44px; height: 44px;
  margin: 0 auto 12px;
  border-radius: 12px;
  background: var(--grad-aqua);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 20px -4px rgba(14, 165, 233, 0.45);
}
.bloc-kpi-card .icon svg { width: 20px; height: 20px; }
.bloc-kpi-card .value {
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.02em;
}
.bloc-kpi-card .label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-top: 4px;
}

/* C3 : Carte interactive */
.bloc-map {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 22px 50px -16px rgba(2, 24, 51, 0.20);
  border: 1px solid rgba(56, 189, 248, 0.20);
}
.bloc-map iframe { width: 100%; height: 420px; border: 0; display: block; }

/* C4 : Communes voisines (chips cliquables) */
.bloc-voisines { display: flex; flex-wrap: wrap; gap: 10px; }
.bloc-voisine {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.08);
  color: var(--blue) !important;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(56, 189, 248, 0.25);
  transition: all 0.2s ease;
  text-decoration: none !important;
}
.bloc-voisine:hover {
  background: var(--grad-aqua);
  color: #fff !important;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -4px rgba(14, 165, 233, 0.45);
}
.bloc-voisine .dist { opacity: 0.65; font-size: 11.5px; margin-left: 4px; }

/* C5 : Prestations (cards) */
.bloc-prestations {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 880px) { .bloc-prestations { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .bloc-prestations { grid-template-columns: 1fr; } }
.bloc-prestation {
  padding: 24px 24px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(2, 24, 51, 0.08);
  box-shadow: 0 12px 28px -10px rgba(2, 24, 51, 0.10);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.bloc-prestation:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: 0 22px 50px -14px rgba(14, 165, 233, 0.30);
}
.bloc-prestation-icon {
  width: 48px; height: 48px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: var(--grad-aqua);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 20px -4px rgba(14, 165, 233, 0.40);
}
.bloc-prestation-icon svg { width: 22px; height: 22px; }
.bloc-prestation h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.bloc-prestation p { font-size: 13.5px; line-height: 1.6; color: var(--text-soft); margin-bottom: 0; }

/* C6 : Methode (4 etapes timeline) */
.bloc-methode {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 880px) { .bloc-methode { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .bloc-methode { grid-template-columns: 1fr; } }
.bloc-etape {
  padding: 22px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(56, 189, 248, 0.18);
  position: relative;
}
.bloc-etape-num {
  display: inline-flex;
  width: 32px; height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--grad-aqua);
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  margin-bottom: 12px;
  box-shadow: 0 6px 14px rgba(14, 165, 233, 0.4);
}
.bloc-etape h3 { font-size: 15px; margin-bottom: 6px; }
.bloc-etape p { font-size: 13px; line-height: 1.55; color: var(--text-soft); margin: 0; }

/* C7 : Pourquoi Noble (4 cards horizontal) */
.bloc-pourquoi {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 760px) { .bloc-pourquoi { grid-template-columns: 1fr; } }
.bloc-pourquoi-card {
  display: flex;
  gap: 16px;
  padding: 22px 22px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(2, 24, 51, 0.08);
  box-shadow: 0 10px 24px -10px rgba(2, 24, 51, 0.10);
}
.bloc-pourquoi-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(14, 165, 233, 0.10);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bloc-pourquoi-icon svg { width: 22px; height: 22px; }
.bloc-pourquoi-card h3 { font-size: 15px; margin-bottom: 4px; }
.bloc-pourquoi-card p { font-size: 13px; line-height: 1.55; color: var(--text-soft); margin: 0; }

/* C8 : FAQ */
.bloc-faq { display: flex; flex-direction: column; gap: 10px; max-width: 820px; margin: 0 auto; }
.bloc-faq details {
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(2, 24, 51, 0.08);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.bloc-faq details[open], .bloc-faq details:hover {
  border-color: var(--cyan);
  box-shadow: 0 12px 28px -12px rgba(14, 165, 233, 0.25);
}
.bloc-faq summary {
  cursor: pointer;
  padding: 16px 22px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--blue);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.bloc-faq summary::-webkit-details-marker { display: none; }
.bloc-faq summary .chev {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--grad-aqua);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.bloc-faq summary .chev svg { width: 14px; height: 14px; }
.bloc-faq details[open] summary .chev { transform: rotate(180deg); }
.bloc-faq-body {
  padding: 0 22px 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
}

/* C9 : Citation / engagement */
.bloc-quote {
  max-width: 900px;
  margin: 0 auto;
  padding: 38px 36px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.06) 0%, rgba(125, 211, 252, 0.10) 100%);
  border-left: 4px solid var(--cyan);
  position: relative;
}
.bloc-quote::before {
  content: "“";
  position: absolute;
  top: 8px; left: 18px;
  font-size: 70px;
  line-height: 1;
  color: var(--cyan);
  opacity: 0.35;
  font-family: Georgia, serif;
  font-weight: 900;
}
.bloc-quote-text {
  font-size: 17px;
  line-height: 1.65;
  color: var(--blue);
  font-style: italic;
  margin-left: 50px;
  margin-bottom: 14px;
}
.bloc-quote-author {
  margin-left: 50px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-soft);
}
.bloc-quote-author::before { content: "— "; }

/* C10 : Quartiers desservis (chips simples) */
.bloc-quartiers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.bloc-quartier {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.08);
  color: var(--blue);
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid rgba(56, 189, 248, 0.20);
}

/* C11 : CTA finale variant */
.bloc-cta {
  max-width: 900px;
  margin: 0 auto;
  padding: 42px 36px;
  border-radius: 26px;
  background: var(--grad-aqua);
  color: #fff;
  text-align: center;
  box-shadow: 0 30px 60px -16px rgba(14, 165, 233, 0.45);
  position: relative;
  overflow: hidden;
}
.bloc-cta::before {
  content: "";
  position: absolute;
  top: -50%; right: -20%;
  width: 60%; height: 200%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.2) 0%, transparent 65%);
  pointer-events: none;
}
.bloc-cta h2 {
  color: #fff !important;
  font-size: clamp(22px, 3vw, 28px);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.bloc-cta p {
  color: rgba(255,255,255,0.92);
  font-size: 14.5px;
  margin: 0 auto 22px;
  max-width: 540px;
  position: relative;
  z-index: 1;
}
.bloc-cta .btn-primary {
  background: #fff !important;
  color: var(--blue) !important;
  padding: 13px 28px !important;
  font-size: 14.5px !important;
  position: relative;
  z-index: 1;
}

/* ===== Reveal animation (gere via aqua-theme.js si present) ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Image credit ===== */
.image-credit {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-soft);
  text-align: center;
}
.image-credit a { color: var(--cyan) !important; }
