/* ==========================================================================
   DECK D by Doutaz — feuille de style
   Univers : tirage de plan (papier calque, encre diazo, surligneur).
   Pour adapter aux couleurs du logo, modifier uniquement le bloc :root.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2-variations"),
       url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Couleurs */
  --calque: #E6EAE8;      /* fond : papier calque */
  --calque-2: #DADFDC;    /* fond secondaire */
  --encre: #23285E;       /* texte et traits : encre diazo */
  --encre-2: #545A86;     /* texte secondaire */
  --trait: rgba(35, 40, 94, .2);
  --surligneur: #F2DF3A;  /* accent : surligneur jaune */
  --tirage: #1C2050;      /* sections sombres : tirage négatif */
  --tirage-2: #2B3070;
  --sur-tirage: #E6EAE8;
  --sur-tirage-2: #A9AECF;
  --erreur: #B3261E;

  /* Typographie */
  --f: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --t-small: .8125rem;
  --t-body: 1.0625rem;
  --t-lead: clamp(1.125rem, 1rem + .45vw, 1.3125rem);
  --t-h3: 1.1875rem;
  --t-h2: clamp(2rem, 1.15rem + 2.7vw, 3.35rem);
  --t-h1: clamp(2.7rem, 1.1rem + 5.1vw, 5.6rem);

  /* Mise en page */
  --wrap: 1320px;
  --gut: clamp(16px, 4vw, 48px);
  --sec: clamp(80px, 5vw + 44px, 136px);
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  font-family: var(--f);
  font-size: var(--t-body);
  line-height: 1.6;
  font-weight: 400;
  font-stretch: 100%;
  color: var(--encre);
  background: var(--calque);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* grain du papier */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .14 0 0 0 0 .16 0 0 0 0 .37 0 0 0 1.4 -.2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--surligneur); color: var(--encre); }

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.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;
}

/* Focus visible : toujours net, jamais supprimé */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--encre);
  outline-offset: 3px;
  border-radius: 2px;
}
.methode :focus-visible, .footer :focus-visible { outline-color: var(--surligneur); }

/* Lien d'évitement */
.skip {
  position: fixed;
  left: 12px; top: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--encre);
  color: var(--calque);
  text-decoration: none;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform .2s var(--ease);
}
.skip:focus { transform: none; }

/* ---------- Éléments communs ---------- */
.btn {
  --b: var(--encre);
  display: inline-flex;
  align-items: center;
  gap: .6em;
  min-height: 48px;
  padding: .75em 1.25em;
  border: 1.5px solid var(--b);
  border-radius: 2px;
  background: transparent;
  color: var(--encre);
  font-weight: 650;
  font-size: 1rem;
  font-stretch: 96%;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.btn:hover { background: var(--encre); color: var(--calque); }
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--surligneur);
  box-shadow: 4px 4px 0 var(--encre);
}
.btn--primary:hover {
  background: var(--encre);
  color: var(--surligneur);
  box-shadow: 0 0 0 var(--encre);
}
.btn .ico { width: 18px; height: 18px; flex: none; }

.link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: .28em;
  transition: text-decoration-thickness .15s, text-underline-offset .15s;
}
.link:hover { text-decoration-thickness: 3px; text-underline-offset: .2em; }

.anno {
  font-size: var(--t-small);
  font-stretch: 78%;
  font-weight: 550;
  letter-spacing: .01em;
  color: var(--encre-2);
}

/* surlignage façon marqueur */
.mark {
  background-image: linear-gradient(transparent 52%, var(--surligneur) 52%, var(--surligneur) 88%, transparent 88%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding-inline: .06em;
}

/* En-têtes de section */
.sec-head h2 {
  font-size: var(--t-h2);
  line-height: 1.02;
  font-weight: 720;
  font-stretch: 104%;
  letter-spacing: -.02em;
}
.sec-head p {
  margin-top: 1.1rem;
  max-width: 34em;
  font-size: var(--t-lead);
  line-height: 1.5;
  color: var(--encre-2);
}

/* ==========================================================================
   En-tête du site
   ========================================================================== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
}
/* fond flouté sur un pseudo-élément : évite de créer un bloc conteneur pour le menu mobile */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(230, 234, 232, .9);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.header.is-scrolled::before { border-bottom-color: var(--trait); }
.menu-open .header::before { background: var(--calque); }
.header-in {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex: none;
}
.brand img { height: 30px; width: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 36px);
}
.nav-list a:not(.btn) {
  position: relative;
  display: inline-block;
  padding: 10px 2px;
  text-decoration: none;
  font-weight: 560;
  font-size: .975rem;
}
.nav-list a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 7px;
  background: var(--surligneur);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-list a:not(.btn):hover::after,
.nav-list a[aria-current="true"]::after { transform: scaleX(1); }
.nav-list .btn { min-height: 42px; padding: .55em 1em; box-shadow: 3px 3px 0 var(--encre); }

.menu-btn {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 4px 8px 12px;
  border: 0;
  background: none;
  font-weight: 650;
  cursor: pointer;
}
.menu-btn .bars { position: relative; width: 22px; height: 12px; }
.menu-btn .bars::before, .menu-btn .bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-btn .bars::before { top: 0; }
.menu-btn .bars::after { top: 10px; }
.menu-btn[aria-expanded="true"] .bars::before { top: 5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { top: 5px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--calque);
    padding: 24px var(--gut) 40px;
    display: none;
    flex-direction: column;
    overflow-y: auto;
  }
  .nav.is-open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li { border-bottom: 1px solid var(--trait); }
  .nav-list a:not(.btn) {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 18px 0;
    font-size: 1.75rem;
    font-weight: 700;
    font-stretch: 104%;
  }
  .nav-list a:not(.btn)::after { bottom: 20px; height: 10px; right: auto; width: 6em; }
  .nav-list a:not(.btn) .nav-ref { font-size: var(--t-small); font-weight: 550; font-stretch: 78%; color: var(--encre-2); text-align: right; }
  .nav-list li:last-child { border: 0; padding-top: 28px; }
  .nav-list .btn { width: 100%; justify-content: center; min-height: 54px; font-size: 1.0625rem; }
  .nav-foot { margin-top: auto; padding-top: 32px; }
  body.menu-open { overflow: hidden; }
}
@media (min-width: 861px) {
  .nav-ref, .nav-foot { display: none; }
}

/* ==========================================================================
   Hero : le plan qui se dessine
   ========================================================================== */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(28px, 4vw, 56px));
  padding-bottom: clamp(56px, 6vw, 96px);
  background-image:
    linear-gradient(rgba(35, 40, 94, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 40, 94, .045) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: -1px -1px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 13fr);
  gap: clamp(32px, 4vw, 72px);
  align-items: center;
  min-height: min(calc(100svh - var(--header-h) - 100px), 820px);
}
.hero-title {
  font-size: var(--t-h1);
  line-height: .98;
  font-weight: 780;
  font-stretch: 100%;
  letter-spacing: -.028em;
}
.hero-text { container-type: inline-size; }
@supports (font-size: 1cqi) {
  .hero-title { font-size: clamp(2.3rem, 13.2cqi, 6rem); }
}
.hero-title .line { display: block; overflow: hidden; white-space: nowrap; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-title .line > span { display: inline-block; }
.hero-lead {
  margin-top: clamp(20px, 2.2vw, 32px);
  max-width: 30em;
  font-size: var(--t-lead);
  line-height: 1.5;
  color: var(--encre-2);
}
.hero-lead strong { color: var(--encre); font-weight: 650; }
.hero-actions {
  margin-top: clamp(28px, 3vw, 40px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
}

.hero-plan { position: relative; }
.plan-box { position: relative; }

/* ---- Plan SVG ---- */
.plan { width: 100%; height: auto; overflow: visible; }
.plan path, .plan circle, .plan rect { fill: none; stroke: var(--encre); stroke-width: 1.2; stroke-linecap: butt; }
.plan text { fill: var(--encre); stroke: none; font-family: var(--f); }
.plan .p-axis { stroke-width: 1; stroke-dasharray: 18 5 3 5; opacity: .4; }
.plan .p-bubble circle { fill: var(--calque); stroke-width: 1.2; }
.plan .p-bubble text { font-size: 15px; font-weight: 650; text-anchor: middle; dominant-baseline: central; }
.plan .p-wall { fill: var(--encre); stroke-width: 1.4; stroke-linejoin: miter; }
.plan .p-win { stroke-width: 1; }
.plan .p-door { stroke-width: 1.6; }
.plan .p-door-arc { stroke-width: .9; }
.plan .p-jamb { stroke-width: 1; }
.plan .p-stair path { stroke-width: 1; }
.plan .p-dim { stroke-width: .9; }
.plan .p-dim-txt { font-size: 15px; font-weight: 520; font-stretch: 80%; text-anchor: middle; }
.plan .p-dim-txt.p-dim--total { font-size: 17px; font-weight: 700; font-stretch: 90%; }
.plan .p-dim-txt--xs { display: none; }
.plan .p-tag text {
  paint-order: stroke;
  stroke: var(--calque);
  stroke-width: 7px;
  stroke-linejoin: round;
  transition: stroke .3s;
}
.plan .p-tag-name { font-size: 20px; font-weight: 720; font-stretch: 100%; }
.plan .p-tag-area { font-size: 15px; font-weight: 540; font-stretch: 80%; }
.plan .p-tag.is-hot text { stroke: var(--surligneur); }
.plan .p-tag--hall .p-tag-name { font-size: 15px; font-weight: 600; font-stretch: 80%; }
.plan .p-level path:first-child { fill: var(--encre); }
.plan .p-level text { font-size: 15px; font-weight: 650; font-stretch: 85%; }
.plan .p-level .p-level-abs { font-weight: 450; fill: var(--encre-2); }
.plan .p-north circle { stroke-width: 1; }
.plan .p-north path { fill: var(--encre); stroke: none; }
.plan .p-north text { font-size: 14px; font-weight: 700; text-anchor: middle; }
.plan .p-cut path:last-of-type { fill: var(--encre); stroke: none; }
.plan .p-cut text { font-size: 15px; font-weight: 700; text-anchor: middle; }
.plan .p-img { transition: opacity .6s var(--ease); }
.plan .p-room { cursor: crosshair; }
.plan .p-room.is-hot .p-img--duo { opacity: 0; }
.plan .p-cross { pointer-events: none; opacity: 0; transition: opacity .2s; }
.plan .p-cross path { stroke: var(--encre); stroke-width: .8; stroke-dasharray: 4 4; opacity: .55; }
.plan .p-cross .p-cross-box { stroke: var(--encre); stroke-width: 1.4; fill: none; }
.plan.is-tracking .p-cross { opacity: 1; }
.plan.is-tracking { cursor: crosshair; }

/* Écrans tactiles : photos en couleur, sans survol */
@media (hover: none) {
  .plan .p-img--duo { opacity: 0; }
}

/* ---- Cartouche ---- */
.cartouche {
  margin-top: 14px;
  margin-left: auto;
  width: min(100%, 520px);
  border: 1.5px solid var(--encre);
  background: var(--calque);
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  font-size: .9375rem;
  line-height: 1.25;
}
.cartouche { gap: 1px; background: var(--encre); }
.cartouche > div {
  padding: 8px 12px 9px;
  background: var(--calque);
  min-width: 0;
}
.cartouche dt {
  font-size: .75rem;
  font-stretch: 78%;
  font-weight: 520;
  color: var(--encre-2);
}
.cartouche dd { font-weight: 650; font-stretch: 92%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cartouche .c-brand { grid-column: span 2; }
.cartouche .c-brand dd { font-stretch: 118%; font-weight: 800; letter-spacing: -.01em; }
.cartouche .c-coords dd { font-variant-numeric: tabular-nums; font-stretch: 80%; }
.cartouche .c-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-block: 4px;
}
.mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 4px 2px;
  border: 0;
  background: none;
  font-size: .875rem;
  font-weight: 620;
  font-stretch: 86%;
  text-decoration: underline;
  text-underline-offset: .25em;
  cursor: pointer;
}
.mini-btn svg { width: 16px; height: 16px; }
.mini-btn:hover { text-decoration-thickness: 2.5px; }

/* Bouton passer l'animation */
.intro-skip {
  position: fixed;
  right: var(--gut);
  bottom: 20px;
  z-index: 60;
  min-height: 40px;
  padding: 6px 14px;
  border: 1.5px solid var(--encre);
  border-radius: 2px;
  background: var(--calque);
  font-size: .875rem;
  font-weight: 620;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.intro-skip:hover { background: var(--encre); color: var(--calque); }
.is-intro .intro-skip { opacity: 1; visibility: visible; }

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 40px; }
  .cartouche { margin-left: 0; }
}
@media (max-width: 640px) {
  .hero { padding-top: calc(var(--header-h) + 24px); background-size: 22px 22px; }
  .plan .p-axes, .plan .p-dim--part, .plan .p-cut, .plan .p-level, .plan .p-tag--hall { display: none; }
  .plan .p-dim-txt.p-dim--total { font-size: 34px; }
  .plan .p-tag-name { font-size: 40px; }
  .plan .p-tag-area { font-size: 30px; }
  .plan .p-tag text { stroke-width: 10px; }
  .plan .p-north text { font-size: 26px; }
  .cartouche { grid-template-columns: 1fr 1fr; font-size: .875rem; }
  .cartouche .c-coords, .cartouche .c-indice { display: none; }
  .cartouche .c-actions { order: 10; }
  .cartouche .c-brand { grid-column: span 2; }
  .cartouche .c-actions { grid-column: span 2; }
}

/* ==========================================================================
   Services : la légende du plan
   ========================================================================== */
.services { padding-block: var(--sec); border-top: 1px solid var(--trait); }
.services-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 5vw, 96px);
  align-items: start;
}
.services .sec-head { position: sticky; top: calc(var(--header-h) + 40px); }
.services .sec-head .btn { margin-top: 32px; }

.legend { border: 1.5px solid var(--encre); background: var(--calque); }
.legend-title {
  display: flex;
  justify-content: space-between;
  padding: 10px 18px;
  border-bottom: 1.5px solid var(--encre);
  font-weight: 700;
  font-stretch: 112%;
}
.legend-title span { font-weight: 520; font-stretch: 78%; color: var(--encre-2); font-size: var(--t-small); align-self: center; }
.legend-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 22px;
  padding: 22px 18px;
  border-bottom: 1px solid var(--trait);
}
.legend-item:last-child { border-bottom: 0; }
.swatch {
  width: 112px;
  height: 72px;
  border: 1.5px solid var(--encre);
  overflow: hidden;
  background: var(--calque);
}
.swatch rect.fillp {
  transition: transform 1.2s var(--ease);
}
.legend-item:hover .swatch rect.fillp { transform: translate(-40px, -24px); }
.swatch-cap { margin-top: 6px; font-size: .75rem; font-stretch: 78%; font-weight: 520; color: var(--encre-2); }
.legend-item h3 {
  display: inline;
  font-size: var(--t-h3);
  line-height: 1.3;
  font-weight: 680;
  font-stretch: 100%;
  background-image: linear-gradient(transparent 55%, var(--surligneur) 55%, var(--surligneur) 92%, transparent 92%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  transition: background-size .5s var(--ease);
}
.legend-item:hover h3 { background-size: 100% 100%; }
.legend-item p { margin-top: 6px; color: var(--encre-2); max-width: 38em; }
.legend-more {
  margin-top: 24px;
  color: var(--encre-2);
}

@media (max-width: 960px) {
  .services-grid { grid-template-columns: 1fr; }
  .services .sec-head { position: static; }
}
@media (max-width: 520px) {
  .legend-item { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; padding: 18px 14px; }
  .swatch { width: 72px; height: 56px; }
  .swatch-cap { display: none; }
  .legend-title { padding: 10px 14px; }
}

/* ==========================================================================
   Méthode : le planning de chantier
   ========================================================================== */
.methode {
  position: relative;
  padding-block: var(--sec);
  background: var(--tirage);
  color: var(--sur-tirage);
  background-image:
    linear-gradient(rgba(230, 234, 232, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230, 234, 232, .05) 1px, transparent 1px);
  background-size: 28px 28px;
}
.methode .sec-head p { color: var(--sur-tirage-2); }

.gantt {
  --p: 0;
  --lab: 38%;
  position: relative;
  margin-top: clamp(48px, 5vw, 80px);
  border-top: 1.5px solid var(--sur-tirage);
  border-bottom: 1.5px solid var(--sur-tirage);
}
.gantt-scale {
  display: grid;
  grid-template-columns: var(--lab) 1fr;
  border-bottom: 1px solid rgba(230, 234, 232, .25);
  font-size: var(--t-small);
  font-stretch: 78%;
  font-weight: 550;
  color: var(--sur-tirage-2);
}
.gantt-scale > span { padding: 10px 0; }
.gantt-ticks {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-left: 1px solid rgba(230, 234, 232, .25);
  padding-left: 12px;
}
.g-row {
  position: relative;
  display: grid;
  grid-template-columns: var(--lab) 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(230, 234, 232, .14);
}
.g-row:last-child { border-bottom: 0; }
.g-label {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  column-gap: 8px;
  padding: 26px 24px 26px 0;
}
.g-num {
  grid-row: span 2;
  font-size: 1.5rem;
  line-height: 1.1;
  font-weight: 800;
  font-stretch: 120%;
  color: var(--sur-tirage-2);
  transition: color .3s;
}
.g-label h3 { font-size: var(--t-h3); font-weight: 680; line-height: 1.3; }
.g-label p { margin-top: 4px; color: var(--sur-tirage-2); font-size: 1rem; max-width: 30em; }
.g-row.is-on .g-num { color: var(--surligneur); }

.g-track {
  position: relative;
  height: 100%;
  min-height: 64px;
  border-left: 1px solid rgba(230, 234, 232, .25);
  background-image: repeating-linear-gradient(90deg, rgba(230, 234, 232, .08) 0 1px, transparent 1px calc(100% / 12));
}
.g-bar {
  position: absolute;
  top: 50%;
  left: calc(var(--s) * 1%);
  width: calc((var(--e) - var(--s)) * 1%);
  height: 22px;
  transform: translateY(-50%);
  border: 1.5px solid var(--sur-tirage);
  background-image: repeating-linear-gradient(-45deg, rgba(230, 234, 232, .35) 0 1px, transparent 1px 7px);
}
.g-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: clamp(0%, calc((var(--p) - var(--s)) / (var(--e) - var(--s)) * 100%), 100%);
  background: var(--surligneur);
}
.g-now {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--lab);
  right: 0;
  pointer-events: none;
}
.g-now::before {
  content: "";
  position: absolute;
  top: -12px; bottom: -12px;
  left: calc(var(--p) * 1%);
  width: 0;
  border-left: 2px solid var(--surligneur);
}
.g-now span {
  position: absolute;
  top: -40px;
  left: calc(var(--p) * 1%);
  transform: translateX(calc(var(--p) * -1%));
  padding: 3px 8px;
  background: var(--surligneur);
  color: var(--encre);
  font-size: .8125rem;
  font-weight: 700;
  font-stretch: 86%;
  white-space: nowrap;
}
.methode-note { margin-top: 28px; color: var(--sur-tirage-2); font-size: 1rem; }

@media (max-width: 760px) {
  .gantt { --lab: 0%; }
  .gantt-scale { grid-template-columns: 1fr; }
  .gantt-scale > span:first-child { display: none; }
  .gantt-ticks { border-left: 0; padding-left: 0; }
  .g-row { grid-template-columns: 1fr; padding-bottom: 18px; }
  .g-label { padding: 22px 0 12px; }
  .g-track { min-height: 30px; border-left: 0; }
  .g-now span { top: -36px; }
}

/* ==========================================================================
   Région : la carte
   ========================================================================== */
.region { padding-block: var(--sec); }
.region-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 112px);
  align-items: center;
}
.region-map { position: relative; }
.carte { width: 100%; height: auto; max-height: 82vh; margin-inline: auto; }
.carte path, .carte circle { fill: none; stroke: var(--encre); }
.carte .c-line { stroke-width: .8; opacity: .55; }
.carte .c-line.c-major { stroke-width: 1.3; opacity: .85; }
.carte .c-lake { fill: var(--calque); stroke: var(--encre); stroke-width: 1.3; }
.carte .c-lake-hatch { stroke: none; fill: url(#eau); }
.carte .eau-line { stroke: var(--encre); stroke-width: .8; opacity: .6; }
.carte .c-lake-name { fill: var(--encre-2); font-size: 13px; font-style: normal; font-stretch: 80%; font-weight: 520; letter-spacing: .04em; }
.carte text { fill: var(--encre); stroke: none; font-family: var(--f); font-size: 15px; font-weight: 560; font-stretch: 86%; paint-order: stroke; stroke: var(--calque); stroke-width: 5px; stroke-linejoin: round; }
.carte .c-town circle { fill: var(--encre); stroke: none; }
.carte .c-town--big text { font-weight: 720; font-size: 17px; font-stretch: 96%; }
.carte .c-home circle { fill: var(--surligneur); stroke: var(--encre); stroke-width: 1.6; }
.carte .c-home .c-home-ring { fill: none; stroke-dasharray: 3 4; stroke-width: 1.2; }
.carte .c-home path { stroke-width: 1.4; }
.carte .c-home text { font-size: 22px; font-weight: 800; font-stretch: 112%; }
.carte .c-home .c-coord { font-size: 13px; font-weight: 540; font-stretch: 80%; fill: var(--encre-2); }
.carte .c-scale path { stroke-width: 1.4; }
.carte .c-scale text { font-size: 12px; font-weight: 600; }
.region-map figcaption { margin-top: 10px; }

.region-text .sec-head p { max-width: 30em; }
.points { margin-top: 40px; border-top: 1.5px solid var(--encre); }
.points li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 4px 12px;
  padding: 20px 0;
  border-bottom: 1px solid var(--trait);
}
.points .pt-ico { grid-row: span 2; width: 28px; height: 28px; margin-top: 2px; }
.points .pt-ico * { fill: none; stroke: var(--encre); stroke-width: 1.6; }
.points h3 { font-size: var(--t-h3); font-weight: 680; line-height: 1.3; }
.points p { color: var(--encre-2); }

@media (max-width: 900px) {
  .region-grid { grid-template-columns: 1fr; }
  .region-map { order: 2; max-width: 520px; width: 100%; margin-inline: auto; }
}

/* ==========================================================================
   Bandeau photo
   ========================================================================== */
.band { position: relative; height: clamp(320px, 52vw, 640px); overflow: hidden; background: var(--tirage); }
.band img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; will-change: transform; }
.band-cap {
  position: absolute;
  left: var(--gut); bottom: 18px;
  padding: 6px 10px;
  background: var(--calque);
  font-size: var(--t-small);
  font-stretch: 80%;
  font-weight: 560;
}

/* ==========================================================================
   Contact : le bon de demande
   ========================================================================== */
.contact { padding-block: var(--sec); border-top: 1px solid var(--trait); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 5vw, 96px);
  align-items: start;
}
.coords { margin-top: 40px; border-top: 1.5px solid var(--encre); }
.coords > div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--trait);
}
.coords dt { font-size: var(--t-small); font-stretch: 78%; font-weight: 550; color: var(--encre-2); padding-top: .2em; }
.coords dd { font-weight: 560; }
.coords dd a { font-weight: 650; }
.copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }

.form {
  border: 1.5px solid var(--encre);
  background: var(--calque);
  padding: clamp(20px, 3vw, 40px);
  box-shadow: 8px 8px 0 var(--calque-2), 8px 8px 0 1.5px var(--encre);
}
.form-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 24px;
  border-bottom: 1.5px solid var(--encre);
}
.form-head h3 { font-size: 1.375rem; font-weight: 740; font-stretch: 108%; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 620; font-size: 1rem; }
.req, .opt { font-size: .8125rem; font-stretch: 80%; font-weight: 520; color: var(--encre-2); margin-left: 6px; }
.field input, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 0;
  border-bottom: 1.5px solid var(--encre);
  border-radius: 0;
  background: rgba(255, 255, 255, .45);
  font-size: 1.0625rem;
  transition: background-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #7B80A3; opacity: 1; }
.field input:hover, .field textarea:hover { background: rgba(255, 255, 255, .7); }
.field input:focus-visible, .field textarea:focus-visible {
  outline: none;
  background: #fff;
  box-shadow: 0 2px 0 0 var(--encre), 0 0 0 3px var(--surligneur);
}
.field .hint { font-size: .875rem; color: var(--encre-2); }
.field.has-error input, .field.has-error textarea { border-bottom-color: var(--erreur); background: rgba(179, 38, 30, .06); }
.field-error {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  color: var(--erreur);
  font-size: .9375rem;
  font-weight: 560;
}
.field-error svg { flex: none; width: 16px; height: 16px; margin-top: 3px; }
.field-error[hidden] { display: none; }

fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.field legend { padding: 0; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1.5px solid var(--encre);
  border-radius: 2px;
  font-weight: 560;
  cursor: pointer;
  transition: background-color .15s;
}
.chip label::before {
  content: "";
  width: 12px; height: 12px;
  border: 1.5px solid var(--encre);
  border-radius: 50%;
  transition: background-color .15s, box-shadow .15s;
}
.chip label:hover { background: rgba(255, 255, 255, .6); }
.chip input:checked + label { background: var(--surligneur); }
.chip input:checked + label::before { background: var(--encre); box-shadow: inset 0 0 0 2px var(--surligneur); }
.chip input:focus-visible + label { outline: 3px solid var(--encre); outline-offset: 2px; }

.form-actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.form-help { flex: 1 1 260px; font-size: .9375rem; color: var(--encre-2); }
.form-summary {
  margin-bottom: 24px;
  padding: 14px 16px;
  border: 1.5px solid var(--erreur);
  border-left-width: 6px;
  background: rgba(179, 38, 30, .05);
  color: var(--erreur);
}
.form-summary h4 { margin: 0 0 6px; font-size: 1rem; }
.form-summary ul { padding-left: 1.1em; list-style: square; }
.form-summary a { font-weight: 600; }
.form-status:not(:empty) {
  margin-top: 20px;
  padding: 14px 16px;
  border: 1.5px solid var(--encre);
  border-left-width: 6px;
  background: rgba(242, 223, 58, .35);
}

@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .form { box-shadow: 5px 5px 0 var(--calque-2), 5px 5px 0 1.5px var(--encre); }
  .coords > div { grid-template-columns: 1fr; gap: 2px; }
}

/* ==========================================================================
   Pied de page : le cartouche final
   ========================================================================== */
.footer {
  background: var(--tirage);
  color: var(--sur-tirage);
  padding-block: clamp(56px, 6vw, 96px) 28px;
}
.foot-mark {
  font-size: clamp(3.4rem, 1rem + 11vw, 12rem);
  line-height: .85;
  font-weight: 860;
  font-stretch: 125%;
  letter-spacing: -.035em;
  color: var(--sur-tirage);
  white-space: nowrap;
}
.foot-mark span { color: var(--surligneur); }
.foot-by { margin-top: 10px; font-size: 1.25rem; font-stretch: 80%; font-weight: 500; color: var(--sur-tirage-2); }
.foot-cart {
  margin-top: clamp(40px, 5vw, 72px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(230, 234, 232, .45);
  border: 1.5px solid var(--sur-tirage);
}
.foot-cart > div {
  padding: 14px 16px 16px;
  background: var(--tirage);
  min-width: 0;
}
.foot-cart dt { font-size: .75rem; font-stretch: 78%; font-weight: 520; color: var(--sur-tirage-2); margin-bottom: 4px; }
.foot-cart dd { font-weight: 560; line-height: 1.45; }
.foot-cart a { text-underline-offset: .22em; }
.foot-bottom {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: .9375rem;
  color: var(--sur-tirage-2);
}
.foot-bottom nav ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-bottom a { color: var(--sur-tirage); text-underline-offset: .22em; }
@media (max-width: 860px) { .foot-cart { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-cart { grid-template-columns: 1fr; } }

/* ==========================================================================
   Indicateur de niveau (position dans la page)
   ========================================================================== */
.level {
  position: fixed;
  left: 10px;
  bottom: 24px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  writing-mode: vertical-rl;
  transform: rotate(180deg) translateX(6px);
  font-size: .75rem;
  font-weight: 640;
  font-stretch: 84%;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s, transform .3s var(--ease);
}
.level.is-on { opacity: 1; transform: rotate(180deg); }
.level svg { width: 12px; height: 10px; transform: rotate(90deg); }
.level .lv-name { color: var(--encre-2); font-weight: 520; }
.level::after { content: ""; width: 1px; height: 48px; background: var(--encre); opacity: .5; }
@media (max-width: 1080px) { .level { display: none; } }

/* ==========================================================================
   Pages simples (mentions légales, 404)
   ========================================================================== */
.page { padding-top: calc(var(--header-h) + 56px); padding-bottom: var(--sec); }
.page h1 { font-size: clamp(2.4rem, 1.2rem + 4vw, 4.4rem); line-height: 1; font-weight: 780; font-stretch: 106%; letter-spacing: -.025em; }
.page .prose { margin-top: 40px; max-width: 36rem; }
.prose h2 { margin-top: 48px; font-size: 1.5rem; font-weight: 720; font-stretch: 104%; line-height: 1.2; }
.prose h3 { margin-top: 28px; font-size: 1.125rem; font-weight: 680; }
.prose p, .prose ul { margin-top: 12px; }
.prose ul { padding-left: 1.2em; list-style: square; }
.prose li + li { margin-top: 6px; }
.prose a { font-weight: 600; text-underline-offset: .22em; }
.page-404 { min-height: 100svh; display: flex; align-items: center; }
.page-404 .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.page-404 p { margin-top: 18px; font-size: var(--t-lead); color: var(--encre-2); max-width: 28em; }
.page-404 .btns { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.page-404 svg path, .page-404 svg circle { fill: none; stroke: var(--encre); }
.page-404 svg text { fill: var(--encre); font-family: var(--f); }
@media (max-width: 800px) { .page-404 .wrap { grid-template-columns: 1fr; } }

/* ==========================================================================
   Animations (uniquement si JavaScript actif et mouvement autorisé)
   ========================================================================== */
.js .carte .c-line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease); transition-delay: calc(var(--i) * 70ms); }
.js .carte.is-visible .c-line { stroke-dashoffset: 0; }
.js .carte .c-home { opacity: 0; transition: opacity .6s 1.2s; }
.js .carte.is-visible .c-home { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; transition-delay: 0s !important; }
  .js .carte .c-line { stroke-dashoffset: 0; }
  .js .carte .c-home { opacity: 1; }
  .band img { inset: 0; height: 100%; }
}

@media print {
  .header, .level, .intro-skip, .band, body::before { display: none !important; }
  body { background: #fff; }
  .methode, .footer { background: #fff; color: #000; }
}

/* Introduction : masquage initial (filet de sécurité si le script ne se charge pas) */
.intro-pending .plan-box,
.intro-pending .cartouche,
.intro-pending .hero-title .line > span,
.intro-pending .hero-lead,
.intro-pending .hero-actions {
  opacity: 0;
  animation: dd-failsafe .5s ease 2.5s forwards;
}
@keyframes dd-failsafe { to { opacity: 1; } }

/* Les calques de dessin ne captent pas la souris : le survol reste sur les pièces */
.plan .p-walls, .plan .p-openings, .plan .p-tags, .plan .p-stair,
.plan .p-dims, .plan .p-axes, .plan .p-level, .plan .p-north, .plan .p-cut { pointer-events: none; }

/* Cadre de la carte */
.carte .c-frame { fill: none; stroke: var(--encre); stroke-width: 1.5; }
.carte .c-ticks path { stroke: var(--encre); stroke-width: 1; }
.carte .c-ticks text { font-size: 11px; font-weight: 540; font-stretch: 78%; fill: var(--encre-2); }
