/* ============================================================
   Urgence Canalisations — Design System « Sobre · Simple · Architectural »
   Esthétique minimaliste éditorial suisse / studio d'architecture
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Couleurs neutres */
  --bg: #F7F8F7;
  --surface: #FDFDFC;
  --ink: #15181A;
  --muted: #586462;
  --line: #E4E9E7;
  /* Accent unique */
  --accent: #356A6A;
  --accent-ink: #2A5454;
  --accent-soft: #EBF0EF;

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

  /* Espaces */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* Rayons */
  --radius-s: 4px;
  --radius-m: 6px;
  --radius-l: 8px;

  /* Filets & ombres */
  --hair: 1px solid var(--line);
  --shadow-1: 0 1px 2px rgba(21, 24, 26, 0.04);
  --shadow-2: 0 8px 28px rgba(21, 24, 26, 0.06);

  /* Container */
  --container: 1160px;
  --gutter: 24px;

  --transition: 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
picture,
svg { display: block; max-width: 100%; }

img { height: auto; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--accent-ink); }

button { font: inherit; cursor: pointer; }

ul { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-title);
  color: var(--ink);
  line-height: 1.14;
  letter-spacing: -0.01em;
  font-weight: 700;
}

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

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--space-9);
}
.section--tight { padding-block: var(--space-8); }

.section-head {
  max-width: 680px;
  margin-bottom: var(--space-7);
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  font-family: var(--font-title);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.center .eyebrow { justify-content: center; }

h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.65;
}

.text-muted { color: var(--muted); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  white-space: nowrap;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.85em 1.5em;
  border-radius: var(--radius-m);
  border: 1px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
  line-height: 1;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--surface);
}

.btn-call {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  white-space: nowrap;
}
.btn-call:hover { background: #000; color: #fff; }

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 253, 252, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-1);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}
.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.main-nav a {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--muted);
  padding-block: var(--space-2);
  position: relative;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a.active {
  color: var(--ink);
}
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1.5px;
  background: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--surface);
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero {
  padding-top: var(--space-8);
  padding-bottom: var(--space-9);
  border-bottom: var(--hair);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-8);
  align-items: center;
}
.hero-content h1 { margin-bottom: var(--space-5); }
.hero-content .lead { margin-bottom: var(--space-6); max-width: 46ch; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  padding-top: var(--space-5);
  border-top: var(--hair);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}
.hero-badge svg { width: 16px; height: 16px; color: var(--accent); }

/* ---------- Blocs image ---------- */
.media-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.media-frame img {
  width: 100%;
  display: block;
  filter: grayscale(0.18) contrast(1.02);
}
.hero-media img { aspect-ratio: 16 / 9; object-fit: cover; }
.intervention-media img { aspect-ratio: 3 / 2; object-fit: cover; }

.media-caption {
  font-size: 0.8rem;
  color: var(--muted);
  padding: var(--space-3) var(--space-4);
  border-top: var(--hair);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.media-caption svg { width: 15px; height: 15px; color: var(--accent); }

/* ---------- Réassurance / pictos ---------- */
.reassurance {
  border-bottom: var(--hair);
  background: var(--surface);
}
.reassurance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.reassurance-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-5);
  border-left: var(--hair);
}
.reassurance-item:first-child { border-left: 0; }
.reassurance-item svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
  flex-shrink: 0;
  stroke-width: 1.4;
}
.reassurance-item h3 {
  font-size: 0.98rem;
  margin-bottom: var(--space-1);
}
.reassurance-item p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- Grilles ---------- */
.grid {
  display: grid;
  gap: var(--space-5);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Cartes minimales ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: var(--space-6);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  border-color: #cdd6d3;
  box-shadow: var(--shadow-2);
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.service-card .card-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  color: var(--accent);
  background: var(--accent-soft);
  margin-bottom: var(--space-1);
}
.service-card .card-icon svg { width: 22px; height: 22px; stroke-width: 1.5; }
.service-card h3 { font-size: 1.12rem; }
.service-card p { color: var(--muted); font-size: 0.92rem; flex-grow: 1; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.88rem;
  margin-top: var(--space-2);
}
.card-link svg { width: 15px; height: 15px; transition: transform var(--transition); }
.card-link:hover svg { transform: translateX(3px); }

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.feature-card h3 svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }
.feature-card p { color: var(--muted); font-size: 0.9rem; }

/* ---------- Listes à puces fines ---------- */
.tick-list { display: grid; gap: var(--space-3); }
.tick-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  color: var(--muted);
  font-size: 0.95rem;
}
.tick-list li svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}
.tick-list li strong { color: var(--ink); font-weight: 600; }

/* ---------- Section intervention (split) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}
.split.reverse .split-media { order: 2; }

/* ---------- Process / étapes ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--surface);
}
.process-step {
  padding: var(--space-6);
  border-left: var(--hair);
}
.process-step:first-child { border-left: 0; }
.process-num {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}
.process-num small {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.process-step h3 { font-size: 1.02rem; margin-bottom: var(--space-2); }
.process-step p { color: var(--muted); font-size: 0.88rem; }

/* ---------- Table de tarifs ---------- */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  font-size: 0.95rem;
}
.price-table thead th {
  font-family: var(--font-title);
  font-weight: 600;
  text-align: left;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: var(--space-4) var(--space-5);
  border-bottom: var(--hair);
  background: var(--bg);
}
.price-table tbody td {
  padding: var(--space-4) var(--space-5);
  border-bottom: var(--hair);
  vertical-align: top;
}
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table td.price {
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  text-align: right;
}
.price-table .svc-name { font-weight: 600; color: var(--ink); }
.price-table .svc-desc { font-size: 0.85rem; color: var(--muted); }

/* ---------- Badges / chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-title);
  letter-spacing: 0.02em;
  padding: 0.4em 0.8em;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
}
.chip.accent {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.chip svg { width: 14px; height: 14px; }

.chip-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* ---------- Stats / compteurs ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-block: var(--hair);
}
.stat {
  padding: var(--space-6) var(--space-4);
  text-align: center;
  border-left: var(--hair);
}
.stat:first-child { border-left: 0; }
.stat-num {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-num .suffix { color: var(--accent); }
.stat-label {
  margin-top: var(--space-3);
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Avis ---------- */
.review {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.review-stars { display: flex; gap: 2px; color: var(--accent); }
.review-stars svg { width: 16px; height: 16px; }
.review p {
  font-size: 0.96rem;
  color: var(--ink);
  line-height: 1.6;
  flex-grow: 1;
}
.review-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-3);
  border-top: var(--hair);
}
.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.review-author strong { font-size: 0.9rem; display: block; }
.review-author span { font-size: 0.8rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list {
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--surface);
}
.faq-item { border-bottom: var(--hair); }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--space-5) var(--space-6);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  transition: color var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-item summary .faq-plus {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  position: relative;
  transition: transform var(--transition);
}
.faq-item summary .faq-plus::before,
.faq-item summary .faq-plus::after {
  content: "";
  position: absolute;
  background: var(--accent);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.faq-item summary .faq-plus::before { width: 14px; height: 1.5px; }
.faq-item summary .faq-plus::after { width: 1.5px; height: 14px; transition: transform var(--transition); }
.faq-item[open] summary .faq-plus::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-item .faq-body {
  padding: 0 var(--space-6) var(--space-5);
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ---------- Bande CTA ---------- */
.cta-band {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-l);
  padding: var(--space-8);
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: var(--space-6);
  align-items: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.7); margin-top: var(--space-3); max-width: 50ch; }
.cta-band .eyebrow { color: #8fc0c0; }
.cta-band .eyebrow::before { background: #8fc0c0; }
.cta-band-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 240px;
}
.cta-band .btn-primary { background: var(--accent); border-color: var(--accent); }
.cta-band .btn-primary:hover { background: #3f7c7c; border-color: #3f7c7c; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.3); }
.cta-band .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); color: #fff; }
.cta-phone {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
  text-align: center;
  letter-spacing: 0.01em;
}
.cta-phone:hover { color: #fff; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding-block: var(--space-5);
  border-bottom: var(--hair);
  background: var(--surface);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.82rem;
  color: var(--muted);
}
.breadcrumb li { display: inline-flex; align-items: center; gap: var(--space-2); }
.breadcrumb li::after { content: "/"; color: var(--line); }
.breadcrumb li:last-child::after { display: none; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 500; }

/* ---------- Page hero (internes) ---------- */
.page-hero {
  padding-block: var(--space-8);
  border-bottom: var(--hair);
}
.page-hero h1 { margin-bottom: var(--space-4); }
.page-hero .lead { max-width: 60ch; }

/* ---------- Grille de zones ---------- */
.zones-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
}
.zone-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--surface);
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color var(--transition);
}
.zone-item:hover { border-color: var(--accent); }
.zone-item svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; }

/* ---------- Formulaire ---------- */
.form {
  display: grid;
  gap: var(--space-4);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.field { display: grid; gap: var(--space-2); }
.field label {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink);
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 0.75em 0.9em;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.8rem; color: var(--muted); }

.contact-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: var(--space-6);
  display: grid;
  gap: var(--space-5);
}
.contact-line {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}
.contact-line svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.contact-line strong { display: block; font-family: var(--font-title); font-size: 0.9rem; }
.contact-line span, .contact-line a { font-size: 0.92rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface);
  border-top: var(--hair);
  padding-top: var(--space-9);
  margin-top: var(--space-9);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: var(--space-7);
  padding-bottom: var(--space-8);
}
.footer-brand .brand { margin-bottom: var(--space-4); }
.footer-brand p { font-size: 0.88rem; color: var(--muted); max-width: 34ch; }
.footer-col h4 {
  font-family: var(--font-title);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-4);
  font-weight: 600;
}
.footer-col ul { display: grid; gap: var(--space-3); }
.footer-col a { font-size: 0.9rem; color: var(--ink); }
.footer-col a:hover { color: var(--accent); }
.footer-contact-line {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: var(--space-3);
}
.footer-contact-line svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.footer-contact-line a { color: var(--ink); }
.footer-bottom {
  border-top: var(--hair);
  padding-block: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: 0.8rem;
  color: var(--muted);
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--accent); }
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--space-4); }

/* ---------- Barre sticky mobile ---------- */
.mobile-callbar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--surface);
  border-top: var(--hair);
  box-shadow: 0 -4px 20px rgba(21,24,26,0.08);
  padding: var(--space-3);
  gap: var(--space-3);
}
.mobile-callbar .btn { flex: 1; }

/* ---------- Reveal (scroll) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms cubic-bezier(0.22,0.61,0.36,1),
              transform 600ms cubic-bezier(0.22,0.61,0.36,1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }

/* ---------- Utilitaires ---------- */
.text-center { text-align: center; }
.mt-6 { margin-top: var(--space-6); }
.mt-7 { margin-top: var(--space-7); }
.divider { height: 1px; background: var(--line); border: 0; }
.surface { background: var(--surface); }
.cta-inline { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: var(--space-3) var(--space-4);
  z-index: 200;
  border-radius: 0 0 var(--radius-m) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 920px) {
  .main-nav {
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--surface);
    border-top: var(--hair);
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
    padding: var(--space-5) var(--gutter) var(--space-8);
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .main-nav li { border-bottom: var(--hair); }
  .main-nav a {
    display: block;
    padding: var(--space-4) 0;
    font-size: 1.05rem;
    color: var(--ink);
  }
  .main-nav a.active::after { display: none; }
  .main-nav a.active { color: var(--accent); }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn-call { display: none; }
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-7); }
  .hero-media { order: -1; }
  .split, .split.reverse { grid-template-columns: 1fr; gap: var(--space-6); }
  .split.reverse .split-media { order: -1; }
  .reassurance-grid { grid-template-columns: repeat(2, 1fr); }
  .reassurance-item:nth-child(3) { border-left: 0; }
  .reassurance-item { border-top: var(--hair); }
  .reassurance-item:nth-child(-n+2) { border-top: 0; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step:nth-child(3) { border-left: 0; }
  .process-step { border-top: var(--hair); }
  .process-step:nth-child(-n+2) { border-top: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: var(--hair); }
  .zones-grid { grid-template-columns: repeat(3, 1fr); }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band-actions { min-width: 0; }
}

@media (max-width: 600px) {
  :root { --gutter: 18px; }
  .section { padding-block: var(--space-8); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .reassurance-grid { grid-template-columns: 1fr; }
  .reassurance-item { border-left: 0; border-top: var(--hair); }
  .reassurance-item:first-child { border-top: 0; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step { border-left: 0; border-top: var(--hair); }
  .process-step:first-child { border-top: 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .zones-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { padding: var(--space-6); }
  .mobile-callbar { display: flex; }
  body { padding-bottom: 76px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
