/* =========================================================================
   Atelier Binaire — « le plan »
   Le site se présente comme un plan d'architecte : papier calque quadrillé,
   tirages bleus (cyanotypes), cotes, cartouche. Aucune dépendance.
   ========================================================================= */

:root {
  color-scheme: only light;
  --paper: #f2f4f1;          /* calque */
  --paper-2: #e7ebe6;
  --ink: #0f2340;            /* encre */
  --text: #23324a;
  --muted: #5a667a;
  --line: #2f5bd3;           /* trait de construction */
  --line-soft: rgba(47, 91, 211, 0.16);
  --red: #c7341b;            /* crayon de correction : annotations seulement */
  --cyan: #163a83;           /* tirage bleu */
  --cyan-2: #12306d;
  --on-cyan: #e8eefb;
  --on-cyan-muted: #b8c7e8;
  --ok: #1a8f4c;
  --mark: #ffe14d;
  --grid: rgba(47, 91, 211, 0.055);
  --grid-major: rgba(47, 91, 211, 0.1);
  --sans: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 76rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-io: cubic-bezier(0.7, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; overflow-x: hidden;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px), linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  color: var(--text);
  font-family: var(--sans); font-size: 1.08rem; line-height: 1.6; font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--line); color: #fff; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-family: var(--sans); color: var(--ink); }
h1 { font-size: clamp(2.9rem, 6.6vw, 5.8rem); font-weight: 800; font-stretch: 72%; line-height: 0.94; letter-spacing: -0.012em; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); font-weight: 760; font-stretch: 75%; line-height: 1; letter-spacing: -0.01em; }
h3 { font-size: 1.28rem; font-weight: 650; line-height: 1.22; letter-spacing: -0.005em; }
p { margin: 0 0 1em; max-width: 40rem; }
a { color: var(--line); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--line); outline-offset: 3px; }
.muted { color: var(--muted); }
.small { font-size: 0.95rem; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; padding: 0.75rem 1rem; background: var(--ink); color: #fff; }
.skip:focus { left: 0; }

ul.plain { margin: 0; padding: 0; list-style: none; }
ul.plain li { position: relative; padding: 0.3rem 0 0.3rem 1.6rem; }
ul.plain li::before { content: ""; position: absolute; left: 0.1rem; top: 0.95em; width: 0.8rem; height: 1px; background: var(--line); }
ul.plain li::after { content: ""; position: absolute; left: 0.8rem; top: calc(0.95em - 3px); width: 1px; height: 7px; background: var(--line); }
.cyan ul.plain li::before, .cyan ul.plain li::after { background: #fff; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.9em 1.5em;
  background: var(--ink); color: #fff; border: 0; border-radius: 3px;
  font-family: var(--sans); font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  box-shadow: 4px 4px 0 var(--line-soft);
  transition: background-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { background: var(--line); color: #fff; transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--line-soft); }
.btn:active { transform: none; box-shadow: 2px 2px 0 var(--line-soft); }
.btn--small { padding: 0.6em 1em; font-size: 0.94rem; box-shadow: none; }
.btn--small:hover { box-shadow: none; transform: none; }
.btn--light { background: #fff; color: var(--ink); box-shadow: 4px 4px 0 rgba(255, 255, 255, 0.18); }
.btn--light:hover { background: var(--mark); color: var(--ink); box-shadow: 6px 6px 0 rgba(255, 255, 255, 0.22); }
.textlink { display: inline; padding: 0; background: none; border: 0; font-family: var(--sans); font-weight: 650; font-size: 1rem; color: var(--line); text-decoration: underline; text-underline-offset: 0.25em; cursor: pointer; }

/* ---------- En-tête ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(242, 244, 241, 0.92); backdrop-filter: blur(10px); border-bottom: 1.5px solid var(--ink); }
.top__bar { display: flex; align-items: center; gap: 1rem; min-height: 4.1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; margin-right: auto; font-weight: 800; font-stretch: 80%; font-size: 1.35rem; letter-spacing: -0.005em; color: var(--ink); text-decoration: none; }
.brand::before { content: ""; flex: none; width: 1.05rem; height: 1.05rem; border: 2px solid var(--ink); background: linear-gradient(135deg, transparent 44%, var(--line) 44%, var(--line) 56%, transparent 56%); }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { font-weight: 600; font-size: 0.98rem; color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--line); }
.nav a[aria-current="page"]:not(.btn) { color: var(--line); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.45em; }
.nav .btn { color: #fff; }
.menu-btn { display: none; padding: 0.45rem 0.85rem; background: none; border: 1.5px solid var(--ink); border-radius: 3px; font-weight: 650; cursor: pointer; }

/* Interrupteur « Voir le plan » */
.plan-btn {
  display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.4rem 0.75rem 0.4rem 0.45rem;
  background: none; border: 1px dashed var(--line); border-radius: 3px; color: var(--line);
  font-family: var(--mono); font-size: 0.8rem; font-weight: 500; cursor: pointer; white-space: nowrap;
}
.plan-btn__switch { position: relative; flex: none; width: 1.9rem; height: 1.05rem; border: 1px solid var(--line); border-radius: 999px; }
.plan-btn__switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--line); transition: transform 0.25s var(--ease), background-color 0.25s; }
.plan-btn[aria-pressed="true"] { background: var(--line); color: #fff; border-style: solid; }
.plan-btn[aria-pressed="true"] .plan-btn__switch { border-color: #fff; }
.plan-btn[aria-pressed="true"] .plan-btn__switch::after { transform: translateX(0.85rem); background: #fff; }
html:not(.js) .plan-btn, html:not(.js) [data-plan-toggle] { display: none; }

@media (max-width: 68rem) {
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.25rem clamp(1.25rem, 4vw, 2.5rem) 1.5rem; background: var(--paper); border-bottom: 1.5px solid var(--ink); }
  .nav.is-open { display: flex; }
  html:not(.js) .menu-btn { display: none; }
  html:not(.js) .top__bar { flex-wrap: wrap; padding-block: 0.75rem; }
  html:not(.js) .nav { display: flex; position: static; flex-direction: row; flex-wrap: wrap; padding: 0; background: none; border: 0; }
}
@media (max-width: 26rem) { .plan-btn__label { display: none; } .plan-btn { padding-right: 0.45rem; } .brand { font-size: 1.2rem; } }

/* ---------- Sections ---------- */
.block { position: relative; padding-block: clamp(4.5rem, 9vw, 8rem); }
.block--tint { background-color: rgba(15, 35, 64, 0.035); border-block: 1px solid var(--line-soft); }
.cyan {
  background-color: var(--cyan); color: var(--on-cyan);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.11) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}
.cyan h1, .cyan h2, .cyan h3 { color: #fff; }
.cyan a:not(.btn) { color: #fff; }
.cyan :focus-visible { outline-color: var(--mark); }

/* En-tête de section : bulle de détail + titre + introduction */
.sechead { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 60rem) { .sechead { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 4rem; align-items: end; } }
.sechead__title { display: flex; align-items: flex-end; gap: 1.1rem; }
.sechead h2 { max-width: 15ch; }
.sechead p { margin: 0; color: var(--muted); font-size: 1.12rem; }
.cyan .sechead p { color: var(--on-cyan-muted); }
.bubble {
  flex: none; display: grid; grid-template-rows: 1fr 1fr; width: 3.1rem; height: 3.1rem; margin-bottom: 0.15rem;
  border: 1.5px solid currentColor; border-radius: 50%; color: var(--line); text-align: center;
  font-family: var(--mono); font-size: 0.78rem; line-height: 1; overflow: hidden;
}
.bubble b { display: grid; place-items: end center; padding-bottom: 0.18rem; border-bottom: 1.5px solid currentColor; font-weight: 500; }
.bubble i { display: grid; place-items: start center; padding-top: 0.22rem; font-style: normal; font-size: 0.66rem; }
.cyan .bubble { color: #fff; }
@media (max-width: 30rem) { .bubble { width: 2.6rem; height: 2.6rem; } .sechead__title { gap: 0.8rem; } }

/* ---------- Accroche ---------- */
.hero { position: relative; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(4rem, 8vw, 6.5rem); overflow: hidden; }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; align-items: start; }
@media (min-width: 64rem) { .hero__grid { grid-template-columns: minmax(0, 5.2fr) minmax(0, 6.8fr); gap: 4.5rem; align-items: center; } }
.hero h1 { max-width: 9.5ch; }
.lead { margin-top: 1.6rem; max-width: 33rem; font-size: 1.2rem; line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2.2rem; }

/* Réticule qui suit la souris (écrans avec souris uniquement) */
.crosshair { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s; }
.hero.is-pointing .crosshair { opacity: 1; }
.crosshair__x, .crosshair__y { position: absolute; background: rgba(47, 91, 211, 0.25); }
.crosshair__x { left: 0; right: 0; height: 1px; top: var(--cy, 50%); }
.crosshair__y { top: 0; bottom: 0; width: 1px; left: var(--cx, 50%); }
.crosshair__read { position: absolute; left: calc(var(--cx, 50%) + 10px); top: calc(var(--cy, 50%) + 10px); padding: 1px 6px; background: var(--paper); border: 1px solid var(--line-soft); font: 500 0.7rem/1.4 var(--mono); color: var(--line); white-space: nowrap; }
.hero .wrap { position: relative; z-index: 1; }
@media (hover: none), (pointer: coarse) { .crosshair { display: none; } }

/* ---------- Cadre de navigateur, maquettes ---------- */
.build { position: relative; margin: 0; }
.drawing { position: relative; padding: 2rem 0 0 2rem; }
.cote { position: absolute; display: flex; align-items: center; justify-content: center; font: 500 0.72rem/1 var(--mono); color: var(--red); pointer-events: none; transition: opacity 0.6s 0.2s; }
.cote--h { left: 2rem; right: 0; top: 0.45rem; height: 1rem; }
.cote--v { top: 2rem; bottom: 0; left: 0.35rem; width: 1rem; }
.cote--h::before, .cote--v::before { content: ""; position: absolute; background: currentColor; }
.cote--h::before { left: 0; right: 0; top: 50%; height: 1px; }
.cote--v::before { top: 0; bottom: 0; left: 50%; width: 1px; }
.cote--h::after, .cote--v::after { content: ""; position: absolute; border: solid currentColor; }
.cote--h::after { inset: 0; border-width: 0 1px; }
.cote--v::after { inset: 0; border-width: 1px 0; }
.cote span { position: relative; z-index: 1; padding: 0 0.45rem; background: var(--paper); }
.cote--v span { writing-mode: vertical-rl; transform: rotate(180deg); padding: 0.45rem 0; }
.animate .build:not(.is-drawn) .cote { opacity: 0; }

.frame { position: relative; background: #fff; border: 1.5px solid var(--ink); border-radius: 4px; overflow: hidden; box-shadow: 10px 10px 0 var(--line-soft); }
.frame__bar { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; padding: 0.5rem 0.75rem; border-bottom: 1.5px solid var(--ink); background: #fff; }
.frame__bar::before { content: ""; flex: none; width: 2.6rem; height: 0.6rem; background: radial-gradient(circle at 0.3rem 50%, var(--ink) 0.22rem, transparent 0.24rem), radial-gradient(circle at 1.3rem 50%, var(--ink) 0.22rem, transparent 0.24rem), radial-gradient(circle at 2.3rem 50%, var(--ink) 0.22rem, transparent 0.24rem); opacity: 0.25; }
.frame__url { flex: 1; min-width: 0; padding: 0.18rem 0.7rem; background: var(--paper-2); border-radius: 2px; font-family: var(--mono); font-size: 0.75rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frame__live { display: none; align-items: center; gap: 0.4rem; font-family: var(--mono); font-size: 0.75rem; font-weight: 500; color: var(--ok); white-space: nowrap; }
.frame__live::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--ok); }
html:not(.animate) .build .frame__live, .build.is-live .frame__live { display: inline-flex; }
.frame__body { position: relative; overflow: hidden; container-type: inline-size; aspect-ratio: 4 / 3.15; background: #fff; }

/* Mini-site fictif */
.demo {
  --d-bg: var(--p-bg); --d-ink: var(--p-ink); --d-acc: var(--p-acc); --d-tint: var(--p-tint); --d-skel: #dfe4eb;
  display: flex; flex-direction: column; gap: 1.3em; height: 100%; padding: 1.2em 1.6em;
  background: var(--d-bg); color: var(--d-ink);
  font-family: var(--d-font, system-ui, sans-serif); font-size: 11px; font-size: 3cqw; line-height: 1.3;
  transition: background-color 0.7s, color 0.7s, opacity 0.5s, transform 0.5s;
}
.demo__nav { display: flex; align-items: center; justify-content: space-between; gap: 1em; }
.demo__brand { font-size: 1.1em; font-weight: 700; }
.demo__links { display: flex; gap: 1.1em; font-size: 0.9em; }
.demo__hero { display: flex; flex-direction: column; align-items: flex-start; gap: 0.7em; padding-block: 0.8em; }
.demo__title { display: block; max-width: 13em; margin: 0; font-size: 2.2em; font-weight: 700; line-height: 1.06; }
.demo__lead { display: block; max-width: 26em; margin: 0; opacity: 0.85; }
.demo__btn { display: inline-block; padding: 0.55em 1.2em; border-radius: 999px; background: var(--d-acc); color: #fff; font-weight: 600; font-size: 0.95em; transition: background-color 0.7s, color 0.7s, box-shadow 0.7s; }
.demo[data-align="center"] .demo__hero { align-items: center; text-align: center; margin-inline: auto; }
.demo__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9em; margin-top: auto; }
.demo__img { aspect-ratio: 5 / 3; border-radius: 0.4em; background: linear-gradient(135deg, var(--d-acc), var(--d-tint)); transition: box-shadow 0.7s; }
.demo__tile:nth-child(2) .demo__img { background: linear-gradient(200deg, var(--d-tint), var(--d-acc)); }
.demo__tile:nth-child(3) .demo__img { background: linear-gradient(315deg, var(--d-acc), var(--d-tint) 70%); }
.demo__label { display: block; margin-top: 0.45em; font-weight: 600; font-size: 0.95em; }
.demo .t { transition: color 0.5s, background-color 0.5s; }

/* État « filaire » : le site dessiné avant d'être construit */
:is(.animate .build .demo:not(.is-colored), html.plan .demo, .slide:not(.is-active) .demo) {
  --d-bg: #f8faff; --d-ink: var(--line); --d-skel: rgba(47, 91, 211, 0.16);
  font-family: var(--mono);
}
:is(.animate .build .demo:not(.is-colored), html.plan .demo, .slide:not(.is-active) .demo) .demo__btn { background: transparent; color: var(--line); box-shadow: inset 0 0 0 1px var(--line); }
:is(.animate .build .demo:not(.is-colored), html.plan .demo, .slide:not(.is-active) .demo) .demo__img {
  background:
    linear-gradient(to top right, transparent calc(50% - 0.6px), rgba(47, 91, 211, 0.5) 50%, transparent calc(50% + 0.6px)),
    linear-gradient(to bottom right, transparent calc(50% - 0.6px), rgba(47, 91, 211, 0.5) 50%, transparent calc(50% + 0.6px));
  box-shadow: inset 0 0 0 1px var(--line);
}
.animate .build .demo { opacity: 0; transform: scale(0.985); }
.animate .build .demo.is-structure { opacity: 1; transform: none; }
.animate .build .demo:not(.is-written) .t { color: transparent; background: var(--d-skel); border-radius: 0.2em; user-select: none; }

.codepanel {
  position: absolute; inset: auto 0 0 0; height: 58%; overflow: hidden; padding: 1.1em 1.3em;
  background: var(--ink); color: #d6e1ff;
  font-family: var(--mono); font-size: 10px; font-size: 2.45cqw; line-height: 1.7;
  transform: translateY(102%); transition: transform 0.6s var(--ease);
}
.build.is-code .codepanel { transform: none; }
.codeline { display: block; white-space: pre; opacity: 0; }
.build.is-code .codeline { animation: show 0.01s forwards; animation-delay: calc(var(--n) * 0.32s + 0.5s); }
.c-tag { color: #8fb0ff; }
.c-attr { color: #b7c3dc; }
.c-str { color: var(--mark); }
@keyframes show { to { opacity: 1; } }

.checks {
  position: absolute; top: 50%; left: 50%; display: grid; gap: 0.5em; min-width: 14em; margin: 0; padding: 1em 1.5em; list-style: none;
  background: var(--ink); color: #fff; border-radius: 3px; box-shadow: 0.5em 0.5em 0 var(--line-soft);
  font-family: var(--mono); font-size: 11px; font-size: 2.9cqw;
  opacity: 0; transform: translate(-50%, -46%); transition: opacity 0.4s, transform 0.4s;
}
.build.is-checks .checks { opacity: 1; transform: translate(-50%, -50%); }
.checks li { opacity: 0; }
.checks li::before { content: "✓"; margin-right: 0.6em; color: #7be0a0; }
.build.is-checks .checks li { animation: show 0.01s forwards; animation-delay: calc(var(--n) * 0.45s + 0.3s); }

/* Repères d'annotation sur la maquette de l'accroche */
.pins { position: absolute; inset: 0; pointer-events: none; }
.pin {
  position: absolute; left: var(--x, 50%); top: var(--y, 50%); display: grid; place-items: center; width: 1.6rem; height: 1.6rem; margin: -0.8rem 0 0 -0.8rem;
  background: var(--red); color: #fff; border-radius: 50%; font: 500 0.75rem/1 var(--mono);
  box-shadow: 0 0 0 4px rgba(199, 52, 27, 0.2); transform: scale(0); transition: transform 0.4s var(--ease);
  transition-delay: calc(var(--n) * 0.15s);
}
.build.is-annotated:not(.is-code):not(.is-checks) .pin, html:not(.animate) .build .pin { transform: scale(1); }
.legend { display: grid; gap: 0.35rem; margin: 1.1rem 0 0; padding: 0; list-style: none; counter-reset: pin; font-size: 0.95rem; }
.legend li { counter-increment: pin; display: flex; gap: 0.6rem; align-items: baseline; color: var(--text); opacity: 0.35; transition: opacity 0.5s; }
.legend li::before { content: counter(pin); flex: none; display: grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--red); color: #fff; font: 500 0.68rem/1 var(--mono); transform: translateY(0.15rem); }
.build.is-annotated .legend li, html:not(.animate) .legend li { opacity: 1; }

/* Étapes sous la simulation */
.steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.4rem; margin: 1.25rem 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 0.55rem; border-top: 3px solid var(--line-soft); font-size: 0.8rem; font-weight: 600; line-height: 1.2; color: var(--muted); transition: color 0.4s, border-color 0.4s; }
.steps li::before { content: counter(step, decimal-leading-zero) " "; font-family: var(--mono); font-weight: 400; }
.steps li.is-done { border-color: var(--ink); color: var(--ink); }
.steps li.is-current { border-color: var(--line); color: var(--line); }
@media (max-width: 36rem) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 0.9rem; } }
.build__caption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1rem; margin-top: 0.9rem; font-size: 0.95rem; color: var(--muted); }

/* ---------- Règle graduée qui défile (secteurs) ---------- */
.marquee {
  position: relative; overflow: hidden; padding-block: 1.3rem 1.9rem; background-color: #fff; border-block: 1.5px solid var(--ink);
  background-image: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 10px), repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 50px);
  background-size: 100% 6px, 100% 12px; background-position: 0 100%, 0 100%; background-repeat: no-repeat;
}
.marquee__track { display: flex; width: max-content; animation: marquee 52s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee ul { display: flex; flex: none; margin: 0; padding: 0; list-style: none; }
.marquee li { display: flex; align-items: center; gap: 2.2rem; padding-right: 2.2rem; font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 700; font-stretch: 75%; color: var(--ink); white-space: nowrap; }
.marquee li::after { content: "+"; font-family: var(--mono); font-weight: 400; font-size: 1rem; color: var(--line); }
@keyframes marquee { to { transform: translateX(-50%); } }
html:not(.animate) .marquee__track { animation: none; width: auto; }
html:not(.animate) .marquee ul[aria-hidden] { display: none; }
html:not(.animate) .marquee ul { flex-wrap: wrap; row-gap: 0.5rem; justify-content: center; }

/* ---------- Carrousel ---------- */
.slider { position: relative; }
.slider__viewport { overflow: hidden; touch-action: pan-y; cursor: grab; padding: 0 12px 14px 0; }
.slider__viewport.is-dragging { cursor: grabbing; }
.slider__track { display: flex; gap: clamp(1rem, 3vw, 2rem); transition: transform 0.8s var(--ease-io); will-change: transform; }
.slider__viewport.is-dragging .slider__track { transition: none; }
.slide { flex: 0 0 100%; min-width: 0; user-select: none; transition: opacity 0.6s, transform 0.8s var(--ease-io); }
.slide .frame { pointer-events: none; }
.slider--peek .slide { flex-basis: min(80%, 46rem); opacity: 0.6; transform: scale(0.94); cursor: pointer; }
.slider--peek .slide.is-active { opacity: 1; transform: none; cursor: inherit; }
.slide__caption { display: grid; gap: 0.3rem; margin-top: 1.2rem; }
.slide__sector { margin: 0; font-family: var(--mono); font-size: 0.82rem; color: var(--red); }
.slide__caption h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
.slider--full .slide { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem; align-items: center; }
@media (min-width: 60rem) { .slider--full .slide { grid-template-columns: minmax(0, 7fr) minmax(0, 4.6fr); gap: 3.5rem; } }
.slider--full .slide__caption { margin: 0; gap: 0.8rem; }
.slider--full .slide__caption h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 760; font-stretch: 78%; line-height: 1.05; }
.slider--full .slide:not(.is-active) .slide__caption > * { opacity: 0; transform: translateY(14px); }
.slider--full .slide__caption > * { transition: opacity 0.6s 0.35s, transform 0.6s 0.35s var(--ease); }
.slider--full .slide__caption > *:nth-child(2) { transition-delay: 0.45s; }
.slider--full .slide__caption > *:nth-child(3) { transition-delay: 0.55s; }
.slider__controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; margin-top: 1.5rem; }
.slider--peek .slider__controls { justify-content: center; }
.slider__dots { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.slider__dot { position: relative; width: 2.8rem; height: 1.6rem; padding: 0; background: none; border: 0; cursor: pointer; }
.slider__dot::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; background: var(--line-soft); }
.slider__fill { position: absolute; left: 0; top: 50%; height: 3px; width: 0; margin-top: -1.5px; background: var(--ink); }
.slider__dot[aria-current="true"] .slider__fill { width: 100%; }
.slider.is-playing .slider__dot[aria-current="true"] .slider__fill { width: 0; animation: fill var(--slide-ms, 6000ms) linear forwards; }
.slider.is-paused .slider__fill { animation-play-state: paused !important; }
@keyframes fill { to { width: 100%; } }
.slider__nav { display: flex; gap: 0.5rem; }
.slider__btn { display: grid; place-items: center; width: 3rem; height: 3rem; padding: 0; background: #fff; border: 1.5px solid var(--ink); border-radius: 3px; color: var(--ink); cursor: pointer; transition: background-color 0.2s, color 0.2s, transform 0.2s var(--ease); }
.slider__btn:hover { background: var(--ink); color: #fff; }
.slider__btn:active { transform: scale(0.94); }
.slider__btn svg { width: 1.15rem; height: 1.15rem; }
.slider__status { margin: 0; font-family: var(--mono); font-size: 0.9rem; color: var(--muted); min-width: 4rem; }

/* ---------- Accueil : tailles en plans d'étage ---------- */
.scale { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; }
@media (min-width: 56rem) { .scale { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1.9fr); gap: 2.5rem; align-items: end; } }
.dots { display: grid; grid-template-columns: repeat(var(--cols, 6), 1.55rem); width: max-content; max-width: 100%; margin-bottom: 1.4rem; border: 2px solid var(--ink); background: #fff; }
.dots span { aspect-ratio: 1; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); transition: background-color 0.4s; transition-delay: calc(var(--k, 0) * 14ms); }
.dots span:first-child { background: var(--line); }
.reveal .scale__item:not(.is-in) .dots span:not(:first-child) { background: rgba(47, 91, 211, 0.18); }
.scale__item h3 { margin-bottom: 0.4rem; font-size: 1.55rem; font-weight: 760; font-stretch: 80%; }
.scale__item p { margin-bottom: 0; font-size: 1.02rem; }
.scale__meta { display: block; margin-bottom: 0.3rem; font-family: var(--mono); font-size: 0.8rem; color: var(--red); }

/* Atouts */
.why { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
@media (min-width: 48rem) { .why { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.why__item { position: relative; padding-top: 1.6rem; }
.why__item::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--ink); transform-origin: left; transition: transform 1s var(--ease) 0.15s; }
.reveal .why__item:not(.is-in)::before { transform: scaleX(0); }
.why__item h3 { margin-bottom: 0.5rem; font-size: 1.55rem; font-weight: 760; font-stretch: 80%; }
.why__item p { margin: 0; }
.more { margin: 2.75rem 0 0; }

/* Bande d'appel */
.cta { padding-block: clamp(4rem, 9vw, 7rem); }
.cta__inner { display: grid; gap: 1.75rem; }
@media (min-width: 52rem) { .cta__inner { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 3rem; } }
.cta h2 { max-width: 16ch; font-size: clamp(2.4rem, 5vw, 4rem); }
.cta p { margin: 1rem 0 0; color: var(--on-cyan-muted); font-size: 1.15rem; }

/* ---------- En-tête des pages intérieures ---------- */
.pagehead { position: relative; padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 7vw, 5.5rem); border-bottom: 1.5px solid var(--ink); }
.pagehead__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
@media (min-width: 60rem) { .pagehead__grid { grid-template-columns: minmax(0, 8fr) minmax(0, 3.4fr); gap: 4rem; align-items: end; } }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.6rem; padding: 0; list-style: none; font-family: var(--mono); font-size: 0.82rem; color: var(--on-cyan-muted); }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; opacity: 0.6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.pagehead h1 { max-width: 13ch; }
.pagehead .lead { margin: 1.5rem 0 0; color: var(--on-cyan-muted); }
.sheet { margin: 0; padding: 1rem 1.1rem; border: 1.5px solid rgba(255, 255, 255, 0.55); }
.sheet__num { margin: 0 0 0.9rem; padding-bottom: 0.8rem; border-bottom: 1px solid rgba(255, 255, 255, 0.3); font-family: var(--mono); font-size: 0.8rem; color: var(--on-cyan-muted); }
.sheet__num strong { display: block; margin-top: 0.2rem; font-family: var(--sans); font-size: 1.6rem; font-weight: 760; font-stretch: 75%; color: #fff; }
.sheet ul { display: grid; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.sheet a { font-weight: 600; text-decoration: none; }
.sheet a:hover { text-decoration: underline; }
.pagehead--short h1 { max-width: 20ch; font-size: clamp(2.4rem, 5vw, 4rem); }

/* ---------- Services ---------- */
.services { border-top: 1.5px solid var(--ink); }
.service { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; padding-block: 2.6rem; border-bottom: 1px solid var(--line-soft); }
@media (min-width: 56rem) { .service { grid-template-columns: 5rem minmax(0, 6fr) minmax(0, 5fr); gap: 2.5rem; } }
.service::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--line); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease); }
.service:hover::after { transform: scaleX(1); }
.service__icon { width: 4.2rem; height: 4.2rem; color: var(--ink); transition: transform 0.5s var(--ease), color 0.3s; }
.service:hover .service__icon { transform: translateY(-4px) rotate(-4deg); color: var(--line); }
.service__title { margin-bottom: 0.4rem; font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 760; font-stretch: 78%; line-height: 1.05; }
.service__metaphor { margin-bottom: 0.9rem; font-family: var(--mono); font-size: 0.82rem; color: var(--red); }
.service p { margin-bottom: 0.6rem; }
.service__for { font-size: 1rem; color: var(--muted); }
.service__sub { margin: 0 0 0.6rem; font-size: 1rem; font-weight: 650; color: var(--muted); }
.included { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 3rem; }
@media (min-width: 44rem) { .included { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Méthode : la construction suit le défilement ---------- */
.method { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; }
@media (min-width: 62rem) {
  .method { grid-template-columns: minmax(0, 5.6fr) minmax(0, 6.4fr); gap: 4.5rem; }
  .method__figure { position: sticky; top: 6.5rem; align-self: start; order: 2; }
}
.method__stage { margin: 1rem 0 0; font-family: var(--mono); font-size: 0.85rem; color: var(--red); min-height: 1.4em; }
.timeline { position: relative; margin: 0; padding: 0; list-style: none; counter-reset: etape; }
.timeline::before { content: ""; position: absolute; left: 1.25rem; top: 1.25rem; bottom: 1.25rem; width: 2px; background: var(--line-soft); }
.timeline__bar { position: absolute; left: 1.25rem; top: 1.25rem; width: 2px; height: 0; background: var(--line); transition: height 0.25s linear; }
.timeline li { counter-increment: etape; position: relative; padding: 0 0 3.4rem 4rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: counter(etape, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 2.5rem; height: 2.5rem; display: grid; place-items: center;
  background: var(--paper); border: 1.5px solid var(--line-soft); border-radius: 50%;
  font-family: var(--mono); font-size: 0.8rem; color: var(--muted); transition: border-color 0.3s, color 0.3s, background-color 0.3s;
}
.timeline li.is-reached::before { border-color: var(--line); color: #fff; background: var(--line); }
.timeline__web { display: block; margin: 0.1rem 0 0.25rem; font-family: var(--mono); font-size: 0.8rem; color: var(--red); }
.timeline h3 { margin: 0 0 0.45rem; font-size: 1.65rem; font-weight: 760; font-stretch: 80%; }
.timeline p { margin: 0 0 0.5rem; max-width: 34rem; }
.timeline .timeline__you { font-size: 0.98rem; color: var(--muted); }
.timeline__you strong { color: var(--ink); }

/* Rapport de contrôle */
.term { max-width: 40rem; margin: 0; padding: 1.25rem 1.4rem; background: var(--ink); color: #dbe4f5; border-radius: 3px; box-shadow: 10px 10px 0 var(--line-soft); font-family: var(--mono); font-size: 0.84rem; line-height: 1.55; }
.term__line { display: grid; grid-template-columns: 1.2rem minmax(0, 11rem) minmax(0, 1fr); gap: 0.25rem 0.5rem; padding-block: 0.15rem; }
.term__line--cmd { display: block; margin-bottom: 0.4rem; }
.term__dim { color: #8a98b3; }
.term__ok { color: #7be0a0; }
.term__warn { color: var(--mark); }
@media (max-width: 34rem) { .term__line { grid-template-columns: 1.2rem minmax(0, 1fr); } .term__line .term__dim:last-child { grid-column: 2; } }

.two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
@media (min-width: 60rem) { .two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: start; } }
.two h3 { margin-bottom: 0.6rem; }

/* ---------- Exemples : comparateur avant / après ---------- */
.compare-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: center; }
@media (min-width: 60rem) { .compare-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4.6fr); gap: 3.5rem; } }
.compare-grid h3 { margin-bottom: 0.75rem; }
.compare { margin: 0; --pos: 50%; }
.compare .frame__body { aspect-ratio: auto; }
.compare__stage { position: relative; container-type: inline-size; aspect-ratio: 4 / 3.15; overflow: hidden; background: #fff; touch-action: pan-y; cursor: ew-resize; user-select: none; }
.compare__layer { position: absolute; inset: 0; }
.compare__after { clip-path: inset(0 0 0 var(--pos)); }
html.plan .compare__after .demo { --d-bg: var(--p-bg); --d-ink: var(--p-ink); font-family: var(--d-font); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--red); pointer-events: none; }
.compare__handle::after { content: "↔"; position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; background: var(--red); color: #fff; border-radius: 50%; font-size: 1.1rem; }
.compare__tag { position: absolute; bottom: 0.8rem; z-index: 2; padding: 0.2rem 0.6rem; background: var(--ink); color: #fff; font-family: var(--mono); font-size: 0.75rem; pointer-events: none; }
.compare__tag--before { left: 0.8rem; }
.compare__tag--after { right: 0.8rem; }
.compare__range { display: block; width: 100%; margin: 1.1rem 0 0; accent-color: var(--red); }
.compare figcaption { margin-top: 0.6rem; font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.old { height: 100%; padding: 2.2cqw 3cqw; background: #d9d6c3; color: #000; text-align: center; font: 2.6cqw/1.35 "Times New Roman", Times, serif; }
.old__banner { margin: 0 auto 1.4cqw; padding: 0.6cqw; background: #ffee00; border: 0.5cqw outset #bdb; font-size: 2.2cqw; font-weight: 700; }
.old h4 { margin: 1cqw 0; color: #c00000; font: 700 4.4cqw/1.15 "Times New Roman", Times, serif; text-decoration: underline; text-transform: uppercase; letter-spacing: 0; }
.old__links { font-size: 2.3cqw; color: #0000ee; text-decoration: underline; }
.old__pics { display: flex; justify-content: center; gap: 1.5cqw; margin: 1.8cqw 0; }
.old__pics span { width: 15cqw; height: 10cqw; background: #a9a9a9; border: 0.5cqw inset #888; }
.old p { max-width: 74cqw; margin: 0.8cqw auto; font-size: 2.2cqw; color: #444; }
.old .old__small { font-size: 1.8cqw; color: #666; }

/* ---------- Contact ---------- */
.est { display: grid; gap: 1.75rem; max-width: 52rem; margin: 0; }
.est__q { margin: 0; padding: 0; border: 0; min-width: 0; }
.est__q > label, .est__q legend { display: block; margin-bottom: 0.7rem; padding: 0; font-weight: 650; font-size: 1.05rem; color: var(--ink); }
.est select { width: 100%; max-width: 24rem; padding: 0.75rem 0.9rem; background: #fff; border: 1.5px solid var(--ink); border-radius: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 0.55rem 1rem; background: #fff; border: 1.5px solid var(--ink); border-radius: 3px; font-weight: 550; font-size: 0.98rem; transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; }
.chip input:hover + span { box-shadow: 3px 3px 0 var(--line-soft); }
.chip input:checked + span { background: var(--ink); color: #fff; box-shadow: 3px 3px 0 var(--line-soft); }
.chip input:focus-visible + span { outline: 3px solid var(--line); outline-offset: 2px; }
.est__result { margin-top: 2rem; }
.est__card { max-width: 38rem; padding: 1.5rem 1.6rem; background: #fff; border: 1.5px solid var(--ink); border-radius: 3px; box-shadow: 10px 10px 0 var(--line-soft); animation: swap 0.4s var(--ease); }
.est__card h3 { margin-bottom: 0.5rem; }
.est__card p { margin: 0 0 0.8rem; }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; }
@media (min-width: 60rem) { .contact__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4.5rem; } }
.contact__lead { margin-top: 1.1rem; font-size: 1.2rem; color: var(--on-cyan-muted); }
.form { display: grid; gap: 1.4rem; padding: clamp(1.25rem, 3vw, 2rem); border: 1.5px solid rgba(255, 255, 255, 0.55); background: rgba(10, 30, 75, 0.35); }
.field label { display: block; margin-bottom: 0.25rem; font-family: var(--mono); font-size: 0.8rem; color: var(--on-cyan-muted); }
.opt { color: #8ea3cf; }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; padding: 0.55rem 0.1rem; background: transparent; border: 0; border-bottom: 1.5px solid rgba(255, 255, 255, 0.6); border-radius: 0; color: #fff; font-size: 1.08rem;
}
.field input:not([type="checkbox"]):focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--mark); }
.field select option { color: var(--ink); }
.field textarea { resize: vertical; min-height: 7rem; border: 1.5px solid rgba(255, 255, 255, 0.6); padding: 0.6rem 0.7rem; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--mark); }
.field--check { display: flex; align-items: flex-start; gap: 0.7rem; }
.field--check input { flex: none; width: 1.15rem; height: 1.15rem; margin-top: 0.3rem; accent-color: var(--mark); }
.field--check label { margin: 0; font-family: var(--sans); font-size: 0.98rem; color: var(--on-cyan-muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }
.form__status { min-height: 1.5rem; margin: 0; font-size: 1rem; }
.form__status.is-error { color: var(--mark); }
.form__status.is-ok { color: #7be0a0; }

.faq { max-width: 54rem; border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary { position: relative; padding: 1.25rem 3rem 1.25rem 0; list-style: none; font-size: 1.2rem; font-weight: 650; color: var(--ink); cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 50%; translate: 0 -50%; width: 1.9rem; height: 1.9rem; display: grid; place-items: center; border: 1.5px solid var(--line); border-radius: 50%; font-family: var(--mono); font-size: 1rem; color: var(--line); transition: rotate 0.25s, background-color 0.25s, color 0.25s; }
.faq details[open] summary::after { rotate: 45deg; background: var(--line); color: #fff; }
.faq details p { margin: 0 0 1.4rem; max-width: 38rem; }

/* ---------- Cartouche (pied de page) ---------- */
.foot { padding-block: 3rem; border-top: 1.5px solid var(--ink); }
.cartouche { display: grid; grid-template-columns: minmax(0, 1fr); border: 1.5px solid #fff; }
@media (min-width: 48rem) { .cartouche { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); } }
.cartouche > * { margin: 0; padding: 0.9rem 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.4); }
.cartouche > :last-child { border-bottom: 0; }
@media (min-width: 48rem) {
  .cartouche > * { border-right: 1px solid rgba(255, 255, 255, 0.4); }
  .c-brand { grid-row: span 2; }
  .cartouche > :nth-child(4), .cartouche > :nth-child(7) { border-right: 0; }
  .cartouche > :nth-child(n + 5) { border-bottom: 0; }
}
.c-k { display: block; margin-bottom: 0.25rem; font-family: var(--mono); font-size: 0.72rem; color: var(--on-cyan-muted); }
.c-brand strong { display: block; font-size: 1.9rem; font-weight: 800; font-stretch: 75%; line-height: 1; color: #fff; }
.c-brand .c-sub { display: block; margin-top: 0.45rem; color: var(--on-cyan-muted); font-size: 0.95rem; }
.c-v { color: #fff; font-size: 0.98rem; }
.c-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.c-links a { font-size: 0.95rem; }
.foot__note { margin: 1rem 0 0; font-family: var(--mono); font-size: 0.75rem; color: var(--on-cyan-muted); }

/* Pages légales */
.legal { max-width: 46rem; }
.legal > h2:first-child { margin-top: 0; }
.legal h2 { margin: 2.25rem 0 0.6rem; font-size: 1.6rem; }
.legal li { margin-bottom: 0.4rem; }

/* ---------- Mode plan : la page montre sa structure et ses cotes réelles ---------- */
.dim { display: none; }
html.plan [data-dim] { outline: 1px dashed rgba(199, 52, 27, 0.75); outline-offset: -1px; }
html.plan .dim {
  display: block; position: absolute; top: 0; right: 0; z-index: 40; padding: 2px 7px;
  background: var(--red); color: #fff; font: 500 0.68rem/1.4 var(--mono); white-space: nowrap; pointer-events: none;
}
html.plan [data-dim]:not(.top) { position: relative; }
html.plan .top .dim { top: auto; bottom: 0; }
html.plan h1, html.plan h2 { text-decoration: underline dashed rgba(47, 91, 211, 0.6); text-decoration-thickness: 1px; text-underline-offset: 0.12em; }
html.plan .cyan { background-color: var(--cyan-2); }
html.plan body { background-size: 120px 120px, 120px 120px, 12px 12px, 12px 12px; }

/* ---------- Apparition au défilement ---------- */
.reveal [data-reveal] { transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(28px); }
.reveal [data-reveal="fade"]:not(.is-in) { transform: none; }
.reveal [data-reveal="zoom"]:not(.is-in) { transform: scale(0.96); }

/* ---------- Changement de page : une nouvelle feuille glisse ---------- */
html::after {
  content: attr(data-sheet); position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 1rem; text-align: center; white-space: pre-line;
  background-color: var(--cyan); color: #fff;
  background-image: linear-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.11) 1px, transparent 1px);
  background-size: 120px 120px;
  font: 800 clamp(2rem, 6vw, 4.5rem)/1 var(--sans); font-stretch: 72%; letter-spacing: -0.01em;
  transform: translateX(100%); visibility: hidden; pointer-events: none;
}
html.pt-leave::after { visibility: visible; animation: pt-cover 0.45s var(--ease-io) forwards; }
html.pt-enter::after { visibility: visible; animation: pt-uncover 0.75s var(--ease-io) 0.12s both; }
html.pt-enter main { animation: pt-rise 0.9s var(--ease) 0.35s both; }
@keyframes pt-cover { from { transform: translateX(100%); } to { transform: none; } }
@keyframes pt-uncover { from { transform: none; } to { transform: translateX(-100%); } }
@keyframes pt-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.animate .hero__text > * { animation: pt-rise 0.9s var(--ease) both; }
.animate .hero__text > *:nth-child(2) { animation-delay: 0.12s; }
.animate .hero__text > *:nth-child(3) { animation-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .codeline, .checks li { opacity: 1; }
}

/* =====================================================================
   Atelier d'esquisse
   ===================================================================== */
.studio { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: start; }
@media (min-width: 64rem) {
  .studio { grid-template-columns: minmax(0, 4.2fr) minmax(0, 7.8fr); gap: 3.5rem; }
  .studio__preview { position: sticky; top: 5.5rem; }
}
.studio__controls { display: grid; gap: 1.6rem; padding: 1.5rem; background: #fff; border: 1.5px solid var(--ink); border-radius: 3px; box-shadow: 10px 10px 0 var(--line-soft); }
.ctl { margin: 0; padding: 0; border: 0; min-width: 0; }
.ctl > label, .ctl legend { display: block; margin-bottom: 0.5rem; padding: 0; font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.ctl input[type="text"], .ctl select { width: 100%; padding: 0.65rem 0.8rem; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 3px; font-size: 1.05rem; }
.ctl input[type="text"]:focus, .ctl select:focus { outline: 3px solid var(--line); outline-offset: 1px; }
.swatches { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.swatch { position: relative; }
.swatch input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.swatch span { display: block; width: 2.3rem; height: 2.3rem; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--ink); background: var(--sw); }
.swatch--sector span { background: conic-gradient(#a8402a 0 25%, #17788f 0 50%, #4d6f26 0 75%, #c25f08 0); }
.swatch input:checked + span { box-shadow: 0 0 0 3px var(--ink), 0 0 0 5px var(--line); }
.swatch input:focus-visible + span { outline: 3px solid var(--line); outline-offset: 4px; }
.studio__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.studio__status { margin: 0; min-height: 1.4em; font-family: var(--mono); font-size: 0.82rem; color: var(--ok); overflow-wrap: anywhere; }
.studio__note { margin: 0; font-size: 0.92rem; color: var(--muted); }
.devices { display: flex; gap: 0.4rem; margin-bottom: 0.9rem; }
.devices button { padding: 0.4rem 0.8rem; background: #fff; border: 1.5px solid var(--ink); border-radius: 3px; font-family: var(--mono); font-size: 0.8rem; cursor: pointer; }
.devices button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.sketch-frame { margin-inline: auto; transition: max-width 0.6s var(--ease); max-width: 100%; }
.sketch-frame[data-device="mobile"] { max-width: 390px; }
.sketch-frame .frame__body { aspect-ratio: auto; height: clamp(26rem, 62vh, 38rem); overflow-y: auto; overscroll-behavior: contain; }

/* Le mini-site généré */
.mock {
  --m-bg: #fff; --m-ink: #111; --m-acc: #2f5bd3; --m-tint: #dde; --m-panel: #fff;
  min-height: 100%; background: var(--m-bg); color: var(--m-ink);
  font-family: var(--m-font, system-ui, sans-serif); font-size: clamp(12px, 2.05cqw, 16px); line-height: 1.45;
  transition: background-color 0.6s, color 0.6s;
}
.mock p { margin: 0; max-width: none; }
.mock__nav { display: flex; align-items: center; gap: 1.2em; padding: 1em 1.6em; border-bottom: 1px solid color-mix(in srgb, var(--m-ink) 12%, transparent); }
.mock__brand { margin-right: auto; font-weight: var(--m-weight); font-stretch: var(--m-stretch); font-size: 1.15em; }
.mock__links { display: flex; gap: 1.2em; font-size: 0.92em; opacity: 0.85; }
.mock__btn { display: inline-block; padding: 0.65em 1.2em; border-radius: var(--m-radius); background: var(--m-acc); color: #fff; font-weight: 600; font-size: 0.95em; white-space: nowrap; transition: background-color 0.6s, color 0.6s, box-shadow 0.6s; }
.mock__btn--small { padding: 0.45em 0.9em; font-size: 0.85em; }
.mock__btn--ghost { background: transparent; color: var(--m-ink); box-shadow: inset 0 0 0 1.5px currentColor; }
.mock__hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 2em; align-items: center; padding: 2.6em 1.6em; }
.mock__kicker { margin-bottom: 0.7em !important; font-size: 0.85em; color: var(--m-acc); font-weight: 600; }
.mock[data-mood="audacieuse"] .mock__kicker { color: color-mix(in srgb, var(--m-acc) 60%, #fff); }
.mock__title { font-size: 2.5em; font-weight: var(--m-weight); font-stretch: var(--m-stretch); line-height: 1.04; letter-spacing: -0.01em; }
.mock[data-mood="audacieuse"] .mock__title { font-size: 3em; line-height: 0.95; }
.mock__lead { margin-top: 0.8em !important; opacity: 0.85; }
.mock__actions { display: flex; flex-wrap: wrap; gap: 0.6em; margin-top: 1.3em !important; }
.mock__photo { aspect-ratio: 4 / 3.4; border-radius: calc(var(--m-radius) * 0.5); background: radial-gradient(circle at 30% 30%, var(--m-tint), transparent 60%), linear-gradient(135deg, var(--m-acc), var(--m-tint)); transition: background 0.6s; }
.mock[data-mood="chaleureuse"] .mock__photo { border-radius: 45% 45% 1.2em 1.2em; }
.mock__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1em; padding: 0 1.6em 2.4em; }
.mock__tile { padding: 0.8em; background: var(--m-panel); border-radius: calc(var(--m-radius) * 0.4); box-shadow: 0 0 0 1px color-mix(in srgb, var(--m-ink) 10%, transparent); }
.mock__img { aspect-ratio: 16 / 10; margin-bottom: 0.7em; border-radius: calc(var(--m-radius) * 0.3); background: linear-gradient(160deg, var(--m-tint), var(--m-acc)); }
.mock__tile:nth-child(2) .mock__img { background: linear-gradient(20deg, var(--m-acc), var(--m-tint)); }
.mock__h3 { font-weight: 700; }
.mock__small { font-size: 0.85em; opacity: 0.75; }
.mock__about { padding: 2.2em 1.6em; background: color-mix(in srgb, var(--m-acc) 9%, var(--m-bg)); }
.mock__h2 { margin-bottom: 0.5em !important; font-size: 1.5em; font-weight: var(--m-weight); font-stretch: var(--m-stretch); }
.mock__about p:not(.mock__h2) { max-width: 34em; }
.mock__note { margin-top: 0.8em !important; font-size: 0.8em; opacity: 0.6; font-style: italic; }
.mock__contact { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.2em; padding: 2.2em 1.6em; }
.mock__foot { padding: 1em 1.6em; font-size: 0.8em; opacity: 0.6; border-top: 1px solid color-mix(in srgb, var(--m-ink) 12%, transparent); }
@container (max-width: 34rem) {
  .mock__links { display: none; }
  .mock__hero { grid-template-columns: minmax(0, 1fr); padding-block: 1.8em; }
  .mock__title { font-size: 2.1em; }
  .mock__tiles { grid-template-columns: minmax(0, 1fr); }
}

/* Plan ou reconstruction : l'esquisse repasse en filaire */
:is(html.plan, .sketch-frame.is-wire) .mock { --m-bg: #f8faff; --m-ink: var(--line); --m-panel: transparent; font-family: var(--mono); }
:is(html.plan, .sketch-frame.is-wire) .mock .mock__btn { background: transparent; color: var(--line); box-shadow: inset 0 0 0 1px var(--line); }
:is(html.plan, .sketch-frame.is-wire) .mock :is(.mock__photo, .mock__img) {
  background:
    linear-gradient(to top right, transparent calc(50% - 0.6px), rgba(47, 91, 211, 0.5) 50%, transparent calc(50% + 0.6px)),
    linear-gradient(to bottom right, transparent calc(50% - 0.6px), rgba(47, 91, 211, 0.5) 50%, transparent calc(50% + 0.6px));
  box-shadow: inset 0 0 0 1px var(--line);
}
:is(html.plan, .sketch-frame.is-wire) .mock .mock__about { background: transparent; }

/* Accueil : essai rapide */
.try { display: grid; gap: 0.6rem; max-width: 33rem; margin-top: 2.2rem; padding: 1rem 1.1rem; border: 1.5px dashed var(--line); background: rgba(255, 255, 255, 0.6); }
.try__title { margin: 0; font-family: var(--mono); font-size: 0.8rem; color: var(--line); }
.try__row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0.5rem; }
.try input, .try select { width: 100%; min-width: 0; padding: 0.6rem 0.7rem; background: #fff; border: 1.5px solid var(--ink); border-radius: 3px; font-size: 1rem; }
.try input:focus, .try select:focus { outline: 3px solid var(--line); outline-offset: 1px; }
.try__more { justify-self: start; font-size: 0.95rem; }
@media (max-width: 30rem) { .try__row { grid-template-columns: minmax(0, 1fr); } }
.sketch-received { margin: 0 0 1rem; padding: 0.8rem 1rem; border: 1.5px solid var(--mark); color: #fff; font-size: 0.98rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* =====================================================================
   Exemples interactifs
   ===================================================================== */
.tool { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: start; }
@media (min-width: 64rem) { .tool { grid-template-columns: minmax(0, 7.4fr) minmax(0, 4.6fr); gap: 3.5rem; } }
.tool__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; margin-top: 2.5rem; }
@media (min-width: 52rem) { .tool__row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem; } }
.tool__about h3 { margin: 0 0 0.5rem; font-size: 1.05rem; color: var(--muted); font-weight: 650; }
.tool__about p + h3, .tool__about ul + h3 { margin-top: 1.4rem; }
.art { display: block; width: 100%; height: 100%; }
.art svg { display: block; width: 100%; height: 100%; }

/* Boutique */
.shop { --s-ink: #1d2433; --s-acc: #8a4b17; --s-bg: #fbf8f2; }
.shop__body { position: relative; height: clamp(34rem, 78vh, 44rem); display: flex; flex-direction: column; overflow: hidden; background: var(--s-bg); color: var(--s-ink); font-family: Georgia, "Times New Roman", serif; }
.shop__head { display: flex; align-items: center; gap: 1.5rem; padding: 0.9rem 1.4rem; border-bottom: 1px solid rgba(29, 36, 51, 0.12); background: #fff; }
.shop__brand { margin-right: auto; font-weight: 700; font-size: 1.15rem; }
.shop__nav { display: flex; gap: 1.2rem; font-size: 0.95rem; opacity: 0.8; }
@media (max-width: 40rem) { .shop__nav { display: none; } }
.shop__cartbtn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.9rem; background: var(--s-ink); color: #fff; border: 0; border-radius: 999px; font: 600 0.95rem/1 system-ui, sans-serif; cursor: pointer; }
.shop__badge { display: grid; place-items: center; min-width: 1.4rem; height: 1.4rem; padding: 0 0.35rem; background: #fff; color: var(--s-ink); border-radius: 999px; font-size: 0.8rem; }
.shop__badge.is-bump { animation: bump 0.45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.45); } }
.shop__scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 1.4rem; }
.shop__banner { margin-bottom: 1.2rem; padding: 1.4rem 1.5rem; background: linear-gradient(120deg, #f1e3c8, #e6d0aa); border-radius: 0.8rem; }
.shop__kicker { margin: 0 0 0.3rem; font: 600 0.82rem/1.3 system-ui, sans-serif; color: var(--s-acc); }
.shop__title { margin: 0; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; line-height: 1.1; }
.shop__title--product { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin-bottom: 0.6rem; }
.shop__sub { margin: 0.4rem 0 0; font-size: 0.95rem; opacity: 0.8; }
.shop__filters, .shop__variants { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.shop__filters { margin-bottom: 1.2rem; }
.shop__chip { padding: 0.4rem 0.85rem; background: #fff; border: 1px solid rgba(29, 36, 51, 0.25); border-radius: 999px; font: 500 0.88rem/1.2 system-ui, sans-serif; color: var(--s-ink); cursor: pointer; }
.shop__chip[aria-pressed="true"], .shop__chip[aria-checked="true"] { background: var(--s-ink); border-color: var(--s-ink); color: #fff; }
.shop__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(10.5rem, 40%), 1fr)); gap: 0.8rem; }
@media (max-width: 30rem) { .shop__scroll { padding: 1rem; } .shop__head { padding: 0.8rem 1rem; } .shop__card { padding: 0.5rem; } .shop__name { font-size: 0.92rem; } }
.shop__card { display: grid; gap: 0.2rem; padding: 0.7rem; background: #fff; border: 1px solid rgba(29, 36, 51, 0.1); border-radius: 0.8rem; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.shop__card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px -16px rgba(29, 36, 51, 0.5); }
.shop__pic { display: block; aspect-ratio: 1; padding: 12%; margin-bottom: 0.4rem; background: var(--pc, #eee); border-radius: 0.6rem; }
.shop__pic--big { width: 100%; max-width: 20rem; padding: 10%; }
.shop__pic--tiny { width: 3rem; padding: 6%; margin: 0; }
.shop__cat { font: 500 0.75rem/1.3 system-ui, sans-serif; color: var(--s-acc); }
.shop__name { font-weight: 700; font-size: 1rem; line-height: 1.2; }
.shop__price { font: 500 0.9rem/1.3 system-ui, sans-serif; opacity: 0.8; }
.shop__back { margin-bottom: 1rem; padding: 0; background: none; border: 0; font: 600 0.92rem/1.2 system-ui, sans-serif; color: var(--s-acc); cursor: pointer; }
.shop__detail { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
@media (min-width: 44rem) { .shop__detail { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; } }
.shop__info p { margin: 0 0 0.6rem; }
.shop__label { margin: 1rem 0 0.4rem !important; font: 600 0.82rem/1.2 system-ui, sans-serif; opacity: 0.7; }
.shop__qty { display: inline-flex; align-items: center; gap: 0.2rem; border: 1px solid rgba(29, 36, 51, 0.25); border-radius: 999px; background: #fff; }
.shop__qty button { width: 2.2rem; height: 2.2rem; background: none; border: 0; border-radius: 50%; font: 600 1.1rem/1 system-ui, sans-serif; color: var(--s-ink); cursor: pointer; }
.shop__qty button:hover { background: rgba(29, 36, 51, 0.08); }
.shop__qty-n, .shop__qty span { min-width: 1.6rem; text-align: center; font: 600 0.95rem/1 system-ui, sans-serif; }
.shop__qty--small button { width: 1.8rem; height: 1.8rem; font-size: 0.95rem; }
.shop__bigprice { margin: 1rem 0 0.8rem !important; font: 700 1.5rem/1 system-ui, sans-serif; }
.shop__btn { padding: 0.75rem 1.2rem; background: var(--s-acc); color: #fff; border: 0; border-radius: 999px; font: 600 0.98rem/1.2 system-ui, sans-serif; cursor: pointer; transition: background-color 0.2s, transform 0.2s var(--ease); }
.shop__btn:hover { background: var(--s-ink); }
.shop__btn:active { transform: scale(0.97); }
.shop__btn:disabled { opacity: 0.4; cursor: not-allowed; }
.shop__drawer {
  position: absolute; top: 0; right: 0; bottom: 0; z-index: 5; display: flex; flex-direction: column; width: min(24rem, 100%);
  background: #fff; box-shadow: -20px 0 40px -20px rgba(0, 0, 0, 0.35); transform: translateX(105%); transition: transform 0.45s var(--ease-io);
  font-family: system-ui, sans-serif;
}
.shop__drawer.is-open { transform: none; }
.shop__drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.2rem; border-bottom: 1px solid rgba(29, 36, 51, 0.12); }
.shop__drawer-head p { margin: 0; font: 700 1.15rem/1 Georgia, serif; }
.shop__close { width: 2.2rem; height: 2.2rem; background: none; border: 1px solid rgba(29, 36, 51, 0.25); border-radius: 50%; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.shop__lines { flex: 1; overflow-y: auto; margin: 0; padding: 0.6rem 1.2rem; list-style: none; }
.shop__line { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; grid-template-areas: "pic info info" "pic qty total"; gap: 0.3rem 0.8rem; align-items: center; padding: 0.7rem 0; border-bottom: 1px solid rgba(29, 36, 51, 0.08); animation: swap 0.35s var(--ease); }
.shop__line .shop__pic { grid-area: pic; }
.shop__line-info { grid-area: info; display: grid; font-size: 0.92rem; }
.shop__line-info small { opacity: 0.65; }
.shop__line .shop__qty { grid-area: qty; justify-self: start; }
.shop__line-total { grid-area: total; font-weight: 600; font-size: 0.92rem; }
.shop__empty { padding: 2rem 0; text-align: center; opacity: 0.6; }
.shop__totals { padding: 0.8rem 1.2rem 0.4rem; border-top: 1px solid rgba(29, 36, 51, 0.12); font-size: 0.92rem; }
.shop__totals p { display: flex; justify-content: space-between; margin: 0 0 0.3rem; max-width: none; }
.shop__progress { height: 6px; margin-bottom: 0.4rem; background: rgba(29, 36, 51, 0.1); border-radius: 3px; overflow: hidden; }
.shop__progress span { display: block; height: 100%; background: var(--ok); transition: width 0.5s var(--ease); }
.shop__freeinfo { color: var(--ok); font-weight: 500; }
.shop__grand { padding-top: 0.4rem; font-weight: 700; font-size: 1.05rem; }
.shop__checkout { margin: 0.6rem 1.2rem 1.2rem; }
.shop__toast { position: absolute; left: 50%; bottom: 1.2rem; z-index: 6; margin: 0; padding: 0.6rem 1rem; background: var(--s-ink); color: #fff; border-radius: 999px; font: 500 0.9rem/1.2 system-ui, sans-serif; white-space: nowrap; opacity: 0; transform: translate(-50%, 12px); transition: opacity 0.3s, transform 0.3s var(--ease); pointer-events: none; }
.shop__toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.shop__form { display: grid; gap: 0.7rem; max-width: 30rem; font-family: system-ui, sans-serif; }
.shop__field { display: grid; gap: 0.2rem; font-size: 0.85rem; }
.shop__field input { padding: 0.6rem 0.7rem; border: 1px solid rgba(29, 36, 51, 0.3); border-radius: 0.5rem; background: #fff; font-size: 1rem; }
.shop__two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 0.6rem; }
.shop__radio { position: relative; }
.shop__radio input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.shop__radio span { display: inline-block; padding: 0.45rem 0.9rem; border: 1px solid rgba(29, 36, 51, 0.25); border-radius: 999px; background: #fff; font-size: 0.9rem; }
.shop__radio input:checked + span { background: var(--s-ink); color: #fff; border-color: var(--s-ink); }
.shop__radio input:focus-visible + span { outline: 3px solid var(--line); outline-offset: 2px; }
.shop__form .shop__grand { display: flex; justify-content: space-between; margin: 0.4rem 0 0; }
.shop__fine { margin: 0; font-size: 0.8rem; opacity: 0.65; }
.shop__done { display: grid; justify-items: center; gap: 0.6rem; max-width: 30rem; margin: 2rem auto; text-align: center; animation: swap 0.4s var(--ease); }
.shop__check { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--ok); color: #fff; font-size: 1.6rem; }

/* Devis */
.quote { display: grid; grid-template-columns: minmax(0, 1fr); background: #fff; color: #1e2a1c; font-family: system-ui, sans-serif; }
@media (min-width: 40rem) { .quote { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.quote__form { display: grid; gap: 1rem; padding: 1.4rem; }
.quote__title { margin: 0; font: 700 1.4rem/1.1 Georgia, serif; }
.qf { display: grid; gap: 0.4rem; margin: 0; padding: 0; border: 0; min-width: 0; font-size: 0.85rem; font-weight: 600; color: #4b5a48; }
.qf legend { padding: 0; margin-bottom: 0.4rem; }
.qf select { padding: 0.55rem 0.6rem; border: 1px solid #c9d3c4; border-radius: 0.4rem; background: #f6f8f4; font-size: 1rem; color: #1e2a1c; }
.qf input[type="range"] { width: 100%; accent-color: #4d6f26; }
.qf output { color: #1e2a1c; }
.qchips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.qchips label { position: relative; }
.qchips input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.qchips span { display: inline-block; padding: 0.4rem 0.85rem; border: 1px solid #c9d3c4; border-radius: 0.4rem; background: #f6f8f4; font-size: 0.92rem; font-weight: 500; color: #1e2a1c; }
.qchips input:checked + span { background: #4d6f26; border-color: #4d6f26; color: #fff; }
.qchips input:focus-visible + span { outline: 3px solid var(--line); outline-offset: 2px; }
.qcheck { display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; }
.qcheck input { width: 1.1rem; height: 1.1rem; accent-color: #4d6f26; }
.quote__btn { justify-self: start; padding: 0.7rem 1.1rem; background: #4d6f26; color: #fff; border: 0; border-radius: 0.4rem; font-weight: 600; font-size: 0.98rem; cursor: pointer; }
.quote__btn:hover { background: #1e2a1c; }
.quote__sent { margin: 0; min-height: 1.2em; font-size: 0.88rem; color: var(--ok); }
.quote__out { padding: 1.4rem; background: #1e2a1c; color: #eef2ea; display: flex; flex-direction: column; }
.quote__label { margin: 0 0 0.4rem; font-size: 0.85rem; opacity: 0.7; }
.quote__range { margin: 0; font: 700 clamp(1.4rem, 3vw, 1.9rem)/1.15 Georgia, serif; }
.quote__range span { color: #cfe3a6; font-variant-numeric: tabular-nums; }
.quote__what { margin: 0.7rem 0 1rem; font-size: 0.92rem; opacity: 0.8; }
.quote__lines { margin: 0 0 1rem; padding: 0; list-style: none; font-size: 0.9rem; }
.quote__lines li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; border-bottom: 1px solid rgba(238, 242, 234, 0.15); }
.quote__fine { margin: auto 0 0; font-size: 0.78rem; opacity: 0.6; }

/* Réservation */
.bk { display: grid; gap: 0.5rem; padding: 1.4rem; background: #fbf1e4; color: #2f1d12; font-family: system-ui, sans-serif; }
.bk__title { margin: 0 0 0.4rem; font: 700 1.5rem/1.1 Georgia, serif; }
.bk__label { margin: 0.5rem 0 0.2rem; font-size: 0.82rem; font-weight: 600; opacity: 0.7; }
.bk__days { display: flex; gap: 0.4rem; overflow-x: auto; padding-bottom: 0.3rem; }
.bk__day { flex: none; display: grid; gap: 0.1rem; min-width: 5.2rem; padding: 0.5rem 0.6rem; background: #fff; border: 1px solid #e3c9a8; border-radius: 0.6rem; font: inherit; font-size: 0.85rem; text-align: center; color: inherit; cursor: pointer; }
.bk__day small { font-size: 0.72rem; opacity: 0.65; }
.bk__day[aria-pressed="true"] { background: #a8402a; border-color: #a8402a; color: #fff; }
.bk__day:disabled { opacity: 0.4; cursor: not-allowed; text-decoration: line-through; }
.bk__row { display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.bk__service { display: inline-flex; border: 1px solid #e3c9a8; border-radius: 999px; overflow: hidden; background: #fff; }
.bk__service button { padding: 0.5rem 1.1rem; background: none; border: 0; font: inherit; color: inherit; cursor: pointer; }
.bk__service button[aria-pressed="true"] { background: #2f1d12; color: #fff; }
.bk__people { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.2rem; border: 1px solid #e3c9a8; border-radius: 999px; background: #fff; }
.bk__people button { width: 2.1rem; height: 2.1rem; background: none; border: 0; border-radius: 50%; font-size: 1.1rem; cursor: pointer; color: inherit; }
.bk__people button:hover { background: #f3e2cc; }
.bk__people-n { min-width: 6.5rem; text-align: center; font-weight: 600; }
.bk__slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.4rem, 1fr)); gap: 0.4rem; min-height: 5rem; }
.bk__slot { padding: 0.55rem 0.3rem; background: #fff; border: 1px solid #e3c9a8; border-radius: 0.5rem; font: inherit; font-size: 0.9rem; color: inherit; cursor: pointer; }
.bk__slot[aria-pressed="true"] { background: #a8402a; border-color: #a8402a; color: #fff; }
.bk__slot:disabled { opacity: 0.45; font-size: 0.75rem; cursor: not-allowed; }
.bk__hint { margin: 0; grid-column: 1 / -1; font-size: 0.92rem; opacity: 0.75; }
.bk__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem; margin-top: 0.8rem; padding-top: 0.9rem; border-top: 1px solid #e3c9a8; }
.bk__summary { margin: 0; font-weight: 600; }
.bk__confirm { padding: 0.7rem 1.4rem; background: #a8402a; color: #fff; border: 0; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; }
.bk__confirm:disabled { opacity: 0.4; cursor: not-allowed; }
.bk__done { margin: 0.5rem 0 0; padding: 0.8rem 1rem; background: #fff; border-left: 4px solid var(--ok); border-radius: 0.4rem; font-size: 0.92rem; animation: swap 0.4s var(--ease); }

/* Conseiller */
.adv { display: grid; gap: 0.9rem; min-height: 24rem; padding: 1.6rem; background: #151515; color: #fbfaf3; font-family: system-ui, sans-serif; }
.adv__title { margin: 0; font: 800 clamp(1.4rem, 3vw, 1.9rem)/1.05 "Archivo", "Arial Narrow", sans-serif; font-stretch: 75%; }
.adv__bar { height: 4px; background: rgba(255, 255, 255, 0.15); border-radius: 2px; overflow: hidden; }
.adv__bar span { display: block; height: 100%; width: 0; background: #e0a100; transition: width 0.5s var(--ease); }
.adv__body { display: grid; gap: 0.8rem; align-content: start; animation: swap 0.4s var(--ease); }
.adv__body p { margin: 0; }
.adv__step { font-size: 0.82rem; color: #e0a100; }
.adv__q { font-size: 1.35rem; font-weight: 700; line-height: 1.2; }
.adv__answers { display: grid; gap: 0.5rem; }
.adv__a { padding: 0.85rem 1rem; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 0.5rem; color: inherit; font: inherit; font-size: 1rem; text-align: left; cursor: pointer; transition: background-color 0.2s, border-color 0.2s, transform 0.2s var(--ease); }
.adv__a:hover { background: rgba(224, 161, 0, 0.18); border-color: #e0a100; transform: translateX(4px); }
.adv__a--main { background: #e0a100; border-color: #e0a100; color: #151515; font-weight: 700; }
.adv__a--main:hover { background: #f0b41a; }
.adv__back { justify-self: start; padding: 0; background: none; border: 0; color: #e0a100; font: inherit; font-size: 0.9rem; cursor: pointer; text-decoration: underline; }
.adv__note { margin: 0; min-height: 1.2em; font-size: 0.88rem; color: #cfcfc6; }

/* Horaires */
.hr { display: grid; gap: 0.8rem; padding: 1.6rem; background: #fbf3e6; color: #3b2a1d; font-family: Georgia, "Times New Roman", serif; }
.hr__brand { margin: 0; font-size: 1.4rem; font-weight: 700; }
.hr__status { justify-self: start; margin: 0; padding: 0.5rem 0.9rem 0.5rem 0.7rem; background: #fff; border: 1px solid #e8cfb0; border-radius: 999px; font: 600 0.98rem/1.2 system-ui, sans-serif; color: #a33b1c; }
.hr__status::before { content: ""; display: inline-block; width: 0.6rem; height: 0.6rem; margin-right: 0.5rem; border-radius: 50%; background: currentColor; vertical-align: 0.05em; }
.hr__status.is-open { color: var(--ok); }
.animate .hr__status.is-open::before { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(26, 143, 76, 0.2); } }
.hr__table { width: 100%; border-collapse: collapse; font-family: system-ui, sans-serif; font-size: 0.95rem; }
.hr__table th, .hr__table td { padding: 0.45rem 0.6rem; text-align: left; border-bottom: 1px solid #ecd9bf; }
.hr__table th { width: 8rem; font-weight: 600; }
.hr__table tr.is-today { background: #fff; font-weight: 700; }
.hr__table tr.is-today th { box-shadow: inset 3px 0 0 #b9561f; }
.hr__sim { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.9rem; margin-top: 0.4rem; padding: 0.9rem; border: 1px dashed #c9a57c; border-radius: 0.5rem; font-family: system-ui, sans-serif; font-size: 0.9rem; }
.hr__label { flex-basis: 100%; margin: 0; font-weight: 600; opacity: 0.75; }
.hr__sim select { padding: 0.4rem 0.5rem; border: 1px solid #c9a57c; border-radius: 0.4rem; background: #fff; }
.hr__sim input[type="range"] { flex: 1; min-width: 8rem; accent-color: #b9561f; }
.hr__sim output { min-width: 4.5rem; font-variant-numeric: tabular-nums; font-weight: 600; }
.hr__now { padding: 0.4rem 0.8rem; background: #3b2a1d; color: #fff; border: 0; border-radius: 999px; cursor: pointer; }

/* Autres outils */
.others { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
@media (min-width: 40rem) { .others { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .others { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.other { padding: 1.3rem 1.2rem; background: #fff; border: 1.5px solid var(--ink); border-radius: 3px; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.other:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--line-soft); }
.other h3 { margin-bottom: 0.3rem; font-size: 1.3rem; font-weight: 760; font-stretch: 80%; }
.other__for { margin-bottom: 0.6rem; font-family: var(--mono); font-size: 0.78rem; color: var(--red); }
.other p:last-child { margin: 0; font-size: 0.98rem; }

/* =====================================================================
   Version 3D : la maquette en couches
   ===================================================================== */
.scrolly { position: relative; }
.scrolly__sticky { position: relative; padding-block: clamp(2.5rem, 6vw, 4rem) 4rem; }
.scrolly__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: center; }
@media (min-width: 64rem) { .scrolly__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; } }
.scrolly h1 { max-width: 13ch; font-size: clamp(2.6rem, 4.7vw, 4.6rem); }
.scrolly__steps { display: grid; gap: 2rem; margin: 3rem 0 0; padding: 0; list-style: none; }
.scrolly__step h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 0.95; }
.scrolly__num { display: block; margin-bottom: 0.8rem; font-family: var(--mono); font-size: 0.8rem; color: var(--red); }
.scrolly__alt { margin: 0.6rem 0 0.8rem; font-family: var(--mono); font-size: 0.9rem; color: var(--line); }
.scrolly__step p:last-child { max-width: 28rem; font-size: 1.15rem; }
.scrolly__hint { display: none; }
.scrolly__progress { display: none; }

/* Défilement piloté (JavaScript actif, animations autorisées) */
.is-scrolly .scrolly__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 4.1rem 0 0; overflow: hidden; }
.is-scrolly .scrolly__grid { height: 100%; }
.is-scrolly .scrolly__text { position: relative; height: 100%; }
.is-scrolly .scrolly__steps { margin: 0; }
.is-scrolly .scrolly__step {
  position: absolute; left: 0; right: 0; top: 50%; translate: 0 -50%;
  opacity: 0; transform: translateY(30px); pointer-events: none;
  transition: opacity 0.5s, transform 0.7s var(--ease);
}
.is-scrolly .scrolly__step.is-on { opacity: 1; transform: none; pointer-events: auto; }
.is-scrolly .scrolly__step:not(.is-on) .w > span { transform: translateY(105%); }
.is-scrolly .scrolly__hint { display: flex; align-items: center; gap: 0.8rem; margin-top: 2.5rem; font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.is-scrolly .scrolly__hint::after { content: ""; width: 4rem; height: 1px; background: currentColor; transform-origin: left; animation: hint 1.8s var(--ease) infinite; }
@keyframes hint { 0% { transform: scaleX(0); } 60% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.is-scrolly .scrolly__progress { display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--line-soft); }
.scrolly__progress span { display: block; height: 100%; background: var(--red); transform-origin: left; transform: scaleX(0); }
@media (max-width: 63.99rem) {
  .is-scrolly .scrolly__grid { grid-template-rows: minmax(0, 1fr) minmax(24.5rem, auto); gap: 0; align-items: stretch; }
  .is-scrolly .stage3d { order: -1; }
  .is-scrolly .scrolly__step { top: 0; translate: none; }
  .is-scrolly .scrolly__intro h1 { font-size: clamp(2rem, 8.4vw, 3.2rem); max-width: 16ch; }
  .is-scrolly .scrolly__intro .lead { margin-top: 0.8rem; font-size: 1.02rem; }
  .is-scrolly .scrolly__intro .hero__actions { margin-top: 1.1rem; }
  .is-scrolly .scrolly__step h2 { font-size: clamp(2rem, 8vw, 3rem); }
  .is-scrolly .scrolly__hint { display: none; }
}

/* La scène */
.stage3d {
  --rx: 0deg; --rz: 0deg; --gap: 0; --sc: 0.92; --mx: -9%;
  position: relative; display: grid; place-items: center; width: min(100%, 62rem); justify-self: center; min-height: 20rem;
  container-type: inline-size; perspective: 2600px; perspective-origin: 50% 35%;
}
.model {
  --paint: 1; --wire: 0; position: relative; width: 80%; aspect-ratio: 16 / 10; transform-style: preserve-3d;
  transform: translateX(var(--mx)) scale(var(--sc)) rotateX(var(--rx)) rotateZ(var(--rz));
}
.model > * { position: absolute; }
/* hauteur d'une pièce dans la vue éclatée, en « étages » */
.pc, .editor, .sheet3d, .phone3d, .pc--scan, .pc--check { transform-style: preserve-3d; }

/* Le terrain : la plaque quadrillée et le navigateur */
.plate {
  inset: 0; border: 1.5px solid var(--ink); border-radius: 0.8cqw; overflow: hidden;
  background-color: color-mix(in srgb, #f2f4f1 calc(var(--paint) * 100%), #ffffff);
  background-image: linear-gradient(rgba(47, 91, 211, calc(0.16 * var(--wire))) 1px, transparent 1px), linear-gradient(90deg, rgba(47, 91, 211, calc(0.16 * var(--wire))) 1px, transparent 1px);
  background-size: 2.5cqw 2.5cqw;
  box-shadow: 0 0 0 1px rgba(15, 35, 64, 0.04), 0 4cqw 7cqw -4cqw rgba(15, 35, 64, calc(0.5 - var(--gap) * 0.3));
}
.ly__bar { position: absolute; left: 0; right: 0; top: 0; height: 6.5%; display: flex; align-items: center; gap: 0.6cqw; padding: 0 1.4cqw; background: #fff; border-bottom: 1px solid rgba(15, 35, 64, 0.2); font: 500 1.25cqw/1 var(--mono); color: var(--muted); }
.ly__bar i { width: 0.85cqw; height: 0.85cqw; border-radius: 50%; background: rgba(15, 35, 64, 0.22); }
.ly__bar b { flex: 1; min-height: 2.1cqw; margin-left: 1cqw; padding: 0.35cqw 1cqw; background: var(--paper-2); border-radius: 0.3cqw; font-weight: 500; }
.ly__live { display: inline-flex; align-items: center; gap: 0.5cqw; font-style: normal; color: var(--ok); opacity: 0; transition: opacity 0.5s; }
.ly__live::before { content: ""; width: 0.85cqw; height: 0.85cqw; border-radius: 50%; background: var(--ok); }
.model.is-live .ly__live { opacity: 1; }
.wire { position: absolute; inset: 0; width: 100%; height: 100%; opacity: var(--wire); }
.wire rect { fill: rgba(47, 91, 211, 0.05); stroke: var(--line); stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }

/* Pièces posées sur la plaque */
.pc { left: var(--x); top: var(--y); width: var(--w, auto); height: var(--h, auto); }
.pc--block {
  --k: 1; border-radius: 0.5cqw; background: rgba(255, 255, 255, calc(0.85 - var(--paint) * 0.85)); border: 1px dashed rgba(47, 91, 211, calc(0.8 * (1 - var(--paint))));
  opacity: clamp(0, calc(var(--k) * 3), 1);
  transform: translateZ(calc((1 - var(--k)) * 34cqw + var(--gap) * 3cqw)) rotateX(calc((1 - var(--k)) * -30deg));
  box-shadow: 0 calc((1 - var(--k)) * 3cqw) calc((1 - var(--k)) * 4cqw) -1cqw rgba(15, 35, 64, 0.35);
}
.pc--img {
  --k: 1; border-radius: 0.6cqw; background: linear-gradient(135deg, #163a83, #9db0ff);
  clip-path: inset(calc((1 - var(--k)) * 100%) 0 0 0 round 0.6cqw); filter: grayscale(calc(1 - var(--k))) contrast(calc(0.7 + var(--k) * 0.3));
  transform: translateZ(calc(var(--gap) * 7cqw));
}
.pc--img1 { background: linear-gradient(200deg, #c6d1ff, #2f5bd3); }
.pc--img2 { background: linear-gradient(315deg, #0f2340, #9db0ff 70%); }
.pc--img3 { background: linear-gradient(45deg, #2f5bd3, #e7ebe6); }
.pc--img0::after { content: ""; position: absolute; inset: 14% 18%; border: 1px solid rgba(255, 255, 255, 0.55); background-image: linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px); background-size: 12% 16%; transform: skewX(-12deg); }
.pc--text {
  color: color-mix(in srgb, #0f2340 calc(45% + var(--paint) * 55%), var(--line)); font-family: var(--sans); line-height: 1.1;
  transform: translateZ(calc(var(--gap) * 10cqw)); white-space: nowrap;
}
.pc--title { white-space: normal; font-size: 3.3cqw; font-weight: 800; font-stretch: 72%; line-height: 0.98; }
.pc--links { white-space: pre; font-family: system-ui, sans-serif; }
.pc--text.is-typing::after { content: ""; display: inline-block; width: 0.18em; height: 1em; margin-left: 0.08em; vertical-align: -0.12em; background: var(--red); animation: blink 0.6s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.pc--paint {
  --k: 1; display: grid; place-items: center; overflow: hidden;
  opacity: clamp(0, calc(var(--k) * 3), 1); transform: translateZ(calc((1 - var(--k)) * 22cqw + var(--gap) * 13cqw));
}
.pc--btn { border-radius: 3cqw; background: #2f5bd3; color: #fff; font: 600 1.45cqw/1 system-ui, sans-serif; clip-path: inset(0 calc((1 - var(--k)) * 100%) 0 0 round 3cqw); }
.pc--band { border-radius: 0 0 0.8cqw 0.8cqw; background: #163a83; color: #c6d1ff; font: 500 1.2cqw/1 system-ui, sans-serif; clip-path: inset(0 calc((1 - var(--k)) * 100%) 0 0); }

/* L'éditeur de code qui flotte au-dessus du chantier */
.editor {
  --k: 0; left: 46%; top: -6%; width: 58%; margin: 0; padding: 0 0 1.4cqw; background: #0f1a2e; border-radius: 0.8cqw; box-shadow: 0 3cqw 6cqw -2cqw rgba(15, 35, 64, 0.6);
  font: 400 1.4cqw/1.75 var(--mono); color: #cdd8f6;
  opacity: clamp(0, calc(var(--k) * 2), 1); transform: translateZ(calc(26cqw + (1 - var(--k)) * 14cqw)) rotateX(-56deg) rotateY(calc((1 - var(--k)) * 18deg));
  transform-origin: 50% 100%; pointer-events: none;
}
.editor__bar { display: flex; align-items: center; gap: 0.6cqw; margin: 0 0 1cqw; padding: 0.9cqw 1.4cqw; border-bottom: 1px solid rgba(255, 255, 255, 0.12); color: #8a98b3; }
.editor__bar i { width: 0.85cqw; height: 0.85cqw; border-radius: 50%; background: rgba(255, 255, 255, 0.25); }
.editor__line { --k: 1; display: block; padding: 0 1.6cqw; white-space: pre; font: inherit; clip-path: inset(0 calc((1 - var(--k)) * 100%) 0 0); }
.editor__line b { color: #8fb0ff; font-weight: 400; }

/* Les autres pages, empilées derrière */
.sheet3d {
  --k: 1; inset: 0; border: 1.5px solid var(--ink); border-radius: 0.8cqw; background: #f2f4f1; overflow: hidden;
  opacity: clamp(0, calc(var(--k) * 3), 1);
  transform: translate3d(calc(var(--n) * 3.2% * var(--k)), calc(var(--n) * -5% * var(--k)), calc(var(--n) * -2.4cqw - (1 - var(--k)) * 18cqw));
}
.sheet3d__t { position: absolute; left: 6%; top: 12%; font: 800 3.2cqw/1 var(--sans); font-stretch: 75%; color: #0f2340; }
.sheet3d__b { position: absolute; left: 6%; top: 28%; width: 50%; height: 30%; border-radius: 0.5cqw; background: linear-gradient(135deg, #163a83, #9db0ff); }
.sheet3d__b--2 { left: 60%; width: 34%; background: rgba(15, 35, 64, 0.1); }

/* La version téléphone, qui se dresse à côté */
.phone3d {
  --k: 1; --lay: 1; left: 104%; top: 16%; width: 22%; aspect-ratio: 9 / 18.5; padding: 0.9cqw; background: #0f1a2e; border-radius: 3cqw;
  box-shadow: 0 3cqw 5cqw -2cqw rgba(15, 35, 64, 0.5); transform-origin: 50% 100%;
  opacity: clamp(0, calc(var(--k) * 3), 1);
  transform: translateZ(calc(var(--gap) * 2cqw)) rotateX(calc(-90deg * (var(--k) - var(--lay)))) scale(calc(0.6 + var(--k) * 0.4));
}
.phone3d__screen { display: flex; flex-direction: column; gap: 1.1cqw; height: 100%; padding: 1.4cqw 1.2cqw; background: #f2f4f1; border-radius: 2.2cqw; overflow: hidden; }
.ph { display: block; }
.ph--nav { font: 800 1.2cqw/1.2 var(--sans); color: #0f2340; }
.ph--title { font: 800 1.95cqw/1 var(--sans); font-stretch: 72%; color: #0f2340; }
.ph--btn { align-self: flex-start; padding: 0.7cqw 1.4cqw; border-radius: 3cqw; background: #2f5bd3; color: #fff; font: 600 1.1cqw/1 system-ui, sans-serif; }
.ph--img { flex: 1; min-height: 6cqw; border-radius: 0.8cqw; background: linear-gradient(135deg, #163a83, #9db0ff); }
.ph--row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8cqw; height: 6cqw; }
.ph--row span { border-radius: 0.6cqw; background: linear-gradient(200deg, #c6d1ff, #2f5bd3); }

/* Le contrôle : un scanner balaie la page */
.pc--scan {
  --k: 0; left: -2%; right: -2%; top: calc(var(--k) * 100%); height: 0.5cqw; background: var(--ok);
  box-shadow: 0 0 1.5cqw 0.4cqw rgba(26, 143, 76, 0.55), 0 -6cqw 6cqw -3cqw rgba(26, 143, 76, 0.25);
  transform: translateZ(calc(var(--gap) * 16cqw)); transition: opacity 0.3s; opacity: 0;
}
.pc--check {
  left: var(--x); top: var(--y); padding: 0.6cqw 1.3cqw; background: var(--ok); color: #fff; border-radius: 3cqw; font: 500 1.45cqw/1 var(--mono); white-space: nowrap;
  opacity: 0; transform: translateZ(calc(var(--gap) * 18cqw)) scale(0.5); transition: opacity 0.35s, transform 0.5s var(--ease);
}
.pc--check.is-on { opacity: 1; transform: translateZ(calc(var(--gap) * 18cqw)) scale(1); }

/* Rail des chapitres */
.scrolly__rail { display: none; }
.is-scrolly .scrolly__rail { display: block; position: absolute; right: clamp(1rem, 2.5vw, 2.5rem); top: 50%; translate: 0 -50%; z-index: 2; }
.scrolly__rail ol { display: grid; gap: 0.15rem; margin: 0; padding: 0; list-style: none; }
.scrolly__rail button { display: flex; align-items: center; gap: 0.6rem; width: 100%; padding: 0.2rem 0; background: none; border: 0; font: 500 0.72rem/1.3 var(--mono); color: var(--muted); text-align: left; cursor: pointer; opacity: 0.55; transition: opacity 0.3s, color 0.3s; }
.scrolly__rail button span { display: inline-block; width: 1.4rem; height: 1px; background: currentColor; font-size: 0; transition: width 0.3s var(--ease); }
.scrolly__rail button:hover { opacity: 1; }
.scrolly__rail button[aria-current="true"] { opacity: 1; color: var(--red); }
.scrolly__rail button[aria-current="true"] span { width: 2.6rem; }
@media (max-width: 80rem) { .is-scrolly .scrolly__rail { display: none; } }
.scrolly.is-scrolly { height: 1350vh; }
@media (min-width: 64rem) { .scrolly__grid { grid-template-columns: minmax(0, 4.2fr) minmax(0, 7.8fr); } }
@media (min-width: 80.01rem) { .is-scrolly .scrolly__grid { padding-right: 9rem; } }

/* ---------- Phrase qui s'allume ---------- */
.statement { padding-block: clamp(6rem, 14vw, 11rem); }
.statement__lit { max-width: 20ch; margin: 0; font-size: clamp(2.3rem, 5.6vw, 5rem); font-weight: 760; font-stretch: 75%; line-height: 1.02; letter-spacing: -0.01em; color: var(--ink); }
.lit__w { color: rgba(15, 35, 64, 0.14); transition: color 0.35s; }
.lit__w.is-on, .is-lit .lit__w { color: var(--ink); }

/* ---------- Galerie horizontale ---------- */
.hg { position: relative; padding-block: clamp(4rem, 8vw, 6rem); border-top: 1.5px solid var(--ink); }
.hg__head .sechead { margin-bottom: 2rem; }
.hg__track { display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); padding: 0 clamp(1.25rem, 4vw, 2.5rem) 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.hg__card { flex: none; width: min(82vw, 34rem); scroll-snap-align: start; }
.hg__cap { display: grid; gap: 0.3rem; margin-top: 1.1rem; }
.hg__num { font-family: var(--mono); font-size: 0.78rem; color: var(--red); }
.hg__cap h3 { font-size: 1.7rem; font-weight: 760; font-stretch: 78%; }
.hg__cap p { margin: 0; color: var(--muted); }
.hg__end { flex: none; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.6rem; width: min(70vw, 22rem); min-height: 20rem; padding: 2rem; scroll-snap-align: start; background: var(--cyan); color: #fff; border-radius: 4px; text-decoration: none; font-weight: 600; transition: background-color 0.3s; }
.hg__end:hover { background: var(--ink); }
.hg__endtitle { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 760; font-stretch: 75%; line-height: 1; }
.hg__end span:last-child { font-family: var(--mono); font-size: 0.85rem; color: var(--mark); }
.hg__bar { display: none; height: 3px; margin-top: 1.5rem; background: var(--line-soft); }
.hg__bar span { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.hg.is-pinned { padding: 0; }
.hg.is-pinned .hg__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding-top: 4.1rem; }
.hg.is-pinned .hg__track { width: max-content; overflow: visible; will-change: transform; padding-bottom: 0; }
.hg.is-pinned .hg__card { width: clamp(24rem, 36vw, 36rem); }
.hg.is-pinned .hg__end { min-height: 100%; }
.hg.is-pinned .hg__bar { display: block; }

/* ---------- Services en cartes empilées ---------- */
.stack__list { display: grid; gap: 1.5rem; }
.stack__card {
  --k: 0; position: sticky; top: calc(5.5rem + var(--i) * 1.1rem);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2rem; align-items: center; min-height: 15rem; padding: clamp(1.5rem, 3vw, 2.6rem);
  background: #fff; color: var(--text); border: 1.5px solid var(--ink); border-radius: 6px; text-decoration: none;
  box-shadow: 0 -12px 32px -22px rgba(15, 35, 64, 0.6);
  transform: scale(calc(1 - var(--k) * 0.05)); transform-origin: 50% 0; transition: background-color 0.3s;
}
@media (min-width: 52rem) { .stack__card { grid-template-columns: 6rem minmax(0, 1fr) auto; gap: 2.5rem; } }
.stack__card .service__icon { width: 5rem; height: 5rem; }
.stack__body { display: grid; gap: 0.5rem; }
.stack__meta { font-family: var(--mono); font-size: 0.82rem; color: var(--red); }
.stack__title { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 780; font-stretch: 74%; line-height: 0.95; color: var(--ink); }
.stack__text { max-width: 36rem; font-size: 1.08rem; }
.stack__go { justify-self: start; padding: 0.6rem 1rem; border: 1.5px solid currentColor; border-radius: 3px; font-family: var(--mono); font-size: 0.8rem; white-space: nowrap; transition: background-color 0.2s, color 0.2s; }
.stack__card:hover .stack__go { background: var(--ink); color: #fff; border-color: var(--ink); }
.stack__card--1 { background: var(--cyan); color: var(--on-cyan); border-color: var(--cyan); }
.stack__card--2 { background: var(--ink); color: #dfe6f3; border-color: var(--ink); }
.stack__card:is(.stack__card--1, .stack__card--2) :is(.stack__title, .service__icon) { color: #fff; }
.stack__card:is(.stack__card--1, .stack__card--2) .stack__meta { color: var(--mark); }
.stack__card:is(.stack__card--1, .stack__card--2):hover .stack__go { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- Essai d'esquisse sur l'accueil ---------- */
.teaser { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: start; }
@media (min-width: 60rem) { .teaser { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 3.5rem; } }
.teaser__form { display: grid; gap: 0.6rem; padding: 1.5rem; background: #fff; border: 1.5px solid var(--ink); border-radius: 3px; box-shadow: 10px 10px 0 var(--line-soft); }
.teaser__form label { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.teaser__form input, .teaser__form select { width: 100%; margin-bottom: 0.6rem; padding: 0.7rem 0.8rem; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 3px; font-size: 1.05rem; }
.teaser__form .btn { justify-self: start; margin-top: 0.4rem; }
.teaser__frame .frame__body { aspect-ratio: auto; height: clamp(22rem, 55vh, 32rem); overflow-y: auto; }

/* ---------- Titres révélés mot à mot ---------- */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.w > span { display: inline-block; transition: transform 0.9s var(--ease); transition-delay: calc(var(--wi, 0) * 45ms); }
.reveal [data-reveal]:not(.is-in) .w > span { transform: translateY(105%); }

/* ---------- Curseur et boutons aimantés ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 999; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; translate: -50% -50%;
  border: 1.5px solid var(--line); border-radius: 50%; pointer-events: none;
  transition: width 0.25s var(--ease), height 0.25s var(--ease), background-color 0.25s, border-color 0.25s, scale 0.15s;
}
.cursor.is-hover { width: 3.4rem; height: 3.4rem; background: rgba(47, 91, 211, 0.1); }
.cursor.is-drag { width: 5.2rem; height: 5.2rem; background: var(--ink); border-color: var(--ink); }
.cursor.is-down { scale: 0.85; }
.cursor__label { font: 500 0.72rem/1 var(--mono); color: #fff; }
.btn, .slider__btn, .magnet { transition: background-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s var(--ease), translate 0.35s var(--ease); }

/* =====================================================================
   Illustrations des maquettes
   ===================================================================== */
.demo__img, .mock__img, .mock__photo { position: relative; overflow: hidden; }
.demo__img svg, .mock__img svg, .mock__photo svg { display: block; width: 100%; height: 100%; transition: opacity 0.6s; }
:is(.animate .build .demo:not(.is-colored), html.plan .demo, .slide:not(.is-active) .demo) .demo__img svg { opacity: 0; }
:is(html.plan, .sketch-frame.is-wire) .mock :is(.mock__img, .mock__photo) svg { opacity: 0; }

/* =====================================================================
   Exemple complet : pizzeria Fiamma (fictive)
   ===================================================================== */
.devices { margin-top: -0.5rem; }
.pz-frame .frame__body { height: clamp(36rem, 82vh, 48rem); }
.pz-frame[data-device="mobile"] .frame__body { height: min(46rem, 80vh); }
.pz {
  --pz-ink: #24160f; --pz-red: #c2361b; --pz-cream: #fff8ee; --pz-sand: #f3e4cc; --pz-olive: #4a6b2a;
  position: relative; min-height: 100%; background: var(--pz-cream); color: var(--pz-ink); font: 400 15px/1.55 system-ui, "Segoe UI", sans-serif;
}
.pz p { margin: 0; max-width: none; }
.pz__nav { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; gap: 1.5rem; padding: 0.85rem 1.6rem; background: rgba(29, 20, 16, 0.94); color: #f6e7d2; backdrop-filter: blur(6px); }
.pz__logo { margin-right: auto; font: italic 700 1.6rem/1 Georgia, "Times New Roman", serif; color: #ffcf8a; }
.pz__logo small { margin-left: 0.5rem; font: 500 0.7rem/1 system-ui, sans-serif; letter-spacing: 0.08em; color: #d8c2a5; font-style: normal; }
.pz__links { display: flex; gap: 1.3rem; font-size: 0.92rem; }
.pz__cartbtn { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.5rem 0.95rem; background: var(--pz-red); color: #fff; border: 0; border-radius: 999px; font: 600 0.9rem/1 system-ui, sans-serif; cursor: pointer; }
.pz__count { display: grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding: 0 0.3rem; background: #fff; color: var(--pz-red); border-radius: 999px; font-size: 0.78rem; }
.pz__hero { position: relative; display: grid; align-items: end; min-height: 30rem; color: #fff; background: #1d1410; overflow: hidden; }
.pz__heroart { position: absolute; top: 0; right: 0; bottom: 0; left: 34%; }
.pz__heroart svg { width: 100%; height: 100%; display: block; }
.pz__hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 13, 10, 0.92) 0%, rgba(20, 13, 10, 0.55) 45%, rgba(20, 13, 10, 0) 70%); }
.pz__herotext { position: relative; z-index: 1; max-width: 32rem; padding: 3rem 1.6rem 3.2rem; }
.pz__kicker { display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem !important; padding: 0.35rem 0.8rem; background: rgba(255, 255, 255, 0.1); border-radius: 999px; font-size: 0.85rem; }
.pz__dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #ef5350; }
.pz__dot.is-open { background: #66bb6a; box-shadow: 0 0 0 4px rgba(102, 187, 106, 0.25); }
.pz__title { font: italic 700 clamp(2rem, 5cqw, 3.2rem)/1.04 Georgia, "Times New Roman", serif; letter-spacing: -0.01em; }
.pz__lead { margin-top: 1rem !important; max-width: 28rem; color: #ecdcc6; font-size: 1.02rem; }
.pz__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem !important; }
.pz__btn { padding: 0.75rem 1.25rem; background: var(--pz-red); color: #fff; border: 0; border-radius: 999px; font: 600 0.95rem/1.2 system-ui, sans-serif; cursor: pointer; transition: background-color 0.2s, transform 0.2s var(--ease); }
.pz__btn:hover { background: #a42a12; }
.pz__btn:active { transform: scale(0.97); }
.pz__btn--ghost { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.7); }
.pz__btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }
.pz__btn--light { background: #fff; color: var(--pz-red); }
.pz__btn--light:hover { background: #ffe9d2; }
.pz__usp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; padding: 1.4rem 1.6rem; background: var(--pz-sand); }
.pz__usp > div { display: flex; align-items: center; gap: 0.7rem; font-size: 0.9rem; }
.pz__icon { display: grid; place-items: center; flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: #fff; color: var(--pz-red); }
.pz__icon svg { width: 1.35rem; height: 1.35rem; }
.pz__menu, .pz__gallery, .pz__info { padding: 3rem 1.6rem; }
.pz__h2 { font: italic 700 2rem/1.1 Georgia, "Times New Roman", serif; color: var(--pz-ink); }
.pz__sub { margin-top: 0.3rem !important; color: #7b6352; }
.pz__tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1.3rem 0 1.4rem; }
.pz__tab { padding: 0.5rem 1rem; background: #fff; border: 1px solid #e6d3b7; border-radius: 999px; font: 500 0.9rem/1.2 system-ui, sans-serif; color: var(--pz-ink); cursor: pointer; }
.pz__tab[aria-selected="true"] { background: var(--pz-ink); border-color: var(--pz-ink); color: #fff; }
.pz__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); gap: 1rem; }
.pz__item { display: flex; flex-direction: column; gap: 0.7rem; padding: 1rem; background: #fff; border-radius: 1rem; box-shadow: 0 1px 0 #ecdcc4, 0 14px 30px -24px rgba(36, 22, 15, 0.55); animation: swap 0.4s var(--ease); }
.pz__art { display: block; aspect-ratio: 1; padding: 6%; border-radius: 0.8rem; background: radial-gradient(circle at 50% 45%, #f7e9d3, #ecd6b4); }
.pz__art svg { display: block; width: 100%; height: 100%; transition: transform 0.6s var(--ease); }
.pz__item:hover .pz__art svg { transform: rotate(12deg) scale(1.03); }
.pz__itemtext h4 { margin: 0 0 0.25rem; font: 700 1.15rem/1.2 Georgia, serif; color: var(--pz-ink); }
.pz__itemtext p { font-size: 0.86rem; color: #7b6352; }
.pz__tag { display: inline-block; margin-bottom: 0.3rem; padding: 0.15rem 0.55rem; background: #fde5d8; color: var(--pz-red); border-radius: 999px; font-size: 0.72rem; font-weight: 600; }
.pz__itemfoot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.pz__price { font-weight: 700; font-size: 1.02rem; }
.pz__add { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; background: var(--pz-red); color: #fff; border: 0; border-radius: 50%; font: 600 1.4rem/1 system-ui, sans-serif; cursor: pointer; transition: transform 0.2s var(--ease), background-color 0.2s; }
.pz__add:hover { background: #a42a12; }
.pz__add.is-added { animation: bump 0.45s var(--ease); background: var(--pz-olive); }
.pz__gallery { background: #24160f; color: #f6e7d2; }
.pz__gallery .pz__h2 { color: #ffcf8a; }
.pz__pics { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1rem; margin-top: 1.4rem; }
.pz__pics figure { margin: 0; }
.pz__pic { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 0.8rem; }
.pz__pic svg { display: block; width: 100%; height: 100%; }
.pz__pics figcaption { margin-top: 0.5rem; font-size: 0.85rem; color: #d8c2a5; }
.pz__info { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: start; }
.pz__hours { margin: 1rem 0; padding: 0; list-style: none; }
.pz__hours li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px solid #ecdcc4; font-size: 0.92rem; }
.pz__hours li span:first-child { font-weight: 600; }
.pz__tel { font-weight: 600; color: var(--pz-red); }
.pz__map p { margin-top: 0.5rem !important; font-size: 0.9rem; color: #7b6352; }
.pz__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; padding: 1.2rem 1.6rem 5rem; background: #1d1410; color: #bfa98e; font-size: 0.8rem; }
.pz__bar { position: sticky; bottom: 0; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: -4rem; padding: 0.8rem 1.6rem; background: var(--pz-red); color: #fff; font-size: 0.95rem; transform: translateY(110%); transition: transform 0.4s var(--ease); }
.pz__bar.is-on { transform: none; }
.pz__sheet {
  position: absolute; top: 2.35rem; right: 0; bottom: 0; z-index: 6; display: flex; flex-direction: column; gap: 0.9rem; width: min(23rem, 100%); padding: 1.2rem 1.4rem;
  background: #fff; color: #24160f; box-shadow: -24px 0 40px -24px rgba(0, 0, 0, 0.45); font: 400 15px/1.5 system-ui, sans-serif; overflow-y: auto; animation: pzin 0.4s var(--ease);
}
.pz__sheet[hidden] { display: none; }
@keyframes pzin { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.pz__sheethead { display: flex; align-items: center; justify-content: space-between; }
.pz__sheethead p { margin: 0; font: italic 700 1.4rem/1 Georgia, serif; }
.pz__close { width: 2.2rem; height: 2.2rem; background: none; border: 1px solid #e6d3b7; border-radius: 50%; font-size: 1.3rem; cursor: pointer; }
.pz__lines { margin: 0; padding: 0; list-style: none; }
.pz__lines li { display: flex; justify-content: space-between; padding: 0.45rem 0; border-bottom: 1px solid #f0e3cf; }
.pz__modes { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pz__chip { padding: 0.45rem 0.9rem; background: #fff; border: 1px solid #e6d3b7; border-radius: 999px; font: inherit; font-size: 0.88rem; cursor: pointer; }
.pz__chip[aria-checked="true"] { background: #24160f; color: #fff; border-color: #24160f; }
.pz__field { display: grid; gap: 0.3rem; font-size: 0.85rem; }
.pz__field select { padding: 0.55rem; border: 1px solid #e6d3b7; border-radius: 0.5rem; background: #fff; font-size: 1rem; }
.pz__sum { display: flex; justify-content: space-between; margin: 0; padding-top: 0.6rem; border-top: 2px solid #24160f; font-size: 1.05rem; }
.pz__done { display: grid; justify-items: center; gap: 0.7rem; margin: auto 0; text-align: center; }
.pz__check { display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 50%; background: var(--ok); color: #fff; font-size: 1.5rem; }
.pz__h { font: italic 700 1.5rem/1.1 Georgia, serif; }
@container (max-width: 44rem) {
  .pz__links { display: none; }
  .pz__nav { padding: 0.75rem 1rem; }
  .pz__hero { min-height: 34rem; align-items: end; }
  .pz__heroart { left: 0; }
  .pz__hero::after { background: linear-gradient(0deg, rgba(20, 13, 10, 0.95) 0%, rgba(20, 13, 10, 0.6) 55%, rgba(20, 13, 10, 0.1) 100%); }
  .pz__herotext { padding: 2rem 1rem; }
  .pz__usp { grid-template-columns: minmax(0, 1fr); padding: 1.2rem 1rem; }
  .pz__menu, .pz__gallery, .pz__info { padding: 2.2rem 1rem; }
  .pz__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
  .pz__item { padding: 0.7rem; }
  .pz__itemtext p { display: none; }
  .pz__pics { grid-template-columns: minmax(0, 1fr); }
  .pz__info { grid-template-columns: minmax(0, 1fr); }
  .pz__bar { padding: 0.7rem 1rem; font-size: 0.85rem; }
}

/* =====================================================================
   VERSION SOBRE : apparence professionnelle, sans effets superflus
   (ces règles remplacent les précédentes)
   ===================================================================== */
:root {
  --paper: #ffffff; --paper-2: #f5f5f2; --ink: #0f2340; --text: #2a3342; --muted: #5f6876;
  --line: #1f4fd1; --line-soft: rgba(15, 35, 64, 0.08); --border: #e4e4df; --red: #b3261e;
  --shadow: 0 24px 48px -30px rgba(15, 35, 64, 0.35);
}
body { background: #fff; background-image: none; }
h1, h2, h3, h4 { font-stretch: 100%; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 4.4vw, 3.7rem); font-weight: 700; line-height: 1.06; }
h2 { font-size: clamp(1.8rem, 3.1vw, 2.6rem); font-weight: 700; line-height: 1.1; }
h3 { font-weight: 650; }
a { color: var(--line); }

/* En-tête */
.top { background: rgba(255, 255, 255, 0.94); border-bottom: 1px solid var(--border); }
.brand { font-stretch: 100%; font-size: 1.25rem; font-weight: 750; letter-spacing: -0.02em; }
.brand::before { width: 0.85rem; height: 0.85rem; border: 0; border-radius: 3px; background: var(--ink); }
.nav a[aria-current="page"]:not(.btn) { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 0.5em; text-decoration-color: var(--line); }
.menu-btn { border: 1px solid var(--border); border-radius: 8px; }

/* Boutons */
.btn, .btn--small { border-radius: 8px; box-shadow: none; }
.btn:hover, .btn--small:hover { transform: none; box-shadow: none; background: var(--line); }
.btn:active { transform: none; box-shadow: none; }
.btn--light { box-shadow: none; }
.btn--light:hover { background: #e8edfb; color: var(--ink); box-shadow: none; }
.textlink { font-weight: 600; text-underline-offset: 0.3em; }

/* Sections */
.block--tint { background: var(--paper-2); border: 0; }
.cyan { background-color: var(--ink); background-image: none; }
.sechead { margin-bottom: clamp(2rem, 4vw, 3rem); }
.sechead__title { display: block; }
.sechead h2 { max-width: 20ch; }
.sechead p { color: var(--muted); font-size: 1.08rem; }
ul.plain li { padding-left: 1.3rem; }
ul.plain li::before { left: 0.15rem; top: 0.95em; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--line); }
ul.plain li::after { display: none; }
.cyan ul.plain li::before { background: #9db0ff; }

/* Textes secondaires : plus de police « machine à écrire » */
:is(.scrolly__num, .scrolly__alt, .scrolly__hint, .scrolly__rail button, .slide__sector, .scale__meta, .crumbs, .timeline__web, .hg__num,
  .ctl > label, .ctl legend, .teaser__form label, .devices button, .slider__status, .compare__tag, .compare figcaption, .other__for,
  .method__stage, .studio__status, .field label, .try__title, .tool__about h3) { font-family: var(--sans); letter-spacing: 0; }
:is(.scrolly__num, .slide__sector, .scale__meta, .timeline__web, .hg__num, .other__for, .method__stage) { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.scrolly__alt { color: var(--line); font-size: 0.95rem; font-weight: 600; }
.field label { font-size: 0.85rem; }

/* En-tête des pages intérieures */
.pagehead { background: var(--paper-2); border-bottom: 1px solid var(--border); padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 6vw, 4.5rem); }
.pagehead__grid { grid-template-columns: minmax(0, 1fr); }
.pagehead h1 { max-width: 20ch; color: var(--ink); }
.pagehead .lead { max-width: 40rem; color: var(--muted); }
.crumbs { color: var(--muted); font-size: 0.88rem; }
.crumbs a { color: var(--ink); }

/* Cadres et cartes : bordure fine, ombre douce */
.frame { border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); }
.frame__bar { background: #f7f7f5; border-bottom: 1px solid var(--border); }
.frame__url { background: #fff; border-radius: 6px; }
.term, .est__card, .teaser__form, .studio__controls { box-shadow: none; border: 1px solid var(--border); border-radius: 10px; }
.term { border: 0; }
.chip span, .shop__chip { border-radius: 999px; border-width: 1px; }
.chip span { border-color: #cfcfc9; }
.chip input:hover + span, .chip input:checked + span { box-shadow: none; }
.slider__btn { border: 1px solid var(--border); border-radius: 8px; }
.devices button { border: 1px solid var(--border); border-radius: 6px; font-size: 0.88rem; }
.est select, .ctl input[type="text"], .ctl select, .teaser__form input, .teaser__form select { border: 1px solid #cfcfc9; border-radius: 8px; background: #fff; }
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary::after { font-family: var(--sans); border: 1px solid var(--border); color: var(--ink); }
.faq details[open] summary::after { background: var(--ink); color: #fff; }

/* Accueil : maquette 3D plus sobre */
.scrolly.is-scrolly { height: 1000vh; }
.scrolly h1 { max-width: 15ch; font-size: clamp(2.4rem, 4.2vw, 3.9rem); }
.scrolly__step h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.05; }
.scrolly__progress span { background: var(--ink); }
.scrolly__rail button[aria-current="true"] { color: var(--ink); }
.pc--img { background: #cdd8f4; }
.pc--img1 { background: #e2e7f3; }
.pc--img2 { background: #d5ddf0; }
.pc--img3 { background: #e8ecf5; }
.pc--img0::after { display: none; }
.sheet3d__b { background: #d5ddf0; }
.ph--img { background: #cdd8f4; }
.ph--row span { background: #e2e7f3; }
.pc--title { font-stretch: 100%; letter-spacing: -0.02em; }
@media (max-width: 63.99rem) { .is-scrolly .scrolly__intro h1 { font-size: clamp(1.9rem, 7.6vw, 2.8rem); max-width: 18ch; } }

.statement { padding-block: clamp(4.5rem, 10vw, 7rem); }
.statement__lit { max-width: 28ch; font-size: clamp(1.7rem, 3.4vw, 2.7rem); font-weight: 650; font-stretch: 100%; line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); }

/* Réalisations : grille simple */
.hg { border-top: 0; padding-block: clamp(4.5rem, 9vw, 7rem); }
.hg__track { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); gap: 2rem; max-width: var(--wrap); margin-inline: auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); overflow: visible; scroll-snap-type: none; }
.hg__card, .hg.is-pinned .hg__card { width: auto; }
.hg__cap h3 { font-size: 1.25rem; font-weight: 650; font-stretch: 100%; }
.hg__end { width: auto; min-height: 12rem; justify-content: center; background: var(--paper-2); color: var(--ink); border: 1px solid var(--border); border-radius: 10px; }
.hg__end:hover { background: #eef1f8; }
.hg__endtitle { font-size: 1.5rem; font-weight: 700; font-stretch: 100%; }
.hg__end span:last-child { font-family: var(--sans); font-size: 1rem; color: var(--line); }
.hg__bar { display: none !important; }

/* Services de l'accueil : grille de cartes */
.stack__list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 1.25rem; }
.stack__card, .stack__card--1, .stack__card--2 {
  position: static; transform: none; min-height: 0; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-content: start;
  padding: 1.75rem; background: #fff; color: var(--text); border: 1px solid var(--border); border-radius: 10px; box-shadow: none; transition: border-color 0.2s;
}
.stack__card:hover { border-color: var(--ink); }
.stack__card .service__icon, .stack__card:is(.stack__card--1, .stack__card--2) .service__icon { width: 2.8rem; height: 2.8rem; color: var(--line); }
.stack__title, .stack__card:is(.stack__card--1, .stack__card--2) .stack__title { font-size: 1.35rem; font-weight: 700; font-stretch: 100%; line-height: 1.2; color: var(--ink); }
.stack__text { font-size: 1rem; color: var(--muted); }
.stack__go, .stack__card:is(.stack__card--1, .stack__card--2) .stack__go { padding: 0; border: 0; font-family: var(--sans); font-size: 0.95rem; font-weight: 600; color: var(--line); }
.stack__card:hover .stack__go, .stack__card:is(.stack__card--1, .stack__card--2):hover .stack__go { background: none; color: var(--line); text-decoration: underline; }
@media (min-width: 52rem) { .stack__card { grid-template-columns: minmax(0, 1fr); } }

/* Page Services */
.services { border-top: 1px solid var(--border); }
.service { border-bottom: 1px solid var(--border); }
.service::after { display: none; }
.service__icon { color: var(--line); }
.service:hover .service__icon { transform: none; color: var(--line); }
.service__title { font-size: clamp(1.45rem, 2.4vw, 1.9rem); font-weight: 700; font-stretch: 100%; }
.why__item h3, .scale__item h3, .timeline h3, .slider--full .slide__caption h3, .other h3 { font-stretch: 100%; font-weight: 700; }
.why__item::before { height: 1px; background: var(--border); }
.other { border: 1px solid var(--border); border-radius: 10px; }
.other:hover { transform: none; box-shadow: none; border-color: var(--ink); }
.other h3 { font-size: 1.15rem; }

/* Méthode : sans cotes */
.cote { display: none; }
.drawing { padding: 0; }
.timeline li::before { font-family: var(--sans); font-weight: 600; }
.timeline::before { background: var(--border); }

/* Bande d'appel */
.cta h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.cta p { color: #c5cfe0; }

/* Exemples : couleurs pleines plutôt que dégradés */
.shop__banner { background: #f3e7d1; }
.pz__art { background: #f6ead7; }
.demo__img, .demo__tile:nth-child(2) .demo__img, .demo__tile:nth-child(3) .demo__img { background: var(--d-tint); }
.mock__img, .mock__tile:nth-child(2) .mock__img, .mock__photo { background: var(--m-tint); }
.compare__handle, .compare__handle::after { background: var(--ink); }
.compare__range { accent-color: var(--ink); }

/* Pied de page */
.foot { padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem; background: var(--ink); color: #c5cfe0; border-top: 0; }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
@media (min-width: 52rem) { .foot__grid { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 3rem; } }
.foot__brand { margin: 0 0 0.6rem; font-size: 1.25rem; font-weight: 750; letter-spacing: -0.02em; color: #fff; }
.foot__desc { margin: 0; max-width: 24rem; font-size: 0.98rem; }
.foot__title { margin: 0 0 0.8rem; font-weight: 650; color: #fff; }
.foot ul { display: grid; gap: 0.45rem; margin: 0; padding: 0; list-style: none; font-size: 0.95rem; }
.foot a { color: #c5cfe0; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot__bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.88rem; }
.foot__bottom p { margin: 0; }
.is-scrolly .scrolly__hint { font-family: var(--sans); font-size: 0.9rem; letter-spacing: 0; }
.cta.cyan { background: var(--paper-2); color: var(--text); border-top: 1px solid var(--border); }
.cta.cyan h2 { color: var(--ink); }
.cta.cyan p { color: var(--muted); }
.cta.cyan .btn--light { background: var(--ink); color: #fff; }
.cta.cyan .btn--light:hover { background: var(--line); color: #fff; }

/* =====================================================================
   Maquette 3D de l'accueil : reprend fidèlement le vrai site
   ===================================================================== */
.plate { border: 1px solid #c9ced8; border-radius: 0.9cqw; background-color: #fff; background-image: linear-gradient(rgba(31, 79, 209, calc(0.1 * var(--wire))) 1px, transparent 1px), linear-gradient(90deg, rgba(31, 79, 209, calc(0.1 * var(--wire))) 1px, transparent 1px); }
.ly__bar { height: 6.2%; background: #f7f7f5; border-bottom: 1px solid #e4e4df; font: 500 1.1cqw/1 system-ui, sans-serif; }
.ly__bar b { background: #fff; border: 1px solid #e4e4df; border-radius: 0.5cqw; }
.wire rect { fill: rgba(31, 79, 209, 0.04); stroke: #1f4fd1; }

.pc--block { border-radius: 0.7cqw; }
.model.is-painted .pc--block { border-style: solid; border-color: transparent; background: transparent; }
.model.is-painted .pc--b-header { border-radius: 0; border-color: transparent transparent #e4e4df; }
.model.is-painted .pc--b-card { border-color: #e4e4df; background: #fff; box-shadow: 0 1.6cqw 3cqw -2cqw rgba(15, 35, 64, 0.35); }

.pc--img { overflow: hidden; border-radius: 0.7cqw; background: #dfe6f5; }
.pc--img svg, .ph--img svg, .ph--row svg { display: block; width: 100%; height: 100%; }
.pc--img1, .pc--img2, .pc--img3 { border-radius: 0.7cqw 0.7cqw 0 0; clip-path: inset(calc((1 - var(--k)) * 100%) 0 0 0 round 0.7cqw 0.7cqw 0 0); }

.pc--text { color: #0f2340; }
.pc--brand { letter-spacing: -0.02em; }
.pc--links { color: #2a3342; }
.pc--title { width: var(--w); font-size: 3cqw; font-weight: 720; line-height: 1.08; letter-spacing: -0.025em; }
.pc--lead { white-space: normal; width: var(--w); color: #5f6876; }
.pc--link { color: #1f4fd1; text-decoration: underline; text-underline-offset: 0.3em; text-decoration-thickness: 0.12cqw; }

.pc--logo { border-radius: 0.3cqw; background: #0f2340; }
.pc--btn, .pc--btn-sm { white-space: nowrap; border-radius: 0.6cqw; background: #0f2340; color: #fff; font: 600 1.2cqw/1 system-ui, sans-serif; clip-path: inset(0 calc((1 - var(--k)) * 100%) 0 0 round 0.6cqw); }
.pc--btn-sm { font-size: 1.02cqw; }
.pc--band { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; align-items: center; justify-items: start; padding: 0 4%; border-radius: 0 0 0.9cqw 0.9cqw; background: #0f2340; color: #aab6cc; font: 500 1.05cqw/1 system-ui, sans-serif; }
.pc--band span:first-child { color: #fff; font-weight: 700; font-size: 1.25cqw; }

/* Éditeur : plus bas pour rester dans le cadre */
.editor { left: 42%; top: 12%; width: 54%; background: #13213a; border-radius: 0.9cqw; font-size: 1.3cqw;
  transform: translateZ(calc(14cqw + (1 - var(--k)) * 10cqw)) rotateX(-48deg) rotateY(calc((1 - var(--k)) * 18deg)); }

/* Les autres pages du site */
.sheet3d { border: 1px solid #c9ced8; border-radius: 0.9cqw; background: #fff; }
.sheet3d::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 13%; border-bottom: 1px solid #e4e4df; background: linear-gradient(#0f2340, #0f2340) 4% 50% / 1.7% 22% no-repeat; }
.sheet3d__t { top: 20%; left: 4%; font: 720 2.6cqw/1 var(--sans); font-stretch: 100%; letter-spacing: -0.02em; }
.sheet3d__b { top: 36%; left: 4%; width: 44%; height: 3%; border-radius: 1cqw; background: #e4e8f0; box-shadow: 0 2.6cqw 0 #e4e8f0, 0 5.2cqw 0 #e4e8f0; }
.sheet3d__b--2 { top: 30%; left: 55%; width: 41%; height: 46%; border-radius: 0.7cqw; background: #dfe6f5; box-shadow: none; }

/* Téléphone : la même page, en version mobile */
.phone3d { left: 103%; top: 12%; width: 19%; padding: 0.7cqw; background: #13213a; border-radius: 2.6cqw; }
.phone3d__screen { gap: 0.9cqw; padding: 1cqw; background: #fff; border-radius: 2cqw; }
.ph--nav { display: flex; align-items: center; gap: 0.5cqw; padding-bottom: 0.8cqw; border-bottom: 1px solid #e4e4df; font: 700 0.95cqw/1 var(--sans); color: #0f2340; }
.ph--nav b { width: 0.8cqw; height: 0.8cqw; border-radius: 0.2cqw; background: #0f2340; }
.ph--nav i { margin-left: auto; width: 1.4cqw; height: 0.9cqw; border-block: 0.18cqw solid #0f2340; }
.ph--title { font: 720 1.45cqw/1.1 var(--sans); font-stretch: 100%; letter-spacing: -0.02em; color: #0f2340; }
.ph--btn { padding: 0.65cqw 1cqw; border-radius: 0.4cqw; background: #0f2340; font-size: 0.85cqw; }
.ph--img { flex: 1; min-height: 5cqw; overflow: hidden; border-radius: 0.6cqw; background: #dfe6f5; }
.ph--row { height: 5cqw; gap: 0.6cqw; }
.ph--row span { overflow: hidden; border-radius: 0.5cqw; background: #e2e7f3; }

.pc--check { padding: 0.55cqw 1.1cqw; border-radius: 0.5cqw; font: 600 1.2cqw/1 system-ui, sans-serif; }

/* Cadrage sur téléphone : maquette plus petite et centrée */
@media (max-width: 63.99rem) {
  .stage3d { min-height: 0; }
  .model { width: 70%; }
}
.pc--paint { transform: translateZ(calc((1 - var(--k)) * 22cqw + var(--gap) * 4cqw)); }
.pc--band { transform: translateZ(calc((1 - var(--k)) * 22cqw + var(--gap) * 1.5cqw)); }
@media (max-width: 63.99rem) { .model { width: 82%; } }

/* Accueil : exemples en carrousel horizontal */
.hg__nav { display: flex; align-items: center; gap: 0.6rem; margin-top: 1.5rem; }
.hg__count { min-width: 3.5rem; font-size: 0.95rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.hg__nav .slider__btn { border: 1px solid var(--border); border-radius: 8px; }
.hg__nav .slider__btn:disabled { opacity: 0.35; cursor: default; background: #fff; color: var(--ink); }
.hg__track {
  display: flex; grid-template-columns: none; gap: clamp(1rem, 2.5vw, 2rem); max-width: none;
  padding: 0.5rem max(clamp(1.25rem, 4vw, 2.5rem), calc((100vw - var(--wrap)) / 2 + clamp(1.25rem, 4vw, 2.5rem))) 1.5rem;
  scroll-padding-inline: max(clamp(1.25rem, 4vw, 2.5rem), calc((100vw - var(--wrap)) / 2 + clamp(1.25rem, 4vw, 2.5rem)));
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: none; scrollbar-width: none; cursor: grab;
}
.hg__track::-webkit-scrollbar { display: none; }
.hg__track.is-drag { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.hg__track.is-drag * { pointer-events: none; }
.hg__track:focus-visible { outline: 2px solid var(--line); outline-offset: -2px; }
.hg__card, .hg.is-pinned .hg__card { flex: none; width: min(84vw, 36rem); scroll-snap-align: start; }
.hg__end { flex: none; width: min(70vw, 20rem); scroll-snap-align: start; }

.hg__track.is-ready { scroll-snap-type: x mandatory; }
.hg__track.is-ready.is-drag { scroll-snap-type: none; }

/* Devis : activité en deux listes (secteur, métier) */
.est__qt { display: block; margin-bottom: 0.7rem; font-weight: 650; font-size: 1.05rem; color: var(--ink); }
.est__pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 0.9rem 1rem; max-width: 40rem; }
.est__pair[hidden], .est select[hidden] { display: none; }
.est__field { display: grid; gap: 0.35rem; min-width: 0; }
.est__field label { font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.est .est__field select { max-width: none; min-height: 3rem; }
.est select:disabled { background: var(--paper-2); color: var(--muted); cursor: not-allowed; }
main select:not([multiple]):not(.frame select):not(.shop select):not(.hr select):not(.pz select) { appearance: none; -webkit-appearance: none; min-height: 2.9rem; padding-right: 2.6rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f2340' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.85rem center; background-size: 1.1rem; }
@media (max-width: 40rem) {
  .est .chips { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .est .chip, .est .chip span { display: flex; width: 100%; height: 100%; }
  .est .chip span { align-items: center; justify-content: center; text-align: center; min-height: 3rem; padding-inline: 0.6rem; }
}

/* Confort tactile et lisibilité */
.opt { color: var(--muted); font-weight: 400; }
#sketch-copy { padding-block: 0.6rem; }
.slider__dot { height: 2.75rem; }
.shop__chip { min-height: 2.5rem; }
input[type="range"] { min-height: 2rem; }
main .cyan select:not([multiple]):not(.frame select):not(.shop select):not(.hr select):not(.pz select) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
.cyan select option { color: #0f2340; background: #fff; }

/* WhatsApp */
[data-wa][hidden], [data-wa-item][hidden] { display: none !important; }
.btn--wa { display: inline-flex; align-items: center; gap: 0.55rem; }
.wa-ico { width: 1.25rem; height: 1.25rem; flex: none; color: #1a8f4c; }
.contact__direct { display: grid; justify-items: start; gap: 0.9rem; margin-top: 1.6rem; }
.contact__direct p { margin: 0; }
.contact__mail { font-size: 0.95rem; opacity: 0.9; }
.est__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.est__actions .btn--wa { border: 1px solid var(--border); }
.cyan .field select { appearance: none; -webkit-appearance: none; padding-right: 2rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.2rem center; background-size: 1.1rem; }
.form__send { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn--ghost.btn--wa { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.55); }
.btn--ghost.btn--wa:hover { background: rgba(255, 255, 255, 0.1); }
.btn--ghost .wa-ico { color: #5fd38d; }

/* =====================================================================
   Contact : un seul formulaire de demande de devis
   ===================================================================== */
.qwrap { max-width: 50rem; }
.qf2 { position: relative; display: grid; gap: 1.6rem; }
.qf2__group { display: grid; gap: 1.4rem; margin: 0; padding: clamp(1.25rem, 3.5vw, 2rem); border: 1px solid var(--border); border-radius: 12px; background: #fff; min-width: 0; }
.qf2__title { display: flex; align-items: center; gap: 0.75rem; float: left; width: 100%; margin: 0 0 0.2rem; padding: 0; font-size: 1.2rem; font-weight: 700; color: var(--ink); }
.qf2__title + * { clear: both; }
.qf2__num { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--ink); color: #fff; font-size: 0.95rem; font-weight: 700; }
.qf2__q { margin: 0; padding: 0; border: 0; min-width: 0; border-radius: 8px; transition: box-shadow 0.2s, background-color 0.2s; }
.qf2__label { display: block; margin: 0 0 0.7rem; padding: 0; font-weight: 650; font-size: 1rem; color: var(--ink); }
.qf2__q.is-missing { margin: -0.7rem; padding: 0.7rem; box-shadow: inset 0 0 0 2px var(--red); background: #fff7f6; }
.qf2__q.is-missing .qf2__label::after { content: " — à compléter"; color: var(--red); font-weight: 500; }
.qf2__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1.4rem 1rem; }
.qf2 .est__pair { max-width: none; }

.qf2 .field label { margin-bottom: 0.4rem; font-family: var(--sans); font-size: 0.95rem; font-weight: 600; color: var(--ink); }
.qf2 .opt { color: var(--muted); font-weight: 400; }
.qf2 .field input:not([type="checkbox"]), .qf2 .field textarea, .qf2 select {
  width: 100%; min-height: 3rem; padding: 0.7rem 0.9rem; background-color: #fff; border: 1px solid #cfcfc9; border-radius: 8px; color: var(--ink); font-size: 1rem; font-family: inherit;
}
.qf2 select { padding-right: 2.6rem; }
.qf2 select:disabled { background-color: var(--paper-2); color: var(--muted); }
.qf2 .field textarea { min-height: 8rem; line-height: 1.5; }
.qf2 .field input:focus, .qf2 .field textarea:focus, .qf2 select:focus { outline: 2px solid var(--line); outline-offset: 1px; border-color: var(--line); }
.qf2 .field input[aria-invalid="true"], .qf2 .field textarea[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); background: #fff7f6; }
.qf2 .field--check { padding: 0 0.2rem; }
.qf2 .field--check input { accent-color: var(--ink); width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; }
.qf2 .field--check input[aria-invalid="true"] { outline: 2px solid var(--red); outline-offset: 2px; }
.qf2 .field--check label { color: var(--text); font-size: 0.95rem; font-weight: 400; }

.qf2__advice:empty { display: none; }
.qf2__advice { padding: 1.1rem 1.2rem; border-radius: 10px; background: #eef2fb; border-left: 4px solid var(--line); }
.qf2__advice p { margin: 0 0 0.4rem; }
.qf2__advice p:last-child { margin: 0; }
.qf2__advice-t { font-weight: 700; color: var(--ink); }

.qf2 .form__send { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.qf2 .form__send .btn { min-height: 3.1rem; }
.btn--line { background: #fff; color: var(--ink); border: 1px solid #cfcfc9; }
.btn--line:hover { background: #f1f7f3; color: var(--ink); }
.qf2 .form__status { font-weight: 500; }
.qf2 .form__status.is-error { color: var(--red); }
.qf2 .form__status.is-ok { color: #1a7a43; }
.qf2__note { margin: -0.6rem 0 0; font-size: 0.9rem; color: var(--muted); }
.qf2 .sketch-received, .qwrap .sketch-received { color: var(--line); font-weight: 600; }
@media (max-width: 40rem) {
  .qf2 .chips { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .qf2 .chip, .qf2 .chip span { display: flex; width: 100%; height: 100%; }
  .qf2 .chip span { align-items: center; justify-content: center; text-align: center; min-height: 3rem; padding-inline: 0.6rem; }
  .qf2 .form__send .btn { width: 100%; justify-content: center; }
}
.qf2__q > legend.qf2__label { float: left; width: 100%; }
.qf2__q > legend.qf2__label + * { clear: both; }
.qwrap .sechead { display: block; }
.qwrap .sechead p { max-width: 40rem; margin-top: 0.8rem; }
.qwrap .sechead h2 { max-width: none; }

/* Maquette 3D : textes qui tiennent dans leur zone, quelle que soit la police */
.model .pc--text { font-family: var(--sans); font-stretch: 100%; }
.pc--links, .pc--link { width: var(--w); white-space: pre; overflow: hidden; text-overflow: clip; }
.pc--links { text-align: right; }
.pc--title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font-size: 2.75cqw; }
.pc--lead { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.pc--btn, .pc--btn-sm { display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 0 0.4cqw; font-size: 1.05cqw; letter-spacing: -0.01em; }
.pc--btn-sm { font-size: 0.9cqw; }
.pc--band { white-space: nowrap; overflow: hidden; }
.ph--btn { white-space: nowrap; }

/* Maquette 3D : dessinée à taille fixe (2000 px) puis réduite à l'écran.
   Les textes gardent ainsi de vraies tailles : le téléphone ne les grossit plus. */
.stage3d { container-type: normal; perspective: none; aspect-ratio: 2 / 1; height: auto; --fit: 0.45; }
.stage3d__fit {
  position: absolute; left: 50%; top: 50%; width: 2000px; height: 1250px;
  display: grid; place-items: center;
  container-type: inline-size; perspective: 5200px; perspective-origin: 50% 35%;
  transform: translate(-50%, -50%) scale(var(--fit)); transform-style: preserve-3d;
}
@media (max-width: 63.99rem) { .model { width: 90%; } }

/* Téléphone et tablette : maquette à plat, sans 3D (rendu fiable sur tous les appareils) */
.stage3d.is-flat .stage3d__fit { perspective: none; transform-style: flat; }
.stage3d.is-flat .model,
.stage3d.is-flat .model * { transform-style: flat !important; }
.stage3d.is-flat .model { width: 76%; transform: translateX(var(--mx)) scale(var(--sc)); }
.stage3d.is-flat .pc { transform: none !important; }
.stage3d.is-flat .pc--block, .stage3d.is-flat .pc--text, .stage3d.is-flat .pc--paint { opacity: clamp(0, calc(var(--k) * 3), 1); }
.stage3d.is-flat .editor { left: 30%; top: 20%; width: 62%; transform: translateY(calc((1 - var(--k)) * 8%)) !important; opacity: clamp(0, calc(var(--k) * 2), 1); box-shadow: 0 30px 60px -20px rgba(15, 35, 64, 0.45); }
.stage3d.is-flat .model.is-live .editor { opacity: 0; }
.stage3d.is-flat .sheet3d { transform: translate(calc(var(--n) * 1.6% * var(--k)), calc(var(--n) * -2.6% * var(--k))) !important; opacity: var(--k); z-index: -1; }
.stage3d.is-flat .plate { z-index: 0; }
.stage3d.is-flat .phone3d { left: 102%; top: 10%; width: 22%; transform: translateY(calc((1 - var(--k)) * 10%)) !important; opacity: var(--k); }
.stage3d.is-flat .pc--scan, .stage3d.is-flat .pc--check { transform: none !important; }
.stage3d.is-flat .sheet3d::before, .stage3d.is-flat .sheet3d > * { display: none; }

/* Quadrillage de fond (papier millimétré discret) */
body {
  background-color: #fff;
  background-image:
    linear-gradient(rgba(31, 79, 209, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(31, 79, 209, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(31, 79, 209, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(31, 79, 209, 0.035) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}

/* =====================================================================
   Sites d'exemple détaillés (galerie de l'accueil, page Exemples)
   ===================================================================== */
.frame__body--site { aspect-ratio: 4 / 3.15; overflow: hidden; }
.site {
  --s-line: color-mix(in srgb, var(--s-ink) 14%, transparent);
  display: flex; flex-direction: column; background: var(--s-bg); color: var(--s-ink);
  font-family: var(--s-font, system-ui, sans-serif); font-size: 11px; font-size: 1.62cqw; line-height: 1.4;
}
.site p { margin: 0; }
.site__top { display: flex; justify-content: space-between; gap: 1em; padding: 0.55em 3.2em; background: var(--s-ink); color: color-mix(in srgb, #fff 82%, var(--s-bg)); font-size: 0.85em; }
.site__nav { display: flex; align-items: center; gap: 2em; padding: 1.15em 3.2em; border-bottom: 1px solid var(--s-line); background: color-mix(in srgb, #fff 55%, var(--s-bg)); }
.site__brand { display: inline-flex; align-items: center; gap: 0.55em; font-weight: 700; font-size: 1.25em; white-space: nowrap; }
.site__brand i { width: 0.85em; height: 0.85em; border-radius: 0.2em; background: var(--s-acc); }
.site__links { display: flex; gap: 1.6em; margin-left: auto; font-size: 0.95em; white-space: nowrap; }
.site__btn { display: inline-block; padding: 0.75em 1.3em; border-radius: 0.45em; background: var(--s-acc); color: #fff; font-weight: 650; white-space: nowrap; }
.site__btn--sm { padding: 0.55em 1em; font-size: 0.9em; }
.site__btn--ghost { background: transparent; color: var(--s-ink); box-shadow: inset 0 0 0 1px var(--s-ink); }
.site__hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 2.6em; align-items: center; padding: 2.6em 3.2em 2.4em; }
.site__kicker { font-size: 0.9em; font-weight: 650; color: var(--s-acc); }
.site__title { margin-top: 0.4em !important; font-size: 2.7em; font-weight: 750; line-height: 1.05; letter-spacing: -0.02em; }
.site__lead { margin-top: 0.8em !important; font-size: 1.1em; opacity: 0.85; }
.site__actions { display: flex; flex-wrap: wrap; gap: 0.7em; margin-top: 1.4em !important; }
.site__facts { display: flex; flex-wrap: wrap; gap: 0.5em 1.4em; margin: 1.5em 0 0; padding: 0; list-style: none; font-size: 0.88em; }
.site__facts li { display: flex; align-items: center; gap: 0.45em; }
.site__facts li::before { content: ""; width: 0.55em; height: 0.3em; border-left: 2px solid var(--s-acc); border-bottom: 2px solid var(--s-acc); transform: rotate(-45deg) translateY(-0.15em); }
.site__photo { aspect-ratio: 4 / 3.3; border-radius: 0.8em; overflow: hidden; background: var(--s-tint); }
.site__photo svg, .site__img svg, .site__map svg { display: block; width: 100%; height: 100%; }
.site__sec { padding: 2.6em 3.2em; background: color-mix(in srgb, #fff 60%, var(--s-bg)); border-block: 1px solid var(--s-line); }
.site__h2 { font-size: 1.75em; font-weight: 720; letter-spacing: -0.01em; }
.site__secLead { margin-top: 0.4em !important; max-width: 36em; opacity: 0.8; }
.site__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.3em; margin-top: 1.6em; }
.site__card { overflow: hidden; border: 1px solid var(--s-line); border-radius: 0.7em; background: #fff; }
.site__img { aspect-ratio: 16 / 10; background: var(--s-tint); overflow: hidden; }
.site__cardBody { display: grid; gap: 0.35em; padding: 1em 1.1em 1.2em; font-size: 0.92em; }
.site__h3 { font-size: 1.12em; font-weight: 700; }
.site__more { margin-top: 0.3em; color: var(--s-acc); font-weight: 650; text-decoration: underline; text-underline-offset: 0.2em; }
.site__info { display: grid; grid-template-columns: 1.2fr 1fr 1.1fr; gap: 2em; align-items: start; padding: 2.4em 3.2em; }
.site__info > div { display: grid; gap: 0.4em; justify-items: start; }
.site__hours { display: grid; grid-template-columns: auto 1fr; gap: 0.35em 1.2em; margin: 0.3em 0 0; font-size: 0.92em; }
.site__hours dt { font-weight: 600; }
.site__hours dd { margin: 0; }
.site__map { aspect-ratio: 3 / 2; border-radius: 0.7em; overflow: hidden; border: 1px solid var(--s-line); }
.site__foot { display: grid; grid-template-columns: 1fr auto; gap: 1.2em 2em; padding: 2em 3.2em 1.6em; background: var(--s-ink); color: color-mix(in srgb, #fff 78%, var(--s-bg)); font-size: 0.92em; }
.site__foot .site__brand { color: #fff; font-size: 1.15em; margin-bottom: 0.3em; }
.site__footLinks { display: grid; grid-template-columns: repeat(2, auto); gap: 0.4em 2em; }
.site__copy { grid-column: 1 / -1; padding-top: 1em; border-top: 1px solid rgba(255, 255, 255, 0.15); font-size: 0.85em; opacity: 0.75; }
.site[data-align="center"] .site__heroText { text-align: left; }
.slide:not(.is-active) .site { filter: saturate(0.6); }
/* Le site d'exemple est dessiné sur 900 px puis réduit : les textes gardent une vraie taille (pas de grossissement forcé sur téléphone) */
.frame__body--site .site { width: 900px; font-size: 14.6px; transform-origin: 0 0; transform: scale(var(--fit, 0.5)); translate: 0 0; transition: translate 1.2s ease; }
@media (hover: hover) {
  .hg__card:hover .frame__body--site .site, .slide.is-active .frame:hover .frame__body--site .site { translate: 0 var(--shift, 0px); transition: translate 4.5s cubic-bezier(.45, 0, .25, 1); }
}

/* Accroche : trois points clés */
.hero__facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin: 1.2rem 0 0; padding: 0; list-style: none; font-size: 0.98rem; color: var(--ink); }
.hero__facts li { display: flex; align-items: center; gap: 0.5rem; }
.hero__facts li::before { content: ""; flex: none; width: 0.6rem; height: 0.32rem; border-left: 2px solid var(--line); border-bottom: 2px solid var(--line); transform: rotate(-45deg) translateY(-0.12rem); }
@media (max-width: 40rem) { .hero__facts { flex-direction: column; gap: 0.35rem; font-size: 0.95rem; } }
.scrolly__intro .hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.6rem; }

/* Indication « faites défiler » sur l'accueil */
.scroll-cue { display: none; }
.is-scrolly .scroll-cue {
  position: fixed; left: 50%; bottom: 1.4rem; z-index: 60; display: flex; align-items: center; gap: 0.7rem;
  padding: 0.6rem 1rem 0.6rem 0.8rem; background: var(--ink); color: #fff; border: 1.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--line); font: 600 0.88rem/1.25 var(--sans); text-decoration: none;
  transform: translateX(-50%); transition: opacity 0.4s, transform 0.4s var(--ease); animation: cue-in 0.6s 1.2s both var(--ease);
}
.is-scrolly .scroll-cue:hover { text-decoration: none; background: var(--cyan); }
.is-scrolly .scroll-cue.is-gone { opacity: 0; transform: translate(-50%, 12px); pointer-events: none; }
.scroll-cue__mouse { position: relative; width: 1.15rem; height: 1.75rem; border: 2px solid #fff; border-radius: 0.6rem; flex: none; }
.scroll-cue__mouse i { position: absolute; left: 50%; top: 0.3rem; width: 3px; height: 0.4rem; margin-left: -1.5px; background: var(--mark); border-radius: 2px; animation: cue-wheel 1.6s infinite var(--ease); }
.scroll-cue__arrow { width: 1.2rem; height: 1.2rem; color: var(--mark); animation: cue-bounce 1.6s infinite var(--ease); }
@keyframes cue-wheel { 0% { opacity: 0; transform: translateY(-3px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(9px); } }
@keyframes cue-bounce { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(4px); } }
@keyframes cue-in { from { opacity: 0; transform: translate(-50%, 14px); } }
@media (max-width: 63.99rem) {
  .is-scrolly .scroll-cue { bottom: auto; top: 4.7rem; font-size: 0.8rem; padding: 0.5rem 0.8rem 0.5rem 0.65rem; white-space: nowrap; }
  .is-scrolly .scroll-cue__txt br { display: none; }
}
@media (prefers-reduced-motion: reduce) { .scroll-cue__mouse i, .scroll-cue__arrow { animation: none; } }
