/* ============================================================
   sozeiga.pro — /lut/ · Bibliothèque de LUTs & simulateur
   Même système visuel que la page d'accueil (style.css)
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #050505; --bg2: #0b0b0a; --bg3: #141413; --bg-elev: #1b1b19;
  --ink: #fafaf7; --ink2: #b5b5ad; --ink3: #8a877f;
  --border: rgba(255,255,255,.12); --border2: rgba(255,255,255,.07); --border-hi: rgba(255,255,255,.28);
  --rgb-r: #ff3226; --rgb-g: #23d84e; --rgb-b: #5b8cff;
  --accent: var(--rgb-b); --accent-soft: rgba(91,140,255,.12);
  --ff: 'Open Sans', system-ui, sans-serif;
  --ff-title: 'Raleway', system-ui, sans-serif;
  --ff-mono: 'Hind', system-ui, sans-serif;
  --pad: max(48px, calc((100vw - 1240px) / 2));
  --ease: cubic-bezier(.22,.61,.36,1);
}

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--ff); font-size: 16px; font-weight: 400; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
::selection { background: var(--rgb-r); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
a { color: inherit; }
img, canvas { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: -80px; left: 12px; z-index: 1000; background: var(--accent); color: #060606; padding: 10px 18px; font-family: var(--ff-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }

.mono { font-family: var(--ff-mono); letter-spacing: .14em; text-transform: uppercase; font-size: 11px; }
.num { font-variant-numeric: tabular-nums; }

/* ── EN-TÊTE (même système que le Labo) ────────────────────── */
.site-hd { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 22px 40px; border-bottom: 1px solid rgba(255,255,255,.07); }
.logo { font-family: var(--ff-title); font-weight: 800; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.back { font-family: var(--ff-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: var(--rgb-r); padding: 9px 20px; font-weight: 600; text-decoration: none; transition: .2s; box-shadow: 0 4px 14px rgba(0,0,0,.35); white-space: nowrap; }
.back:hover { background: #d92417; transform: translateY(-1px); }

/* ── STRUCTURE ─────────────────────────────────────────────── */
.wrap { padding-left: var(--pad); padding-right: var(--pad); }
.block { padding-top: 96px; padding-bottom: 96px; border-top: 1px solid var(--border2); }
.eyebrow { display: block; font-family: var(--ff-mono); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--rgb-g); margin-bottom: 16px; }
.h2 { font-family: var(--ff-title); font-weight: 900; text-transform: uppercase; letter-spacing: -.03em; line-height: .98; font-size: clamp(32px, 4.4vw, 58px); margin-bottom: 20px; }
.lede { color: var(--ink2); max-width: 70ch; }
.block-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 40px; }

/* ── BOUTONS ───────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 12px 22px; border: 1px solid var(--border-hi); background: transparent; color: var(--ink); text-decoration: none; cursor: pointer; font-family: var(--ff-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; transition: background .2s, border-color .2s, color .2s; }
.btn:hover { border-color: var(--ink); background: rgba(255,255,255,.04); }
.btn-primary { background: var(--ink); color: #080808; border-color: var(--ink); font-weight: 600; }
.btn-primary:hover { background: #fff; color: #000; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .35; pointer-events: none; }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: 11px; letter-spacing: .12em; }
.btn small { font-size: 10px; color: inherit; opacity: .6; letter-spacing: .08em; }

/* ── EN-TÊTE ───────────────────────────────────────────────── */
.hero { padding-top: 72px; padding-bottom: 80px; }
.crumbs { display: flex; gap: 10px; color: var(--ink3); margin-bottom: 48px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.hero h1 { font-family: var(--ff-title); font-weight: 900; text-transform: uppercase; letter-spacing: -.035em; line-height: .94; font-size: clamp(40px, 7vw, 96px); max-width: 14ch; margin-bottom: 28px; }
.hero h1 em { font-style: normal; color: var(--ink3); }
.hero .lede { font-size: 18px; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 64px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.fact { padding: 22px 24px 22px 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--border2); }
.fact-val { font-family: var(--ff-title); font-weight: 800; font-size: 32px; line-height: 1; margin-bottom: 8px; }
.fact-lbl { color: var(--ink3); }

/* ── SIMULATEUR ────────────────────────────────────────────── */
.sim { display: grid; grid-template-columns: 340px minmax(0, 1fr); border: 1px solid var(--border); background: var(--bg2); }
.sim-panel { border-right: 1px solid var(--border); display: flex; flex-direction: column; }
.step { padding: 22px 24px; border-bottom: 1px solid var(--border2); }
.step-title { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; color: var(--ink2); }
.step-title b { font-family: var(--ff-title); font-weight: 800; font-size: 13px; color: var(--ink); letter-spacing: 0; }
.step.is-done .step-title b { color: var(--rgb-g); }

.drop { position: relative; display: block; border: 1px dashed var(--border-hi); padding: 20px 16px; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.drop:hover, .drop.is-drag { border-color: var(--accent); background: var(--accent-soft); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop strong { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; word-break: break-all; }
.drop span { color: var(--ink3); font-size: 12px; }
.hint { color: var(--ink3); font-size: 12px; line-height: 1.5; margin-top: 10px; }

.field { display: block; width: 100%; background: var(--bg); border: 1px solid var(--border); padding: 11px 12px; font-size: 14px; border-radius: 0; appearance: none; -webkit-appearance: none; }
select.field { background-image: linear-gradient(45deg, transparent 50%, var(--ink2) 50%), linear-gradient(135deg, var(--ink2) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field:focus { border-color: var(--accent); outline: none; }
.lut-meta { margin-top: 12px; font-size: 12px; color: var(--ink2); display: grid; gap: 4px; }
.lut-meta a { color: var(--accent); }

.seg { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); }
.seg button { background: none; border: 0; padding: 9px 4px; cursor: pointer; font-family: var(--ff-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); }
.seg button + button { border-left: 1px solid var(--border); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #080808; }

.adv { padding: 16px 24px; border-bottom: 1px solid var(--border2); }
.adv summary { cursor: pointer; color: var(--ink2); list-style: none; }
.adv summary::-webkit-details-marker { display: none; }
.adv summary::before { content: '+ '; }
.adv[open] summary::before { content: '− '; }
.adv label { display: block; margin: 14px 0 6px; font-size: 12px; color: var(--ink2); }
.sim-actions { padding: 22px 24px; display: grid; gap: 10px; margin-top: auto; }

.viewer { position: relative; min-width: 0; min-height: 520px; display: flex; flex-direction: column; background: #0a0a09; }
.stage { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px; overflow: hidden;
  background-image: linear-gradient(45deg, #0e0e0d 25%, transparent 25%), linear-gradient(-45deg, #0e0e0d 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #0e0e0d 75%), linear-gradient(-45deg, transparent 75%, #0e0e0d 75%);
  background-size: 24px 24px; background-position: 0 0, 0 12px, 12px -12px, -12px 0; }
.empty { max-width: 380px; text-align: center; color: var(--ink2); }
.empty-mark { width: 56px; height: 56px; margin: 0 auto 20px; display: grid; grid-template-columns: repeat(3,1fr); gap: 3px; }
.empty-mark i { display: block; }
.empty-mark i:nth-child(1) { background: var(--rgb-r); } .empty-mark i:nth-child(2) { background: var(--rgb-g); } .empty-mark i:nth-child(3) { background: var(--rgb-b); }
.empty h3 { font-family: var(--ff-title); font-weight: 800; color: var(--ink); font-size: 18px; margin-bottom: 8px; }

.frame { position: relative; display: none; max-width: 100%; line-height: 0; user-select: none; -webkit-user-select: none; touch-action: none; }
.frame.is-on { display: block; }
.frame canvas { width: 100%; height: auto; }
.frame .c-after { position: absolute; inset: 0; }
.frame[data-mode="wipe"] .c-after { clip-path: inset(0 0 0 var(--wipe, 50%)); }
.frame[data-mode="before"] .c-after { display: none; }
.frame[data-mode="after"] .c-before { visibility: hidden; }
.wipe-line { position: absolute; top: 0; bottom: 0; left: var(--wipe, 50%); width: 0; border-left: 1px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.35); pointer-events: none; display: none; }
.wipe-knob { position: absolute; top: 50%; left: 0; width: 34px; height: 34px; transform: translate(-50%,-50%); background: #fff; color: #000; display: grid; place-items: center; font-size: 13px; line-height: 1; font-family: var(--ff-mono); }
.frame[data-mode="wipe"] .wipe-line { display: block; }
.wipe-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; display: none; }
.frame[data-mode="wipe"] .wipe-range { display: block; }
.tag { position: absolute; top: 10px; line-height: 1.2; background: rgba(0,0,0,.72); color: #fff; padding: 5px 8px; font-family: var(--ff-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; pointer-events: none; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag-before { left: 10px; } .tag-after { right: 10px; }
.frame[data-mode="before"] .tag-after, .frame[data-mode="after"] .tag-before { display: none; }

.split { display: none; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.split.is-on { display: grid; }
.split figure { position: relative; line-height: 0; }
.split canvas { width: 100%; height: auto; }
.split figcaption { position: absolute; left: 8px; top: 8px; line-height: 1.2; background: rgba(0,0,0,.72); padding: 5px 8px; font-family: var(--ff-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }

.statusbar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px 20px; border-top: 1px solid var(--border); font-family: var(--ff-mono); font-size: 12px; letter-spacing: .06em; color: var(--ink2); min-height: 44px; }
.statusbar .probe { font-variant-numeric: tabular-nums; }
.statusbar .err { color: #ff8a80; }
.busy { position: absolute; inset: 0; display: none; place-items: center; background: rgba(5,5,5,.55); z-index: 3; }
.busy.is-on { display: grid; }
.spinner { width: 28px; height: 28px; border: 2px solid rgba(255,255,255,.2); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.viewer:fullscreen { background: #000; }
.viewer:fullscreen .stage { padding: 12px; }

/* ── BIBLIOTHÈQUE ──────────────────────────────────────────── */
.toolbar { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.search { position: relative; flex: 1 1 280px; max-width: 420px; }
.search .field { padding-left: 38px; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; stroke: var(--ink3); fill: none; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { background: none; border: 1px solid var(--border); padding: 7px 12px; cursor: pointer; font-family: var(--ff-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); }
.chip:hover { border-color: var(--border-hi); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #080808; }
.legend { display: flex; gap: 24px; flex-wrap: wrap; color: var(--ink2); font-size: 13px; margin-bottom: 40px; }
.legend .badge { margin-right: 8px; }

.brand { margin-bottom: 44px; }
.brand-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--border-hi); }
.brand-head h3 { font-family: var(--ff-title); font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; font-size: 24px; }
.brand-head h3 span { font-family: var(--ff); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink2); margin-left: 14px; }
.brand-links { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.brand-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 7px 14px; text-decoration: none; font-family: var(--ff-mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; transition: background .2s, color .2s, border-color .2s; }
.brand-links a small { font-size: 10px; opacity: .75; letter-spacing: .06em; }
.link-site { border: 1px solid var(--accent); color: #9dbbff; }
.link-site:hover { background: var(--accent); color: #05070d; }
.link-pack { border: 1px solid rgba(35,216,78,.7); color: #8ff0a8; background: rgba(35,216,78,.08); }
.link-pack:hover { background: var(--rgb-g); color: #04130a; }

.lut-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.w-name { width: 34%; } .w-in { width: 20%; } .w-type { width: 11%; } .w-prov { width: 11%; } .w-act { width: 24%; }
.link-btn { display: block; background: none; border: 0; padding: 0; margin-top: 12px; color: var(--accent); font-size: 13px; text-align: left; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--ink); }
.lut-table th { text-align: left; font-family: var(--ff-mono); font-weight: 500; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink2); padding: 14px 16px 12px 0; border-bottom: 1px solid var(--border); }
.lut-table td { padding: 20px 16px 20px 0; border-bottom: 1px solid var(--border); vertical-align: middle; font-size: 14px; }
.lut-table tbody tr { transition: background .2s; }
.lut-table tbody tr:hover td { background: rgba(91,140,255,.05); }
.lut-name { font-weight: 700; font-size: 16px; color: #fff; margin-bottom: 6px; }
.lut-desc { color: var(--ink2); font-size: 13.5px; line-height: 1.55; max-width: 56ch; }
.cell-muted { color: var(--ink); }
.cell-actions { text-align: right; padding-right: 0 !important; }
.cell-actions .btn { white-space: nowrap; }
.cell-actions .btn { margin: 3px 0 3px 8px; }
.btn-try { border-color: var(--accent); color: #9dbbff; }
.btn-try:hover { background: var(--accent); border-color: var(--accent); color: #05070d; }
.btn-dl { background: var(--rgb-g); border-color: var(--rgb-g); color: #04130a; font-weight: 700; }
.btn-dl:hover { background: #4ff07a; border-color: #4ff07a; color: #04130a; }
.btn-dl small { opacity: .7; }
.badge { display: inline-block; padding: 4px 8px; font-family: var(--ff-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--border-hi); color: var(--ink); white-space: nowrap; }
.badge-official { background: rgba(35,216,78,.12); border-color: rgba(35,216,78,.6); color: #8ff0a8; }
.no-result { padding: 40px 0; color: var(--ink3); display: none; }

/* ── GUIDE / FAQ ───────────────────────────────────────────── */
.guide { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); }
.guide li { list-style: none; padding: 28px 28px 28px 0; }
.guide li + li { padding-left: 28px; border-left: 1px solid var(--border2); }
.guide .n { font-family: var(--ff-title); font-weight: 900; font-size: 40px; color: var(--ink3); line-height: 1; margin-bottom: 14px; }
.guide h3 { font-family: var(--ff-title); font-weight: 800; font-size: 17px; margin-bottom: 8px; }
.guide p { color: var(--ink2); font-size: 14px; }

.faq { border-top: 1px solid var(--border); max-width: 880px; }
.faq details { border-bottom: 1px solid var(--border2); }
.faq summary { cursor: pointer; padding: 20px 40px 20px 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 18px; font-size: 20px; color: var(--ink3); }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--ink2); padding: 0 0 22px; max-width: 72ch; }

.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band .h2 { margin-bottom: 8px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.site-footer { text-align: center; padding: 34px; border-top: 1px solid rgba(255,255,255,.07); font-family: var(--ff-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.disclaimer { color: var(--ink2); font-size: 13px; margin-top: 32px; max-width: none; }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .sim { grid-template-columns: 1fr; }
  .sim-panel { border-right: 0; border-bottom: 1px solid var(--border); }
  .viewer { min-height: 0; }
  .stage { min-height: 240px; }
}
@media (max-width: 860px) {
  :root { --pad: 16px; }
  .site-hd { padding: 14px 16px; gap: 10px; }
  .logo { font-size: 12px; letter-spacing: .06em; }
  .back { font-size: 11px; letter-spacing: .06em; padding: 8px 14px; }
  .hero { padding-top: 40px; padding-bottom: 56px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--border2); }
  .block { padding-top: 64px; padding-bottom: 64px; }
  .guide { grid-template-columns: 1fr; }
  .guide li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--border2); }
  .stage { padding: 10px; }
  .seg button { font-size: 10px; }

  .lut-table thead { display: none; }
  .lut-table, .lut-table tbody, .lut-table tr, .lut-table td { display: block; width: 100%; }
  .lut-table tr { padding: 16px 0; border-bottom: 1px solid var(--border2); }
  .lut-table td { border: 0; padding: 3px 0; }
  .lut-table td[data-label]::before { content: attr(data-label) ' · '; font-family: var(--ff-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); }
  .cell-actions { text-align: left; padding-top: 12px !important; }
  .cell-actions .btn { margin: 0 8px 0 0; }
  .brand-links { margin-top: 10px; }
  .lut-table col { width: auto !important; }
  .brand-head h3 span { display: block; margin: 4px 0 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
