/* ==========================================================================
   ADCE - La Maison du Chauffage
   Feuille de styles unique - approche MOBILE FIRST
   Base : mobile (~375-414px) puis progressive enhancement
   Breakpoints : 600px (tablette) / 900px (desktop) / 1200px (grand ecran)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Variables de design
   -------------------------------------------------------------------------- */
:root {
  /* Palette */
  --navy: #102B4A;
  --navy-700: #17395f;
  --navy-900: #0b1e35;
  --orange: #F05A24;
  --orange-light: #FF8A3D;
  --blue: #2E75A8;
  --blue-light: #e4eef6;
  --ice: #EDF4F8;
  --text: #172230;
  --grey: #667587;
  --grey-line: #dce5ec;
  --white: #ffffff;

  /* Degrades */
  --grad-orange: linear-gradient(135deg, var(--orange) 0%, var(--orange-light) 100%);
  --grad-navy: linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%);

  /* Typo */
  --font-title: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Rythme */
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(16, 43, 74, .07);
  --shadow: 0 10px 30px rgba(16, 43, 74, .10);
  --shadow-lg: 0 18px 50px rgba(16, 43, 74, .16);
  --wrap: 1180px;
  --gutter: 20px;
  --section-y: 48px;
  --header-h: 86px;
  --bottombar-h: 64px;
}

/* --------------------------------------------------------------------------
   2. Reset / bases
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  /* Laisse la place a la barre d'action fixe mobile */
  padding-bottom: var(--bottombar-h);
}

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 800;
  line-height: 1.18;
  color: var(--navy);
  margin: 0 0 .6em;
  letter-spacing: -.015em;
}

h1 { font-size: 1.95rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.12rem; }
h4 { font-size: 1rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--orange); }

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

ul { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .4em; }

strong { font-weight: 700; color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 8px; top: -60px;
  z-index: 200;
  background: var(--orange); color: #fff;
  padding: 12px 18px; border-radius: 0 0 10px 10px;
  font-weight: 700;
  transition: top .2s;
}
.skip-link:focus { top: 0; color: #fff; }

/* --------------------------------------------------------------------------
   3. Utilitaires de mise en page
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--ice { background: var(--ice); }
.section--navy { background: var(--grad-navy); color: #cfdcea; }
.section--navy h2, .section--navy h3 { color: #fff; }

.section-head { margin-bottom: 28px; }
.section-head--center { text-align: center; }
.section-head p { color: var(--grey); max-width: 62ch; }
.section--navy .section-head p { color: #a8bdd3; }
.section-head--center p { margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-title);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}
.section--navy .eyebrow { color: var(--orange-light); }

.grid { display: grid; gap: 18px; }

/* --------------------------------------------------------------------------
   4. Icones SVG inline
   -------------------------------------------------------------------------- */
.icon {
  width: 1.25em; height: 1.25em;
  flex: none;
  display: inline-block;
  vertical-align: -.22em;
}
.icon > svg { width: 100%; height: 100%; display: block; }
svg.icon { display: inline-block; }

/* Pastille ronde coloree qui porte l'icone (cartes de service) */
.icon-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  flex: none;
  margin-bottom: 16px;
  color: #fff;
  background: var(--grad-orange);
  box-shadow: 0 8px 18px rgba(240, 90, 36, .28);
}
.icon-circle svg { width: 27px; height: 27px; }
.icon-circle--blue {
  background: linear-gradient(135deg, var(--blue) 0%, #4f9ed3 100%);
  box-shadow: 0 8px 18px rgba(46, 117, 168, .28);
}
.icon-circle--navy {
  background: var(--grad-navy);
  box-shadow: 0 8px 18px rgba(16, 43, 74, .26);
}
.icon-circle--sm { width: 44px; height: 44px; margin-bottom: 12px; }
.icon-circle--sm svg { width: 21px; height: 21px; }

/* --------------------------------------------------------------------------
   5. Boutons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;               /* cible tactile >= 44px */
  padding: 13px 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-title);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, color .16s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 1.1em; height: 1.1em; }

.btn--primary {
  background: var(--grad-orange);
  color: #fff;
  box-shadow: 0 8px 20px rgba(240, 90, 36, .32);
}
.btn--primary:hover { color: #fff; box-shadow: 0 12px 26px rgba(240, 90, 36, .42); }

.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-700); color: #fff; }

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--grey-line);
}
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); background: var(--ice); }

.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { color: var(--orange); }

.btn--outline-light {
  background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45);
}
.btn--outline-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.btn--block { display: flex; width: 100%; }

.btn-row { display: flex; flex-direction: column; gap: 12px; }

/* Lien "en savoir plus" avec fleche */
.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 44px;
  font-family: var(--font-title); font-weight: 700; font-size: .92rem;
  color: var(--orange);
}
.link-arrow .icon { transition: transform .18s ease; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   6. En-tete
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--grey-line);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px;
  color: var(--navy);
  font-family: var(--font-title);
  line-height: 1.1;
}
.logo:hover { color: var(--navy); }
.logo img, .logo svg { height: 70px; width: auto; flex: none; object-fit: contain; }
.logo-text b {
  display: block; font-size: 1.06rem; font-weight: 800; letter-spacing: -.02em;
}
.logo-text span {
  display: block; font-size: .63rem; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase; color: var(--grey);
}

/* Bouton hamburger : masque des 900px */
.nav-toggle {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--grey-line);
  border-radius: 12px;
  background: #fff; color: var(--navy);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }

/* Panneau de navigation mobile */
.main-nav {
  position: fixed;
  top: var(--header-h); left: 0; right: 0;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  background: #fff;
  border-bottom: 1px solid var(--grey-line);
  box-shadow: var(--shadow);
  padding: 8px var(--gutter) 22px;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.main-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav li { margin: 0; border-bottom: 1px solid var(--grey-line); }
/* Cible les liens de la LISTE uniquement. Un simple .main-nav a
   engloberait aussi le bouton d'appel place sous le menu, qui heriterait
   alors de cette couleur navy sur son fond navy et deviendrait invisible. */
.main-nav li a {
  display: flex; align-items: center;
  min-height: 52px; padding: 8px 4px;
  font-family: var(--font-title); font-weight: 700; font-size: 1rem;
  color: var(--navy);
}
.main-nav li a[aria-current="page"] { color: var(--orange); }

.header-cta { display: none; }
.nav-cta { margin-top: 18px; }

/* --------------------------------------------------------------------------
   7. Barre d'action fixe (mobile uniquement)
   -------------------------------------------------------------------------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 110;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--grey-line);
  box-shadow: 0 -4px 18px rgba(16, 43, 74, .09);
}
.mobile-bar .btn { min-height: 48px; padding: 12px 10px; font-size: .9rem; }

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--grad-navy);
  color: #d7e3f0;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(70% 55% at 82% 8%, rgba(240, 90, 36, .26), transparent 62%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }

.hero-body { padding-block: 36px 32px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  font-family: var(--font-title); font-weight: 700;
  font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
}
.hero-badge .icon { color: var(--orange-light); width: 1.15em; height: 1.15em; }

.hero h1 { color: #fff; font-size: 2rem; margin-bottom: .5em; }
.hero h1 em { font-style: normal; color: var(--orange-light); }

.hero-lead { font-size: 1.02rem; color: #b7c9dc; margin-bottom: 24px; }

.hero-media { position: relative; }
.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Petite carte flottante posee sur la photo */
.hero-chip {
  display: flex; align-items: center; gap: 11px;
  background: #fff;
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow);
  margin-top: -26px;
  margin-inline: 14px;
  position: relative; z-index: 2;
}
.hero-chip .icon-circle { width: 40px; height: 40px; margin: 0; }
.hero-chip .icon-circle svg { width: 19px; height: 19px; }
.hero-chip b { display: block; font-family: var(--font-title); font-size: .9rem; color: var(--navy); }
.hero-chip span:not(.icon-circle) { font-size: .78rem; color: var(--grey); }

/* Hero compact pour les pages interieures */
.hero--page .hero-body { padding-block: 34px; }
.hero--page h1 { font-size: 1.85rem; }

/* Fil d'Ariane */
.breadcrumb { font-size: .8rem; color: #8fa6bf; margin-bottom: 14px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: #6d8399; }
.breadcrumb a { color: #b7c9dc; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current="page"] { color: #fff; }

/* --------------------------------------------------------------------------
   9. Bandeau de confiance
   -------------------------------------------------------------------------- */
.trust {
  background: var(--navy);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}
.trust-item {
  display: flex; align-items: center; gap: 13px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.trust-grid > .trust-item:last-child { border-bottom: 0; }
.trust-item .icon {
  width: 26px; height: 26px; flex: none; color: var(--orange-light);
}
.trust-item b {
  display: block; font-family: var(--font-title); font-size: .95rem;
  font-weight: 800; color: #fff; line-height: 1.25;
}
.trust-item span { display: block; font-size: .8rem; color: #9db3ca; }

/* --------------------------------------------------------------------------
   10. Cartes
   -------------------------------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--grey-line);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card h3 { margin-bottom: .5em; }
.card p { color: var(--grey); font-size: .94rem; }

a.card, .card--link { display: block; color: inherit; }
a.card:hover, .card--link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #c9d8e5;
  color: inherit;
}

.card__foot { margin-top: 16px; }

.card--flat { box-shadow: none; }
.card--ice { background: var(--ice); border-color: transparent; }

/* Liste a puces "check" */
.check-list { list-style: none; padding: 0; margin: 0 0 1.1em; }
.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: .65em;
  font-size: .95rem;
  color: var(--text);
}
.check-list li .icon {
  position: absolute; left: 0; top: .18em;
  width: 19px; height: 19px;
  color: var(--orange);
}
.section--navy .check-list li { color: #cfdcea; }
.section--navy .check-list li .icon { color: var(--orange-light); }

/* --------------------------------------------------------------------------
   11. Etapes numerotees avec connecteurs
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  gap: 0;
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}
.step {
  position: relative;
  padding: 0 0 30px 62px;
  margin: 0;
}
/* Connecteur vertical (mobile) */
.step::before {
  content: "";
  position: absolute;
  left: 22px; top: 50px; bottom: 4px;
  width: 2px;
  background: linear-gradient(180deg, var(--orange) 0%, rgba(240, 90, 36, .18) 100%);
}
.step:last-child { padding-bottom: 0; }
.step:last-child::before { display: none; }

.step__num {
  counter-increment: step;
  position: absolute;
  left: 0; top: 0;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad-orange);
  color: #fff;
  font-family: var(--font-title); font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 8px 18px rgba(240, 90, 36, .3);
}
.step__num::after { content: counter(step); }
.step h3 { margin-bottom: .35em; padding-top: 9px; }
.step p { color: var(--grey); font-size: .94rem; }

/* --------------------------------------------------------------------------
   12. Galerie de realisations
   -------------------------------------------------------------------------- */
.filters {
  display: flex; flex-wrap: wrap; gap: 9px;
  margin-bottom: 26px;
}
.filter {
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--grey-line);
  background: #fff;
  font-family: var(--font-title); font-weight: 700; font-size: .87rem;
  color: var(--navy);
  cursor: pointer;
  transition: background-color .16s, color .16s, border-color .16s;
}
.filter:hover { border-color: var(--navy); }
.filter[aria-pressed="true"] {
  background: var(--navy); border-color: var(--navy); color: #fff;
}

.gallery { display: grid; gap: 18px; }

.work {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy);
  box-shadow: var(--shadow-sm);
}
.work img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .4s ease;
}
.work:hover img { transform: scale(1.05); }
.work__tags {
  position: absolute; top: 12px; left: 12px; right: 12px;
  display: flex; flex-wrap: wrap; gap: 7px;
}
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--font-title); font-weight: 700; font-size: .72rem;
  letter-spacing: .02em;
  background: rgba(255, 255, 255, .94);
  color: var(--navy);
  box-shadow: 0 2px 8px rgba(16, 43, 74, .18);
}
.tag .icon { width: 14px; height: 14px; }
.tag--pac { color: var(--orange); }
.tag--clim { color: var(--blue); }
.tag--city { color: var(--navy); }

.work__body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 34px 16px 15px;
  background: linear-gradient(180deg, rgba(11, 30, 53, 0) 0%, rgba(11, 30, 53, .88) 55%);
  color: #fff;
}
.work__body h3 { color: #fff; font-size: 1rem; margin-bottom: .18em; }
.work__body p { font-size: .82rem; color: #bccfe2; margin: 0; }

.is-hidden { display: none !important; }

/* --------------------------------------------------------------------------
   13. Statistiques
   -------------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stat {
  text-align: center;
  padding: 20px 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
}
.stat b {
  display: block;
  font-family: var(--font-title); font-weight: 800;
  font-size: 1.75rem; color: #fff; line-height: 1.1;
}
.stat span { font-size: .82rem; color: #a8bdd3; }
.section--ice .stat { background: #fff; border-color: var(--grey-line); }
.section--ice .stat b { color: var(--navy); }
.section--ice .stat span { color: var(--grey); }

/* --------------------------------------------------------------------------
   14. Badge RGE maison
   -------------------------------------------------------------------------- */
.rge-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 14px;
  border-radius: var(--radius);
  background: #fff;
  border: 2px solid var(--orange);
  box-shadow: var(--shadow-sm);
  color: var(--navy);
  max-width: 100%;
}
.rge-badge__mark {
  width: 42px; height: 42px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad-orange);
  color: #fff;
}
.rge-badge__mark svg { width: 23px; height: 23px; }
.rge-badge__txt b {
  display: block;
  font-family: var(--font-title); font-weight: 800; font-size: .95rem;
  letter-spacing: .01em; color: var(--navy); line-height: 1.2;
}
.rge-badge__txt span { display: block; font-size: .76rem; color: var(--grey); }
.rge-badge--dark {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(240, 90, 36, .8);
}
.rge-badge--dark .rge-badge__txt b { color: #fff; }
.rge-badge--dark .rge-badge__txt span { color: #a8bdd3; }

/* --------------------------------------------------------------------------
   15. Bloc "media + texte"
   -------------------------------------------------------------------------- */
.split { display: grid; gap: 26px; align-items: center; }
.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* --------------------------------------------------------------------------
   16. Avis Google
   -------------------------------------------------------------------------- */
.reviews { display: grid; gap: 16px; }
.review {
  background: #fff;
  border: 1px solid var(--grey-line);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
}
.review__stars { display: flex; gap: 3px; margin-bottom: 12px; color: #F5B301; }
.review__stars .icon { width: 17px; height: 17px; }
.review p { font-size: .94rem; color: var(--text); }
.review__author {
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--grey-line);
  font-size: .85rem; color: var(--grey);
}
.review__author b { display: block; color: var(--navy); font-family: var(--font-title); }

.reviews-cta { margin-top: 24px; text-align: center; }
.reviews-note { font-size: .8rem; color: var(--grey); margin-top: 14px; text-align: center; }

/* --------------------------------------------------------------------------
   17. Zone d'intervention
   -------------------------------------------------------------------------- */
.cities { display: flex; flex-wrap: wrap; gap: 9px; list-style: none; padding: 0; margin: 0; }
.cities li { margin: 0; }
.cities span, .cities a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 15px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--grey-line);
  font-size: .85rem; font-weight: 600; color: var(--navy);
}
.cities .icon { width: 15px; height: 15px; color: var(--orange); }
.section--navy .cities span, .section--navy .cities a {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .16);
  color: #fff;
}

/* --------------------------------------------------------------------------
   18. FAQ
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: #fff;
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  padding: 0 18px;
}
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 56px;
  padding: 12px 0;
  font-family: var(--font-title); font-weight: 700; font-size: .98rem;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 11px; height: 11px; flex: none;
  border-right: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  transform: rotate(45deg) translateY(-3px);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details > div { padding-bottom: 18px; }
.faq p { color: var(--grey); font-size: .94rem; }

/* --------------------------------------------------------------------------
   19. Bloc CTA
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--grad-orange);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 30px 22px;
  text-align: center;
}
.cta-band h2 { color: #fff; font-size: 1.42rem; }
.cta-band p { color: rgba(255, 255, 255, .93); margin-bottom: 22px; }
.cta-band .btn--light { box-shadow: 0 8px 22px rgba(0, 0, 0, .18); }

/* --------------------------------------------------------------------------
   20. Formulaire de contact
   -------------------------------------------------------------------------- */
.form-card {
  background: #fff;
  border: 1px solid var(--grey-line);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-family: var(--font-title); font-weight: 700; font-size: .86rem;
  color: var(--navy); margin-bottom: 7px;
}
.field .req { color: var(--orange); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-family: var(--font-body); font-size: 1rem;
  color: var(--text);
  background: var(--ice);
  border: 1px solid var(--grey-line);
  border-radius: 11px;
  transition: border-color .16s, background-color .16s;
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus {
  background: #fff; border-color: var(--blue); outline: none;
  box-shadow: 0 0 0 3px rgba(46, 117, 168, .16);
}
.field-consent {
  display: flex; align-items: flex-start; gap: 11px;
  font-size: .84rem; color: var(--grey); line-height: 1.5;
}
.field-consent input {
  width: 22px; height: 22px; min-height: 22px;
  flex: none; margin-top: 2px; accent-color: var(--orange);
}
.form-note { font-size: .8rem; color: var(--grey); margin-top: 14px; }

/* Messages de retour du formulaire (succes / echec / erreurs de saisie) */
.alert {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 18px 18px 16px;
  border-radius: var(--radius);
  border: 1px solid;
  margin-bottom: 22px;
}
.alert__icon {
  width: 26px; height: 26px; flex: none; margin-top: 1px;
}
.alert__icon svg { width: 100%; height: 100%; display: block; }
.alert b {
  display: block;
  font-family: var(--font-title); font-size: 1rem; margin-bottom: 4px;
}
.alert p { font-size: .92rem; margin: 0; }
.alert--ok {
  background: #eaf7ef; border-color: #b7e3c8; color: #1c6b3a;
}
.alert--ok b, .alert--ok a { color: #14512c; }
.alert--ko {
  background: #fdecea; border-color: #f6c4bd; color: #97281a;
}
.alert--ko b, .alert--ko a { color: #7d2015; }

/* Message d'erreur sous un champ */
.field-error {
  margin: 7px 0 0;
  font-size: .84rem; font-weight: 600;
  color: #c0341f;
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #d9534f;
  background: #fdf6f5;
}
.field input[aria-invalid="true"]:focus,
.field select[aria-invalid="true"]:focus,
.field textarea[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(217, 83, 79, .18);
  border-color: #d9534f;
}

/* Champ piege anti-spam : hors ecran, jamais focusable au clavier */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

/* Coordonnees */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 13px; align-items: flex-start; margin: 0; }
.contact-list .icon-circle { width: 44px; height: 44px; margin: 0; }
.contact-list .icon-circle svg { width: 20px; height: 20px; }
.contact-list b {
  display: block; font-family: var(--font-title); font-size: .84rem;
  text-transform: uppercase; letter-spacing: .06em; color: var(--grey);
  font-weight: 700; margin-bottom: 2px;
}
.contact-list a,
.contact-list span:not(.icon-circle) { color: var(--navy); font-size: 1rem; font-weight: 600; }
.contact-list a:hover { color: var(--orange); }
.contact-list small { display: block; font-size: .84rem; color: var(--grey); font-weight: 400; }

/* --------------------------------------------------------------------------
   21. Pages editoriales (mentions legales)
   -------------------------------------------------------------------------- */
.prose { max-width: 78ch; }
.prose h2 {
  font-size: 1.28rem;
  margin-top: 2em;
  padding-top: 1.4em;
  border-top: 1px solid var(--grey-line);
}
.prose h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 1.02rem; margin-top: 1.6em; }
.prose dl { margin: 0 0 1.4em; }
.prose dt {
  font-family: var(--font-title); font-weight: 700; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .06em; color: var(--grey);
  margin-top: 1em;
}
.prose dd { margin: 2px 0 0; color: var(--text); }

/* --------------------------------------------------------------------------
   22. Page 404
   -------------------------------------------------------------------------- */
.error-page {
  min-height: 62vh;
  display: grid; place-items: center;
  text-align: center;
  padding-block: 56px;
}
/* Selecteur porte a la meme specificite que .error-page p, place plus bas,
   afin que le degrade ne soit pas ecrase par la couleur de texte generique. */
.error-page .error-code {
  font-family: var(--font-title); font-weight: 800;
  font-size: 5rem; line-height: 1;
  background: var(--grad-orange);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}
.error-page p { color: var(--grey); max-width: 48ch; margin-inline: auto; }
.error-links { margin-top: 26px; }

/* --------------------------------------------------------------------------
   23. Pied de page
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--grad-navy);
  color: #a8bdd3;
  padding-block: 40px 26px;
  font-size: .92rem;
}
.footer-grid { display: grid; gap: 30px; }
.site-footer h3 {
  /* Titres de colonne du pied de page. En h3 et non h4 : le dernier titre
     du contenu est un h2, un h4 creerait un saut de niveau dans la
     hierarchie. Le style ne depend pas du niveau de balise. */
  color: #fff; font-size: .82rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 14px;
}
.site-footer a { color: #a8bdd3; }
.site-footer a:hover { color: var(--orange-light); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 2px; }
/* Cibles tactiles confortables sur mobile : les liens du pied de page
   occupent toute la hauteur minimale recommandee (44px). */
.site-footer li > a,
.footer-bottom nav a {
  display: inline-flex; align-items: center;
  min-height: 44px;
}
.footer-contact li > a { min-height: 30px; }

.footer-brand .logo { color: #fff; margin-bottom: 14px; }
.footer-brand .logo:hover { color: #fff; }
.footer-brand .logo-text span { color: #8fa6bf; }
.footer-brand p { font-size: .88rem; line-height: 1.6; }
.footer-brand .rge-badge { margin-top: 16px; }

.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { width: 17px; height: 17px; margin-top: .28em; color: var(--orange-light); }

.footer-bottom {
  margin-top: 30px; padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .82rem;
  display: grid; gap: 10px;
}
.footer-bottom p { margin: 0; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }

/* ==========================================================================
   BREAKPOINT >= 600px  (grandes mobiles / tablettes portrait)
   ========================================================================== */
@media (min-width: 600px) {
  :root { --gutter: 28px; --section-y: 60px; }

  h1 { font-size: 2.35rem; }
  h2 { font-size: 1.95rem; }

  .hero h1 { font-size: 2.5rem; }
  .hero-lead { font-size: 1.1rem; }
  .hero-body { padding-block: 48px 40px; }

  .btn-row { flex-direction: row; flex-wrap: wrap; }
  .btn--block { display: inline-flex; width: auto; }

  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 0 26px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }

  .card { padding: 28px 24px; }
  .form-card { padding: 30px 28px; }
  .cta-band { padding: 40px 34px; }
}

/* ==========================================================================
   BREAKPOINT >= 900px  (desktop)
   ========================================================================== */
@media (min-width: 900px) {
  :root { --gutter: 32px; --section-y: 82px; --header-h: 90px; }

  h1 { font-size: 2.9rem; }
  h2 { font-size: 2.2rem; }
  h3 { font-size: 1.2rem; }

  .logo img, .logo svg { height: 70px; }
  .logo-text b { font-size: 1.18rem; }

  /* Hero en deux colonnes */
  .hero-inner {
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    gap: 52px;
    align-items: center;
    padding-block: 70px;
  }
  .hero-body { padding-block: 0; }
  .hero h1 { font-size: 3.15rem; }
  .hero-media img { aspect-ratio: 4 / 3; }
  .hero-chip {
    position: absolute;
    left: -26px; bottom: 26px;
    margin: 0;
    max-width: 260px;
  }

  .hero--page .hero-inner { grid-template-columns: 1fr; padding-block: 52px; }
  .hero--page .hero-body { max-width: 74ch; }
  .hero--page h1 { font-size: 2.75rem; }

  /* Bandeau de confiance sur une ligne */
  .trust-grid { grid-template-columns: repeat(4, 1fr); gap: 0; }
  .trust-item {
    padding: 24px 24px 24px 0;
    border-bottom: 0;
    border-right: 1px solid rgba(255, 255, 255, .12);
  }
  .trust-item:last-child { border-right: 0; padding-right: 0; }
  .trust-grid > .trust-item + .trust-item { padding-left: 24px; }

  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .reviews { grid-template-columns: repeat(3, 1fr); }
  .grid { gap: 24px; }

  .split { grid-template-columns: 1fr 1fr; gap: 52px; }
  .split--reverse .split__media { order: 2; }

  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1.15fr; gap: 30px; }
  .site-footer li { margin-bottom: 9px; }
  .site-footer li > a,
  .footer-bottom nav a,
  .footer-contact li > a { min-height: 0; display: inline; }
  .link-arrow { min-height: 0; }
  .footer-bottom {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .footer-bottom nav { justify-content: flex-end; }

  /* Etapes numerotees : ligne horizontale avec connecteurs */
  .steps { grid-template-columns: repeat(4, 1fr); gap: 26px; }
  .step { padding: 0; text-align: center; }
  .step__num { position: relative; margin: 0 auto 20px; }
  .step h3 { padding-top: 0; }
  .step::before {
    left: calc(50% + 36px);
    right: calc(-50% + 36px);
    top: 23px; bottom: auto;
    width: auto; height: 2px;
    background: linear-gradient(90deg, var(--orange) 0%, rgba(240, 90, 36, .25) 100%);
  }
  /* Petite fleche au bout du connecteur */
  .step::after {
    content: "";
    position: absolute;
    top: 19px;
    right: calc(-50% + 34px);
    width: 8px; height: 8px;
    border-top: 2px solid rgba(240, 90, 36, .45);
    border-right: 2px solid rgba(240, 90, 36, .45);
    transform: rotate(45deg);
  }
  .step:last-child::after { display: none; }

  .cta-band { padding: 54px 48px; }
  .cta-band h2 { font-size: 1.9rem; }

  .form-card { padding: 38px 34px; }
  .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .form-grid .field--full { grid-column: 1 / -1; }

  .error-page .error-code { font-size: 7rem; }
}

/* ==========================================================================
   BREAKPOINT >= 1024px  (petits ordinateurs portables)
   La navigation principale compte six entrees : elle ne tient en ligne
   qu'a partir de cette largeur. En dessous, on conserve le menu deroulant
   et la barre d'appel fixe, plus confortables sur ecran etroit.
   ========================================================================== */
@media (min-width: 1024px) {
  body { padding-bottom: 0; }          /* plus de barre fixe basse */
  .mobile-bar { display: none; }
  .nav-toggle { display: none; }

  /* Navigation horizontale */
  .main-nav {
    position: static;
    max-height: none; overflow: visible;
    background: none; border: 0; box-shadow: none;
    padding: 0;
    opacity: 1; visibility: visible; transform: none;
    margin-left: auto;
  }
  .main-nav ul { display: flex; align-items: center; gap: 4px; }
  .main-nav li { border: 0; }
  .main-nav li a {
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 999px;
    font-size: .87rem;
    color: var(--navy);
  }
  .main-nav li a:hover { background: var(--ice); color: var(--orange); }
  .main-nav li a[aria-current="page"] { background: var(--ice); color: var(--orange); }
  .main-nav li a { white-space: nowrap; }
  .header-cta .btn { white-space: nowrap; }
  .nav-cta { display: none; }

  .header-cta { display: inline-flex; margin-left: 10px; }
  .header-cta .btn { min-height: 46px; padding: 11px 14px; font-size: .87rem; }

}

/* ==========================================================================
   BREAKPOINT >= 1200px  (grands ecrans)
   ========================================================================== */
@media (min-width: 1200px) {
  :root { --gutter: 40px; --section-y: 96px; }

  /* L'en-tete compact du palier 940px n'est plus necessaire ici. */
  .main-nav li a { padding: 8px 14px; font-size: .93rem; }
  .header-cta { margin-left: 20px; }
  .header-cta .btn { padding: 11px 20px; font-size: .93rem; }

  .hero h1 { font-size: 3.5rem; }
  .hero-inner { gap: 68px; padding-block: 84px; }
  .grid { gap: 28px; }
  .card { padding: 32px 28px; }
  .icon-circle { width: 62px; height: 62px; }
  .icon-circle svg { width: 30px; height: 30px; }
}

/* ==========================================================================
   Preferences utilisateur / impression
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* --------------------------------------------------------------------------
   25. Page Zones d'intervention : faits du hero, groupes de communes,
       blocs de secteur et carte SVG.
       Base = mobile, enrichissements en min-width uniquement.
   -------------------------------------------------------------------------- */
.hero-facts {
  list-style: none; padding: 0;
  margin: 0 0 22px;
  display: grid; gap: 8px;
  font-size: .95rem;
}
.hero-facts li { display: flex; align-items: center; gap: 10px; margin: 0; }
.hero-facts .icon { color: var(--orange); flex: none; }
.hero-facts a { color: #fff; font-weight: 700; }

.zone-group { margin-bottom: 28px; }
.zone-group:last-child { margin-bottom: 0; }
.zone-group h3 { font-size: 1.02rem; margin-bottom: 12px; }

.zone-card {
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  margin-bottom: 20px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.zone-card:last-child { margin-bottom: 0; }
.zone-card h3 { margin-bottom: .5em; }
.zone-card p { color: var(--grey); }
.zone-card__communes { color: var(--text); font-size: .93rem; }
.zone-card__communes b { color: var(--navy); }
.zone-card .link-arrow { color: var(--orange); font-weight: 700; }

/* Carte : le SVG garde une largeur minimale pour rester lisible sur petit
   ecran ; le conteneur defile alors horizontalement. */
.zmap-figure { margin: 0; }
.zmap-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius-lg);
  padding: 10px;
}
.zmap { display: block; width: 100%; min-width: 620px; height: auto; }
.zmap-figure figcaption {
  margin-top: 12px;
  font-size: .82rem; color: var(--grey); line-height: 1.5;
}

/* Les couleurs et les polices de la carte sont embarquees dans le SVG lui-meme
   (voir tools/build-carte-zones.py) : un SVG dont le remplissage n'est pas
   declare s'affiche en noir, et il ne doit pas dependre de cette feuille.
   Ne pas les redefinir ici. */

@media (min-width: 600px) {
  .hero-facts { grid-auto-flow: column; justify-content: start; gap: 26px; }
  .zone-card { padding: 30px 28px; }
  .zmap-scroll { padding: 16px; }
}

@media (min-width: 900px) {
  /* Avec le cercle de 60 km, la carte est plus haute que large une fois
     etalee sur toute la largeur du contenu : on la borne pour qu'elle reste
     une illustration et non un ecran entier a faire defiler. */
  .zmap { min-width: 0; max-width: 820px; margin-inline: auto; }
  .zone-card { padding: 34px 32px; margin-bottom: 24px; }
  .zone-group { margin-bottom: 34px; }
}

/* Cibles d'ancres : compense la hauteur de l'en-tete collant. */
:target,
.card h3[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

@media print {
  .site-header, .mobile-bar, .cta-band, .site-footer { display: none; }
  body { padding-bottom: 0; }
}
