/* TCS•LED — Atelier signature · composants HTML/CSS, préfixe tcs-, sans JS obligatoire.
   La couleur de gamme se pose une fois sur un conteneur : class="g-01" … "g-05". */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--surface-100); color: var(--ink); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }

/* ---- Gamme : variables héritées ---- */
:root { --g: var(--gamme-01); --g-pale: var(--gamme-01-pale); }
.g-01 { --g: var(--gamme-01); --g-pale: var(--gamme-01-pale); }
.g-02 { --g: var(--gamme-02); --g-pale: var(--gamme-02-pale); }
.g-03 { --g: var(--gamme-03); --g-pale: var(--gamme-03-pale); }
.g-04 { --g: var(--gamme-04); --g-pale: var(--gamme-04-pale); }
.g-05 { --g: var(--gamme-05); --g-pale: var(--gamme-05-pale); }

/* ---- Wordmark ---- */
.tcs-wordmark { display: inline-flex; align-items: center; font-family: var(--font-display); font-weight: 800; font-size: var(--wm, 30px); line-height: 1; letter-spacing: -0.05em; color: var(--ink); white-space: nowrap; text-decoration: none; }
.tcs-wordmark__dot { display: inline-block; width: 0.24em; height: 0.24em; border-radius: var(--radius-pill); background: var(--brand); margin: 0 0.05em; }
.tcs-wordmark--inverse { color: var(--on-dark); }
.tcs-wordmark--mono .tcs-wordmark__dot { background: currentColor; }

/* ---- Serif accent ---- */
.tcs-accent { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: 0; }

/* ---- Button ---- */
.tcs-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); height: 44px; padding: 0 var(--space-4); border-radius: var(--radius-md); border: 1.5px solid transparent; font: 600 14px/1 var(--font-sans); cursor: pointer; text-decoration: none; white-space: nowrap; transition: box-shadow .2s, background-color .2s, border-color .2s; }
.tcs-btn--primary { background: var(--brand); color: var(--on-brand); }
.tcs-btn--primary:hover { box-shadow: var(--shadow-glow); }
.tcs-btn--dark { background: var(--ink); color: var(--surface-100); }
.tcs-btn--dark:hover { background: var(--dark); }
.tcs-btn--secondary { background: var(--surface-raised); color: var(--ink); border-color: var(--line-strong); }
.tcs-btn--secondary:hover { border-color: var(--ink); }
.tcs-btn--ghost { background: transparent; color: var(--brand-ink); padding: 0 var(--space-2); }
.tcs-btn--ghost:hover { text-decoration: underline; text-underline-offset: 4px; }
.tcs-btn--on-photo { background: rgba(26,23,20,0.75); color: #fff; }
.tcs-btn--sm { height: 34px; padding: 0 var(--space-3); font-size: 12px; border-radius: var(--radius-sm); }
.tcs-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.tcs-btn[disabled] { opacity: .4; cursor: not-allowed; box-shadow: none; }
.tcs-btn__count { font-family: var(--font-mono); font-size: 12px; background: var(--on-brand); color: var(--brand); border-radius: var(--radius-pill); padding: 2px 8px; }

/* ---- Badge ---- */
.tcs-badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--radius-pill); font: 600 12px/1 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; background: var(--surface-raised); color: var(--ink); border: 1px solid var(--line); white-space: nowrap; }
.tcs-badge__dot { width: 8px; height: 8px; border-radius: var(--radius-pill); background: var(--g); flex: none; }
.tcs-badge--status { text-transform: none; letter-spacing: 0; font-size: 13px; }
.tcs-badge--status .tcs-badge__dot { background: currentColor; }
.tcs-badge--ok { color: var(--status-ok); }
.tcs-badge--warn { color: var(--status-warn); }
.tcs-badge--danger { color: var(--status-danger); }
.tcs-badge--brand { background: var(--brand); color: var(--on-brand); border-color: transparent; }
.tcs-badge--soft { background: var(--brand-soft); color: var(--ink); border-color: transparent; }

/* ---- SpecChip ---- */
.tcs-spec-row { display: flex; flex-wrap: wrap; gap: 5px; }
.tcs-spec { display: inline-flex; flex-direction: column; justify-content: center; gap: 1px; height: 44px; padding: 0 9px; border-radius: var(--radius-sm); background: var(--surface-raised); border: 1px solid var(--line); }
.tcs-spec__k { font: 600 8px/1.2 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.tcs-spec__v { font: 500 13px/1.2 var(--font-mono); color: var(--ink); }
.tcs-spec--photo { background: var(--g); border-color: transparent; }
.tcs-spec--photo .tcs-spec__k { color: rgba(255,255,255,.78); }
.tcs-spec--photo .tcs-spec__v { color: #fff; }
.tcs-spec--pale { background: var(--g-pale); border-color: transparent; }
.tcs-spec--pale .tcs-spec__k { color: var(--g); }
.tcs-spec--hl { border-color: var(--brand); }

/* ---- SeriesBand (tête de fiche) ---- */
.tcs-series { position: relative; height: var(--h, 340px); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-200); }
.tcs-series__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tcs-series__chips { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.tcs-series__foot { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; }
.tcs-series__key { display: flex; align-self: flex-start; align-items: center; gap: 10px; padding: 6px 14px 6px 12px; background: var(--dark); color: var(--on-dark); }
.tcs-series__figure { font: 500 18px/1 var(--font-mono); letter-spacing: -0.03em; }
.tcs-series__figure small { font-size: 9px; margin-left: 3px; letter-spacing: 0; }
.tcs-series__label { font: 400 11px/1 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; }
.tcs-series__label b { color: var(--brand); }
.tcs-series__title { padding: 12px 16px; background: var(--g); color: #fff; font: 800 30px/1 var(--font-display); letter-spacing: -0.04em; margin: 0; }
.tcs-series__title .tcs-accent { opacity: .9; }
.tcs-series__actions { position: absolute; right: 20px; bottom: 20px; display: flex; gap: 10px; }

/* ---- RefRow ---- */
.tcs-ref { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.tcs-ref__tag { font: 500 10px/1 var(--font-mono); padding: 3px 6px; border-radius: var(--radius-xs); background: var(--brand); color: var(--on-brand); }
.tcs-ref__code { font: 500 16px/1.3 var(--font-mono); letter-spacing: -0.01em; color: var(--ink); }
.tcs-ref__note { font: 600 11px/1 var(--font-sans); color: var(--g); text-transform: uppercase; letter-spacing: .02em; }
.tcs-ref .tcs-btn { margin-left: auto; }
.tcs-ref-box { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 8px 20px 4px; }
.tcs-ref-box .tcs-ref:last-child { border-bottom: 0; }

/* ---- SectionTitle / PageTag / Note ---- */
.tcs-sections { display: flex; flex-direction: column; gap: 12px; padding-left: 12px; border-left: 3px solid var(--g-pale); }
.tcs-section { margin: 0 0 3px; font: 800 13px/1.2 var(--font-display); letter-spacing: .02em; text-transform: uppercase; color: var(--g); }
.tcs-section--lg { font-size: 16px; }
.tcs-body { font: 400 12px/1.5 var(--font-sans); color: var(--ink); }
.tcs-body--lg { font-size: 14px; }
.tcs-body .ref { color: var(--brand-ink); font-weight: 700; }
.tcs-ptag { display: inline-block; font: 400 9px/1 var(--font-mono); padding: 3px 5px; border-radius: var(--radius-xs); background: var(--g); color: #fff; margin-right: 6px; vertical-align: middle; }
.tcs-note { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 4px; background: var(--surface-200); font: 400 11px/1.4 var(--font-mono); color: var(--ink); }
.tcs-note::before { content: "!"; color: var(--brand); font-weight: 500; }

/* ---- Avantages ---- */
.tcs-adv { display: flex; flex-direction: column; gap: 8px; }
.tcs-adv__badge { display: inline-flex; align-self: flex-start; font: 800 13px/1.2 var(--font-display); letter-spacing: .02em; padding: 4px 10px; background: var(--brand); color: var(--on-brand); border-radius: var(--radius-xs); text-transform: uppercase; }
.tcs-adv__item { display: flex; gap: 8px; align-items: flex-start; font: 600 14px/1.35 var(--font-sans); color: var(--ink); }
.tcs-adv__item::before { content: "↗"; color: var(--brand); font-family: var(--font-mono); }

/* ---- LedColors ---- */
.tcs-leds { display: flex; flex-wrap: wrap; gap: 5px; }
.tcs-led { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 50px; height: 48px; border-radius: var(--radius-sm); background: var(--surface-raised); border: 1px solid var(--line); border-bottom: 5px solid var(--c, var(--line)); }
.tcs-led__code { font: 500 13px/1 var(--font-mono); color: var(--ink); }
.tcs-led__k { font: 400 7px/1 var(--font-sans); letter-spacing: .04em; color: var(--ink-muted); text-transform: uppercase; }
.led-CC { --c: var(--cct-6000); } .led-C { --c: var(--cct-5000); } .led-N { --c: var(--cct-4000); } .led-W { --c: var(--cct-3000); } .led-DW { --c: var(--cct-2700); } .led-BG { --c: var(--cct-2400); }
.led-A { --c: var(--led-ambre); } .led-R { --c: var(--led-rouge); } .led-G { --c: var(--led-vert); } .led-B { --c: var(--led-bleu); } .led-RGB { --c: var(--led-rgb); } .led-RGBW { --c: var(--led-rgbw); }

/* ---- GammeTabs ---- */
.tcs-tabs { display: flex; border-bottom: 1px solid var(--line); }
.tcs-tab { display: flex; align-items: center; gap: 8px; height: 60px; padding: 0 16px; border-top: 3px solid var(--g); font: 400 14px/1 var(--font-sans); color: var(--ink); text-decoration: none; }
.tcs-tab__n { font: 400 11px/1 var(--font-mono); }
.tcs-tab[aria-current="page"] { background: var(--g-pale); font-weight: 600; }
.tcs-tab-edge { display: inline-flex; align-items: flex-end; justify-content: center; width: 40px; height: 118px; padding-bottom: 10px; background: var(--g); color: #fff; font: 400 12px/1 var(--font-mono); border-radius: 0 0 var(--radius-md) 0; }

/* ---- IndexRail ---- */
.tcs-rail { position: absolute; right: 0; top: 300px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.tcs-rail__item { display: flex; align-items: center; justify-content: center; width: 32px; height: 88px; background: var(--g); color: #fff; text-decoration: none; font: 400 12px/1 var(--font-mono); border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.tcs-rail__item[aria-current="page"] { width: 44px; box-shadow: var(--shadow-rail); }

/* ---- ProductCard ---- */
.tcs-pcard { display: flex; flex-direction: column; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; color: var(--ink); text-decoration: none; transition: box-shadow .2s, transform .2s; }
.tcs-pcard:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.tcs-pcard__media { position: relative; height: 230px; background: var(--surface-200); display: flex; align-items: center; justify-content: center; }
.tcs-pcard__media img { max-width: 60%; max-height: 78%; object-fit: contain; }
.tcs-pcard__page { position: absolute; top: 12px; left: 12px; font: 400 11px/1 var(--font-mono); color: var(--ink-muted); }
.tcs-pcard__dot { position: absolute; top: 14px; right: 14px; width: 10px; height: 10px; border-radius: var(--radius-pill); background: var(--g); }
.tcs-pcard__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; }
.tcs-pcard__ref { font: 400 12px/1 var(--font-mono); color: var(--ink-muted); }
.tcs-pcard__ref b { color: var(--brand-ink); font-weight: 500; }
.tcs-pcard__name { margin: 0; font: 700 17px/1.2 var(--font-display); letter-spacing: -0.02em; }
.tcs-pcard__specs { font: 400 12px/1.4 var(--font-mono); color: var(--ink-muted); }
.tcs-pcard__actions { display: flex; gap: 8px; margin-top: 10px; }
.tcs-pcard__actions .tcs-btn--dark { flex-grow: 1; }

/* ---- SurMesure ---- */
.tcs-custom { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; background: var(--dark); color: var(--on-dark); border-radius: var(--radius-md); padding: 28px; }
.tcs-custom__k { font: 400 11px/1 var(--font-mono); opacity: .75; letter-spacing: .04em; }
.tcs-custom__t { margin: 0; font: 800 27px/1.05 var(--font-display); letter-spacing: -0.045em; }
.tcs-custom__p { font: 400 14px/1.5 var(--font-sans); opacity: .85; }

/* ---- PhotoCard + ligne de lumière ---- */
.tcs-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-200); }
.tcs-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tcs-photo__word { position: absolute; left: 20px; bottom: 16px; margin: 0; font: 800 40px/1 var(--font-display); letter-spacing: -0.05em; color: #fff; }
.tcs-photo__line { position: absolute; left: 20px; right: 20px; top: 50%; height: 2px; background: var(--light-line); box-shadow: var(--shadow-glow); }

/* ---- Table ---- */
.tcs-table { width: 100%; border-collapse: collapse; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; font: 400 13px/1.4 var(--font-sans); }
.tcs-table th { text-align: left; padding: 8px 10px; font: 600 9px/1.2 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--g); background: var(--g-pale); border-bottom: 2px solid var(--g); }
.tcs-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; }
.tcs-table tr:last-child td { border-bottom: 0; }
.tcs-table tbody tr:hover td { background: var(--brand-soft); }
