/* =========================================================
   DUPONT PLOMBERIE — démo fictive de Studio Web
   Le site est un plan sanitaire : encre graphite sur blanc de calque,
   deux fluides seulement (eau froide bleue, eau chaude rouge),
   une seule famille, Archivo, du très étroit au très large.
   ========================================================= */

/* Archivo (licence SIL OFL, voir fonts/OFL-Archivo.txt), hébergée sur le site et préchargée */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("fonts/archivo-latin.woff2") format("woff2");
}

:root {
  --calque: #fbfcfd;
  --calque-2: #f1f4f7;
  --trame: #e2e8ee;
  --graphite: #1b2127;
  --graphite-doux: #46515c;
  --filet: #c7d0d8;
  --froid: #1658c4;
  --froid-fonce: #0f4296;
  --froid-voile: #e7effb;
  --chaud: #c4321e;
  --blanc: #ffffff;

  --police: "Archivo", Arial, sans-serif;
  --large: 118;
  --etroit: 72;

  --largeur: 1220px;
  --gouttiere: clamp(20px, 4vw, 48px);
  --section: clamp(64px, 8vw, 112px);
  --sortie: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--filet) var(--calque);
}

body {
  margin: 0;
  background: var(--calque);
  color: var(--graphite);
  font-family: var(--police);
  font-size: 1.0625rem;
  font-variation-settings: "wdth" 100;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  font-variation-settings: "wdth" var(--large);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.98;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
}

h3 {
  font-size: 1.3rem;
  font-variation-settings: "wdth" 108;
  font-weight: 750;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--froid);
  color: var(--blanc);
}

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

.wrap {
  width: min(100% - 2 * var(--gouttiere), var(--largeur));
  margin-inline: auto;
}

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

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--graphite);
  color: var(--blanc);
  font-weight: 700;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

/* Petites capitales étroites : cotes, repères, légendes */
.cote {
  font-size: 0.8125rem;
  font-variation-settings: "wdth" var(--etroit);
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chaud {
  color: var(--chaud);
}

.froid {
  color: var(--froid);
}

/* ---------- Boutons ---------- */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 54px;
  padding: 0 26px;
  border: 2px solid var(--froid);
  border-radius: 0;
  background: var(--froid);
  color: var(--blanc);
  font: inherit;
  font-size: 1rem;
  font-variation-settings: "wdth" 104;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 200ms var(--sortie), border-color 200ms var(--sortie);
}

.bouton:hover {
  border-color: var(--froid-fonce);
  background: var(--froid-fonce);
}

.bouton:active {
  transform: translateY(1px);
}

.bouton svg {
  width: 20px;
  height: 20px;
  transition: transform 260ms var(--sortie);
}

.bouton:hover svg {
  transform: translateX(4px);
}

.lien {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--froid);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition: text-underline-offset 200ms var(--sortie), color 200ms var(--sortie);
}

.lien:hover {
  color: var(--froid);
  text-underline-offset: 9px;
}

/* ---------- Bandeau de démonstration ---------- */

.demo-bar {
  background: var(--graphite);
  color: #c9d1d8;
  font-size: 0.875rem;
}

.demo-bar .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 20px;
  min-height: 40px;
  padding-block: 6px;
}

.demo-bar a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blanc);
  font-weight: 700;
  text-decoration: none;
}

.demo-bar .retour {
  width: 16px;
  height: 16px;
}

.demo-bar a:hover {
  text-decoration: underline;
}

/* ---------- En-tête ---------- */

.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--filet);
  background: rgba(251, 252, 253, 0.96);
}

.entete .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 24px;
  min-height: 78px;
}

.marque {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  text-decoration: none;
}

.marque svg {
  width: 40px;
  height: 40px;
}

.marque-nom {
  display: grid;
  line-height: 1;
}

.marque-nom strong {
  font-size: 1.3rem;
  font-variation-settings: "wdth" 125;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.marque-nom span {
  margin-top: 4px;
  color: var(--graphite-doux);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px 32px;
}

.nav a:not(.bouton) {
  position: relative;
  padding-block: 12px;
  font-weight: 650;
  text-decoration: none;
}

/* Le lien actif est raccordé : un tronçon de tuyau sous le mot */
.nav a:not(.bouton)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 3px;
  background: var(--froid);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms var(--sortie);
}

.nav a:not(.bouton):hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav .bouton {
  min-height: 46px;
  padding-inline: 20px;
  font-size: 0.95rem;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--graphite);
  background: var(--blanc);
  color: var(--graphite);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 220ms var(--sortie), background-color 220ms;
}

.menu-bars {
  position: relative;
}

.menu-bars::before,
.menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-bars::before {
  top: -6px;
}

.menu-bars::after {
  top: 6px;
}

.menu-toggle[aria-expanded="true"] .menu-bars {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-bars::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Ouverture de l'accueil ---------- */

.ouverture {
  padding-block: clamp(40px, 6vw, 80px) clamp(56px, 7vw, 96px);
}

.ouverture .wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 48px clamp(32px, 5vw, 72px);
}

.ouverture h1 {
  font-size: clamp(2.4rem, 4.4vw, 4rem);
}

.ouverture h1 em {
  font-style: normal;
  color: var(--froid);
}

.ouverture-chapeau {
  max-width: 34rem;
  margin-top: 24px;
  color: var(--graphite-doux);
  font-size: 1.15rem;
}

.besoin {
  margin-top: 36px;
}

.besoin fieldset,
.bon fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.besoin legend {
  margin-bottom: 12px;
  padding: 0;
  font-weight: 700;
}

.choix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.choix label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 14px;
  border: 1px solid var(--filet);
  background: var(--blanc);
  cursor: pointer;
  transition: border-color 200ms var(--sortie), background-color 200ms var(--sortie);
}

.choix input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.repere {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--graphite);
  border-radius: 50%;
  font-size: 0.8125rem;
  font-variation-settings: "wdth" var(--etroit);
  font-weight: 800;
  line-height: 1;
}

.choix span:last-child {
  font-weight: 650;
  line-height: 1.25;
}

.choix label:hover {
  border-color: var(--graphite);
}

.choix input:checked + .repere {
  border-color: var(--froid);
  background: var(--froid);
  color: var(--blanc);
}

.choix label:has(input:checked) {
  border-color: var(--froid);
  background: var(--froid-voile);
}

.choix input:focus-visible + .repere {
  outline: 2px solid var(--froid);
  outline-offset: 3px;
}

.besoin .bouton {
  width: 100%;
  margin-top: 16px;
}

.besoin-note {
  margin-top: 12px;
  color: var(--graphite-doux);
  font-size: 0.9375rem;
}

/* Planche du schéma : papier millimétré */
.planche {
  position: relative;
  margin: 0;
  border: 1px solid var(--graphite);
  background-color: var(--blanc);
  background-image:
    linear-gradient(var(--trame) 1px, transparent 1px),
    linear-gradient(90deg, var(--trame) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: -1px -1px;
}

.planche-entete,
.planche-pied {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 12px 18px;
  background: var(--blanc);
}

.planche-entete {
  border-bottom: 1px solid var(--filet);
}

.planche-pied {
  border-top: 1px solid var(--filet);
  color: var(--graphite-doux);
  font-size: 0.9375rem;
}

.legende-fluides {
  display: flex;
  gap: 20px;
}

.legende-fluides span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legende-fluides span::before {
  content: "";
  width: 26px;
  height: 3px;
  background: currentColor;
}

.schema {
  width: 100%;
  height: auto;
  padding: 8px 8px 0;
}

.schema .mur {
  fill: rgba(255, 255, 255, 0.55);
  stroke: var(--graphite);
  stroke-width: 1;
}

.schema .sol {
  fill: rgba(241, 244, 247, 0.85);
  stroke: var(--graphite);
  stroke-width: 1;
}

.schema .joint {
  fill: none;
  stroke: var(--filet);
  stroke-width: 0.75;
}

.schema .appareil,
.schema .vanne,
.schema .mitigeur {
  fill: var(--blanc);
  stroke: var(--graphite);
  stroke-width: 1.4;
  stroke-linejoin: round;
}

.schema .face-x {
  fill: #f3f5f7;
}

.schema .face-y {
  fill: #e6ebef;
}

.schema .vasque {
  fill: #eef2f5;
}

.schema .tuyau,
.schema .robinet,
.schema .evacuation,
.schema .paroi {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.schema .tuyau {
  stroke-width: 3.5;
  transition: stroke-width 300ms var(--sortie);
}

.schema .froid {
  stroke: var(--froid);
}

.schema .chaud {
  stroke: var(--chaud);
}

.schema .robinet {
  stroke: var(--graphite);
  stroke-width: 3;
}

.schema .evacuation {
  stroke: var(--graphite-doux);
  stroke-width: 4;
  stroke-dasharray: 2 5;
}

.schema .paroi {
  stroke: var(--graphite-doux);
  stroke-width: 1;
  stroke-dasharray: 6 4;
}

.schema .goutte {
  fill: var(--froid);
  opacity: 0;
  transition: opacity 300ms var(--sortie);
}

.schema .repere-plan polyline {
  fill: none;
  stroke: var(--graphite);
  stroke-width: 1.2;
}

.schema .repere-plan .point {
  fill: var(--graphite);
}

.schema .repere-plan .pastille,
.schema .vanne-plan rect {
  fill: var(--blanc);
  stroke: var(--graphite);
  stroke-width: 2;
  transition: fill 300ms var(--sortie), stroke 300ms var(--sortie);
}

.schema .vanne-plan path {
  stroke: var(--graphite);
  stroke-width: 2;
}

.schema .repere-plan text {
  fill: var(--graphite);
  font-family: var(--police);
  font-size: 17px;
  font-variation-settings: "wdth" 80;
  font-weight: 800;
}

.schema .sens-froid {
  fill: var(--froid);
}

.schema .sens-chaud {
  fill: var(--chaud);
}

.schema .vanne-symbole {
  fill: var(--blanc);
  stroke: var(--graphite);
  stroke-width: 1.5;
}

.schema .groupe {
  transition: opacity 300ms var(--sortie);
}

/* Un besoin choisi : son réseau en trait plein, le reste en attente (pointillés pâles) */
.schema.a-choix .groupe {
  opacity: 0.38;
}

.schema.a-choix .groupe .tuyau {
  stroke-dasharray: 6 6;
}

.schema.a-choix .groupe.actif {
  opacity: 1;
}

.schema.a-choix .groupe.actif .tuyau {
  stroke-width: 5;
  stroke-dasharray: none;
}

.schema.a-choix .groupe.actif .goutte {
  opacity: 1;
}

.schema.a-choix .groupe.actif .pastille {
  fill: var(--froid);
  stroke: var(--froid);
}

.schema.a-choix .groupe.actif .repere-plan text {
  fill: var(--blanc);
}

/* ---------- Sections reliées par le réseau ---------- */

.section {
  padding-block: var(--section);
}

/* Papier millimétré sous l'ouverture et la nomenclature */
.zone-trame {
  background-color: var(--calque);
  background-image:
    linear-gradient(rgba(22, 88, 196, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 88, 196, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* La paire eau froide / eau chaude qui court d'une section à l'autre */
.reseau {
  position: relative;
  height: 12px;
  border-top: 3px solid var(--froid);
  border-bottom: 3px solid var(--chaud);
}

.reseau svg {
  position: absolute;
  top: 50%;
  left: 48px;
  width: 30px;
  height: 30px;
  transform: translateY(-50%);
}

/* Sens d'écoulement, une flèche par fluide */
.reseau .sens {
  position: absolute;
  right: 18%;
  width: 12px;
  height: 12px;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.reseau .sens-f {
  top: -7.5px;
  background: var(--froid);
}

.reseau .sens-c {
  bottom: -7.5px;
  background: var(--chaud);
}

.reseau-te svg,
.reseau-union svg,
.reseau-clapet svg {
  left: 30%;
}

.reseau-clapet svg {
  left: 62%;
}

/* La colonne montante : le réseau descend de la planche jusqu'au bouton final */
.colonne {
  position: relative;
}

@media (min-width: 1025px) {
  .colonne {
    --x-colonne: calc((100% - min(100% - 2 * var(--gouttiere), var(--largeur))) / 2 - 34px);
  }

  .colonne::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 6px;
    left: var(--x-colonne);
    width: 12px;
    border-left: 3px solid var(--froid);
    border-right: 3px solid var(--chaud);
  }

  .colonne-courte::before {
    bottom: var(--section);
  }

  /* Chaque tronçon part de la colonne, à angle droit */
  .colonne .reseau::before {
    content: "";
    position: absolute;
    top: -3px;
    right: 100%;
    width: 34px;
    height: 12px;
    border-top: 3px solid var(--froid);
    border-bottom: 3px solid var(--chaud);
  }

  /* Départ : un piquage remonte vers la planche du schéma */
  .reseau-depart .piquage {
    position: absolute;
    right: 26%;
    bottom: 100%;
    width: 12px;
    height: clamp(56px, 7vw, 96px);
    border-left: 3px solid var(--froid);
    border-right: 3px solid var(--chaud);
  }

  /* Arrivée : un piquage descend jusqu'au bouton du raccord final */
  .reseau-arrivee .piquage {
    position: absolute;
    top: 100%;
    right: 20%;
    width: 12px;
    height: calc(var(--section) - 16px);
    border-left: 3px solid var(--froid);
    border-right: 3px solid var(--chaud);
  }

  /* Bouchons en bout de conduite */
  .reseau-arrivee .piquage::after,
  .colonne-courte::after {
    content: "";
    position: absolute;
    height: 6px;
    background: var(--graphite);
  }

  .reseau-arrivee .piquage::after {
    bottom: -6px;
    left: -6px;
    width: 24px;
  }

  .colonne-courte::after {
    bottom: calc(var(--section) - 6px);
    left: calc(var(--x-colonne) - 6px);
    width: 24px;
  }

  .colonne .deroule-zone .conduite {
    left: -34px;
  }

  /* Entre deux fiches, une simple branche d'eau froide remplace le filet gris */
  .colonne .fiche + .fiche::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -34px;
    width: 120px;
    height: 3px;
    background: var(--froid);
  }
}

.tete {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: end;
  gap: 20px clamp(32px, 5vw, 72px);
  margin-bottom: clamp(40px, 5vw, 64px);
}

.tete p {
  max-width: 32rem;
  color: var(--graphite-doux);
}

/* ---------- Nomenclature (prestations) ---------- */

.nomenclature {
  border-top: 2px solid var(--graphite);
}

.nomenclature-entete,
.nomenclature li {
  display: grid;
  grid-template-columns: 64px minmax(0, 4fr) minmax(0, 6fr) minmax(0, 2fr);
  align-items: baseline;
  gap: 8px 28px;
}

.nomenclature-entete {
  padding-block: 12px;
  border-bottom: 1px solid var(--graphite);
  color: var(--graphite-doux);
}

.nomenclature li {
  padding-block: 26px;
  border-bottom: 1px solid var(--filet);
}

.nomenclature li .repere {
  width: 36px;
  height: 36px;
  font-size: 0.9375rem;
}

.nomenclature h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
}

.troncon {
  display: inline-flex;
  gap: 4px;
}

.troncon i {
  width: 22px;
  height: 3px;
}

.troncon .f {
  background: var(--froid);
}

.troncon .c {
  background: var(--chaud);
}

.nomenclature p {
  color: var(--graphite-doux);
}

.nomenclature .lien {
  justify-self: end;
}

/* ---------- L'artisan ---------- */

.artisan {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  align-items: start;
  gap: 48px clamp(40px, 6vw, 96px);
}

.releve {
  margin: 0;
}

.releve img {
  width: 100%;
  aspect-ratio: 616 / 532;
  border: 1px solid var(--graphite);
  object-fit: cover;
}

.releve figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  color: var(--graphite-doux);
}

.artisan-texte p {
  margin-top: 22px;
  color: var(--graphite-doux);
}

.artisan-texte .chapeau {
  color: var(--graphite);
  font-size: 1.25rem;
  font-variation-settings: "wdth" 104;
  font-weight: 500;
  line-height: 1.45;
}

.notes {
  margin-top: 36px;
  border-top: 1px solid var(--graphite);
}

.notes li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 16px;
  padding-block: 18px;
  border-bottom: 1px solid var(--filet);
}

.notes .marqueur {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--chaud);
}

.notes strong {
  display: block;
  font-variation-settings: "wdth" 104;
}

.notes span:last-child {
  color: var(--graphite-doux);
}

/* ---------- Déroulé : quatre étapes sur une conduite ---------- */

.deroule-zone {
  position: relative;
}

.deroule {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  padding-top: 64px;
  counter-reset: etape;
}

.conduite {
  position: absolute;
  top: 14px;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--filet);
}

.conduite span {
  position: absolute;
  inset: 0;
  background: var(--froid);
  transform: scaleX(var(--remplissage, 1));
  transform-origin: left;
}

.deroule li {
  position: relative;
  counter-increment: etape;
}

/* Chaque étape est un piquage sur la conduite */
.deroule li::before {
  content: "";
  position: absolute;
  top: -50px;
  left: 5px;
  width: 3px;
  height: 36px;
  background: var(--froid);
}

.deroule li::after {
  content: counter(etape);
  position: absolute;
  top: -30px;
  left: -8px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid var(--froid);
  border-radius: 50%;
  background: var(--calque);
  color: var(--froid);
  font-size: 0.875rem;
  font-variation-settings: "wdth" 80;
  font-weight: 800;
}

.deroule h3 {
  margin-block: 18px 10px;
}

.deroule p {
  color: var(--graphite-doux);
}

/* ---------- Raccord final ---------- */

.raccord {
  padding-block: var(--section);
}

.raccord .wrap {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: end;
  gap: 32px clamp(32px, 5vw, 72px);
}

.raccord h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.6rem);
}

.raccord p {
  margin-bottom: 20px;
  color: var(--graphite-doux);
}

.raccord .bouton {
  width: 100%;
}

/* ---------- Pages intérieures ---------- */

.page-tete {
  padding-block: clamp(48px, 7vw, 96px) clamp(36px, 5vw, 56px);
}

.page-tete .wrap {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: end;
  gap: 24px clamp(32px, 5vw, 72px);
}

.page-tete h1 {
  font-size: clamp(2.5rem, 5vw, 4.3rem);
}

.page-tete p {
  max-width: 32rem;
  color: var(--graphite-doux);
  font-size: 1.1rem;
}

.sommaire {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.sommaire a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px 0 8px;
  border: 1px solid var(--filet);
  background: var(--blanc);
  font-weight: 650;
  text-decoration: none;
}

.sommaire a:hover {
  border-color: var(--graphite);
}

/* Fiches de prestation */
.fiche {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: 32px clamp(32px, 5vw, 80px);
  padding-block: clamp(56px, 7vw, 88px);
}

.fiche + .fiche {
  border-top: 1px dashed var(--filet);
}

.fiche:nth-child(even) .releve {
  order: 2;
}

.fiche .releve img {
  aspect-ratio: 4 / 3;
  background: var(--blanc);
}

.fiche-titre {
  display: flex;
  align-items: center;
  gap: 16px;
}

.fiche-titre .repere {
  width: 44px;
  height: 44px;
  border-width: 2px;
  font-size: 1rem;
}

.fiche h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
}

.fiche-chapeau {
  margin-top: 20px;
  color: var(--graphite-doux);
  font-size: 1.1rem;
}

.fiche-colonnes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 40px;
  margin-top: 28px;
}

.fiche-colonnes h3 {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--graphite);
  font-size: 0.8125rem;
  font-variation-settings: "wdth" var(--etroit);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fiche-colonnes li {
  position: relative;
  padding: 7px 0 7px 22px;
  border-bottom: 1px solid var(--trame);
  color: var(--graphite-doux);
}

.fiche-colonnes li::before {
  content: "";
  position: absolute;
  top: 1.05em;
  left: 0;
  width: 12px;
  height: 3px;
  background: var(--froid);
}

.fiche .lien {
  margin-top: 24px;
}

/* FAQ */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  align-items: start;
  gap: 32px clamp(32px, 5vw, 80px);
}

.faq-liste {
  border-top: 2px solid var(--graphite);
}

.faq-liste details {
  border-bottom: 1px solid var(--filet);
}

.faq-liste summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding-block: 16px;
  font-size: 1.1rem;
  font-variation-settings: "wdth" 104;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-liste summary::-webkit-details-marker {
  display: none;
}

.faq-liste summary svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--froid);
  transition: transform 320ms var(--sortie);
}

.faq-liste details[open] summary svg {
  transform: rotate(90deg);
}

.faq-liste summary:hover {
  color: var(--froid);
}

.faq-liste details p {
  max-width: 44rem;
  padding-bottom: 24px;
  color: var(--graphite-doux);
}

/* ---------- Contact : bon de demande ---------- */

.demande {
  padding-block: clamp(40px, 6vw, 72px) var(--section);
}

.demande .wrap {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  align-items: start;
  gap: 40px clamp(32px, 5vw, 80px);
}

.bon {
  border: 1px solid var(--graphite);
  background: var(--blanc);
}

.bon-entete {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--graphite);
  background: var(--calque-2);
}

.bon-corps {
  display: grid;
  gap: 28px;
  padding: clamp(22px, 3vw, 36px);
}

.bon legend,
.champ label {
  margin-bottom: 10px;
  padding: 0;
  font-weight: 700;
}

.bon .choix {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.bon .choix label {
  min-height: 52px;
}

.ligne {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 20px;
}

.champ {
  display: grid;
}

.facultatif {
  color: var(--graphite-doux);
  font-weight: 500;
}

.champ .aide {
  margin-top: 6px;
  color: var(--graphite-doux);
  font-size: 0.9375rem;
}

.champ input,
.champ textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--graphite-doux);
  border-radius: 0;
  background: var(--calque);
  color: var(--graphite);
  font: inherit;
}

.champ textarea {
  min-height: 150px;
  resize: vertical;
}

.champ input:focus,
.champ textarea:focus {
  border-color: var(--froid);
  outline: 2px solid var(--froid);
  outline-offset: 0;
}

.champ ::placeholder {
  color: #66727d;
}

.champ input[aria-invalid="true"],
.champ textarea[aria-invalid="true"] {
  border-color: var(--chaud);
}

.erreur {
  margin-top: 6px;
  color: var(--chaud);
  font-size: 0.9375rem;
  font-weight: 650;
}

.envoi {
  display: grid;
  justify-items: start;
  gap: 12px;
}

.statut {
  padding: 16px 18px;
  border: 1px solid var(--froid);
  background: var(--froid-voile);
  font-weight: 650;
}

.statut:focus {
  outline: 2px solid var(--froid);
  outline-offset: 2px;
}

.note-demo {
  color: var(--graphite-doux);
  font-size: 0.9375rem;
}

.suite h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}

.suite ol {
  margin-top: 24px;
  border-top: 2px solid var(--graphite);
}

.suite li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  padding-block: 18px;
  border-bottom: 1px solid var(--filet);
  color: var(--graphite-doux);
}

.suite li strong {
  display: block;
  color: var(--graphite);
}

.suite .cote {
  padding-top: 2px;
  color: var(--froid);
}

.coordonnees {
  margin-top: 32px;
  padding: 20px;
  border: 1px solid var(--filet);
  background: var(--blanc);
}

.coordonnees p + p {
  margin-top: 8px;
}

.coordonnees a {
  font-weight: 700;
}

/* ---------- Pied de page : cartouche du plan ---------- */

.pied {
  padding-block: 48px 40px;
  border-top: 1px solid var(--graphite);
  background: var(--calque-2);
}

.cartouche {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  margin: 0;
  border: 1px solid var(--graphite);
  background: var(--blanc);
}

.cartouche > div {
  padding: 16px 18px;
  border-right: 1px solid var(--graphite);
}

.cartouche > div:last-child {
  border-right: 0;
}

.cartouche dt {
  margin-bottom: 6px;
  color: var(--graphite-doux);
}

.cartouche dd {
  margin: 0;
  font-weight: 650;
}

.cartouche .marque {
  min-height: 0;
}

.pied-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  margin-top: 20px;
}

.pied-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 650;
}

/* ---------- Tablette ---------- */

@media (max-width: 1024px) {
  .ouverture .wrap,
  .artisan,
  .faq,
  .demande .wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .planche {
    max-width: 760px;
  }

  .nomenclature-entete {
    display: none;
  }

  .nomenclature li {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .nomenclature li > p,
  .nomenclature li > .lien {
    grid-column: 2;
    justify-self: start;
  }

  .deroule {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 72px;
  }

  .conduite {
    display: none;
  }

  .deroule {
    padding-top: 0;
  }

  .deroule li {
    padding: 0 0 8px 30px;
    border-left: 3px solid var(--froid);
  }

  .deroule li::before {
    display: none;
  }

  .deroule li::after {
    top: -2px;
    left: -17px;
  }

  .deroule h3 {
    margin-top: 2px;
  }

  .cartouche {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cartouche > div:nth-child(2) {
    border-right: 0;
  }

  .cartouche > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--graphite);
  }
}

/* ---------- Mobile ---------- */

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    width: 100%;
    padding-bottom: 20px;
  }

  .nav.is-open {
    display: grid;
    gap: 0;
  }

  .nav.is-open a:not(.bouton) {
    padding-block: 16px;
    border-bottom: 1px solid var(--filet);
    font-size: 1.15rem;
  }

  .nav.is-open a:not(.bouton)::after {
    bottom: -1px;
  }

  .nav.is-open .bouton {
    margin-top: 16px;
  }

  .tete,
  .page-tete .wrap,
  .raccord .wrap,
  .fiche {
    grid-template-columns: minmax(0, 1fr);
  }

  .fiche:nth-child(even) .releve {
    order: 0;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 1rem;
  }

  .reseau svg {
    left: 16px;
  }

  .choix,
  .ligne,
  .fiche-colonnes,
  .deroule {
    grid-template-columns: minmax(0, 1fr);
  }

  .planche-entete > .cote:first-child {
    display: none;
  }

  .schema {
    padding: 4px 0 0;
  }

  .schema .repere-plan .pastille {
    r: 22px;
  }

  .schema .repere-plan text {
    font-size: 24px;
    transform: translateY(2px);
  }

  .cartouche {
    grid-template-columns: minmax(0, 1fr);
  }

  .cartouche > div,
  .cartouche > div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--graphite);
  }

  .cartouche > div:last-child {
    border-bottom: 0;
  }

  .notes li {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
