/* =====================================================================
   printrz — mise en page des pages (refonte 2026-10)
   Site public, comptes, espace atelier, écrans d'outil : ajoutés étape par étape.
   ===================================================================== */

/* ---------- Page /_kit (développement uniquement) ---------- */
.kit-body { background: var(--bg-page); }
.kit { max-width: 1200px; margin: 0 auto; padding: 40px 32px 80px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.kit-head { display: grid; gap: 10px; }
.kit-head h1 { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; }
.kit-sec { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.kit-sec > h2 { font-size: 20px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.kit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.kit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.kit-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.kit-note { font-size: var(--fs-label); color: var(--muted); }
.kit-sw { display: grid; gap: 6px; font-size: var(--fs-label); color: var(--text-3); }
.kit-sw i { display: block; height: 56px; border-radius: var(--r-inset); border: 1px solid var(--line-2); }
.kit-sw code { color: var(--text-2); font-size: 11.5px; }
.sw-bg i { background: var(--bg); } .sw-seg-bg i { background: var(--seg-bg); } .sw-accent-soft i { background: var(--accent-soft); } .sw-pro-t i { background: var(--pro-t); } .sw-bg-page i { background: var(--bg-page); } .sw-sidebar i { background: var(--sidebar); }
.sw-card i { background: var(--card); } .sw-card-2 i { background: var(--card-2); } .sw-hover i { background: var(--hover); }
.sw-active i { background: var(--active); } .sw-canvas i { background: var(--canvas); } .sw-line i { background: var(--line); }
.sw-line-2 i { background: var(--line-2); } .sw-line-ctl i { background: var(--line-ctl); } .sw-text i { background: var(--text); }
.sw-text-2 i { background: var(--text-2); } .sw-text-3 i { background: var(--text-3); } .sw-muted i { background: var(--muted); }
.sw-dim i { background: var(--dim); } .sw-accent i { background: var(--accent); } .sw-accent-btn i { background: var(--accent-btn); }
.sw-accent-t i { background: var(--accent-t); } .sw-ok i { background: var(--ok); } .sw-warn i { background: var(--warn); }
.sw-err i { background: var(--err); } .sw-action i { background: var(--action); }
.kit-type { display: grid; gap: 14px; }
.kit-h1-site { font-size: var(--fs-h1-site); line-height: 1.05; font-weight: 800; letter-spacing: -0.035em; }
.kit-h2-site { font-size: var(--fs-h2-site); line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; }
.kit-h1-app { font-size: var(--fs-h1-app); font-weight: 700; }
.kit-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.kit-icons div { display: grid; justify-items: center; gap: 8px; padding: 14px 6px; border: 1px solid var(--line); border-radius: var(--r-inset); background: var(--card); font-size: 11.5px; color: var(--text-3); }
.kit-icons .ico { color: var(--text-2); }
.kit-shell { position: relative; min-height: 470px; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--bg); }
.kit-appbar { position: relative; }
.kit-inspector { width: var(--panel-w); max-width: 100%; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.kit-work { position: relative; display: grid; gap: 16px; align-content: start; }
.kit-floatbar { position: relative; min-height: 60px; }
.kit-stage-bar { bottom: auto; top: 0; }
.kit-pop { position: static; width: auto; display: grid; gap: 16px; }
.kit-sw-black { background: #121212; } .kit-sw-white { background: #F6F6F3; }
@media (max-width: 1000px) {
  .kit { padding: 24px 16px 60px; }
  .kit-h1-site { font-size: 44px; }
}
.kit-meter-46 { width: 46% !important; }

/* =====================================================================
   Site public
   ===================================================================== */
.site { background: var(--bg-page); }
.site-wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
@media (prefers-reduced-motion: no-preference) { html:has(body.site) { scroll-behavior: smooth; } }

/* Navigation collante : fond opaque, hauteur et colonnes fixes (aucun décalage à l'arrivée de la police) */
.site-nav { position: sticky; top: 0; z-index: 50; background: var(--card); border-bottom: 1px solid var(--line); }
.site-nav-in { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px; height: var(--nav-h); }
.site-nav .logo { justify-self: start; }
.site-links { display: flex; gap: 4px; }
.site-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: var(--r-menu); color: var(--text-3); font-size: var(--fs-ui); font-weight: 500; white-space: nowrap; transition: background-color var(--t) var(--ease), color var(--t) var(--ease); }
.site-links a:hover { color: var(--text); background: var(--hover); text-decoration: none; }
.site-links .site-links-login { display: none; }
.site-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.site-actions .btn { white-space: nowrap; }
.site-login { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; color: var(--text); font-size: var(--fs-ui); font-weight: 600; white-space: nowrap; }
.site-menu-btn { display: none; width: 42px; height: 42px; }
.site-menu-btn .ico-open, .nav-open .site-menu-btn .ico-closed { display: none; }
.nav-open .site-menu-btn .ico-open { display: block; }

/* Héros : un fond très légèrement teinté en haut, aucun motif */
.hero { padding: 88px 0 24px; overflow-x: clip; background: radial-gradient(70% 420px at 50% 0%, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0)); }
.hero-in { display: grid; justify-items: center; text-align: center; gap: 22px; }
.hero-pill { display: inline-flex; align-items: center; gap: 10px; min-height: 32px; padding: 0 14px; border-radius: var(--r-pill); background: var(--card); border: 1px solid var(--line); font-size: var(--fs-small); font-weight: 600; color: var(--text-2); }
.hero-pill span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero-title { max-width: 900px; font-size: 64px; line-height: 1.04; font-weight: 800; letter-spacing: -0.04em; color: var(--text); }
.hero-lead { max-width: 640px; font-size: 18px; line-height: 1.6; color: var(--text-3); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-cta .btn .ico { transition: transform var(--t) var(--ease); }
.hero-cta .btn:hover .ico { transform: translateX(3px); }
.hero-note { font-size: var(--fs-small); color: var(--muted); }
.hero-title, .hero-lead, .sec-title, .sec-lead, .steps3 p, .toolcard > p { text-wrap: balance; } /* pas de mot seul en fin de paragraphe */

/* Animations : arrivée du héros (CSS seul) et sections révélées au défilement (assets/js/home.js ajoute .motion).
   Opacité et translation seulement (aucun décalage de mise en page) ; coupées avec prefers-reduced-motion. */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 640ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .rise--2 { animation-delay: 70ms; } .rise--3 { animation-delay: 140ms; } .rise--4 { animation-delay: 210ms; }
  .rise--5 { animation-duration: 900ms; animation-delay: 300ms; }
  .motion .reveal { opacity: 0; transform: translateY(18px); transition: opacity 640ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 640ms cubic-bezier(0.2, 0.7, 0.2, 1); }
  .motion .reveal.is-in { opacity: 1; transform: none; }
  .motion .reveal--2 { transition-delay: 80ms; } .motion .reveal--3 { transition-delay: 160ms; }
  .shot-body:not([hidden]) { animation: fade 240ms ease-out both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Aperçu de l'espace atelier (thème clair, données d'exemple) */
.shot { position: relative; width: 100%; margin-top: 36px; }
.shot-win {
  position: relative; display: grid; grid-template-rows: auto 1fr; text-align: left; background: var(--bg); color: var(--text-2);
  border: 1px solid var(--line); border-radius: var(--r-card-lg); overflow: hidden; font-size: 12px;
  box-shadow: 0 1px 2px rgba(17, 17, 20, 0.05), 0 40px 80px -32px rgba(17, 17, 20, 0.28);
}
/* Barre de l'atelier (onglets de l'aperçu) */
.shot-bar { display: flex; align-items: center; gap: 4px; height: 52px; padding: 0 12px 0 12px; background: var(--card); border-bottom: 1px solid var(--line); }
.shot-logo { display: inline-flex; align-items: center; gap: 7px; margin-right: 10px; padding: 4px 6px; border: 0; border-radius: 8px; background: transparent; color: var(--text); cursor: pointer; }
.shot-logo .logo-mark { width: 18px; height: 18px; }
.shot-logo .logo-word { font-size: 16px; }
.shot-tab { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 11px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background-color var(--t) var(--ease), color var(--t) var(--ease); }
.shot-tab:hover, .shot-tab[aria-selected="true"] { background: var(--hover); color: var(--text); }
.shot-tab--tramedtf[aria-selected="true"] .ico { color: var(--tool-tramedtf); }
.shot-tab--controle[aria-selected="true"] .ico { color: #D4A800; }
.shot-tab--soon { cursor: default; }
.shot-tab--soon:hover { background: transparent; color: var(--muted); }
.shot-spacer { flex: 1 1 auto; }
.shot-plan { padding: 4px 10px; border-radius: var(--r-pill); background: var(--pro-bg); color: var(--pro-t); font-size: 11.5px; font-weight: 700; }
.shot-avatar { flex: none; width: 32px; height: 32px; margin-left: 6px; border: 0; border-radius: 50%; background: var(--accent-soft); color: var(--accent-t); font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; transition: box-shadow var(--t) var(--ease); }
.shot-avatar:hover, .shot-avatar[aria-selected="true"] { box-shadow: 0 0 0 2px var(--accent); }
/* Hauteur fixe des vues : changer d'onglet ne fait pas bouger la page */
.shot-body { display: grid; gap: 14px; align-content: start; padding: 22px 24px; height: 410px; overflow: hidden; }
.shot-body[hidden] { display: none; }
.shot-h1 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.shot-sub { color: var(--muted); font-size: 12px; }
.shot-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 6px; align-content: start; min-width: 0; }
button.shot-card { width: 100%; font: inherit; text-align: left; color: inherit; cursor: pointer; transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease); }
button.shot-card:hover { border-color: var(--line-2); box-shadow: 0 12px 28px -18px rgba(17, 17, 20, 0.35); }
/* Accueil de l'atelier */
.shot-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.shot-tool { grid-template-rows: auto auto 1fr auto; gap: 8px; min-height: 160px; padding: 14px; }
.shot-ti { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: #FFFFFF; }
.shot-ti--tramedtf { background: var(--tool-tramedtf); } .shot-ti--controle { background: var(--tool-controle); color: #111114; } .shot-ti--bat { background: var(--tool-bat); }
.shot-tool b { color: var(--text); font-size: 13.5px; letter-spacing: -0.01em; }
.shot-tool small { color: var(--muted); font-size: 11.5px; line-height: 1.45; }
.shot-go { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 11px; font-weight: 600; color: var(--muted); }
.shot-go .ico { color: var(--text); }
.shot-strip span { display: grid; gap: 2px; }
.shot-strip b { color: var(--text); font-size: 12.5px; }
.shot-strip small { color: var(--muted); font-size: 11.5px; }
.shot-privacy { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 11px; text-align: center; }
.shot-ct { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 700; color: var(--text); }
.shot-win .status { height: 20px; font-size: 10.5px; }
/* Vue TRAMEDTF : aperçu (vrai moteur) et panneau à étapes */
.shot-body--tool { grid-template-columns: minmax(0, 1fr) 216px; grid-template-rows: minmax(0, 1fr); align-content: stretch; padding: 0; gap: 0; }
.shot-stage { position: relative; margin: 12px; border-radius: 10px; background: #111113; overflow: hidden; min-height: 0; }
.shot-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.shot-cap { position: absolute; left: 10px; top: 8px; font-size: 10.5px; color: rgba(255, 255, 255, 0.72); }
.shot-insp { display: grid; gap: 8px; align-content: start; padding: 14px; background: var(--card); border-left: 1px solid var(--line); }
.shot-step { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 12.5px; font-weight: 700; color: var(--text); }
.shot-step span { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--text); color: var(--card); font-size: 10px; }
.shot-step em { margin-left: auto; font-style: normal; font-weight: 500; font-size: 11px; color: var(--muted); }
.shot-seg { display: flex; gap: 2px; padding: 3px; border-radius: 9px; background: var(--seg-bg); }
.shot-seg button { flex: 1 1 0; min-height: 28px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; }
.shot-seg button:hover { color: var(--text); }
.shot-seg button[aria-pressed="true"] { background: var(--seg-on); color: var(--text); box-shadow: var(--seg-shadow); }
.shot-export { margin-top: 8px; padding: 9px 10px; border-radius: 9px; background: var(--accent-btn); color: #FFFFFF; font-size: 12px; font-weight: 700; text-align: center; }
/* Vue Contrôle fichier */
.shot-filehead { display: flex; align-items: center; gap: 8px; }
.shot-file { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--r-pill); background: var(--card); border: 1px solid var(--line); color: var(--text-2); }
.shot-verdict { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: var(--warn-bg); }
.shot-verdict .ico { color: var(--warn); }
.shot-verdict span { display: grid; gap: 2px; }
.shot-verdict b { color: var(--text); font-size: 13px; }
.shot-verdict small { color: var(--text-2); font-size: 11.5px; }
.shot-checks { gap: 0; padding: 4px 12px; }
.shot-ck { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.shot-ck:first-child { border-top: 0; }
.shot-ck span { display: grid; gap: 2px; min-width: 0; }
.shot-ck b { color: var(--text); font-size: 12px; }
.shot-ck small { color: var(--text-3); font-size: 11px; }
.shot-ck.is-err .ico { color: var(--err); } .shot-ck.is-warn .ico { color: var(--warn); } .shot-ck.is-ok .ico { color: var(--ok); }
/* Vue Mon compte */
.shot-rows { gap: 0; padding: 0 12px; }
.shot-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 10px 0; border: 0; border-top: 1px solid var(--line); background: transparent; color: inherit; font: inherit; text-align: left; }
.shot-row:first-child { border-top: 0; }
.shot-row > span:first-child { display: grid; gap: 2px; min-width: 0; }
.shot-row b { color: var(--text); font-size: 12.5px; }
.shot-row small { color: var(--muted); font-size: 11px; }
.shot-row > .ico { color: var(--muted); }
button.shot-row { cursor: pointer; }
button.shot-row:hover b { color: var(--accent-t); }
.shot-btn { flex: none; padding: 5px 10px; border-radius: 7px; border: 1px solid var(--line-2); color: var(--text); font-size: 11px; font-weight: 600; }

/* Sections */
.sec { padding: 112px 0 0; scroll-margin-top: var(--nav-h); }
.sec--last { padding-bottom: 112px; }
.sec-head { display: grid; justify-items: center; text-align: center; gap: 14px; margin-bottom: 48px; }
.sec-kicker { font-size: var(--fs-small); font-weight: 700; color: var(--accent-t); }
.sec-title { font-size: 44px; line-height: 1.08; font-weight: 800; letter-spacing: -0.035em; color: var(--text); }
.sec-title--left { text-align: left; }
.sec-lead { max-width: 620px; font-size: 17px; line-height: 1.6; color: var(--text-3); }
.sec-lead--left { text-align: left; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-ui); color: var(--text-2); }
.ticks .ico { margin-top: 2px; color: var(--accent); }

/* Outils : cartes cliquables, en sous-grille (lignes alignées d'une carte à l'autre) */
.tools2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.toolcard {
  display: grid; grid-row: span 6; grid-template-rows: subgrid; gap: 12px; align-content: start; padding: 28px;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; color: var(--text); text-decoration: none;
  transition: border-color var(--t) var(--ease), box-shadow 240ms var(--ease), transform 240ms var(--ease);
}
.toolcard:hover { text-decoration: none; border-color: var(--line-2); box-shadow: 0 24px 48px -28px rgba(17, 17, 20, 0.3); transform: translateY(-3px); }
.toolcard-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 8px; border-radius: 14px; color: #FFFFFF; }
.toolcard-icon--tramedtf { background: var(--tool-tramedtf); } .toolcard-icon--controle { background: var(--tool-controle); color: #111114; } .toolcard-icon--bat { background: var(--tool-bat); } .toolcard-icon--dtfready { background: var(--tool-dtfready); } .toolcard-icon--separation { background: var(--tool-separation); } .toolcard-icon--seuilshold { background: var(--tool-seuilshold); }
.toolcard-name { display: flex; align-items: center; gap: 8px; font-size: var(--fs-small); font-weight: 700; color: var(--muted); }
.toolcard h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; }
.toolcard > p { color: var(--text-3); line-height: 1.55; }
.toolcard .ticks { align-content: start; padding-top: 4px; }
.toolcard-link { display: flex; align-items: center; gap: 6px; align-self: end; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line); font-size: var(--fs-ui); font-weight: 600; color: var(--accent-t); }
.toolcard-link .ico { width: 16px; height: 16px; transition: transform var(--t) var(--ease); }
.toolcard:hover .toolcard-link .ico { transform: translateX(3px); }

/* Démo (le moteur dessine sur un textile noir : la scène reste sombre) */
.demo { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.demo-text { display: grid; gap: 18px; justify-items: start; }
.demo-box { display: grid; grid-template-columns: minmax(0, 1fr) 240px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(17, 17, 20, 0.3); }
.demo-stage { position: relative; background: #111113; min-height: 420px; }
.demo-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.demo-cap { position: absolute; top: 12px; left: 14px; z-index: 1; font-size: var(--fs-label); color: rgba(255, 255, 255, 0.72); }
.demo-panel { display: grid; gap: 18px; align-content: start; padding: 20px 18px; }
.demo-panel .meter { margin-top: auto; }
.demo-panel .seg button { padding: 0 6px; }

/* Fonctionnement : trois étapes, puis les garanties */
.steps3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: none; }
.steps3 li { display: grid; gap: 10px; align-content: start; padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; }
.steps3-num { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 6px; border-radius: 50%; background: var(--text); color: var(--card); font-size: 15px; font-weight: 800; }
.steps3 h3 { font-size: 19px; letter-spacing: -0.015em; }
.steps3 p { color: var(--text-3); line-height: 1.55; }
.trust { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; }
.trust li { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: var(--r-pill); background: var(--card); border: 1px solid var(--line); font-size: var(--fs-small); font-weight: 600; color: var(--text-2); }
.trust .ico { color: var(--accent); }

/* Tarifs */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 16px; }
.plan { display: grid; gap: 16px; align-content: start; padding: 32px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; }
.plan h3 { font-size: 18px; }
.plan-top { display: flex; align-items: center; justify-content: space-between; }
.plan-sub { color: var(--text-3); font-size: var(--fs-ui); margin-top: -8px; }
.plan-price { color: var(--text-3); font-size: var(--fs-ui); }
.plan-after { color: var(--text-3); font-size: var(--fs-small); margin-top: -10px; }
.plan-price span { font-size: 44px; font-weight: 800; letter-spacing: -0.035em; color: var(--text); font-variant-numeric: tabular-nums; margin-right: 6px; }
.plan .btn { margin-top: 8px; }
.plan--pro { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset, 0 32px 64px -36px rgba(37, 99, 235, 0.45); }

/* FAQ en lignes */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 56px; align-items: start; }
.faq-wrap > div:first-child { display: grid; gap: 16px; }
.faq--lines { gap: 0; }
.faq--lines details { background: none; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); }
.faq--lines details:first-child { border-top: 1px solid var(--line); }
.faq--lines summary { padding: 0; min-height: 64px; }
.faq--lines details > div { padding: 0 0 20px; }
.faq--lines details > div p { color: var(--text-2); line-height: 1.6; }

/* Appel final : bandeau sombre, seul contraste fort de la page */
.cta { display: grid; justify-items: center; text-align: center; gap: 16px; padding: 72px 32px; border-radius: 24px; background: #111114; }
.cta .sec-title { color: #F2F2F4; }
.cta .sec-lead { color: #B4B4BC; }
.cta .btn--secondary { background: transparent; border-color: rgba(255, 255, 255, 0.28); color: #F2F2F4; }
.cta .btn--secondary:hover { background: rgba(255, 255, 255, 0.08); }

/* Pied de page */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 32px; background: var(--card); }
.site-footer-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.site-footer-brand { display: grid; gap: 14px; align-content: start; }
.site-footer-brand p { max-width: 280px; color: var(--text-3); font-size: var(--fs-ui); }
.site-footer-brand strong { color: var(--text); font-weight: 600; }
.site-footer nav { display: grid; gap: 10px; align-content: start; }
.site-footer nav a { color: var(--text-3); font-size: var(--fs-ui); }
.site-footer nav a:hover { color: var(--text); }
.site-footer-title { font-size: var(--fs-small); font-weight: 700; color: var(--text); }
.site-copy { margin-top: 40px; font-size: var(--fs-label); color: var(--muted); }

@media (max-width: 1000px) {
  .site-wrap { padding: 0 20px; }
  .site-nav-in { grid-template-columns: auto minmax(0, 1fr); gap: 12px; }
  .site-menu-btn { display: inline-grid; place-items: center; }
  /* Menu déroulant sous la barre : masqué tant qu'il n'est pas ouvert */
  .site-links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 2px; padding: 10px 20px 18px; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: var(--pop-shadow); }
  .nav-open .site-links { display: flex; }
  .site-links a { min-height: 48px; font-size: var(--fs-body); }
  .site-login { display: none; }
  .site-links .site-links-login { display: inline-flex; color: var(--text); font-weight: 600; }
  .hero { padding: 56px 0 16px; }
  .hero-title { font-size: 44px; }
  .sec { padding-top: 80px; }
  .sec--last { padding-bottom: 80px; }
  .sec-title { font-size: 34px; }
  .sec-head { margin-bottom: 36px; }
  /* Aperçu : la barre défile au besoin, le panneau de l'outil passe sous l'aperçu */
  .shot-bar { overflow-x: auto; scrollbar-width: none; }
  .shot-bar::-webkit-scrollbar { display: none; }
  .shot-logo .logo-word, .shot-plan, .shot-tab--soon { display: none; }
  .shot-body { height: 540px; padding: 18px 16px; }
  .shot-tools { grid-template-columns: minmax(0, 1fr); }
  .shot-tools .shot-tool:nth-child(3) { display: none; }
  .shot-tool { min-height: 0; }
  .shot-body--tool { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; padding: 0; }
  .shot-insp { border-left: 0; border-top: 1px solid var(--line); }
  .tools2, .demo, .faq-wrap, .steps3 { grid-template-columns: minmax(0, 1fr); }
  .toolcard { grid-row: auto; grid-template-rows: none; }
  .demo { gap: 32px; }
  .demo-box { grid-template-columns: minmax(0, 1fr); }
  .demo-stage { min-height: 300px; }
  .demo-panel { border-top: 1px solid var(--line); }
  .steps3 li, .toolcard, .plan { padding: 24px; }
  .cta { padding: 56px 22px; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .site-footer-in { grid-template-columns: 1fr 1fr; }
  .site-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .hero-title { font-size: 38px; }
  .hero-lead { font-size: 16px; }
  .sec-title { font-size: 30px; }
  .shot-body { height: 460px; }
  /* Onglets réduits à leur picto (libellé gardé pour les lecteurs d'écran) */
  .shot-tab > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .shot-tool small, .shot-privacy { display: none; }
  .site-actions .site-cta { padding: 0 14px; font-size: var(--fs-small); min-height: 40px; }
}
@media (max-width: 360px) {
  .site-actions .site-cta { display: none; } /* reste dans le menu (Se connecter) et dans le héros */
}

/* =====================================================================
   Pages de compte et d'erreur : logo en haut, carte centrée de 420 px
   ===================================================================== */
.auth-body { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; background: var(--bg); }
.auth-top { display: flex; justify-content: center; padding: 32px 20px 0; }
.auth-main { position: relative; display: grid; place-items: center; padding: 48px 16px; overflow-x: clip; }
.auth-main::before { content: ""; position: absolute; left: 50%; top: 50%; width: 760px; height: 560px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)); pointer-events: none; }
.auth-card {
  position: relative; width: 100%; max-width: 420px; display: grid; gap: 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card-lg); padding: 34px;
  box-shadow: var(--shadow-window);
}
.auth-title { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.auth-sub { color: var(--text-3); font-size: var(--fs-ui); margin-top: -10px; }
.auth-title + .auth-sub { margin-top: -10px; }
.auth-form { display: grid; gap: 18px; }
.auth-form > .auth-sub { margin-top: 0; }
.auth-switch { text-align: center; font-size: var(--fs-ui); color: var(--text-3); }
.auth-switch a, .link-btn { font-weight: 600; color: var(--accent-t); }
.link-btn { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; cursor: pointer; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-back { display: inline-flex; align-items: center; gap: 6px; justify-self: start; min-height: 32px; font-size: var(--fs-small); color: var(--text-3); }
.auth-back:hover { color: var(--text); text-decoration: none; }
.ico--flip { transform: scaleX(-1); }
.auth-foot { padding: 0 20px 40px; text-align: center; }
.auth-foot p { max-width: 400px; margin: 0 auto; font-size: var(--fs-label); color: var(--muted); }
.field-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.field-top label { font-size: var(--fs-small); font-weight: 600; color: var(--text); }
.field-aside { font-size: var(--fs-small); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: var(--fs-label); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.passkey-block { display: grid; gap: 10px; }
.input-code { font-variant-numeric: tabular-nums; letter-spacing: 0.08em; }
.error-card { text-align: center; justify-items: center; }
.error-code { font-size: 56px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--text); }
@media (max-width: 480px) {
  .auth-card { padding: 26px 20px; }
  .auth-main { padding: 32px 12px; }
}

/* =====================================================================
   Espace atelier (refonte du 2026-10-22) : barre du haut (components.css), puis le contenu centré
   ===================================================================== */
.app-body { background: var(--bg); }
.app-content { padding: 40px 24px 64px; display: grid; gap: 24px; align-content: start; max-width: 1088px; width: 100%; margin: 0 auto; }

/* En-tête de page */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.page-title { font-size: var(--fs-h1-app); font-weight: 700; letter-spacing: -0.02em; }
.page-sub { margin-top: 4px; color: var(--text-3); font-size: var(--fs-ui); max-width: 720px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.page-stack { display: grid; gap: 16px; max-width: 760px; }
.page-stack > .card { scroll-margin-top: calc(var(--topbar-h) + 16px); }
.account .page-head .page-title { margin-top: 4px; }
.page-narrow { max-width: 520px; }
.form-stack { display: grid; gap: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.card > * + * { margin-top: 0; }
.card { display: grid; gap: 14px; align-content: start; }
.card-head { margin-bottom: 0; }
.small { font-size: var(--fs-small); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--fs-small); }
.nowrap { white-space: nowrap; }
.status--info { background: var(--card-2); color: var(--text-2); }

/* Accueil de l'atelier : une question, trois outils */
.home { display: grid; gap: 32px; padding-top: 24px; }
.home-head { display: grid; gap: 6px; }
.home-title { font-size: 34px; line-height: 1.15; letter-spacing: -0.025em; }
.home-sub { font-size: 17px; color: var(--muted); }
.home-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.home-tool {
  display: grid; grid-template-rows: auto 1fr auto; gap: 18px; min-height: 236px; padding: 24px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; color: var(--text); text-decoration: none;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.home-tool:hover { border-color: var(--line-2); box-shadow: var(--shadow-window); text-decoration: none; }
.home-tool-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: #FFFFFF; }
.home-tool-icon .ico { width: 24px; height: 24px; }
.home-tool-icon--tramedtf { background: var(--tool-tramedtf); }
.home-tool-icon--controle-fichier { background: var(--tool-controle); color: #111114; }
.home-tool-icon--bat { background: var(--tool-bat); }
.home-tool-icon--dtf-ready { background: var(--tool-dtfready); }
.home-tool-icon--separation { background: var(--tool-separation); }
.home-tool-icon--seuilshold { background: var(--tool-seuilshold); }
.home-tool-text { display: grid; gap: 6px; align-content: start; }
.home-tool-title { font-size: 21px; font-weight: 700; letter-spacing: -0.015em; color: var(--text); }
.home-tool-desc { font-size: 15px; line-height: 1.5; color: var(--muted); }
.home-tool-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: var(--fs-small); font-weight: 600; color: var(--muted); }
.home-tool-foot > span { display: inline-flex; align-items: center; gap: 8px; }
.home-tool-foot .ico { color: var(--text); transition: transform var(--t) var(--ease); }
.home-tool:hover .home-tool-foot .ico { transform: translateX(3px); }
.home-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.home-strip-text { flex: 1 1 420px; display: grid; gap: 4px; }
.home-strip-text strong { font-size: 15px; color: var(--text); }
.home-strip-text span { font-size: var(--fs-ui); color: var(--muted); }
.home-strip--warn { background: var(--warn-bg); border-color: transparent; }
.home-strip--warn > .ico { color: var(--warn); }
.home-strip--warn .home-strip-text { flex-basis: 200px; }
.home-strip--warn .home-strip-text span { color: var(--text-2); }
.home-privacy { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13.5px; color: var(--muted); text-align: center; }
.home-privacy .ico { width: 15px; height: 15px; }

/* Mon compte et Sécurité : groupes de lignes « libellé · valeur · action » */
.account { display: grid; gap: 36px; max-width: 760px; width: 100%; margin: 0 auto; }
.account .page-title { font-size: 30px; letter-spacing: -0.025em; }
.set-group { display: grid; gap: 10px; scroll-margin-top: calc(var(--topbar-h) + 16px); }
.set-title { font-size: var(--fs-ui); font-weight: 700; letter-spacing: 0; color: var(--muted); }
.set-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); }
.set-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 16px 20px; }
.set-row + .set-row { border-top: 1px solid var(--line); }
.set-row form { margin: 0; }
.set-text { flex: 1 1 260px; min-width: 0; display: grid; gap: 3px; }
.set-label { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 15px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.set-value { font-size: var(--fs-ui); line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.set-note { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); }
.set-edit { display: block; }
.set-edit > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; list-style: none; cursor: pointer; }
.set-edit > summary::-webkit-details-marker { display: none; }
.set-edit-open, .set-edit[open] .set-edit-closed { display: none; }
.set-edit[open] .set-edit-open { display: inline; }
.set-form { display: grid; gap: 14px; padding-top: 16px; }
.account-logout { margin: 0; }
@media (min-width: 1001px) { .account-logout { margin-left: -18px; } } /* texte du bouton aligné sur la colonne */
.back-link { display: inline-flex; align-items: center; gap: 4px; justify-self: start; min-height: 36px; font-size: var(--fs-ui); font-weight: 600; color: var(--text-2); }
.back-link:hover { color: var(--text); text-decoration: none; }

/* Listes clé / valeur et lignes */
.kv { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0; margin: 0; }
.kv > div { display: contents; }
.kv dt, .kv dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-ui); }
.kv dt { color: var(--text-3); }
.kv dd { color: var(--text); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.list { list-style: none; margin: 0; padding: 0; display: grid; }
.list-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.list-row:first-child { border-top: 0; }
.list-row strong { color: var(--text); }

/* Sécurité */
.steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--text-2); }
.totp-setup { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.qr { background: #FFFFFF; padding: 10px; border-radius: var(--r-inset); width: 200px; height: 200px; }
.secret code, .codes code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; letter-spacing: 0.04em; color: var(--text); }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.choice { display: grid; gap: 10px; align-content: start; padding: 16px; background: var(--card-2); border: 1px solid var(--line); border-radius: var(--r-inset); }
.choice-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; }
.codes { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; counter-reset: code; }
.codes li { padding: 10px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-seg); text-align: center; }

/* SOC */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.kpi-delta--bad { color: var(--err); } .kpi-delta--good { color: var(--ok); } .kpi-delta--stable { color: var(--muted); }
.soc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.soc-wide { grid-column: 1 / -1; }
.soc-note { font-size: var(--fs-small); }
.soc-empty { padding: 14px 0; }
.table-details > summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; font-size: var(--fs-small); font-weight: 600; color: var(--text-2); }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.filters .field { min-width: 200px; }
.filters .select { min-height: 42px; }
/* SOC, page Comptes : invitation, lien à copier, tableaux */
.admin-stack { display: grid; gap: 16px; }
.admin-stack .card-title + .soc-note { margin-top: 4px; }
.invite-form { margin-top: 16px; }
.invite-form .invite-email { flex: 1 1 260px; }
.invite-link { display: grid; gap: 8px; margin-top: 16px; padding: 14px; border: 1px solid var(--line-2); border-radius: var(--r-inset); background: var(--card-2); }
.invite-link label { font-size: var(--fs-small); color: var(--text-2); overflow-wrap: anywhere; }
.invite-link-row { display: flex; flex-wrap: wrap; gap: 10px; }
.invite-link-row .input { flex: 1 1 240px; min-width: 0; }
.cell-email { overflow-wrap: anywhere; min-width: 180px; }
.cell-lines { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
/* Tableaux du SOC « Comptes » sous 720 px : une carte par ligne, libellé de colonne à gauche (data-label). */
@media (max-width: 720px) {
  .table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table--stack, .table--stack tbody, .table--stack tr, .table--stack td { display: block; }
  .table.table--stack { min-width: 0; }
  .table--stack .cell-email { min-width: 0; }
  .table--stack tr { padding: 6px 0; border-top: 1px solid var(--line); }
  .table--stack tbody tr:first-child { border-top: 0; }
  .table--stack td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 14px; border-top: 0; text-align: right; min-width: 0; }
  .table--stack td[data-label]::before { content: attr(data-label); flex: none; color: var(--muted); font-size: var(--fs-label); font-weight: 600; text-align: left; }
  .table--stack .cell-email { display: block; text-align: left; font-weight: 600; color: var(--text); }
  .table--stack .cell-email::before { display: none; }
  .table--stack .cell-action--none { display: none; }
  .table--stack .cell-lines { align-items: flex-end; min-width: 0; }
  .table--stack .status { white-space: normal; }
  .table--stack .cell-action form, .table--stack .cell-action .btn { width: 100%; }
  .table--stack .cell-action .btn { justify-content: center; }
}
.soc-filters-on { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: var(--fs-small); }
.chart-wrap { width: 100%; overflow-x: auto; }
.chart { width: 100%; min-width: 560px; height: auto; display: block; }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-axis { stroke: var(--line-2); stroke-width: 1; }
.chart-tick { fill: var(--muted); font-size: 9px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.chart-bar { fill: var(--accent); }
.chart-hit { fill: transparent; }
.chart-col:hover .chart-hit { fill: var(--hover); }
.chart-col:hover .chart-bar { fill: var(--accent-t); }

/* Petits écrans */
@media (max-width: 1000px) {
  .app-content { padding: 24px 16px 48px; }
  .soc-grid { grid-template-columns: minmax(0, 1fr); }
  .codes { grid-template-columns: minmax(0, 1fr); }
  .home { padding-top: 8px; gap: 24px; }
  .home-title { font-size: 28px; }
  .home-tool { min-height: 0; }
}

/* =====================================================================
   Écrans d'outil (refonte du 2026-10-22) : aperçu plein cadre sous la barre de l'atelier, panneau de 360 px à droite.
   Panneau : étapes à plat (.insp-step), vues secondaires (.insp-sub, tool-ui.js data-sub-open), bouton principal en bas.
   ===================================================================== */
.is-tool .app-content { max-width: none; margin: 0; padding: 0; display: block; }
.is-tool .app-content > .alert { margin: 12px 16px; }
.studio { display: grid; grid-template-columns: minmax(0, 1fr) var(--panel-w); height: calc(100vh - var(--topbar-h)); height: calc(100dvh - var(--topbar-h)); min-height: 520px; }

/* Aperçu */
.studio-canvas.tool-work { position: relative; display: block; min-width: 0; min-height: 0; padding: 16px; background: var(--canvas); }
.stage-wrap { position: relative; height: 100%; min-height: 0; }
.stage { position: absolute; inset: 0; overflow: hidden; background: var(--canvas); border-radius: var(--r-card); touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.stage.dragging { cursor: grabbing; }
.stage.picking { cursor: crosshair; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.veil { position: absolute; inset: 0; display: none; place-items: center; background: var(--veil); border: 2px dashed var(--accent); border-radius: var(--r-card); font-size: 22px; font-weight: 700; color: var(--text); pointer-events: none; }
.stage.over .veil { display: grid; }
.pickhint { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); display: none; padding: 6px 14px; border-radius: var(--r-pill); background: var(--accent-btn); color: #FFFFFF; font-size: var(--fs-small); font-weight: 600; white-space: nowrap; pointer-events: none; }
.stage.picking .pickhint { display: block; }

/* Surfaces flottantes sur l'aperçu */
.studio-file, .drop-card, .studio-toast, .studio-hint, .cf-files { background: var(--float-bg); border: 1px solid var(--line); backdrop-filter: blur(8px); }
.studio-file { position: absolute; left: 12px; top: 12px; z-index: 3; display: flex; align-items: center; gap: 8px; max-width: calc(100% - 24px); padding: 4px 4px 4px 12px; border-radius: var(--r-inset); }
.studio-file-name { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: var(--fs-small); font-weight: 600; color: var(--text); }
.studio-file-name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio-file-name .ico { color: var(--muted); }
.studio-file .btn { flex: none; }
.studio-file-x { flex: none; width: 34px; height: 34px; background: transparent; border: 0; }
/* Tant que la carte d'ajout est affichée (exemple), la puce du fichier serait un doublon */
.stage-wrap:has(#dropCard:not([hidden])) .studio-file { display: none; }
.drop-card { position: absolute; left: 12px; top: 12px; z-index: 2; max-width: calc(100% - 24px); display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 8px; border-radius: var(--r-inset); cursor: default; }
.drop-card .empty-hint { display: inline; text-align: left; line-height: 1.4; font-size: var(--fs-small); }
.drop-close { flex: none; width: 34px; height: 34px; background: transparent; border: 0; }
.studio-toast { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); z-index: 4; display: grid; gap: 8px; justify-items: center; width: min(420px, calc(100% - 24px)); padding: 10px 14px; border-radius: var(--r-inset); box-shadow: var(--pop-shadow); }
.studio-toast:not(:has(#progress:not([hidden]), #msg:not(:empty), #resaveBtn:not([hidden]))) { display: none; }
.studio-toast.bat-toast:has(#pdfMsg:not(:empty)) { display: grid; }
.studio-toast .progress { width: 100%; }
.studio-toast .pmsg { text-align: center; }
.studio-hint { position: absolute; right: 12px; top: 12px; z-index: 2; padding: 6px 12px; border-radius: var(--r-pill); font-size: var(--fs-label); color: var(--text-3); pointer-events: none; }

/* Barre flottante : affichage, fond, zoom, plein écran */
.stage-bar { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 3; max-width: calc(100% - 24px); gap: 6px; border-radius: 14px; border-color: var(--line); white-space: nowrap; }
.stage-bar .seg, .floatbar.stage-bar .seg { background: var(--seg-bg); border: 1px solid var(--seg-line); padding: 3px; border-radius: var(--r-ctl); }
.stage-bar .seg button { min-height: 32px; border-radius: 8px; padding: 0 12px; flex: none; }
.stage-bar .btn-icon { width: 36px; height: 36px; border-radius: 8px; color: var(--text); }
.stage-bar .btn-icon:hover { background: var(--hover); }
.stage-bar .btn--sm { min-height: 36px; padding: 0 10px; border-radius: 8px; color: var(--text); }
.stage-bar output { color: var(--text); }
.floatbar-sep { flex: none; width: 1px; height: 22px; margin: 0 2px; background: var(--line-2); }

/* Panneau */
.studio-inspector { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--card); border-left: 1px solid var(--line); }
.insp-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 60px; padding: 0 12px 0 20px; border-bottom: 1px solid var(--line); }
.insp-head-title { font-size: 16px; letter-spacing: -0.01em; }
.insp-presets-menu { position: relative; }
.insp-presets-menu > summary { list-style: none; gap: 6px; padding: 0 10px; }
.insp-presets-menu > summary::-webkit-details-marker { display: none; }
.insp-presets-menu[open] > summary { background: var(--hover); }
.insp-presets-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: 320px; max-width: calc(100vw - 32px); padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-inset); box-shadow: var(--pop-shadow); }
.insp-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; }
.insp-main, .insp-sub { display: grid; grid-template-columns: minmax(0, 1fr); padding: 0 20px 24px; }
.insp-step { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 20px 0; }
.insp-step > * { min-width: 0; }
.insp-step + .insp-step { border-top: 1px solid var(--line); }
.insp-step-title { display: flex; align-items: center; gap: 10px; min-height: 24px; font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.step-num { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--text); color: var(--card); font-size: 12px; font-weight: 700; letter-spacing: 0; }
.insp-step-val { margin-left: auto; min-width: 0; font-size: var(--fs-small); font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.insp-step-val:empty { display: none; }
.insp-sub-title { font-size: var(--fs-ui); font-weight: 700; letter-spacing: -0.005em; }
/* Étape repliable (BAT, logo : <details> requis par le script) */
.insp-step--fold { display: block; }
.insp-step--fold > summary { list-style: none; cursor: pointer; min-height: 32px; }
.insp-step--fold > summary::-webkit-details-marker { display: none; }
.insp-step--fold .acc-chev { flex: none; margin-left: auto; color: var(--muted); transition: transform var(--t) var(--ease); }
.insp-step--fold .insp-step-val:not(:empty) + .acc-chev { margin-left: 0; }
.insp-step--fold[open] .acc-chev { transform: rotate(180deg); }
.insp-step-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding-top: 14px; }
.insp-step-body > * { min-width: 0; }
/* Accès à une vue secondaire, et retour */
.insp-more {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 54px; margin-top: 8px; padding: 8px 12px 8px 14px;
  border: 1px solid var(--line); border-radius: var(--r-inset); background: transparent; color: var(--text); text-align: left; cursor: pointer;
  transition: background-color var(--t) var(--ease);
}
.insp-more:hover { background: var(--hover); }
.insp-more > span { flex: 1; min-width: 0; display: grid; gap: 2px; }
.insp-more strong { font-size: var(--fs-ui); font-weight: 600; }
.insp-more > span > span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.insp-more > .ico { color: var(--muted); }
.insp-back {
  justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin: 12px 0 0 -8px; padding: 0 12px 0 6px;
  border: 0; border-radius: var(--r-menu); background: transparent; color: var(--text); font-size: 15px; font-weight: 700; cursor: pointer;
}
.insp-back:hover { background: var(--hover); }
.insp-sub .insp-step:first-of-type { padding-top: 12px; }
.insp-foot { flex: none; display: grid; gap: 10px; padding: 14px 20px 16px; border-top: 1px solid var(--line); background: var(--card); }
.insp-foot .btn-action { min-height: 48px; border-radius: var(--r-inset); }
.insp-foot .phint, .insp-foot .pinfo { margin: 0; }
.insp-privacy { display: flex; align-items: flex-start; gap: 8px; padding-top: 16px; font-size: var(--fs-small); line-height: 1.45; color: var(--muted); }
.insp-privacy .ico { margin-top: 2px; }
.insp-upsell { padding-top: 16px; }
.insp-foot-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.insp-foot-row .btn { min-height: 48px; border-radius: var(--r-inset); }

/* Contrôles du panneau */
.studio-inspector .seg button { flex: 1 1 0; min-width: 0; min-height: 38px; padding: 4px 6px; white-space: normal; line-height: 1.2; font-size: 13.5px; }
.studio-inspector .seg--grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); }
.setting { display: grid; gap: 8px; }
.setting > * { min-width: 0; }
.setting-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.setting-row .setting-value { margin-left: auto; font-weight: 500; color: var(--muted); }
.studio-inspector .field-label { color: var(--text-2); }
.dpi-free { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; min-height: 42px; padding: 4px 6px 4px 12px; border: 1px solid var(--line); border-radius: var(--r-ctl); font-weight: 600; color: var(--text); }
a.pro-tag:hover { text-decoration: none; filter: brightness(0.97); }
.num-in { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-label); color: var(--muted); }
.num-in input {
  width: 64px; min-height: 32px; padding: 0 8px; text-align: right; border-radius: var(--r-seg);
  background: var(--field-bg); border: 1px solid var(--line-ctl); color: var(--text); font: inherit; font-size: var(--fs-small); font-weight: 600; font-variant-numeric: tabular-nums;
}
.num-in input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.pfield { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; }
.pfield > label { font-size: var(--fs-small); font-weight: 600; color: var(--text-2); }
.pfield > .range { grid-column: 1 / -1; }
.prow { display: grid; gap: 6px; }
.plbl { font-size: var(--fs-small); font-weight: 600; color: var(--text-2); }
.phint { font-size: var(--fs-small); color: var(--muted); line-height: 1.5; }
.pnote { font-size: var(--fs-small); color: var(--warn); line-height: 1.5; }
.pinfo { font-size: var(--fs-label); color: var(--text-3); line-height: 1.5; font-variant-numeric: tabular-nums; }
.pinfo strong { color: var(--text); }
.pmsg { font-size: var(--fs-small); color: var(--text-2); }
.pmsg.warn { color: var(--warn); }
.pmsg:empty { display: none; }
.progress { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; font-size: var(--fs-label); color: var(--text-3); font-variant-numeric: tabular-nums; }
.meter-bar { background: var(--seg-bg); }
.meter-bar i { transition: width 200ms var(--ease); }
.outgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.outgrid .input { min-height: 42px; }
#statTxt strong { color: var(--text); }
.tool-app:not([data-mode="full"]) .only-full, .tool-app:not([data-mode="fades"]) .only-fades,
.tool-app[data-mode="fades"] .not-fades, .tool-app[data-lum="vivid"] .not-vivid, .tool-app[data-lum="gradient"] .not-vivid,
.tool-app[data-shape="stochastic"] .only-am, .tool-app:not([data-shape="stochastic"]) .only-fm { display: none !important; }

/* Formes de points, nuancier, défonce (éléments créés par le script de l'outil) */
.shapes { display: grid; grid-template-columns: repeat(auto-fill, minmax(122px, 1fr)); gap: 6px; }
.shape {
  display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 40px; padding: 0 10px; border-radius: var(--r-ctl); white-space: nowrap; overflow: hidden;
  background: var(--field-bg); border: 1px solid var(--line-2); color: var(--text-3); font: inherit; font-size: var(--fs-small); font-weight: 600; cursor: pointer;
}
.shape svg { flex: none; fill: currentColor; }
.shape:hover { color: var(--text); }
.shape[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sw { width: 34px; height: 34px; border-radius: 50%; border: 0; box-shadow: inset 0 0 0 1px var(--swatch-line); padding: 0; cursor: pointer; }
.sw[aria-pressed="true"] { outline: 2px solid var(--accent); outline-offset: 2px; }
.sw.custom { position: relative; overflow: hidden; background: conic-gradient(#E6007E, #FFD500, #009FE3, #E6007E); }
.sw.custom input { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); opacity: 0; cursor: pointer; }
.knock { display: grid; grid-template-columns: 32px 32px minmax(0, 1fr) 28px 28px; align-items: center; gap: 8px; margin-bottom: 8px; }
.knock output { font-size: var(--fs-label); text-align: right; color: var(--text-3); font-variant-numeric: tabular-nums; }
.knock input[type="range"] { width: 100%; accent-color: var(--accent); }
.tool-panel input[type="color"] { width: 32px; height: 32px; padding: 0; border: 1px solid var(--line-2); border-radius: var(--r-seg); background: none; cursor: pointer; }
.tool-panel input[type="color"]::-webkit-color-swatch-wrapper { padding: 2px; }
.tool-panel input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 4px; }
.icon { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border-radius: var(--r-seg); background: var(--card-2); border: 1px solid var(--line-2); color: var(--text-3); cursor: pointer; }
.icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon[aria-pressed="true"] { border-color: var(--accent); color: var(--text); }
.icon.rm { width: 28px; height: 28px; border: 0; background: transparent; }

/* Plein écran : seul l'aperçu reste, avec sa barre flottante (Échap pour sortir) */
.canvas-focus .appbar, .canvas-focus .studio-inspector { display: none !important; }
.canvas-focus .studio { height: 100vh; height: 100dvh; grid-template-columns: minmax(0, 1fr); }
.canvas-focus .studio-canvas.tool-work { padding: 0; }
.canvas-focus .stage, .canvas-focus .veil { border-radius: 0; }

/* ---------- Contrôle fichier (classes créées par son script incluses) ---------- */
/* Aperçu : la scène défile quand on zoome ; marges intérieures pour le bandeau des fichiers et la barre flottante (lues par le script) */
.cf-app .cf-stage { display: flex; overflow: auto; padding: 76px 20px 68px; cursor: default; touch-action: auto; user-select: auto; -webkit-user-select: auto;
  background-color: var(--checker-a); background-image: linear-gradient(45deg, var(--checker-b) 25%, transparent 25%, transparent 75%, var(--checker-b) 75%), linear-gradient(45deg, var(--checker-b) 25%, transparent 25%, transparent 75%, var(--checker-b) 75%); background-size: 20px 20px; background-position: 0 0, 10px 10px; }
.cf-app .cf-stage.over { outline: 2px dashed var(--accent); outline-offset: -8px; }
.cf-app .pvin { position: relative; margin: auto; flex: none; }
.cf-app .pvin canvas { position: static; display: block; width: auto; height: auto; }
.cf-app .pvin canvas.pix { image-rendering: pixelated; }
.cf-app #ov { position: absolute; left: 0; top: 0; pointer-events: none; }
.cf-app .empty { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 24px; min-height: 0; text-align: center; background: var(--card); border: 2px dashed var(--line-2); border-radius: var(--r-card); }
.cf-empty { display: grid; justify-items: center; gap: 12px; max-width: 420px; }
.cf-empty b { font-size: 18px; font-weight: 700; color: var(--text); }
.cf-app .busy { position: absolute; left: 50%; top: 50%; z-index: 4; transform: translate(-50%, -50%); background: var(--accent-btn); color: #FFFFFF; padding: 6px 14px; border-radius: var(--r-pill); font-size: var(--fs-small); font-weight: 600; }
/* Fichiers analysés : bandeau flottant en haut de l'aperçu */
.cf-files { position: absolute; left: 12px; top: 12px; z-index: 3; display: flex; align-items: center; gap: 6px; width: max-content; max-width: calc(100% - 24px); padding: 4px; overflow-x: auto; scrollbar-width: none; border-radius: var(--r-inset); }
.cf-files:empty { display: none; }
.stage-wrap:has(#empty:not([hidden])) .cf-files { display: none; }
.cf-app .fadd { flex: none; }
.cf-app .fchip { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 4px; border: 1px solid transparent; border-radius: var(--r-ctl); background: transparent; flex: none; max-width: 240px; text-align: left; font: inherit; color: var(--text-2); cursor: pointer; }
.cf-app .fchip:hover { background: var(--hover); }
.cf-app .fchip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.cf-app .fchip canvas { width: 34px; height: 34px; border-radius: var(--r-seg); flex: none; background: var(--card-2); }
.cf-app .fn { display: flex; flex-direction: column; min-width: 0; }
.cf-app .fn b { font-size: var(--fs-small); font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.cf-app .fn span { font-size: var(--fs-label); color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.cf-app .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.cf-app .dot.ok { background: var(--ok); } .cf-app .dot.warn { background: var(--warn); } .cf-app .dot.err { background: var(--err); } .cf-app .dot.busy { background: var(--muted); }
.cf-app .fchip .x { width: 28px; height: 28px; border-radius: var(--r-seg); color: var(--muted); display: grid; place-items: center; flex: none; font-size: 18px; }
.cf-app .fchip .x:hover { background: var(--hover); color: var(--text); }
/* Barre flottante : surlignages (légende accordée aux couleurs du calque, tools/controle-fichier/src/app.js) */
.cf-app .tgl { display: flex; gap: 2px; }
.cf-app .tg { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 11px; border: 1px solid transparent; border-radius: var(--r-ctl); background: transparent; font: inherit; font-size: var(--fs-small); font-weight: 600; color: var(--text-3); white-space: nowrap; cursor: pointer; }
.cf-app .tg:hover { color: var(--text); background: var(--hover); }
.cf-app .tg[aria-pressed="true"] { color: var(--accent-t); border-color: transparent; background: var(--accent-soft); }
.cf-app .tg i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
.cf-app .tg-thin { background: #E60028; } .cf-app .tg-small { background: #FF8A00; } .cf-app .tg-bg { background: #009FE3; }
.cf-app .tg-box { background: transparent; box-shadow: inset 0 0 0 1.5px var(--text-3); }
.cf-app .tg em { font-style: normal; font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 500; }
.cf-app .tg em:empty { display: none; }
/* Panneau : verdict, infos du fichier, contrôles */
.cf-app .verdict { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 14px; background: var(--card-2); }
.cf-app .verdict:empty { display: none; }
.cf-app .verdict .vi { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--card); }
.cf-app .verdict svg, .cf-app .ck .si svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.cf-app .verdict .vi svg { width: 22px; height: 22px; stroke-width: 2.4; }
.cf-app .verdict b { display: block; font-size: 17px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.cf-app .verdict span { font-size: var(--fs-small); color: var(--text-2); }
.cf-app .v-ok { background: var(--ok-bg); } .cf-app .v-ok .vi { color: var(--ok); }
.cf-app .v-warn { background: var(--warn-bg); } .cf-app .v-warn .vi { color: var(--warn); }
.cf-app .v-err { background: var(--err-bg); } .cf-app .v-err .vi { color: var(--err); }
.cf-app .meta { display: flex; flex-wrap: wrap; gap: 6px; height: auto; padding: 0; border: 0; border-radius: 0; background: none; }
.cf-app .meta:empty { display: none; }
.cf-app .mb { display: inline-flex; align-items: center; min-height: 26px; padding: 0 9px; border-radius: var(--r-pill); background: var(--card-2); border: 1px solid var(--line); font-size: var(--fs-label); color: var(--text-2); font-variant-numeric: tabular-nums; }
.cf-app .mb b { font-weight: 600; color: var(--muted); margin-right: 5px; }
.cf-app .checks:empty { display: none; }
.cf-app .ck { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.cf-app .ck:first-child { border-top: 0; padding-top: 0; }
.cf-app .ck .si { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; }
.cf-app .ck .si svg { width: 13px; height: 13px; stroke-width: 2.6; }
.cf-app .s-ok .si { background: var(--ok-bg); color: var(--ok); } .cf-app .s-warn .si { background: var(--warn-bg); color: var(--warn); }
.cf-app .s-err .si { background: var(--err-bg); color: var(--err); } .cf-app .s-info .si { background: var(--card-2); color: var(--text-3); }
.cf-app .ck b { display: block; font-size: var(--fs-ui); font-weight: 600; color: var(--text); }
.cf-app .ck p { margin: 3px 0 0; font-size: var(--fs-small); line-height: 1.45; color: var(--text-2); }
.cf-app .ck .fix { margin-top: 6px; font-size: var(--fs-small); line-height: 1.45; color: var(--muted); }
.cf-app .ck .fix strong { color: var(--text); font-weight: 600; }
.cf-app .sws { display: flex; flex-wrap: wrap; gap: 10px; }
.cf-app .sw { display: flex; align-items: center; gap: 8px; width: auto; height: auto; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: none; cursor: default; font-size: var(--fs-label); font-variant-numeric: tabular-nums; color: var(--text-2); }
.cf-app .sw i { width: 24px; height: 24px; border-radius: 7px; box-shadow: inset 0 0 0 1px var(--swatch-line); display: inline-block; }
.cf-app .sizerow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cf-app .inp { display: flex; align-items: center; min-height: 42px; border: 1px solid var(--line-ctl); border-radius: var(--r-ctl); background: var(--field-bg); padding: 0 10px; gap: 6px; }
.cf-app .inp:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.cf-app .inp input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 15px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; outline: none; }
.cf-app .inp span { font-size: var(--fs-label); color: var(--muted); white-space: nowrap; }
.cf-app .inp.ro { background: var(--card-2); border-color: var(--line-2); }
.cf-sizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); }
.cf-sizes button { white-space: nowrap; }
.cf-app .thgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cf-app .thgrid label { display: flex; flex-direction: column; justify-content: space-between; gap: 4px; font-size: var(--fs-label); font-weight: 600; color: var(--text-2); }
.cf-app .thgrid input { min-height: 40px; border: 1px solid var(--line-ctl); border-radius: var(--r-seg); padding: 0 8px; background: var(--field-bg); font: inherit; font-size: var(--fs-ui); color: var(--text); font-variant-numeric: tabular-nums; width: 100%; }
.cf-app textarea { width: 100%; min-height: 200px; resize: vertical; border: 1px solid var(--line-ctl); border-radius: var(--r-inset); padding: 12px; background: var(--field-bg); font: inherit; font-size: var(--fs-small); line-height: 1.55; color: var(--text); }
.cf-app textarea:focus, .cf-app .thgrid input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.cf-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cf-app .cb { display: flex; align-items: flex-start; gap: 10px; min-height: 32px; font-size: var(--fs-small); color: var(--text-2); cursor: pointer; }
.cf-app .cb input { margin-top: 2px; accent-color: var(--accent); width: 18px; height: 18px; }
.cf-app .cb.dis { opacity: 0.5; }
.cf-msg { font-size: var(--fs-small); color: var(--text-3); text-align: center; }
.cf-msg:empty { display: none; }
.cf-msg.err { color: var(--err); }

/* ---------- DTF ready (2026-10-23) ---------- */
.stage .loupe { position: absolute; inset: auto; left: 0; top: 0; z-index: 5; width: 180px; height: 180px; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 3px var(--line-2), var(--pop-shadow); }
.dr-busy { position: absolute; right: 12px; top: 12px; z-index: 2; padding: 6px 12px; border-radius: var(--r-pill); background: var(--float-bg);
  border: 1px solid var(--line); font-size: var(--fs-label); font-weight: 600; color: var(--text-2); }
.stage-bar .dr-cmp { width: 90px; flex: none; }
.stage-bar input[type="color"] { flex: none; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line-2); border-radius: 8px; background: none; cursor: pointer; }
.stage-bar input[type="color"]::-webkit-color-swatch-wrapper { padding: 3px; }
.stage-bar input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 5px; }
.stage-bar .btn[aria-pressed="true"] { background: var(--accent-soft); color: var(--text); }
.dr-bgcolor { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; }
.dr-bgcolor .phint { margin: 0; }
.dr-bgcolor .btn[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.dr-swatch { width: 28px; height: 28px; border-radius: 7px; box-shadow: inset 0 0 0 1px var(--swatch-line); }
.dr-swatch.is-none { background: repeating-linear-gradient(45deg, var(--card-2) 0 4px, var(--line) 4px 8px); }
.dr-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dr-report { display: grid; max-height: 30vh; overflow-y: auto; }
.dr-report:empty { display: none; }
.dr-report .check-row { padding: 8px 0; gap: 10px; grid-template-columns: 22px 1fr; }
.dr-report .check-dot { width: 22px; height: 22px; }
.dr-report .check-title { font-size: var(--fs-small); }

/* ---------- Séparation sérigraphie (2026-10-24, classes créées par son script incluses) ---------- */
.sep-screens { margin-left: auto; padding: 4px 10px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--text); font-size: var(--fs-label); font-weight: 700; font-variant-numeric: tabular-nums; }
.sep-soon { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.sep-app #techSeg button:disabled { opacity: 0.6; cursor: not-allowed; }
.sep-want { display: inline-flex; align-items: center; gap: 6px; }
.sep-want .btn[aria-pressed="true"] { background: var(--accent-soft); color: var(--text); }
.sep-inks { display: grid; gap: 6px; }
.sep-ink { display: grid; grid-template-columns: 18px 32px minmax(0, 1fr) auto auto 32px; align-items: center; gap: 6px; }
.sep-ink input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.sep-ink .input { min-height: 34px; padding: 0 8px; font-size: var(--fs-small); }
.sep-ink.is-textile .sep-ink-name { color: var(--muted); text-decoration: line-through; }
.sep-share { min-width: 48px; text-align: right; font-size: var(--fs-label); color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sep-tex { min-height: 32px; padding: 0 8px; }
.sep-tex[aria-pressed="true"] { background: var(--accent-soft); color: var(--text); }
.sep-del, .sep-layer .btn-icon { width: 32px; height: 32px; border-radius: 8px; }
.sep-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sep-actions .btn[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.sep-order { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.sep-layer { display: grid; grid-template-columns: 16px 20px 18px minmax(0, 1fr) 32px auto 32px 32px; align-items: center; gap: 6px; min-height: 40px; padding: 2px 4px;
  border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--card); cursor: grab; }
.sep-layer.is-drag { border-color: var(--accent); background: var(--accent-soft); }
.sep-grip { color: var(--muted); display: grid; place-items: center; }
.sep-num { font-size: var(--fs-label); font-weight: 700; color: var(--text-3); text-align: center; font-variant-numeric: tabular-nums; }
.sep-sw { width: 18px; height: 18px; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--swatch-line); }
.sep-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-small); font-weight: 600; color: var(--text); }
.sep-layer .btn--sm { min-height: 32px; padding: 0 8px; }
.sep-eye[aria-pressed="false"] { color: var(--muted); }
.sep-angles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.stage-bar .sep-filmsel { width: auto; max-width: 190px; min-height: 34px; padding: 0 8px; font-size: var(--fs-small); }

/* ---------- SeuilShold (2026-10-24, classes créées par son script incluses) ---------- */
.sh-layers { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.sh-layer { display: grid; grid-template-columns: 32px minmax(0, 1fr) 32px 32px; align-items: center; gap: 4px; padding: 2px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--card); }
.sh-layer.is-sel { border-color: var(--accent); background: var(--accent-soft); }
.sh-layer.is-hidden .sh-layer-pick { opacity: 0.5; }
.sh-layer .btn-icon { width: 32px; height: 32px; border-radius: 8px; }
.sh-layer-pick { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 40px; padding: 2px 4px; border: 0; border-radius: 8px; background: transparent; color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.sh-layer-pick:hover { background: var(--hover); }
.sh-thumb { flex: none; width: 30px; height: 30px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--swatch-line);
  background: repeating-conic-gradient(var(--checker-b) 0 25%, var(--checker-a) 0 50%) 0 0 / 10px 10px; }
.sh-layer-txt { display: grid; min-width: 0; }
.sh-layer-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-small); font-weight: 600; }
.sh-layer-meta { font-size: var(--fs-label); color: var(--muted); }
.sh-props { padding-top: 12px; border-top: 1px solid var(--line); }
.sh-histo { display: block; width: 100%; height: 90px; border-radius: var(--r-ctl); box-shadow: inset 0 0 0 1px var(--line); cursor: ew-resize; touch-action: none; }
.sh-app #view:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* ---------- Écrans d'outil : tailles intermédiaires et petits écrans ---------- */
@media (max-width: 1240px) {
  .studio { grid-template-columns: minmax(0, 1fr) 320px; }
  .studio-hint { display: none; }
  .stage-bar { overflow-x: auto; scrollbar-width: none; }
  .stage-bar::-webkit-scrollbar { display: none; }
  .stage-bar #zPix { display: none; }
}
@media (max-width: 1000px) {
  .studio { display: block; height: auto; min-height: 0; }
  .studio-canvas.tool-work { height: 62svh; min-height: 380px; padding: 10px; }
  .studio-inspector { border-left: 0; border-top: 1px solid var(--line); }
  .insp-scroll { overflow: visible; }
  .stage-bar #zReal, .stage-bar #zPix { display: none; }
  .studio-canvas .drop-card .empty-hint { display: none; }
  .canvas-focus .studio-canvas.tool-work { height: 100svh; }
  .cf-app .cf-stage { padding: 68px 12px 60px; }
  .cf-app .fn b { max-width: 110px; }
}
@media (max-width: 600px) {
  /* Barres flottantes sur deux lignes : toutes les commandes restent visibles */
  .stage-bar { flex-wrap: wrap; justify-content: center; width: calc(100% - 20px); overflow: visible; }
  .stage-bar .floatbar-sep { display: none; }
  .cf-bar .tgl { flex-wrap: wrap; justify-content: center; }
  .cf-app .cf-stage { padding-top: 112px; padding-bottom: 116px; }
  .cf-files { flex-wrap: wrap; width: auto; right: 10px; left: 10px; }
  .cf-app .fn b { max-width: 96px; }
  .insp-main, .insp-sub { padding: 0 16px 20px; }
  .insp-head { padding: 0 8px 0 16px; }
  .insp-foot { padding: 12px 16px 14px; }
}
@media (max-width: 480px) {
  .cf-app .tg { padding: 0 9px; }
  .cf-app .thgrid { grid-template-columns: minmax(0, 1fr); }
}

/* =====================================================================
   Pages légales (mentions, CGV, confidentialité) : colonne de lecture de 760 px
   ===================================================================== */
.legal { max-width: 760px; padding-top: 64px; padding-bottom: 96px; display: grid; gap: 36px; }
.legal-head { display: grid; gap: 10px; }
.legal-title { font-size: 40px; line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; }
.legal-date { color: var(--muted); font-size: var(--fs-small); }
.legal section { display: grid; gap: 12px; }
.legal h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--text-2); font-size: var(--fs-body); line-height: 1.65; }
.legal ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.legal strong { color: var(--text); }
.legal-kv { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.legal-kv > div { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.legal-kv dt { color: var(--muted); font-size: var(--fs-small); }
.legal-kv dd { margin: 0; color: var(--text); }
.legal-todo { display: inline-block; padding: 0 8px; border-radius: var(--r-pill); background: var(--warn-bg); color: var(--warn); font-size: var(--fs-small); font-weight: 600; }
.legal-table td { vertical-align: top; line-height: 1.5; }
@media (max-width: 1000px) {
  .legal { padding-top: 40px; padding-bottom: 64px; gap: 28px; }
  .legal-title { font-size: 32px; }
  .legal-kv > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .legal-table { min-width: 560px; }
}

/* =====================================================================
   BAT : panneau (produit, emplacements, logo, informations) et scène à l'échelle (SVG en mm)
   ===================================================================== */
.bat-app .field { display: grid; gap: 6px; }
.bat-select { appearance: auto; cursor: pointer; }
.bat-row2 { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 10px; align-items: start; }
.bat-swatches { gap: 6px; }
.bat-swatches .sw { width: 26px; height: 26px; }
.bat-relogo { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r-inset); background: var(--card-2); }
.bat-relogo[hidden] { display: none; }
.bat-relogo > .btn { justify-self: start; }
.bat-docs { gap: 12px; }
.bat-docs > .btn { justify-self: start; }
.bat-docs-list { display: grid; gap: 6px; }
.bat-doc { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.bat-doc-open { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; min-height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-ctl); background: var(--field-bg); color: var(--text-2); font: inherit; font-size: var(--fs-small); text-align: left; cursor: pointer; }
.bat-doc-open:hover { color: var(--text); }
.bat-doc-open[aria-current="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.bat-doc-open .bat-place-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bat-doc-del { color: var(--err); }
.bat-doc-versions { display: flex; flex-wrap: wrap; gap: 4px; }
.bat-doc-versions:empty { display: none; }
.bat-garment-bar { display: grid; gap: 8px; }
.bat-garment-bar > .btn { justify-self: start; }
.bat-garment-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.bat-garment-actions[hidden] { display: none; }
.bat-gform { gap: 12px; }
.bat-gform .seg { width: 100%; }
.bat-gform .seg button { flex: 1 1 0; }
.bat-gform .seg[hidden] { display: none; }
.bat-gform .range { width: 100%; }
.bat-pt { cursor: grab; }
.bat-zone { cursor: move; }
.bat-gzone { display: grid; gap: 8px; }
.bat-gzone[hidden], .bat-gform .field[hidden] { display: none; }
.bat-gzone > .btn { justify-self: start; }
.bat-width { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.bat-width input { width: 100%; }
.bat-swatches .sw.custom.is-on { outline: 2px solid var(--accent); outline-offset: 2px; }
.bat-places { display: grid; gap: 6px; }
.bat-place { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-ctl); background: var(--field-bg); color: var(--text-2); font: inherit; font-size: var(--fs-small); text-align: left; cursor: pointer; }
.bat-place:hover { color: var(--text); }
.bat-place[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.bat-place-name { font-weight: 600; }
.bat-place-info { color: var(--muted); font-size: var(--fs-label); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bat-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.bat-logo-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bat-file { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.bat-file-name { min-width: 0; max-width: 100%; }
.bat-file-name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bat-app .insp-step > .bat-select { width: 100%; }
.bat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bat-num { display: grid; gap: 4px; font-size: var(--fs-label); color: var(--text-3); }
.bat-num .num-in input { width: 100%; }
.bat-num .num-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.bat-rot90 { align-self: end; min-height: 40px; }
.bat-dpi { font-size: var(--fs-small); font-weight: 600; }
.bat-dpi:empty { display: none; }
.bat-dpi.is-ok { color: var(--ok); } .bat-dpi.is-warn { color: var(--warn); } .bat-dpi.is-err { color: var(--err); }
.bat-cb { display: flex; align-items: flex-start; gap: 10px; min-height: 32px; font-size: var(--fs-small); color: var(--text-2); cursor: pointer; }
.bat-cb input { margin-top: 2px; accent-color: var(--accent); }
.bat-info { gap: 12px; }
.bat-qty { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 6px; }
.bat-qty-cell { display: grid; gap: 2px; font-size: var(--fs-label); color: var(--muted); text-align: center; }
.bat-qty-cell input { width: 100%; min-height: 34px; padding: 0 6px; text-align: center; border: 1px solid var(--line-ctl); border-radius: var(--r-seg); background: var(--field-bg); color: var(--text); font: inherit; font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.studio-toast.bat-toast:has(#pdfMsg:not(:empty)) { display: grid; }
.bat-toast .pmsg.warn { color: var(--warn); }
.bat-stage { cursor: default; }
.bat-stage:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.bat-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.bat-logo { cursor: move; }
.bat-handle { cursor: nwse-resize; }
.bat-label { fill: #FFFFFF; stroke: #111113; paint-order: stroke; font-family: var(--font); font-weight: 600; pointer-events: none; }
.bat-notes { display: grid; gap: 4px; }
.bat-notes .meta { height: auto; min-height: 0; padding: 0; border: 0; background: none; white-space: normal; font-size: 11.5px; color: var(--muted); }
.bat-calib { position: absolute; right: 14px; top: 14px; z-index: 5; width: min(420px, calc(100% - 28px)); display: grid; gap: 10px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-inset); box-shadow: var(--pop-shadow); }
.bat-calib[hidden] { display: none; }
.bat-calib-title { font-weight: 700; color: var(--text); }
.bat-card { max-width: 100%; border: 2px solid var(--accent); border-radius: 10px; background: var(--accent-soft); }
.bat-calib-actions { display: flex; gap: 8px; }
@media (max-width: 1000px) {
  .bat-row2 { grid-template-columns: minmax(0, 1fr); }
}
.pro-only { max-width: 640px; margin: 24px auto 0; display: grid; gap: 16px; justify-items: start; }
.pro-only-actions { display: flex; flex-wrap: wrap; gap: 8px; }
