/* ===========================================
   GOODDIAGIMMO - SITE V3 CORRIGÉ
   =========================================== */
:root {
  --primary: #3A7D5C;
  --primary-light: #62BA92;
  --primary-dark: #1a4a32;
  --accent: #f0a229;
  --accent-light: #ffecd0;
  --accent-dark: #d18b1a;
  --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;
}

*, *::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 - hauteur réduite + titre aligné */
  .hero { min-height: auto !important; height: calc(100svh - var(--header-height) - 70px); }
  .hero .container { justify-content: space-evenly !important; }
  .hero__trust { flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
  .hero__diags { margin-top: 0.5rem !important; }
  /* 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-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: 1020px; 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); }

.header__nav { display: none; }
.header__nav-list { display: flex; gap: 2rem; }
.header__nav-link { font-weight: 500; position: relative; padding: 0.5rem 0; }
.header__nav-link:hover, .header__nav-link.active { color: var(--primary); }
.header__ctas { display: flex; gap: 0.5rem; }
.header__cta { display: flex; align-items: center; gap: 0.4rem; padding: 0.5rem; border-radius: var(--radius-full); font-weight: 600; font-size: 0.85rem; }
.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); }

@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: 76px; }
  .header__cta { min-width: 140px; justify-content: center; }
}

/* ===========================================
   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: 1.5rem 0; text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.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); 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); }
.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(--text-light); }
.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); }
.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-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); }

/* 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); 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); 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; }
.team-card__name { font-size: 1.2rem; margin-bottom: 0.3rem; }
.team-card__role { color: var(--accent); 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); } }

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

/* ===========================================
   FOOTER
   =========================================== */
.footer { background: var(--primary-dark); color: rgba(255,255,255,0.9); padding: 1.5rem 0 1rem; }
.footer .logo__good, .footer .logo__immo { color: #ffffff; }
.footer .logo__diag { color: var(--accent); }
.footer .logo__roof path { fill: var(--accent); }
.footer__grid { display: flex; flex-direction: column; gap: 1.2rem; margin-bottom: 1rem; }
.footer__brand { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer__brand .logo { position: relative; top: -1px; }
.footer__social { display: flex; gap: 0.5rem; align-self: flex-end; margin-top: 0.5rem; }
.footer__social a { width: 32px; height: 32px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.footer__social a:hover { background: var(--accent); }
.footer__social svg { width: 16px; height: 16px; fill: white; }
.footer__links-row { display: flex; flex-wrap: nowrap; gap: 0.5rem 1.2rem; justify-content: flex-start; }
.footer__links-row a { font-size: 0.8rem; color: rgba(255,255,255,0.7); transition: color 0.2s; white-space: nowrap; }
.footer__links-row a:hover { color: var(--accent); }
.footer__contact-row { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.85rem; align-items: flex-start; }
.footer__contact-row a, .footer__contact-row span { color: rgba(255,255,255,0.7); }
.footer__contact-row a:hover { color: var(--accent); }
.footer__bottom { padding-top: 0.8rem; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; font-size: 0.75rem; color: rgba(255,255,255,0.5); }
@media (min-width: 768px) { 
  .footer__grid { flex-direction: row; align-items: center; justify-content: space-between; gap: 2rem; }
  .footer__brand { flex: 0 0 auto; }
  .footer__brand .logo { top: -3px; }
  .footer__links-row { flex: 1; justify-content: center; }
  .footer__contact-row { flex: 0 0 auto; flex-direction: row; gap: 1.5rem; align-items: center; }
}

/* ===========================================
   WHATSAPP FLOTTANT
   =========================================== */
.whatsapp-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 90;
  width: 52px; height: 52px; background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 15px rgba(37,211,102,0.3); 
  transition: transform 0.2s, box-shadow 0.2s;
  animation: whatsapp-pulse 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(37,211,102,0.4); }

/* Validation formulaire */
.form__input:invalid:not(:placeholder-shown),
.form__select:invalid:not([value=""]):not(:focus),
.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 */

/* 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); }
.whatsapp-float svg { width: 26px; height: 26px; fill: white; }
@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(37,211,102,0.3); }
  50% { box-shadow: 0 4px 20px rgba(37,211,102,0.45); }
}
@media (max-width: 767px) {
  .whatsapp-float { box-shadow: 0 3px 10px rgba(37,211,102,0.2); }
  .whatsapp-float:hover { box-shadow: 0 4px 12px rgba(37,211,102,0.3); }
  @keyframes whatsapp-pulse {
    0%, 100% { box-shadow: 0 3px 10px rgba(37,211,102,0.2); }
    50% { box-shadow: 0 3px 12px rgba(37,211,102,0.3); }
  }
}

/* ===========================================
   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: 300px; }
.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--gaz { order: 6; }
  .form__group--surface { order: 7; }
  .form__group--construction { order: 8; }
  .form__group--message { order: 9; }
}

/* === BANDEAU COOKIES === */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: white; padding: 1rem; box-shadow: 0 -4px 20px rgba(0,0,0,0.15); z-index: 9999; }
.cookie-banner__content { max-width: 900px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.cookie-banner__icon { font-size: 1.5rem; }
.cookie-banner__text { font-size: 0.9rem; color: var(--text); margin: 0; }
.cookie-banner__text a { color: var(--primary); text-decoration: underline; }
.cookie-banner__buttons { display: flex; gap: 0.5rem; }
.cookie-banner__btn { padding: 0.5rem 1.2rem; border-radius: var(--radius); font-size: 0.85rem; font-weight: 600; cursor: pointer; border: none; transition: all 0.2s; }
.cookie-banner__btn--accept { background: var(--primary); color: white; }
.cookie-banner__btn--accept:hover { background: var(--primary-dark); }
.cookie-banner__btn--refuse { background: white; color: var(--text); border: 2px solid var(--border); }
.cookie-banner__btn--refuse:hover { background: var(--bg-cream); border-color: var(--text-light); }
@media (max-width: 600px) {
  .cookie-banner__content { flex-direction: column; text-align: center; gap: 0.75rem; }
  .cookie-banner__buttons { width: 100%; }
  .cookie-banner__btn { flex: 1; }
}
