/* ============================================================
   PISCINES SERVICES 13 — Feuille de style principale
   Direction : « Provence aquatique » — clair, lumineux, premium
   Palette : bleu marine + azur + turquoise, accent soleil sable
   Typo    : Fraunces (display serif) + Manrope (texte)
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* Couleurs marque + eau */
  --navy:        #0C2740;
  --navy-700:    #12395A;
  --brand-navy:  #27314C;
  --azure:       #1C86B8;
  --azure-600:   #2E9BC9;
  --aqua:        #35C0D0;
  --aqua-200:    #A9E4EC;
  --foam:        #EDF6FB;
  --foam-2:      #F6FBFD;
  --sand:        #E7A63E;
  --sand-deep:   #D68C1E;

  --ink:         #14283A;
  --muted:       #5E7688;
  --line:        #DBE8F0;
  --white:       #FFFFFF;

  --grad-water:  linear-gradient(135deg, #1C86B8 0%, #35C0D0 100%);
  --grad-deep:   linear-gradient(158deg, #0C2740 0%, #123A5C 55%, #1C6F9E 100%);
  --grad-foam:   linear-gradient(180deg, #F6FBFD 0%, #EDF6FB 100%);

  /* Typo */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Formes */
  --container: 1200px;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 9px;

  --shadow-sm: 0 2px 12px rgba(12,39,64,.06);
  --shadow-md: 0 16px 44px -14px rgba(12,39,64,.20);
  --shadow-lg: 0 34px 80px -24px rgba(12,39,64,.30);
  --shadow-water: 0 22px 50px -18px rgba(28,134,184,.45);

  --nav-h: 78px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* ---------- 2. Reset & base ---------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; color: var(--navy); letter-spacing: -.01em; }

/* ---------- 3. Layout utils ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--foam { background: var(--grad-foam); }
.section--navy { background: var(--grad-deep); color: #DCEAF3; }
.section--navy h2, .section--navy h3 { color: #fff; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 700;
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--azure);
}
.eyebrow::before { content:""; width: 26px; height: 2px; background: var(--aqua); border-radius: 2px; }
.section--navy .eyebrow { color: var(--aqua-200); }
.section-head { max-width: 680px; margin-bottom: clamp(38px, 5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3.15rem); margin: 16px 0 0; }
.section-head p { margin-top: 18px; color: var(--muted); font-size: 1.08rem; }
.section--navy .section-head p { color: #AFC6D6; }

/* ---------- 4. Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: .98rem; letter-spacing: .01em;
  padding: 15px 28px; border-radius: 100px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad-water); color: #fff; box-shadow: var(--shadow-water); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 28px 60px -16px rgba(28,134,184,.6); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1.5px solid rgba(255,255,255,.4); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: #fff; color: var(--navy); transform: translateY(-3px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--azure); transform: translateY(-3px); }
.btn-outline { border: 1.5px solid var(--line); color: var(--navy); background: #fff; }
.btn-outline:hover { border-color: var(--azure); color: var(--azure); transform: translateY(-3px); }
.btn-lg { padding: 18px 34px; font-size: 1.02rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--azure); font-size: .95rem;
  transition: gap .3s var(--ease), color .3s var(--ease);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.link-arrow:hover { gap: 13px; color: var(--navy); }

/* ---------- 5. Barre utilitaire + header ---------- */
.topbar {
  background: var(--navy); color: #C9DCEA; font-size: .84rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 40px; }
.topbar a { display: inline-flex; align-items: center; gap: 7px; transition: color .25s; }
.topbar a:hover { color: #fff; }
.topbar__left { display: flex; gap: 26px; }
.topbar__right { display: flex; gap: 18px; align-items: center; }
.topbar svg { width: 15px; height: 15px; color: var(--aqua); }
.topbar__badge { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; }
.topbar__badge .stars { color: var(--sand); letter-spacing: 1px; }

.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82); backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .4s var(--ease), background .4s var(--ease);
}
.header.scrolled { box-shadow: var(--shadow-sm); background: rgba(255,255,255,.95); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 20px; }

/* Logo wordmark */
.logo { display: flex; align-items: center; gap: 12px; }
.logo__mark { width: 48px; height: 48px; flex: none; object-fit: contain; }
.footer .logo__mark { background: #fff; border-radius: 50%; padding: 5px; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__text b { font-family: var(--font-display); font-weight: 600; font-size: 1.24rem; color: var(--navy); letter-spacing: -.02em; }
.logo__text span { font-family: var(--font-body); font-weight: 700; font-size: .64rem; letter-spacing: .34em; text-transform: uppercase; color: var(--azure); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; font-weight: 600; font-size: .95rem; color: var(--brand-navy);
  padding: 10px 16px; border-radius: 100px; transition: color .25s;
}
.nav a::after {
  content:""; position: absolute; left: 16px; right: 16px; bottom: 6px; height: 2px;
  background: var(--aqua); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover { color: var(--azure); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--azure); }

.header__cta { display: flex; align-items: center; gap: 14px; }
.header__phone { display: flex; align-items: center; gap: 9px; font-weight: 800; color: var(--navy); font-size: 1.02rem; }
.header__phone svg { width: 34px; height: 34px; padding: 8px; background: var(--foam); border-radius: 50%; color: var(--azure); }

.burger { display: none; width: 46px; height: 46px; border-radius: 12px; background: var(--foam); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2.4px; background: var(--navy); border-radius: 2px; transition: .3s var(--ease); }
.burger span:nth-child(1){ top: 16px; } .burger span:nth-child(2){ top: 22px; } .burger span:nth-child(3){ top: 28px; }
body.menu-open .burger span:nth-child(1){ top: 22px; transform: rotate(45deg); }
body.menu-open .burger span:nth-child(2){ opacity: 0; }
body.menu-open .burger span:nth-child(3){ top: 22px; transform: rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed; inset: 0 0 0 auto; width: min(360px, 86vw); z-index: 99;
  background: var(--white); box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform .45s var(--ease-out);
  padding: calc(var(--nav-h) + 30px) 30px 30px; display: flex; flex-direction: column; gap: 6px;
}
body.menu-open .mobile-nav { transform: translateX(0); }
.mobile-nav a { padding: 15px 8px; font-weight: 600; font-size: 1.1rem; color: var(--navy); border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 20px; }
.overlay { position: fixed; inset: 0; background: rgba(12,39,64,.45); opacity: 0; visibility: hidden; transition: .4s; z-index: 98; }
body.menu-open .overlay { opacity: 1; visibility: visible; }

/* ---------- Placeholders visuels (en attente des photos client) ---------- */
.media-ph { position: relative; background: var(--grad-water); display: grid; place-items: center; overflow: hidden; }
.media-ph::before {
  content:""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 25% 15%, rgba(255,255,255,.30), transparent 45%),
    radial-gradient(90% 80% at 85% 90%, rgba(12,39,64,.30), transparent 50%);
}
.media-ph::after {
  content:""; position: absolute; left: -10%; right: -10%; bottom: -10%; height: 55%;
  background:
    radial-gradient(60% 100% at 20% 100%, rgba(255,255,255,.22), transparent 60%),
    radial-gradient(60% 100% at 70% 100%, rgba(255,255,255,.18), transparent 60%);
  filter: blur(2px);
}
.media-ph .ph-ic { position: relative; z-index: 2; width: clamp(48px,7vw,72px); height: clamp(48px,7vw,72px); color: rgba(255,255,255,.7); }
.media-ph .ph-lbl {
  position: absolute; z-index: 2; bottom: 14px; right: 14px; font-family: var(--font-body);
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #fff; background: rgba(12,39,64,.28); padding: 5px 11px; border-radius: 100px; backdrop-filter: blur(3px);
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative; min-height: min(92vh, 820px); display: flex; align-items: center; overflow: hidden;
  background:
    radial-gradient(120% 120% at 12% 8%, rgba(53,192,208,.35), transparent 45%),
    radial-gradient(100% 120% at 90% 100%, rgba(46,155,201,.5), transparent 55%),
    var(--grad-deep);
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero__bg::after {
  content:""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(9,28,48,.93) 0%, rgba(9,28,48,.72) 42%, rgba(9,28,48,.28) 100%),
    linear-gradient(0deg, rgba(9,28,48,.65) 0%, transparent 55%);
}
.hero .container { position: relative; z-index: 2; padding-top: 60px; padding-bottom: 130px; }
.hero__content { max-width: 660px; color: #fff; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  border-radius: 100px; font-weight: 700; font-size: .82rem; letter-spacing: .04em;
  backdrop-filter: blur(6px);
}
.hero__eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 4px rgba(53,192,208,.3); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(53,192,208,0); } }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 600; margin: 26px 0 0; letter-spacing: -.02em; }
.hero h1 em { font-style: italic; color: var(--aqua-200); }
.hero__sub { margin-top: 22px; font-size: 1.18rem; line-height: 1.65; color: #CFE0EC; max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 44px; }
.hero__chip { display: inline-flex; align-items: center; gap: 10px; font-size: .95rem; color: #DCEAF3; font-weight: 600; }
.hero__chip svg { width: 20px; height: 20px; color: var(--aqua); flex: none; }

/* vague décorative bas de hero */
.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 3; line-height: 0; }
.hero__wave svg { width: 100%; height: clamp(50px, 7vw, 100px); display: block; }

/* Staggered load */
[data-hero] > * { opacity: 0; transform: translateY(26px); animation: heroIn .9s var(--ease-out) forwards; }
[data-hero] > *:nth-child(1){ animation-delay:.1s } [data-hero] > *:nth-child(2){ animation-delay:.22s }
[data-hero] > *:nth-child(3){ animation-delay:.34s } [data-hero] > *:nth-child(4){ animation-delay:.46s }
[data-hero] > *:nth-child(5){ animation-delay:.58s }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* ---------- 7. Barre de stats flottante ---------- */
.stats { margin-top: -66px; position: relative; z-index: 5; }
.stats__grid {
  background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-md);
  display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden;
  border: 1px solid var(--line);
}
.stat { padding: 34px 28px; text-align: center; position: relative; }
.stat + .stat::before { content:""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 1px; background: var(--line); }
.stat__num { font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; color: var(--azure); line-height: 1; }
.stat__num sup { font-size: 1.2rem; color: var(--aqua); }
.stat__label { margin-top: 8px; font-size: .92rem; color: var(--muted); font-weight: 600; }

/* ---------- 8. Cartes services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.scard {
  position: relative; background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease); display: flex; flex-direction: column;
}
.scard:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.scard__media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--grad-water); }
.scard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.scard:hover .scard__media img { transform: scale(1.07); }
.scard__num {
  position: absolute; top: 16px; left: 16px; width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(4px); color: var(--navy);
  font-family: var(--font-display); font-weight: 600; font-size: 1.25rem;
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.scard__body { padding: 28px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.scard__body h3 { font-size: 1.4rem; }
.scard__tag { font-weight: 700; color: var(--azure); font-size: .92rem; margin: 8px 0 12px; }
.scard__body p { color: var(--muted); font-size: 1rem; flex: 1; }
.scard__foot { margin-top: 22px; }

/* ---------- 9. Approche (asymétrique) ---------- */
.approach { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.approach__media { position: relative; }
.approach__media .img-cover { border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow-lg); background: var(--grad-water); }
.approach__media .img-cover img { width: 100%; height: 100%; object-fit: cover; }
.approach__badge {
  position: absolute; bottom: -26px; left: -26px; background: #fff; border-radius: var(--radius-lg);
  padding: 22px 26px; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 16px; max-width: 300px;
}
.approach__badge .ic { width: 52px; height: 52px; flex: none; border-radius: 14px; background: var(--grad-water); display: grid; place-items: center; }
.approach__badge .ic svg { width: 26px; height: 26px; color: #fff; }
.approach__badge b { display: block; font-family: var(--font-display); font-size: 1.15rem; color: var(--navy); }
.approach__badge span { font-size: .88rem; color: var(--muted); }
.feature-list { margin-top: 28px; display: grid; gap: 16px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .tick { width: 26px; height: 26px; flex: none; border-radius: 50%; background: rgba(53,192,208,.14); display: grid; place-items: center; margin-top: 2px; }
.feature-list .tick svg { width: 15px; height: 15px; color: var(--azure); }
.feature-list b { color: var(--navy); }
.feature-list p { color: var(--muted); font-size: .98rem; margin-top: 2px; }

/* ---------- 10. Secteur ---------- */
.sector { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px,6vw,72px); align-items: center; }
.sector__map { position: relative; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid rgba(255,255,255,.14); aspect-ratio: 1/.82; }
.sector__map.media-ph { background: var(--grad-water); }
.sector__map img { width: 100%; height: 100%; object-fit: cover; }
.communes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.commune {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 100px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #fff;
  font-weight: 600; font-size: .92rem; transition: .3s var(--ease);
}
.commune svg { width: 14px; height: 14px; color: var(--aqua); }
.commune:hover { background: var(--grad-water); border-color: transparent; transform: translateY(-2px); }

/* ---------- 11. Process / étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; counter-reset: step; }
.step { padding: 30px 26px; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative; }
.step__n { font-family: var(--font-display); font-size: 3rem; font-weight: 600; color: var(--aqua-200); line-height: 1; }
.step h3 { font-size: 1.2rem; margin: 10px 0 8px; }
.step p { color: var(--muted); font-size: .96rem; }

/* ---------- 12. Témoignage ---------- */
.testimonial { max-width: 900px; margin-inline: auto; text-align: center; }
.testimonial__quote { font-family: var(--font-display); font-style: italic; font-size: clamp(1.5rem, 3.4vw, 2.35rem); line-height: 1.35; color: var(--navy); }
.testimonial .stars { color: var(--sand); font-size: 1.5rem; letter-spacing: 4px; margin-bottom: 22px; }
.testimonial__author { margin-top: 26px; display: inline-flex; align-items: center; gap: 14px; }
.testimonial__author .av { width: 52px; height: 52px; border-radius: 50%; background: var(--grad-water); color: #fff; display: grid; place-items: center; font-weight: 800; font-family: var(--font-display); font-size: 1.2rem; }
.testimonial__author b { color: var(--navy); display: block; }
.testimonial__author span { color: var(--muted); font-size: .9rem; }
.google-review { display: inline-block; margin-top: 28px; transition: transform .3s var(--ease); }
.google-review img { display: block; filter: drop-shadow(0 8px 20px rgba(12,39,64,.14)); }
.google-review:hover { transform: translateY(-3px) rotate(-2deg); }

/* ---------- 13. CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--grad-water); border-radius: var(--radius-xl); padding: clamp(48px,7vw,80px); color: #fff; text-align: center; box-shadow: var(--shadow-water); }
.cta-band::before, .cta-band::after { content:""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.12); }
.cta-band::before { width: 320px; height: 320px; top: -140px; right: -80px; }
.cta-band::after { width: 220px; height: 220px; bottom: -120px; left: -60px; }
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; font-size: clamp(2rem,4vw,3rem); }
.cta-band p { margin: 16px auto 0; max-width: 560px; color: rgba(255,255,255,.9); font-size: 1.1rem; }
.cta-band__actions { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-band .btn-ghost { border-color: rgba(255,255,255,.6); }

/* ---------- 14. Footer ---------- */
.footer { background: var(--navy); color: #A9C1D3; position: relative; padding-top: 80px; }
.footer__wave { position: absolute; top: -1px; left: 0; right: 0; line-height: 0; }
.footer__wave svg { width: 100%; height: 60px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.footer h4 { color: #fff; font-family: var(--font-body); font-weight: 700; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 20px; }
.footer a { transition: color .25s; }
.footer a:hover { color: #fff; }
.footer__col ul { display: grid; gap: 12px; }
.footer__brand .logo__text b { color: #fff; }
.footer__brand p { margin-top: 18px; font-size: .96rem; max-width: 320px; }
.footer__contact li { display: flex; gap: 12px; margin-bottom: 14px; font-size: .96rem; }
.footer__contact svg { width: 18px; height: 18px; color: var(--aqua); flex: none; margin-top: 3px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .86rem; color: #7F98AC; }
.footer__bottom a { color: #A9C1D3; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: .3s; }
.footer__social a:hover { background: var(--azure); transform: translateY(-3px); }
.footer__social svg { width: 18px; height: 18px; color: #fff; }

/* ---------- 15. Reveal au scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal].d1 { transition-delay: .1s } [data-reveal].d2 { transition-delay: .2s } [data-reveal].d3 { transition-delay: .3s }

/* ---------- 16. Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2,1fr); }
  .stats__grid { grid-template-columns: repeat(2,1fr); }
  .stat:nth-child(3)::before, .stat:nth-child(2)::before { }
  .approach, .sector { grid-template-columns: 1fr; }
  .approach__media { max-width: 480px; margin-inline: auto; }
  /* Le badge passe en flux normal sous l'image quand la mise en page s'empile */
  .approach__badge { position: static; left: auto; bottom: auto; margin: 20px auto 0; max-width: 360px; }
  .sector__map { max-width: 520px; }
}
@media (max-width: 860px) {
  .nav, .header__phone { display: none; }
  .burger { display: block; }
  .topbar__left { gap: 16px; }
  .topbar { display: none; }
}
@media (max-width: 600px) {
  /* Header compact : le bouton Devis vit dans le menu mobile */
  .header__cta .btn-primary { display: none; }
  .logo__mark { width: 40px; height: 40px; }
  .logo__text b { font-size: 1.08rem; white-space: nowrap; }
  .logo__text span { font-size: .58rem; letter-spacing: .28em; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .services-grid, .steps, .stats__grid { grid-template-columns: 1fr; }
  .stat + .stat::before { display: none; }
  .stat { border-top: 1px solid var(--line); }
  .stats__grid .stat:first-child { border-top: none; }
  .hero .container { padding-bottom: 100px; }
  .hero__actions .btn { flex: 1; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer__brand { grid-column: 1 / -1; }
  .cta-band { padding: 44px 24px; }
}
@media (max-width: 420px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* Accessibilité : réduction des animations */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal], [data-hero] > * { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   17. PAGES INTÉRIEURES — composants ajoutés le 01/09/2026
   (Nos prestations, Notre secteur, FAQ, Contact, pages légales, 404)
   Aucune règle ci-dessous ne modifie les composants de la page
   d'accueil : uniquement de nouvelles classes.
   ============================================================ */

[hidden] { display: none !important; }

/* ---------- 17.1 Bandeau de page ---------- */
.pagehero {
  position: relative; overflow: hidden;
  padding: clamp(46px, 6vw, 78px) 0 clamp(88px, 10vw, 132px);
  color: #fff;
  background:
    radial-gradient(110% 130% at 8% 6%, rgba(53,192,208,.34), transparent 48%),
    var(--grad-deep);
}
.pagehero--slim { padding-bottom: clamp(78px, 8vw, 112px); }
.pagehero__bg { position: absolute; inset: 0; }
.pagehero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.pagehero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(9,28,48,.94) 0%, rgba(9,28,48,.78) 48%, rgba(9,28,48,.5) 100%),
    linear-gradient(0deg, rgba(9,28,48,.55) 0%, transparent 60%);
}
.pagehero .container { position: relative; z-index: 2; }
.pagehero h1 { color: #fff; font-size: clamp(2.05rem, 4.6vw, 3.35rem); margin-top: 16px; max-width: 18ch; }
.pagehero--slim h1 { max-width: none; margin-top: 14px; }
.pagehero p { margin-top: 18px; color: #CFE0EC; font-size: 1.1rem; max-width: 620px; }
.pagehero .eyebrow { color: var(--aqua-200); }

.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .86rem; font-weight: 600; color: #A6C0D2; }
.crumb a { transition: color .25s; }
.crumb a:hover { color: #fff; }
.crumb .sep { opacity: .45; }
.crumb b { color: var(--aqua-200); font-weight: 700; }

/* ---------- 17.2 Sommaire d'ancres ---------- */
.anchors { display: flex; flex-wrap: wrap; gap: 14px; margin-top: -40px; position: relative; z-index: 6; }
.anchor-chip {
  flex: 1 1 260px; display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 18px 22px; box-shadow: var(--shadow-sm); font-weight: 700; color: var(--navy);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  min-height: 44px;
}
.anchor-chip svg { width: 26px; height: 26px; flex: none; color: var(--azure); }
.anchor-chip__t { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.anchor-chip b { font-weight: 700; }
.anchor-chip span { font-weight: 600; font-size: .84rem; color: var(--muted); }
.anchor-chip:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--aqua-200); }

/* ---------- 17.3 Prestations ---------- */
.presta-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 26px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 42px); }
.presta-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-top: 14px; }
.presta-head p { color: var(--muted); margin-top: 12px; max-width: 620px; }

.presta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.presta-grid--4 { grid-template-columns: repeat(4, 1fr); gap: 22px; }

.pcard {
  position: relative; display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.pcard:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); }
.pcard--highlight { border-color: var(--aqua-200); box-shadow: var(--shadow-water); }
.pcard__media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--foam); }
/* Photos de prestation reprises de Dolibarr (assets/img/prestations/<ref>.webp) */
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.06); }
.pcard__body { padding: 24px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.pcard__body h3 { font-size: 1.18rem; line-height: 1.25; }
.pcard__body p { color: var(--muted); font-size: .96rem; margin-top: 10px; }
.pcard__foot { margin-top: auto; padding-top: 20px; }
.pcard__foot .link-arrow { min-height: 44px; }

/* Ruban d'état — en absolu pour ne jamais décaler le contenu des cartes */
.ribbon {
  position: absolute; z-index: 3; top: 20px; right: -48px; width: 178px;
  transform: rotate(38deg); text-align: center;
  background: #D93025; color: #fff;
  font-family: var(--font-body); font-weight: 800; font-size: .72rem;
  letter-spacing: .16em; text-transform: uppercase; padding: 7px 0;
  box-shadow: 0 6px 18px rgba(12,39,64,.28);
}
.ribbon--deal { background: var(--sand-deep); }

/* Variantes de teinte des visuels d'attente */
.media-ph.tone-b { background: linear-gradient(135deg, #12395A 0%, #1C86B8 100%); }
.media-ph.tone-c { background: linear-gradient(135deg, #35C0D0 0%, #1C86B8 100%); }

/* Listes à coches (détails, FAQ, secteur) */
.ticks { display: grid; gap: 12px; margin-top: 16px; }
.ticks li { position: relative; padding-left: 30px; color: var(--muted); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 18px; height: 18px;
  border-radius: 50%; background: rgba(53,192,208,.16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C86B8' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 11px 11px; background-position: center; background-repeat: no-repeat;
}

/* ---------- 17.4 Modale détail prestation ---------- */
.modal {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px;
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.modal.open { opacity: 1; visibility: visible; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(12,39,64,.55); backdrop-filter: blur(3px); }
.modal__dialog {
  position: relative; z-index: 2; width: min(720px, 100%); max-height: 88vh; overflow-y: auto;
  background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  padding: clamp(28px, 4vw, 46px); transform: translateY(20px) scale(.98);
  transition: transform .38s var(--ease-out);
}
.modal.open .modal__dialog { transform: none; }
.modal__close {
  position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--foam); display: grid; place-items: center; transition: background .25s, transform .25s;
}
.modal__close svg { width: 20px; height: 20px; color: var(--navy); }
.modal__close:hover { background: var(--aqua-200); transform: rotate(90deg); }
.modal__dialog h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); margin-top: 14px; padding-right: 44px; }
.modal__body { margin-top: 20px; color: var(--muted); }
.modal__body p + p, .modal__body ul + p { margin-top: 14px; }
.modal__body h3 { font-size: 1.1rem; color: var(--navy); margin-top: 24px; }
.modal__actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
body.modal-open { overflow: hidden; }

.price-box {
  margin-top: 26px; padding: 20px 24px; border-radius: var(--radius-md);
  background: var(--grad-foam); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.price-box__label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--azure); }
.price-box__val { font-family: var(--font-display); font-size: 1.6rem; color: var(--navy); line-height: 1.2; }
.price-box p { font-size: .88rem; color: var(--muted); max-width: 260px; }
/* Conditions tarifaires reprises de Dolibarr : sur toute la largeur,
   sous le prix, pour rester lisibles même quand le texte est long. */
.price-box__note { flex-basis: 100%; max-width: none !important; margin-top: 4px;
  padding-top: 14px; border-top: 1px solid var(--line); white-space: pre-line; }

/* ---------- 17.5 Notre secteur : carte interactive ---------- */
.sector-layout { display: grid; grid-template-columns: 1.62fr .88fr; gap: clamp(28px, 4vw, 44px); align-items: start; }
/* Les colonnes de grille ne doivent jamais s'élargir au-delà de l'écran
   à cause d'un contenu large (carte SVG à défilement horizontal). */
.sector-layout > *, .faq-layout > *, .contact-layout > * { min-width: 0; }

.mapx { position: relative; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: #F3FAFD; }
.mapx__svg { display: block; width: 100%; height: auto; }
.mapx__scroll { overflow: hidden; }
.mapx__tip {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 14px;
  background: var(--foam); border: 1px solid var(--line); border-radius: 100px;
  padding: 9px 18px; font-size: .84rem; font-weight: 700; color: var(--navy);
}
.mapx__tip svg { width: 16px; height: 16px; flex: none; color: var(--azure); }
.mapx__legend { margin-top: 14px; font-size: .84rem; color: var(--muted); }
.mapx__swipe { display: none; }

.map-water-lbl { font-family: var(--font-body); font-size: 16.5px; font-weight: 700; fill: #4E9DB4; text-anchor: middle; }
.map-road-lbl  { font-family: var(--font-body); font-size: 15px; font-weight: 800; fill: #A9C6D8; }
.map-zone-lbl  { font-family: var(--font-body); font-size: 16.5px; font-weight: 800; fill: #2E9BC9; letter-spacing: .04em; }
.map-ctx circle { r: 3.5; fill: #B3CBDA; }
.map-ctx text { font-family: var(--font-body); font-size: 14.5px; font-weight: 600; fill: #7E9AAC; text-anchor: middle; }

.pin { cursor: pointer; outline: none; }
.pin__shadow { fill: rgba(12,39,64,.18); }
.pin__halo { fill: rgba(28,134,184,.12); transition: fill .3s var(--ease); }
.pin__body { fill: url(#pinGrad); transition: transform .3s var(--ease); transform-box: fill-box; transform-origin: bottom center; }
.pin__dot  { fill: #fff; }
.pin__label { font-family: var(--font-body); font-size: 15.5px; font-weight: 800; fill: var(--navy); text-anchor: middle; }
.pin:hover .pin__halo, .pin:focus-visible .pin__halo, .pin.is-active .pin__halo { fill: rgba(53,192,208,.32); }
.pin:hover .pin__body, .pin:focus-visible .pin__body { transform: scale(1.12); }
.pin.is-active .pin__body { fill: var(--navy); transform: scale(1.14); }
.pin:focus-visible .pin__label { fill: var(--azure); }

.commune-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 32px); box-shadow: var(--shadow-sm);
  position: sticky; top: calc(var(--nav-h) + 20px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 0;
}
.commune-card__title { font-size: clamp(1.5rem, 2.6vw, 1.95rem); margin-top: 14px; }
.commune-card__text { color: var(--muted); margin-top: 12px; }
.commune-card .ticks { margin-bottom: 26px; }
.commune-card .btn { width: 100%; }
.commune-card .btn + .btn { margin-top: 10px; }

.communes-list { margin-top: clamp(34px, 5vw, 52px); }
.communes-list h3 { font-size: 1.15rem; }
.communes-list__grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.commune-btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 20px; border-radius: 100px;
  background: var(--foam); border: 1.5px solid transparent; color: var(--navy);
  font-family: var(--font-body); font-weight: 700; font-size: .92rem;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.commune-btn:hover { border-color: var(--aqua); transform: translateY(-2px); }
.commune-btn.is-active { background: var(--grad-water); color: #fff; box-shadow: var(--shadow-water); }

.sector-intro { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
.sector-intro h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-top: 14px; }
.sector-intro p { color: var(--muted); }
.sector-intro p + p { margin-top: 14px; }

.link-inline { color: var(--azure); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; transition: color .25s; }
.link-inline:hover { color: var(--navy); }

/* ---------- 17.6 FAQ — accordéon ---------- */
.faq-layout { display: grid; grid-template-columns: 1.6fr .8fr; gap: clamp(30px, 4vw, 48px); align-items: start; }
.acc { display: grid; gap: 14px; }
.acc__item { border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; overflow: hidden; box-shadow: var(--shadow-sm); transition: border-color .3s var(--ease); }
.acc__item.open { border-color: var(--aqua-200); }
.acc__h { margin: 0; font-size: inherit; }
.acc__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  text-align: left; padding: 20px 22px; min-height: 44px;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  line-height: 1.35; color: var(--navy); background: var(--foam-2); transition: background .25s, color .25s;
}
.acc__q:hover { background: var(--foam); color: var(--azure); }
.acc__item.open .acc__q { background: var(--foam); }
.acc__chev { width: 36px; height: 36px; flex: none; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; transition: transform .38s var(--ease), background .3s var(--ease), border-color .3s var(--ease); }
.acc__chev svg { width: 16px; height: 16px; color: var(--azure); transition: color .3s var(--ease); }
.acc__item.open .acc__chev { transform: rotate(180deg); background: var(--grad-water); border-color: transparent; }
.acc__item.open .acc__chev svg { color: #fff; }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .42s var(--ease-out); }
.acc__item.open .acc__panel { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__body { padding: 20px 22px 26px; color: var(--muted); border-top: 1px solid var(--line); }
.acc__body p + p, .acc__body p + ul { margin-top: 14px; }
.acc__body ul + p { margin-top: 18px; }
.acc__highlight { font-weight: 700; color: var(--navy); background: var(--foam); border-left: 3px solid var(--aqua); padding: 12px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

.faq-aside { position: sticky; top: calc(var(--nav-h) + 20px); }

/* ---------- 17.7 Encarts latéraux ---------- */
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 32px); box-shadow: var(--shadow-sm); }
.aside-card + .aside-card { margin-top: 20px; }
.aside-card--soft { background: var(--grad-foam); }
.aside-card h2 { font-size: 1.35rem; }
.aside-card h3 { font-size: 1.12rem; }
.aside-card > p { color: var(--muted); margin-top: 12px; font-size: .98rem; }
.aside-card .btn { width: 100%; margin-top: 12px; }
.aside-card .link-arrow { margin-top: 14px; }
.aside-card__ic { width: 54px; height: 54px; border-radius: 16px; background: var(--grad-water); display: grid; place-items: center; margin-bottom: 18px; }
.aside-card__ic svg { width: 26px; height: 26px; color: #fff; }

.info-list { display: grid; gap: 20px; margin-top: 22px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .ic { width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--foam); display: grid; place-items: center; }
.info-list .ic svg { width: 19px; height: 19px; color: var(--azure); }
.info-list b { display: block; color: var(--navy); font-size: .88rem; letter-spacing: .02em; }
.info-list a, .info-list span { color: var(--muted); font-size: .98rem; }
.info-list a { transition: color .25s; }
.info-list a:hover { color: var(--azure); }

/* ---------- 17.8 Contact — formulaire ---------- */
.contact-layout { display: grid; grid-template-columns: 1.5fr .85fr; gap: clamp(28px, 4vw, 44px); align-items: start; }
.form-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow-md); }
.form-card__badge {
  display: inline-block; background: var(--sand); color: #fff; font-weight: 800;
  font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  padding: 8px 18px; border-radius: 100px; margin-bottom: 18px;
}
.form-card h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
.form-card__intro { color: var(--muted); margin-top: 10px; font-size: .96rem; }
.req { color: #D93025; font-weight: 800; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-top: 26px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .9rem; color: var(--navy); }

/* Harmonisation stricte : input, select et textarea partagent police,
   hauteur, padding, bordure et rayon. */
.field input,
.field select,
.field textarea {
  font-family: var(--font-body); font-size: 1rem; font-weight: 500; color: var(--ink);
  width: 100%; height: 52px; padding: 0 16px;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field textarea { height: auto; min-height: 168px; padding: 14px 16px; line-height: 1.6; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C86B8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; background-size: 17px 17px;
}
.field input::placeholder, .field textarea::placeholder { color: #9DB2C0; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--azure); box-shadow: 0 0 0 4px rgba(28,134,184,.14);
}
.field__err { display: none; font-size: .84rem; font-weight: 600; color: #D93025; }
.field.err input, .field.err select, .field.err textarea { border-color: #D93025; background: #FFFBFB; }
.field.err .field__err, .check-row.err .field__err { display: block; }

.check-row { display: flex; flex-direction: column; gap: 8px; }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check input { width: 20px; height: 20px; flex: none; margin-top: 3px; accent-color: var(--azure); cursor: pointer; }
.check label { font-weight: 500; font-size: .92rem; line-height: 1.55; color: var(--muted); cursor: pointer; }
.check-row.err .check input { outline: 2px solid #D93025; outline-offset: 2px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 4px; }
.form-actions .btn[disabled] { opacity: .6; pointer-events: none; }
.form-note { font-size: .84rem; color: var(--muted); max-width: 320px; }

.alert { display: none; align-items: flex-start; gap: 12px; padding: 16px 18px; border-radius: var(--radius-md); font-size: .95rem; margin-top: 22px; }
.alert.show { display: flex; }
.alert svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.alert a { text-decoration: underline; font-weight: 700; }
.alert--ok { background: #E8F7EF; color: #146C43; border: 1px solid #B8E4CC; }
.alert--ko { background: #FDECEA; color: #B3261E; border: 1px solid #F5C3BF; }

/* ---------- 17.9 Pages légales ---------- */
.legal { max-width: 880px; }
.legal .lead { font-size: 1.08rem; color: var(--ink); }
.legal h2 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); margin-top: 40px; }
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--muted); margin-top: 14px; }
.legal ul { margin-top: 14px; display: grid; gap: 10px; }
.legal ul li { position: relative; padding-left: 22px; color: var(--muted); }
.legal ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: 9px; height: 2px; background: var(--aqua); border-radius: 2px; }
.legal-meta { background: var(--grad-foam); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 30px); margin-bottom: 12px; }
.legal-meta dl { display: grid; grid-template-columns: minmax(150px, auto) 1fr; gap: 12px 26px; }
.legal-meta dt { font-weight: 700; color: var(--navy); font-size: .94rem; }
.legal-meta dd { color: var(--muted); font-size: .96rem; }
.legal-updated { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .88rem; }
.todo { background: #FFF3D6; border: 1px dashed var(--sand-deep); color: #8A5A05; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-sm); }

/* ---------- 17.10 Page 404 ---------- */
.nf { padding: clamp(70px, 11vw, 140px) 0; background: var(--grad-foam); }
.nf__inner { max-width: 660px; margin-inline: auto; text-align: center; }
.nf__code { font-family: var(--font-display); font-weight: 600; font-size: clamp(5.5rem, 18vw, 10rem); line-height: 1; color: var(--aqua-200); letter-spacing: -.04em; }
.nf h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin-top: 10px; }
.nf p { color: var(--muted); margin-top: 16px; font-size: 1.06rem; }
.nf__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.nf__links { display: flex; gap: 10px 26px; justify-content: center; flex-wrap: wrap; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.nf__links a { font-weight: 700; font-size: .94rem; color: var(--azure); transition: color .25s; }
.nf__links a:hover { color: var(--navy); }

/* ---------- 17.11 Menu : état actif sur mobile ---------- */
.mobile-nav a.active { color: var(--azure); }

/* ---------- 17.12 Responsive des pages intérieures ---------- */
@media (max-width: 1024px) {
  .presta-grid, .presta-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .sector-layout, .faq-layout, .contact-layout, .sector-intro { grid-template-columns: 1fr; }
  .commune-card, .faq-aside { position: static; }
  .mapx__svg { min-height: 0; }
  .anchors { margin-top: -30px; }
}
@media (max-width: 860px) {
  .pagehero { padding-bottom: clamp(70px, 9vw, 100px); }
  /* La carte devient plus large que l'écran : on la fait défiler
     horizontalement dans son conteneur plutôt que de tasser les libellés. */
  .mapx__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .mapx__svg { min-width: 760px; }
  .mapx__swipe { display: inline; }
  .map-ctx text { font-size: 16px; }
  .pin__label { font-size: 17.5px; }
  .map-water-lbl, .map-zone-lbl { font-size: 18px; }
}
@media (max-width: 640px) {
  .presta-grid, .presta-grid--4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .legal-meta dl { grid-template-columns: 1fr; gap: 4px 0; }
  .legal-meta dd { margin-bottom: 12px; }
  .legal-meta dd:last-child { margin-bottom: 0; }
  .presta-head { align-items: flex-start; }
  .presta-head .btn { width: 100%; }
  .modal { padding: 14px; }
  .modal__dialog { max-height: 92vh; }
  .price-box { flex-direction: column; align-items: flex-start; gap: 10px; }
  .price-box p { max-width: none; }
  .form-actions .btn { width: 100%; }
  .form-note { max-width: none; }
  .anchors { margin-top: -24px; }
  .anchor-chip { flex: 1 1 100%; }
  .map-ctx text { font-size: 19px; }
  .pin__label { font-size: 21px; }
  .map-water-lbl, .map-zone-lbl { font-size: 21px; }
  .map-road-lbl { font-size: 19px; }
}

/* ---------- 17.13 Correctif d'en-tête entre 861 px et 1023 px ----------
   Défaut constaté : au-delà de 860 px le menu horizontal ET le téléphone
   réapparaissent alors que la barre est trop étroite → logo sur 3 lignes et
   numéro de téléphone coupé. On retire d'abord le téléphone (déjà présent
   dans la barre utilitaire et dans le menu mobile), puis le menu horizontal.
   Concerne l'en-tête commun : vérifié sur les 10 pages du site. */
@media (max-width: 1220px) {
  .header__phone { display: none; }
  /* On empêche le logo et les entrées de menu de se couper sur deux lignes,
     et on resserre les paddings pour que les 5 entrées tiennent dès 1024 px. */
  .header .container { gap: 14px; }
  .logo__text b, .nav a { white-space: nowrap; }
  .nav a { padding-inline: 11px; font-size: .92rem; }
  .nav a::after { left: 11px; right: 11px; }
}
@media (max-width: 1023px) {
  .nav { display: none; }
  .burger { display: block; }
}

/* ---------- 18. Avis Google (page d'accueil + note dans la barre du haut) ---------- */
.gavis__resume {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px 26px; box-shadow: var(--shadow-sm); max-width: 760px; margin: 0 auto 30px;
}
.gavis__logo { width: 54px; height: 54px; flex: none; display: grid; place-items: center; background: var(--foam); border-radius: 14px; }
.gavis__logo svg { width: 32px; height: 32px; }
.gavis__texte { flex: 1; min-width: 200px; }
.gavis__texte > b { display: block; font-family: var(--font-body); font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--azure); }
.gavis__ligne { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.gavis__note { font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--navy); line-height: 1; }
.gavis__etoiles { color: var(--sand); font-size: 1.25rem; letter-spacing: 2px; }
.gavis__total { color: var(--muted); font-size: .95rem; font-weight: 600; }
.gavis__resume .btn { white-space: nowrap; }

.gavis__carrousel { position: relative; max-width: 760px; margin-inline: auto; padding: 0 60px; }
.gavis__fenetre { overflow: hidden; }
.gavis__piste { display: flex; transition: transform .55s var(--ease-out); }
.gavis__diapo { flex: 0 0 100%; min-width: 100%; padding: 4px; display: flex; }
.gavis__carte {
  position: relative; flex: 1; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 30px 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.gavis__entete { display: flex; align-items: center; gap: 14px; }
.gavis__avatar {
  width: 48px; height: 48px; flex: none; border-radius: 50%; overflow: hidden;
  background: var(--grad-water); color: #fff; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
}
.gavis__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gavis__auteur { font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 6px; }
.gavis__auteur svg { width: 15px; height: 15px; flex: none; }
.gavis__quand { font-size: .86rem; color: var(--muted); }
.gavis__carte .gavis__etoiles { margin-top: 16px; font-size: 1.1rem; }
.gavis__contenu {
  margin-top: 12px; color: var(--ink); font-size: 1.02rem; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
.gavis__carte.est-deplie .gavis__contenu { display: block; -webkit-line-clamp: unset; overflow: visible; }
.gavis__plus { align-self: flex-start; margin-top: 12px; font-weight: 700; font-size: .9rem; color: var(--azure); min-height: 44px; }
.gavis__plus:hover { color: var(--navy); }
.gavis__badge { position: absolute; top: 18px; right: 20px; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.gavis__fleche {
  position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line); display: grid; place-items: center; box-shadow: var(--shadow-sm);
  transition: background .25s, border-color .25s, transform .25s;
}
.gavis__fleche svg { width: 20px; height: 20px; color: var(--navy); }
.gavis__fleche:hover { border-color: var(--aqua); background: var(--foam); }
.gavis__fleche--prec { left: 0; } .gavis__fleche--suiv { right: 0; }
.gavis__points { display: flex; justify-content: center; gap: 9px; margin-top: 22px; }
.gavis__point { width: 9px; height: 9px; border-radius: 50%; background: var(--aqua-200); transition: transform .25s, background .25s; padding: 0; }
.gavis__point.est-actif { background: var(--azure); transform: scale(1.35); }

/* Barre du haut : la note réelle remplace le libellé générique quand la fiche est configurée */
.topbar__badge a { display: inline-flex; align-items: center; gap: 6px; color: inherit; }
.topbar__badge .note { font-weight: 800; }

@media (max-width: 640px) {
  .gavis__carrousel { padding: 0; }
  .gavis__fleche { display: none; }
  .gavis__resume { padding: 18px 20px; }
  .gavis__resume .btn { width: 100%; }
}

/* ---------- 19. Pages par commune ---------- */
.footer__communes { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0 8px; display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.footer__communes b { color: #fff; font-family: var(--font-body); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; margin-right: 6px; }
.footer__communes a { font-size: .9rem; padding: 7px 13px; border-radius: 100px; background: rgba(255,255,255,.07); color: #C9DCEA; min-height: 34px; display: inline-flex; align-items: center; transition: background .25s, color .25s; }
.footer__communes a:hover { background: var(--azure); color: #fff; }
.commune-card__lien { margin-top: 18px; }

/* ---------- 20. Accueil : aperçu de la carte du secteur (lien vers la page) ---------- */
.sector__map--carte { display: block; aspect-ratio: 1000/700; background: #F3FAFD; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.sector__map--carte:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.sector__map--carte .sector__svg { display: block; width: 100%; height: 100%; pointer-events: none; }
.sector__map--carte .pin { cursor: inherit; }
.sector__map-lbl {
  position: absolute; z-index: 2; bottom: 14px; right: 14px; font-family: var(--font-body);
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: rgba(12,39,64,.72); padding: 7px 12px; border-radius: 100px;
}
