/* SANTSCHI Menuiserie Agencement · feuille de style du site
   Basée sur la maquette A « Atelier » (lignes de cote).
   Couleurs et typographie tirées du logo : gris ardoise, barres corail, grotesque condensée. */

:root {
  --paper: #F1F1EE;
  --paper-2: #E7E8E4;
  --surface: #FAFAF8;
  --ink: #1F2425;
  --slate: #4E5454;
  --muted: #5A6162;
  --soft: #8B9192;
  --line: #CDD0CA;
  --line-strong: #B4B8B2;
  --coral: #FC724E;
  --coral-ink: #B4421E;
  --danger: #A3261B;

  --wrap: 1360px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 68px;
  --radius: 2px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--coral); color: var(--ink); }

.i { width: 1.1em; height: 1.1em; flex: none; fill: currentColor; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; text-decoration: none;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--coral-ink); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.display {
  font-stretch: 62%;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.005em;
}

.bar { display: block; width: 72px; height: 6px; background: var(--coral); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px;
  border: 1.5px solid transparent; border-radius: var(--radius);
  font-weight: 600; font-size: 15.5px; letter-spacing: 0.01em; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn .i { transition: transform 200ms var(--ease-out); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 14.5px; }
@media (hover: hover) and (pointer: fine) {
  .btn-ink:hover { background: #363D3E; }
  .btn-ink:hover .i { transform: translateX(3px); }
  .btn-line:hover { background: var(--ink); color: var(--paper); }
}

/* En-tête */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.site-header[data-scrolled="true"] { border-bottom-color: var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 32px; }
.brand { display: block; flex: none; }
.brand img { width: 132px; height: auto; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a, .header-phone {
  text-decoration: none; font-size: 15px; font-weight: 500; color: var(--slate);
  transition: color 160ms ease;
}
.nav a { position: relative; padding: 6px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--coral);
  transform: scaleX(0); transform-origin: left; transition: transform 240ms var(--ease-out);
}
.nav a[aria-current="true"] { color: var(--ink); }
.nav a[aria-current="true"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .nav a:hover, .header-phone:hover { color: var(--ink); }
}
.header-actions { display: flex; align-items: center; gap: 20px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.menu-toggle {
  display: none; align-items: center; gap: 8px; height: 42px; padding: 0 12px;
  background: none; border: 1.5px solid var(--ink); border-radius: var(--radius);
  font-weight: 600; font-size: 14.5px; cursor: pointer;
}
.menu-toggle:active { transform: scale(0.97); }
.menu-mobile { border-top: 1px solid var(--line); background: var(--paper); }
.menu-mobile nav { display: flex; flex-direction: column; padding-block: 12px 28px; }
.menu-mobile nav > a {
  font-stretch: 62%; font-weight: 700; text-transform: uppercase; font-size: 2.6rem; line-height: 1.1;
  text-decoration: none; padding: 6px 0; border-bottom: 1px solid var(--line);
}
.menu-mobile-contact { display: grid; gap: 6px; margin-top: 20px; color: var(--slate); }
.menu-mobile-contact a { text-decoration: none; }
.menu-mobile:not([hidden]) { animation: menu-in 220ms var(--ease-out); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } }

/* Accueil */
.hero { padding-block: clamp(28px, 5vh, 64px) clamp(56px, 9vh, 104px); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(28px, 4vw, 72px); align-items: end;
}
.hero-text { padding-bottom: clamp(72px, 13vh, 150px); container-type: inline-size; }
.hero-title { font-size: min(17.4cqi, 8.6rem); margin-top: 26px; }
.hero-title .line { display: block; white-space: nowrap; }
.hero-title .amp { color: #E8562F; }
.hero-lead { margin-top: 26px; max-width: 34ch; font-size: 1.1875rem; line-height: 1.55; color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-media { display: grid; grid-template-columns: 34px auto; gap: 12px 10px; }
.hero-media .cote:last-child { grid-column: 2; }
.hero-img { overflow: hidden; background: var(--paper-2); height: clamp(420px, calc(100dvh - 210px), 720px); aspect-ratio: 4 / 5; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }

/* Cote : ligne de dimension façon plan d'atelier, fil conducteur du « sur mesure » */
.cote {
  --cote-bg: var(--paper); --cote-c: var(--slate);
  position: relative; display: flex; align-items: center; justify-content: center; min-height: 34px; min-width: 0;
}
.cote::before {
  content: ""; position: absolute; inset: 0 -6px; pointer-events: none;
  background:
    linear-gradient(var(--cote-c), var(--cote-c)) 6px 50% / calc(100% - 12px) 1px no-repeat,
    linear-gradient(var(--cote-c), var(--cote-c)) 6px 0 / 1px 100% no-repeat,
    linear-gradient(var(--cote-c), var(--cote-c)) calc(100% - 6px) 0 / 1px 100% no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 13'%3E%3Cpath d='M1 12 12 1' stroke='%234E5454'/%3E%3C/svg%3E") 0 50% / 13px 13px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 13'%3E%3Cpath d='M1 12 12 1' stroke='%234E5454'/%3E%3C/svg%3E") 100% 50% / 13px 13px no-repeat;
}
.cote-label {
  position: relative; background: var(--cote-bg); padding: 0 10px;
  font-size: 14px; font-weight: 500; letter-spacing: 0.02em; line-height: 1.2; color: var(--slate); text-align: center;
}
.cote-v { min-height: 0; min-width: 34px; }
.cote-v::before {
  inset: -6px 0;
  background:
    linear-gradient(var(--cote-c), var(--cote-c)) 50% 6px / 1px calc(100% - 12px) no-repeat,
    linear-gradient(var(--cote-c), var(--cote-c)) 0 6px / 100% 1px no-repeat,
    linear-gradient(var(--cote-c), var(--cote-c)) 0 calc(100% - 6px) / 100% 1px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 13'%3E%3Cpath d='M1 12 12 1' stroke='%234E5454'/%3E%3C/svg%3E") 50% 0 / 13px 13px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 13'%3E%3Cpath d='M1 12 12 1' stroke='%234E5454'/%3E%3C/svg%3E") 50% 100% / 13px 13px no-repeat;
}
.cote-v .cote-label { writing-mode: vertical-rl; transform: rotate(180deg); padding: 10px 0; }
.cote-sm { min-height: 22px; }
.cote-sm .cote-label { font-size: 13px; padding: 0 8px; }

/* Sections */
.section { padding-block: clamp(72px, 11vw, 140px); }
.section-title { font-size: clamp(2.8rem, 6vw, 5.4rem); }

/* Services */
.services { border-top: 1px solid var(--line); }
.services-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px); margin-top: clamp(40px, 5vw, 64px); align-items: start;
}
.service {
  position: relative; padding: 30px 0 34px 28px; border-top: 1px solid var(--line);
  cursor: default; outline: none;
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service::before {
  content: ""; position: absolute; left: 0; top: 30px; bottom: 34px; width: 4px; background: var(--coral);
  transform: scaleY(0); transform-origin: top; transition: transform 320ms var(--ease-out);
}
.service.is-active::before { transform: scaleY(1); }
.service:focus-visible { outline: 2px solid var(--coral-ink); outline-offset: 4px; }
.service-name { font-size: clamp(2.4rem, 4.4vw, 4rem); color: var(--soft); transition: color 240ms ease; }
.service.is-active .service-name { color: var(--ink); }
.service p { margin-top: 14px; max-width: 54ch; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags li {
  font-size: 13.5px; font-weight: 500; padding: 5px 10px; border: 1px solid var(--line-strong);
  border-radius: var(--radius); color: var(--slate);
}
.service-img-inline { display: none; }
.services-figure { position: sticky; top: calc(var(--header-h) + 24px); display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px 10px; }
.services-figure .cote:last-child { grid-column: 2; }
.services-visual { position: relative; aspect-ratio: 3 / 4; max-height: calc(100dvh - var(--header-h) - 96px); width: 100%; background: var(--paper-2); overflow: hidden; }
.service-cote { display: none; margin-top: 10px; }
.services-visual img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04);
  transition: opacity 420ms ease, transform 900ms var(--ease-out);
}
.services-visual img.is-active { opacity: 1; transform: scale(1); }

/* Réalisations */
.work { background: var(--surface); border-block: 1px solid var(--line); }
.work-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; }
.work-intro { margin-top: 18px; color: var(--muted); max-width: 60ch; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
  background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-size: 14.5px; font-weight: 500; color: var(--slate); cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 160ms var(--ease-out);
}
.chip:active { transform: scale(0.97); }
.chip .count { font-size: 12.5px; color: var(--soft); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip[aria-pressed="true"] .count { color: #AEB4B4; }
@media (hover: hover) and (pointer: fine) {
  .chip[aria-pressed="false"]:hover { border-color: var(--ink); color: var(--ink); }
}

html:not(.js) .filters { display: none; }

/* Grille de projets : vignettes normales (1 colonne, 4:5) et larges (2 colonnes, même hauteur).
   La hauteur est calculée sur la largeur de colonne pour que les deux formats s'alignent. */
.work-grid {
  --cols: 3; --gx: clamp(16px, 2.4vw, 32px);
  container-type: inline-size;
  display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-auto-flow: dense;
  gap: clamp(28px, 3vw, 44px) var(--gx); margin-top: clamp(32px, 4vw, 48px);
}
.work-item { min-width: 0; }
.work-item.is-wide { grid-column: span 2; }
.work-item[hidden] { display: none; }
.work-item.is-entering { animation: tile-in 420ms var(--ease-out) both; }
@keyframes tile-in { from { opacity: 0; transform: translateY(10px); } }
.work-open {
  position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--paper-2);
  overflow: hidden; cursor: zoom-in; border-radius: var(--radius);
  aspect-ratio: 4 / 5;
}
@supports (height: 1cqi) {
  .work-open { aspect-ratio: auto; height: calc((100cqi - (var(--cols) - 1) * var(--gx)) / var(--cols) * 1.25); }
}
.work-open img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .work-open:hover img { transform: scale(1.03); }
}
.work-count, .work-tag {
  position: absolute; left: 10px; bottom: 10px;
  padding: 5px 9px; border-radius: var(--radius);
  background: color-mix(in srgb, var(--paper) 92%, transparent); color: var(--ink);
  font-size: 13px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.work-tag { left: auto; right: 10px; background: var(--coral); }
.form-shell .cote { --cote-bg: var(--surface); }
.work-caption { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; align-items: baseline; }
.work-title { font-weight: 600; font-size: 15.5px; line-height: 1.35; }
.work-cat { font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.work-more { display: flex; justify-content: center; margin-top: clamp(40px, 5vw, 64px); }
.work-more .count { color: var(--soft); font-weight: 500; margin-left: 4px; font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .work-more .btn:hover .count { color: #AEB4B4; } }

/* Sur mesure : le mot s'élargit jusqu'à remplir sa cote */
.fit { padding-block: clamp(72px, 10vw, 136px) 0; overflow-x: clip; --fit-end: 100%; }
.fit-word { display: block; width: max-content; margin-top: clamp(14px, 2vw, 24px); font-size: 12vw; line-height: 0.9; white-space: nowrap; font-stretch: var(--fit-end); }
.fit-text { margin-top: clamp(20px, 2.4vw, 32px); max-width: 52ch; font-size: 1.1875rem; line-height: 1.55; color: var(--muted); }
/* Animation déclenchée à l'entrée dans l'écran (classe .is-fit posée en JS),
   avec un léger rebond en fin de course, façon ressort. */
.fit { --spring: cubic-bezier(0.34, 1.3, 0.64, 1); }
@supports (animation-timing-function: linear(0, 1)) {
  .fit { --spring: linear(0, 0.049, 0.168, 0.319, 0.476, 0.624, 0.751, 0.854, 0.932, 0.988, 1.024, 1.044, 1.053, 1.054, 1.049, 1.042, 1.033, 1.025, 1.017, 1.011, 1.006, 1.002, 1, 0.998, 0.997, 0.997, 0.997, 0.997, 0.998, 0.998, 0.999, 0.999, 1); }
}
@keyframes fit-stretch { from { font-stretch: 62%; } to { font-stretch: var(--fit-end); } }
.motion .fit-word { font-stretch: 62%; }
.motion .fit-word.is-fit { animation: fit-stretch 1500ms var(--spring) both; }

/* Déroulement */
.steps-list {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(40px, 5vw, 64px);
}
.steps-list .cote-step { min-height: 46px; }
.steps-list h3 { font-size: 1.125rem; font-weight: 650; line-height: 1.2; font-stretch: 85%; color: var(--ink); }
.steps-list p { margin-top: 16px; padding-inline: 14px; color: var(--muted); font-size: 16px; }

/* Entreprise */
.about { background: var(--paper-2); }
.about .cote { --cote-bg: var(--paper-2); }
.about-grid {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 96px); align-items: end;
}
.about-media { background: var(--paper); overflow: hidden; border-radius: var(--radius); }
.about-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about-lead { margin-top: 28px; font-size: 1.3rem; line-height: 1.5; max-width: 42ch; }
.about-text > p:not(.about-lead) { margin-top: 18px; color: var(--muted); max-width: 60ch; }

.values {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(64px, 8vw, 112px);
}
.values .cote-step, .steps-list .cote-step { min-height: 46px; }
.values h3 { font-size: 1.125rem; font-weight: 650; line-height: 1.2; font-stretch: 85%; color: var(--ink); }
.values p { margin-top: 16px; padding-inline: 14px; color: var(--muted); font-size: 16px; max-width: 46ch; }

.founder {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px); align-items: center;
  margin-top: clamp(72px, 9vw, 128px);
}
.founder-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--paper); }
.founder-media figcaption { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--coral-ink); }
.founder-name { font-size: clamp(2.8rem, 6vw, 5.4rem); margin-top: 14px; }
.founder-text > p:not(.eyebrow) { margin-top: 24px; max-width: 54ch; font-size: 1.125rem; line-height: 1.55; color: var(--slate); }
.awards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 28px; margin-top: 40px; }
.awards .cote-label { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.award-title { margin-top: 14px; font-weight: 650; font-size: 1.0625rem; line-height: 1.3; }
.award-title sup { font-size: .7em; line-height: 0; }
.award-event { margin-top: 2px; color: var(--muted); font-size: 15px; }

.workshop { margin-top: clamp(72px, 9vw, 128px); }
.workshop-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; }
.workshop-title { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.workshop-head p { color: var(--muted); max-width: 46ch; }
.workshop-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px);
  margin-top: clamp(24px, 3vw, 36px);
}
.workshop-strip img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); background: var(--paper); }

.partners { margin-top: clamp(72px, 9vw, 128px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line-strong); }
.about-quote { max-width: 1040px; }
.about-quote p {
  font-size: clamp(2.1rem, 4.6vw, 4.2rem); text-transform: none; font-stretch: 70%; font-weight: 650; line-height: 1.02;
}
.about-quote p::before { content: "« "; color: var(--coral-ink); }
.about-quote p::after { content: " »"; color: var(--coral-ink); }
.partners-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px 32px; margin-top: 40px; }
.partners-list li { display: grid; gap: 2px; padding-top: 14px; border-top: 1px solid var(--line-strong); }
.partner-name { font-weight: 600; }
.partner-role { font-size: 14.5px; color: var(--muted); }
.about-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: clamp(40px, 5vw, 64px); }
.about-facts dt { font-size: 13.5px; color: var(--muted); }
.about-facts dd { margin-top: 4px; font-weight: 500; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
#contact-title { font-size: clamp(2.8rem, 4.8vw, 4.6rem); }
.contact-info > p { margin-top: 24px; color: var(--muted); max-width: 40ch; }
.contact-lines { margin-top: 32px; display: grid; gap: 14px; }
.contact-lines li { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.contact-lines .i { margin-top: 4px; color: var(--slate); }
.contact-lines a { text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line-strong); transition: border-color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .contact-lines a:hover { border-color: var(--ink); } }
.copy-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; margin-left: 2px;
  background: none; border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-size: 13px; color: var(--slate); cursor: pointer; transition: transform 160ms var(--ease-out);
}
.copy-btn:active { transform: scale(0.96); }
.copy-btn .i { margin: 0; width: 14px; height: 14px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 28px; margin-left: 30px;
  font-weight: 600; text-decoration: none; color: var(--coral-ink);
}
.link-arrow .i { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover .i { transform: translate(2px, -2px); } }

.form-shell { background: var(--surface); border: 1px solid var(--line); padding: clamp(20px, 3.4vw, 44px); border-radius: var(--radius); }
.form { display: grid; gap: 22px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.field { display: grid; gap: 8px; align-content: start; min-width: 0; border: 0; padding: 0; margin: 0; }
.field label, .field legend, .field .label { font-size: 14.5px; font-weight: 600; padding: 0; }
.opt { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: #FFFFFE; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  font: inherit; font-size: 16px; line-height: 1.45;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field ::placeholder { color: #7B8283; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(252, 114, 78, 0.38); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.error { font-size: 14px; color: var(--danger); font-weight: 500; }
.field-chips legend, .dims legend { margin-bottom: 10px; }
.row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.dim { display: grid; gap: 8px; min-width: 0; }
.dim .cote { font-weight: 400; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { position: relative; cursor: pointer; }
.chip-check input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip-check span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-size: 15px; font-weight: 500; background: #FFFFFE;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms var(--ease-out);
}
.chip-check input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip-check input:focus-visible + span { outline: 2px solid var(--coral-ink); outline-offset: 2px; }
.chip-check:active span { transform: scale(0.97); }
.file-drop {
  display: flex; align-items: center; gap: 12px; padding: 16px; cursor: pointer;
  border: 1px dashed var(--line-strong); border-radius: var(--radius); background: #FFFFFE;
  font-weight: 500 !important; font-size: 15px !important; transition: border-color 160ms ease, background-color 160ms ease;
}
.file-drop small { display: block; font-weight: 400; color: var(--muted); font-size: 13.5px; }
.file-drop .i { width: 22px; height: 22px; color: var(--slate); }
.file-drop.is-over, .file-drop:hover { border-color: var(--ink); }
#a-files:focus-visible + .file-list, .file-drop:focus-within { outline: 2px solid var(--coral-ink); }
.file-list { display: grid; gap: 6px; }
.file-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 10px 8px 12px; background: var(--paper); border-radius: var(--radius); font-size: 14.5px;
}
.file-list .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list .size { color: var(--muted); font-size: 13px; margin-left: 8px; }
.file-list button { background: none; border: 0; padding: 4px; cursor: pointer; color: var(--slate); display: inline-flex; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400 !important; font-size: 15px !important; line-height: 1.5; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-hint { font-size: 14px; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-submit[aria-busy="true"] { pointer-events: none; }
.btn-submit[aria-busy="true"] .btn-label::after { content: "…"; }
.btn-submit[aria-busy="true"] .i { animation: nudge 700ms var(--ease-in-out) infinite alternate; }
@keyframes nudge { to { transform: translateX(5px); } }

.form-success { padding-block: 24px; outline: none; }
.form-success:not([hidden]) { animation: tile-in 420ms var(--ease-out) both; }
.success-icon {
  display: inline-grid; place-items: center; width: 52px; height: 52px; background: var(--coral); color: var(--ink); border-radius: var(--radius);
}
.success-icon .i { width: 26px; height: 26px; }
.form-success h3 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin-top: 24px; }
.form-success p { margin-top: 14px; color: var(--muted); max-width: 46ch; }
.form-success .btn { margin-top: 28px; }

/* Pied de page */
.site-footer { border-top: 1px solid var(--line); padding-top: 56px; background: var(--paper); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1fr; gap: 32px; align-items: start; font-size: 15px; color: var(--slate); }
.footer-logo { width: 240px; }
.footer-grid a { text-decoration: none; }
.footer-nav { display: grid; gap: 6px; }
@media (hover: hover) and (pointer: fine) { .footer-grid a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; } }
.footer-bottom { margin-top: 48px; padding-bottom: 28px; font-size: 13.5px; color: var(--muted); }
.footer-bottom p { padding-top: 20px; border-top: 1px solid var(--line); }

/* Barre d'action mobile */
.action-bar { display: none; }

/* Visionneuse */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(22, 26, 27, 0.96); color: #EDEEEA;
  opacity: 0; transition: opacity 220ms ease, display 220ms allow-discrete, overlay 220ms allow-discrete;
}
.lightbox[open] { opacity: 1; display: grid; grid-template-rows: 1fr auto; }
@starting-style { .lightbox[open] { opacity: 0; } }
.lightbox::backdrop { background: transparent; }
.lb-stage { display: grid; place-items: center; padding: 24px 24px 8px; min-height: 0; }
.lb-img {
  max-width: 100%; max-height: calc(100dvh - 120px); width: auto; height: auto; object-fit: contain;
  transition: opacity 200ms ease, transform 280ms var(--ease-out);
}
.lb-img.is-swapping { opacity: 0; transform: scale(0.985); }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px 20px; }
.lb-caption { display: grid; gap: 2px; }
.lb-title { font-weight: 600; }
.lb-meta { font-size: 14px; color: #A9AFAF; }
.lb-controls { display: flex; align-items: center; gap: 6px; }
.lb-count { min-width: 56px; text-align: center; font-size: 14px; color: #A9AFAF; font-variant-numeric: tabular-nums; }
.lb-btn {
  display: inline-grid; place-items: center; width: 46px; height: 46px; padding: 0;
  background: rgba(255, 255, 255, 0.08); border: 0; border-radius: var(--radius); color: inherit; cursor: pointer;
  transition: background-color 160ms ease, transform 160ms var(--ease-out);
}
.lb-btn:active { transform: scale(0.95); }
.lb-btn .i { width: 22px; height: 22px; }
.lb-close { margin-left: 10px; }
@media (hover: hover) and (pointer: fine) { .lb-btn:hover { background: rgba(255, 255, 255, 0.16); } }

/* Apparition au défilement (activée seulement si JS et mouvement autorisé) */
.motion [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 640ms var(--ease-out), transform 640ms var(--ease-out); transition-delay: var(--d, 0ms); }
.motion [data-reveal].is-in { opacity: 1; transform: none; }

.motion .hero-img { clip-path: inset(100% 0 0 0); animation: wipe-up 1100ms var(--ease-in-out) 120ms forwards; }
.motion .hero-img img { transform: scale(1.08); animation: settle 1600ms var(--ease-out) 120ms forwards; }
.motion .cote::before { clip-path: inset(0 100% 0 0); transition: clip-path 900ms var(--ease-in-out); transition-delay: var(--d, 0ms); }
.motion .cote-v::before { clip-path: inset(100% 0 0 0); }
.motion .cote.is-drawn::before { clip-path: inset(0 0 0 0); }
.motion .cote-label { opacity: 0; transition: opacity 400ms ease 500ms; }
.motion .cote.is-drawn .cote-label { opacity: 1; }
.motion .hero-text > * { opacity: 0; transform: translateY(12px); animation: rise 700ms var(--ease-out) forwards; }
.motion .hero-text > :nth-child(1) { animation-delay: 80ms; }
.motion .hero-text > :nth-child(2) { animation-delay: 160ms; }
.motion .hero-text > :nth-child(3) { animation-delay: 260ms; }
.motion .hero-text > :nth-child(4) { animation-delay: 340ms; }
@keyframes wipe-up { to { clip-path: inset(0 0 0 0); } }
@keyframes settle { to { transform: scale(1); } }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
}

/* Tablette */
@media (max-width: 1080px) {
  .nav { gap: 20px; }
  .header-phone span { display: none; }
  .work-grid { --cols: 2; }
  .steps-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav, .header-actions .btn-sm { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; gap: 8px; }
  .header-phone { width: 42px; height: 42px; justify-content: center; border: 1.5px solid var(--line-strong); border-radius: var(--radius); }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-text { padding-bottom: 0; }
  .hero-media { grid-template-columns: 26px minmax(0, 1fr); gap: 10px 8px; }
  .hero-img { height: auto; width: 100%; }
  .hero { padding-top: 16px; }

  .services-grid { grid-template-columns: 1fr; }
  .services-figure { display: none; }
  .service-cote { display: flex; }
  .service { padding-left: 0; }
  .service::before { display: none; }
  .service-name { color: var(--ink); }
  .service-img-inline { display: block; margin-top: 22px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

  .about-grid, .contact-grid, .founder { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; row-gap: 32px; }
  .founder-media { max-width: 480px; }
}

/* Mobile */
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .brand img { width: 116px; }
  .hero-title { margin-top: 22px; }
  .hero-lead { font-size: 1.0625rem; }
  .hero-cta .btn { flex: 1 1 100%; }
  .work-grid { --gx: 12px; row-gap: 20px; }
  .work-count, .work-tag { left: 6px; bottom: 6px; padding: 4px 7px; font-size: 12px; }
  .work-tag { left: auto; right: 6px; }
  .work-caption { flex-direction: column; gap: 2px; margin-top: 8px; }
  .values p { padding-inline: 8px; }
  .awards { gap: 20px; }
  .workshop-strip {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  }
  .workshop-strip::-webkit-scrollbar { display: none; }
  .workshop-strip li { flex: 0 0 62%; scroll-snap-align: start; }
  .work-cat { font-size: 13px; }
  .work-title { font-size: 14.5px; }
  .fit { --fit-end: 78%; }
  .chip { min-height: 38px; padding: 0 12px; font-size: 14px; }
  .steps-list { grid-template-columns: 1fr; }
  .steps-list p { padding-inline: 8px; }
  .row-2 { grid-template-columns: 1fr; }
  .about-facts { grid-template-columns: 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .lb-bar { flex-direction: column; align-items: stretch; padding: 12px 16px 18px; }
  .lb-controls { justify-content: space-between; }
  .lb-stage { padding: 16px 8px 4px; }
  .link-arrow { margin-left: 0; }

  .action-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    display: grid; grid-template-columns: 1fr 1.5fr; gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--paper) 96%, transparent);
    border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform 320ms var(--ease-out);
  }
  .action-bar .btn { min-height: 48px; padding: 0 12px; }
  .action-bar.is-visible { transform: none; }
  .site-footer { padding-bottom: 76px; }
}

/* Page 404 */
.error-page { min-height: calc(100dvh - var(--header-h) - 120px); }
.error-cote { max-width: 420px; }
.error-cote .cote-label { font-weight: 600; color: var(--ink); }
.error-title { font-size: clamp(3rem, 9vw, 7.5rem); margin-top: 28px; max-width: 12ch; }
.error-text { margin-top: 24px; max-width: 46ch; font-size: 1.1875rem; color: var(--muted); }
.error-page .hero-cta { margin-top: 36px; }

/* Page légale */
.legal-actions { margin-left: auto; }
.legal-actions .btn { display: inline-flex; }
.legal { padding-top: clamp(40px, 6vw, 80px); }
.legal-wrap { max-width: 860px; }
.legal-title { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.legal-body { margin-top: 40px; }
.legal-body h2 { font-stretch: 62%; font-weight: 700; text-transform: uppercase; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1; margin-top: 64px; padding-top: 18px; border-top: 2px solid var(--ink); }
.legal-body h3 { font-size: 1.125rem; font-weight: 650; margin-top: 32px; }
.legal-body p { margin-top: 10px; color: var(--muted); max-width: 68ch; }
.legal-body a { color: var(--ink); }
.legal-body mark { background: rgba(252, 114, 78, 0.22); color: var(--ink); padding: 0 4px; border-radius: 2px; }
.legal-note { padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--coral); color: var(--ink) !important; }
.legal-date { margin-top: 48px !important; font-size: 14px; }
@media (max-width: 640px) { .legal-cta { display: none !important; } }
