/* ==========================================================================
   Atelier Ardèche Impressions
   Système de formes : boutons et puces en pilule, cartes 14px, champs 10px.
   Couleur d'accent unique : le rose de la marque. Le bleu et l'orange du logo
   n'apparaissent que sur les objets (écran, racle) et dans le nuancier.
   ========================================================================== */

@font-face {
  font-family: "Falcon Script";
  src: url("Falcon-Script-W00-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --paper: #f3f3f1;
  --paper-2: #e8e8e5;
  --card: #fbfbfa;
  --ink: #161618;
  --ink-2: #45454b;
  --muted: #5f5f66;
  --line: rgb(22 22 24 / 0.14);
  --accent: #e72781;
  --accent-text: #c81b6c;
  --accent-btn: #c81b6c;
  --on-accent: #ffffff;
  --flood-ink: #161618;
  --shadow: 0 1px 0 rgb(22 22 24 / 0.04), 0 18px 40px -18px rgb(60 20 40 / 0.25);

  --r-card: 14px;
  --r-field: 10px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 84px;
  /* Logo détaché du menu : grand en haut de page, il se réduit dans la barre au défilement */
  --logo-h: 132px;
  --logo-top: 12px;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121214;
    --paper-2: #1a1a1e;
    --card: #1e1e23;
    --ink: #f1f1ee;
    --ink-2: #c9c9cd;
    --muted: #a1a1a9;
    --line: rgb(255 255 255 / 0.12);
    --accent-text: #ff5fa8;
    --shadow: 0 1px 0 rgb(255 255 255 / 0.03), 0 18px 40px -18px rgb(0 0 0 / 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121214;
  --paper-2: #1a1a1e;
  --card: #1e1e23;
  --ink: #f1f1ee;
  --ink-2: #c9c9cd;
  --muted: #a1a1a9;
  --line: rgb(255 255 255 / 0.12);
  --accent-text: #ff5fa8;
  --shadow: 0 1px 0 rgb(255 255 255 / 0.03), 0 18px 40px -18px rgb(0 0 0 / 0.7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }

.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.script { font-family: "Falcon Script", cursive; font-weight: 400; letter-spacing: 0; color: var(--accent-text); }
.eyebrow { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); }
.h2 {
  font-size: clamp(2rem, 1.3rem + 2.8vw, 3.6rem);
  line-height: 1.02;
  font-weight: 850;
  font-variation-settings: "wdth" 112;
  letter-spacing: -0.02em;
  max-width: 18ch;
  text-wrap: balance;
}

/* Trame de tissage très légère, fixe, sans impact sur le scroll */
.weave {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0.35;
  background-image:
    repeating-linear-gradient(0deg, rgb(0 0 0 / 0.025) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgb(0 0 0 / 0.02) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .weave { mix-blend-mode: screen; opacity: 0.25; background-image: repeating-linear-gradient(0deg, rgb(255 255 255 / 0.03) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgb(255 255 255 / 0.02) 0 1px, transparent 1px 3px); } }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform 0.25s var(--ease-out), background-color 0.2s, box-shadow 0.25s var(--ease-out);
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn--sm { height: 42px; padding: 0 18px; font-size: 15px; }
.btn--wide { width: 100%; height: 58px; font-size: 17px; }
.btn--accent { background: var(--accent-btn); color: var(--on-accent); box-shadow: 0 10px 24px -12px rgb(200 27 108 / 0.8); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
@media (hover: hover) {
  .btn--accent:hover { background: #b0175e; transform: translateY(-2px); }
  .btn--ghost:hover { background: var(--ink); color: var(--paper); }
}
.link { color: var(--accent-text); font-weight: 700; text-underline-offset: 4px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; gap: 24px;
  padding: 0 var(--gutter) 0 calc(var(--gutter) + var(--logo-h) * 2 + 40px);
  transition: background-color 0.3s, box-shadow 0.3s, transform 0.4s var(--ease-out);
}
.nav.is-solid { background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo { position: absolute; z-index: 1; left: var(--gutter); top: var(--logo-top); transform-origin: top left; transition: transform 0.45s var(--ease-out); }
.nav__logo img { height: var(--logo-h); width: auto; }
.nav.is-solid .nav__logo, .nav:has(.nav__links.is-open) .nav__logo { transform: translateY(-2px) scale(calc(62 / 132)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nav__logo img { background: #fff; border-radius: 10px; padding: 2px 6px; } }
:root[data-theme="dark"] .nav__logo img { background: #fff; border-radius: 10px; padding: 2px 6px; }
.nav__links { display: flex; gap: 28px; }
.nav__links a { text-decoration: none; font-weight: 600; font-size: 15px; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease-out); }
@media (hover: hover) { .nav__links a:hover::after { transform: scaleX(1); } }
.nav__end { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav__tel { font-weight: 700; font-size: 15px; text-decoration: none; font-variant-numeric: tabular-nums; }
.nav__tel-mobile { display: none; }
.nav__burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; position: relative; cursor: pointer; }
.nav__burger span:not(.sr) { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); transition: transform 0.3s var(--ease-out); }
.nav__burger span:nth-child(1) { top: 17px; }
.nav__burger span:nth-child(2) { top: 25px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 960px) {
  :root { --logo-h: 92px; }
  .nav { padding-left: var(--gutter); }
  .nav.is-solid .nav__logo, .nav:has(.nav__links.is-open) .nav__logo { transform: translateY(-2px) scale(calc(62 / 92)); }
  .nav__tel { display: none; }
  .nav__burger { display: block; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0; margin: 0;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 24px;
    background: var(--paper); box-shadow: 0 20px 30px -20px rgb(0 0 0 / 0.3);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity 0.25s, transform 0.35s var(--ease-out);
  }
  .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { padding: 14px 0; font-size: 22px; font-weight: 800; border-bottom: 1px solid var(--line); }
  .nav__links a::after { display: none; }
  .nav__tel-mobile { display: block; color: var(--accent-text); }
}
@media (max-width: 520px) {
  .nav__end .btn { display: none; }
  :root { --logo-h: 80px; }
  .nav.is-solid .nav__logo, .nav:has(.nav__links.is-open) .nav__logo { transform: translateY(-2px) scale(calc(60 / 80)); }
}

/* ---------- 1. Hero : l'atelier en direct ---------- */
.hero { position: relative; }
.hero__stage { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.hero__canvas.is-dragging { cursor: grabbing; }
.hero__stage[data-state="pulling"] .hero__canvas, .hero__stage[data-state="printed"] .hero__canvas { cursor: default; }
.hero__stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--ink) 13%, transparent) 1px, transparent 1.6px);
  background-size: 14px 14px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 55% 50%, #000 10%, transparent 72%);
          mask-image: radial-gradient(ellipse 60% 70% at 55% 50%, #000 10%, transparent 72%);
}
.hero__copy {
  position: absolute; z-index: 2;
  left: var(--gutter); top: calc(var(--logo-top) + var(--logo-h) + clamp(48px, 16vh, 180px));
  width: min(430px, 30vw);
  display: grid; gap: 18px;
}
.hero h1 {
  font-size: clamp(2.8rem, 1.2rem + 3.6vw, 5.4rem);
  line-height: 0.92; font-weight: 900; letter-spacing: -0.035em;
  font-variation-settings: "wdth" 118;
}
.hero__atelier { display: block; font-family: "Montserrat", sans-serif; font-weight: 800; letter-spacing: -0.02em; font-variation-settings: normal; }
/* "100% textile !" : une seule ligne, dans l'écriture manuscrite du logo */
.hero h1 .script { display: block; white-space: nowrap; font-size: 0.86em; line-height: 1.15; padding-bottom: 0.08em; margin-top: 0.02em; letter-spacing: 0; }
.lede { font-size: 18px; color: var(--ink-2); max-width: 34ch; }

/* Barre de commandes : texte, encre, t-shirt, racle */
.studio {
  position: absolute; z-index: 3; left: 50%; bottom: clamp(16px, 3vh, 28px); transform: translateX(-50%);
  width: min(920px, calc(100% - var(--gutter) * 2));
  display: grid; grid-template-columns: minmax(180px, 1fr) auto auto auto; align-items: end; gap: 22px;
  padding: 14px 14px 14px 20px; border-radius: var(--r-card);
  background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
  transition: opacity 0.4s, transform 0.5s var(--ease-out);
}
.studio label, .studio legend { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.studio__text { display: grid; gap: 6px; }
.studio__row { display: flex; gap: 8px; }
.studio__row input { min-width: 0; }
.studio__logo { position: relative; flex: none; }
.studio .studio__logo-btn {
  display: grid; place-items: center; width: 78px; height: 48px; border-radius: var(--r-field);
  border: 1.5px dashed color-mix(in srgb, var(--ink) 35%, transparent); background: var(--paper);
  cursor: pointer; overflow: hidden;
  font-size: 13px; font-weight: 800; letter-spacing: 0; text-transform: none; color: var(--ink);
  transition: border-color 0.2s, background-color 0.2s;
}
.studio__logo-btn img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.studio__logo.has-logo .studio__logo-btn { border-style: solid; border-color: var(--ink); }
@media (hover: hover) { .studio .studio__logo-btn:hover { border-color: var(--accent); } }
.studio__logo input:focus-visible + .studio__logo-btn { outline: 3px solid var(--accent); outline-offset: 2px; }
.studio__logo-x {
  position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; border: 0;
  background: var(--ink); color: var(--paper); font-size: 15px; line-height: 1; cursor: pointer;
}
.studio__text input {
  width: 100%; height: 48px; padding: 0 14px; border-radius: var(--r-field);
  border: 1.5px solid color-mix(in srgb, var(--ink) 22%, transparent); background: var(--paper);
  font: inherit; font-size: 20px; font-weight: 850; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink);
  font-variation-settings: "wdth" 115;
}
.studio__text input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.studio__sw { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; min-width: 0; }
.studio__sw legend { padding: 0; margin-bottom: 6px; }
.studio__sw > div { display: flex; gap: 6px; height: 48px; align-items: center; }
.studio__sw label { position: relative; display: block; cursor: pointer; }
.studio__sw input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.studio__sw span {
  display: block; width: 30px; height: 30px; border-radius: 50%; background: var(--c);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.18);
  transition: transform 0.25s var(--ease-out), box-shadow 0.2s;
}
.studio__sw input:checked + span { box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.18), 0 0 0 3px var(--card), 0 0 0 5px var(--ink); transform: scale(1.06); }
.studio__sw input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 5px; }
@media (hover: hover) { .studio__sw label:hover span { transform: scale(1.12); } }
.studio__go { height: 48px; }
.studio__hint { position: absolute; left: 0; right: 0; top: calc(100% + 6px); text-align: center; font-size: 13px; color: var(--muted); font-weight: 600; }
.studio__hint.is-note { color: var(--accent-text); }
.hero__stage[data-state="pulling"] .studio,
.hero__stage[data-state="printed"] .studio { opacity: 0; transform: translate(-50%, 24px); pointer-events: none; }
.hero__stage[data-state="pulling"] .studio__go { pointer-events: none; }

/* Résultat : le t-shirt est imprimé */
.studio__result {
  position: absolute; z-index: 3; right: var(--gutter); top: 50%; transform: translateY(-50%);
  width: min(320px, 26vw); display: grid; gap: 12px; justify-items: start;
  animation: resultIn 0.7s var(--ease-out) both;
}
.studio__result-title { font-size: clamp(1.8rem, 1rem + 1.4vw, 2.5rem); font-weight: 900; line-height: 1; letter-spacing: -0.03em; font-variation-settings: "wdth" 115; }
.studio__result > p:not(.studio__result-title) { color: var(--ink-2); font-size: 17px; margin-bottom: 6px; }
.studio__again { border: 0; background: none; padding: 8px 0; font-weight: 700; color: var(--accent-text); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
@keyframes resultIn { from { opacity: 0; transform: translate(20px, -50%); } }

@media (max-width: 1100px) {
  /* Commandes sur deux lignes : on remonte le texte pour qu'il ne passe pas dessous */
  .hero__copy { top: calc(var(--logo-top) + var(--logo-h) + 28px); }
  .studio { grid-template-columns: 1fr 1fr; gap: 14px; }
  .studio__text, .studio__go { grid-column: 1 / -1; }
  .studio__hint { display: none; }
  .studio__hint.is-note { display: block; position: static; grid-column: 1 / -1; margin-top: -4px; }
  .hero__copy { width: min(340px, 34vw); }
}
@media (max-width: 860px) {
  .hero__stage { min-height: 800px; }
  .hero__copy { width: auto; right: var(--gutter); top: calc(var(--logo-top) + var(--logo-h) + 24px); gap: 10px; }
  .hero h1 { font-size: clamp(2.6rem, 12vw, 3.8rem); }
  .lede { font-size: 15.5px; }
  .studio { padding: 12px; gap: 10px 14px; }
  .studio__text input { height: 44px; font-size: 18px; }
  .studio__sw > div { height: 36px; gap: 4px; }
  .studio__sw span { width: 26px; height: 26px; }
  .studio__result {
    top: auto; bottom: clamp(16px, 3vh, 28px); left: var(--gutter); right: var(--gutter); width: auto; transform: none;
    padding: 18px; border-radius: var(--r-card); background: color-mix(in srgb, var(--card) 92%, transparent);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow);
    grid-template-columns: 1fr; justify-items: stretch; text-align: center; gap: 8px;
    animation-name: resultInMobile;
  }
  .studio__result-title { font-size: 1.6rem; }
  .studio__again { padding: 4px 0; }
  .studio__result > p:not(.studio__result-title) { grid-column: 1 / -1; font-size: 15px; margin: 0; }
  @keyframes resultInMobile { from { opacity: 0; transform: translateY(20px); } }
}

/* Sans WebGL : le logo remplace la presse */
.no-webgl .hero__canvas { display: none; }
.no-webgl .hero__stage::after { content: ""; position: absolute; right: var(--gutter); top: 50%; width: min(46vw, 620px); aspect-ratio: 2 / 1; transform: translateY(-40%); background: url("logo.png") center / contain no-repeat; }
.no-webgl .tech__visual { display: none; }
@media (max-width: 860px) { .no-webgl .hero__stage::after { left: var(--gutter); width: auto; top: auto; bottom: 80px; transform: none; } }

/* ---------- 2. La racle ---------- */
.flood { position: relative; }
.flood__stage { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: var(--paper); }
.flood__layer { position: absolute; inset: 0; display: flex; align-items: center; }
.flood__layer--ink {
  background:
    radial-gradient(circle at 30% 20%, rgb(255 255 255 / 0.12), transparent 40%),
    var(--accent);
  color: var(--flood-ink);
  clip-path: inset(0 100% 0 0);
  will-change: clip-path;
}
.flood__layer--stencil .manifeste { color: transparent; -webkit-text-stroke: 1.2px color-mix(in srgb, var(--ink) 35%, transparent); }
.flood__layer--stencil .manifeste__body { -webkit-text-stroke: 0; color: color-mix(in srgb, var(--ink) 22%, transparent); }
.manifeste { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); display: grid; gap: clamp(20px, 3vh, 36px); }
.manifeste__big {
  font-size: clamp(2.5rem, 0.6rem + 5.8vw, 7rem); line-height: 0.92; font-weight: 900;
  font-variation-settings: "wdth" 122; letter-spacing: -0.035em; text-transform: uppercase;
}
.manifeste__body {
  font-size: clamp(18px, 1rem + 0.6vw, 24px); font-weight: 600; line-height: 1.4;
  /* Bloc justifié. À 50ch le texte tient en 3 lignes pleines : la dernière est aussi justifiée */
  max-width: 50ch; text-align: justify;
}
@media (min-width: 900px) { .manifeste__body { text-align-last: justify; } }
.manifeste__list { font-size: clamp(15px, 0.8rem + 0.5vw, 19px); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; word-spacing: 0.6em; }
.manifeste__list i { font-style: normal; opacity: 0.6; }

.racle {
  position: absolute; top: -6%; bottom: -6%; left: 0; width: 120px;
  transform: translateX(-100%) rotate(4deg); transform-origin: 50% 50%;
  pointer-events: none; will-change: transform;
}
.racle__ink {
  position: absolute; top: 0; bottom: 0; right: -30px; width: 42px; border-radius: 30px;
  background: linear-gradient(90deg, #c51c6d, var(--accent) 45%, #ff6fb0 70%, #d62075);
  box-shadow: inset -6px 0 10px rgb(255 255 255 / 0.3), 0 0 0 1px rgb(0 0 0 / 0.05);
}
.racle__blade {
  position: absolute; top: 0; bottom: 0; right: 0; width: 18px;
  background: linear-gradient(90deg, #2c2c30, #4b4b52 50%, #2a2a2e);
}
.racle__handle {
  position: absolute; top: 2%; bottom: 2%; right: 16px; width: 64px; border-radius: 18px 10px 10px 18px;
  background: linear-gradient(90deg, #c96512, #f08a24 35%, #ffad5a 60%, #e57b17);
  box-shadow: -18px 0 40px -10px rgb(0 0 0 / 0.35), inset 0 0 0 1px rgb(0 0 0 / 0.08);
}
@media (max-width: 700px) {
  .racle { width: 80px; }
  .racle__handle { width: 42px; }
  .racle__ink { width: 30px; right: -22px; }
}

/* ---------- 3. Techniques ---------- */
.tech { position: relative; }
.tech__stage {
  position: relative; height: 100vh; height: 100svh; min-height: 620px;
  display: grid; grid-template-columns: 1.25fr 1fr; align-items: center;
  padding: var(--nav-h) var(--gutter) 24px; gap: 24px;
  max-width: 1480px; margin: 0 auto;
}
.tech__visual { position: relative; height: 100%; min-height: 360px; }
.tech__canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.tech__panel { display: grid; gap: 26px; align-content: center; max-width: 540px; }
.tech__tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tech__tabs button {
  height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line);
  background: transparent; font-weight: 700; font-size: 14.5px; cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.tech__tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (hover: hover) { .tech__tabs button:hover:not([aria-selected="true"]) { border-color: var(--ink); } }
.tech__card { display: grid; gap: 16px; min-height: 250px; }
.tech__name { font-size: clamp(2.4rem, 1.4rem + 2.6vw, 3.8rem); font-weight: 900; line-height: 1; letter-spacing: -0.03em; font-variation-settings: "wdth" 115; color: var(--accent-text); }
.tech__desc { font-size: 18px; color: var(--ink-2); max-width: 42ch; }
.tech__meta { display: grid; grid-template-columns: auto 1fr; gap: 28px; margin: 6px 0 0; }
.tech__meta dt { font-size: 13px; color: var(--muted); font-weight: 600; }
.tech__meta dd { margin: 2px 0 0; font-weight: 800; font-size: 17px; }
.tech__card.is-swapping > * { animation: techIn 0.55s var(--ease-out) both; }
.tech__card.is-swapping > *:nth-child(2) { animation-delay: 0.04s; }
.tech__card.is-swapping > *:nth-child(3) { animation-delay: 0.08s; }
@keyframes techIn { from { opacity: 0; transform: translateY(12px); } }
.tech__dial { display: flex; gap: 6px; }
.tech__dial span { height: 4px; flex: 1; border-radius: 4px; background: var(--line); transition: background-color 0.3s; }
.tech__dial span.on { background: var(--accent); }

@media (max-width: 900px) {
  .tech__stage { grid-template-columns: 1fr; grid-template-rows: 44% auto; padding-top: calc(var(--nav-h) + 4px); gap: 8px; align-items: start; }
  .tech__visual { min-height: 0; }
  .tech__panel { gap: 16px; }
  .tech__card { min-height: 210px; gap: 10px; }
  .tech__desc { font-size: 16px; }
  .tech__panel .h2 { font-size: 1.7rem; }
}

/* ---------- 4. Ligne de production (avance au bouton, pas au scroll) ---------- */
.line { position: relative; padding: clamp(72px, 9vh, 112px) 0 clamp(32px, 5vh, 64px); overflow: hidden; }
.line__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px 40px; }
.line__head .h2 { max-width: 22ch; }
.line__intro { display: grid; gap: 16px; }
.line__intro p { font-size: 18px; color: var(--ink-2); max-width: 44ch; }
.line__nav { display: flex; align-items: center; gap: 10px; }
.line__dots { display: flex; gap: 6px; margin-right: 10px; }
.line__dots button { width: 26px; height: 26px; border: 0; padding: 0; background: none; cursor: pointer; position: relative; }
.line__dots button::before { content: ""; position: absolute; left: 2px; right: 2px; top: 11px; height: 4px; border-radius: 4px; background: var(--line); transition: background-color 0.3s; }
.line__dots button.done::before, .line__dots button[aria-current="step"]::before { background: var(--accent); }
.btn:disabled { opacity: 0.35; pointer-events: none; }

.line__stage { position: relative; height: clamp(400px, 54vh, 540px); margin-top: 28px; touch-action: pan-y; }
.line__track {
  --step: min(400px, 76vw);
  position: absolute; top: 0; bottom: 0; left: 0;
  padding-inline: calc(50vw - var(--step) / 2);
  transform: translateX(calc(var(--i) * var(--step) * -1));
  transition: transform 1s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}
.line__steps { display: flex; list-style: none; margin: 0; padding: 0; height: 100%; }
.line__steps li {
  flex: 0 0 var(--step); position: relative;
  display: grid; align-content: start; justify-items: center; text-align: center; gap: 8px;
  padding: 8px 28px 0;
  opacity: 0.35; transition: opacity 0.6s;
}
.line__steps li.is-current { opacity: 1; }
.line__steps h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); font-weight: 850; line-height: 1.05; letter-spacing: -0.02em; font-variation-settings: "wdth" 110; }
.line__steps p { color: var(--ink-2); max-width: 30ch; }
.line__belt {
  position: absolute; left: 0; right: 0; bottom: 48px; height: 26px;
  background:
    repeating-linear-gradient(90deg, transparent 0 34px, rgb(0 0 0 / 0.18) 34px 36px),
    linear-gradient(#2a2a2e, #3a3a40 40%, #232327);
  border-radius: 6px;
  box-shadow: 0 12px 20px -12px rgb(0 0 0 / 0.5);
}
.line__belt::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 18px;
  background: radial-gradient(circle at 20px 50%, #55555c 7px, transparent 8px) 0 0 / 40px 18px repeat-x;
}
/* Le tunnel de séchage */
.oven {
  position: absolute; left: 22px; right: 22px; bottom: 42px; height: 52%;
  border-radius: 18px 18px 0 0; border: 10px solid #2e2e33; border-bottom: 0;
  background: linear-gradient(180deg, #2e2e33, #1e1e22);
  display: flex; justify-content: space-around; align-items: flex-start; padding-top: 14px;
  overflow: hidden; z-index: -1;
}
.oven::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 70% at 50% 0%, #ff6a1a, transparent 70%); opacity: var(--heat, 0.12); transition: opacity 0.6s; }
.oven span { position: relative; width: 16%; height: 8px; border-radius: 4px; background: #5a2410; box-shadow: 0 0 calc(var(--heat, 0) * 24px) calc(var(--heat, 0) * 6px) #ff7a1f; transition: box-shadow 0.6s; }
.oven span::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #ff7a1f; opacity: var(--heat, 0); transition: opacity 0.6s; }
.line__steps li.is-oven { isolation: isolate; }

.line__tee {
  position: absolute; left: 50%; bottom: 66px; width: clamp(150px, 15vw, 210px);
  transform: translateX(-50%); pointer-events: none;
  filter: drop-shadow(0 12px 12px rgb(0 0 0 / 0.25));
}
.line__tee.is-moving svg { animation: teeRide 1s cubic-bezier(0.65, 0, 0.35, 1); }
@keyframes teeRide { 30% { transform: translateY(-10px) rotate(-3deg); } 70% { transform: translateY(-4px) rotate(2deg); } }
.line__tee svg { width: 100%; height: auto; overflow: visible; }
.tee-body { fill: var(--tee, var(--card)); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; transition: fill 0.4s; }
.tee-bat { opacity: var(--bat, 0); transition: opacity 0.5s; }
.tee-bat rect { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 6 5; }
.tee-bat .tee-img { opacity: 0.4; }
.tee-print { fill: var(--accent); clip-path: inset(0 0 calc(100% - var(--print, 0) * 100%) 0); }
.line__tee.has-img .tee-default { display: none; }
.line__tee:not(.has-img) .tee-img { display: none; }

@media (max-width: 900px) { .line__head { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .line__nav { width: 100%; }
  .line__nav .btn--accent { margin-left: auto; }
  .line__dots { display: none; }
  .line__stage { height: 440px; margin-top: 24px; }
  .line__steps li { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .line__track { transition: none; }
}

/* ---------- Retour en haut ---------- */
.totop {
  position: fixed; right: clamp(14px, 2.5vw, 28px); bottom: clamp(14px, 2.5vw, 28px); z-index: 45;
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--paper);
  box-shadow: 0 12px 28px -12px rgb(0 0 0 / 0.5);
  opacity: 0; transform: translateY(16px) scale(0.9); pointer-events: none;
  transition: opacity 0.3s, transform 0.4s var(--ease-out), background-color 0.2s;
}
.totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.totop span { width: 12px; height: 12px; border-left: 2.5px solid currentColor; border-top: 2.5px solid currentColor; transform: translateY(3px) rotate(45deg); }
@media (hover: hover) { .totop:hover { background: var(--accent-btn); color: #fff; } }
.totop:active { transform: scale(0.94); }

/* ---------- 5. Nuancier ---------- */
.swatch { padding: clamp(96px, 14vh, 160px) 0 clamp(64px, 10vh, 120px); }
.swatch__deck {
  position: relative; margin-top: 56px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.chip {
  position: relative; display: grid; grid-template-rows: 220px auto;
  border-radius: var(--r-card); overflow: hidden; text-decoration: none;
  background: var(--card); box-shadow: var(--shadow);
  transform-origin: 50% 120%;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.chip__color { background: var(--c); position: relative; }
.chip__color::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgb(255 255 255 / 0.14) 1px, transparent 1.6px) 0 0 / 10px 10px; }
.chip__code { position: absolute; left: 18px; bottom: 14px; z-index: 1; font-family: "Falcon Script", cursive; font-size: 28px; color: #fff; line-height: 1.2; }
.chip__body { display: grid; gap: 8px; padding: 20px 20px 24px; }
.chip__body strong { font-size: 20px; line-height: 1.15; font-weight: 850; }
.chip__body span { color: var(--ink-2); font-size: 15.5px; }
@media (hover: hover) { .chip:hover { transform: translateY(-10px) rotate(-1.2deg); } }
@media (max-width: 1000px) { .swatch__deck { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .swatch__deck { grid-template-columns: 1fr; } .chip { grid-template-rows: 130px auto; } }

/* ---------- 6. Calage des couleurs ---------- */
.reg { padding: clamp(56px, 8vh, 96px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.reg__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.reg__item { display: grid; gap: 6px; }
.reg__num { position: relative; display: block; height: clamp(3.4rem, 2rem + 3.6vw, 5.8rem); font-size: clamp(3.2rem, 1.9rem + 3.4vw, 5.6rem); line-height: 1; font-weight: 900; letter-spacing: -0.04em; font-variation-settings: "wdth" 112; }
.reg__num span { position: absolute; left: 0; top: 0; mix-blend-mode: multiply; will-change: transform; }
.reg__num .c1 { color: #3d8fd9; }
.reg__num .c2 { color: var(--accent); }
.reg__num .c3 { color: var(--ink); mix-blend-mode: normal; opacity: 0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .reg__num span { mix-blend-mode: screen; } }
:root[data-theme="dark"] .reg__num span { mix-blend-mode: screen; }
.reg__lbl { color: var(--ink-2); font-weight: 600; max-width: 18ch; }
@media (max-width: 860px) { .reg__grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; } }

/* ---------- 7. Logos : le film sort de l'imprimante DTF ---------- */
.logos { padding: clamp(64px, 10vh, 112px) 0 clamp(48px, 8vh, 88px); overflow: hidden; }
.logos__head { text-align: center; display: grid; gap: 6px; margin-bottom: 28px; }
.logos__title { font-size: clamp(1.4rem, 1rem + 1vw, 2rem); font-weight: 850; letter-spacing: -0.02em; color: var(--ink); font-variation-settings: "wdth" 110; }
.logos__sub { color: var(--muted); font-weight: 600; }

/* Tout est en em : on réduit l'imprimante d'un coup sur mobile */
.dtf { --left: var(--gutter); position: relative; height: 15em; font-size: 16px; }
.dtf__printer { position: absolute; z-index: 2; left: var(--left); bottom: 0.6em; width: 17em; filter: drop-shadow(0 1.2em 1.4em rgb(0 0 0 / 0.22)); }
.dtf__lid {
  height: 4.2em; border-radius: 1.2em 1.2em 0.3em 0.3em;
  background: linear-gradient(180deg, #d9dbdf, #b9bcc2);
  display: grid; place-items: center; box-shadow: inset 0 -0.2em 0 rgb(0 0 0 / 0.12);
}
.dtf__window {
  position: relative; width: 78%; height: 58%; border-radius: 0.5em; overflow: hidden;
  background: linear-gradient(180deg, #1b1d22, #2c2f36); box-shadow: inset 0 0.2em 0.5em rgb(0 0 0 / 0.6);
}
.dtf__rail { position: absolute; left: 4%; right: 4%; top: 50%; height: 0.15em; background: #6b6f78; }
/* La tête d'impression fait des allers-retours */
.dtf__head {
  position: absolute; z-index: 1; top: 18%; left: 4%; width: 2.2em; height: 64%; border-radius: 0.3em;
  background: linear-gradient(180deg, #ff4f9f, #e72781);
  box-shadow: 0 0 0.6em rgb(231 39 129 / 0.8);
  animation: dtfHead 0.9s ease-in-out infinite alternate;
}
@keyframes dtfHead { to { left: calc(96% - 2.2em); } }
.dtf__body {
  position: relative; height: 6.8em; border-radius: 0.3em 0.3em 0.9em 0.9em;
  background: linear-gradient(180deg, #34373e, #24262b);
  box-shadow: inset 0 0.25em 0 #e72781;
}
.dtf__label { position: absolute; left: 1.1em; top: 1.1em; font-weight: 900; font-size: 1.15em; letter-spacing: 0.08em; color: #f3f3f1; font-variation-settings: "wdth" 120; }
.dtf__leds { position: absolute; left: 1.2em; bottom: 1.1em; display: flex; gap: 0.45em; }
.dtf__leds i { width: 0.55em; height: 0.55em; border-radius: 50%; background: #3ad07a; box-shadow: 0 0 0.4em #3ad07a; }
.dtf__leds i:nth-child(2) { background: #ff4f9f; box-shadow: 0 0 0.5em #ff4f9f; animation: dtfBlink 1.1s steps(2) infinite; }
.dtf__leds i:nth-child(3) { background: #5c5f66; box-shadow: none; }
@keyframes dtfBlink { 50% { opacity: 0.2; } }
/* Fente de sortie du film, sur la droite */
.dtf__slot { position: absolute; right: -0.2em; top: 2.2em; width: 1.2em; height: 7.4em; transform: translateY(-40%); border-radius: 0.3em; background: #121316; }
.dtf__feet { display: flex; justify-content: space-between; padding: 0 1.4em; }
.dtf__feet i { width: 2.2em; height: 0.5em; border-radius: 0 0 0.3em 0.3em; background: #1b1c20; }

/* Le film transparent qui défile, logos imprimés en couleurs dessus */
.dtf__film {
  position: absolute; z-index: 1; left: calc(var(--left) + 16.4em); right: 0; bottom: 4.5em; height: 7.4em;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.85), rgb(255 255 255 / 0.6) 45%, rgb(236 240 244 / 0.75)),
    #f6f7f8;
  border-top: 1px solid rgb(0 0 0 / 0.08); border-bottom: 1px solid rgb(0 0 0 / 0.1);
  box-shadow: 0 1.2em 1.6em -1em rgb(0 0 0 / 0.25);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent);
          mask-image: linear-gradient(90deg, #000 80%, transparent);
}
/* Reflet qui balaie le film */
.dtf__film::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / 0.55) 42%, transparent 54%);
  background-size: 300% 100%; animation: dtfShine 6s linear infinite;
}
@keyframes dtfShine { from { background-position: 150% 0; } to { background-position: -150% 0; } }
.dtf__track { height: 100%; display: flex; align-items: center; }
.logos__row { display: flex; align-items: center; gap: 3.5em; width: max-content; list-style: none; margin: 0; padding: 0 2em; animation: filmOut 40s linear infinite; }
.logos__row li { flex: none; }
/* Imprimés sur le film : en couleurs, le blanc des fichiers disparaît (comme l'encre sur le PET) */
.logos__row img { height: 4.4em; width: auto; mix-blend-mode: multiply; }
@keyframes filmOut { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (max-width: 700px) {
  .dtf { font-size: 9px; }
}

/* ---------- 8. Showroom ---------- */
.showroom { padding: clamp(80px, 12vh, 140px) 0; background: var(--paper-2); }
.showroom__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; }
.showroom__copy { display: grid; gap: 22px; }
.showroom__copy > p { font-size: 18px; color: var(--ink-2); max-width: 46ch; }
.brands { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.brands li { padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 700; font-size: 14px; }
.showroom__addr a { font-weight: 800; font-size: 20px; text-underline-offset: 5px; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.diorama { margin: 0; display: grid; gap: 6px; justify-items: center; }
.diorama__canvas { width: 100%; aspect-ratio: 1 / 1; max-width: 640px; cursor: grab; touch-action: pan-y; }
.diorama__canvas.is-dragging { cursor: grabbing; }
.diorama figcaption { font-size: 14px; color: var(--muted); }
.diorama__fallback { display: none; width: 100%; max-width: 480px; border-radius: var(--r-card); }
.no-webgl .diorama__canvas { display: none; }
.no-webgl .diorama__fallback { display: block; }
@media (hover: none) { .diorama figcaption { visibility: hidden; } }
@media (max-width: 860px) { .showroom__grid { grid-template-columns: 1fr; } }

/* ---------- 9. FAQ ---------- */
.faq { padding: clamp(80px, 12vh, 140px) 0; }
.faq__grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: start; }
.faq__side { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 16px; }
.faq__side p { color: var(--ink-2); }
.faq__side a { font-weight: 800; }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary {
  list-style: none; cursor: pointer; padding: 24px 48px 24px 0; position: relative;
  font-size: clamp(18px, 1rem + 0.4vw, 21px); font-weight: 750;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  background: linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat;
  transition: transform 0.35s var(--ease-out);
}
.faq__list details[open] summary::after { transform: rotate(135deg); background: linear-gradient(var(--accent), var(--accent)) center / 100% 2px no-repeat, linear-gradient(var(--accent), var(--accent)) center / 2px 100% no-repeat; }
.faq__list details p { padding: 0 48px 26px 0; color: var(--ink-2); max-width: 62ch; }
@media (max-width: 860px) { .faq__grid { grid-template-columns: 1fr; gap: 24px; } .faq__side { position: static; } }

/* ---------- 10. Devis ---------- */
.devis { padding: clamp(80px, 12vh, 140px) 0; background: var(--paper-2); }
.devis__grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.devis__side { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 22px; }
.devis__side > p { font-size: 18px; color: var(--ink-2); }
.devis__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-weight: 700; }
.devis__contact a { text-decoration: none; }
.devis__contact li:first-child a { font-size: 26px; font-weight: 900; letter-spacing: -0.01em; }
.devis__reviews { display: grid; gap: 8px; padding-top: 22px; border-top: 1px solid var(--line); }
.devis__reviews p { color: var(--ink-2); font-size: 15px; }
.devis__reviews-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* Avis Google : note, étoiles, et avis qui défilent latéralement */
.reviews { display: grid; gap: 14px; }
.reviews__summary { display: flex; align-items: center; gap: 12px; }
.reviews__note { font-size: 44px; font-weight: 900; line-height: 1; letter-spacing: -0.03em; font-variation-settings: "wdth" 112; }
.reviews__count { display: block; font-size: 14px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.stars { --v: 5; position: relative; display: inline-block; font-size: 18px; line-height: 1; letter-spacing: 2px; color: color-mix(in srgb, var(--ink) 18%, transparent); }
.stars::before { content: "★★★★★"; }
.stars::after { content: "★★★★★"; position: absolute; inset: 0; width: calc(var(--v) / 5 * 100%); overflow: hidden; color: #f5b301; }
.reviews__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.reviews__track::-webkit-scrollbar { display: none; }
.reviews__track:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: var(--r-card); }
.review {
  scroll-snap-align: start; display: grid; gap: 10px; align-content: start;
  padding: 18px; border-radius: var(--r-card); background: var(--card); box-shadow: var(--shadow);
}
.review__head { display: flex; align-items: center; gap: 10px; }
.review__photo { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--paper-2); flex: none; }
.review__who { display: grid; }
.review__who b { font-size: 15px; }
.review__who span { font-size: 13px; color: var(--muted); }
.review .stars { font-size: 14px; letter-spacing: 1px; }
.review__text { font-size: 15px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.review__more { font-size: 14px; font-weight: 700; color: var(--accent-text); text-underline-offset: 3px; }
.reviews__nav { display: flex; align-items: center; gap: 8px; }
.reviews__nav button {
  width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line); background: transparent; cursor: pointer;
  display: grid; place-items: center; transition: border-color 0.2s, background-color 0.2s;
}
.reviews__nav button span { width: 9px; height: 9px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateX(2px) rotate(45deg); }
.reviews__nav button[data-reviews-next] span { transform: translateX(-2px) rotate(-135deg); }
@media (hover: hover) { .reviews__nav button:hover { border-color: var(--ink); } }
.reviews__nav button:disabled { opacity: 0.35; cursor: default; }
.reviews__src { margin-left: auto; font-size: 13px; color: var(--muted); font-weight: 600; }

.ticket {
  position: relative; background: var(--card); border-radius: var(--r-card);
  padding: 0 clamp(20px, 3vw, 40px) clamp(24px, 3vw, 40px);
  box-shadow: var(--shadow);
  display: grid; gap: 30px;
}
.ticket::before {
  /* perforation de la fiche */
  content: ""; position: absolute; left: 0; right: 0; top: 56px; height: 10px;
  background: radial-gradient(circle at 5px 5px, var(--paper-2) 4px, transparent 4.5px) 0 0 / 16px 10px repeat-x;
}
.ticket__head { display: flex; justify-content: space-between; align-items: center; height: 56px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.ticket__no b { color: var(--ink); font-variant-numeric: tabular-nums; }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 16px; min-width: 0; }
legend { font-size: 22px; font-weight: 850; margin-bottom: 14px; padding: 0; letter-spacing: -0.01em; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.field { display: grid; gap: 7px; align-content: start; }
.field label { font-size: 14px; font-weight: 700; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-field);
  border: 1.5px solid color-mix(in srgb, var(--ink) 28%, transparent); background: var(--paper);
  color: var(--ink); font: inherit; font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.field.has-error input { border-color: #c4262e; }
.err { color: #c4262e; font-size: 14px; font-weight: 600; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .err { color: #ff7b7b; } }
.field--check label { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; color: var(--ink-2); font-size: 15px; }
.field--check input { width: 20px; height: 20px; min-height: 0; margin-top: 2px; accent-color: var(--accent-btn); flex: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span {
  display: inline-flex; align-items: center; height: 42px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid color-mix(in srgb, var(--ink) 25%, transparent); font-weight: 650; font-size: 15px;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease-out);
}
.chips input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.chips label:active span { transform: scale(0.97); }

.placer { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: center; }
.placer__tees { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.placer__tee { width: 100%; height: auto; }
.pt-body { fill: var(--paper); stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.pz { fill: color-mix(in srgb, var(--accent) 10%, transparent); stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 4 3; cursor: pointer; transition: fill 0.2s; }
.pz.on { fill: var(--accent); stroke-dasharray: none; }
.placer__tee text { font-size: 15px; font-weight: 700; fill: var(--muted); text-anchor: middle; font-family: inherit; }
.chips--zones span { height: 38px; font-size: 14px; }

.drop { position: relative; border: 2px dashed color-mix(in srgb, var(--ink) 25%, transparent); border-radius: var(--r-card); padding: 22px; text-align: center; transition: border-color 0.2s, background-color 0.2s; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop label { display: grid; gap: 4px; pointer-events: none; }
.drop label b { font-size: 17px; }
.drop label span { color: var(--muted); font-size: 14px; }
.drop.is-over, .drop:focus-within { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.drop__name { margin-top: 8px; font-weight: 700; color: var(--accent-text); }
.form-error { padding: 14px 16px; border-radius: var(--r-field); background: color-mix(in srgb, #c4262e 10%, transparent); color: var(--ink); font-weight: 600; }
.btn.is-loading { pointer-events: none; opacity: 0.8; }
.btn.is-loading [data-label]::after { content: ""; display: inline-block; width: 1.2em; text-align: left; animation: dots 1s steps(4) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }

.ticket__done { position: absolute; inset: 0; z-index: 3; background: var(--card); border-radius: var(--r-card); display: grid; place-content: center; text-align: center; gap: 14px; padding: 40px; }
.ticket__done h3 { font-size: 28px; font-weight: 900; max-width: 18ch; margin: 0 auto; }
.ticket__done p { color: var(--ink-2); }
.ticket__stamp {
  justify-self: center; font-family: "Falcon Script", cursive; font-size: 54px; color: var(--accent-text);
  border: 4px solid currentColor; border-radius: 12px; padding: 0 22px; transform: rotate(-8deg);
  animation: stamp 0.5s var(--ease-out) both;
}
@keyframes stamp { from { transform: rotate(-8deg) scale(1.8); opacity: 0; } }

@media (max-width: 960px) {
  .devis__grid { grid-template-columns: 1fr; gap: 36px; }
  .devis__side { position: static; }
}
@media (max-width: 620px) {
  .grid2, .grid3, .placer { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.foot { padding: 80px 0 32px; border-top: 1px solid var(--line); }
.foot__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot__grid p { color: var(--ink-2); margin-bottom: 14px; }
.foot__grid a { text-decoration: none; }
@media (hover: hover) { .foot__grid a:hover { color: var(--accent-text); } }
.foot__logo { display: block; width: min(300px, 80%); }
.foot__logo img { width: 100%; height: auto; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .foot__logo img { background: #fff; border-radius: 14px; padding: 10px 14px; } }
:root[data-theme="dark"] .foot__logo img { background: #fff; border-radius: 14px; padding: 10px 14px; }
.foot__word { font-size: clamp(2.4rem, 1.6rem + 2.6vw, 4rem); font-weight: 900; line-height: 0.95; letter-spacing: -0.03em; color: var(--ink) !important; font-variation-settings: "wdth" 118; text-transform: uppercase; }
.foot__word .script { text-transform: none; font-size: 0.8em; display: block; line-height: 1.3; }
.foot__h { font-weight: 800; color: var(--ink) !important; margin-bottom: 10px !important; }
.foot__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__word, .foot__logo { grid-column: 1 / -1; } }

/* ---------- Mouvement réduit : tout est lisible sans animation ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .flood__layer--ink { clip-path: none; }
  .racle { display: none; }
  .logos__row { transform: none !important; }
}

[hidden] { display: none !important; }

/* ---------- Variante DTF : fichier + texte facultatif + couleur du t-shirt ---------- */
.studio--dtf { grid-template-columns: minmax(260px, 1fr) auto auto; width: min(820px, calc(100% - var(--gutter) * 2)); }
.studio .studio__logo-btn--wide { width: 132px; }
@media (max-width: 1100px) {
  .studio--dtf { grid-template-columns: 1fr; }
}

.studio__text input::placeholder { text-transform: none; font-weight: 500; letter-spacing: 0; font-size: 16px; font-variation-settings: "wdth" 100; }

.tech__more { justify-self: start; font-size: 16px; }

/* ==========================================================================
   Pages intérieures : techniques et zone d'intervention
   ========================================================================== */
.page-body .nav { background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.page-body .nav .nav__logo { transform: translateY(-2px) scale(calc(62 / 132)); }
@media (max-width: 960px) { .page-body .nav .nav__logo { transform: translateY(-2px) scale(calc(62 / 92)); } }
@media (max-width: 520px) { .page-body .nav .nav__logo { transform: translateY(-2px) scale(calc(60 / 80)); } }

.page { padding: calc(var(--nav-h) + clamp(32px, 6vh, 64px)) 0 clamp(64px, 10vh, 112px); }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: inherit; text-underline-offset: 3px; }
.page__hero { display: grid; gap: 18px; max-width: 860px; margin-bottom: clamp(32px, 5vh, 56px); }
.page__hero h1 { font-size: clamp(2.3rem, 1.3rem + 3.4vw, 4.4rem); line-height: 0.98; font-weight: 900; letter-spacing: -0.03em; font-variation-settings: "wdth" 115; }
.page__hero h1 .script { font-size: 1.05em; display: inline-block; line-height: 1.1; }
.page__intro { font-size: clamp(18px, 1rem + 0.4vw, 21px); color: var(--ink-2); max-width: 62ch; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 8px 0 clamp(40px, 6vh, 64px); }
.fact { background: var(--card); border-radius: var(--r-card); padding: 18px 20px; box-shadow: var(--shadow); display: grid; gap: 4px; }
.fact span { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.fact b { font-size: 20px; font-weight: 850; }
.page__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.prose { display: grid; gap: 18px; max-width: 70ch; font-size: 18px; color: var(--ink-2); }
.prose h2 { font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.3rem); line-height: 1.08; font-weight: 850; letter-spacing: -0.02em; color: var(--ink); margin-top: 22px; font-variation-settings: "wdth" 110; }
.prose h3 { font-size: 20px; font-weight: 800; color: var(--ink); margin-top: 6px; }
.prose ul, .prose ol { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--accent-text); font-weight: 700; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.compare { width: 100%; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.compare td:first-child { font-weight: 700; color: var(--ink); }
.prose .cities { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0 !important; }
.cities li { padding: 7px 13px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 700; font-size: 15px; color: var(--ink); }
.cities li::marker { content: none; }
.aside-cta {
  position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 14px;
  background: var(--card); border-radius: var(--r-card); padding: 24px; box-shadow: var(--shadow);
}
.aside-cta h2 { font-size: 24px; font-weight: 900; line-height: 1.1; letter-spacing: -0.02em; }
.aside-cta p { color: var(--ink-2); font-size: 16px; }
.aside-cta .btn { width: 100%; }
.aside-cta ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.aside-cta ul a { text-decoration: none; }
.others { margin-top: clamp(48px, 8vh, 88px); display: grid; gap: 18px; }
.others__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.others__list a { display: grid; gap: 6px; padding: 20px; border-radius: var(--r-card); background: var(--card); box-shadow: var(--shadow); text-decoration: none; transition: transform 0.3s var(--ease-out); }
.others__list a b { font-size: 20px; font-weight: 850; }
.others__list a span { color: var(--ink-2); font-size: 15px; }
@media (hover: hover) { .others__list a:hover { transform: translateY(-4px); } }
.page .faq__list { max-width: 70ch; }
.page-cta { margin-top: clamp(48px, 8vh, 88px); background: var(--accent); color: var(--flood-ink); border-radius: var(--r-card); padding: clamp(28px, 5vw, 56px); display: grid; gap: 16px; justify-items: start; }
.page-cta h2 { font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem); font-weight: 900; line-height: 1; letter-spacing: -0.03em; font-variation-settings: "wdth" 115; }
.page-cta p { font-size: 18px; font-weight: 600; max-width: 52ch; }
.page-cta .btn { background: var(--flood-ink); color: #fff; box-shadow: none; }
@media (max-width: 960px) {
  .page__grid { grid-template-columns: 1fr; }
  .aside-cta { position: static; }
  .others__list { grid-template-columns: 1fr; }
}
@media (max-width: 620px) { .facts { grid-template-columns: 1fr; } .compare { font-size: 14px; } }

/* ==========================================================================
   Mobile : stabilité et légèreté
   ========================================================================== */
@media (max-width: 900px), (pointer: coarse) {
  /* Le filtre "tissage" en mélange de calques force le téléphone à tout recomposer : on le retire */
  .weave { display: none; }
}
@media (max-width: 900px) {
  /* Techniques : la section prend la hauteur de son contenu (plus de débordement sur la suivante) */
  .tech__stage { height: auto; min-height: 0; grid-template-rows: auto auto; padding-bottom: 56px; }
  .tech__visual { height: 52vh; height: 52svh; min-height: 300px; }
  /* Texte du manifeste aligné à gauche : pas de grands trous entre les mots sur petit écran */
  .manifeste__body { text-align: left; }
}

/* Mobile : empêche la page de "flotter" sur le côté (le viewport s'élargissait de quelques pixels) */
html { overflow-x: clip; }
@media (max-width: 900px) {
  /* Le titre "L'atelier" passait sous la barre du haut quand on y arrive par le menu */
  .line { padding-top: calc(var(--nav-h) + 28px); }
}
