/* =====================================================
   LAYOUT.CSS — DÉMARCHECO
   Header + Footer uniquement
   À charger avec /assets/layout.js
   ===================================================== */

:root {
  --dc-blue: #102A43;
  --dc-blue-dark: #071d34;
  --dc-blue-soft: #173B5C;
  --dc-green: #68b914;
  --dc-green-dark: #559b10;
  --dc-green-alt: #0f8f68;
  --dc-green-alt-dark: #08795f;
  --dc-orange: #F5A623;
  --dc-text: #102A43;
  --dc-muted: #475569;
  --dc-border: #d9e2ec;
  --dc-bg: #f6f8fb;
  --dc-white: #ffffff;
}

/* Base minimale utile au layout */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--dc-text);
  background: var(--dc-bg);
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

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

#site-header,
#site-footer {
  width: 100%;
}

#site-header img,
#site-footer img {
  max-width: 100%;
}

.dc-header ul,
.dc-footer-pro ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dc-header p,
.dc-footer-pro p {
  margin-top: 0;
}

/* =====================================================
   HEADER
   ===================================================== */

.dc-header {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #eeeeee;
  position: sticky;
  top: 0;
  z-index: 9999;
  font-family: Arial, Helvetica, sans-serif;
}

.dc-nav-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.dc-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.dc-logo img {
  height: 72px;
  width: auto;
  max-width: 270px;
  display: block;
  object-fit: contain;
}

.dc-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex: 1;
}

.dc-menu a {
  color: #111111;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  white-space: nowrap;
  transition: 0.2s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.dc-menu a:hover,
.dc-menu a.active {
  color: var(--dc-green);
}

.dc-menu-item {
  position: relative;
  padding: 28px 0;
}

.dc-menu-item > a::after {
  content: "▾";
  font-size: 10px;
  color: var(--dc-green);
  margin-left: 7px;
}

.dc-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 285px;
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.13);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: 0.2s ease;
  z-index: 99999;
}

.dc-menu-item:hover .dc-dropdown,
.dc-menu-item:focus-within .dc-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dc-dropdown a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 13px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #222222;
}

.dc-dropdown a:hover,
.dc-dropdown a.active {
  background: #f6fbef;
  color: var(--dc-green);
}

.dc-call {
  background: #4f970f;
  color: #ffffff !important;
  padding: 14px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: 0.2s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.dc-call:hover {
  background: #3f7c0b;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.dc-burger {
  display: none;
  background: #4f970f;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 11px 15px;
  font-size: 22px;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  line-height: 1;
}

#dc-menu-toggle {
  display: none;
}

.dc-menu-mobile-call {
  display: none !important;
}

/* =====================================================
   FOOTER
   ===================================================== */

.dc-footer-pro {
  width: 100%;
  background: var(--dc-blue-dark);
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  margin-top: 0;
}

.dc-footer-pro * {
  box-sizing: border-box;
}

.dc-footer-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Bloc CTA haut footer */
.dc-footer-top {
  padding: 54px 0 38px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.dc-footer-cta {
  background:
    radial-gradient(circle at top right, rgba(104, 185, 20, 0.24), transparent 34%),
    linear-gradient(135deg, #0f2f4e, #102a43);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: 34px;
  display: grid;
  grid-template-columns: 1.3fr auto;
  gap: 28px;
  align-items: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.dc-footer-cta h2 {
  color: #ffffff;
  font-size: 32px;
  line-height: 1.15;
  margin: 0 0 12px;
  font-weight: 900;
}

.dc-footer-cta p {
  color: #dbeafe;
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
  max-width: 780px;
}

.dc-footer-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dc-footer-btn-main,
.dc-footer-btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 12px;
  font-weight: 900;
  font-size: 14px;
  white-space: nowrap;
  transition: 0.2s ease;
  min-height: 44px;
  min-width: 44px;
}

.dc-footer-btn-main {
  background: var(--dc-green-alt-dark);
  color: #ffffff !important;
}

.dc-footer-btn-main:hover {
  background: #065f46;
  color: #ffffff !important;
  transform: translateY(-2px);
}

.dc-footer-btn-light {
  background: #ffffff;
  color: var(--dc-blue) !important;
}

.dc-footer-btn-light:hover {
  background: #f4f8ef;
  color: var(--dc-blue) !important;
  transform: translateY(-2px);
}

/* Colonnes footer */
.dc-footer-main {
  padding: 48px 0 34px;
}

.dc-footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 44px;
  align-items: start;
}

/* Variante utilisée dans layout.js : 5 colonnes */
.dc-footer-grid-5 {
  grid-template-columns: 1.35fr 1fr 1fr 1fr 1.05fr;
  gap: 34px;
}

.dc-footer-logo-box {
  display: inline-flex;
  background: #ffffff;
  border-radius: 18px;
  padding: 14px 18px;
  margin-bottom: 20px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.20);
}

.dc-footer-logo-box img {
  height: 82px;
  width: auto;
  max-width: 310px;
  object-fit: contain;
  display: block;
}

.dc-footer-intro {
  color: #dbeafe;
  font-size: 15px;
  line-height: 1.75;
  margin: 0 0 22px;
  max-width: 430px;
}

.dc-footer-highlight {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.dc-footer-highlight span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.dc-footer-highlight b {
  color: var(--dc-green);
  font-size: 16px;
}

.dc-footer-col h3 {
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  margin: 0 0 18px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.dc-footer-col a {
  display: flex;
  align-items: center;
  min-height: 34px;
  color: #dbeafe;
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 8px;
  transition: 0.2s ease;
}

.dc-footer-col a:hover {
  color: var(--dc-green);
  transform: translateX(4px);
}

/* Carte contact */
.dc-footer-contact-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 20px;
}

.dc-footer-contact-card h3 {
  margin-bottom: 14px;
}

.dc-footer-contact-card p {
  color: #dbeafe;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 14px;
}

.dc-footer-contact-card a {
  color: #ffffff;
  min-height: 34px;
  display: flex;
  align-items: center;
}

.dc-footer-mini-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: var(--dc-green-alt-dark);
  color: #ffffff !important;
  padding: 13px 18px;
  border-radius: 12px;
  font-weight: 900;
  margin-top: 8px;
  width: 100%;
  text-align: center;
  min-height: 44px;
}

.dc-footer-mini-btn:hover {
  background: #065f46;
  color: #ffffff !important;
  transform: none !important;
}

/* Zone envoyer dossier */
.dc-footer-send-zone {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding-top: 34px;
  padding-bottom: 34px;
}

.dc-footer-send-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: 28px;
  align-items: center;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 24px;
  padding: 26px;
}

.dc-footer-send-grid h3 {
  color: #ffffff;
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 8px;
  font-weight: 900;
}

.dc-footer-send-grid p {
  color: #dbeafe;
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}

.dc-footer-send-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.dc-footer-send-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--dc-blue) !important;
  font-size: 13px;
  font-weight: 900;
  transition: 0.2s ease;
}

.dc-footer-send-links a:hover {
  background: #f4f8ef;
  color: var(--dc-green-alt-dark) !important;
  transform: translateY(-2px);
}

/* Bas footer */
.dc-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: #dbeafe;
  font-size: 13px;
}

.dc-footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.dc-footer-bottom-links a {
  color: #dbeafe;
  font-size: 13px;
  min-height: 34px;
  display: flex;
  align-items: center;
}

.dc-footer-bottom-links a:hover {
  color: var(--dc-green);
}

/* =====================================================
   ACCESSIBILITÉ / PETITS ÉLÉMENTS COMMUNS
   ===================================================== */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
label:focus-visible {
  outline: 3px solid var(--dc-orange) !important;
  outline-offset: 3px !important;
  border-radius: 8px;
}

.dc-success-message {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 99999;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
  max-width: 380px;
  opacity: 0;
  transform: translateY(15px);
  transition: 0.3s ease;
  font-family: Arial, Helvetica, sans-serif;
}

.dc-success-message.show {
  opacity: 1;
  transform: translateY(0);
}

.dc-success-message strong {
  display: block;
  margin-bottom: 5px;
  font-size: 15px;
}

.dc-success-message span {
  display: block;
  font-size: 14px;
  line-height: 1.45;
}

/* =====================================================
   RESPONSIVE HEADER / FOOTER
   ===================================================== */

@media (max-width: 1180px) {
  .dc-footer-grid-5 {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (max-width: 1120px) {
  .dc-nav-wrap {
    padding: 10px 16px;
    gap: 16px;
  }

  .dc-logo img {
    height: 60px;
    max-width: 220px;
  }

  .dc-menu {
    gap: 15px;
  }

  .dc-menu a {
    font-size: 12px;
    letter-spacing: 0.6px;
  }

  .dc-call {
    padding: 12px 15px;
    font-size: 12px;
  }
}

@media (max-width: 1050px) {
  .dc-footer-cta {
    grid-template-columns: 1fr;
  }

  .dc-footer-cta-actions {
    justify-content: flex-start;
  }

  .dc-footer-grid,
  .dc-footer-grid-5 {
    grid-template-columns: 1fr 1fr;
  }

  .dc-footer-send-grid {
    grid-template-columns: 1fr;
  }

  .dc-footer-send-links {
    justify-content: flex-start;
  }
}

@media (max-width: 920px) {
  .dc-nav-wrap {
    flex-wrap: wrap;
  }

  .dc-logo img {
    height: 58px;
    max-width: 210px;
  }

  .dc-burger {
    display: block;
    margin-left: auto;
  }

  .dc-call {
    display: none;
  }

  .dc-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #ffffff;
    border-top: 1px solid #eeeeee;
    padding: 10px 0 16px;
  }

  #dc-menu-toggle:checked ~ .dc-menu {
    display: flex;
  }

  .dc-menu > a,
  .dc-menu-item > a {
    display: flex;
    padding: 14px 8px;
    font-size: 14px;
    min-height: 46px;
  }

  .dc-menu-item {
    padding: 0;
  }

  .dc-menu-item > a::after {
    content: "";
  }

  .dc-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 8px 14px;
    background: #f8faf7;
    display: block;
    min-width: 0;
  }

  .dc-dropdown a {
    padding: 11px 14px;
    font-size: 13px;
    min-height: 46px;
  }

  .dc-menu-mobile-call {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #4f970f;
    color: #ffffff !important;
    text-align: center;
    margin-top: 10px;
    border-radius: 10px;
    padding: 14px !important;
  }
}

@media (max-width: 650px) {
  .dc-footer-wrap {
    padding: 0 16px;
  }

  .dc-footer-top {
    padding: 36px 0 28px;
  }

  .dc-footer-cta {
    padding: 24px;
    border-radius: 22px;
  }

  .dc-footer-cta h2 {
    font-size: 25px;
  }

  .dc-footer-cta-actions {
    flex-direction: column;
  }

  .dc-footer-btn-main,
  .dc-footer-btn-light {
    width: 100%;
  }

  .dc-footer-grid,
  .dc-footer-grid-5 {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .dc-footer-logo-box img {
    height: 64px;
    max-width: 250px;
  }

  .dc-footer-send-grid {
    padding: 20px;
    border-radius: 20px;
  }

  .dc-footer-send-grid h3 {
    font-size: 20px;
  }

  .dc-footer-send-links {
    flex-direction: column;
  }

  .dc-footer-send-links a {
    width: 100%;
    border-radius: 12px;
  }

  .dc-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .dc-footer-bottom-links {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 520px) {
  .dc-logo img {
    height: 50px;
    max-width: 185px;
  }

  .dc-nav-wrap {
    padding: 8px 12px;
  }

  .dc-menu > a,
  .dc-menu-item > a {
    padding-left: 4px;
    padding-right: 4px;
  }
}

/* =====================================================
   PERFORMANCE
   ===================================================== */

@media (prefers-reduced-motion: reduce) {
  .dc-header *,
  .dc-footer-pro *,
  .dc-success-message {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

#site-header {
  min-height: 93px;
}

#site-footer {
  min-height: 520px;
}

@media (max-width: 920px) {
  #site-header {
    min-height: 74px;
  }
}

@media (max-width: 650px) {
  #site-footer {
    min-height: 900px;
  }
}


:root {
      --ink: #0a1b2a;
      --ink-soft: #25394a;
      --paper: #f5f7f4;
      --card: #ffffff;
      --line: #dce4df;
      --muted: #61707b;
      --accent: #38c990;
      --accent-dark: #087a54;
      --accent-soft: #e7f9f1;
      --warning: #b86c0b;
      --warning-soft: #fff5df;
      --danger: #b43a43;
      --danger-soft: #fff0f1;
      --blue: #2a6fdb;
      --blue-soft: #eef5ff;
      --radius: 22px;
      --shadow: 0 20px 60px rgba(10, 27, 42, .11);
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      color: var(--ink);
      background: var(--paper);
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      line-height: 1.55;
      -webkit-font-smoothing: antialiased;
    }
    button, input, select { font: inherit; }
    button { cursor: pointer; }
    a { color: inherit; }
    .container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }

    .site-header {
      position: sticky;
      top: 0;
      z-index: 50;
      background: rgba(255,255,255,.92);
      backdrop-filter: blur(14px);
      border-bottom: 1px solid rgba(220,228,223,.85);
    }
    .header-inner {
      min-height: 72px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
    }
    .brand {
      display: inline-flex;
      align-items: center;
      gap: 11px;
      text-decoration: none;
      font-weight: 850;
      letter-spacing: -.03em;
      font-size: 1.25rem;
    }
    .brand-mark {
      width: 38px;
      aspect-ratio: 1;
      border-radius: 12px;
      background: var(--ink);
      display: grid;
      place-items: center;
      color: var(--accent);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
    }
    .brand-mark svg { width: 23px; height: 23px; }
    .header-actions { display: flex; align-items: center; gap: 10px; }
    .header-link { text-decoration: none; color: var(--ink-soft); font-weight: 700; padding: 10px 12px; }
    .phone-link {
      text-decoration: none;
      background: var(--ink);
      color: white;
      padding: 11px 16px;
      border-radius: 999px;
      font-weight: 800;
      white-space: nowrap;
    }

    .hero {
      overflow: hidden;
      position: relative;
      color: white;
      background:
        radial-gradient(circle at 78% 18%, rgba(56,201,144,.26), transparent 27rem),
        radial-gradient(circle at 13% 92%, rgba(42,111,219,.22), transparent 30rem),
        var(--ink);
      padding: 74px 0 115px;
    }
    .hero::after {
      content: "";
      position: absolute;
      inset: auto 0 0;
      height: 120px;
      background: linear-gradient(to bottom right, transparent 49.5%, var(--paper) 50%);
      pointer-events: none;
    }
    .hero-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
      align-items: center;
      gap: 64px;
      position: relative;
      z-index: 1;
    }
    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      color: #baf3dc;
      font-weight: 800;
      letter-spacing: .08em;
      text-transform: uppercase;
      font-size: .78rem;
    }
    .eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); }
    h1 {
      font-size: clamp(2.45rem, 5.5vw, 5rem);
      line-height: .98;
      letter-spacing: -.06em;
      margin: 20px 0 22px;
      max-width: 870px;
    }
    .hero p { margin: 0; color: #dce5eb; font-size: clamp(1.05rem, 1.8vw, 1.28rem); max-width: 720px; }
    .hero-points { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
    .hero-point {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 9px 13px;
      border: 1px solid rgba(255,255,255,.16);
      border-radius: 999px;
      color: #eef5f8;
      background: rgba(255,255,255,.06);
      font-size: .93rem;
      font-weight: 700;
    }
    .hero-point::before { content: "✓"; color: var(--accent); font-weight: 900; }
    .hero-side {
      border: 1px solid rgba(255,255,255,.15);
      background: rgba(255,255,255,.07);
      border-radius: 28px;
      padding: 24px;
      box-shadow: 0 25px 70px rgba(0,0,0,.24);
    }
    .hero-side-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
    .hero-side strong { font-size: 1.05rem; }
    .live-pill { color: #baf3dc; background: rgba(56,201,144,.12); border: 1px solid rgba(56,201,144,.3); border-radius: 999px; padding: 6px 10px; font-size: .78rem; font-weight: 800; }
    .mock-address { background: white; color: var(--ink); border-radius: 15px; padding: 14px 15px; margin: 18px 0 12px; display: flex; gap: 10px; align-items: center; }
    .mock-address span:first-child { color: var(--accent-dark); }
    .mock-result { background: rgba(56,201,144,.13); border: 1px solid rgba(56,201,144,.28); border-radius: 15px; padding: 15px; color: #eafbf4; }
    .mock-result small { display: block; color: #b7c9d3; margin-top: 4px; }

    .hero-address-label {
      display: block;
      margin-top: 18px;
      color: #dce7ed;
      font-size: .82rem;
      font-weight: 800;
    }
    .hero-address-box { position: relative; }
    .hero-address-control {
      margin: 8px 0 12px;
      padding: 0 14px;
      min-height: 50px;
    }
    .hero-address-input {
      width: 100%;
      min-width: 0;
      border: 0;
      outline: 0;
      padding: 14px 0;
      color: var(--ink);
      background: transparent;
    }
    .hero-address-input::placeholder { color: #75848f; }
    .hero-location-icon { color: var(--accent-dark); flex: 0 0 auto; }
    .hero-address-loader { flex: 0 0 auto; }
    .hero-address-suggestions {
      top: calc(100% + 2px);
      color: var(--ink);
    }
    .suggestion-message {
      padding: 15px;
      color: var(--muted);
      font-weight: 700;
      background: white;
    }
    .suggestion-message.error { color: var(--danger); }
    .hero-abf-result {
      min-height: 92px;
      transition: background .2s ease, border-color .2s ease, transform .2s ease;
    }
    .hero-abf-result strong {
      display: block;
      line-height: 1.28;
    }
    .hero-abf-result.is-loading {
      background: rgba(42,111,219,.15);
      border-color: rgba(112,169,255,.42);
    }
    .hero-abf-result.is-clear {
      background: rgba(56,201,144,.16);
      border-color: rgba(56,201,144,.48);
    }
    .hero-abf-result.is-abf {
      background: rgba(255,178,55,.16);
      border-color: rgba(255,188,77,.52);
    }
    .hero-abf-result.is-protected,
    .hero-abf-result.is-uncertain {
      background: rgba(255,139,87,.15);
      border-color: rgba(255,155,106,.45);
    }
    .hero-abf-result.is-abf strong,
    .hero-abf-result.is-protected strong,
    .hero-abf-result.is-uncertain strong { color: #fff3d5; }
    .hero-abf-details {
      display: grid;
      gap: 5px;
      margin: 10px 0 0;
      padding: 0;
      list-style: none;
    }
    .hero-abf-details li {
      position: relative;
      padding-left: 16px;
      color: #d4e0e6;
      font-size: .8rem;
      line-height: 1.4;
    }
    .hero-abf-details li::before {
      content: "•";
      position: absolute;
      left: 3px;
      color: var(--accent);
    }

    .assistant-wrap { margin-top: -54px; position: relative; z-index: 10; padding-bottom: 76px; }
    .assistant-shell {
      background: var(--card);
      border: 1px solid var(--line);
      border-radius: 30px;
      box-shadow: var(--shadow);
      overflow: hidden;
    }
    .assistant-head {
      display: grid;
      grid-template-columns: 1fr auto;
      align-items: center;
      gap: 30px;
      padding: 28px 32px;
      border-bottom: 1px solid var(--line);
      background: #fbfcfb;
    }
    .assistant-title { margin: 0; font-size: 1.18rem; letter-spacing: -.02em; }
    .assistant-subtitle { color: var(--muted); margin: 4px 0 0; font-size: .92rem; }
    .progress { display: flex; gap: 8px; align-items: center; }
    .progress-dot {
      width: 10px;
      height: 10px;
      border-radius: 999px;
      background: #d7dedb;
      transition: .25s ease;
    }
    .progress-dot.active { width: 38px; background: var(--accent); }
    .assistant-body { padding: clamp(24px, 5vw, 52px); min-height: 530px; }
    .step { display: none; animation: appear .25s ease; }
    .step.active { display: block; }
    @keyframes appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
    .step-number { color: var(--accent-dark); text-transform: uppercase; letter-spacing: .09em; font-size: .78rem; font-weight: 850; }
    .step h2 { font-size: clamp(1.7rem, 3.2vw, 2.55rem); letter-spacing: -.045em; margin: 8px 0 10px; line-height: 1.08; }
    .step-lead { color: var(--muted); margin: 0 0 30px; max-width: 760px; }

    .project-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 15px; }
    .choice-card {
      appearance: none;
      border: 1px solid var(--line);
      background: white;
      color: var(--ink);
      border-radius: 18px;
      padding: 22px;
      text-align: left;
      min-height: 164px;
      transition: .2s ease;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 18px;
    }
    .choice-card:hover { transform: translateY(-3px); border-color: #a5d8c3; box-shadow: 0 14px 30px rgba(10,27,42,.08); }
    .choice-card.selected { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(56,201,144,.14); background: #fbfffd; }
    .choice-icon {
      width: 45px;
      height: 45px;
      border-radius: 14px;
      background: var(--accent-soft);
      color: var(--accent-dark);
      display: grid;
      place-items: center;
      font-size: 1.35rem;
      font-weight: 900;
    }
    .choice-card strong { display: block; font-size: 1.04rem; letter-spacing: -.01em; }
    .choice-card small { display: block; color: var(--muted); margin-top: 4px; line-height: 1.35; }

    .address-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(290px, .85fr); gap: 28px; align-items: start; }
    .field-label { display: block; font-weight: 800; margin-bottom: 9px; }
    .field-help { color: var(--muted); font-size: .86rem; margin: 8px 0 0; }
    .address-box { position: relative; }
    .address-input-wrap {
      display: flex;
      align-items: center;
      gap: 11px;
      border: 1px solid #cbd6d1;
      border-radius: 15px;
      padding: 0 15px;
      background: white;
      transition: .2s ease;
    }
    .address-input-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(56,201,144,.13); }
    .address-input-wrap svg { flex: 0 0 auto; color: var(--accent-dark); }
    .address-input { width: 100%; border: 0; outline: 0; padding: 16px 0; color: var(--ink); background: transparent; }
    .address-loader { display: none; width: 18px; height: 18px; border: 2px solid #d7e2dd; border-top-color: var(--accent-dark); border-radius: 999px; animation: spin .7s linear infinite; }
    .address-loader.visible { display: block; }
    @keyframes spin { to { transform: rotate(360deg); } }
    .suggestions {
      position: absolute;
      z-index: 20;
      top: calc(100% + 8px);
      left: 0;
      right: 0;
      background: white;
      border: 1px solid var(--line);
      border-radius: 15px;
      box-shadow: 0 18px 45px rgba(10,27,42,.16);
      overflow: hidden;
      display: none;
      max-height: 280px;
      overflow-y: auto;
    }
    .suggestions.visible { display: block; }
    .suggestion {
      width: 100%;
      border: 0;
      border-bottom: 1px solid #edf1ef;
      background: white;
      padding: 13px 15px;
      text-align: left;
      display: flex;
      align-items: flex-start;
      gap: 10px;
    }
    .suggestion:hover { background: #f6fbf8; }
    .suggestion:last-child { border-bottom: 0; }
    .suggestion strong { display: block; font-size: .92rem; }
    .suggestion small { color: var(--muted); }
    .selected-address { display: none; margin-top: 14px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-dark); padding: 13px 15px; font-weight: 750; }
    .selected-address.visible { display: block; }

    .heritage-card { border: 1px solid var(--line); border-radius: 19px; padding: 22px; background: #fbfcfb; min-height: 205px; }
    .heritage-card h3 { margin: 0 0 8px; font-size: 1.08rem; }
    .heritage-status { color: var(--muted); margin: 0; }
    .heritage-badge { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 7px 11px; font-weight: 850; font-size: .82rem; margin-bottom: 13px; }
    .heritage-badge.neutral { background: #edf1ef; color: var(--ink-soft); }
    .heritage-badge.good { background: var(--accent-soft); color: var(--accent-dark); }
    .heritage-badge.warn { background: var(--warning-soft); color: var(--warning); }
    .heritage-badge.error { background: var(--danger-soft); color: var(--danger); }
    .heritage-details { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
    .heritage-details li { padding-left: 20px; position: relative; color: var(--ink-soft); font-size: .9rem; }
    .heritage-details li::before { content: "•"; position: absolute; left: 4px; color: var(--accent-dark); }

    .question-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
    .question-block { border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
    .question-block.full { grid-column: 1 / -1; }
    .question-block legend, .question-title { font-weight: 850; padding: 0; margin-bottom: 13px; display: block; }
    fieldset { margin: 0; min-width: 0; }
    .option-list { display: grid; gap: 9px; }
    .option-row {
      position: relative;
      display: flex;
      align-items: center;
      gap: 10px;
      min-height: 46px;
      padding: 10px 12px;
      border: 1px solid #dce4df;
      border-radius: 12px;
      transition: .15s ease;
      cursor: pointer;
    }
    .option-row:hover { border-color: #a9cdbd; background: #fbfffd; }
    .option-row:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
    .option-row input { accent-color: var(--accent-dark); width: 17px; height: 17px; }
    .select-input { width: 100%; border: 1px solid #cbd6d1; border-radius: 12px; padding: 12px 13px; background: white; color: var(--ink); outline: none; }
    .select-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(56,201,144,.12); }

    .specific-questions { display: grid; gap: 18px; }
    .specific-panel { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }

    .step-actions { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 32px; }
    .btn {
      appearance: none;
      border: 0;
      border-radius: 13px;
      min-height: 50px;
      padding: 13px 20px;
      font-weight: 850;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      transition: .2s ease;
    }
    .btn-primary { color: white; background: var(--ink); }
    .btn-primary:hover { background: #173145; transform: translateY(-1px); }
    .btn-accent { color: #063825; background: var(--accent); }
    .btn-accent:hover { background: #55d9a5; transform: translateY(-1px); }
    .btn-secondary { color: var(--ink-soft); background: #edf1ef; }
    .btn-secondary:hover { background: #e3e9e6; }
    .btn[disabled] { cursor: not-allowed; opacity: .45; transform: none; }
    .inline-error { display: none; color: var(--danger); font-weight: 700; margin-top: 13px; }
    .inline-error.visible { display: block; }

    .result-wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(290px, .85fr); gap: 28px; }
    .result-main { border-radius: 23px; padding: clamp(24px, 4vw, 38px); border: 1px solid var(--line); background: #fbfcfb; }
    .result-type { display: inline-flex; border-radius: 999px; padding: 7px 11px; font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; background: var(--blue-soft); color: var(--blue); }
    .result-main h2 { margin: 15px 0 11px; font-size: clamp(1.9rem, 4vw, 3.1rem); }
    .result-summary { color: var(--ink-soft); font-size: 1.04rem; }
    .result-list { display: grid; gap: 10px; padding: 0; list-style: none; margin: 24px 0 0; }
    .result-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); }
    .result-list li::before { content: "✓"; color: var(--accent-dark); font-weight: 900; }
    .heritage-alert { margin-top: 22px; border-radius: 15px; padding: 16px; background: var(--warning-soft); color: #7b4a08; border: 1px solid #f0d69e; }
    .result-side { border-radius: 23px; background: var(--ink); color: white; padding: 27px; align-self: start; position: sticky; top: 95px; }
    .result-side h3 { font-size: 1.45rem; letter-spacing: -.03em; margin: 0 0 9px; }
    .result-side p { color: #cfdae1; margin: 0 0 20px; }
    .result-side .btn { width: 100%; }
    .result-side .micro { color: #9fb2bf; font-size: .78rem; text-align: center; margin-top: 13px; }
    .result-meta { margin-top: 20px; border-top: 1px solid rgba(255,255,255,.14); padding-top: 18px; display: grid; gap: 9px; }
    .result-meta div { display: flex; justify-content: space-between; gap: 16px; font-size: .86rem; color: #cbd7de; }
    .result-meta strong { color: white; text-align: right; }
    .result-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
    .result-tools button { border: 1px solid var(--line); background: white; color: var(--ink-soft); border-radius: 11px; padding: 9px 12px; font-weight: 750; }

    .seo-section { padding: 82px 0; }
    .seo-section.white { background: white; }
    .section-heading { max-width: 760px; margin-bottom: 36px; }
    .section-heading .eyebrow { color: var(--accent-dark); }
    .section-heading h2 { font-size: clamp(2rem, 4vw, 3.55rem); line-height: 1.03; letter-spacing: -.055em; margin: 15px 0; }
    .section-heading p { color: var(--muted); font-size: 1.03rem; }
    .benefit-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
    .benefit-card { padding: 25px; border: 1px solid var(--line); border-radius: 20px; background: white; }
    .benefit-card .choice-icon { margin-bottom: 20px; }
    .benefit-card h3 { margin: 0 0 8px; }
    .benefit-card p { margin: 0; color: var(--muted); }
    .faq { display: grid; gap: 12px; max-width: 900px; }
    details { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; }
    summary { cursor: pointer; font-weight: 850; padding: 19px 32px 19px 0; position: relative; list-style: none; }
    summary::-webkit-details-marker { display: none; }
    summary::after { content: "+"; position: absolute; right: 0; top: 16px; font-size: 1.4rem; color: var(--accent-dark); }
    details[open] summary::after { content: "–"; }
    details p { color: var(--muted); margin: 0 0 19px; }

    footer { background: var(--ink); color: white; padding: 38px 0; }
    .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
    .footer-inner p { margin: 0; color: #aebfc9; font-size: .88rem; }
    .footer-links { display: flex; flex-wrap: wrap; gap: 17px; }
    .footer-links a { color: #dce7ed; text-decoration: none; font-weight: 700; font-size: .9rem; }

    .toast {
      position: fixed;
      right: 20px;
      bottom: 20px;
      z-index: 100;
      background: var(--ink);
      color: white;
      border-radius: 13px;
      padding: 13px 16px;
      box-shadow: 0 18px 45px rgba(0,0,0,.22);
      transform: translateY(120px);
      opacity: 0;
      transition: .25s ease;
      font-weight: 750;
    }
    .toast.visible { transform: none; opacity: 1; }

    @media (max-width: 900px) {
      .hero-grid, .address-layout, .result-wrap { grid-template-columns: 1fr; }
      .hero-side { max-width: 620px; }
      .project-grid, .benefit-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
      .result-side { position: static; }
    }
    @media (max-width: 660px) {
      .container { width: min(100% - 22px, 1180px); }
      .header-link { display: none; }
      .phone-link { padding: 9px 12px; font-size: .82rem; }
      .hero { padding-top: 50px; }
      .hero-side { padding: 19px; }
      .hero-side-top { align-items: flex-start; }
      .hero-address-input { font-size: .9rem; }
      .assistant-head { grid-template-columns: 1fr; padding: 22px; }
      .progress { order: -1; }
      .assistant-body { padding: 25px 18px; }
      .project-grid, .benefit-grid, .question-grid, .specific-panel { grid-template-columns: 1fr; }
      .choice-card { min-height: 140px; }
      .question-block.full { grid-column: auto; }
      .step-actions { align-items: stretch; }
      .step-actions .btn { flex: 1; padding-inline: 12px; }
      .footer-inner { align-items: flex-start; flex-direction: column; }
    }
    @media print {
      .site-header, .hero, .assistant-head, .step:not(#step-result), .result-side, .result-tools, .seo-section, footer { display: none !important; }
      body, .assistant-shell, .assistant-body { background: white; box-shadow: none; border: 0; }
      .assistant-wrap { margin: 0; padding: 0; }
      #step-result { display: block !important; }
      .result-wrap { display: block; }
    }


/* Navigation and SEO block: zone ABF */
.header-actions,
.header-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.abf-section {
  color: white;
  background:
    radial-gradient(circle at 80% 15%, rgba(56, 201, 144, .18), transparent 25rem),
    var(--ink);
}
.abf-section .eyebrow { color: #baf3dc; }
.abf-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: clamp(34px, 7vw, 80px);
  align-items: start;
}
.abf-copy h2 {
  max-width: 850px;
  margin: 16px 0 20px;
  font-size: clamp(2.15rem, 4.5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -.055em;
}
.abf-copy h3 {
  margin: 34px 0 12px;
  font-size: 1.35rem;
}
.abf-copy p { color: #cbd8df; }
.abf-copy .abf-lead {
  color: white;
  font-size: clamp(1.05rem, 1.8vw, 1.24rem);
}
.keyword-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 25px 0 8px;
}
.keyword-chips span {
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: #eaf2f5;
  font-size: .86rem;
  font-weight: 700;
}
.seo-checklist {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}
.seo-checklist li {
  position: relative;
  padding: 13px 15px 13px 42px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 14px;
  background: rgba(255,255,255,.05);
  color: #dce7ed;
}
.seo-checklist li::before {
  content: "✓";
  position: absolute;
  left: 16px;
  color: var(--accent);
  font-weight: 900;
}
.source-note {
  margin-top: 24px;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
  font-size: .94rem;
}
.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-top: 20px;
}
.source-links a {
  color: #baf3dc;
  font-weight: 750;
  text-underline-offset: 4px;
}
.abf-panel {
  position: sticky;
  top: 98px;
  padding: 29px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 24px;
  background: rgba(255,255,255,.08);
  box-shadow: 0 25px 70px rgba(0,0,0,.2);
}
.abf-panel-kicker {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: #063825;
  background: var(--accent);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.abf-panel h3 {
  margin: 16px 0 8px;
  font-size: 1.9rem;
  letter-spacing: -.04em;
}
.abf-panel > p { color: #cbd8df; }
.abf-steps {
  display: grid;
  gap: 15px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}
.abf-steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
}
.abf-steps li > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(56,201,144,.14);
  border: 1px solid rgba(56,201,144,.3);
  color: #baf3dc;
  font-weight: 900;
}
.abf-steps strong,
.abf-steps small { display: block; }
.abf-steps small { margin-top: 2px; color: #aebfc9; }
.abf-panel .btn { width: 100%; }

@media (max-width: 980px) {
  .header-nav .header-link:nth-child(2) { display: none; }
  .abf-grid { grid-template-columns: 1fr; }
  .abf-panel { position: static; }
}

@media (max-width: 660px) {
  .header-nav { display: none; }
  .abf-panel { padding: 22px; }
}
