/* ==========================================================================
   LAB Studio — feuille de style
   « Pensé, dessiné, fabriqué » : graphite, argent (le logo), cuivre pour
   les actions et bleu acier réservé aux lignes de construction.
   Sommaire : 1. Polices  2. Tokens & thèmes  3. Base  4. Mise en page
   5. Composants  6. En-tête / menu / pied  7. Accueil  8. Pages services
   9. Réalisations  10. Formulaires & devis  11. Pages texte  12. Animations
   13. Mouvement réduit & impression
   ========================================================================== */

/* 1. Polices (auto-hébergées, aucun appel à Google) ------------------------ */
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-latin-var.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-var.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-italic-400.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

/* 2. Tokens & thèmes -------------------------------------------------------- */
:root {
  color-scheme: dark;
  --bg: #0e0f11;
  --bg-2: #131417;
  --surface: #17191c;
  --surface-2: #1e2024;
  --line: #2a2d31;
  --line-2: #3a3e43;
  --text: #eceae6;
  --text-2: #c3c1bc;
  --muted: #9d9b96;
  --accent: #d4874f;
  --accent-2: #e8a877;
  --accent-ink: #e39a63;
  --accent-display: #d4874f;
  --on-accent: #140c06;
  --cyan: #8fc6d6;
  --cyan-soft: rgba(143, 198, 214, .18);
  --sketch: #a7a6a2;
  --wood: #c99a62;
  --wood-2: #9f7341;
  --burn: #3a2211;
  --steel: #84878c;
  --danger: #ff8a80;
  --success: #5ee0a0;
  --grid-1: rgba(236, 234, 230, .04);
  --grid-2: rgba(236, 234, 230, .075);
  --header-bg: rgba(14, 15, 17, .84);
  --shadow: 0 24px 48px -28px rgba(0, 0, 0, .75);
  --media-bg: #0b0c0e;

  --ff-display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-body: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-xs: .875rem;
  --fs-sm: clamp(.9375rem, .92rem + .1vw, 1rem);
  --fs-0: clamp(1rem, .97rem + .15vw, 1.0938rem);
  --fs-1: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem);
  --fs-2: clamp(1.3125rem, 1.15rem + .7vw, 1.75rem);
  --fs-3: clamp(1.75rem, 1.3rem + 2vw, 2.875rem);
  --fs-4: clamp(2.25rem, 1.45rem + 3.5vw, 4.25rem);
  --fs-hero: clamp(2.75rem, 1.2rem + 6.4vw, 6.25rem);

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1240px;
  --header-h: 68px;
  --radius: 6px;
  --section: clamp(4rem, 2.8rem + 5vw, 7.5rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --fil-top: #c2c4c6;
  --fil-l: #9a9c9f;
  --fil-r: #6c6e71;
  --fil-line: #e4e6e8;
  --fil-edge: rgba(15, 16, 18, .35);
  --metal-1: #f6f5f2;
  --metal-2: #a9a6a0;
  --metal-3: #ebe9e4;
  --metal-4: #8d8a84;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f3f0;
  --bg-2: #ecebe7;
  --surface: #fbfaf8;
  --surface-2: #ffffff;
  --line: #dddbd5;
  --line-2: #c7c4bd;
  --text: #141517;
  --text-2: #3a3d41;
  --muted: #5a5d61;
  --accent: #c9763d;
  --accent-2: #dc935f;
  --accent-ink: #97501f;
  --accent-display: #a65a26;
  --on-accent: #140c06;
  --cyan: #1f6f85;
  --cyan-soft: rgba(31, 111, 133, .14);
  --sketch: #63666b;
  --burn: #3a2211;
  --steel: #8a8d92;
  --danger: #b3261e;
  --success: #13795b;
  --grid-1: rgba(20, 21, 23, .05);
  --grid-2: rgba(20, 21, 23, .09);
  --header-bg: rgba(244, 243, 240, .86);
  --shadow: 0 24px 48px -30px rgba(25, 22, 18, .32);
  --media-bg: #e6e4df;
  --metal-1: #5a5c61;
  --metal-2: #141518;
  --metal-3: #4a4c51;
  --metal-4: #1e1f22;
}

/* 3. Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--ff-body);
  font-size: var(--fs-0);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: calc(68px + env(safe-area-inset-bottom));
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
@media (max-width: 899px) { html { scroll-padding-bottom: calc(84px + env(safe-area-inset-bottom)); } }
img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 650; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: var(--fs-4); font-weight: 700; letter-spacing: -.03em; }
h2 { font-size: var(--fs-3); }
h3 { font-size: var(--fs-2); line-height: 1.2; }
h4 { font-size: var(--fs-1); line-height: 1.25; }
p, ul, ol, dl { margin: 0 0 1rem; }
p { text-wrap: pretty; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--text); }
strong, b { font-weight: 600; }
small { font-size: var(--fs-xs); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap; border: 0 !important; }
.mono { font-family: var(--ff-mono); }
.muted { color: var(--muted); }
.accent { color: var(--accent-ink); }
.nowrap { white-space: nowrap; }

.skip-link {
  position: fixed; left: 1rem; top: -100px; z-index: 100;
  padding: .75rem 1rem; background: var(--accent); color: var(--on-accent);
  font: 600 1rem/1 var(--ff-display); border-radius: 4px; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .22s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .38s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* 4. Mise en page ----------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(820px + 2 * var(--gutter)); }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--line { border-top: 1px solid var(--line); }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section__head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); max-width: 760px; }
.section__head--split { max-width: none; }
@media (min-width: 900px) {
  .section__head--split { grid-template-columns: 1fr minmax(0, 420px); align-items: end; gap: 3rem; }
}
.section__head h2 { margin: 0; }
.section__head p { margin: 0; color: var(--text-2); font-size: var(--fs-1); }
.lead { font-size: var(--fs-1); color: var(--text-2); line-height: 1.55; max-width: 62ch; }
.grid-2 { display: grid; gap: clamp(1.5rem, 4vw, 4rem); }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; align-items: start; } .grid-2--center { align-items: center; } }
.stack > * + * { margin-top: 1rem; }

/* Fond « plan » : grille légère */
.blueprint {
  background-image:
    linear-gradient(var(--grid-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-2) 1px, transparent 1px),
    linear-gradient(var(--grid-1) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-1) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
}

/* 5. Composants -------------------------------------------------------------- */

/* Surtitre en mono */
.kicker {
  display: block;
  font: 500 var(--fs-xs)/1.3 var(--ff-mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 .25rem;
}
.kicker::before { content: ""; display: inline-block; vertical-align: middle; width: 20px; height: 1px; margin: -.15em .65em 0 0; background: var(--cyan); }
.kicker b { color: var(--cyan); font-weight: 500; }

/* Boutons à remplissage « couche par couche » */
.btn {
  --b-bg: transparent; --b-fg: var(--text); --b-bd: var(--line-2); --b-fill: var(--surface-2);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: .8em 1.35em;
  font: 600 1rem/1.15 var(--ff-display); letter-spacing: .005em; text-decoration: none; text-align: center;
  color: var(--b-fg); background: var(--b-bg); border: 1px solid var(--b-bd); border-radius: 4px;
  cursor: pointer; transition: color .25s, border-color .25s, transform .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: repeating-linear-gradient(0deg, var(--b-fill) 0 3px, color-mix(in srgb, var(--b-fill) 86%, #000) 3px 4px);
  transform: translateY(101%); transition: transform .42s steps(7, end);
}
.btn:hover { color: var(--b-fg); }
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:active { transform: translateY(1px); }
.btn .icon { width: 1.15em; height: 1.15em; transition: transform .25s var(--ease); }
.btn:hover .icon--arrow { transform: translateX(3px); }
.btn--primary { --b-bg: var(--accent); --b-fg: var(--on-accent); --b-bd: var(--accent); --b-fill: var(--accent-2); }
.btn--ghost { --b-fill: var(--surface-2); }
.btn--ghost:hover { --b-bd: var(--text-2); }
.btn--sm { min-height: 44px; padding: .55em 1em; font-size: .9375rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45em;
  font: 600 1rem/1.2 var(--ff-display); color: var(--text); text-decoration: none;
  min-height: 44px;
}
.link-arrow .icon { color: var(--accent); transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--accent-ink); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* Cartes avec repères de coupe */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.25rem, 2.5vw, 1.75rem);
}
.crop::after {
  --c: var(--line-2); --l: 10px;
  content: ""; position: absolute; inset: -7px; pointer-events: none;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) 1px,
    linear-gradient(var(--c), var(--c)) top left / 1px var(--l),
    linear-gradient(var(--c), var(--c)) top right / var(--l) 1px,
    linear-gradient(var(--c), var(--c)) top right / 1px var(--l),
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) 1px,
    linear-gradient(var(--c), var(--c)) bottom left / 1px var(--l),
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) 1px,
    linear-gradient(var(--c), var(--c)) bottom right / 1px var(--l);
  background-repeat: no-repeat;
  transition: inset .3s var(--ease);
}
.crop:hover::after, .crop:focus-within::after { --c: var(--cyan); inset: -10px; }

/* Étiquettes */
.tags { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; list-style: none; }
.tag {
  display: inline-flex; align-items: center; gap: .35em;
  font: 500 .8125rem/1 var(--ff-mono); letter-spacing: .02em;
  padding: .45em .65em; border: 1px solid var(--line-2); border-radius: 3px; color: var(--text-2);
}
.tag--accent { border-color: color-mix(in srgb, var(--accent) 55%, transparent); color: var(--accent-ink); }
.tag--cyan { border-color: color-mix(in srgb, var(--cyan) 55%, transparent); color: var(--cyan); }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; list-style: none; }
.chips li {
  padding: .55em .9em; border: 1px solid var(--line-2); border-radius: 999px;
  font-size: var(--fs-sm); color: var(--text-2); background: var(--surface);
}

/* Cote (ligne de dimension décorative) */
.cote { display: flex; align-items: center; gap: .6rem; color: var(--cyan); font: 400 .75rem/1 var(--ff-mono); letter-spacing: .06em; }
.cote::before, .cote::after {
  content: ""; flex: 1; height: 9px;
  background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
  border-inline: 1px solid currentColor; opacity: .7;
}
.cote::before { border-right: 0; }
.cote::after { border-left: 0; }

/* Liste à puces technique */
.list-check { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .65rem; }
.list-check li { position: relative; padding-left: 1.75rem; }
.list-check li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.list-x li::before { border: 0; width: 12px; height: 2px; top: .75em; background: var(--muted); transform: none; }

/* Encadrés */
.note {
  position: relative; padding: 1.25rem 1.25rem 1.25rem 1.5rem; border: 1px solid var(--line);
  border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0;
}
.note--cyan { border-left-color: var(--cyan); }
.note > :last-child { margin-bottom: 0; }
.note__title { display: flex; align-items: center; gap: .5rem; font: 600 var(--fs-1)/1.3 var(--ff-display); margin-bottom: .5rem; }

/* Étapes numérotées */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; counter-reset: step; }
@media (min-width: 900px) { .steps--grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 2rem; } }
.steps > li {
  counter-increment: step; position: relative; padding: 1.5rem 0 1.5rem 3.5rem; border-top: 1px solid var(--line);
}
.steps--grid > li { padding: 1.75rem 0 1rem; }
@media (max-width: 899px) { .steps--grid > li { padding: 1.5rem 0 1.5rem 3.5rem; } }
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 1.55rem;
  font: 500 .875rem/1 var(--ff-mono); color: var(--cyan); letter-spacing: .05em;
  padding: .4em .45em; border: 1px solid var(--cyan-soft); border-radius: 3px;
}
@media (min-width: 900px) { .steps--grid > li::before { position: static; display: inline-block; margin-bottom: 1rem; } }
.steps h3 { font-size: var(--fs-1); margin-bottom: .4rem; }
.steps p { color: var(--text-2); margin: 0; }

/* FAQ (details/summary) */
.faq { border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 1.15rem 3rem 1.15rem 0; min-height: 48px;
  font: 600 var(--fs-1)/1.35 var(--ff-display); color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .35rem; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  background: linear-gradient(var(--accent), var(--accent)) center / 100% 2px no-repeat,
              linear-gradient(var(--accent), var(--accent)) center / 2px 100% no-repeat;
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent-ink); }
.faq__a { padding: 0 0 1.4rem; color: var(--text-2); max-width: 72ch; }
.faq__a > :last-child { margin-bottom: 0; }
.faq-group + .faq-group { margin-top: 3rem; }
.faq-group h2 { font-size: var(--fs-2); margin-bottom: 1rem; }

/* Tableau responsive */
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th, .table td { text-align: left; vertical-align: top; padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
.table thead th { font: 500 .8125rem/1.2 var(--ff-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--bg-2); }
.table tbody tr:last-child > * { border-bottom: 0; }
.table tbody th { font: 600 1rem/1.3 var(--ff-display); color: var(--text); }
.table td { color: var(--text-2); }
.yes { color: var(--success); font-weight: 600; }
.no { color: var(--danger); font-weight: 600; }
.maybe { color: var(--accent-ink); font-weight: 600; }
@media (max-width: 720px) {
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table tr { display: block; padding: 1rem; border-bottom: 1px solid var(--line); }
  .table tbody tr:last-child { border-bottom: 0; }
  .table th, .table td { display: block; padding: .2rem 0; border: 0; }
  .table tbody th { margin-bottom: .35rem; }
  .table td::before { content: attr(data-label) " : "; font: 500 .8125rem/1.6 var(--ff-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
}

/* Fil d'Ariane */
.breadcrumb { margin-bottom: 1.5rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .35rem .5rem; list-style: none; padding: 0; margin: 0; font: 400 .875rem/1.4 var(--ff-mono); color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: var(--line-2); }
.breadcrumb a { color: var(--text-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-ink); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--text); }

/* Médias de remplacement (ratio documenté) */
.media { position: relative; overflow: hidden; background: var(--media-bg); border: 1px solid var(--line); border-radius: var(--radius); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--43 { aspect-ratio: 4 / 3; }
.media--169 { aspect-ratio: 16 / 9; }
.media--45 { aspect-ratio: 4 / 5; }
.media figcaption, figure > figcaption { font: 400 .875rem/1.4 var(--ff-mono); color: var(--muted); margin-top: .65rem; }

/* 6. En-tête, menu mobile, barre d'actions, pied de page -------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: var(--header-bg); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.3) blur(14px); backdrop-filter: saturate(1.3) blur(14px);
  view-transition-name: site-header;
}
.site-header > .container { height: 100%; display: flex; align-items: center; gap: .75rem; }
.logo { display: inline-flex; align-items: center; gap: .55rem; color: var(--text); text-decoration: none; min-height: 48px; margin-right: auto; }
.logo__mark { height: 50px; width: auto; aspect-ratio: 589 / 488; }
.logo__mark path { fill: url(#logo-metal); }
.logo__mark .m1 { stop-color: var(--metal-1); }
.logo__mark .m2 { stop-color: var(--metal-2); }
.logo__mark .m3 { stop-color: var(--metal-3); }
.logo__mark .m4 { stop-color: var(--metal-4); }
.logo__word { font: 500 .8125rem/1 var(--ff-display); letter-spacing: .3em; text-transform: uppercase; color: var(--text-2); padding-top: 1px; }
.logo:hover { color: var(--text); }
.logo:hover .logo__word { color: var(--text); }
@media (forced-colors: active) { .logo__mark path { fill: CanvasText; } }

.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: .15rem; list-style: none; padding: 0; margin: 0; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: .35rem; min-height: 48px; padding: 0 .8rem;
  font: 500 .9688rem/1 var(--ff-display); color: var(--text-2); text-decoration: none;
  background: none; border: 0; cursor: pointer;
}
.nav__link:hover, .nav__link[aria-expanded="true"] { color: var(--text); }
.nav__link[aria-current="page"], .nav__link.is-current { color: var(--text); }
.nav__link[aria-current="page"]::after, .nav__link.is-current::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: 12px; height: 1px;
  background: repeating-linear-gradient(90deg, var(--cyan) 0 4px, transparent 4px 7px);
}
.nav__link .icon { width: 14px; height: 14px; transition: transform .25s; }
.nav__link[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav__item { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 0; width: 560px;
  display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; padding: .5rem;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility 0s .2s;
}
.nav__item.is-open .dropdown, .no-js .nav__item:hover .dropdown, .no-js .nav__item:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s;
}
.dropdown a { display: grid; grid-template-columns: 40px 1fr; gap: .15rem .85rem; align-items: start; padding: .85rem; border-radius: 4px; text-decoration: none; color: var(--text); }
.dropdown a:hover, .dropdown a:focus-visible { background: var(--surface-2); }
.dropdown a[aria-current="page"] { background: var(--surface-2); }
.dropdown .icon { grid-row: span 2; width: 40px; height: 40px; padding: 9px; border: 1px solid var(--line-2); border-radius: 4px; color: var(--accent); }
.dropdown strong { font: 600 1rem/1.25 var(--ff-display); }
.dropdown span { font-size: .875rem; color: var(--muted); line-height: 1.4; }

.header-actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px; padding: 0;
  background: transparent; color: var(--text-2); border: 1px solid var(--line); border-radius: 4px; cursor: pointer;
  transition: color .2s, border-color .2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-2); }
.icon-btn .icon { width: 20px; height: 20px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: block; }
:root[data-theme="light"] .theme-toggle .i-moon { display: none; }
.header-cta { display: none; }
.menu-toggle {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 48px; padding: 0 .9rem;
  font: 600 .9375rem/1 var(--ff-display); color: var(--text); background: transparent; border: 1px solid var(--line-2); border-radius: 4px; cursor: pointer;
}
.menu-toggle__bars { position: relative; width: 18px; height: 12px; }
.menu-toggle__bars::before, .menu-toggle__bars::after, .menu-toggle__bars span {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .25s var(--ease), opacity .2s;
}
.menu-toggle__bars::before { top: 0; }
.menu-toggle__bars span { top: 5px; }
.menu-toggle__bars::after { top: 10px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span { opacity: 0; }
@media (min-width: 600px) { .header-cta { display: inline-flex; } }
@media (min-width: 1100px) {
  .nav { display: block; margin-left: auto; }
  .logo { margin-right: 0; }
  .menu-toggle { display: none; }
}

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; overflow-y: auto; overscroll-behavior: contain;
  padding: calc(var(--header-h) + 1.25rem) var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  background: var(--bg); display: flex; flex-direction: column; gap: 2rem;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.mobile-menu__list { list-style: none; padding: 0; margin: 0; display: grid; }
.mobile-menu__list a {
  display: flex; align-items: baseline; gap: 1rem; padding: .8rem 0; min-height: 48px;
  font: 600 clamp(1.5rem, 6vw, 2rem)/1.15 var(--ff-display); letter-spacing: -.02em; color: var(--text); text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mobile-menu__list a span { font: 400 .8125rem/1 var(--ff-mono); color: var(--cyan); min-width: 2ch; }
.mobile-menu__list a[aria-current="page"] { color: var(--accent-ink); }
.mobile-menu__services { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.mobile-menu__services a { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; min-height: 56px; border: 1px solid var(--line); border-radius: 4px; color: var(--text); text-decoration: none; font: 600 1.0625rem/1.2 var(--ff-display); background: var(--surface); }
.mobile-menu__services .icon { color: var(--accent); width: 22px; height: 22px; }
.mobile-menu__foot { display: grid; gap: .75rem; margin-top: auto; }
.mobile-menu__foot .btn-row > * { flex: 1 1 140px; }
@media (min-width: 1100px) { .mobile-menu { display: none; } }
.menu-open { overflow: hidden; }

.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
  padding: .55rem var(--gutter) calc(.55rem + env(safe-area-inset-bottom));
  background: var(--header-bg); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: transform .25s var(--ease);
}
.action-bar .btn { min-height: 50px; }
.is-typing .action-bar, .menu-open .action-bar { transform: translateY(110%); }
@media (min-width: 900px) { .action-bar { display: none; } }

.site-footer { position: relative; border-top: 1px solid var(--line); background: var(--bg-2); padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.footer-slogan { font: 700 var(--fs-4)/1 var(--ff-display); letter-spacing: -.035em; margin: 0 0 clamp(2rem, 5vw, 3.5rem); max-width: 14ch; }
.footer-slogan span:nth-child(1) { color: var(--sketch); font-weight: 400; }
.footer-slogan span:nth-child(2) { color: transparent; -webkit-text-stroke: 1.2px var(--cyan); }
.footer-slogan span:nth-child(3) { color: var(--accent-display); }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1fr 1fr 1.1fr 1.4fr; } }
.footer-col h2 { font: 500 var(--fs-xs)/1.3 var(--ff-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; }
.footer-col a { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; color: var(--text-2); text-decoration: none; }
.footer-col a:hover { color: var(--accent-ink); }
.footer-col .icon { color: var(--muted); }
.footer-col p { color: var(--text-2); }
.callback { display: grid; gap: .75rem; }
.callback__row { display: grid; gap: .75rem; }
@media (min-width: 480px) { .callback__row { grid-template-columns: 1fr 1fr; } }
.callback small { color: var(--muted); line-height: 1.45; }
.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between;
  font-size: var(--fs-xs); color: var(--muted);
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; list-style: none; padding: 0; margin: 0; }
.footer-bottom li { display: flex; align-items: center; min-height: 44px; }
.footer-bottom a { color: var(--text-2); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.footer-bottom a:hover { color: var(--accent-ink); text-decoration: underline; }
.cartouche {
  display: inline-grid; grid-auto-flow: column; border: 1px solid var(--line-2);
  font: 400 .6875rem/1 var(--ff-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.cartouche span { padding: .55em .8em; border-left: 1px solid var(--line-2); white-space: nowrap; }
.cartouche span:first-child { border-left: 0; color: var(--text-2); }
@media (max-width: 520px) { .cartouche span:nth-child(n+3) { display: none; } }

/* 7. Accueil ------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(1.25rem, 3vw, 2rem) clamp(3rem, 7vw, 6rem); border-bottom: 1px solid var(--line); }
.hero__cote { margin-bottom: clamp(1.5rem, 4vw, 3rem); }
.hero__grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (min-width: 980px) { .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); } }
.hero__title { font-size: var(--fs-hero); line-height: 1.04; letter-spacing: -.04em; margin: .9rem 0 1.5rem; }
.hero__title .w { display: block; width: fit-content; position: relative; }
.w--pense { color: var(--sketch); font-weight: 400; letter-spacing: -.03em; }
.w--pense svg { position: absolute; left: -2%; bottom: -.12em; width: 104%; height: .32em; overflow: visible; color: var(--sketch); }
.w--pense path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.w--dessine { color: var(--cyan); }
@supports (-webkit-text-stroke: 1px black) {
  .w--dessine { color: transparent; -webkit-text-stroke: 1.5px var(--cyan); }
}
.w--dessine .w__cote { position: absolute; left: 0; right: 0; top: -.32em; height: .2em; display: flex; align-items: center; }
.w--dessine .w__cote::before {
  content: ""; flex: 1; height: 100%;
  background: linear-gradient(var(--cyan), var(--cyan)) center / 100% 1px no-repeat;
  border-inline: 1px solid var(--cyan); transform-origin: left;
}
.w--fabrique {
  color: var(--accent-display);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) and (-webkit-text-stroke: 1px black) {
  .w--fabrique {
    color: transparent; -webkit-text-stroke: 1px var(--accent-display);
    background-image: repeating-linear-gradient(to top, var(--accent-display) 0 .075em, color-mix(in srgb, var(--accent-display) 72%, #000) .075em .09em);
    background-repeat: no-repeat; background-position: bottom; background-size: 100% 100%;
    -webkit-background-clip: text; background-clip: text;
  }
}
.hero__sub { font: 500 var(--fs-2)/1.3 var(--ff-display); letter-spacing: -.01em; color: var(--text); margin-bottom: .85rem; max-width: 30ch; }
.hero__text { color: var(--text-2); font-size: var(--fs-1); max-width: 52ch; margin-bottom: 2rem; }
.hero .btn-row { margin-bottom: 1.75rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font: 400 .875rem/1.4 var(--ff-mono); color: var(--muted); padding: 0; margin: 0; list-style: none; }
.hero__meta li { display: inline-flex; align-items: center; gap: .45rem; }
.hero__meta .icon { color: var(--cyan); width: 16px; height: 16px; }

/* Atelier animé (canvas) */
.fab { position: relative; aspect-ratio: 1 / 1; max-height: 640px; width: 100%; margin-inline: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
@media (max-width: 979px) { .fab { aspect-ratio: 4 / 3.4; } }
.fab canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.fab__fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.js .fab__fallback { display: none; }
.fab__hud {
  position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; gap: 1rem;
  padding: .85rem 1rem; pointer-events: none;
  font: 400 .75rem/1.5 var(--ff-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.fab__hud b { color: var(--text); font-weight: 500; }
.fab__hud .live { color: var(--accent-ink); }
.fab__phases { position: absolute; left: 1rem; bottom: .9rem; display: flex; gap: .35rem; list-style: none; padding: 0; margin: 0; font: 500 .75rem/1 var(--ff-mono); letter-spacing: .06em; text-transform: uppercase; }
.fab__phases li { padding: .5em .6em; border: 1px solid var(--line-2); border-radius: 3px; color: var(--muted); transition: color .3s, border-color .3s, background .3s; }
.fab__phases li.is-on { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.fab__phases li.is-done { color: var(--text-2); border-color: var(--line-2); }
.fab__replay {
  position: absolute; right: .75rem; bottom: .65rem; display: inline-flex; align-items: center; gap: .45rem;
  min-height: 44px; padding: 0 .8rem; font: 500 .8125rem/1 var(--ff-mono); letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-2); background: var(--surface); border: 1px solid var(--line-2); border-radius: 4px; cursor: pointer;
  opacity: 0; transition: opacity .3s, color .2s; pointer-events: none;
}
.fab.is-done .fab__replay { opacity: 1; pointer-events: auto; }
.fab__replay:hover { color: var(--text); }
.fab__coords { position: absolute; right: 1rem; top: 2.6rem; font: 400 .75rem/1.5 var(--ff-mono); color: var(--cyan); opacity: 0; transition: opacity .2s; pointer-events: none; text-align: right; }
.fab:hover .fab__coords { opacity: .9; }
@media (max-width: 520px) { .fab__phases li:not(.is-on) { display: none; } }

/* Cartes services */
.services-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 265px), 1fr)); }
.service-card { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; transition: background .3s, border-color .3s; }
.service-card:hover { background: var(--surface-2); border-color: var(--line-2); }
.service-card__num { font: 500 .8125rem/1 var(--ff-mono); color: var(--muted); letter-spacing: .06em; display: flex; justify-content: space-between; align-items: center; }
.service-card__num .icon { width: 26px; height: 26px; color: var(--accent); }
.service-card h3 { margin: 0; font-size: var(--fs-2); }
.service-card h3 a { color: inherit; text-decoration: none; }
.service-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.service-card p { color: var(--text-2); margin: 0; flex: 1; }
.service-card .link-arrow { margin-top: .25rem; }
.svc-anim { position: relative; height: 112px; border: 1px dashed var(--line-2); border-radius: 4px; overflow: hidden; background: var(--bg-2); }

/* — Mini-scènes isométriques « Impression 3D » et « Gravure laser » (générées : projection exacte) */
.svc-anim .iso { width: 100%; height: 100%; overflow: visible; }
.iso-bed { fill: var(--surface-2); stroke: var(--line-2); stroke-width: .8; }
.iso-bed-side { fill: var(--line-2); }
.iso-grid { fill: none; stroke: var(--line); stroke-width: .6; }
.iso-shadow { fill: rgba(0, 0, 0, .22); }
.iso-t { fill: var(--fil-top); }
.iso-l { fill: var(--fil-l); }
.iso-r { fill: var(--fil-r); }
.iso-l, .iso-r { stroke: var(--fil-edge); stroke-width: .5; }
.iso-fill { fill: none; stroke: var(--fil-line); stroke-width: 1.1; stroke-linecap: round; opacity: .9; }
.iso-ptfe, .iso-air { fill: none; stroke: rgba(235, 240, 244, .5); stroke-width: 1.5; stroke-linecap: round; }
.iso-carriage { fill: #262b30; stroke: #3d454d; stroke-width: .6; }
.iso-fan { fill: #15181b; stroke: #4a535c; stroke-width: .6; }
.iso-fins, .iso-airnozzle { fill: #9aa3ab; }
.iso-block { fill: #3a3f44; }
.iso-nozzle { fill: #d4a64a; }
.iso-hot { fill: rgba(255, 160, 90, .55); }
.iso-wood { fill: var(--wood); }
.iso-wood-l { fill: var(--wood-2); }
.iso-wood-r { fill: color-mix(in srgb, var(--wood-2) 72%, #000); }
.iso-ply { fill: none; stroke: rgba(70, 40, 15, .45); stroke-width: .6; }
.iso-grain { fill: none; stroke: rgba(110, 70, 30, .35); stroke-width: .7; }
.iso-knot { fill: none; stroke: rgba(95, 55, 20, .45); stroke-width: .6; }
.iso-scorch, .iso-burn { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.iso-scorch { stroke: rgba(90, 45, 15, .22); stroke-width: 3.4; }
.iso-burn { stroke: var(--burn); stroke-width: 1.6; stroke-linecap: butt; stroke-linejoin: miter; }
.iso-scorch.iso-thin { stroke-width: 2.4; }
.iso-burn.iso-thin { stroke-width: 1; }
.iso-beam { stroke: rgba(225, 242, 255, .95); stroke-width: .9; }
.iso-beam-glow { stroke: rgba(150, 190, 255, .28); stroke-width: 3.5; }
.iso-stripe { fill: var(--accent); }
.iso-glow { fill: rgba(255, 170, 90, .55); }
.iso-spot { fill: #fff; }
.iso-smoke { fill: rgba(200, 205, 210, .4); opacity: 0; transform-box: fill-box; transform-origin: center; }
.is-in .svc-anim--laser .iso-smoke, .service-card:hover .svc-anim--laser .iso-smoke { animation: iso-smoke 1s ease-out infinite; }
.svc-anim--laser .iso-smoke--2 { animation-delay: .5s; }
@keyframes iso-smoke { 0% { opacity: .6; transform: translate(0, 0) scale(.6); } 100% { opacity: 0; transform: translate(3px, -12px) scale(2.2); } }
@keyframes iso-l0 { 0%, 0% { opacity: 0; transform: translateY(-4px); } 2.86%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.is-in .svc-anim--3d .iso-layer:nth-of-type(1), .service-card:hover .svc-anim--3d .iso-layer:nth-of-type(1) { animation: iso-l0 4.2s linear infinite; }
@keyframes iso-l1 { 0%, 13.1% { opacity: 0; transform: translateY(-4px); } 15.95%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.is-in .svc-anim--3d .iso-layer:nth-of-type(2), .service-card:hover .svc-anim--3d .iso-layer:nth-of-type(2) { animation: iso-l1 4.2s linear infinite; }
@keyframes iso-l2 { 0%, 26.19% { opacity: 0; transform: translateY(-4px); } 29.05%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.is-in .svc-anim--3d .iso-layer:nth-of-type(3), .service-card:hover .svc-anim--3d .iso-layer:nth-of-type(3) { animation: iso-l2 4.2s linear infinite; }
@keyframes iso-l3 { 0%, 39.29% { opacity: 0; transform: translateY(-4px); } 42.14%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.is-in .svc-anim--3d .iso-layer:nth-of-type(4), .service-card:hover .svc-anim--3d .iso-layer:nth-of-type(4) { animation: iso-l3 4.2s linear infinite; }
@keyframes iso-l4 { 0%, 52.38% { opacity: 0; transform: translateY(-4px); } 55.24%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.is-in .svc-anim--3d .iso-layer:nth-of-type(5), .service-card:hover .svc-anim--3d .iso-layer:nth-of-type(5) { animation: iso-l4 4.2s linear infinite; }
@keyframes iso-l5 { 0%, 65.48% { opacity: 0; transform: translateY(-4px); } 68.33%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.is-in .svc-anim--3d .iso-layer:nth-of-type(6), .service-card:hover .svc-anim--3d .iso-layer:nth-of-type(6) { animation: iso-l5 4.2s linear infinite; }
@keyframes iso-head-path { 0% { transform: translate(120px, 36.6px); } 3.27% { transform: translate(145.2px, 51.1px); } 6.55% { transform: translate(120px, 65.7px); } 9.82% { transform: translate(94.8px, 51.1px); } 13.1% { transform: translate(120px, 36.6px); } 13.1% { transform: translate(120px, 33.7px); } 16.37% { transform: translate(145.2px, 48.3px); } 19.64% { transform: translate(120px, 62.8px); } 22.92% { transform: translate(94.8px, 48.3px); } 26.19% { transform: translate(120px, 33.7px); } 26.19% { transform: translate(120px, 30.9px); } 29.46% { transform: translate(145.2px, 45.4px); } 32.74% { transform: translate(120px, 60px); } 36.01% { transform: translate(94.8px, 45.4px); } 39.29% { transform: translate(120px, 30.9px); } 39.29% { transform: translate(120px, 28px); } 42.56% { transform: translate(145.2px, 42.6px); } 45.83% { transform: translate(120px, 57.1px); } 49.11% { transform: translate(94.8px, 42.6px); } 52.38% { transform: translate(120px, 28px); } 52.38% { transform: translate(120px, 25.1px); } 55.65% { transform: translate(145.2px, 39.7px); } 58.93% { transform: translate(120px, 54.3px); } 62.2% { transform: translate(94.8px, 39.7px); } 65.48% { transform: translate(120px, 25.1px); } 65.48% { transform: translate(120px, 22.3px); } 68.75% { transform: translate(145.2px, 36.8px); } 72.02% { transform: translate(120px, 51.4px); } 75.3% { transform: translate(94.8px, 36.8px); } 78.57% { transform: translate(120px, 22.3px); } 100% { transform: translate(120px, 22.3px); } }
@keyframes iso-head-vis { 0%, 78.57% { opacity: 1; } 82.14%, 100% { opacity: 0; } }
.is-in .svc-anim--3d .iso-head__move, .service-card:hover .svc-anim--3d .iso-head__move { animation: iso-head-path 4.2s linear infinite; }
.is-in .svc-anim--3d .iso-head, .service-card:hover .svc-anim--3d .iso-head { animation: iso-head-vis 4.2s linear infinite; }
.svc-anim--3d .iso-head__move { transform: translate(120px, 22.3px); }
.svc-anim--3d .iso-head { opacity: 0; }
@keyframes iso-laser-path { 0.00% { transform: translate(113.2px, 53.2px); } 0.71% { transform: translate(115.2px, 52.9px); } 1.42% { transform: translate(117.2px, 52.8px); } 2.16% { transform: translate(119.3px, 52.7px); } 2.87% { transform: translate(121.3px, 52.8px); } 3.61% { transform: translate(123.4px, 52.9px); } 4.32% { transform: translate(125.4px, 53.2px); } 5.00% { transform: translate(127.3px, 53.5px); } 5.69% { transform: translate(129.2px, 54px); } 6.39% { transform: translate(131.1px, 54.6px); } 7.03% { transform: translate(132.8px, 55.2px); } 7.64% { transform: translate(134.4px, 55.9px); } 8.24% { transform: translate(135.9px, 56.7px); } 8.83% { transform: translate(137.3px, 57.6px); } 9.39% { transform: translate(138.6px, 58.5px); } 9.91% { transform: translate(139.7px, 59.5px); } 10.41% { transform: translate(140.6px, 60.6px); } 10.89% { transform: translate(141.4px, 61.7px); } 11.33% { transform: translate(142px, 62.8px); } 11.79% { transform: translate(142.5px, 64px); } 12.19% { transform: translate(142.8px, 65.1px); } 12.62% { transform: translate(142.9px, 66.3px); } 13.04% { transform: translate(142.8px, 67.5px); } 13.48% { transform: translate(142.5px, 68.7px); } 13.89% { transform: translate(142.1px, 69.8px); } 13.90% { transform: translate(105.9px, 52px); } 18.30% { transform: translate(95.1px, 58.3px); } 22.37% { transform: translate(105.1px, 64.1px); } 22.38% { transform: translate(107px, 66px); } 28.31% { transform: translate(123.7px, 63.8px); } 31.95% { transform: translate(119.9px, 73.4px); } 31.96% { transform: translate(115.3px, 68.6px); } 32.45% { transform: translate(114.7px, 69.9px); } 33.10% { transform: translate(113.1px, 69px); } 33.89% { transform: translate(115.3px, 68.6px); } 33.90% { transform: translate(123.1px, 75.3px); } 38.33% { transform: translate(134px, 69px); } 41.96% { transform: translate(142.9px, 74.2px); } 41.96% { transform: translate(142.9px, 74.2px); } 42.19% { transform: translate(143.4px, 74.6px); } 42.36% { transform: translate(143.7px, 75px); } 42.55% { transform: translate(143.9px, 75.5px); } 42.74% { transform: translate(143.7px, 76px); } 42.95% { transform: translate(143.4px, 76.5px); } 43.17% { transform: translate(142.9px, 76.9px); } 43.33% { transform: translate(142.5px, 77.1px); } 43.60% { transform: translate(141.8px, 77.4px); } 43.89% { transform: translate(141px, 77.6px); } 44.21% { transform: translate(140.1px, 77.7px); } 44.49% { transform: translate(139.3px, 77.6px); } 44.79% { transform: translate(138.5px, 77.4px); } 45.05% { transform: translate(137.8px, 77.1px); } 48.67% { transform: translate(128.9px, 72px); } 48.68% { transform: translate(128.9px, 72px); } 52.29% { transform: translate(137.8px, 77.1px); } 52.29% { transform: translate(137.8px, 77.1px); } 52.51% { transform: translate(138.3px, 77.5px); } 52.72% { transform: translate(138.6px, 78px); } 52.91% { transform: translate(138.8px, 78.5px); } 53.10% { transform: translate(138.6px, 79px); } 53.27% { transform: translate(138.3px, 79.4px); } 53.50% { transform: translate(137.8px, 79.8px); } 53.66% { transform: translate(137.4px, 80px); } 53.94% { transform: translate(136.7px, 80.4px); } 54.22% { transform: translate(135.9px, 80.5px); } 54.54% { transform: translate(135px, 80.6px); } 54.83% { transform: translate(134.2px, 80.5px); } 55.11% { transform: translate(133.4px, 80.4px); } 55.40% { transform: translate(132.7px, 80px); } 59.01% { transform: translate(123.8px, 74.9px); } 59.02% { transform: translate(125.2px, 79.6px); } 59.72% { transform: translate(123.2px, 79.8px); } 60.43% { transform: translate(121.2px, 80px); } 61.17% { transform: translate(119.1px, 80px); } 61.87% { transform: translate(117.1px, 80px); } 62.62% { transform: translate(115px, 79.8px); } 63.33% { transform: translate(113px, 79.6px); } 64.01% { transform: translate(111.1px, 79.2px); } 64.70% { transform: translate(109.2px, 78.7px); } 65.40% { transform: translate(107.3px, 78.2px); } 66.03% { transform: translate(105.6px, 77.6px); } 66.66% { transform: translate(104px, 76.8px); } 67.26% { transform: translate(102.5px, 76px); } 67.83% { transform: translate(101.1px, 75.2px); } 68.41% { transform: translate(99.8px, 74.2px); } 68.93% { transform: translate(98.7px, 73.2px); } 69.41% { transform: translate(97.8px, 72.2px); } 69.89% { transform: translate(97px, 71.1px); } 70.36% { transform: translate(96.4px, 69.9px); } 70.78% { transform: translate(95.9px, 68.8px); } 71.22% { transform: translate(95.6px, 67.6px); } 71.64% { transform: translate(95.5px, 66.4px); } 72.07% { transform: translate(95.6px, 65.2px); } 72.47% { transform: translate(95.9px, 64.1px); } 72.92% { transform: translate(96.3px, 62.9px); } 100% { transform: translate(96.3px, 62.9px); } }
@keyframes iso-laser-vis { 0%, 72.92% { opacity: 1; } 77.08%, 100% { opacity: 0; } }
@keyframes iso-burn-0 { 0%, 0% { stroke-dashoffset: 1; } 13.89%, 100% { stroke-dashoffset: 0; } }
.is-in .svc-anim--laser .iso-b0, .service-card:hover .svc-anim--laser .iso-b0 { animation: iso-burn-0 4.8s linear infinite; }
@keyframes iso-burn-1 { 0%, 13.89% { stroke-dashoffset: 1; } 22.37%, 100% { stroke-dashoffset: 0; } }
.is-in .svc-anim--laser .iso-b1, .service-card:hover .svc-anim--laser .iso-b1 { animation: iso-burn-1 4.8s linear infinite; }
@keyframes iso-burn-2 { 0%, 22.37% { stroke-dashoffset: 1; } 31.95%, 100% { stroke-dashoffset: 0; } }
.is-in .svc-anim--laser .iso-b2, .service-card:hover .svc-anim--laser .iso-b2 { animation: iso-burn-2 4.8s linear infinite; }
@keyframes iso-burn-3 { 0%, 31.95% { stroke-dashoffset: 1; } 33.89%, 100% { stroke-dashoffset: 0; } }
.is-in .svc-anim--laser .iso-b3, .service-card:hover .svc-anim--laser .iso-b3 { animation: iso-burn-3 4.8s linear infinite; }
@keyframes iso-burn-4 { 0%, 33.89% { stroke-dashoffset: 1; } 48.67%, 100% { stroke-dashoffset: 0; } }
.is-in .svc-anim--laser .iso-b4, .service-card:hover .svc-anim--laser .iso-b4 { animation: iso-burn-4 4.8s linear infinite; }
@keyframes iso-burn-5 { 0%, 48.67% { stroke-dashoffset: 1; } 59.01%, 100% { stroke-dashoffset: 0; } }
.is-in .svc-anim--laser .iso-b5, .service-card:hover .svc-anim--laser .iso-b5 { animation: iso-burn-5 4.8s linear infinite; }
@keyframes iso-burn-6 { 0%, 59.01% { stroke-dashoffset: 1; } 72.92%, 100% { stroke-dashoffset: 0; } }
.is-in .svc-anim--laser .iso-b6, .service-card:hover .svc-anim--laser .iso-b6 { animation: iso-burn-6 4.8s linear infinite; }
.is-in .svc-anim--laser .iso-head__move, .service-card:hover .svc-anim--laser .iso-head__move { animation: iso-laser-path 4.8s linear infinite; }
.is-in .svc-anim--laser .iso-head, .service-card:hover .svc-anim--laser .iso-head { animation: iso-laser-vis 4.8s linear infinite; }
.svc-anim--laser .iso-head__move { transform: translate(96.3px, 62.9px); }
.svc-anim--laser .iso-head { opacity: 0; }

/* — Web : curseur de code */
.svc-anim--web { padding: 14px 16px; font: 400 .8125rem/1.65 var(--ff-mono); color: var(--text-2); }
.svc-anim--web .tok-tag { color: var(--cyan); }
.svc-anim--web .tok-str { color: var(--accent-ink); }
.svc-anim--web .typed { display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: bottom; width: 0; }
.svc-anim--web .caret { display: inline-block; width: .55em; height: 1.1em; vertical-align: -.2em; background: var(--accent); animation: blink 1s steps(2) infinite; }
.is-in .svc-anim--web .typed, .service-card:hover .svc-anim--web .typed { animation: type 3.6s steps(22) infinite; }
@keyframes type { 0% { width: 0; } 55%, 100% { width: 22ch; } }
@keyframes blink { 50% { opacity: 0; } }

/* — Dev : circuit */
.svc-anim--dev svg { width: 100%; height: 100%; }
.svc-anim--dev .trace { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.svc-anim--dev .pulse { fill: none; stroke: var(--cyan); stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: .12 .88; stroke-dashoffset: 1; opacity: 0; }
.svc-anim--dev .node { fill: var(--bg-2); stroke: var(--steel); stroke-width: 1.5; }
.svc-anim--dev .chip { fill: var(--surface-2); stroke: var(--accent); stroke-width: 1.5; }
.is-in .svc-anim--dev .pulse, .service-card:hover .svc-anim--dev .pulse { opacity: 1; animation: pulse 2.4s linear infinite; animation-delay: calc(var(--i) * .4s); }
@keyframes pulse { to { stroke-dashoffset: 0; } }

/* Les 3 temps (scrollytelling) */
.tt { display: grid; gap: 2rem; }
@media (min-width: 900px) { .tt { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 5rem); } }
.tt__figure { display: none; }
@media (min-width: 900px) {
  .tt__figure { display: block; position: sticky; top: calc(var(--header-h) + 2rem); height: min(72vh, 600px); }
  .tt__figure .fab { aspect-ratio: auto; height: 100%; max-height: none; }
}
.tt__steps { list-style: none; padding: 0; margin: 0; }
.tt__step { padding-block: 2rem; border-top: 1px solid var(--line); }
.tt__step:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 900px) {
  .tt__step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; border-top: 0; opacity: .65; transition: opacity .5s var(--ease); }
  .tt__step.is-active { opacity: 1; }
  .tt__mini { display: none; }
}
.tt__label { font: 500 .875rem/1 var(--ff-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); margin-bottom: 1rem; display: flex; gap: .75rem; align-items: center; }
.tt__label .icon { width: 22px; height: 22px; }
.tt__step h3 { font-size: var(--fs-3); margin-bottom: 1rem; }
.tt__step:nth-child(1) h3 { color: var(--sketch); font-weight: 400; }
.tt__step:nth-child(2) h3 { color: var(--cyan); }
.tt__step:nth-child(3) h3 { color: var(--accent-ink); }
.tt__step p { color: var(--text-2); font-size: var(--fs-1); max-width: 46ch; }
.tt__mini { position: relative; aspect-ratio: 4 / 3; margin-top: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.tt__mini canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Un seul interlocuteur */
.solo { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.solo > div { background: var(--surface); padding: 1.75rem 1.5rem; }
.solo .verb { font: 700 var(--fs-3)/1 var(--ff-display); letter-spacing: -.03em; margin: .75rem 0 .75rem; }
.solo .verb span { color: var(--accent); }
.solo p { color: var(--text-2); margin: 0; }
.solo .kicker::before { display: none; }

/* Bandeau maquette gratuite */
.promo { position: relative; display: grid; gap: 2rem; padding: clamp(1.75rem, 4vw, 3.5rem); border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
@media (min-width: 900px) { .promo { grid-template-columns: 1.2fr .8fr; align-items: center; } }
.promo h2 { margin-bottom: .75rem; }
.promo p { color: var(--text-2); font-size: var(--fs-1); }

/* Appel au devis */
.cta { text-align: left; display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .cta { grid-template-columns: 1fr auto; align-items: end; } }
.cta h2 { font-size: var(--fs-4); margin: 0; max-width: 16ch; }
.cta p { color: var(--text-2); font-size: var(--fs-1); margin: 1rem 0 0; max-width: 52ch; }

/* Avis / chiffres (masqués par défaut via config.js) */
.avis-grid, .stats-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.avis blockquote { margin: 0 0 1rem; font-size: var(--fs-1); }
.avis figcaption { font: 400 .875rem/1.4 var(--ff-mono); color: var(--muted); }
.stat b { display: block; font: 700 var(--fs-4)/1 var(--ff-display); color: var(--accent-display); }
.prices-list { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.prices-list .price { font: 600 var(--fs-2)/1.2 var(--ff-display); color: var(--accent-ink); }

/* 8. Pages services --------------------------------------------------------- */
.page-hero { position: relative; padding-block: clamp(1.5rem, 4vw, 2.5rem) clamp(3rem, 7vw, 5.5rem); border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero__grid { display: grid; gap: clamp(2rem, 4vw, 3rem); align-items: center; }
@media (min-width: 980px) { .page-hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.page-hero h1 { margin: .75rem 0 1.25rem; }
.page-hero .lead { margin-bottom: 2rem; }
.page-hero--simple .page-hero__grid { grid-template-columns: 1fr; }
.page-hero--simple h1 { max-width: 20ch; }
.visual-box { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); aspect-ratio: 1 / .9; overflow: hidden; }
.visual-box__label { position: absolute; left: 1rem; top: .85rem; font: 400 .75rem/1.4 var(--ff-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); z-index: 2; }
.visual-box__label b { color: var(--text); font-weight: 500; }

.feature-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.feature { display: flex; flex-direction: column; gap: .75rem; }
.feature .icon { width: 30px; height: 30px; color: var(--accent); }
.feature h3 { font-size: var(--fs-1); margin: 0; }
.feature p { color: var(--text-2); margin: 0; }
.feature ul { color: var(--text-2); margin: 0; padding-left: 1.1rem; }

.files { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.files .card h3 { font-size: var(--fs-1); }
.files .card p { color: var(--text-2); }
.formats { font: 500 .875rem/1.6 var(--ff-mono); color: var(--cyan); }

/* Rotation de la pièce (glisser, flèches) */
.fab canvas { cursor: grab; touch-action: pan-y; }
.fab.is-dragging canvas { cursor: grabbing; }
.fab canvas:focus-visible { outline: 2px solid var(--cyan); outline-offset: -4px; border-radius: var(--radius); }
.fab__hint { position: absolute; left: 1rem; bottom: 1.1rem; margin: 0; font: 400 .75rem/1.4 var(--ff-mono); letter-spacing: .04em; color: var(--muted); pointer-events: none; }
[data-fab="hero"] .fab__hint { left: auto; right: 1rem; bottom: 4.2rem; }
.tt__figure .fab__hint { left: auto; right: 1rem; }
@media (hover: none) { .fab__hint { display: none; } }


/* Maquette navigateur (web) */
.browser { position: absolute; inset: 9% 7%; display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.browser__bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.browser__url { margin-left: 10px; flex: 1; height: 18px; border-radius: 3px; background: var(--surface-2); font: 400 .6875rem/18px var(--ff-mono); color: var(--muted); padding-left: 8px; overflow: hidden; white-space: nowrap; }
.browser__page { flex: 1; display: grid; grid-template-rows: auto 1fr auto; gap: 10px; padding: 14px; }
.bk { border: 1px dashed var(--cyan); border-radius: 3px; background: transparent; transition: background .4s, border-color .4s; position: relative; }
.bk::after { content: attr(data-l); position: absolute; left: 6px; top: 4px; font: 400 .625rem/1 var(--ff-mono); color: var(--cyan); letter-spacing: .05em; }
.bk--nav { height: 22px; }
.bk--hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; border: 0; }
.bk--hero::after { display: none; }
.bk--title { min-height: 90px; }
.bk--img { min-height: 90px; }
.bk--cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border: 0; }
.bk--cards::after { display: none; }
.bk--card { height: 54px; }
.browser.is-built .bk { border-style: solid; border-color: var(--line); background: var(--surface-2); }
.browser.is-built .bk::after { color: transparent; }
.browser.is-built .bk--title { background: linear-gradient(var(--text) 0 0) 10px 14px / 70% 10px no-repeat, linear-gradient(var(--text-2) 0 0) 10px 32px / 52% 8px no-repeat, linear-gradient(var(--accent) 0 0) 10px 56px / 34% 20px no-repeat, var(--surface-2); }
.browser.is-built .bk--img { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 40%, var(--surface-2)), var(--surface-2)); }
.browser.is-built .bk--nav { background: linear-gradient(var(--accent) 0 0) 8px 50% / 26px 8px no-repeat, linear-gradient(var(--text-2) 0 0) right 8px top 50% / 40% 4px no-repeat, var(--surface-2); }
.browser .bk { transition-delay: calc(var(--d, 0) * .18s); }
.browser__stamp { position: absolute; right: 12px; bottom: 10px; font: 500 .6875rem/1 var(--ff-mono); letter-spacing: .08em; padding: .5em .6em; border: 1px solid var(--cyan); color: var(--cyan); border-radius: 3px; background: var(--surface); transition: color .3s, border-color .3s; }
.browser.is-built .browser__stamp { color: var(--accent-ink); border-color: var(--accent); }

/* Terminal (développement) */
.terminal { position: absolute; inset: 9% 6%; border: 1px solid var(--line-2); border-radius: 6px; background: #0b0d0f; color: #d7dce0; font: 400 clamp(.75rem, .7rem + .25vw, .875rem)/1.7 var(--ff-mono); overflow: hidden; box-shadow: var(--shadow); }
.terminal__bar { display: flex; gap: 6px; padding: 9px 12px; border-bottom: 1px solid #23282d; }
.terminal__bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a4148; }
.terminal__body { padding: 14px 16px; }
.terminal p { margin: 0; white-space: pre-wrap; opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; transition-delay: calc(var(--d) * .55s); }
.terminal.is-in p { opacity: 1; transform: none; }
.terminal .p { color: #e39a63; }
.terminal .c { color: #8fc6d6; }
.terminal .m { color: #8a939b; }
.terminal .k { color: #5ee0a0; }

/* 9. Réalisations --------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; padding: 0; list-style: none; }
.filter {
  min-height: 48px; padding: 0 1.1rem; font: 500 .9375rem/1 var(--ff-display);
  color: var(--text-2); background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer;
  transition: color .2s, background .2s, border-color .2s;
}
.filter:hover { color: var(--text); border-color: var(--text-2); }
.filter[aria-pressed="true"] { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.filter-count { font: 400 .875rem/1.4 var(--ff-mono); color: var(--muted); margin-bottom: 1.75rem; }
.projects { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); list-style: none; padding: 0; margin: 0; }
.projects--home { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.project { display: flex; flex-direction: column; padding: 0; }
.project__media { position: relative; aspect-ratio: 4 / 3; background: var(--media-bg); border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project:hover .project__media img { transform: scale(1.03); }
.project__zoom { position: absolute; right: .6rem; top: .6rem; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; color: #ece8e1; background: rgba(17, 19, 21, .72); border: 1px solid rgba(236, 232, 225, .2); border-radius: 4px; cursor: zoom-in; }
.project__zoom:hover { background: rgba(17, 19, 21, .9); }
.project__body { display: flex; flex-direction: column; gap: .7rem; padding: 1.25rem 1.25rem 1.4rem; flex: 1; }
.project__body h3 { font-size: var(--fs-1); margin: 0; }
.project__body h3 a { color: inherit; text-decoration: none; }
.project__body h3 a:hover { color: var(--accent-ink); }
.project__body p { color: var(--text-2); margin: 0; font-size: var(--fs-sm); flex: 1; }
.project__cat { font: 500 .75rem/1 var(--ff-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); }

.lightbox {
  width: min(1040px, calc(100vw - 2 * var(--gutter))); max-height: calc(100vh - 2rem); padding: 0;
  color: var(--text); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow);
}
.lightbox::backdrop { background: rgba(8, 9, 10, .82); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.lightbox[open] { animation: lb-in .3s var(--ease); }
@keyframes lb-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.lightbox__media { background: var(--media-bg); aspect-ratio: 4 / 3; max-height: 68vh; display: grid; place-items: center; }
.lightbox__media img { width: 100%; height: 100%; object-fit: contain; }
.lightbox__body { padding: 1.25rem 1.5rem 1.5rem; display: grid; gap: .5rem; }
.lightbox__body h2 { font-size: var(--fs-2); margin: 0; }
.lightbox__body p { margin: 0; color: var(--text-2); }
.lightbox__close { position: absolute; right: .75rem; top: .75rem; z-index: 2; background: rgba(17, 19, 21, .75); color: #ece8e1; border-color: rgba(236, 232, 225, .25); }

/* Fiche réalisation */
.case { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 980px) { .case { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.case__aside { display: grid; gap: 1rem; }
@media (min-width: 980px) { .case__aside { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.case__aside dl { display: grid; gap: .9rem; margin: 0; }
.case__aside dt { font: 500 .75rem/1.2 var(--ff-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.case__aside dd { margin: .2rem 0 0; color: var(--text); }
.csr { display: grid; gap: 0; counter-reset: csr; list-style: none; padding: 0; margin: 0; }
.csr > li { position: relative; padding: 1.75rem 0 1.75rem 0; border-top: 1px solid var(--line); }
.csr > li:first-child { border-top: 0; padding-top: 0; }
.csr h2 { font-size: var(--fs-2); display: flex; align-items: baseline; gap: .8rem; }
.csr h2 span { font: 500 .875rem/1 var(--ff-mono); color: var(--cyan); letter-spacing: .06em; }
.csr p, .csr li li { color: var(--text-2); }
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin: 0; padding: 0; list-style: none; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); }

/* Avant / après */
.ba { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--media-bg); --pos: 50%; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__after { clip-path: inset(0 0 0 var(--pos)); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--cyan); pointer-events: none; }
.ba__handle::after { content: "⟷"; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; display: grid; place-items: center; background: var(--bg); color: var(--cyan); border: 1px solid var(--cyan); border-radius: 50%; font: 500 1rem/1 var(--ff-mono); }
.ba input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba input[type="range"]:focus-visible + .ba__handle { box-shadow: 0 0 0 3px var(--cyan-soft); }
.ba__lbl { position: absolute; top: 13%; font: 500 .75rem/1 var(--ff-mono); letter-spacing: .08em; text-transform: uppercase; padding: .45em .6em; background: rgba(17, 19, 21, .78); color: #ece8e1; border-radius: 3px; pointer-events: none; }
.ba__lbl--l { left: .75rem; }
.ba__lbl--r { right: .75rem; }

/* 10. Formulaires & devis ----------------------------------------------------- */
.form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: .45rem; align-content: start; }
.field-row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.label, .field > label, legend { font: 600 1rem/1.35 var(--ff-display); color: var(--text); padding: 0; }
.label .opt, label .opt, legend .opt { font: 400 .8125rem/1 var(--ff-mono); color: var(--muted); margin-left: .35rem; letter-spacing: .02em; }
.hint { font-size: var(--fs-xs); color: var(--muted); margin: 0; line-height: 1.45; }
.fichiers { margin-top: .5rem; padding-top: 1.25rem; border-top: 1px dashed var(--line-2); }
.fichiers__titre { font-weight: 600; }
.fichiers__ajout { justify-self: start; cursor: pointer; }
.fichiers input:focus-visible + .fichiers__ajout { outline: 2px solid var(--accent); outline-offset: 2px; }
.fichiers__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.fichiers__liste:empty { display: none; }
.fichiers__liste li { display: flex; align-items: center; gap: .6rem; min-width: 0; padding: .5rem .65rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: var(--fs-sm); }
.fichiers__liste li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fichiers__liste small { color: var(--muted); font-family: var(--ff-mono); font-size: .8125rem; }
.fichiers__liste button { min-height: 32px; padding: .2rem .55rem; border: 1px solid var(--line-2); border-radius: var(--radius); background: none; color: var(--text-2); font: inherit; font-size: .8125rem; cursor: pointer; }
.fichiers__liste button:hover { color: var(--text); border-color: var(--text-2); }
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea {
  width: 100%; min-height: 50px; padding: .8rem .95rem;
  font: 400 1rem/1.4 var(--ff-body); color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 4px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
textarea { min-height: 130px; resize: vertical; }
select { appearance: none; -webkit-appearance: none; padding-right: 2.75rem; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: right 1.25rem top 52%, right .9rem top 52%; background-size: 6px 6px; background-repeat: no-repeat; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: var(--steel); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px var(--cyan-soft); background: var(--surface); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.field__error { display: flex; gap: .45rem; align-items: flex-start; color: var(--danger); font-size: .9375rem; line-height: 1.4; margin: 0; }
.field__error:empty { display: none; }
.field__error::before { content: "!"; flex: none; display: inline-grid; place-items: center; width: 1.2em; height: 1.2em; margin-top: .1em; border: 1.5px solid currentColor; border-radius: 50%; font: 700 .75rem/1 var(--ff-mono); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset > legend { margin-bottom: .75rem; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.check, .field > label.check { display: flex; gap: .8rem; align-items: flex-start; cursor: pointer; font: 400 var(--fs-sm)/1.5 var(--ff-body); color: var(--text-2); }
.check input { flex: none; width: 22px; height: 22px; margin: .1rem 0 0; accent-color: var(--accent); cursor: pointer; }
.choices { display: grid; gap: .65rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.choices--sm { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.choice { position: relative; display: block; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.choice__box {
  display: flex; align-items: center; gap: .85rem; height: 100%; min-height: 60px; padding: .9rem 1rem;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 5px; transition: border-color .2s, background .2s, box-shadow .2s;
}
.choice__box .icon { width: 28px; height: 28px; color: var(--accent); }
.choice__box strong { display: block; font: 600 1rem/1.25 var(--ff-display); color: var(--text); }
.choice__box small { display: block; color: var(--muted); font-size: .875rem; line-height: 1.35; margin-top: .15rem; }
.choice__box::after { content: ""; margin-left: auto; flex: none; width: 18px; height: 18px; border: 1.5px solid var(--line-2); border-radius: 50%; transition: border .2s, background .2s; }
.choice input[type="checkbox"] + .choice__box::after { border-radius: 3px; }
.choice:hover .choice__box { border-color: var(--steel); }
.choice input:checked + .choice__box { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); box-shadow: inset 0 0 0 1px var(--accent); }
.choice input:checked + .choice__box::after { border: 5px solid var(--accent); background: var(--on-accent); }
.choice input[type="checkbox"]:checked + .choice__box::after { border: 0; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4 9.5l3.2 3L14 5.5' fill='none' stroke='%2316110d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.choice input:focus-visible + .choice__box { outline: 2px solid var(--cyan); outline-offset: 2px; }
.choice--compact .choice__box { min-height: 52px; padding: .7rem .9rem; }
.choice--compact .choice__box strong { font-size: .9688rem; }

.devis { display: grid; gap: 2rem; }
@media (min-width: 1000px) { .devis { grid-template-columns: 260px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; } }
.progress { position: relative; }
@media (min-width: 1000px) { .progress { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.progress__bar { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; margin-bottom: 1rem; }
.progress__bar span { display: block; height: 100%; width: var(--p, 20%); background: repeating-linear-gradient(90deg, var(--accent) 0 10px, color-mix(in srgb, var(--accent) 75%, #000) 10px 12px); transition: width .45s var(--ease); }
.progress__steps { list-style: none; padding: 0; margin: 0; display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; }
.progress__steps::-webkit-scrollbar { display: none; }
@media (min-width: 1000px) { .progress__steps { flex-direction: column; gap: 0; } }
.progress__steps li { flex: none; display: flex; align-items: center; gap: .6rem; padding: .5rem .2rem; font: 500 .875rem/1.2 var(--ff-mono); color: var(--muted); }
.progress__steps li span:first-child { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line-2); border-radius: 3px; font-size: .75rem; flex: none; }
.progress__steps li .lbl { display: none; }
@media (min-width: 560px) { .progress__steps li .lbl { display: inline; } }
.progress__steps li[aria-current="step"] { color: var(--text); }
.progress__steps li[aria-current="step"] span:first-child { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.progress__steps li.is-done { color: var(--text-2); }
.progress__steps li.is-done span:first-child { border-color: var(--cyan); color: var(--cyan); }
@media (max-width: 559px) { .progress__steps li[aria-current="step"] .lbl { display: inline; } }
.devis__panel { min-width: 0; }
.step { display: grid; gap: 1.5rem; }
.step__head h2 { font-size: var(--fs-3); margin-bottom: .5rem; }
.step__head h2:focus { outline: none; }
.step__head p { color: var(--text-2); margin: 0; }
.step__nav { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.step__nav .btn--primary { margin-left: auto; }
.form-status { padding: 1rem 1.25rem; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--surface); }
.form-status:empty { display: none; }
.form-status--error { border-color: var(--danger); color: var(--text); }
.recap { display: grid; gap: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.recap__group { padding: 1.1rem 1.25rem; border-top: 1px solid var(--line); }
.recap__group:first-child { border-top: 0; }
.recap__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .5rem; }
.recap__head h3 { font: 500 .8125rem/1.2 var(--ff-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0; }
.recap__head button { min-height: 44px; padding: 0 .5rem; font: 600 .9375rem/1 var(--ff-display); color: var(--accent-ink); background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.recap dl { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: .35rem 1rem; margin: 0; }
.recap dt { color: var(--muted); font-size: var(--fs-sm); }
.recap dd { margin: 0; color: var(--text); word-break: break-word; white-space: pre-line; }
@media (max-width: 520px) { .recap dl { grid-template-columns: 1fr; } .recap dd { margin-bottom: .5rem; } }
.result { display: grid; gap: 1.25rem; padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); }
.result h2 { font-size: var(--fs-3); margin: 0; }
.result h2:focus { outline: none; }
.result p { color: var(--text-2); margin: 0; }
.result__icon { width: 56px; height: 56px; padding: 12px; border-radius: 50%; border: 1.5px solid var(--success); color: var(--success); }
.result--error .result__icon { border-color: var(--danger); color: var(--danger); }
.spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin-r .8s linear infinite; }
@keyframes spin-r { to { transform: rotate(360deg); } }
.is-loading .btn-label { opacity: .8; }

/* Contact & carte */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 980px) { .contact-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.contact-lines { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .75rem; }
.contact-lines > li > a, .contact-lines > li > span { display: flex; align-items: center; gap: .85rem; min-height: 56px; padding: .6rem 1rem; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--text); text-decoration: none; font: 600 var(--fs-1)/1.25 var(--ff-display); }
.contact-lines a:hover { border-color: var(--accent); color: var(--text); }
.contact-lines .icon { width: 22px; height: 22px; color: var(--accent); }
.contact-lines li > * > span { display: block; }
.contact-lines small { display: block; font: 400 .8125rem/1.3 var(--ff-mono); color: var(--muted); letter-spacing: .03em; }
.map-card { position: relative; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.map-card svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.2); }
.map-card__ui { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; }
.map-card__coords { font: 400 .75rem/1.4 var(--ff-mono); color: var(--cyan); background: var(--bg); padding: .45em .65em; border: 1px solid var(--line-2); border-radius: 3px; }

/* 11. Pages texte (légal, 404) ---------------------------------------------------- */
.prose { max-width: 75ch; }
.prose h2 { font-size: var(--fs-2); margin-top: 2.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.prose h3 { font-size: var(--fs-1); margin-top: 1.75rem; }
.prose p, .prose li { color: var(--text-2); }
.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: .35rem; }
.todo { display: inline; padding: .05em .4em; color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 10%, transparent); border: 1px dashed var(--accent); border-radius: 3px; font: 500 .9em/1.5 var(--ff-mono); }
.e404 { min-height: 70vh; display: grid; align-items: center; }
.e404__grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .e404__grid { grid-template-columns: 1fr 1fr; } }
.e404 .code { font: 700 clamp(5rem, 3rem + 10vw, 10rem)/.9 var(--ff-display); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px var(--cyan); margin: 0 0 1rem; }
.spaghetti path { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 4s var(--ease) forwards; }

/* 12. Animations d'apparition ---------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.draw path, .draw line, .draw rect, .draw circle { stroke-dasharray: 1; stroke-dashoffset: 1; }
.is-visible .draw path, .is-visible .draw line, .is-visible .draw rect, .is-visible .draw circle, .draw.is-visible path { animation: draw 1.6s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Séquence du titre d'accueil */
.hero.is-animating .w--pense path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.2s .25s var(--ease) forwards; }
.hero.is-animating .w--dessine .w__cote::before { animation: cote-in .9s 1.6s var(--ease) both; }
.hero.is-animating .w--fabrique { animation: fill-up 3.8s 3.2s steps(14, end) both; }
@keyframes cote-in { from { transform: scaleX(0); } }
@keyframes fill-up { from { background-size: 100% 0%; } to { background-size: 100% 100%; } }

/* Petits plus */
.scroll-hint { display: inline-flex; gap: .5rem; align-items: center; font: 400 .8125rem/1 var(--ff-mono); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.badge-soon { display: inline-flex; align-items: center; gap: .4rem; font: 500 .75rem/1 var(--ff-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); border: 1px dashed var(--cyan); padding: .45em .6em; border-radius: 3px; }

/* 13. Mouvement réduit & impression ------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .draw path, .draw line, .draw rect, .draw circle, .hero .w--pense path { stroke-dashoffset: 0 !important; }
  .svc-anim--web .typed { width: 22ch; }
  .svc-anim--dev .pulse { opacity: 1; stroke-dashoffset: .5; }
  .terminal p { opacity: 1; transform: none; }
  .tt__step { opacity: 1 !important; }
  .fab__replay { display: none !important; }
}
@media print {
  .site-header, .mobile-menu, .action-bar, .fab, .callback, .skip-link, .filters { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
  a { color: #000; }
}

/* Compléments ---------------------------------------------------------------- */
.no-js .filters, .no-js .filter-count, .no-js .theme-toggle, .no-js [data-theme-toggle], .no-js .fab__replay { display: none !important; }
.price { font: 600 var(--fs-2)/1.2 var(--ff-display); color: var(--accent-ink); margin: .5rem 0; }
.split-list { display: grid; gap: 2rem; }
@media (min-width: 900px) { .split-list { grid-template-columns: 1fr 1fr; } }
.pager { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; margin-top: 3rem; }
.pager a { display: grid; gap: .25rem; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: var(--text); font: 600 var(--fs-1)/1.25 var(--ff-display); }
.pager a span { font: 400 .8125rem/1.2 var(--ff-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.pager a:hover { border-color: var(--accent); }
.pager a:last-child { text-align: right; }
.time-head { margin-bottom: 1.5rem; }
.time-head h2 { margin: 0; font-size: var(--fs-4); letter-spacing: -.035em; }
.time-head--pense h2 { color: var(--sketch); font-weight: 400; }
.time-head--dessine h2 { color: var(--cyan); }
@supports (-webkit-text-stroke: 1px black) { .time-head--dessine h2 { color: transparent; -webkit-text-stroke: 1.3px var(--cyan); } }
.time-head--fabrique h2 { color: var(--accent-display); }
.time-block { padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.time-block:first-child { border-top: 0; padding-top: 0; }
.machine { display: grid; gap: .75rem; }
.machine h3 { font-size: var(--fs-1); margin: 0; }
.machine p { color: var(--text-2); margin: 0; }
.machine dl { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; margin: .5rem 0 0; font-size: var(--fs-sm); }
.machine dt { font: 500 .8125rem/1.5 var(--ff-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.machine dd { margin: 0; color: var(--text); }
.caption { font: 400 .8125rem/1.4 var(--ff-mono); color: var(--muted); margin-top: .75rem; }
.skills { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.skills h3 { font: 500 .8125rem/1.3 var(--ff-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .75rem; }
.values { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); counter-reset: v; }
.values .card h3 { font-size: var(--fs-1); }
.values .card p { color: var(--text-2); margin: 0; }
