/* ==========================================================================
   DT Jura — feuille de style principale
   Police : Urbanist (variable, auto-hébergée)
   Couleurs reprises du site d'origine : anthracite #1D242C, cuivre #8D462B / #CE7F56
   ========================================================================== */

@font-face {
  font-family: "Urbanist";
  src: url("../fonts/urbanist-variable-latin.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   1. Jetons de design
   -------------------------------------------------------------------------- */
:root {
  --anthracite: #1d242c;
  --anthracite-2: #262e37;
  --anthracite-3: #323b45;
  --joint: #4a5056;
  --beton: #acacac;
  --cuivre: #8d462b;
  --cuivre-fonce: #723720;
  --cuivre-clair: #ce7f56;
  --cuivre-pale: #e2a787;
  --chaux: #f3f4f5;
  --gris-ligne: #dde1e4;
  --gris-champ: #b9c0c6;
  --gris-texte: #555d65;
  --erreur: #b3261e;
  --succes: #2f6b3f;

  --font: "Urbanist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 78rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 9vw, 8.5rem);
  --radius: 3px;
  --header-h: 4.5rem;

  --fs-xs: .875rem;
  --fs-sm: .9375rem;
  --fs-body: clamp(1.0625rem, 1.02rem + .2vw, 1.1875rem);
  --fs-lead: clamp(1.1875rem, 1.1rem + .45vw, 1.4375rem);
  --fs-h3: clamp(1.25rem, 1.14rem + .45vw, 1.5rem);
  --fs-h2: clamp(2.125rem, 1.45rem + 2.7vw, 3.75rem);
  --fs-h1: clamp(2.75rem, 1.5rem + 5.1vw, 6.25rem);
  --fs-h1-page: clamp(2.5rem, 1.55rem + 3.7vw, 4.75rem);

  /* Surface claire par défaut */
  --bg: #fff;
  --fg: var(--anthracite);
  --fg-2: var(--gris-texte);
  --fg-lead: #3b434b;
  --line: var(--gris-ligne);
  --accent: var(--cuivre);
  --accent-hover: var(--cuivre-fonce);
  --btn-bg: var(--cuivre);
  --btn-fg: #fff;
  --btn-bg-hover: var(--cuivre-fonce);
  --focus: var(--cuivre);
  --ill-old: #8a9097;
  --ill-new: var(--cuivre);
  --ill-text: var(--gris-texte);
}

.surface-dark {
  --bg: var(--anthracite);
  --fg: #fff;
  --fg-2: var(--beton);
  --fg-lead: #d4d8dc;
  --line: var(--joint);
  --accent: var(--cuivre-clair);
  --accent-hover: var(--cuivre-pale);
  --btn-bg: var(--cuivre-clair);
  --btn-fg: var(--anthracite);
  --btn-bg-hover: var(--cuivre-pale);
  --focus: var(--cuivre-clair);
  --ill-old: rgba(255, 255, 255, .42);
  --ill-new: var(--cuivre-clair);
  --ill-text: var(--beton);
  background: var(--bg);
  color: var(--fg);
}

.surface-chaux {
  --bg: var(--chaux);
  background: var(--bg);
  color: var(--fg);
}

.surface-light {
  background: var(--bg);
  color: var(--fg);
}

.surface-cuivre {
  --bg: var(--cuivre);
  --fg: #fff;
  --fg-2: #f6e6dd;
  --fg-lead: #fbefe8;
  --line: rgba(255, 255, 255, .35);
  --accent: #fff;
  --accent-hover: #fff;
  --btn-bg: #fff;
  --btn-fg: var(--anthracite);
  --btn-bg-hover: var(--chaux);
  --focus: #fff;
  background: var(--bg);
  color: var(--fg);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 450;
  line-height: 1.6;
  color: var(--anthracite);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -.02em;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
dl, dd { margin: 0; }
figure { margin: 0; }
address { font-style: normal; }
a { color: inherit; }
abbr[title] { text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }

::selection { background: var(--cuivre-clair); color: var(--anthracite); }

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

/* Liens dans le texte */
.prose a,
.link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  transition: color .15s, text-decoration-thickness .15s;
}
.prose a:hover,
.link:hover {
  color: var(--accent-hover);
  text-decoration-thickness: 2px;
}
.link { font-weight: 650; }

/* --------------------------------------------------------------------------
   3. Typographie
   -------------------------------------------------------------------------- */
.h1 {
  font-size: var(--fs-h1);
  font-weight: 300;
  line-height: .98;
  letter-spacing: -.038em;
}
.h1--page {
  font-size: var(--fs-h1-page);
  line-height: 1.02;
  letter-spacing: -.032em;
}
.h2 {
  font-size: var(--fs-h2);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -.03em;
}
.h3 {
  font-size: var(--fs-h3);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -.01em;
}
.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--fg-lead);
  max-width: 40em;
}
.muted { color: var(--fg-2); }

.prose { max-width: 42rem; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  margin-top: 2.4em;
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  font-weight: 400;
  letter-spacing: -.02em;
}
.prose h3 {
  margin-top: 1.8em;
  font-size: 1.1875rem;
  font-weight: 650;
  letter-spacing: -.005em;
}
.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: .4em; }
.prose strong { font-weight: 650; }

/* --------------------------------------------------------------------------
   4. Mise en page
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section.surface-light + .section.surface-light,
.section.surface-chaux + .section.surface-chaux { padding-top: 0; }

.section-head {
  display: grid;
  gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.section-head > p {
  max-width: 36em;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--fg-2);
}
@media (min-width: 62em) {
  .section-head--split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
    column-gap: 4rem;
  }
}

.nowrap { white-space: nowrap; }

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: .5rem;
  left: .5rem;
  z-index: 1000;
  padding: .75rem 1rem;
  background: #fff;
  color: var(--anthracite);
  font-weight: 650;
  border-radius: var(--radius);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* --------------------------------------------------------------------------
   5. Boutons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 3.25rem;
  padding: .8rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: .005em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color .18s, border-color .18s, color .18s;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

.btn--primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn--primary:hover { background: var(--btn-bg-hover); }

.btn--secondary {
  background: transparent;
  color: var(--fg);
  border-color: var(--line);
  border-color: color-mix(in srgb, var(--fg) 38%, transparent);
}
.btn--secondary:hover { border-color: var(--fg); }

.btn--dark { background: var(--anthracite); color: #fff; }
.btn--dark:hover { background: var(--anthracite-3); }

.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

/* --------------------------------------------------------------------------
   6. En-tête et navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}
.brand { flex: none; display: block; padding: .25rem 0; }
.brand img { height: 2.875rem; width: auto; }

.nav { margin-left: auto; }
.nav__list {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
}
.nav__item { display: flex; align-items: center; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .6rem .8rem;
  border: 0;
  background: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: color .15s;
}
.nav__link:hover,
.nav__link[aria-current="page"],
.nav__item--current > .nav__link { color: var(--cuivre-clair); }

.nav__toggle {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-left: -.5rem;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  border-radius: var(--radius);
}
.nav__toggle svg { width: 1rem; height: 1rem; transition: transform .2s; }
.nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__toggle:hover { color: var(--cuivre-clair); }

.subnav {
  position: absolute;
  top: calc(100% - .25rem);
  right: var(--gutter);
  z-index: 10;
  display: none;
  width: min(44rem, 92vw);
  padding: 1.75rem;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
  background: #fff;
  color: var(--anthracite);
  border-radius: 4px;
  box-shadow: 0 28px 60px -18px rgba(10, 14, 18, .5);
  --focus: var(--cuivre);
}
.subnav::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1.5rem;
  height: 1.5rem;
}
.nav__item--sub.is-open .subnav { display: grid; }
@media (hover: hover) and (min-width: 52.0625em) {
  .nav__item--sub:hover .subnav { display: grid; }
}
.subnav__title {
  margin-bottom: .75rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--gris-texte);
}
.subnav__group ul { list-style: none; display: grid; gap: .25rem; }
.subnav__group a {
  display: grid;
  gap: .15rem;
  margin-inline: -.75rem;
  padding: .65rem .75rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background-color .15s;
}
.subnav__group a:hover { background: var(--chaux); }
.subnav__group strong { font-weight: 650; font-size: 1.0625rem; }
.subnav__group span { font-size: var(--fs-sm); color: var(--gris-texte); line-height: 1.4; }
.subnav__all {
  grid-column: 1 / -1;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gris-ligne);
  font-weight: 650;
  color: var(--cuivre);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
}
.subnav__all:hover { color: var(--cuivre-fonce); text-decoration-thickness: 2px; }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem .5rem;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.header-phone svg { width: 1.1rem; height: 1.1rem; color: var(--cuivre-clair); }
.header-phone:hover { color: var(--cuivre-clair); }
.header-cta { min-height: 2.875rem; padding-inline: 1.15rem; }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.875rem;
  height: 2.875rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius);
  background: none;
  color: #fff;
}
.menu-toggle svg { width: 1.375rem; height: 1.375rem; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.header-call {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.875rem;
  height: 2.875rem;
  border-radius: var(--radius);
  background: var(--cuivre-clair);
  color: var(--anthracite);
}
.header-call svg { width: 1.25rem; height: 1.25rem; }

@media (max-width: 75em) {
  .header-phone span { display: none; }
}
@media (max-width: 52em) {
  :root { --header-h: 4rem; }
  .brand img { height: 2.25rem; }
  .js .nav,
  .header-phone,
  .header-cta { display: none; }
  .js .menu-toggle { display: inline-flex; }
  .js .header-call { display: inline-flex; margin-left: auto; }
  /* Sans JavaScript : navigation affichée sur une seconde ligne */
  .no-js .site-header__inner { flex-wrap: wrap; padding-block: .5rem; }
  .no-js .nav { width: 100%; margin: 0; }
  .no-js .nav__list { flex-wrap: wrap; }
  .no-js .nav__toggle { display: none; }
}

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.5rem var(--gutter) 3rem;
  background: var(--anthracite);
  color: #fff;
}
.mobile-menu__group + .mobile-menu__group { margin-top: 2rem; }
.mobile-menu__title {
  margin-bottom: .5rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--beton);
}
.mobile-menu ul { list-style: none; }
.mobile-menu li a {
  display: block;
  padding: .7rem 0;
  border-bottom: 1px solid var(--joint);
  font-size: 1.375rem;
  font-weight: 400;
  letter-spacing: -.01em;
  color: #fff;
  text-decoration: none;
}
.mobile-menu li a[aria-current="page"] { color: var(--cuivre-clair); }
.mobile-menu__actions { display: grid; gap: .75rem; margin-top: 2rem; }
.mobile-menu__contact { margin-top: 2rem; display: grid; gap: .35rem; color: var(--beton); font-size: var(--fs-sm); }
.mobile-menu__contact a { color: #fff; }
html.menu-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   7. Accueil — héros et façade animée
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 6rem) clamp(3.5rem, 7vw, 6rem);
}
.hero__grid {
  display: grid;
  gap: 3.5rem;
  align-items: end;
}
@media (min-width: 60em) {
  .hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 3rem;
  }
}
@media (min-width: 75em) {
  .hero__grid { grid-template-columns: minmax(0, 13fr) minmax(0, 11fr); }
}
.hero__title { max-width: 11.5ch; }
.hero__lead { margin-top: 1.75rem; max-width: 34em; }
.hero__actions { margin-top: 2.5rem; }

.facade {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 1.25rem;
  width: 100%;
  max-width: 38rem;
  justify-self: end;
}
@media (max-width: 59.99em) {
  .facade { max-width: 26rem; justify-self: start; }
}
.facade__svg { width: 100%; height: auto; overflow: visible; }
.facade__levels {
  position: relative;
  width: 9.75rem;
  list-style: none;
}
.facade__levels::before {
  content: "";
  position: absolute;
  left: 5.5px;
  top: 0;
  bottom: 3.9%;
  border-left: 1px solid var(--joint);
}
.facade__levels li {
  position: absolute;
  left: 0;
  top: var(--y);
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: var(--fs-sm);
  font-weight: 550;
  line-height: 1.2;
  color: var(--beton);
  white-space: nowrap;
  transform: translateY(-50%);
}
.facade__levels li::before {
  content: "";
  flex: none;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 9px solid var(--cuivre-clair);
}
.facade__levels li.is-top { color: #fff; }
@media (max-width: 30em) {
  .facade { column-gap: .75rem; }
  .facade__levels { width: 7.75rem; }
  .facade__levels li { font-size: .8125rem; gap: .45rem; }
}

.facade .guide {
  stroke: rgba(255, 255, 255, .14);
  stroke-width: 1;
  stroke-dasharray: 5 9;
  vector-effect: non-scaling-stroke;
}

/* Une seule animation orchestrée : le bâtiment s'élève, les étapes se posent */
@media (prefers-reduced-motion: no-preference) {
  .facade .base {
    transform-box: fill-box;
    transform-origin: 0 50%;
    animation: dtj-lay .7s cubic-bezier(.2, .75, .2, 1) both;
  }
  .facade .bar {
    transform-box: fill-box;
    transform-origin: 50% 100%;
    animation: dtj-rise 1s cubic-bezier(.2, .75, .2, 1) both;
    animation-delay: calc(.35s + var(--i) * .08s);
  }
  .facade .guide,
  .facade__levels li {
    animation: dtj-appear .45s ease-out both;
    animation-delay: calc(.45s + var(--i) * .26s);
  }
}
@keyframes dtj-lay { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes dtj-rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes dtj-appear { from { opacity: 0; } to { opacity: 1; } }

/* --------------------------------------------------------------------------
   8. Héros des pages intérieures
   -------------------------------------------------------------------------- */
.page-hero { padding-block: clamp(2rem, 4vw, 3.25rem) clamp(3.5rem, 7vw, 6rem); }
.page-hero__grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 60em) {
  .page-hero__grid--ill { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4rem; }
}
.page-hero .lead { margin-top: 1.5rem; }
.page-hero .actions { margin-top: 2.25rem; }
.page-hero__ill { max-width: 30rem; width: 100%; justify-self: end; }
@media (max-width: 59.99em) {
  .page-hero__ill { max-width: 24rem; justify-self: start; }
}

.breadcrumb { margin-bottom: clamp(2rem, 4vw, 3rem); font-size: var(--fs-sm); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; color: var(--fg-2); }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: var(--joint); }
.breadcrumb a { color: var(--fg-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: .2em; }
.breadcrumb [aria-current] { color: var(--fg); }

/* Sommaire des services (héros de la page Services) */
.hero-index { width: 100%; max-width: 26rem; justify-self: end; }
@media (max-width: 59.99em) { .hero-index { justify-self: start; } }
.hero-index__group + .hero-index__group { margin-top: 1.75rem; }
.hero-index__title { margin-bottom: .5rem; font-size: var(--fs-sm); font-weight: 600; color: var(--beton); }
.hero-index ul { list-style: none; border-top: 1px solid var(--joint); }
.hero-index a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--joint);
  font-size: 1.125rem;
  font-weight: 550;
  color: #fff;
  text-decoration: none;
}
.hero-index a:hover { color: var(--cuivre-clair); }

/* --------------------------------------------------------------------------
   9. Illustrations au trait (convention des plans : existant gris, nouveau cuivre)
   -------------------------------------------------------------------------- */
.ill { width: 100%; height: auto; overflow: visible; }
.ill .o,
.ill .n {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.ill .o { stroke: var(--ill-old); }
.ill .n { stroke: var(--ill-new); stroke-width: 2.4; }
.ill .thin { stroke-width: 1.25; }
.ill .dash { stroke-dasharray: 6 5; }
.ill .fill-n { fill: var(--ill-new); stroke: none; }
.ill .fill-o { fill: var(--ill-old); stroke: none; }
.ill text {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 550;
  fill: var(--ill-text);
}

/* Schémas contractuels */
.schema { width: 100%; height: auto; overflow: visible; }
.schema text { font-family: var(--font); font-weight: 650; font-size: 15px; fill: var(--anthracite); }
.schema .t-small { font-size: 13px; font-weight: 550; fill: var(--gris-texte); }
.schema .t-inv { fill: #fff; }
.schema .box { fill: #fff; stroke: var(--anthracite); stroke-width: 1.5; }
.schema .box-dt { fill: var(--anthracite); stroke: var(--anthracite); stroke-width: 1.5; }
.schema .box-trade { fill: var(--chaux); stroke: var(--gris-champ); stroke-width: 1.25; }
.schema .ln-contract { fill: none; stroke: var(--cuivre); stroke-width: 2.25; }
.schema .ln-sub { fill: none; stroke: #8a9097; stroke-width: 1.5; }
.schema .ln-ctrl { fill: none; stroke: #8a9097; stroke-width: 1.5; stroke-dasharray: 5 4; }
.schema .dot { fill: var(--cuivre); }
.surface-chaux .schema .box-trade { fill: #fff; }
.surface-dark .schema text { fill: #fff; }
.surface-dark .schema .t-small { fill: var(--beton); }
.surface-dark .schema .box { fill: var(--anthracite); stroke: rgba(255, 255, 255, .7); }
.surface-dark .schema .box-dt { fill: var(--cuivre-clair); stroke: var(--cuivre-clair); }
.surface-dark .schema .box-dt + text,
.surface-dark .schema .t-inv { fill: var(--anthracite); }
.surface-dark .schema .box-trade { fill: var(--anthracite-2); stroke: var(--joint); }
.surface-dark .schema .ln-contract { stroke: var(--cuivre-clair); }
.surface-dark .schema .dot { fill: var(--cuivre-clair); }
.surface-dark .schema .ln-sub,
.surface-dark .schema .ln-ctrl { stroke: rgba(255, 255, 255, .45); }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.75rem;
  list-style: none;
  font-size: var(--fs-sm);
  color: var(--fg-2);
}
.legend li { display: inline-flex; align-items: center; gap: .6rem; }
.legend li::before {
  content: "";
  width: 1.75rem;
  border-top: 2px solid #8a9097;
}
.legend .is-contract::before { border-top: 2.5px solid var(--cuivre); }
.legend .is-ctrl::before { border-top: 2px dashed #8a9097; }
.surface-dark .legend .is-contract::before { border-top-color: var(--cuivre-clair); }

/* --------------------------------------------------------------------------
   10. Sections de l'accueil
   -------------------------------------------------------------------------- */

/* Deux projets : les panneaux forment un pignon */
.projets { display: grid; gap: 1.5rem; }
@media (min-width: 54em) {
  .projets { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}
.projet {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: clamp(2.75rem, 5vw, 4rem) clamp(1.5rem, 3.5vw, 2.75rem) clamp(1.75rem, 3.5vw, 2.5rem);
  background: var(--chaux);
}
@media (min-width: 54em) {
  .projet:first-child { clip-path: polygon(0 2.25rem, 100% 0, 100% 100%, 0 100%); }
  .projet:last-child { clip-path: polygon(0 0, 100% 2.25rem, 100% 100%, 0 100%); }
}
.projet__ill { max-width: 26rem; margin-bottom: 2rem; }
.projet__body { display: grid; align-content: start; gap: 1rem; }
.projet__body .link { justify-self: start; margin-top: .5rem; }

/* Comparaison des deux mandats */
.compare {
  display: grid;
  gap: 3.5rem;
}
@media (min-width: 54em) {
  .compare {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(8, auto);
    column-gap: clamp(2rem, 5vw, 4.5rem);
    row-gap: 0;
  }
  .compare__col {
    grid-row: span 8;
    display: grid;
    grid-template-rows: subgrid;
  }
}
.compare__col { align-content: start; }
.compare__col > h3 { font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem); font-weight: 400; letter-spacing: -.02em; }
.compare__def { margin-top: .75rem; color: var(--fg-2); max-width: 30em; }
.compare__fig {
  margin: 2rem 0 1.5rem;
  max-width: 26rem;
}
.compare__row {
  display: grid;
  align-content: start;
  gap: .3rem;
  padding-block: 1rem;
  border-top: 1px solid var(--gris-champ);
}
.compare__row dt { font-size: var(--fs-sm); color: var(--fg-2); }
.compare__row dd { font-weight: 600; line-height: 1.45; }
.compare__dl { display: contents; }
.compare__more { padding-top: 1.25rem; border-top: 1px solid var(--gris-champ); }
.compare-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gris-champ);
}

/* Trois phases */
.phases {
  display: grid;
  gap: 2.5rem;
  list-style: none;
  counter-reset: phase;
}
@media (min-width: 56em) {
  .phases { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .phase { padding-right: 2.5rem; }
  .phase + .phase { padding-left: 2.5rem; border-left: 1px solid var(--line); }
}
.phase__num {
  display: block;
  margin-bottom: 1.25rem;
  font-size: clamp(4rem, 3rem + 4vw, 6.5rem);
  font-weight: 200;
  line-height: .8;
  letter-spacing: -.04em;
  color: var(--accent);
}
.phase h3 { margin-bottom: 1.25rem; }
.dash-list { list-style: none; display: grid; gap: .65rem; color: var(--fg-2); }
.dash-list li { position: relative; padding-left: 1.5rem; }
.dash-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .8em;
  width: .75rem;
  border-top: 2px solid var(--accent);
}

/* Qui sommes-nous + schéma de liaison */
.about { display: grid; gap: 3.5rem; }
@media (min-width: 60em) {
  .about { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 5rem; align-items: start; }
}
.about__quote {
  margin-top: 1.75rem;
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.45;
  color: var(--fg);
}
.about .prose { margin-top: 1.5rem; color: var(--fg-2); }

.liaison {
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: var(--chaux);
}
.liaison__title { margin-bottom: 1.75rem; font-size: var(--fs-sm); font-weight: 600; color: var(--gris-texte); }
.liaison__node {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .6rem 1rem;
  border: 1.5px solid var(--anthracite);
  border-radius: var(--radius);
  background: #fff;
  font-weight: 650;
}
.liaison__node--dt { background: var(--anthracite); color: #fff; border-color: var(--anthracite); }
.liaison__mark { width: 1.3rem; height: auto; }
.liaison__link {
  height: 1.75rem;
  margin-left: 1.5rem;
  border-left: 2.5px solid var(--cuivre);
}
.liaison__list {
  list-style: none;
  margin-left: 1.5rem;
}
.liaison__list li {
  position: relative;
  padding: .7rem 0 .7rem 2rem;
}
/* tronc vertical */
.liaison__list li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-left: 1.5px solid #8a9097;
}
.liaison__list li:last-child::after { bottom: auto; height: 1.4rem; }
/* branche horizontale */
.liaison__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.4rem;
  width: 1.4rem;
  border-top: 1.5px solid #8a9097;
}
.liaison__list strong { display: block; font-weight: 650; }
.liaison__list span { display: block; font-size: var(--fs-sm); color: var(--gris-texte); line-height: 1.45; }

/* Bandeau d'appel */
.cta-band { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.cta-band__inner { display: grid; gap: 2rem; align-items: end; }
@media (min-width: 60em) {
  .cta-band__inner { grid-template-columns: minmax(0, 1fr) auto; gap: 4rem; }
}
.cta-band p { margin-top: 1rem; max-width: 36em; color: var(--fg-lead); font-size: var(--fs-lead); line-height: 1.5; }
.cta-band .btn--secondary { border-color: rgba(255, 255, 255, .55); color: #fff; }
.cta-band .btn--secondary:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

/* --------------------------------------------------------------------------
   11. Pages services
   -------------------------------------------------------------------------- */
.svc-group + .svc-group { margin-top: clamp(4rem, 8vw, 6.5rem); }
.svc-group__head { display: grid; gap: .75rem; margin-bottom: 1.5rem; }
.svc-group__head p { color: var(--fg-2); max-width: 36em; }
.svc {
  display: grid;
  gap: 2rem;
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--gris-champ);
}
.svc:last-child { border-bottom: 1px solid var(--gris-champ); }
@media (min-width: 54em) {
  .svc { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
}
.svc__ill { max-width: 24rem; }
.svc__body { display: grid; gap: 1rem; align-content: start; }
.svc__body h3 { font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem); font-weight: 400; letter-spacing: -.02em; }
.svc__body h3 a { text-decoration: none; }
.svc__body h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.svc__body > p { color: var(--fg-2); max-width: 36em; }
.svc__body .link { justify-self: start; }

.check-list { list-style: none; display: grid; gap: .55rem; }
.check-list li { position: relative; padding-left: 1.75rem; }
.check-list li::before {
  content: "";
  position: absolute;
  left: .15rem;
  top: .42em;
  width: .45rem;
  height: .8rem;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
}

/* Prestations détaillées */
.spec {
  display: grid;
  gap: 0 clamp(2rem, 4vw, 3.5rem);
  list-style: none;
}
@media (min-width: 46em) { .spec { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72em) { .spec--3 { grid-template-columns: repeat(3, 1fr); } }
.spec > li {
  display: grid;
  align-content: start;
  gap: .6rem;
  padding-block: 1.75rem 2rem;
  border-top: 1px solid var(--gris-champ);
}
.surface-dark .spec > li { border-top-color: var(--joint); }
.spec p { color: var(--fg-2); }

/* Étapes */
.steps {
  display: grid;
  gap: 2rem;
  list-style: none;
}
@media (min-width: 56em) {
  .steps { grid-template-columns: repeat(var(--n, 4), 1fr); gap: 2rem; }
}
.step { position: relative; display: grid; align-content: start; gap: .6rem; }
.step__num {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: .6rem;
  font-size: 1.125rem;
  font-weight: 650;
  color: var(--accent);
}
.step__num::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--line);
}
.step p { color: var(--fg-2); }

/* Types d'objets */
.objets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: .75rem;
  list-style: none;
}
.objets li {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem 1.1rem;
  border: 1px solid var(--gris-champ);
  border-radius: var(--radius);
  background: #fff;
  font-weight: 600;
}
.objets svg { width: 1.25rem; height: 1.25rem; color: var(--cuivre); }

/* Mise en avant (bloc conformité, formules) */
.split { display: grid; gap: 2.5rem; }
@media (min-width: 60em) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 5rem; align-items: start; }
  .split--even { grid-template-columns: 1fr 1fr; }
}
.split__head { display: grid; gap: 1.25rem; align-content: start; }
.split__head p { color: var(--fg-2); font-size: var(--fs-lead); line-height: 1.5; }

.formules { display: grid; gap: 1rem; }
@media (min-width: 46em) { .formules { grid-template-columns: 1fr 1fr; } }
.formule {
  display: grid;
  gap: .75rem;
  align-content: start;
  padding: 1.75rem;
  background: #fff;
  border-top: 3px solid var(--anthracite);
}
.formule p { color: var(--fg-2); }
.formule .link { justify-self: start; }

/* FAQ */
.faq { border-top: 1px solid var(--gris-champ); }
.faq details { border-bottom: 1px solid var(--gris-champ); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.01em;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  background:
    linear-gradient(var(--cuivre), var(--cuivre)) center / 100% 2px no-repeat,
    linear-gradient(var(--cuivre), var(--cuivre)) center / 2px 100% no-repeat;
  transition: transform .2s;
}
.faq details[open] summary::after {
  background: linear-gradient(var(--cuivre), var(--cuivre)) center / 100% 2px no-repeat;
}
.faq summary:hover { color: var(--cuivre); }
.faq .faq__answer { padding: 0 3rem 1.6rem 0; color: var(--fg-2); max-width: 46em; }
.faq .faq__answer p + p { margin-top: .8em; }

/* Autres services */
.related { display: grid; gap: 0; list-style: none; border-top: 1px solid var(--gris-champ); }
@media (min-width: 54em) {
  .related { grid-template-columns: repeat(3, 1fr); border-top: 0; gap: 1.25rem; }
}
.related a {
  display: grid;
  gap: .4rem;
  height: 100%;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--gris-champ);
  text-decoration: none;
}
@media (min-width: 54em) {
  .related a { padding: 1.5rem 0 1.75rem; border-top: 3px solid var(--anthracite); border-bottom: 0; }
}
.related strong { font-size: 1.25rem; font-weight: 650; letter-spacing: -.01em; }
.related span { color: var(--fg-2); }
.related a:hover strong { color: var(--cuivre); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }

/* --------------------------------------------------------------------------
   12. Formulaires
   -------------------------------------------------------------------------- */
.form-layout { display: grid; gap: 3rem; }
@media (min-width: 62em) {
  .form-layout { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 4.5rem; align-items: start; }
  .form-aside { position: sticky; top: calc(var(--header-h) + 2rem); }
}

.form { display: grid; gap: 2rem; }
.form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.form-step { display: grid; gap: 2rem; }
.form-step__title {
  float: left; /* la légende devient un élément normal de la grille */
  width: 100%;
  display: flex;
  align-items: baseline;
  gap: .75rem;
  padding: 0;
  margin: 0;
  font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.form-step__title span { color: var(--cuivre); font-weight: 300; }
.js .form--stepped .form-step__title span { display: none; }
.form-step:focus { outline: none; }
.no-js .form-step + .form-step { padding-top: 2.5rem; border-top: 1px solid var(--gris-ligne); }

.field { display: grid; gap: .5rem; }
.field > label,
.field > legend,
.field__label {
  padding: 0;
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1.35;
}
.field legend { margin-bottom: .5rem; }
.req { color: var(--cuivre); font-weight: 650; }
.field__hint { font-size: var(--fs-sm); color: var(--gris-texte); line-height: 1.45; }
.field-row { display: grid; gap: 2rem 1.25rem; }
@media (min-width: 40em) { .field-row--2 { grid-template-columns: 1fr 1fr; } }

.input,
.select,
.textarea {
  width: 100%;
  min-height: 3.25rem;
  padding: .75rem 1rem;
  border: 1px solid var(--gris-champ);
  border-radius: var(--radius);
  background: #fff;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--anthracite);
  transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 10rem; resize: vertical; }
.select {
  appearance: none;
  padding-right: 2.75rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d242c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 1rem center / 1.1rem no-repeat;
}
.input:hover,
.select:hover,
.textarea:hover { border-color: #8a9097; }
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--anthracite);
  box-shadow: 0 0 0 1px var(--anthracite), 0 0 0 4px rgba(141, 70, 43, .22);
}
.input::placeholder,
.textarea::placeholder { color: #7d858c; font-weight: 450; }
[aria-invalid="true"] { border-color: var(--erreur) !important; }
.field__error {
  display: flex;
  align-items: flex-start;
  gap: .45rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--erreur);
}
.field__error::before {
  content: "!";
  flex: none;
  display: grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: .1rem;
  border-radius: 50%;
  background: var(--erreur);
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
}

/* Choix (boutons radio présentés en cases) */
.choices {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr));
  gap: .625rem;
}
.choices--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
.choice { position: relative; display: block; }
.choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.choice span {
  display: flex;
  align-items: center;
  gap: .75rem;
  height: 100%;
  min-height: 3.25rem;
  padding: .7rem 1rem;
  border: 1px solid var(--gris-champ);
  border-radius: var(--radius);
  background: #fff;
  font-weight: 550;
  line-height: 1.3;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.choice span::before {
  content: "";
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  border: 1.5px solid #8a9097;
  border-radius: 50%;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.choice:hover span { border-color: #8a9097; }
.choice input:checked + span {
  border-color: var(--anthracite);
  box-shadow: inset 0 0 0 1px var(--anthracite);
  background: #fbf7f4;
}
.choice input:checked + span::before {
  border-color: var(--cuivre);
  box-shadow: inset 0 0 0 3.5px #fff;
  background: var(--cuivre);
}
.choice input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.field.is-invalid .choice span { border-color: var(--erreur); }
.field.is-invalid .dropzone { border-color: var(--erreur); }

/* Case à cocher */
.check {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .85rem;
  align-items: start;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--gris-texte);
}
.check input {
  appearance: none;
  width: 1.375rem;
  height: 1.375rem;
  margin: .05rem 0 0;
  border: 1.5px solid #8a9097;
  border-radius: 2px;
  background: #fff;
  cursor: pointer;
}
.check input:checked {
  border-color: var(--cuivre);
  background: var(--cuivre) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17 19 7'/%3E%3C/svg%3E") center / 80% no-repeat;
}
.check input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.check a { color: var(--cuivre); }

/* Zone de dépôt de fichiers */
.dropzone {
  position: relative;
  display: grid;
  justify-items: center;
  gap: .4rem;
  padding: 2rem 1.25rem;
  border: 1.5px dashed #9aa2a9;
  border-radius: var(--radius);
  background: var(--chaux);
  text-align: center;
  transition: border-color .15s, background-color .15s;
}
.dropzone svg { width: 2rem; height: 2rem; color: var(--cuivre); }
.dropzone strong { font-weight: 650; }
.dropzone small { font-size: var(--fs-sm); color: var(--gris-texte); }
.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.dropzone:hover,
.dropzone.is-dragover { border-color: var(--cuivre); background: #faf3ef; }
.dropzone.is-busy { opacity: .6; cursor: progress; }
.dropzone:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.file-list { display: grid; gap: .5rem; list-style: none; }
.file-list:empty { display: none; }
.file-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .55rem .6rem .55rem .9rem;
  border: 1px solid var(--gris-ligne);
  border-radius: var(--radius);
  background: #fff;
  font-size: var(--fs-sm);
}
.file-item__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.file-item__size { color: var(--gris-texte); white-space: nowrap; }
.file-item button {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: var(--gris-texte);
}
.file-item button:hover { background: var(--chaux); color: var(--erreur); }
.file-item button svg { width: 1.1rem; height: 1.1rem; }

/* Progression des étapes */
.form-progress { display: grid; gap: .75rem; margin-bottom: .5rem; }
.form-progress__label { font-size: var(--fs-sm); font-weight: 600; color: var(--gris-texte); }
.form-progress__label strong { color: var(--anthracite); }
.form-progress__bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: .375rem; }
.form-progress__bar span { height: 4px; background: var(--gris-ligne); transition: background-color .25s; }
.form-progress__bar span.is-active { background: var(--cuivre); }
.form-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gris-ligne);
}
.form-nav .btn--primary { margin-left: auto; }
.no-js [data-step-nav] { display: none; }

.form-alert {
  display: flex;
  gap: .9rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--erreur);
  background: #fbeeed;
  color: #6e1913;
  font-weight: 550;
}
.form-alert:focus { outline: none; }

.form-success {
  display: grid;
  gap: 1rem;
  padding: clamp(2rem, 5vw, 3rem);
  background: var(--chaux);
  border-top: 3px solid var(--cuivre);
}
.form-success:focus { outline: none; }
.form-success__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--cuivre);
  color: #fff;
}
.form-success__icon svg { width: 1.5rem; height: 1.5rem; }
.form-success h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); font-weight: 400; letter-spacing: -.02em; }
.form-success p { color: var(--gris-texte); max-width: 36em; }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-aside { display: grid; gap: 1.5rem; }
.aside-box { padding: 1.75rem; background: var(--chaux); }
.aside-box h2 { margin-bottom: 1rem; font-size: 1.25rem; font-weight: 650; letter-spacing: -.01em; }
.aside-steps { list-style: none; display: grid; gap: 1rem; counter-reset: aside; }
.aside-steps li { position: relative; padding-left: 2.5rem; color: var(--gris-texte); line-height: 1.5; }
.aside-steps li::before {
  counter-increment: aside;
  content: counter(aside);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1.5px solid var(--cuivre);
  border-radius: 50%;
  font-size: .875rem;
  font-weight: 700;
  color: var(--cuivre);
}
.aside-steps strong { display: block; color: var(--anthracite); font-weight: 650; }
.aside-contact { display: grid; gap: .75rem; }
.aside-contact a {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-weight: 650;
  text-decoration: none;
}
.aside-contact a:hover { color: var(--cuivre); }
.aside-contact svg { width: 1.15rem; height: 1.15rem; color: var(--cuivre); flex: none; }

/* --------------------------------------------------------------------------
   13. Contact
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; gap: 3.5rem; }
@media (min-width: 62em) {
  .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 5rem; align-items: start; }
}
.coords { display: grid; gap: 0; margin-top: 1.5rem; }
.coords > div {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: .25rem 1rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--gris-champ);
}
.coords > div:last-child { border-bottom: 1px solid var(--gris-champ); }
.coords svg { grid-row: span 2; width: 1.4rem; height: 1.4rem; margin-top: .15rem; color: var(--cuivre); }
.coords dt { font-size: var(--fs-sm); color: var(--gris-texte); }
.coords dd { font-size: 1.1875rem; font-weight: 600; line-height: 1.45; }
.coords dd a { text-decoration: none; }
.coords dd a:hover { color: var(--cuivre); text-decoration: underline; text-underline-offset: .2em; }
.coords .link { font-size: var(--fs-sm); }
.contact-devis { margin-top: 2.5rem; padding: 1.75rem; background: var(--chaux); display: grid; gap: .9rem; }
.contact-devis h2 { font-size: 1.25rem; font-weight: 650; letter-spacing: -.01em; }
.contact-devis p { color: var(--gris-texte); }
.contact-devis .btn { justify-self: start; }
.h-sub { font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem); font-weight: 400; letter-spacing: -.02em; line-height: 1.15; }
.contact-form h2 { margin-bottom: 1.75rem; }

/* Carte soumise au consentement */
.map {
  position: relative;
  min-height: 26rem;
  background: var(--anthracite-2);
  color: #fff;
  overflow: hidden;
}
.map__frame { position: relative; min-height: 26rem; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__placeholder {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 26rem;
  padding: 3rem var(--gutter);
  text-align: center;
  background:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 2.5rem 2.5rem,
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 2.5rem 2.5rem,
    var(--anthracite-2);
}
.map__card { display: grid; gap: 1rem; justify-items: center; max-width: 32rem; }
.map__pin {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--cuivre-clair);
  color: var(--anthracite);
}
.map__pin svg { width: 1.5rem; height: 1.5rem; }
.map__card p { color: var(--beton); font-size: var(--fs-sm); }
.map__card address { font-size: 1.25rem; font-weight: 600; }

/* --------------------------------------------------------------------------
   14. Pages légales
   -------------------------------------------------------------------------- */
.legal-table { width: 100%; font-size: var(--fs-sm); }
.legal-table th,
.legal-table td { padding: .75rem .75rem .75rem 0; border-bottom: 1px solid var(--gris-ligne); text-align: left; vertical-align: top; }
.legal-table th { font-weight: 650; color: var(--anthracite); }
.table-scroll { overflow-x: auto; }
.legal-meta { font-size: var(--fs-sm); color: var(--gris-texte); }

/* --------------------------------------------------------------------------
   15. Pied de page
   -------------------------------------------------------------------------- */
.site-footer { padding-block: clamp(3.5rem, 7vw, 5rem) 2rem; font-size: var(--fs-sm); border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-top { display: grid; gap: 2.5rem 2rem; }
@media (min-width: 30em) {
  .footer-top { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (min-width: 64em) {
  .footer-brand { grid-column: auto; }
}
@media (min-width: 64em) {
  .footer-top { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 3rem; }
}
.footer-brand img { width: 7.5rem; height: auto; }
.footer-brand p { margin-top: 1.25rem; color: var(--beton); max-width: 22em; font-size: 1rem; }
.footer-col h2 { margin-bottom: 1rem; font-size: 1rem; font-weight: 650; letter-spacing: 0; color: #fff; }
.footer-col ul { list-style: none; display: grid; gap: .55rem; }
.footer-col a { color: var(--beton); text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: .2em; }
.footer-col address { display: grid; gap: .55rem; color: var(--beton); line-height: 1.5; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 2rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--joint);
  color: var(--beton);
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; }
.footer-bottom a,
.footer-bottom button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--beton);
  font-size: inherit;
  text-decoration: none;
}
.footer-bottom a:hover,
.footer-bottom button:hover { color: #fff; text-decoration: underline; text-underline-offset: .2em; }
.footer-credit { margin-left: auto; }
@media (max-width: 47.99em) { .footer-credit { margin-left: 0; } }

/* --------------------------------------------------------------------------
   16. Bandeau de consentement aux cookies
   -------------------------------------------------------------------------- */
.cc {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 1rem;
}
@media (min-width: 40em) {
  .cc { align-items: center; padding: 2rem; }
}
.cc__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 18, 23, .66);
}
.cc__panel {
  position: relative;
  width: 100%;
  max-width: 36rem;
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: 4px;
  background: #fff;
  color: var(--anthracite);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .55);
  --focus: var(--cuivre);
}
.cc__panel:focus { outline: none; }
.cc__head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; }
.cc__mark { flex: none; width: 2.75rem; height: 2.75rem; border-radius: 3px; }
.cc__title { font-size: 1.375rem; font-weight: 650; letter-spacing: -.015em; line-height: 1.25; }
.cc__text { color: var(--gris-texte); font-size: 1rem; line-height: 1.55; }
.cc__text a { color: var(--cuivre); }
.cc__cats { display: grid; margin-top: 1.25rem; border-top: 1px solid var(--gris-ligne); }
.cc__cat {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .25rem 1.25rem;
  align-items: center;
  padding-block: 1rem;
  border-bottom: 1px solid var(--gris-ligne);
}
.cc__cat strong { font-weight: 650; }
.cc__cat p { grid-column: 1; font-size: var(--fs-sm); color: var(--gris-texte); line-height: 1.45; }
.cc__always { font-size: var(--fs-xs); font-weight: 650; color: var(--succes); white-space: nowrap; }
.cc__switch { grid-column: 2; grid-row: 1 / span 2; position: relative; width: 3rem; height: 1.75rem; }
.cc__switch input {
  appearance: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 999px;
  background: #b9c0c6;
  cursor: pointer;
  transition: background-color .2s;
}
.cc__switch input::after {
  content: "";
  position: absolute;
  top: .1875rem;
  left: .1875rem;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform .2s;
}
.cc__switch input:checked { background: var(--cuivre); }
.cc__switch input:checked::after { transform: translateX(1.25rem); }
.cc__switch input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.cc__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .625rem; margin-top: 1.5rem; }
.cc__actions .btn { min-height: 3rem; padding-inline: 1rem; }
.cc__more {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: .25rem;
  padding: .5rem;
  border: 0;
  background: none;
  font-weight: 650;
  color: var(--anthracite);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
}
.cc__more:hover { color: var(--cuivre); }
.cc__actions .cc__save { grid-column: 1 / -1; }
html.cc-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   17. Page 404 / merci
   -------------------------------------------------------------------------- */
.notice-links { display: grid; gap: 0; list-style: none; max-width: 40rem; margin-top: 2.5rem; border-top: 1px solid var(--joint); }
.notice-links a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--joint);
  font-size: 1.1875rem;
  font-weight: 550;
  color: #fff;
  text-decoration: none;
}
.notice-links a span { color: var(--beton); font-size: var(--fs-sm); font-weight: 450; align-self: center; }
.notice-links a:hover { color: var(--cuivre-clair); }

/* --------------------------------------------------------------------------
   18. Préférences de mouvement et impression
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .cta-band,
  .cc,
  .facade,
  .map,
  .skip-link { display: none !important; }
  .surface-dark,
  .surface-cuivre { background: #fff !important; color: #000 !important; --fg: #000; --fg-2: #333; --fg-lead: #222; }
  body { font-size: 11pt; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
