/* Polices hébergées sur le site (pas d'appel à Google Fonts) */
@font-face{font-family:"Montserrat";font-style:normal;font-weight:500;font-display:swap;src:url("fonts/montserrat-latin-500-normal.woff2") format("woff2");}
@font-face{font-family:"Montserrat";font-style:normal;font-weight:700;font-display:swap;src:url("fonts/montserrat-latin-700-normal.woff2") format("woff2");}
@font-face{font-family:"Montserrat";font-style:normal;font-weight:800;font-display:swap;src:url("fonts/montserrat-latin-800-normal.woff2") format("woff2");}
@font-face{font-family:"Montserrat";font-style:normal;font-weight:900;font-display:swap;src:url("fonts/montserrat-latin-900-normal.woff2") format("woff2");}
@font-face{font-family:"Source Sans 3";font-style:normal;font-weight:400;font-display:swap;src:url("fonts/source-sans-3-latin-400-normal.woff2") format("woff2");}
@font-face{font-family:"Source Sans 3";font-style:normal;font-weight:600;font-display:swap;src:url("fonts/source-sans-3-latin-600-normal.woff2") format("woff2");}

/* Allobroges Services — feuille de style unique
   Direction : la carte de visite. Blancs francs, bandes encre, rouge de Savoie
   réservé aux traits, aux boutons et à la croix. Une seule couleur d'accent. */

:root {
  /* Couleurs */
  --ink: #121519;
  --ink-2: #1b1f25;
  --ink-3: #2a3038;
  --paper: #ffffff;
  --mist: #f0f2f4;
  --line: #dde1e5;
  --text: #121519;
  --muted: #4f5761;
  --on-ink: #f4f6f8;
  --on-ink-muted: #aab2bb;
  --red: #d7141a;
  --red-strong: #b00f14;
  --ridge-back: #d3d8dd;

  /* Typographie */
  --f-display: "Montserrat", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  /* Mise en page */
  --max: 1200px;
  --side-l: max(20px, env(safe-area-inset-left, 0px));
  --side-r: max(20px, env(safe-area-inset-right, 0px));
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper);
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }

.wrap {
  width: 100%; max-width: var(--max); margin-inline: auto;
  padding-left: var(--side-l); padding-right: var(--side-r);
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--on-ink); padding: 10px 16px; font-weight: 600;
}
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 700; font-size: .78rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.eyebrow--light { color: var(--on-ink-muted); }
.cross { width: 27px; height: 18px; flex: none; }

.section { padding-block: clamp(64px, 9vw, 120px); }
.section-head { display: grid; gap: 14px; max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(1.75rem, 1.1rem + 2.6vw, 2.75rem); font-weight: 800; letter-spacing: -.015em; }
.section-head p { color: var(--muted); font-size: 1.125rem; max-width: 62ch; }
.on-ink .section-head p { color: var(--on-ink-muted); }
.rule { width: 64px; height: 4px; background: var(--red); border: 0; margin: 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: var(--radius);
  font-family: var(--f-display); font-weight: 700; font-size: .95rem; letter-spacing: .02em;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-strong); }
.btn--ink { background: var(--ink); color: var(--on-ink); }
.btn--ink:hover { background: var(--ink-3); }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: var(--on-ink); }
.btn--line-light { border-color: var(--on-ink); color: var(--on-ink); background: transparent; }
.btn--line-light:hover { background: var(--on-ink); color: var(--ink); }
.wa-dot { color: #25d366; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(18, 21, 25, .5); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; transition: min-height .3s var(--ease); }
.site-header.is-scrolled .header-row { min-height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 52px; height: 34px; flex: none; }
.brand-text { display: grid; line-height: 1; }
.brand-name { font-family: var(--f-display); font-weight: 900; font-size: 1.28rem; letter-spacing: .01em; text-transform: uppercase; }
.brand-sub { font-family: var(--f-display); font-weight: 800; font-size: .7rem; letter-spacing: .42em; color: var(--red); text-transform: uppercase; margin-top: 4px; }

.site-nav ul { list-style: none; display: flex; align-items: center; gap: 4px; }
.site-nav a {
  position: relative; display: block; padding: 10px 10px; white-space: nowrap;
  font-family: var(--f-display); font-weight: 700; font-size: .86rem; text-decoration: none; color: var(--ink);
}
.site-nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.header-tel { font-family: var(--f-display); font-weight: 800; font-size: 1rem; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.header-tel span { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.nav-toggle {
  display: none; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer;
  position: relative; color: var(--ink);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 12px; width: 24px; height: 2px; background: currentColor; content: "";
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle span { top: 23px; }
.nav-toggle span::before { left: 0; top: -7px; }
.nav-toggle span::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1240px) {
  .header-tel { display: none; }
}
.header-cta .btn { white-space: nowrap; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .header-cta .btn { display: none; }
  .site-nav {
    position: fixed; left: 0; right: 0;
    top: calc(64px + env(safe-area-inset-top, 0px)); bottom: 0;
    background: var(--paper); border-top: 1px solid var(--line);
    padding: 20px var(--side-r) 120px var(--side-l);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
    overflow-y: auto;
  }
  .site-nav.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity .25s, transform .3s var(--ease); }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { font-size: 1.25rem; padding: 18px 4px; border-bottom: 1px solid var(--line); }
  .site-nav a::after { left: 4px; right: auto; width: 40px; bottom: -1px; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--paper); overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
  padding-block: clamp(36px, 6vw, 80px) clamp(20px, 3vw, 40px);
  position: relative; z-index: 2;
}
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero h1 { font-size: clamp(2.1rem, 1.05rem + 4.2vw, 4.1rem); font-weight: 900; letter-spacing: -.025em; line-height: 1.02; }
.hero h1 .h1-sub {
  display: block; margin-top: 14px;
  font-size: .44em; font-weight: 700; letter-spacing: 0; line-height: 1.25; color: var(--red-strong);
}
.lead { font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem); color: var(--muted); max-width: 58ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Carte « interlocuteur », reprise du verso de la carte de visite */
.id-card {
  position: relative; background: var(--ink); color: var(--on-ink);
  padding: 28px 28px 26px; border-radius: var(--radius); overflow: hidden;
  display: grid; gap: 18px; min-width: 0;
  box-shadow: 0 30px 60px -36px rgba(18, 21, 25, .65);
}
.id-card::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; right: -36px; width: 26px;
  border-left: 5px solid var(--red); border-right: 2px solid var(--red);
  transform: rotate(18deg); opacity: .95;
}
.id-name { font-family: var(--f-display); font-size: 1.6rem; line-height: 1.1; }
.id-name b { font-weight: 900; }
.id-name span { font-weight: 500; }
.id-role { color: var(--on-ink-muted); font-size: .95rem; margin-top: 6px; }
.id-rule { height: 2px; background: var(--red); width: 70%; }
.id-list { list-style: none; display: grid; gap: 14px; position: relative; z-index: 1; padding-right: 22px; }
.id-list li { display: flex; align-items: center; gap: 14px; min-width: 0; }
.id-ico { width: 38px; height: 38px; border-radius: 50%; background: var(--red); display: grid; place-items: center; flex: none; }
.id-ico svg { width: 18px; height: 18px; color: #fff; }
.id-list a { text-decoration: none; overflow-wrap: anywhere; }
.id-mail { font-size: .95rem; }
.id-list a:hover { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.id-tel { font-family: var(--f-display); font-weight: 800; font-size: 1.45rem; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.id-small { font-size: .78rem; color: var(--on-ink-muted); display: block; line-height: 1.3; }

/* Montagnes */
.ridge { position: relative; z-index: 1; aspect-ratio: 4 / 1; min-height: 110px; max-height: 400px; width: 100%; margin-top: -24px; }
.ridge svg { width: 100%; height: 100%; }
.ridge .r-back { fill: var(--ridge-back); }
.ridge .r-front { fill: var(--ink); }
.ridge .r-snow { fill: var(--paper); }
.ridge .r-line { fill: none; stroke: var(--red); stroke-width: 3; stroke-linejoin: round; }
.ridge--sm { max-height: 300px; }

/* Animation d'ouverture : les crêtes montent, le trait rouge se dessine */
@media (prefers-reduced-motion: no-preference) {
  .anim .r-back { animation: rise 1.1s var(--ease) both; }
  .anim .r-front { animation: rise 1.1s .12s var(--ease) both; }
  .anim .r-snow { animation: fade .8s .7s ease both; }
  .anim .r-line { stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: draw 1.6s .45s var(--ease) forwards; }
  .anim-in > * { animation: up .8s var(--ease) both; }
  .anim-in > *:nth-child(2) { animation-delay: .08s; }
  .anim-in > *:nth-child(3) { animation-delay: .16s; }
  .anim-in > *:nth-child(4) { animation-delay: .24s; }
  .anim-in > *:nth-child(5) { animation-delay: .32s; }
  .anim-card { animation: card 1s .25s var(--ease) both; }
}
@keyframes rise { from { transform: translateY(40px); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes card { from { opacity: 0; transform: translateY(24px) rotate(-1.5deg); } to { opacity: 1; transform: none; } }

/* Apparition au défilement : uniquement pour les blocs hors écran au chargement */
@media (prefers-reduced-motion: no-preference) {
  .will-reveal { opacity: 0; transform: translateY(26px); }
  .will-reveal.is-in {
    opacity: 1; transform: none;
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    transition-delay: calc(var(--d, 0) * 90ms);
  }
}

/* ---------- Services (bande encre) ---------- */
.on-ink { background: var(--ink); color: var(--on-ink); }
.services { margin-top: -1px; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.service {
  position: relative; display: flex; flex-direction: column; gap: 16px;
  padding: 30px 26px 26px; background: var(--ink-2); border-top: 3px solid var(--red);
  text-decoration: none; color: inherit; min-width: 0;
  transition: background-color .3s, transform .35s var(--ease);
}
.service:hover { background: var(--ink-3); transform: translateY(-4px); }
.service-ico { width: 64px; height: 64px; color: var(--on-ink); transition: transform .4s var(--ease); }
.service:hover .service-ico { transform: translateY(-3px) scale(1.04); }
.service-ico .acc { color: var(--red); }
.service h3 { font-size: 1.15rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.service p { color: var(--on-ink-muted); }
.service ul { list-style: none; display: grid; gap: 6px; font-size: .97rem; }
.service li { padding-left: 18px; position: relative; }
.service li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 2px; background: var(--red); }
.service-more {
  margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 700; font-size: .9rem;
}
.service-more svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.service:hover .service-more svg { transform: translateX(5px); }

/* ---------- Étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); list-style: none; counter-reset: s; }
.step { display: grid; gap: 10px; align-content: start; padding-top: 22px; border-top: 1px solid var(--line); min-width: 0; }
.step-num {
  font-family: var(--f-display); font-weight: 900; font-size: 3.2rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 2px var(--red);
}
.step h3 { font-size: 1.2rem; font-weight: 800; }
.step p { color: var(--muted); }

/* ---------- Engagements ---------- */
.bg-mist { background: var(--mist); }
.pledges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; background: var(--line); list-style: none; border: 2px solid var(--line); }
.pledge { background: var(--paper); padding: 26px 22px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.pledge h3 { font-size: 1.02rem; font-weight: 800; }
.pledge p { color: var(--muted); font-size: .98rem; }
.pledge svg { width: 28px; height: 28px; color: var(--red); }

/* ---------- Zone ---------- */
.zones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.zone { border: 1px solid var(--line); padding: 26px 24px; display: grid; gap: 10px; align-content: start; min-width: 0; background: var(--paper); }
.zone .zone-num { font-family: var(--f-display); font-weight: 900; font-size: 3.4rem; line-height: .9; color: var(--ink); font-variant-numeric: tabular-nums; }
.zone .zone-num small { font-size: .9rem; font-weight: 700; letter-spacing: .14em; color: var(--red-strong); vertical-align: top; margin-left: 4px; }
.zone h3 { font-size: 1.15rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.zone p { color: var(--muted); font-size: .98rem; }

/* ---------- Pages service ---------- */
.crumbs { font-size: .9rem; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--red-strong); }
.page-hero .hero-grid { padding-block: clamp(24px, 4vw, 56px) clamp(16px, 2vw, 28px); }

.prep { background: var(--mist); padding: 26px 24px; border-left: 4px solid var(--red); display: grid; gap: 12px; min-width: 0; }
.prep h2 { font-size: 1.05rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.prep ul { list-style: none; display: grid; gap: 8px; }
.prep li { display: flex; gap: 10px; align-items: baseline; }
.prep li svg { width: 16px; height: 16px; flex: none; color: var(--red); transform: translateY(2px); }
.prep .btn { justify-self: start; margin-top: 4px; }

.items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; background: #2a3038; border: 2px solid #2a3038; list-style: none; }
.item { background: var(--ink); padding: 28px 26px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.item h3 { font-size: 1.15rem; font-weight: 800; }
.item p { color: var(--on-ink-muted); }
.item-tag { font-family: var(--f-display); font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #ff5a5f; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.prose { display: grid; gap: 16px; max-width: 62ch; }
.prose h2 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); font-weight: 800; letter-spacing: -.01em; }
.prose p { color: var(--muted); }
.prose strong { color: var(--text); }
.factors { list-style: none; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.factor { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.factor svg { width: 30px; height: 30px; color: var(--red); }
.factor h3 { font-size: 1.02rem; font-weight: 800; margin-bottom: 4px; }
.factor p { color: var(--muted); font-size: .98rem; }

/* FAQ */
.faq { display: grid; gap: 0; max-width: 860px; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center;
  padding: 22px 4px; font-family: var(--f-display); font-weight: 700; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 14px; height: 14px; flex: none;
  border-right: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red);
  transform: rotate(45deg) translateY(-4px); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq summary:hover { color: var(--red-strong); }
.faq .answer { padding: 0 4px 24px; color: var(--muted); max-width: 70ch; }
@media (prefers-reduced-motion: no-preference) {
  .faq details[open] .answer { animation: up .45s var(--ease); }
}

.related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.related a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 24px; border: 2px solid var(--ink); text-decoration: none;
  font-family: var(--f-display); font-weight: 800; font-size: 1.05rem; min-width: 0;
  transition: background-color .3s, color .3s;
}
.related a:hover { background: var(--ink); color: var(--on-ink); }
.related svg { width: 22px; height: 22px; flex: none; color: var(--red); transition: transform .3s var(--ease); }
.related a:hover svg { transform: translateX(5px); }

/* ---------- Contact / devis ---------- */
.contact { position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(112deg, transparent 0 49%, var(--red) 49% 49.5%, transparent 49.5% 50.6%, var(--red) 50.6% 51.8%, transparent 51.8%);
  opacity: .9;
}
.contact-grid { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-copy { display: grid; gap: 20px; min-width: 0; }
.contact-copy h2 { font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3rem); font-weight: 900; letter-spacing: -.02em; }
.contact-copy > p { color: var(--on-ink-muted); max-width: 48ch; }
.contact-lines { list-style: none; display: grid; gap: 14px; }
.contact-lines li { display: flex; align-items: center; gap: 14px; min-width: 0; }
.contact-lines a { text-decoration: none; overflow-wrap: anywhere; }
.contact-lines a:hover { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.big-tel { font-family: var(--f-display); font-weight: 900; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); font-variant-numeric: tabular-nums; letter-spacing: .02em; }

.quote { background: var(--paper); color: var(--text); padding: clamp(22px, 3vw, 36px); border-radius: var(--radius); display: grid; gap: 16px; min-width: 0; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
.quote h3 { font-size: 1.3rem; font-weight: 800; }
.quote .hint { color: var(--muted); font-size: .95rem; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--f-display); font-weight: 700; font-size: .82rem; letter-spacing: .03em; }
.field label .req { color: var(--red-strong); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--paper);
  border: 1.5px solid #b9c0c7; border-radius: var(--radius); padding: 12px 14px; min-height: 50px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(215, 20, 26, .25); }
.field input:user-invalid, .field textarea:user-invalid, .field select:user-invalid { border-color: var(--red-strong); }
.field .err { color: var(--red-strong); font-size: .86rem; font-weight: 600; }
.quote-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.quote-actions .btn { flex: 1 1 200px; }
.form-status { font-size: .95rem; font-weight: 600; min-height: 1.4em; }
.form-status.is-ok { color: #1d6b3a; }
.form-status.is-err { color: var(--red-strong); }
.privacy { font-size: .82rem; color: var(--muted); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: var(--on-ink-muted); border-top: 1px solid var(--ink-3); font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 56px 36px; }
.site-footer .brand { color: var(--on-ink); }
.site-footer .brand-mark .r-front { fill: var(--on-ink); }
.site-footer .brand-mark .r-snow { fill: var(--ink); }
.site-footer h2 { font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--on-ink); margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--on-ink); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.footer-about { display: grid; gap: 14px; align-content: start; }
.footer-base { border-top: 1px solid var(--ink-3); padding-block: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .88rem; }

/* ---------- Barre d'action mobile ---------- */
.action-bar { display: none; }
@media (max-width: 900px) {
  .action-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    padding: 10px var(--side-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--side-l);
    background: var(--paper); border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px -20px rgba(18, 21, 25, .5);
  }
  .action-bar .btn { min-height: 50px; padding: 0 12px; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .pledges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero-grid, .contact-grid, .split { grid-template-columns: minmax(0, 1fr); }
  .service-grid, .steps, .zones { grid-template-columns: minmax(0, 1fr); }
  .contact::before { display: none; }
  .id-card { max-width: 520px; }
}
@media (max-width: 640px) {
  .items, .related, .fields { grid-template-columns: minmax(0, 1fr); }
  .pledges { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .brand-name { font-size: 1.1rem; }
  .brand-mark { width: 44px; height: 29px; }
  .cta-row .btn { flex: 1 1 100%; }
  .id-card { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0s !important; }
}

/* Logo (marque) */
.brand-mark .r-front { fill: var(--ink); }
.brand-mark .r-snow { fill: var(--paper); }
.brand-mark .r-red { fill: none; stroke: var(--red); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* Logo image */
.brand-logo { height: 54px; width: auto; display: block; }
.site-header.is-scrolled .brand-logo { height: 46px; }
.brand-logo { transition: height .3s var(--ease); }
.site-footer .brand { background: var(--paper); padding: 10px 14px; border-radius: var(--radius); justify-self: start; }
.site-footer .brand-logo { height: 48px; }
@media (max-width: 640px) { .brand-logo, .site-header.is-scrolled .brand-logo { height: 48px; } }

/* Petite mention (habilitation) */
.note { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 600; color: var(--muted); }
.note svg { width: 16px; height: 16px; color: var(--red); flex: none; }

/* Cibles tactiles >= 24px (WCAG 2.5.8) pour les liens texte */
.site-footer ul a { display: inline-block; padding-block: 5px; }
.site-footer ul { gap: 2px; }
.crumbs a { display: inline-block; padding-block: 4px; }
.footer-base a { display: inline-block; padding-block: 6px; }
@media (max-width: 420px) { .eyebrow { letter-spacing: .08em; font-size: .72rem; gap: 8px; } }

/* ================= Page professionnels ================= */
.pro-hero { background: var(--ink); color: var(--on-ink); }
.pro-hero .lead { color: var(--on-ink-muted); }
.pro-hero h1 { font-size: clamp(2rem, 1.1rem + 3.4vw, 3.5rem); }
.crumbs--light { color: var(--on-ink-muted); }
.crumbs--light li + li::before { color: var(--ink-3); }
.crumbs--light a:hover { color: #fff; }
.ridge--onink .r-back { fill: var(--ink-3); }
.ridge--onink .r-front { fill: var(--paper); }
.ridge--onink .r-snow { fill: var(--ink); }

/* Carte « échelle » : 1 chalet -> 100 appartements */
.scale-card {
  background: var(--paper); color: var(--text); border-radius: var(--radius);
  padding: clamp(20px, 3vw, 30px); display: grid; gap: 18px; min-width: 0;
  border-top: 4px solid var(--red);
  box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .8);
}
.scale-row { display: grid; grid-template-columns: minmax(0, .8fr) auto minmax(0, 1.4fr); gap: 14px; align-items: end; }
.scale-one, .scale-many { display: grid; gap: 10px; justify-items: start; min-width: 0; }
.scale-one svg { width: 64px; height: 64px; color: var(--ink); }
.scale-card p { font-size: .95rem; line-height: 1.3; color: var(--muted); }
.scale-card p b { display: block; font-family: var(--f-display); font-weight: 900; font-size: 2.1rem; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.scale-arrow { color: var(--red); align-self: center; }
.scale-arrow svg { width: 26px; height: 26px; }
.dots { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; width: 100%; max-width: 170px; }
.dots i { aspect-ratio: 1; border-radius: 1px; background: var(--ink); }
.dots i:nth-child(10n+3), .dots i:nth-child(17), .dots i:nth-child(58), .dots i:nth-child(84) { background: var(--red); }
.scale-note { border-top: 1px solid var(--line); padding-top: 14px; font-weight: 600; color: var(--text) !important; }
@media (prefers-reduced-motion: no-preference) {
  .anim-card .dots i { animation: dot .5s var(--ease) both; animation-delay: calc(.5s + var(--i) * 12ms); }
}
@keyframes dot { from { opacity: .15; transform: scale(.4); } to { opacity: 1; transform: none; } }
@media (max-width: 340px) {
  .scale-row { grid-template-columns: minmax(0, 1fr); }
  .scale-arrow { transform: rotate(90deg); justify-self: start; }
}

/* Prestations sur fond clair, 3 colonnes */
.items--light { background: var(--line); border-color: var(--line); }
.items--light .item { background: var(--paper); }
.items--light .item p { color: var(--muted); }
.items--light .item-tag { color: var(--red-strong); }
.items--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.auds { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.aud { border: 1px solid var(--line); border-left: 4px solid var(--ink); padding: 20px; display: grid; gap: 6px; align-content: start; min-width: 0; background: var(--paper); }
.aud h3 { font-size: 1.05rem; font-weight: 800; }
.aud p { color: var(--muted); font-size: .98rem; }
.related--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Bandeau pro sur l'accueil */
.pro-band { background: var(--mist); border-bottom: 1px solid var(--line); }
.pro-band-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) auto; gap: 24px 48px; align-items: center; padding-block: clamp(36px, 5vw, 56px); }
.pro-band-copy { display: grid; gap: 10px; min-width: 0; }
.pro-band h2 { font-size: clamp(1.35rem, 1rem + 1.4vw, 1.9rem); font-weight: 800; letter-spacing: -.01em; }
.pro-band p { color: var(--muted); max-width: 62ch; }
.pro-band-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.pro-band-cta .btn svg { width: 18px; height: 18px; }

@media (max-width: 1040px) {
  .items--3, .steps--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .pro-band-grid { grid-template-columns: minmax(0, 1fr); }
  .related--3 { grid-template-columns: minmax(0, 1fr); }
  .scale-card { max-width: 560px; }
}
@media (max-width: 640px) {
  .items--3, .steps--4, .auds { grid-template-columns: minmax(0, 1fr); }
  .pro-band-cta .btn { flex: 1 1 100%; }
}
/* Menu : 5 liens + contact, on resserre un peu */
@media (min-width: 901px) and (max-width: 1180px) { .site-nav a { font-size: .8rem; padding-inline: 7px; } }

/* Correctifs */
ol { margin: 0; padding: 0; }
.step-num { color: var(--red); -webkit-text-stroke: 0; font-size: 2.6rem; }
.crumbs ol { align-items: center; }
.ridge--onink .r-snow { display: none; }
.dots i:nth-child(10n+3), .dots i:nth-child(17), .dots i:nth-child(58), .dots i:nth-child(84) { background: var(--ink); }
.dots i:first-child { background: var(--red); }
.steps--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.steps--5 .step h3 { font-size: 1.05rem; }
@media (max-width: 1040px) { .steps--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .steps--5 { grid-template-columns: minmax(0, 1fr); } }
.scale-note strong { color: var(--ink); }
