/* =========================================================================
   Traits d'Union Sàrl — feuille de style
   Concept : le site est une planche de dessin d'architecte.
   Couleurs reprises du logo : vert sapin, vert forêt, crème rosé.
   ========================================================================= */

/* Polices hébergées sur le site (aucun appel à Google : plus rapide et conforme à la nLPD) */
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/jost-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/jost-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Architects Daughter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/architects-daughter-latin-400-normal.woff2") format("woff2"); }

:root {
  --paper: #FBF0EC;      /* crème rosé du logo */
  --paper-2: #F5E6E0;    /* papier calque */
  --ink: #173525;        /* vert forêt (encre) */
  --sapin: #4F7C64;      /* vert du logo */
  --sapin-d: #436955;    /* vert sapin pour les fonds avec du texte (contraste AA) */
  --mist: #B9CFC1;       /* vert pâle, éléments secondaires sur fond foncé */
  --red: #C4302B;        /* rouge des plans : « nouveau » */
  --yellow: #E2B23A;     /* jaune des plans : « à démolir » */
  --err-dark: #F4A79D;   /* message d'erreur sur fond foncé */

  --f-sans: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --f-hand: "Architects Daughter", "Jost", cursive;

  --frame: 0px;          /* largeur de la marge de planche (0 sur mobile) */
  --header-h: 64px;
  --pad: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.65, .05, .25, 1);
  --focus-ring: var(--ink);
  color-scheme: light;
}

@media (min-width: 900px) {
  :root { --frame: 22px; --header-h: 76px; }
}

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

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

body {
  margin: 0;
  padding: var(--frame);
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--f-sans);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-weight: 400; margin: 0; }
p { margin: 0 0 1em; }
a { color: inherit; }
button { font: inherit; color: inherit; }

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

/* Focus visible, identique partout (homogénéité) */
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 2px;
}
main:focus { outline: none; }

.skip {
  position: fixed; left: 12px; top: -80px; z-index: 300;
  background: var(--ink); color: var(--paper); padding: .7em 1.1em;
  text-decoration: none; border-radius: 2px; transition: top .2s;
}
.skip:focus { top: 12px; }

.wrap { max-width: 1240px; margin: 0 auto; padding-inline: var(--pad); }

/* ---------------------------------------------------------------- Cadre de planche */
.frame { display: none; }
@media (min-width: 900px) {
  .frame { display: block; }
  .frame > div { position: fixed; z-index: 60; background: var(--paper); pointer-events: none; }
  .frame-top    { top: 0; left: 0; right: 0; height: var(--frame); border-bottom: 1px solid var(--ink); display: flex; padding-inline: var(--frame); }
  .frame-bottom { bottom: 0; left: 0; right: 0; height: var(--frame); border-top: 1px solid var(--ink); }
  .frame-left   { top: 0; bottom: 0; left: 0; width: var(--frame); border-right: 1px solid var(--ink); display: flex; flex-direction: column; padding-block: var(--frame); }
  .frame-right  { top: 0; bottom: 0; right: 0; width: var(--frame); border-left: 1px solid var(--ink); }
  .frame span {
    flex: 1; position: relative; display: grid; place-items: center;
    font: 500 .68rem/1 var(--f-sans); color: var(--sapin-d);
  }
  .frame-top span + span::before { content: ""; position: absolute; left: 0; bottom: 0; height: 7px; border-left: 1px solid var(--ink); }
  .frame-left span + span::before { content: ""; position: absolute; top: 0; right: 0; width: 7px; border-top: 1px solid var(--ink); }
}

/* ---------------------------------------------------------------- En-tête */
.site-header {
  position: sticky; top: var(--frame); z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; gap: clamp(12px, 2.5vw, 40px);
  padding-inline: var(--pad);
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: rgba(23, 53, 37, .18); }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; min-height: 44px; }
.brand-mark { width: 38px; height: auto; color: var(--sapin); overflow: visible; }
.brand-name {
  font: 400 .95rem/1.05 var(--f-sans); letter-spacing: .2em; text-transform: uppercase;
  display: flex; flex-direction: column;
}
.brand-name span { font-size: .68rem; letter-spacing: .3em; text-transform: none; margin-top: 3px; color: var(--sapin-d); }

.nav ul { list-style: none; display: flex; gap: clamp(16px, 2.4vw, 36px); margin: 0; padding: 0; }
.nav a {
  position: relative; display: inline-block; padding: 10px 0; text-decoration: none; font-size: 1rem;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--sapin);
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
.nav a[aria-current="true"] { color: var(--sapin-d); }

.tel {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 1.5px solid var(--ink); border-radius: 2px; text-decoration: none; font-weight: 500; font-size: .95rem;
  white-space: nowrap; transition: background .2s, color .2s;
}
.tel svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.tel:hover { background: var(--ink); color: var(--paper); }
.tel-label { display: none; }

.burger {
  display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px;
  background: none; border: 1.5px solid var(--ink); border-radius: 2px; cursor: pointer; font-weight: 500;
}
.burger-lines { display: grid; gap: 4px; width: 18px; }
.burger-lines i { display: block; height: 2px; background: currentColor; transition: transform .25s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] .burger-lines i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger-lines i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger-lines i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 899px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .tel { padding: 0; width: 44px; justify-content: center; }
  .tel > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .brand-mark { width: 32px; }
  .brand-name { font-size: .82rem; letter-spacing: .16em; }
}
@media (max-width: 360px) {
  .burger-text { display: none; }
}

/* Menu mobile */
.menu-mobile {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 45;
  background: var(--sapin-d); color: var(--paper);
  padding: 32px var(--pad) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow-y: auto;
  --focus-ring: var(--paper);
}
.menu-mobile[hidden] { display: none; }
.menu-mobile ol { list-style: none; margin: 0; padding: 0; }
.menu-mobile li { border-bottom: 1px solid rgba(251, 240, 236, .3); }
.menu-mobile ol a {
  display: block; padding: 14px 0; text-decoration: none; font: 300 2.2rem/1.15 var(--f-sans);
  opacity: 0; transform: translateX(-16px);
}
.menu-mobile.open ol a { opacity: 1; transform: none; transition: opacity .3s, transform .4s var(--ease); }
.menu-mobile.open li:nth-child(2) a { transition-delay: .05s; }
.menu-mobile.open li:nth-child(3) a { transition-delay: .1s; }
.menu-mobile.open li:nth-child(4) a { transition-delay: .15s; }
.menu-mobile-contact { display: grid; gap: 12px; margin-top: 32px; }
.menu-mobile-contact a { font-size: 1.1rem; min-height: 44px; display: flex; align-items: center; }
body.menu-open { overflow: hidden; }

/* ---------------------------------------------------------------- Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: .8em 1.4em;
  font: 500 1rem/1.2 var(--f-sans); text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--ink); border-radius: 2px;
  transition: background .2s, color .2s, border-color .2s, transform .12s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--sapin-d); border-color: var(--sapin-d); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }

/* ---------------------------------------------------------------- Hero */
.hero {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center; gap: clamp(24px, 4vw, 64px);
  min-height: calc(100svh - var(--header-h) - 2 * var(--frame));
  padding: clamp(24px, 4vw, 48px) var(--pad) clamp(40px, 5vw, 64px);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(79, 124, 100, .13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 124, 100, .13) 1px, transparent 1px),
    linear-gradient(rgba(79, 124, 100, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 124, 100, .06) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
  background-position: -1px -1px;
}

.hero-title {
  font-weight: 300;
  font-size: clamp(3rem, 1.6rem + 4.6vw, 6.6rem);
  line-height: .98;
  letter-spacing: -.012em;
  margin-bottom: .45em;
}
.ln { display: flex; align-items: center; gap: .2em; padding-top: .12em; margin-top: -.12em; overflow: hidden; }
.w { display: block; flex: none; }
.hy {
  position: relative; flex: 1 1 auto; min-width: .6em;
  height: max(2px, .05em); margin-top: .1em; background: var(--sapin);
  transform-origin: left center;
}
.hy::after {
  content: ""; position: absolute; right: -.07em; top: 50%; width: .13em; height: .13em;
  border-radius: 50%; background: var(--sapin); transform: translateY(-50%);
}

.lead { font-size: clamp(1.1rem, 1rem + .3vw, 1.3rem); line-height: 1.55; max-width: 31em; margin-bottom: 1.8em; }
.lead strong { font-weight: 500; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-drawing { margin: 0; position: relative; }
.facade-wrap { position: relative; touch-action: pan-y; }
.facade { width: 100%; height: auto; overflow: visible; }

.legend {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px;
  margin-top: 10px; font-size: .92rem;
}
.lg { display: inline-flex; align-items: center; gap: 8px; }
.lg i { display: inline-block; width: 26px; height: 10px; }
.lg-ex i { border-top: 2.5px solid var(--ink); height: 0; }
.lg-demo i {
  background: rgba(226, 178, 58, .3) repeating-linear-gradient(135deg, #C9971A 0 1px, transparent 1px 4px);
  border: 1px solid #C9971A;
}
.lg-new i { border-top: 2.5px solid var(--red); height: 0; }
.replay {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  background: none; border: 0; padding: 0 2px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.replay svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.replay:hover svg { transform: rotate(-200deg); }
.hint { display: none; margin: 4px 0 0; font: 1rem var(--f-hand); color: var(--sapin-d); }
@media (hover: hover) and (pointer: fine) { .hint { display: block; } }

/* Façade : styles des traits */
.facade .dr { fill: none; stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; }
.facade .main { stroke-width: 2.6; }
.facade .mid { stroke-width: 1.8; }
.facade .thin { stroke-width: 1.3; }
.facade .fine { stroke-width: .9; }
.facade .ground { stroke-width: 3.4; stroke-linecap: butt; }
.facade .dim { stroke: var(--sapin-d); stroke-width: .9; }
.facade .ext2 { stroke: var(--sapin-d); stroke-width: .8; }
.facade .new { stroke: var(--red); stroke-width: 2.6; }
.facade .thin-new { stroke-width: 1.4; }
.facade .leader { stroke: var(--red); stroke-width: 1.1; }
.facade .axes path { fill: none; stroke: var(--sapin); stroke-width: .9; stroke-dasharray: 16 5 2 5; }
.facade .axes circle { fill: var(--paper); stroke: var(--sapin); stroke-width: 1.3; }
.facade .axes text { font: 500 15px var(--f-sans); fill: var(--sapin-d); }
.facade .hatch, .facade .tiles, .facade .boards, .facade .slats { fill: none; stroke: var(--ink); }
.facade .hatch { stroke-width: .8; }
.facade .tiles { stroke-width: .7; }
.facade .boards { stroke-width: .6; opacity: .7; }
.facade .slats { stroke-width: .55; }
.facade .dimtick { stroke: var(--sapin-d); stroke-width: 1.3; fill: none; }
.facade .ext { stroke: var(--sapin-d); stroke-width: .6; fill: none; }
.facade .lvl { fill: var(--sapin-d); }
.facade text { font-family: var(--f-sans); }
.facade .dimtxt { font-size: 13px; fill: var(--sapin-d); }
.facade .small { font-size: 10.5px; }
.facade .lvltxt { font-size: 13px; fill: var(--sapin-d); }
.facade .note { font: 17px var(--f-hand); fill: var(--ink); }
.facade .note.red { fill: var(--red); }
.facade .title { font: 400 24px var(--f-sans); fill: var(--ink); }
.facade .demo rect { fill: rgba(226, 178, 58, .3); }
.facade .demo path { stroke: #C9971A; stroke-width: 1.1; fill: none; }

/* Réticule de mesure (souris) */
.xhair { opacity: 0; pointer-events: none; transition: opacity .2s; }
.facade-wrap.measuring .xhair { opacity: 1; }
.facade-wrap.measuring { cursor: none; }
.xh-v, .xh-h { stroke: var(--sapin); stroke-width: .9; stroke-dasharray: 5 4; fill: none; }
.xh-c { fill: none; stroke: var(--red); stroke-width: 1.6; }
.xh-bg { fill: var(--ink); }
.xh-t { font: 500 13px var(--f-sans); fill: var(--paper); font-variant-numeric: tabular-nums; white-space: pre; }

/* ---------------------------------------------------------------- Titres de section */
.sec-head { max-width: 60em; margin-bottom: clamp(40px, 6vw, 80px); }
.sec-head h2 {
  font: 300 clamp(2.3rem, 1.5rem + 2.8vw, 4rem)/1.04 var(--f-sans);
  letter-spacing: -.01em; margin-bottom: .4em;
}
.sec-head p { font-size: 1.15rem; max-width: 34em; margin: 0; }

/* ---------------------------------------------------------------- Prestations */
.services {
  background: var(--sapin-d); color: var(--paper);
  padding-block: clamp(72px, 10vw, 140px);
  --focus-ring: var(--paper);
}
.svc-row {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(28px, 4vw, 56px); row-gap: 56px;
  --gap: clamp(28px, 4vw, 56px);
}
.svc-ill { width: 100%; height: auto; margin-bottom: 18px; overflow: visible; }
.svc-ill .dr, .svc-ill .fd { fill: none; stroke: var(--paper); stroke-linecap: round; stroke-linejoin: round; }
.svc-ill .k0 { stroke-width: 1; }
.svc-ill .k1 { stroke-width: 1.6; }
.svc-ill .k2 { stroke-width: 2.8; }
.svc-ill .bar { stroke-width: 11; stroke-linecap: butt; }
.svc-ill .grid { stroke: rgba(251, 240, 236, .28); stroke-width: 1; stroke-dasharray: 3 5; }
.svc-ill .dash { stroke: var(--yellow); stroke-dasharray: 6 5; }
.svc-ill .laser { stroke: var(--yellow); stroke-width: 1.6; }
.svc-ill .laser-dot.fd { fill: var(--yellow); stroke: none; }
.svc-ill text.fd { font: 400 13px var(--f-sans); fill: var(--paper); stroke: none; }

.svc h3 {
  position: relative; padding-top: 30px; margin-bottom: .6em;
  font-size: clamp(1.45rem, 1.2rem + .7vw, 1.8rem); line-height: 1.15; font-weight: 400;
}
/* Le « trait d'union » qui relie les trois prestations */
.svc h3::before {
  content: ""; position: absolute; top: 0; left: 0; right: calc(-1 * var(--gap)); height: 2px;
  background: var(--paper); transform-origin: left center;
}
.svc:last-child h3::before { right: 0; }
.svc h3::after {
  content: ""; position: absolute; top: -6px; left: 0; width: 14px; height: 14px; border-radius: 50%;
  background: var(--paper);
}
.svc p { max-width: 30em; }
.svc ul { list-style: none; margin: 0; padding: 0; font-size: 1rem; }
.svc li { position: relative; padding: .5em 0 .5em 26px; border-top: 1px solid rgba(251, 240, 236, .22); }
.svc li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 14px; height: 2px; background: var(--paper); }

/* ---------------------------------------------------------------- Démarche */
.process { padding-block: clamp(72px, 10vw, 140px); background: var(--paper); }
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
}
.step { position: relative; padding: 70px 28px 0 0; }
.step h3 { font-size: 1.35rem; font-weight: 500; margin-bottom: .5em; }
.step p { font-size: 1.02rem; margin: 0; max-width: 22em; }
.bubble {
  position: absolute; top: 0; left: 0; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; border: 1.5px solid var(--ink); background: var(--paper);
  font: 500 1.1rem/1 var(--f-sans); z-index: 1;
}
.step::before {
  content: ""; position: absolute; top: 22px; left: 46px; right: 0; height: 1.5px; background: var(--ink);
  transform-origin: left center;
}
.step:last-child::before { right: 28px; }
.step:last-child::after {
  content: ""; position: absolute; top: 15px; right: 28px; width: 1.5px; height: 16px; background: var(--ink);
  transform: rotate(45deg);
}

/* ---------------------------------------------------------------- Le bureau */
.studio { background: var(--paper-2); padding-block: clamp(72px, 10vw, 140px); border-top: 1px solid rgba(23, 53, 37, .12); }
.studio-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.studio-mark { position: sticky; top: calc(var(--header-h) + var(--frame) + 40px); }
.big-mark { width: 100%; max-width: 380px; color: var(--sapin); overflow: visible; }
.studio-text h2 { font: 300 clamp(2.3rem, 1.5rem + 2.8vw, 4rem)/1.04 var(--f-sans); margin-bottom: .5em; }
.studio-lead { font: 300 clamp(1.35rem, 1.1rem + .9vw, 1.9rem)/1.35 var(--f-sans); max-width: 26em; }
.studio-text > p { max-width: 36em; }
.sign { font: 1.7rem/1 var(--f-hand); color: var(--sapin-d); transform: rotate(-2deg); transform-origin: left; margin: 1.2em 0 2.4em; }
.for-title { font-size: 1.35rem; font-weight: 500; margin-bottom: 1em; }
.for { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; }
.for > div { border-top: 3px solid var(--ink); padding-top: 14px; }
.for dt { font-weight: 500; margin-bottom: .35em; line-height: 1.3; }
.for dd { margin: 0; font-size: 1rem; }

/* ---------------------------------------------------------------- Contact */
.contact {
  background: var(--ink); color: var(--paper);
  padding-block: clamp(72px, 10vw, 140px);
  --focus-ring: var(--paper);
}
.contact .sec-head p { color: var(--paper); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: start; }

.form-help { font-size: .95rem; color: var(--mist); margin-bottom: 1.6em; }
.req { color: var(--yellow); }
.field { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.field label, .field legend { display: block; font-weight: 500; font-size: 1rem; margin-bottom: 4px; padding: 0; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 2px;
  font: 400 1.08rem/1.4 var(--f-sans); color: var(--paper);
  background: transparent; border: 0; border-bottom: 1.5px solid var(--mist); border-radius: 0;
  transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(251, 240, 236, .5); }
.field input:hover, .field textarea:hover { border-bottom-color: var(--paper); }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--paper); background: rgba(251, 240, 236, .06); box-shadow: 0 2px 0 var(--paper); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-bottom-color: var(--err-dark); box-shadow: 0 2px 0 var(--err-dark); }
.err { min-height: 1.4em; margin: 6px 0 0; font-size: .92rem; color: var(--err-dark); }
.err:empty { min-height: 0; margin: 0; }
.field-foot { display: flex; justify-content: space-between; gap: 16px; }
.count { margin: 6px 0 0 auto; font-size: .85rem; color: var(--mist); font-variant-numeric: tabular-nums; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1.5px solid var(--mist); border-radius: 999px; font-size: 1rem;
  transition: background .2s, color .2s, border-color .2s;
}
.chip span::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid currentColor; flex: none;
  transition: background .2s;
}
.chip:hover span { border-color: var(--paper); }
.chip input:checked + span { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.chip input:checked + span::before { background: var(--sapin); border-color: var(--sapin); }
.chip input:focus-visible + span { outline: 2px solid var(--paper); outline-offset: 3px; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 8px; }
.contact .btn-solid { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.contact .btn-solid:hover { background: var(--mist); border-color: var(--mist); }
.form-note { margin: 0; font-size: .92rem; color: var(--mist); max-width: 24em; }
.form-status:empty { display: none; }
.form-status {
  margin-top: 24px; padding: 16px 18px; border-left: 3px solid var(--yellow); background: rgba(251, 240, 236, .07);
  font-size: 1rem;
}
.form-status.is-error { border-left-color: var(--err-dark); }
.form-status p { margin: 0 0 .5em; }
.form-status p:last-child { margin: 0; }

/* Cartouche (coordonnées) */
.cartouche { border: 1.5px solid var(--paper); }
.c-head { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-bottom: 1.5px solid var(--paper); }
.c-head .mark { width: 58px; color: var(--paper); flex: none; overflow: visible; }
.c-head p { margin: 0; font: 400 1rem/1.1 var(--f-sans); letter-spacing: .2em; text-transform: uppercase; }
.c-head p span { display: block; font-size: .72rem; letter-spacing: .3em; text-transform: none; margin-top: 4px; color: var(--mist); }
.c-grid { display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.c-cell { padding: 12px 20px; border-bottom: 1px solid rgba(251, 240, 236, .35); }
.c-wide { grid-column: 1 / -1; }
.c-cell:nth-last-child(-n+2) { border-bottom: 0; }
.c-cell:nth-last-child(2) { border-right: 1px solid rgba(251, 240, 236, .35); }
.c-cell dt { font-size: .8rem; color: var(--mist); margin-bottom: 2px; }
.c-cell dd { margin: 0; font-size: 1.08rem; line-height: 1.45; }
.c-cell a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.c-cell a:hover { text-decoration-thickness: 2px; }
.c-link, .copy { display: inline-flex; align-items: center; min-height: 40px; font-size: .95rem; }
.copy {
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--paper);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.copy:hover { text-decoration-thickness: 2px; }
.copy.done { color: var(--yellow); text-decoration: none; }

/* ---------------------------------------------------------------- Pied de page */
.site-footer { background: var(--ink); color: var(--mist); border-top: 1px solid rgba(251, 240, 236, .2); --focus-ring: var(--paper); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-block: 22px; font-size: .92rem; }
.foot p { margin: 0; }
.to-top { min-height: 44px; display: inline-flex; align-items: center; color: var(--paper); text-underline-offset: 3px; }

/* ---------------------------------------------------------------- Mini-cartouche (planche en cours, dans la marge du bas) */
.mini-cartouche { display: none; }
@media (min-width: 900px) {
  .mini-cartouche {
    position: fixed; z-index: 61; right: var(--frame); bottom: 0; height: var(--frame);
    display: flex; align-items: stretch; background: var(--paper);
    font-size: .7rem; line-height: 1; pointer-events: none; color: var(--ink);
  }
  .mini-cartouche > span { display: flex; align-items: center; padding: 0 12px; border-left: 1px solid var(--ink); }
  .mc-num { font-variant-numeric: tabular-nums; }
  .mc-num b { font-weight: 500; }
  .mc-name { min-width: 8.5em; }
}

/* ---------------------------------------------------------------- Intro */
.intro { display: none; }
.intro-on .intro {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--sapin); color: var(--paper);
  clip-path: inset(0 0 0 0);
  transition: clip-path .85s var(--ease);
  --focus-ring: var(--paper);
}
.intro-on body { overflow: hidden; }
.intro.out { clip-path: inset(0 0 100% 0); }
.intro-inner { display: grid; justify-items: center; gap: 28px; }
.intro-mark { width: min(210px, 44vw); overflow: visible; }
.intro-word {
  margin: 0; text-align: center; font: 300 clamp(1.3rem, 1rem + 1.4vw, 2rem)/1.1 var(--f-sans);
  letter-spacing: .22em; text-transform: uppercase; padding-left: .22em;
  opacity: 0; animation: introWord 1s var(--ease) 1.45s forwards;
}
.intro-word span { display: block; margin-top: 12px; font-size: .5em; letter-spacing: .5em; text-transform: none; }
.intro-skip {
  position: absolute; bottom: max(28px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  min-height: 44px; padding: 0 18px; background: none; color: var(--paper);
  border: 1.5px solid rgba(251, 240, 236, .6); border-radius: 2px; cursor: pointer; font-size: .95rem;
}
.intro-skip:hover { border-color: var(--paper); background: rgba(251, 240, 236, .1); }

.intro-mark .m-house, .intro-mark .m-bar, .intro-mark .m-v, .intro-mark .m-h {
  stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: draw var(--t, .5s) var(--ease) var(--d, 0s) forwards;
}
.intro-mark .m-v { --d: .1s; --t: .6s; }
.intro-mark .m-h { --d: .55s; --t: .45s; }
.intro-mark .m-house { --d: .7s; --t: .9s; }
.intro-mark .m-bar1 { --d: .95s; --t: .35s; }
.intro-mark .m-bar2 { --d: 1.05s; --t: .35s; }
.intro-mark .m-bar3 { --d: 1.15s; --t: .35s; }
.intro-mark .m-bar4 { --d: 1.25s; --t: .35s; }
.intro-mark .m-leaf, .intro-mark .m-dot {
  transform-box: fill-box; transform: scale(0); animation: pop .55s cubic-bezier(.3, 1.4, .5, 1) var(--d) forwards;
}
.intro-mark .m-leaf { transform-origin: 0% 100%; }
.intro-mark .m-leaf3 { transform-origin: 0% 60%; }
.intro-mark .m-dot { transform-origin: 50% 50%; }
.intro-mark .m-leaf1 { --d: 1.15s; }
.intro-mark .m-leaf2 { --d: 1.28s; }
.intro-mark .m-leaf3 { --d: 1.4s; }
.intro-mark .m-dot1 { --d: 1.3s; }
.intro-mark .m-dot2 { --d: 1.38s; }
.intro-mark .m-dot3 { --d: 1.46s; }
.intro-mark .m-dot4 { --d: 1.54s; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes pop { to { transform: scale(1); } }
@keyframes introWord { from { opacity: 0; letter-spacing: .6em; } to { opacity: 1; letter-spacing: .22em; } }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: none; } }

/* ---------------------------------------------------------------- Animations pilotées par JS */
/* Titre du hero : les mots montent, puis les traits d'union s'étirent */
.js .hero-title .w { transform: translateY(105%); }
.js .hero-title .hy { transform: scaleX(0); }
.go .hero-title .w { animation: rise .8s var(--ease) forwards; }
.go .hero-title .ln2 .w { animation-delay: .1s; }
.go .hero-title .ln3 .w { animation-delay: .2s; }
.go .hero-title .ln1 .hy { animation: grow .7s var(--ease) .55s both; }
.go .hero-title .ln2 .hy { animation: grow .7s var(--ease) .7s both; }

/* Façade : chaque trait se dessine */
.js .facade .dr { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.js .facade .fd { opacity: 0; }
.facade-wrap.on .facade .dr { animation: draw var(--t) var(--ease) calc(var(--d) + .25s) forwards; }
.facade-wrap.on .facade .fd { animation: fade .6s ease calc(var(--d) + .25s) forwards; }

/* Illustrations et lignes qui se dessinent à l'arrivée dans l'écran */
.js .draw-on-view .dr { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.js .draw-on-view .fd { opacity: 0; }
.draw-on-view.in-view .dr { animation: draw var(--t) var(--ease) var(--d) forwards; }
.draw-on-view.in-view .fd { animation: fade .5s ease var(--d) forwards; }
.js .svc h3::before { transform: scaleX(0); }
.svc-row.in-view .svc h3::before { animation: grow .9s var(--ease) forwards; }
.svc-row.in-view .svc:nth-child(2) h3::before { animation-delay: .35s; }
.svc-row.in-view .svc:nth-child(3) h3::before { animation-delay: .7s; }
.js .step::before { transform: scaleX(0); }
.steps.in-view .step::before { animation: grow .7s var(--ease) forwards; }
.steps.in-view .step:nth-child(2)::before { animation-delay: .25s; }
.steps.in-view .step:nth-child(3)::before { animation-delay: .5s; }
.steps.in-view .step:nth-child(4)::before { animation-delay: .75s; }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1100px) {
  .for { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 28px; gap: 28px; }
  .hero-title { font-size: clamp(3rem, 1.4rem + 7vw, 5.4rem); }
  .svc-row { grid-template-columns: 1fr; }
  .svc { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); column-gap: 28px; }
  .svc-ill { grid-row: span 4; align-self: start; }
  .svc h3::before { right: 0; }
  .studio-grid { grid-template-columns: 1fr; }
  .studio-mark { position: static; }
  .big-mark { max-width: 220px; }
  .contact-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .step:nth-child(2)::before { right: 28px; }
}

@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .svc { display: block; }
  .svc-ill { max-width: 320px; }
  .field-row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .step { padding: 0 0 36px 66px; }
  .step::before, .step:nth-child(2)::before { top: 46px; bottom: 0; left: 22px; right: auto; width: 1.5px; height: auto; transform-origin: top center; }
  .js .step::before { transform: scaleY(0); }
  .steps.in-view .step::before { animation-name: growY; }
  .step:last-child { padding-bottom: 0; }
  .step:last-child::before, .step:last-child::after { display: none; }
  .bubble { width: 44px; height: 44px; }
  .c-cell { padding: 12px 16px; }
  .legend { font-size: .88rem; gap: 6px 14px; }
}
@keyframes growY { from { transform: scaleY(0); } to { transform: none; } }

/* ---------------------------------------------------------------- Mouvement réduit : tout est affiché, rien ne bouge */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  .js .facade .dr, .js .draw-on-view .dr { stroke-dasharray: none; stroke-dashoffset: 0; }
  .js .facade .fd, .js .draw-on-view .fd { opacity: 1; }
  .js .hero-title .w, .js .hero-title .hy, .js .svc h3::before, .js .step::before { transform: none; }
  .replay { display: none; }
}
