:root {
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --ink: #14233c;
  --ink-soft: #5c6a80;
  --brand: #16263f;        /* navy du logo */
  --brand-hover: #233a5c;  /* navy plus clair (survol) */
  --brand-dark: #0f1c30;   /* navy profond (accents texte) */
  --line: #e7eaf0;
  --green: #1f8f55;
  --amber: #c9941f;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(20, 35, 60, 0.06);
  --shadow-lg: 0 24px 60px rgba(20, 35, 60, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { width: min(1120px, 100% - 3rem); margin-inline: auto; }
.container.narrow { width: min(720px, 100% - 3rem); }

a { color: inherit; text-decoration: none; }

/* L'attribut hidden doit toujours l'emporter sur les display définis par classe */
[hidden] { display: none !important; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  height: 68px;
}
.logo {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.logo-mark { color: var(--brand); }
.logo-img { height: 44px; width: auto; display: block; }
.logo-light { color: #fff; }
.nav {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-left: auto;
  font-weight: 500;
  font-size: 0.9rem;
}
.nav-list {
  list-style: none;
  display: flex;
  gap: 0.15rem;
}
.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.55rem 0.45rem;
  border-radius: 8px;
  color: var(--ink-soft);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--brand); background: rgba(22, 38, 63,0.07); }
.caret { font-size: 0.7rem; transition: transform 0.18s; }

/* Sous-menus déroulants (desktop : au survol) */
.dropdown {
  list-style: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 0.4rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.16s, transform 0.16s, visibility 0.16s;
  z-index: 60;
}
.dropdown li a {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  transition: background 0.12s, color 0.12s;
}
.dropdown li a:hover { background: var(--bg-alt); color: var(--brand); }
/* Les derniers menus ouvrent leur sous-menu vers la gauche (évite tout débordement à droite) */
.nav-item:last-child .dropdown,
.nav-item:nth-last-child(2) .dropdown { left: auto; right: 0; }

@media (hover: hover) {
  .has-dropdown:hover > .dropdown,
  .has-dropdown:focus-within > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .has-dropdown:hover > .nav-link .caret { transform: rotate(180deg); }
}

.nav-cta { white-space: nowrap; padding: 0.5rem 0.8rem; }

/* Bouton devis dans le bandeau (visible sur tablette/mobile uniquement) */
.header-inner .header-cta { display: none; }

/* Bouton hamburger (mobile) */
.nav-toggle {
  display: none;
  margin-left: auto;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s, background 0.15s, box-shadow 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 0.55rem 1.05rem; font-size: 0.9rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 18px rgba(22, 38, 63, 0.18);
}
.btn-primary:hover { background: var(--brand-hover); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-light {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.btn-light:hover { background: #eef2f8; }
.btn-outline-light {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.16); border-color: #fff; }

/* ---------- Hero ---------- */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 0.75rem;
}
.eyebrow.center { text-align: center; }

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 88vh;
  padding: 7rem 0 5rem;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(105deg, rgba(13, 22, 38, 0.94) 0%, rgba(13, 22, 38, 0.74) 48%, rgba(13, 22, 38, 0.42) 100%),
    url("img/hero.jpg") center / cover no-repeat;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}
.eyebrow-light { color: #c2d0e6; }
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 1.2rem;
}
.hero-lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 34rem;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
  font-weight: 500;
}

/* Carte verre dépoli (glassmorphism) */
.hero-card.glass {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
}
.hero-card-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.95rem;
}
.hero-card-row strong { margin-left: auto; font-weight: 600; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot-green { background: #4ade80; }
.dot-amber { background: #fbbf24; }
.badge {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  color: #fff;
  font-size: 0.85rem;
}
.badge-b { background: #1f8f55; }
.hero-card-foot {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

/* Carte de contact (hero) */
.hero-card-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.hero-contact-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
}
a.hero-contact-row { transition: opacity 0.15s; }
a.hero-contact-row:hover { opacity: 0.85; }
.hcc-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.hcc-ico svg { width: 20px; height: 20px; }
.hcc-text { display: flex; flex-direction: column; min-width: 0; }
.hcc-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.65);
}
.hcc-text strong { font-weight: 600; font-size: 0.98rem; word-break: break-word; }
.hero-contact-cta { margin-top: 1.1rem; }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  text-align: center;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}
.section-sub {
  text-align: center;
  color: var(--ink-soft);
  max-width: 34rem;
  margin: 0 auto 2.5rem;
}

.grid { display: grid; gap: 1.4rem; }
.services-grid { grid-template-columns: repeat(3, 1fr); }
.features-grid { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.service { padding: 1.6rem; transition: transform 0.15s, box-shadow 0.15s; }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: rgba(22, 38, 63,0.1);
  color: var(--brand);
  margin-bottom: 1rem;
}
.service-icon svg { width: 26px; height: 26px; }
.service h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.service p { color: var(--ink-soft); font-size: 0.95rem; }

.feature { text-align: center; padding: 1rem; }
.feature-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.03em;
}
.feature h3 { margin: 0.3rem 0 0.4rem; }
.feature p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Catégories de diagnostics ---------- */
.cat-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.8rem;
  margin-bottom: 1.4rem;
  scroll-margin-top: 90px;
}
.cat-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.cat-icon {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: rgba(22, 38, 63,0.1);
  color: var(--brand);
}
.cat-icon svg { width: 28px; height: 28px; }
.cat-head h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
.cat-head p { color: var(--ink-soft); font-size: 0.95rem; }
.diag-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.diag-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.9rem;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 9px;
  font-weight: 500;
  font-size: 0.92rem;
}
.diag-list li::before {
  content: "✓";
  color: var(--brand);
  font-weight: 800;
  flex: none;
}
.diag-list li { transition: border-color 0.15s, background 0.15s; }
.diag-list li:hover { border-color: var(--brand); background: #fff; }
.diag-list a {
  color: inherit;
  flex: 1;
}
.diag-list li:hover a { color: var(--brand); }

/* ---------- Page d'un diagnostic ---------- */
.diag-page { padding: 2.5rem 0 1rem; }
.back-link {
  display: inline-block;
  margin-bottom: 1.6rem;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.92rem;
}
.back-link:hover { color: var(--brand); }
.diag-hero {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-bottom: 2.2rem;
}
.diag-illus {
  flex: none;
  display: grid;
  place-items: center;
  width: 110px;
  height: 110px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--brand), #2e466e);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.diag-illus svg { width: 56px; height: 56px; }
.diag-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.diag-tagline { color: var(--ink-soft); font-size: 1.05rem; margin-top: 0.4rem; }

.diag-sections { display: grid; gap: 1.2rem; }
.diag-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.6rem;
}
.diag-section h2 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.diag-section p { color: var(--ink-soft); }
.diag-validity {
  border-left: 4px solid var(--brand);
  background: var(--bg-alt);
}
.diag-validity p { color: var(--ink); font-weight: 600; }

.diag-note {
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  background: #fff8e8;
  border: 1px solid #f0deb0;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #6b5a2a;
}
.diag-disclaimer {
  margin-top: 1.4rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-style: italic;
}
.diag-notfound { text-align: center; padding: 3rem 0; }
.diag-notfound h1 { font-size: 1.8rem; margin-bottom: 0.6rem; }
.diag-notfound p { color: var(--ink-soft); margin-bottom: 1.4rem; }

.diag-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.8rem 2rem;
  margin: 2.5rem 0 1rem;
  background: var(--bg-alt);
}
.diag-cta h2 { font-size: 1.3rem; margin-bottom: 0.3rem; }
.diag-cta p { color: var(--ink-soft); }

/* ---------- Form ---------- */
.quote-form { padding: 2rem; display: grid; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; border: none; }
.field label, .field legend {
  font-weight: 600;
  font-size: 0.9rem;
}
.field input, .field select, .field textarea {
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(22, 38, 63,0.15);
}
.field.invalid input, .field.invalid select { border-color: #d6453b; }

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-top: 0.3rem;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
}
.checkbox input { accent-color: var(--brand); width: 16px; height: 16px; }

.error-msg {
  color: #d6453b;
  font-size: 0.82rem;
  min-height: 1rem;
}
.form-success {
  background: #e7f7ee;
  color: var(--green);
  border: 1px solid #b8e6cb;
  border-radius: 9px;
  padding: 0.9rem 1rem;
  font-weight: 600;
  text-align: center;
}
.form-error {
  margin-top: 1rem;
  background: #fdecea;
  color: #b3261e;
  border: 1px solid #f3c4be;
  border-radius: 9px;
  padding: 0.9rem 1rem;
  font-weight: 500;
  text-align: center;
}
/* Champ piège anti-spam : invisible pour l'utilisateur, ignoré des lecteurs d'écran */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Wizard de devis ---------- */
.wizard { padding: 2rem; }
.wizard-progress { margin-bottom: 1.8rem; }
.wizard-bar {
  height: 7px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
}
.wizard-bar span {
  display: block;
  height: 100%;
  width: 20%;
  background: var(--brand);
  border-radius: 99px;
  transition: width 0.3s ease;
}
.wizard-stepinfo {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 600;
}
.wizard-step { border: none; padding: 0; }
.wizard-step > legend {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1.2rem;
  padding: 0;
}

/* Cartes d'option (projet, type de bien) */
.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.8rem;
}
.option { cursor: pointer; }
.option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.option-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  text-align: center;
  height: 100%;
  padding: 1.3rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-weight: 600;
  color: var(--ink);
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
}
.option-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.option-ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: rgba(22, 38, 63,0.1);
  color: var(--brand);
}
.option-ico svg { width: 24px; height: 24px; }
.option input:checked + .option-card {
  border-color: var(--brand);
  background: rgba(22, 38, 63,0.06);
  box-shadow: 0 0 0 3px rgba(22, 38, 63,0.15);
}
.option input:focus-visible + .option-card { border-color: var(--brand); }

/* Pastilles (année de construction) */
.pill-grid { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.3rem; }
.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 99px;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill:hover { border-color: var(--brand); }
.pill:has(input:checked) {
  border-color: var(--brand);
  background: rgba(22, 38, 63,0.08);
  color: var(--brand);
}

/* Interrupteurs (gaz / électricité) */
.toggle-row { display: grid; gap: 0.7rem; margin-top: 1.3rem; }
.toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.toggle:has(input:checked) { border-color: var(--brand); background: rgba(22, 38, 63,0.06); }
.toggle input { accent-color: var(--brand); width: 18px; height: 18px; }

/* Navigation du wizard */
.wizard-nav {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.8rem;
}
.wizard-nav .btn { flex: 1; }
#wizard-prev { flex: 0 0 auto; }

/* Récapitulatif */
.recap {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}
.recap > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.recap dt { color: var(--ink-soft); font-weight: 500; }
.recap dd { font-weight: 600; text-align: right; }

.reco-box {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.3rem;
}
.reco-box h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.reco-sub { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 1rem; }

/* Diagnostics recommandés, cochables */
.reco-checks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.55rem;
}
.reco-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.8rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.reco-check:has(input:checked) {
  border-color: var(--brand);
  background: rgba(22, 38, 63, 0.04);
}
.reco-check input { accent-color: var(--brand); width: 17px; height: 17px; flex: none; }

.zone-note {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.zone-note.zone-yes {
  padding: 0.7rem 0.9rem;
  background: #fff8e8;
  border: 1px solid #f0deb0;
  border-radius: 9px;
  color: #6b5a2a;
  font-weight: 500;
}
.reco-note {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.field-hint { font-size: 0.82rem; color: var(--ink-soft); }

/* ---------- Zone d'intervention ---------- */
.city-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  max-width: 880px;
  margin: 0 auto;
}
.city-list li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
}
.zone-cta {
  text-align: center;
  margin-top: 1.8rem;
  color: var(--ink-soft);
}
.zone-cta a { color: var(--brand); font-weight: 600; text-decoration: underline; }

.seo-text {
  max-width: 820px;
  margin: 2.4rem auto 0;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}
.seo-text p { margin-bottom: 0.9rem; }
.seo-text strong { color: var(--ink); font-weight: 600; }

/* ---------- Page locale (ville) ---------- */
.city-hero {
  position: relative;
  padding: 6.5rem 0 4rem;
  color: #fff;
  overflow: hidden;
}
.city-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(105deg, rgba(13, 22, 38, 0.95) 0%, rgba(13, 22, 38, 0.78) 55%, rgba(13, 22, 38, 0.55) 100%),
    url("img/hero.jpg") center / cover no-repeat;
}
.city-hero .container { position: relative; z-index: 1; }
.city-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin-bottom: 1rem;
}
.city-lead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 46rem;
  margin-bottom: 1.8rem;
}
.city-list a { color: inherit; }

/* ---------- Bande photo plein cadre ---------- */
.photo-band {
  position: relative;
  padding: 6rem 0;
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.photo-band-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(13, 22, 38, 0.82), rgba(13, 22, 38, 0.82)),
    url("img/immeuble.jpg") center 30% / cover no-repeat;
}
.photo-band-inner { position: relative; z-index: 1; }
.photo-band h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 24ch;
  margin: 0 auto 1rem;
}
.photo-band p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 46ch;
  margin: 0 auto 1.8rem;
}

/* ---------- Apparition au défilement ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Assurance & certifications ---------- */
.trust-band {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding: 2.6rem 0;
}
.trust-title {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 1.6rem;
}
.trust-logos {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem 3.5rem;
}
.trust-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.trust-logo img {
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 20px;
  box-sizing: content-box;
}
.trust-logo--dark img {
  background: var(--brand);
  border-color: var(--brand);
}
.trust-fallback {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.trust-cap {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--ink-soft);
}

/* ---------- Blog : actualités ---------- */
/* Section mise en avant : fond navy dégradé, cartes blanches à liseré doré */
.section-news {
  background: linear-gradient(150deg, #0f1c30 0%, var(--brand) 55%, #23375a 100%);
}
.section-news .section-title { color: #fff; }
.section-news .section-sub { color: rgba(255, 255, 255, 0.78); }
.section-news .zone-cta { color: rgba(255, 255, 255, 0.85); }
.section-news .zone-cta a { color: #fff; }

.post-grid { grid-template-columns: repeat(2, 1fr); }
.post-card {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 3px solid var(--amber);
  transition: transform 0.15s, box-shadow 0.15s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-date {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--amber);
}
.post-card h3 { font-size: 1.15rem; line-height: 1.35; }
.post-card h3 a:hover { color: var(--brand); }
.post-card p { color: var(--ink-soft); font-size: 0.95rem; flex: 1; }
.post-more { font-weight: 600; color: var(--brand); font-size: 0.92rem; }
.post-more:hover { text-decoration: underline; }
@media (max-width: 700px) { .post-grid { grid-template-columns: 1fr; } }

/* Page article */
.article-page .legal-updated { margin-bottom: 1.4rem; }
.article-page .lead {
  font-size: 1.08rem;
  color: var(--ink);
  margin-bottom: 1.6rem;
}
.article-cta {
  margin-top: 2.2rem;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.article-cta p { margin: 0; color: var(--ink); font-weight: 600; }

/* ---------- Newsletter (pied de page) ---------- */
.footer-news { max-width: 320px; }
.footer-news-sub { font-size: 0.88rem; margin: 0.3rem 0 0.7rem; }
.newsletter-form { display: flex; gap: 0.5rem; }
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 0.9rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.newsletter-form input[type="email"]::placeholder { color: #8ea1bb; }
.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.6);
}
.newsletter-msg { margin-top: 0.6rem; font-size: 0.88rem; font-weight: 600; color: #7ddba4; }
.newsletter-rgpd { margin-top: 0.5rem; font-size: 0.75rem; color: #8395ab; }
.newsletter-rgpd a { text-decoration: underline; }

/* ---------- Bannière cookies ---------- */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 520px;
  margin-inline: auto;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 1.1rem 1.3rem;
}
.cookie-banner p { font-size: 0.9rem; line-height: 1.55; margin-bottom: 0.8rem; }
.cookie-banner a { color: var(--brand); text-decoration: underline; }
.cookie-actions { display: flex; justify-content: flex-end; }

/* ---------- Pages légales ---------- */
.back-home {
  margin-left: auto;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.back-home:hover { color: var(--brand); }
.legal-page { padding: 3rem 0 4rem; }
.legal-page h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}
.legal-updated { color: var(--ink-soft); font-size: 0.88rem; margin-bottom: 2rem; }
.legal-page section { margin-bottom: 1.8rem; }
.legal-page h2 { font-size: 1.15rem; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.legal-page p, .legal-page li { color: var(--ink-soft); font-size: 0.96rem; line-height: 1.7; }
.legal-page ul { padding-left: 1.2rem; margin-top: 0.4rem; }
.legal-page a { color: var(--brand); text-decoration: underline; }
/* Les boutons ne doivent pas hériter du style des liens de texte */
.legal-page a.btn { text-decoration: none; }
.legal-page a.btn-primary { color: #fff; }
.footer-legal-links { margin-top: 0.4rem; }
.footer-legal-links a:hover { color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #c7d3e3;
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-tag { margin-top: 0.5rem; font-size: 0.92rem; }
.footer-contact p { margin: 0.15rem 0; font-size: 0.95rem; }
.footer-contact a:hover { color: #fff; }
.footer-bottom {
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: #8395ab;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero { min-height: 0; padding: 6rem 0 4rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 2.4rem; }
  .hero-bg { background-position: center; }
  .services-grid, .features-grid { grid-template-columns: 1fr 1fr; }

  /* Navigation mobile : bouton devis dans le bandeau + menu repliable */
  .header-inner .header-cta {
    display: inline-flex;
    margin-left: auto;
    white-space: nowrap;
    padding: 0.5rem 0.85rem;
    font-size: 0.85rem;
  }
  .nav-toggle { display: flex; margin-left: 0.6rem; }
  .nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 0.6rem 1rem 1rem;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    display: none;
  }
  .nav.open { display: flex; }
  .nav-list { flex-direction: column; gap: 0; width: 100%; }
  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-link { justify-content: space-between; padding: 0.9rem 0.5rem; }
  .nav-link .caret { transition: transform 0.18s; }
  .nav-item.open > .nav-link .caret { transform: rotate(180deg); }

  /* Sous-menus : accordéon au clic (pas de survol sur mobile) */
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    min-width: 0;
    padding: 0 0 0.4rem 0.6rem;
    display: none;
  }
  .nav-item.open > .dropdown { display: block; }
  .nav-cta { margin: 0.8rem 0 0; width: 100%; }
}
@media (max-width: 560px) {
  .services-grid, .features-grid,
  .form-row, .checkbox-grid,
  .diag-list { grid-template-columns: 1fr; }
}
