/* ===========================================
   GOODDIAGIMMO - SITE V3 CORRIGÉ
   =========================================== */

/* ===========================================
   FONTS SELF-HOSTED (Outfit + Plus Jakarta Sans)
   =========================================== */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/outfit-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/outfit-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/outfit-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/outfit-800.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/plusjakartasans-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/plusjakartasans-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/plusjakartasans-700.woff2') format('woff2');
}

:root {
  --primary: #3A7D5C;
  --primary-light: #62BA92;
  --primary-dark: #1a4a32;
  --accent: #f0a229;
  --accent-light: #ffecd0;
  --accent-dark: #d18b1a;
  --accent-text: #a16207;  /* WCAG AA sur fond blanc/clair (Lot E1.3) */
  --bg-white: #ffffff;
  --bg-light: #f8faf9;
  --bg-cream: #f0f7f3;
  --text: #1a1a1a;
  --text-muted: #5a5a5a;
  --border: #e0e0e0;
  --font-head: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --gap: 1.5rem;
  --radius: 12px;
  --radius-full: 50px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --header-height: 70px;
}

/* =============================================================================
   ACCESSIBILITE — Lot B 2026-04-29
   ============================================================================= */

/* Focus visible au clavier uniquement (pas au clic souris) */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip link — visible quand focus clavier */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  z-index: 9999;
  background: var(--primary);
  color: #fff;
  padding: 12px 18px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 8px 0;
  transition: top 0.15s;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 0;
}

/* Reset fieldset/legend pour groupes radio (a11y — Lot E1.2) */
fieldset.form__group { border: 0; padding: 0; margin: 0; min-width: 0; } /* form__group reset fieldset */
fieldset.form__group > legend { padding: 0; float: none; display: block; }



*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body { font-family: var(--font-body); color: var(--text); background: var(--bg-light); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
h3 { font-size: 1.2rem; }

/* OFFSET ANCRES */
section[id] { scroll-margin-top: var(--header-height); }
@media (max-width: 767px) {
  section[id] { scroll-margin-top: 0px; }
  /* Hero mobile - FOLD OPTIMISÉ : CTA + tel visibles sans scroll */
  .hero { min-height: auto !important; height: auto !important; padding: 1rem 0 0.75rem; }
  .hero .container { justify-content: center !important; height: auto !important; gap: 0.4rem; }
  .hero__title { font-size: 1.4rem !important; margin-bottom: 0.4rem !important; line-height: 1.2; }
  .hero__subtitle { font-size: 0.78rem !important; margin-top: 0.5rem !important; margin-bottom: 0.5rem !important; line-height: 1.35; }
  .hero__subtitle--desktop { display: none; }
  .hero__subtitle br { display: none; }
  .hero__google-badge { padding: 0.45rem 0.9rem !important; margin: 0.5rem auto !important; gap: 0.5rem !important; }
  .hero__google-score { font-size: 1rem !important; }
  .hero__google-stars { font-size: 0.75rem !important; }
  .hero__google-count { font-size: 0.7rem !important; }
  .hero__cta { gap: 0.5rem !important; margin-top: 0.6rem !important; }
  .hero__cta .btn { padding: 0.65rem 1.6rem !important; font-size: 0.9rem !important; }
  .hero__trust { flex-wrap: wrap; justify-content: center; gap: 0.4rem 0.8rem !important; padding-top: 0.5rem !important; margin-top: 0.6rem !important; }
  .hero__trust-item { font-size: 0.7rem; }

  /* Pictos diagnostics compacts mobile (sous le fold, visibles au scroll) */
  .hero__diags { gap: 0.25rem !important; max-width: 230px !important; margin-bottom: 0 !important; margin-top: 0.3rem !important; }
  .hero__diag-item { width: 42px !important; height: 42px !important; gap: 0; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
  .hero__diag-icon { font-size: 0.85rem !important; }
  .hero__diag-icon svg { width: 16px !important; height: 16px !important; }
  .hero__diag-label { font-size: 0.45rem !important; letter-spacing: 0; }
  /* Formulaire compact mobile */
  section#devis.section { padding: 0.8rem 0 1rem; }
  section#devis .form-section { padding: 0.8rem; }
  section#devis .form__title { font-size: 1.1rem; margin-bottom: 0.6rem; }
  section#devis .form__grid { gap: 0.35rem; }
  section#devis .form__group { gap: 0.1rem; }
  section#devis .form__label { font-size: 0.75rem; }
  section#devis .form__input, section#devis .form__select { padding: 0.5rem 0.6rem; font-size: 0.85rem; }
  section#devis .form__textarea { min-height: 45px; padding: 0.5rem 0.6rem; font-size: 0.85rem; }
  section#devis .form__submit { margin-top: 0.5rem; }
  section#devis .form__submit .btn { padding: 0.6rem 1rem; font-size: 0.9rem; }
}

/* UTILITAIRES */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 2.5rem 0; }
.section--white { background: var(--bg-white); }
.section--cream { background: var(--bg-cream); }
.section--primary { background: var(--primary); color: white; }
.section--primary h2 { color: white; }
.text-center { text-align: center; }
.text-accent { color: var(--accent-text); }
.text-muted { color: var(--text-muted); }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.8rem; border-radius: var(--radius-full);
  font-weight: 600; font-size: 0.95rem; transition: all 0.2s; cursor: pointer; border: 2px solid transparent;
  text-align: center;
}
.btn--primary { background: var(--accent); color: white; border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-2px); }
.btn--secondary { background: var(--primary); color: white; border-color: var(--primary); }
.btn--outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn--outline:hover { background: var(--primary); color: white; }
.btn--white { background: white; color: var(--primary); border-color: white; }
.btn--sm { padding: 0.6rem 1.2rem; font-size: 0.85rem; }
.hero__cta .btn { width: 100%; max-width: 260px; }

/* ===========================================
   HEADER
   =========================================== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--bg-white); box-shadow: var(--shadow);
  height: var(--header-height);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1.5rem; max-width: 1100px; margin: 0 auto; height: 100%;
}
.logo { display: flex; align-items: flex-end; text-decoration: none; line-height: 1; flex-shrink: 0; }
.logo__text { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.1rem, 4vw, 1.6rem); letter-spacing: -0.5px; display: flex; align-items: flex-end; }
.logo__good, .logo__immo { color: var(--primary); }
.logo__diag-wrapper { position: relative; display: inline-flex; flex-direction: column; align-items: center; }
.logo__roof { width: 100%; height: clamp(8px, 2vw, 14px); margin-bottom: 1px; }
.logo__roof path { fill: var(--accent); }
.logo__diag { color: var(--accent-text); }

.header__nav { display: none; }
.header__nav-list { display: flex; gap: 1.5rem; }
.header__nav-link { font-weight: 500; position: relative; padding: 0.5rem 0; font-size: 0.9rem; white-space: nowrap; }
.header__nav-link:hover, .header__nav-link.active { color: var(--primary); }
.header__ctas { display: flex; gap: 0.5rem; flex-shrink: 0; }
.header__cta { display: flex; align-items: center; gap: 0.4rem; padding: 0.5rem; border-radius: var(--radius-full); font-weight: 600; font-size: 0.8rem; white-space: nowrap; }
.header__cta--devis { background: var(--accent); color: white; }
.header__cta--tel { background: var(--primary); color: white; }
.header__cta svg { width: 18px; height: 18px; }
.header__cta span { display: none; }

/* BURGER - Fix #2 */
.header__burger {
  display: flex; flex-direction: column; gap: 5px; padding: 0.5rem;
  background: none; border: none; cursor: pointer; z-index: 200;
}
.header__burger span {
  display: block; width: 22px; height: 2px; background: var(--primary);
  transition: all 0.3s ease;
}
.header__burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.header__burger.active span:nth-child(2) { opacity: 0; }
.header__burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* HEADER MOBILE - CTAs masqués, logo aligné */
@media (max-width: 767px) {
  .header__ctas { display: none; }
  .logo { margin-left: 0; }
}

@media (min-width: 600px) {
  .header__cta span { display: inline; }
  .header__cta { padding: 0.5rem 1rem; }
}
@media (min-width: 900px) {
  .header__nav { 
    display: block; 
    position: absolute; 
    left: 50%; 
    transform: translateX(-50%); 
  }
  .header__inner { position: relative; }
  .header__burger { display: none; }
  .header .logo { position: relative; top: -6px; left: 0; }
  .header__cta { min-width: 130px; justify-content: center; }
  .header__nav-list { gap: 1.5rem; }
}

@media (min-width: 1100px) {
  .header__nav-list { gap: 2rem; }
  .header__cta { min-width: 140px; }
}

/* ===========================================
   MOBILE MENU - Fix #2
   =========================================== */
.mobile-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); z-index: 150;
  opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.mobile-overlay.active { opacity: 1; visibility: visible; }

.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0; width: 280px;
  background: var(--bg-white); z-index: 160;
  transform: translateX(100%); transition: transform 0.3s ease;
  padding: 5rem 1.5rem 2rem; display: flex; flex-direction: column;
}
.mobile-menu.active { transform: translateX(0); }
.mobile-menu__nav { display: flex; flex-direction: column; gap: 0.5rem; }
.mobile-menu__link {
  padding: 1rem; font-weight: 600; font-size: 1.1rem;
  border-radius: var(--radius); transition: background 0.2s;
}
.mobile-menu__link:hover, .mobile-menu__link.active { background: var(--bg-cream); color: var(--primary); }
.mobile-menu__cta {
  margin-top: auto; display: flex; flex-direction: column; gap: 0.8rem;
}
.mobile-menu__cta .btn { width: 100%; justify-content: center; }

/* ===========================================
   SECTION: HERO
   =========================================== */
.hero { min-height: calc(100svh - var(--header-height)); display: flex; align-items: stretch; padding: 1rem 0 1.5rem; background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-cream) 100%); margin-top: var(--header-height); }
.hero .container { display: flex; flex-direction: column; height: 100%; justify-content: space-evenly; }
.hero__content { text-align: center; display: flex; flex-direction: column; max-width: 700px; margin: 0 auto; }
.hero__title { margin-bottom: 0.5rem; font-size: 1.6rem; line-height: 1.2; }
.hero__title span { color: var(--primary); }
.hero__subtitle { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.75rem; margin-bottom: 0.75rem; max-width: 600px; margin-left: auto; margin-right: auto; line-height: 1.4; }
.hero__cta { display: flex; flex-direction: column; gap: 0.6rem; align-items: center; justify-content: center; margin-top: 1rem; }
.hero__cta .btn { padding: 0.8rem 2rem; font-size: 0.95rem; }
.hero__trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 1rem; padding-top: 0.75rem; border-top: 1px solid var(--border); margin-top: 1rem; }
.hero__trust-item { display: flex; align-items: center; gap: 0.3rem; font-size: 0.75rem; color: var(--text-muted); }
.hero__trust-item svg { color: var(--primary); width: 16px; height: 16px; }
.hero__diags { margin-top: 1.25rem; margin-bottom: 0.5rem; }

/* Écrans moyens en hauteur (700-800px) */
@media (max-width: 767px) and (min-height: 700px) {
  .hero__subtitle { margin-top: 1.25rem; margin-bottom: 1rem; }
  .hero__cta { margin-top: 1.5rem; gap: 0.8rem; }
  .hero__trust { margin-top: 1.5rem; padding-top: 1rem; gap: 0.8rem 1.2rem; }
  .hero__diags { margin-top: 1.75rem; }
}

/* Grands écrans en hauteur (800px+) */
@media (max-width: 767px) and (min-height: 800px) {
  .hero__title { font-size: 1.75rem; margin-bottom: 0.75rem; }
  .hero__subtitle { margin-top: 1.5rem; margin-bottom: 1.25rem; font-size: 0.95rem; }
  .hero__cta { margin-top: 2rem; gap: 1rem; }
  .hero__cta .btn { padding: 1rem 2.2rem; font-size: 1rem; }
  .hero__trust { margin-top: 2rem; padding-top: 1.25rem; gap: 1rem 1.5rem; }
  .hero__trust-item { font-size: 0.8rem; }
  .hero__diags { margin-top: 2.25rem; gap: 0.6rem; }
  .hero__diag-item { width: 68px; height: 68px; }
}

/* Très grands écrans (900px+) */
@media (max-width: 767px) and (min-height: 900px) {
  .hero__title { font-size: 1.85rem; }
  .hero__subtitle { margin-top: 2rem; margin-bottom: 1.5rem; }
  .hero__cta { margin-top: 2.5rem; }
  .hero__trust { margin-top: 2.5rem; }
  .hero__diags { margin-top: 3rem; }
  .hero__diag-item { width: 72px; height: 72px; }
}

@media (min-width: 768px) {
  .hero { padding: 2rem 0; }
  .hero__title { font-size: 2.2rem; margin-bottom: 1rem; }
  .hero__subtitle { font-size: 1.1rem; margin-bottom: 1.5rem; margin-top: 1.5rem; }
  .hero__cta .btn { padding: 1rem 2.5rem; font-size: 1rem; min-width: 220px; }
  .hero__trust { gap: 1.5rem; padding-top: 1.5rem; margin-top: 1.5rem; }
  .hero__trust-item { font-size: 0.85rem; gap: 0.5rem; }
  .hero__trust-item svg { width: 20px; height: 20px; }
  .hero__diags { margin-top: 2rem; margin-bottom: 2rem; }
}

/* Desktop - écrans moyens en hauteur */
@media (min-width: 768px) and (min-height: 700px) {
  .hero__subtitle { margin-top: 2rem; margin-bottom: 1.75rem; }
  .hero__cta { margin-top: 1.5rem; }
  .hero__trust { margin-top: 2rem; }
  .hero__diags { margin-top: 2.5rem; }
}

/* Desktop - grands écrans en hauteur */
@media (min-width: 768px) and (min-height: 850px) {
  .hero__title { font-size: 2.5rem; }
  .hero__subtitle { margin-top: 2.5rem; margin-bottom: 2rem; font-size: 1.15rem; }
  .hero__cta { margin-top: 2rem; gap: 1rem; }
  .hero__trust { margin-top: 2.5rem; padding-top: 1.75rem; }
  .hero__diags { margin-top: 3rem; gap: 1rem; }
  .hero__diag-item { width: 90px; height: 90px; }
}

/* Desktop - très grands écrans */
@media (min-width: 768px) and (min-height: 950px) {
  .hero__title { font-size: 2.75rem; }
  .hero__subtitle { margin-top: 3rem; margin-bottom: 2.5rem; }
  .hero__cta { margin-top: 2.5rem; }
  .hero__trust { margin-top: 3rem; }
  .hero__diags { margin-top: 3.5rem; }
  .hero__diag-item { width: 95px; height: 95px; }
}

/* Hero Google Badge */
.hero__google-badge {
  display: inline-flex; align-items: center; gap: 0.75rem;
  background: var(--bg-white); padding: 0.6rem 1.2rem; border-radius: var(--radius-full);
  box-shadow: var(--shadow); margin: 1rem auto; text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  align-self: center; max-width: fit-content;
}
@media (max-width: 767px) {
  .hero__google-badge { margin: 0.6rem auto; padding: 0.5rem 1rem; gap: 0.5rem; }
  .hero__google-score { font-size: 1.4rem !important; }
  .hero__google-stars { font-size: 0.9rem !important; }
  .hero__google-count { font-size: 0.75rem !important; }
}
.hero__google-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.hero__google-score { font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.hero__google-stars { color: var(--accent-text); font-size: 1.1rem; letter-spacing: 2px; }
.hero__google-count { color: var(--text-muted); font-size: 0.85rem; }
.hero__google-badge:hover .hero__google-count { color: var(--primary); text-decoration: underline; }

/* Hero Diagnostics Pictos */
.hero__diags {
  display: flex; justify-content: center; gap: 0.4rem; flex-wrap: wrap;
  max-width: 300px; margin-left: auto; margin-right: auto;
}
.hero__diag-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem;
  width: 62px; height: 62px; background: var(--bg-white); border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06); text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.hero__diag-item:hover { transform: translateY(-4px) scale(1.05); box-shadow: var(--shadow); }
.hero__diag-icon { font-size: 1.3rem; line-height: 1; }
.hero__diag-icon svg { width: 24px; height: 24px; }
.hero__diag-label { font-size: 0.6rem; font-weight: 600; color: var(--text); text-transform: uppercase; letter-spacing: 0.3px; }

@media (min-width: 480px) {
  .hero__diags { max-width: 360px; gap: 0.5rem; }
  .hero__diag-item { width: 68px; height: 68px; }
}
@media (min-width: 768px) {
  .hero__diags { gap: 0.75rem; max-width: 700px; margin-left: auto; margin-right: auto; }
  .hero__diag-item { width: 80px; height: 80px; gap: 0.3rem; }
  .hero__diag-icon { font-size: 1.8rem; }
  .hero__diag-icon svg { width: 28px; height: 28px; }
  .hero__diag-label { font-size: 0.7rem; }
}

@media (min-width: 1024px) {
  .hero__content { text-align: center; max-width: 800px; margin-left: auto; margin-right: auto; }
  .hero__title { font-size: 2.5rem; }
  .hero__subtitle { font-size: 1.15rem; }
  .hero__cta { flex-direction: row; justify-content: center; }
  .hero__cta .btn { width: auto; }
  .hero__trust { justify-content: center; }
  .hero__diags { max-width: 800px; margin-left: auto; margin-right: auto; }
}

/* ===========================================
   SECTION: FORM
   =========================================== */
.form-section { background: var(--bg-white); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow-lg); }
.form__title { text-align: center; margin-bottom: 1rem; font-size: 1.2rem; }
.form__grid { display: grid; gap: 0.5rem; }
.form__group { display: flex; flex-direction: column; gap: 0.2rem; }
.form__label { font-weight: 500; font-size: 0.8rem; }
.form__label--required::after { content: ' *'; color: var(--accent-text); }
.form__input, .form__select, .form__textarea {
  padding: 0.6rem; border: 2px solid var(--border); border-radius: var(--radius);
  font-family: inherit; font-size: 0.9rem; transition: border 0.2s; width: 100%;
}
.form__input:focus, .form__select:focus, .form__textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(58, 125, 92, 0.15); }
.form__textarea { min-height: 60px; resize: vertical; }
.form__submit { margin-top: 0.8rem; }
.form__submit .btn { width: 100%; }
@media (min-width: 768px) {
  .form__grid { grid-template-columns: repeat(2, 1fr); }
  .form__group--full { grid-column: 1 / -1; }
}

/* ===========================================
   SECTION: TARIFS - Fix #1 CARROUSEL MOBILE
   =========================================== */
.pricing__header { text-align: center; margin-bottom: 1.5rem; }
.pricing__note { font-size: 0.85rem; color: var(--text-muted); font-style: italic; }

/* Mobile: Carrousel horizontal swipeable */
.pricing__grid {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 0 1rem;
  margin: 0 -1.5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  align-items: stretch;
}
.pricing__grid::-webkit-scrollbar { display: none; }
.pricing__grid { -ms-overflow-style: none; scrollbar-width: none; }

.pricing__card {
  flex: 0 0 260px;
  scroll-snap-align: start;
  background: var(--bg-white); border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow); border-top: 3px solid var(--primary); transition: transform 0.2s;
  display: flex; flex-direction: column; text-align: center;
}
.pricing__card:hover { transform: none; }
.pricing__card--featured { border-top-color: var(--accent-text); }
.pricing__card-content { flex-grow: 1; display: flex; flex-direction: column; }
.pricing__card-icon { font-size: 2.5rem; margin-bottom: 0.8rem; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; margin-left: auto; margin-right: auto; line-height: 1; }
.pricing__card-title { font-size: 1.15rem; margin-bottom: 0.2rem; }
.pricing__card-subtitle { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1rem; }
.pricing__card-price { margin-bottom: 0.3rem; }
.pricing__card-price-label { font-size: 0.75rem; color: var(--text-muted); display: block; margin-bottom: 0.2rem; }
.pricing__card-price-value { font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; color: var(--primary); }
.pricing__card-price-ttc { font-family: var(--font-body); font-size: 0.7rem; font-weight: 600; color: var(--text-muted); vertical-align: middle; letter-spacing: 0.5px; }
.pricing__card-surface { font-size: 0.7rem; color: var(--text-muted); font-style: italic; margin-bottom: 1rem; }
.pricing__card-list { margin-bottom: 0; flex-grow: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.pricing__card-list li { padding: 0.25rem 0; font-size: 0.9rem; }
.pricing__card .btn { margin-top: auto; }
.pricing__card-list li::before { content: '✓ '; color: var(--primary); font-weight: 700; }
.pricing__card-list--2cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0.2rem 1rem; align-content: center; }

/* Indicateur de scroll mobile */
.pricing__scroll-hint {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.pricing__scroll-hint span {
  width: 8px; height: 8px;
  background: var(--border);
  border-radius: 50%;
  transition: background 0.2s;
}
.pricing__scroll-hint span.active { background: var(--primary); }

/* === DPE seul — encart sous les cards === */
.pricing__dpe-only {
  margin: 2rem auto 0;
  max-width: 700px;
  padding: 1rem 1.5rem;
  background: var(--bg-light);
  border: 1px dashed var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}
.pricing__dpe-only-icon { font-size: 1.6rem; line-height: 1; }
.pricing__dpe-only-text { font-size: 1rem; color: var(--text); flex: 1 1 auto; min-width: 0; }
.pricing__dpe-only-text strong { color: var(--primary-dark); }
.pricing__dpe-only-link { color: var(--accent); font-weight: 600; text-decoration: none; white-space: nowrap; }
.pricing__dpe-only-link:hover { text-decoration: underline; }
@media (max-width: 599px) {
  .pricing__dpe-only { flex-direction: column; gap: 0.5rem; padding: 0.85rem 1rem; }
  .pricing__dpe-only-text { font-size: 0.9rem; }
}


/* Pricing compact mobile */
@media (max-width: 599px) {
  .pricing__card {
    flex: 0 0 220px; padding: 1rem;
  }
  .pricing__card-icon { font-size: 1.8rem; width: 36px; height: 36px; margin-bottom: 0.4rem; }
  .pricing__card-title { font-size: 1rem; }
  .pricing__card-subtitle { font-size: 0.75rem; margin-bottom: 0.6rem; }
  .pricing__card-price-value { font-size: 1.7rem; }
  .pricing__card-price-label { font-size: 0.7rem; }
  .pricing__card-surface { font-size: 0.65rem; margin-bottom: 0.6rem; }
  .pricing__card-list li { font-size: 0.8rem; padding: 0.15rem 0; }
  .pricing__card .btn { padding: 0.5rem 1rem; font-size: 0.8rem; }
}

/* Tablet et Desktop: grille */
@media (min-width: 600px) {
  .pricing__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    overflow-x: visible;
    margin: 0;
    padding: 0;
  }
  .pricing__card { flex: none; }
  .pricing__scroll-hint { display: none; }
}
@media (min-width: 1024px) {
  .pricing__grid { grid-template-columns: repeat(4, 1fr); }
}

/* ===========================================
   SECTION: AVIS
   =========================================== */
.reviews__header { text-align: center; margin-bottom: 2rem; }
.reviews__rating { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 1rem; }
.reviews__rating-score { font-family: var(--font-head); font-size: 3rem; font-weight: 800; color: var(--primary); }
.reviews__rating-stars { color: var(--accent-text); font-size: 1.5rem; }
.reviews__rating-count a { color: var(--text-muted); font-size: 0.9rem; }
.reviews__rating-count a:hover { color: var(--primary); }
.reviews__grid { display: grid; gap: 1rem; align-items: stretch; }

/* Fix #4: Avis cliquables individuellement */
.review-card {
  background: var(--bg-white); border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow); display: flex; flex-direction: column; text-decoration: none; color: inherit;
  transition: transform 0.2s, box-shadow 0.2s; cursor: pointer;
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.review-card__header { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.8rem; }
.review-card__avatar { width: 45px; height: 45px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; }
.review-card__author { font-weight: 600; }
.review-card__date { font-size: 0.75rem; color: var(--text-muted); }
.review-card__stars { color: var(--accent-text); margin-bottom: 0.5rem; }
.review-card__text { font-size: 0.9rem; color: var(--text-muted); }
@media (min-width: 768px) { .reviews__grid { grid-template-columns: repeat(3, 1fr); } }

/* ===========================================
   SECTION: ZONE
   =========================================== */
.zone__header { text-align: center; margin-bottom: 2rem; }
.zone__content { display: grid; gap: 2rem; align-items: center; }
.zone__map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; background: var(--bg-cream); }
.zone__map svg { width: 100%; height: 100%; }
.zone__info h3 { margin-bottom: 0.5rem; }
.zone__info p { font-size: 0.95rem; line-height: 1.6; }
@media (min-width: 1024px) { .zone__content { grid-template-columns: 1fr 1fr; } }

/* ===========================================
   SECTION: REGLEMENTATION
   =========================================== */
.actus__timeline { position: relative; padding-left: 2rem; }
.actus__timeline::before { content: ''; position: absolute; left: 7px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.actus__item { position: relative; margin-bottom: 1.5rem; }
.actus__marker { position: absolute; left: -2rem; top: 0.3rem; width: 16px; height: 16px; background: var(--primary); border-radius: 50%; border: 3px solid var(--bg-cream); }
.actus__item--current .actus__marker { background: var(--accent); }
.actus__card { background: var(--bg-white); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }
.actus__date { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; }
.actus__title { font-size: 1rem; margin: 0.3rem 0; }
.actus__badge { background: var(--accent); color: white; padding: 0.15rem 0.5rem; border-radius: var(--radius-full); font-size: 0.7rem; margin-left: 0.5rem; }
.actus__desc { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* ===========================================
   SECTION: EQUIPE
   =========================================== */
.team__header { text-align: center; margin-bottom: 2rem; }
.team__grid { display: grid; gap: 1.5rem; align-items: stretch; }
.team-card { background: var(--bg-white); border-radius: var(--radius); padding: 2rem; text-align: center; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.team-card__avatar { width: 80px; height: 80px; background: var(--primary); border-radius: 50%; margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; color: white; font-size: 2rem; font-family: var(--font-head); font-weight: 700; overflow: hidden; }
.team-card__avatar svg { width: 100%; height: 100%; display: block; }
.team-card__name { font-size: 1.2rem; margin-bottom: 0.3rem; }
.team-card__role { color: var(--accent-text); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.8rem; }
.team-card__description { font-size: 0.9rem; color: var(--text-muted); }
@media (min-width: 768px) { .team__grid { grid-template-columns: repeat(3, 1fr); } }

/* Team scroll hint */
.team__scroll-hint {
  display: none; justify-content: center; gap: 0.5rem; margin-top: 0.5rem;
}
.team__scroll-hint span {
  width: 8px; height: 8px; background: var(--border); border-radius: 50%; transition: background 0.2s;
}
.team__scroll-hint span.active { background: var(--primary); }

/* Team compact mobile - carrousel horizontal */
@media (max-width: 767px) {
  .team__grid {
    display: flex; gap: 0.8rem;
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin: 0 -1.5rem; padding: 0.5rem 1.5rem 1rem;
  }
  .team__grid::-webkit-scrollbar { display: none; }
  .team__grid { -ms-overflow-style: none; scrollbar-width: none; }
  .team-card {
    flex: 0 0 220px; scroll-snap-align: start;
    padding: 1.2rem; 
  }
  .team-card__avatar { width: 50px; height: 50px; font-size: 1.3rem; margin-bottom: 0.6rem; }
  .team-card__name { font-size: 1rem; margin-bottom: 0.2rem; }
  .team-card__role { font-size: 0.8rem; margin-bottom: 0.5rem; }
  .team-card__description { font-size: 0.8rem; line-height: 1.4; }
  .team__scroll-hint { display: flex; }
}

/* ===========================================
   SECTION: CTA
   =========================================== */
.cta { padding: 3rem 0; }
.cta h2 { margin-bottom: 1.5rem; }

/* ===========================================
   FOOTER
   =========================================== */
/* ===========================================
   BOUTON APPEL FLOTTANT
   =========================================== */
.callback-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 90;
  width: 56px; height: 56px; background: #ffffff; border: 2px solid var(--primary); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  box-shadow: 0 4px 15px rgba(0,0,0,0.12);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
  text-decoration: none;
  overflow: hidden; flex-shrink: 0; box-sizing: border-box;
}
.callback-float svg { width: 24px !important; height: 24px !important; flex-shrink: 0; display: block; }
.callback-float:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(0,0,0,0.18); background: var(--primary); color: #ffffff; }

/* Validation formulaire — uniquement via JS (classe .error) */
.form__input.error, .form__select.error {
  border-color: #E24B4A;
  background: #FCEBEB;
}
.form__error {
  color: #A32D2D;
  font-size: 0.75rem;
  margin-top: 0.2rem;
  display: none;
}
.form__group.has-error .form__error { display: block; }
/* Bordure reste grise sauf erreur */

/* Autocomplete ville */
.form__autocomplete {
  position: relative;
}
.form__suggestions {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  background: #fff;
  border: 2px solid var(--primary);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 220px;
  overflow-y: auto;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.form__suggestions.visible {
  display: block;
}
.form__suggestions li {
  padding: 0.6rem 0.8rem;
  font-size: 0.9rem;
  cursor: pointer;
  color: #374151;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s;
}
.form__suggestions li:last-child {
  border-bottom: none;
}
.form__suggestions li:hover,
.form__suggestions li.active {
  background: var(--bg-cream);
  color: var(--primary-dark);
}
.form__suggestions li .dept {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-left: 0.3rem;
}
.form__input--validated {
  border-color: var(--primary) !important;
  background: #f0fdf4 !important;
}

/* Modale confirmation */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all 0.3s ease;
  padding: 1rem;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
  background: var(--bg-white); border-radius: var(--radius);
  max-width: 420px; width: 100%; padding: 2rem;
  text-align: center; box-shadow: var(--shadow-lg);
  transform: scale(0.9); transition: transform 0.3s ease;
}
.modal-overlay.active .modal { transform: scale(1); }
.modal__logo { display: flex; justify-content: center; margin-bottom: 1.5rem; }
.modal__logo .logo__text { font-size: 1.4rem; }
.modal__icon { font-size: 3rem; margin-bottom: 1rem; }
.modal__title { font-family: var(--font-head); font-size: 1.3rem; color: var(--primary); margin-bottom: 0.5rem; }
.modal__text { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; line-height: 1.5; }
.modal__actions { display: flex; flex-direction: column; gap: 0.8rem; }
.modal__btn-google { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; background: var(--bg-cream); color: var(--primary); padding: 0.8rem 1.5rem; border-radius: var(--radius-full); font-weight: 600; transition: all 0.2s; }
.modal__btn-google:hover { background: var(--primary); color: white; }
.modal__btn-close { background: none; border: none; color: var(--text-muted); font-size: 0.9rem; cursor: pointer; padding: 0.5rem; }
.modal__btn-close:hover { color: var(--primary); }
.callback-float svg { width: 24px; height: 24px; }
@media (max-width: 767px) {
  .callback-float { box-shadow: 0 3px 10px rgba(0,0,0,0.1); }
  .callback-float:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
}

/* Bouton appel remonté au-dessus du bandeau cookies */
body:has(#cookieBanner) .callback-float {
  bottom: 5.5rem;
}
@media (max-width: 600px) {
  body:has(#cookieBanner) .callback-float {
    bottom: 7.5rem;
  }
}

/* ===========================================
   PAGE HEADER (diagnostics, tout-savoir)
   =========================================== */
.page-header { padding-top: calc(var(--header-height) + 2rem); padding-bottom: 2rem; background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-cream) 100%); text-align: center; }
.page-header h1 { margin-bottom: 0.5rem; }
.page-header p { color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* ===========================================
   DIAGNOSTICS CARDS
   =========================================== */
.diag-grid { display: grid; gap: 1.5rem; }
.diag-card {
  background: var(--bg-white); border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow); border-left: 4px solid var(--primary); transition: all 0.2s;
  scroll-margin-top: calc(var(--header-height) + 2rem);
}
.diag-card:hover { transform: translateX(4px); box-shadow: var(--shadow-lg); }
.diag-card__header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 0.8rem; }
.diag-card__icon { width: 48px; height: 48px; background: var(--accent-light); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.diag-card__tags { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.diag-card__tag { padding: 0.2rem 0.5rem; border-radius: var(--radius-full); font-size: 0.7rem; font-weight: 600; }
.diag-card__tag--vente { background: var(--primary); color: white; }
.diag-card__tag--location { background: var(--accent); color: white; }
.diag-card__title { font-size: 1.1rem; margin-bottom: 0.5rem; }
.diag-card__desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.8rem; }
.diag-card__meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.8rem; color: var(--text-muted); }
@media (min-width: 768px) { .diag-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===========================================
   FAQ ACCORDION
   =========================================== */
.faq__header { text-align: center; margin-bottom: 2rem; }
.faq__list { max-width: 800px; margin: 0 auto; }
.faq__item { background: var(--bg-white); border-radius: var(--radius); margin-bottom: 0.8rem; box-shadow: var(--shadow); overflow: hidden; }
.faq__question {
  width: 100%; padding: 1.2rem 1.5rem; border: none; background: none;
  text-align: left; font-family: var(--font-head); font-size: 1rem; font-weight: 600;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  transition: background 0.2s;
}
.faq__question:hover { background: var(--bg-cream); }
.faq__question::after {
  content: '+'; font-size: 1.5rem; color: var(--primary); transition: transform 0.3s;
}
.faq__item.open .faq__question::after { content: '−'; }
.faq__answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq__item.open .faq__answer { max-height: 800px; }
.faq__answer-inner { padding: 0 1.5rem 1.2rem; font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }

/* ===========================================
   TIMELINE (réglementation)
   =========================================== */
.timeline__header { text-align: center; margin-bottom: 2rem; }
.timeline-grid { display: grid; gap: 1rem; }
.timeline-card { background: var(--bg-white); border-radius: var(--radius); padding: 1rem 1.2rem; box-shadow: var(--shadow); border-left: 3px solid var(--primary); }
.timeline-card__date {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary); color: white; padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full); font-family: var(--font-head);
  font-weight: 700; font-size: 0.85rem; margin-bottom: 0.5rem;
}
.timeline-card__date--accent { background: var(--accent); }
.timeline-card__title { margin-bottom: 0.3rem; font-size: 1rem; }
.timeline-card__desc { font-size: 0.8rem; color: var(--text-muted); margin: 0; line-height: 1.4; }
@media (min-width: 768px) { .timeline-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .timeline-grid {
    display: flex; gap: 0; overflow-x: auto; padding: 0 2rem 1rem;
    position: relative; max-width: 100%; scroll-snap-type: x mandatory;
  }
  .timeline-grid::before {
    content: ''; position: absolute; left: 2rem; right: 3rem; top: 42px;
    height: 3px; background: var(--primary); border-radius: 2px; z-index: 0;
  }
  .timeline-grid::after {
    content: ''; position: absolute; right: 2rem; top: 42px; transform: translateY(-50%);
    border: 6px solid transparent; border-left: 10px solid var(--primary); z-index: 1;
  }
  .timeline-card {
    flex: 0 0 160px; position: relative; border-left: none; border-top: none;
    padding-top: 70px; margin: 0 0.5rem; z-index: 2; scroll-snap-align: start;
  }
  .timeline-card::before {
    content: ''; position: absolute; left: 50%; top: 36px; width: 14px; height: 14px;
    background: var(--primary); border: 3px solid var(--bg-cream); border-radius: 50%;
    transform: translateX(-50%); z-index: 3;
  }
  .timeline-card::after {
    content: ''; position: absolute; left: 50%; top: 50px; width: 2px; height: 20px;
    background: var(--primary); transform: translateX(-50%); z-index: 2;
  }
}


/* === RADIO BUTTONS === */
.form__radio-group { display: flex; gap: 1.5rem; height: 44px; align-items: center; }
.form__radio { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.form__radio input[type="radio"] { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; margin: 0; }
.form__radio span { font-size: 0.95rem; color: var(--text); }

/* === CHECKBOX === */
.form__checkbox { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; height: 44px; }
.form__checkbox input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; margin: 0; }
.form__checkbox span { font-size: 0.95rem; color: var(--text); }

/* === ORDERS DESKTOP === */
@media (min-width: 768px) {
  .form__group--nom { order: 1; }
  .form__group--projet { order: 2; }
  .form__group--email { order: 3; }
  .form__group--type-bien { order: 4; }
  .form__group--telephone { order: 5; }
  .form__group--ville { order: 6; }
  .form__group--gaz { order: 7; }
  .form__group--surface { order: 8; }
  .form__group--construction { order: 9; grid-column: 2; }
  .form__group--message { order: 10; }
}

/* === MODALE COOKIES — Refonte style Sony (2026-05-15) === */
/* Modale centrale fade-in 300ms + overlay assombri. Boutons CNIL au meme niveau. */

.cookie-banner {
  position: fixed; inset: 0;
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.cookie-banner.is-visible { opacity: 1; visibility: visible; }

.cookie-banner__overlay {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.cookie-banner__inner {
  position: relative;
  max-width: 540px;
  width: 100%;
  background: #fff;
  border-radius: var(--radius);
  border-top: 3px solid var(--primary);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  padding: 1.75rem 1.75rem 1.5rem;
  display: flex; flex-direction: column; gap: 1.25rem;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.cookie-banner.is-visible .cookie-banner__inner { transform: translateY(0) scale(1); }

.cookie-banner__text { color: var(--text); }
.cookie-banner__title {
  display: block; font-family: var(--font-head); font-size: 1.25rem; font-weight: 700;
  color: var(--primary-dark); margin: 0 0 0.6rem;
}
.cookie-banner__text p { font-size: 0.9rem; line-height: 1.55; margin: 0; color: var(--text-muted); }
.cookie-banner__text a { color: var(--primary); text-decoration: underline; font-weight: 500; }

.cookie-banner__buttons {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  justify-content: stretch;
}

/* Boutons cookies (modale arrivee ET modale Personnaliser) */
.cookie-btn {
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
  line-height: 1.1;
  flex: 1 1 0;
  min-width: 0;
}
.cookie-btn--primary { background: var(--primary); color: #fff; }
.cookie-btn--primary:hover { background: var(--primary-dark); }
.cookie-btn--secondary { background: #fff; color: var(--text); border-color: var(--border); }
.cookie-btn--secondary:hover { background: var(--bg-cream); border-color: var(--primary); color: var(--primary); }

/* Tablette : modale conserve son layout */
@media (max-width: 600px) {
  .cookie-banner { padding: 0.75rem; align-items: flex-end; }
  .cookie-banner__inner {
    padding: 1.25rem 1.1rem 1.1rem;
    border-radius: var(--radius) var(--radius) 0 0;
    border-top-width: 3px;
    max-width: 100%;
    gap: 1rem;
  }
  .cookie-banner__title { font-size: 1.1rem; }
  .cookie-banner__text p { font-size: 0.82rem; line-height: 1.45; }
  .cookie-banner__buttons {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem;
  }
  .cookie-btn { padding: 0.6rem 0.4rem; font-size: 0.78rem; flex: none; width: 100%; }
  #cookieAcceptAllBtn { grid-column: 1 / -1; order: 3; }
  #cookieRefuseAllBtn { order: 1; }
  #cookieCustomizeBtn { order: 2; }
}
/* Empeche scroll du fond quand modale ouverte (geree via body class si besoin) */
body.cookie-banner-open { overflow: hidden; }

/* === MODALE COOKIES (Personnaliser) === */
.cookie-modal {
  position: fixed; inset: 0;
  z-index: 10000;
  opacity: 0; visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.cookie-modal.is-visible { opacity: 1; visibility: visible; }
body.cookie-modal-open { overflow: hidden; }

.cookie-modal__overlay {
  position: absolute; inset: 0;
  background: rgba(26, 74, 50, 0.55);
  backdrop-filter: blur(2px);
}
.cookie-modal__dialog {
  position: relative;
  max-width: 600px; width: calc(100% - 2rem);
  max-height: calc(100vh - 2rem);
  margin: 1rem auto;
  top: 50%; transform: translateY(-50%);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.cookie-modal__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.cookie-modal__header h2 {
  font-family: var(--font-head);
  font-size: 1.25rem; font-weight: 700;
  color: var(--primary-dark); margin: 0;
}
.cookie-modal__close {
  background: none; border: none;
  font-size: 2rem; line-height: 1;
  color: var(--text-muted); cursor: pointer;
  padding: 0; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}
.cookie-modal__close:hover { background: var(--bg-cream); color: var(--text); }

.cookie-modal__body { padding: 1.5rem; overflow-y: auto; flex: 1; }
.cookie-modal__intro {
  font-size: 0.9rem; line-height: 1.5;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

/* Carte par catégorie */
.cookie-cat {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}
.cookie-cat:last-child { margin-bottom: 0; }
.cookie-cat__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 0.5rem;
}
.cookie-cat__title {
  font-family: var(--font-head);
  font-size: 1rem; font-weight: 700;
  color: var(--primary-dark); margin: 0;
}
.cookie-cat__locked {
  font-size: 0.75rem; font-weight: 600;
  color: var(--text-muted);
  background: #fff;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.cookie-cat__desc {
  font-size: 0.85rem; line-height: 1.5;
  color: var(--text-muted); margin: 0;
}
.cookie-cat__desc strong { color: var(--text); }

/* Toggle switch (iOS-like) */
.cookie-switch {
  position: relative; display: inline-block;
  width: 46px; height: 26px; flex-shrink: 0;
  cursor: pointer;
}
.cookie-switch input { opacity: 0; width: 0; height: 0; }
.cookie-switch__slider {
  position: absolute; inset: 0;
  background: #ccc;
  border-radius: 26px;
  transition: background 0.2s;
}
.cookie-switch__slider::before {
  content: '';
  position: absolute;
  height: 20px; width: 20px;
  left: 3px; bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.cookie-switch input:checked + .cookie-switch__slider { background: var(--primary); }
.cookie-switch input:checked + .cookie-switch__slider::before { transform: translateX(20px); }
.cookie-switch input:focus-visible + .cookie-switch__slider { box-shadow: 0 0 0 3px rgba(58, 125, 92, 0.25); }

.cookie-modal__footer {
  display: flex; gap: 0.5rem; justify-content: flex-end;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  background: #fafafa;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* Mobile modale : footer boutons stack, scroll body */
@media (max-width: 600px) {
  .cookie-modal__dialog { width: calc(100% - 1rem); margin: 0.5rem auto; max-height: calc(100vh - 1rem); }
  .cookie-modal__header { padding: 1rem 1.25rem; }
  .cookie-modal__header h2 { font-size: 1.1rem; }
  .cookie-modal__body { padding: 1.25rem; }
  .cookie-modal__intro { font-size: 0.85rem; }
  .cookie-cat { padding: 0.85rem 1rem; }
  .cookie-cat__title { font-size: 0.95rem; }
  .cookie-cat__desc { font-size: 0.8rem; }
  .cookie-modal__footer { flex-direction: column-reverse; padding: 1rem 1.25rem; }
  .cookie-modal__footer .cookie-btn { width: 100%; padding: 0.75rem; }
}

/* === LIEN FOOTER "Gérer mes cookies" === */
.footer__cookie-wrap {
  text-align: center;
  padding: 0.75rem 1rem 0.25rem;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer__cookie-link {
  display: inline-block;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  text-decoration: underline;
  cursor: pointer;
  background: none; border: none;
  font-family: inherit;
  transition: color 0.2s;
}
.footer__cookie-link:hover { color: #fff; }

/* === FOOTER === */
.footer { background: var(--primary-dark); color: rgba(255,255,255,0.85); padding: 2.5rem 0 1rem; }
.footer .logo__good, .footer .logo__immo { color: #ffffff; }
.footer .logo__diag { color: var(--accent-text); }
.footer .logo__roof path { fill: var(--accent); }
.footer__tagline { font-size: 0.8rem; color: rgba(255,255,255,0.5); line-height: 1.6; margin: 0.8rem 0 1rem; }
.footer__social { display: flex; gap: 0.5rem; }
.footer__social a { width: 32px; height: 32px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.footer__social a:hover { background: var(--accent); border-color: var(--accent); }
.footer__social svg { width: 14px; height: 14px; fill: rgba(255,255,255,0.7); }
.footer__social a:hover svg { fill: white; }
.footer__columns { display: grid; grid-template-columns: 1.4fr 1fr 1.5fr 0.8fr 0.8fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.footer__col { display: flex; flex-direction: column; gap: 0.4rem; }
.footer__col a, .footer__col span { font-size: 0.82rem; color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.2s; }
.footer__col a:hover { color: var(--accent-text); }
.footer__col-title { font-size: 0.72rem; font-weight: 600; color: var(--accent-text); text-transform: uppercase; letter-spacing: 1px; margin: 0 0 0.4rem; }
.footer__villes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem 1rem; }
.footer__villes-grid a { font-size: 0.82rem; color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.2s; }
.footer__villes-grid a:hover { color: var(--accent-text); }
.footer__all-villes { margin-top: 0.5rem; font-size: 0.82rem; color: rgba(255,255,255,0.8) !important; text-decoration: underline !important; }
.footer__all-villes:hover { color: var(--accent-text) !important; }
.footer__bottom { padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.footer__bottom p { font-size: 0.72rem; color: rgba(255,255,255,0.35); margin: 0; }
.footer__bottom a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer__bottom a:hover { color: var(--accent-text); }
@media (max-width: 900px) {
  .footer__columns { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer__col:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer__columns { grid-template-columns: 1fr 1fr; gap: 1.2rem 1rem; }
  .footer__col:first-child { grid-column: 1 / -1; text-align: center; align-items: center; }
  .footer__social { justify-content: center; }
  .footer__col-title { font-size: 0.68rem; }
  .footer__col a, .footer__col span { font-size: 0.78rem; }
  .footer__villes-grid { display: grid; grid-template-columns: 1fr; }
  .footer__villes-grid a:nth-child(n+4) { display: none; }
  .footer__col--contact, .footer__col--infos {
    grid-column: 1 / -1; text-align: center; align-items: center;
    border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1rem;
    display: flex; flex-direction: row; justify-content: center;
    gap: 0.4rem 1.2rem; flex-wrap: wrap;
  }
  .footer__col--contact .footer__col-title,
  .footer__col--infos .footer__col-title { width: 100%; }
  .footer__bottom { justify-content: center; text-align: center; }
}

/* === BREADCRUMB === */
.breadcrumb { padding: 0.6rem 0; padding-top: calc(var(--header-height) + 0.6rem); background: var(--bg-cream); border-bottom: 1px solid var(--border); }
.breadcrumb + .page-header { padding-top: 1.5rem; }
.breadcrumb + .hero { margin-top: 0; }
.breadcrumb + .hero .hero__content { padding-top: 0; }
.breadcrumb__list { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem; font-size: 0.8rem; color: var(--text-muted); }
.breadcrumb__list a { color: var(--primary); text-decoration: none; }
.breadcrumb__list a:hover { text-decoration: underline; }
.breadcrumb__sep { color: var(--border); }

/* === PAGES LÉGALES === */
.legal-page { padding: 2rem 0; }
.legal-page__container { max-width: 800px; margin: 0 auto; }
.legal-page__update { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 2rem; font-style: italic; }
.legal-section { background: var(--bg-white); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1rem; box-shadow: var(--shadow); }
.legal-section h2 { color: var(--primary); font-size: 1.05rem; margin-bottom: 0.6rem; padding-bottom: 0.4rem; border-bottom: 2px solid var(--accent-light); }
.legal-section p { font-size: 0.9rem; line-height: 1.7; color: var(--text); margin-bottom: 0.4rem; }
.legal-section ul { padding-left: 1.2rem; list-style: disc; }
.legal-section li { font-size: 0.9rem; line-height: 1.7; color: var(--text); margin-bottom: 0.3rem; }
.legal-section a { color: var(--primary); text-decoration: underline; }

/* === PAGES DIAGNOSTIC DÉTAIL === */
.diag-detail__block { margin-bottom: 2rem; }
.diag-detail__block h2 { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 700; color: var(--text); margin-bottom: 0.75rem; }
.diag-detail__block p { font-size: 1rem; line-height: 1.8; color: var(--text-light); }
.diag-link { display: inline-block; color: var(--primary); font-weight: 600; text-decoration: none; transition: color 0.2s; }
.diag-link:hover { color: var(--primary-dark); text-decoration: underline; }

/* =============================================================================
   LOCAL INFO — Section spécificités locales (pages SEO villes)
   ============================================================================= */
.local-info { max-width: 720px; margin: 0 auto; text-align: center; }
.local-info h2 { margin-bottom: 1rem; }
.local-info__text { color: #555; line-height: 1.7; font-size: 1rem; }

/* Honeypot anti-spam (invisible pour les humains) */
.form__hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* Skip link accessibilité (injecté par main.js) */
.skip-link {
  position: absolute; left: -9999px; top: auto;
  padding: 0.5rem 1rem; background: var(--primary); color: white;
  font-size: 0.9rem; font-weight: 600; z-index: 10000;
  border-radius: 0 0 var(--radius) 0; text-decoration: none;
}
.skip-link:focus { left: 0; top: 0; }

/* =============================================================================
   === BLOG (liste articles + cards) ===
   ============================================================================= */
.blog-grid { display: grid; gap: 1.5rem; margin-top: 2rem; }
.blog-card { display: block; background: var(--bg-white); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; border-left: 3px solid var(--primary); }
.blog-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.blog-card__title { font-size: 1.1rem; font-weight: 700; color: var(--text); margin: 0 0 0.3rem; font-family: var(--font-head); }
.blog-card__meta { font-size: 0.8rem; color: var(--text-muted); margin: 0 0 0.8rem; }
.blog-card__desc { font-size: 0.9rem; color: var(--text-muted); margin: 0 0 0.8rem; line-height: 1.6; }
.blog-card__link { font-size: 0.85rem; color: var(--primary); font-weight: 600; }
@media (min-width: 768px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }

/* =============================================================================
   === ARTICLE (pages blog individuelles) ===
   ============================================================================= */
.article { max-width: 740px; margin: 0 auto; padding: 2rem 1.5rem; }
.article h1 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 0.5rem; }
.article-meta { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 2rem; }
.article-intro { font-size: 1.05rem; line-height: 1.8; color: var(--text); margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.article h2 { font-size: 1.3rem; margin: 2rem 0 0.8rem; color: var(--primary-dark); }
.article h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
.article p { font-size: 0.95rem; line-height: 1.8; margin-bottom: 1rem; }
.article table { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.article-back { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.85rem; color: var(--primary); font-weight: 600; margin-bottom: 1.5rem; }

/* =============================================================================
   === ZONES D'INTERVENTION ===
   ============================================================================= */
.zones-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-top: 2rem; }
.zone-card { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.2rem; background: var(--bg-white); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; border-left: 3px solid var(--primary); }
.zone-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.zone-card__name { font-weight: 600; color: var(--text); font-size: 0.95rem; }
.zone-card__cp { font-size: 0.8rem; color: var(--text-muted); }

/* =============================================================================
   CALLBACK LINK + MODAL — "Me faire rappeler"
   ============================================================================= */
.callback-link { display: inline-block; margin-top: 0.6rem; background: none; border: 0; padding: 0.35rem 0.5rem; font-family: var(--font-body); font-size: 0.82rem; font-weight: 600; color: var(--primary); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; transition: color 0.15s; }
.callback-link:hover { color: var(--primary-dark); }
.callback-link:focus-visible { color: var(--primary-dark); outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

.callback-modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.callback-modal[hidden] { display: none; }
.callback-modal__backdrop { position: absolute; inset: 0; background: rgba(26,74,50,0.55); backdrop-filter: blur(2px); }
.callback-modal__panel { position: relative; width: 100%; max-width: 420px; background: #fff; border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,0.25); padding: 1.5rem 1.4rem 1.2rem; animation: callbackIn 0.2s ease; }
@keyframes callbackIn { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.callback-modal__close { position: absolute; top: 0.5rem; right: 0.7rem; background: none; border: 0; font-size: 1.6rem; line-height: 1; color: var(--text-muted); cursor: pointer; padding: 0.2rem 0.5rem; border-radius: 50%; transition: background 0.15s; }
.callback-modal__close:hover { background: var(--bg-cream); color: var(--text); }
.callback-modal__close:focus-visible { background: var(--bg-cream); color: var(--text); outline: 2px solid var(--primary); outline-offset: 2px; }
.callback-modal__title { font-family: var(--font-head); font-size: 1.35rem; margin: 0 0 0.25rem; color: var(--primary-dark); }
.callback-modal__subtitle { font-size: 0.85rem; color: var(--text-muted); margin: 0 0 1rem; }
.callback-modal__form { display: flex; flex-direction: column; gap: 0.7rem; }
.callback-modal__label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.82rem; font-weight: 600; color: var(--text); }
.callback-modal__label input, .callback-modal__label select { font-family: var(--font-body); font-size: 0.95rem; padding: 0.55rem 0.7rem; border: 1.5px solid #d8dde3; border-radius: 8px; background: #fff; color: var(--text); transition: border-color 0.15s; }
.callback-modal__label input:focus, .callback-modal__label select:focus { outline: none; border-color: var(--primary); }
.callback-modal__actions { display: flex; justify-content: flex-end; margin-top: 0.4rem; }
.callback-modal__rgpd { font-size: 0.7rem; color: var(--text-muted); line-height: 1.4; margin: 0.5rem 0 0; text-align: center; }

/* =============================================================================
   TOASTS — remplacement des alert() natifs
   ============================================================================= */
.toast-container { position: fixed; top: 1rem; right: 1rem; z-index: 10001; display: flex; flex-direction: column; gap: 0.5rem; max-width: 360px; pointer-events: none; }
.toast { background: #fff; border-left: 4px solid var(--primary); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); padding: 0.85rem 1rem; font-size: 0.9rem; color: var(--text); line-height: 1.4; pointer-events: auto; animation: toastIn 0.25s ease; display: flex; align-items: flex-start; gap: 0.6rem; }
.toast--success { border-left-color: var(--primary); }
.toast--error { border-left-color: #c23b22; }
.toast--info { border-left-color: var(--accent-text); }
.toast__close { margin-left: auto; background: none; border: 0; font-size: 1.1rem; color: var(--text-muted); cursor: pointer; padding: 0 0.2rem; }
.toast__close:hover { color: var(--text); }
.toast.toast--out { animation: toastOut 0.2s ease forwards; }
@keyframes toastIn { from { transform: translateX(12px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toastOut { to { transform: translateX(12px); opacity: 0; } }
@media (max-width: 600px) {
  .toast-container { top: 0.5rem; right: 0.5rem; left: 0.5rem; max-width: none; }
  .callback-modal__panel { padding: 1.2rem 1rem 1rem; }
}

/* =============================================================================
   WIDGET DIAGS v7 (desktop sticky dans wrapper flex, mobile fixed top)
   ============================================================================= */

/* DESKTOP : wrapper flex, sidebar à côté du form */
.form-layout {
  display: flex;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  align-items: flex-start;
}
.form-layout .form-section {
  flex: 1 1 auto;
  margin: 0 !important;
  max-width: none !important;
}

.diags-sidebar {
  flex: 0 0 300px;
  position: sticky;
  top: calc(var(--header-height) + 20px);
  align-self: flex-start;
  max-height: calc(100vh - var(--header-height) - 40px);
  display: flex;
  flex-direction: column;
}

.diags-sidebar__inner {
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(26, 74, 50, 0.12);
  overflow: hidden;
  border: 1px solid rgba(58, 125, 92, 0.12);
  display: flex;
  flex-direction: column;
  max-height: 100%;
  min-height: 0;
}
.diags-sidebar__header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: none;
  cursor: default;
  text-align: left;
  font-family: var(--font-body);
  flex-shrink: 0;
}
.diags-sidebar__header-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(240, 162, 41, 0.25);
  border-radius: 8px;
  color: var(--accent-text);
}
.diags-sidebar__header-icon svg { width: 16px; height: 16px; }
.diags-sidebar__header-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.diags-sidebar__header-title {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.diags-sidebar__header-subtitle {
  font-size: 0.7rem;
  opacity: 0.85;
  font-weight: 400;
  margin-top: 2px;
}
.diags-sidebar__chevron {
  display: none;
  font-size: 1rem;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 8px;
}
.diags-sidebar.is-open .diags-sidebar__chevron { transform: rotate(180deg); }
.diags-sidebar__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.diags-sidebar__list {
  list-style: none;
  padding: 4px 0;
  margin: 0;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}
.diags-sidebar__list::-webkit-scrollbar { width: 6px; }
.diags-sidebar__list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.diags-sidebar__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 18px;
  font-size: 0.88rem;
  color: var(--text);
  position: relative;
  animation: slideInDiag 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: background 0.2s ease;
}
.diags-sidebar__list li:hover { background: var(--bg-light); }
.diags-sidebar__list li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
}
.diags-sidebar__icon {
  width: 28px; height: 28px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-light); border-radius: 8px; color: var(--accent-text);
}
.diags-sidebar__icon svg { width: 16px; height: 16px; }
.diags-sidebar__item-name {
  font-weight: 600;
  font-family: var(--font-head);
  flex: 1;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.diags-sidebar__placeholder {
  text-align: center;
  padding: 20px 18px !important;
  color: var(--text-muted) !important;
  font-style: italic;
  font-size: 0.82rem !important;
  display: block !important;
  background: none !important;
}
.diags-sidebar__placeholder::after { display: none !important; }
.diags-sidebar__counter {
  background: linear-gradient(135deg, var(--accent) 0%, #d8911f 100%);
  color: white;
  padding: 14px 18px;
  text-align: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.diags-sidebar__counter[hidden] { display: none; }
.diags-sidebar__counter::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.15) 0%, transparent 50%);
  pointer-events: none;
}
.diags-sidebar__counter-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 2px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.diags-sidebar__counter-label {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.95;
}
@keyframes slideInDiag {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

/* MOBILE/TABLETTE (<1024px) : barre fixe en haut, slide-down via observer */
@media (max-width: 1023px) {
  .form-layout {
    display: block;
    max-width: 600px;
  }
  .form-layout .form-section {
    max-width: 600px !important;
    margin: 0 auto !important;
  }
  .diags-sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    width: auto;
    max-height: calc(100vh - var(--header-height));
    flex: none;
    z-index: 998;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.25s ease;
  }
  .diags-sidebar.is-visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .diags-sidebar.is-menu-blocked {
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
  }
  .diags-sidebar__inner {
    border-radius: 0 0 12px 12px;
    box-shadow: 0 6px 18px rgba(26, 74, 50, 0.18);
    border: none;
    border-top: 1px solid rgba(58, 125, 92, 0.15);
    max-height: calc(100vh - var(--header-height));
  }
  /* Header mobile compact */
  .diags-sidebar__header {
    padding: 10px 14px;
    cursor: pointer;
    gap: 8px;
  }
  .diags-sidebar__header-icon {
    width: 26px;
    height: 26px;
  }
  .diags-sidebar__header-icon svg {
    width: 14px;
    height: 14px;
  }
  .diags-sidebar__header-title {
    font-size: 0.85rem;
  }
  .diags-sidebar__header-subtitle {
    font-size: 0.65rem;
    margin-top: 1px;
  }
  .diags-sidebar__chevron {
    display: block;
  }
  /* Body collapsé par défaut, ouvre au clic header */
  .diags-sidebar__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .diags-sidebar.is-open .diags-sidebar__body {
    max-height: calc(100vh - var(--header-height) - 70px);
    overflow-y: auto;
  }
  /* Counter compact */
  .diags-sidebar__counter {
    padding: 10px 14px;
  }
  .diags-sidebar__counter-num {
    font-size: 1.4rem;
  }
  .diags-sidebar__counter-label {
    font-size: 0.65rem;
  }
  /* Items list compacts */
  .diags-sidebar__list li {
    padding: 7px 14px;
    font-size: 0.82rem;
    gap: 10px;
  }
  .diags-sidebar__icon {
    width: 24px;
    height: 24px;
  }
  .diags-sidebar__icon svg {
    width: 14px;
    height: 14px;
  }
}


/* === FIX DIAGS-SIDEBAR MOBILE (compact, pas de scroll interne) === */
@media (max-width: 767px) {
  /* Pas de hauteur max forcée : la liste s'affiche complète */
  .diags-sidebar { max-height: none !important; }
  .diags-sidebar__inner {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(4px);
  }
  /* Liste pas de scroll interne, pas de hauteur max */
  .diags-sidebar__list {
    max-height: none !important;
    overflow: visible !important;
    padding: 0.25rem 0 !important;
  }
  /* Espaces verticaux ultra-compacts entre items */
  .diags-sidebar__list li {
    padding: 0.3rem 0.6rem !important;
    margin: 0 !important;
    gap: 0.5rem !important;
  }
  .diags-sidebar__list li:not(:last-child)::after {
    margin: 0 0.6rem !important;
  }
  .diags-sidebar__icon { width: 26px !important; height: 26px !important; }
  .diags-sidebar__icon svg { width: 13px !important; height: 13px !important; }
  .diags-sidebar__item-name { font-size: 0.85rem !important; line-height: 1.2 !important; }
  /* Header compact */
  .diags-sidebar__header { padding: 0.5rem 0.75rem !important; }
  .diags-sidebar__header-title { font-size: 0.85rem !important; }
  .diags-sidebar__header-subtitle { font-size: 0.7rem !important; }
  /* Counter compact */
  .diags-sidebar__counter { padding: 0.5rem 0.75rem !important; gap: 0.5rem !important; }
  .diags-sidebar__counter-num { font-size: 1.4rem !important; line-height: 1 !important; }
  .diags-sidebar__counter-label { font-size: 0.7rem !important; }
  .diags-sidebar__body { padding: 0 !important; }
}

/* === UX FIX 2026-05-08 (anti-zoom iOS + pictos lisibles) === */
@media (max-width: 767px) {
  /* Anti-zoom iOS : tous les inputs/selects à 16px minimum */
  section#devis .form__input,
  section#devis .form__select,
  section#devis .form__textarea {
    font-size: 16px !important;
  }
  /* Pictos diagnostics : labels plus lisibles (0.45rem → 0.6rem soit ~9.6px) */
  .hero__diag-label {
    font-size: 0.6rem !important;
    letter-spacing: 0.02em !important;
  }
  /* Pictos diagnostics : taille minimum tactile 44x44 (Apple HIG) */
  .hero__diag-item {
    width: 44px !important;
    height: 44px !important;
  }
}

/* =========================================================================
   A11Y FORM (2026-05-13)
   ========================================================================= */
.form[aria-busy="true"] {
  opacity: 0.7;
  pointer-events: none;
  position: relative;
}
.form[aria-busy="true"]::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  border: 3px solid var(--primary-light, #62BA92);
  border-top-color: var(--primary, #3A7D5C);
  border-radius: 50%;
  animation: gdi-spin 0.8s linear infinite;
  pointer-events: none;
}
@keyframes gdi-spin {
  to { transform: rotate(360deg); }
}
.form__input[aria-invalid="true"],
.form__select[aria-invalid="true"],
.form__textarea[aria-invalid="true"] {
  border-color: #dc2626;
}

/* Hint sous champ (Email obligatoire / Tel optionnel) — 2026-05-13 */
.form__hint {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted, #5a5a5a);
  margin: 0.2rem 0 0;
  line-height: 1.3;
}
.form__group--telephone .form__hint {
  color: var(--primary, #3A7D5C);
  font-style: italic;
}

/* =========================================================================
   LOCAL STATS (Chiffres clés ville, entre hero et tarifs) — 2026-05-13
   ========================================================================= */
.local-stats {
  padding: 1.75rem 0 1.25rem;
}
.local-stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  max-width: 920px;
  margin: 0 auto;
}
.local-stats__card {
  background: var(--bg-white, #fff);
  border: 1px solid var(--border, #e0e0e0);
  border-radius: var(--radius, 12px);
  padding: 1rem 1rem 0.85rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.local-stats__value {
  display: block;
  font-family: var(--font-head, 'Outfit', sans-serif);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary, #3A7D5C);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.local-stats__label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted, #5a5a5a);
  margin-top: 0.35rem;
  line-height: 1.3;
}
.local-stats__source {
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted, #5a5a5a);
  margin: 0.85rem 0 0;
}
@media (min-width: 768px) {
  .local-stats__grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .local-stats__value {
    font-size: 1.7rem;
  }
}

/* =========================================================================
   LOCAL NEARBY (Communes voisines, maillage interne) — 2026-05-13
   ========================================================================= */
.local-nearby {
  padding: 1.5rem 0 2rem;
}
.local-nearby__title {
  text-align: center;
  font-size: 1.15rem;
  margin: 0 0 1rem;
  color: var(--primary-dark, #1a4a32);
}
.local-nearby__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 0.5rem;
}
.local-nearby__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  min-width: 110px;
  padding: 0.55rem 1rem;
  background: var(--bg-white, #fff);
  border: 1px solid var(--border, #e0e0e0);
  border-radius: var(--radius-full, 50px);
  font-size: 0.85rem;
  text-align: center;
  color: var(--primary, #3A7D5C);
  text-decoration: none;
  transition: all 0.15s ease;
}
.local-nearby__link:hover {
  background: var(--primary, #3A7D5C);
  color: #fff;
  border-color: var(--primary, #3A7D5C);
}


/* =====================================================================
   WHATSAPP FLOTTANT — audit GOO 2026-05-14 (Sprint 1, recommandé par
   commercial Pierre + dev Sophie : +5x conversion mobile vs form)
   ===================================================================== */
@media (max-width: 600px) {
      }

/* =========================================================================
   LOCAL QUARTIERS (typologie de bien & diagnostics par quartier) — 2026-05-23
   ========================================================================= */
.local-quartiers {
  padding: 2.5rem 0;
}
.local-quartiers__title {
  text-align: center;
  font-family: var(--font-head, 'Outfit', sans-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark, #1a4a32);
  margin: 0 0 0.5rem;
}
.local-quartiers__lead {
  text-align: center;
  color: var(--text-muted, #5a5a5a);
  max-width: 640px;
  margin: 0 auto 2rem;
  font-size: 1rem;
  line-height: 1.5;
}
.local-quartiers__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  max-width: 980px;
  margin: 0 auto;
}
.local-quartiers__card {
  background: #fff;
  border-radius: var(--radius, 12px);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow, 0 4px 20px rgba(0,0,0,0.08));
  border-left: 4px solid var(--primary, #3A7D5C);
}
.local-quartiers__card h3 {
  font-family: var(--font-head, 'Outfit', sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark, #1a4a32);
  margin: 0 0 0.25rem;
}
.local-quartiers__zones {
  display: block;
  color: var(--primary, #3A7D5C);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}
.local-quartiers__card p {
  color: var(--text, #1a1a1a);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}
.local-quartiers__cta {
  background: #fff;
  border-radius: var(--radius, 12px);
  padding: 1rem 1.4rem;
  text-align: center;
  margin: 1.5rem auto 0;
  max-width: 720px;
  border: 1px dashed var(--primary-light, #62BA92);
  font-size: 0.95rem;
  line-height: 1.5;
}
.local-quartiers__cta strong {
  display: block;
  color: var(--primary-dark, #1a4a32);
  margin-bottom: 0.25rem;
}
.local-quartiers__cta a {
  color: var(--primary, #3A7D5C);
  font-weight: 700;
  text-decoration: none;
}
.local-quartiers__cta a:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .local-quartiers__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .local-quartiers__title {
    font-size: 1.75rem;
  }
}


/* ============================================================
   ACTION E (audit V2 2026-05-31) : boutons hover/focus animés
   ============================================================ */
.btn, .header__cta, button[type="submit"], a.btn--primary, a.btn--outline, a.btn--outline-primary {
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}
.btn:hover, .header__cta:hover, button[type="submit"]:hover, a.btn--primary:hover, a.btn--outline:hover, a.btn--outline-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(58, 125, 92, 0.25);
}
.btn:active, .header__cta:active, button[type="submit"]:active, a.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(58, 125, 92, 0.15);
}
.btn:focus-visible, .header__cta:focus-visible, button[type="submit"]:focus-visible, a.btn--primary:focus-visible, a.btn--outline:focus-visible, a.btn--outline-primary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
/* Cards interactives */
.blog-card, .zone-card, .bottom30-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.blog-card:hover, .zone-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  border-color: var(--primary);
}
/* Focus visible global pour accessibilité */
a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}


/* SVG diagnostics pack (2026-05-31) */
.diag-card__icon img.diag-svg{display:block}
.diag-card:hover .diag-svg{transform:scale(1.08);transition:transform .25s ease}

/* ===========================================
   Styling pages diagnostic - grid d'étapes (extrait des styles inline V6)
   =========================================== */
.gdi-steps-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin:2rem 0}
@media (max-width:900px){.gdi-steps-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:600px){
  .gdi-steps-grid{
    display:flex;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    gap:0.75rem;
    padding-bottom:0.75rem;
    margin:1.5rem -1rem 1rem;
    padding-left:1rem;
    padding-right:1rem;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:thin;
  }
  .gdi-steps-grid > div{
    flex:0 0 240px;
    scroll-snap-align:start;
  }
}

/* === BANDEAU BAILLEURS (pages locales) === */
.bailleurs-band { max-width: 860px; margin: 2rem auto; padding: 0 1.25rem; }
.bailleurs-banner { background: var(--accent-light); border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 0.9rem 1.25rem; font-size: 0.95rem; line-height: 1.6; color: #7a4b00; }
.bailleurs-banner a { color: var(--primary); font-weight: 600; }

/* === FORMULAIRE DEVIS 2 ÉTAPES (GOO-26) === */
.form__steps { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; }
.form__step { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); background: var(--bg-cream); padding: 0.3rem 0.85rem; border-radius: var(--radius-full); }
.form__step.is-active { background: var(--primary); color: #fff; }
.form__step.is-done { background: var(--primary-light); color: #fff; }
.form__next { display: flex; justify-content: center; margin-top: 0.5rem; }
.form__next-btn { min-width: 240px; }
.form__back-btn { display: block; margin: 0 auto 0.75rem; background: none; border: none; color: var(--primary); font-size: 0.9rem; font-weight: 600; text-decoration: underline; cursor: pointer; }
.form__group--error .form__input, .form__group--error .form__select { border-color: #dc2626; }
.form__reassurance { text-align: center; font-size: 0.85rem; font-weight: 600; color: var(--primary); margin: 0.25rem auto 0.5rem; }
.form__note-optionnel { background: var(--accent-light); border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 0.75rem 1rem; font-size: 0.85rem; line-height: 1.5; color: #7a4b00; margin: 0.25rem 0 0.5rem; }
.form__note-optionnel strong { color: #7a4b00; }
