/* Site TLI Companion — habillage « Atelier » commun à toutes les pages : gris chaud sobre, touches de cuivre.
   Fond, cartes et lignes neutres ; le cuivre pour le lien actif, les titres en serif, les chiffres clés, les boutons
   principaux et le filigrane des blocs mis en avant. Chargé après style.css (et p/*.css), thème sombre seulement
   (layout.js, data-dark-only). Ce qui est propre à l'accueil : home-atelier.css. */
@import url("/fonts/fonts.css");
:root {
  --bg: #141312; --side: #1a1917; --panel: #1e1d1b; --panel2: #262422; --tile: #262422; --tile2: #2c2a27; --line: #33302c; --line2: #2a2825;
  --text: #e4ddd0; --soft: #b8ae9c; --muted: #948b7e; --accent: #c08a4e; --accent2: #e0b77e; --khaki: #8c7c58; --khaki2: #4a4335;
  --pos: #8fcf7a; --neg: #e8735f; --radius: 4px;
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --f-cond: "Barlow Condensed", "Bahnschrift SemiCondensed", "Arial Narrow", sans-serif;
  --fil: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cg fill='none' stroke='%23c08a4e' stroke-width='1.1'%3E%3Cpath d='M2 24V9Q2 2 9 2H24'/%3E%3Cpath d='M6 15c0-5 4-9 9-9M6 10a4 4 0 0 1 4-4'/%3E%3Ccircle cx='7.5' cy='7.5' r='2'/%3E%3C/g%3E%3C/svg%3E");
  --fil-tr: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cg transform='translate(26 0) scale(-1 1)' fill='none' stroke='%23c08a4e' stroke-width='1.1'%3E%3Cpath d='M2 24V9Q2 2 9 2H24'/%3E%3Cpath d='M6 15c0-5 4-9 9-9M6 10a4 4 0 0 1 4-4'/%3E%3Ccircle cx='7.5' cy='7.5' r='2'/%3E%3C/g%3E%3C/svg%3E");
  --fil-bl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cg transform='translate(0 26) scale(1 -1)' fill='none' stroke='%23c08a4e' stroke-width='1.1'%3E%3Cpath d='M2 24V9Q2 2 9 2H24'/%3E%3Cpath d='M6 15c0-5 4-9 9-9M6 10a4 4 0 0 1 4-4'/%3E%3Ccircle cx='7.5' cy='7.5' r='2'/%3E%3C/g%3E%3C/svg%3E");
  --fil-br: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cg transform='translate(26 26) scale(-1 -1)' fill='none' stroke='%23c08a4e' stroke-width='1.1'%3E%3Cpath d='M2 24V9Q2 2 9 2H24'/%3E%3Cpath d='M6 15c0-5 4-9 9-9M6 10a4 4 0 0 1 4-4'/%3E%3Ccircle cx='7.5' cy='7.5' r='2'/%3E%3C/g%3E%3C/svg%3E");
  --featured: var(--fil) top -2px left -2px / 24px no-repeat, var(--fil-tr) top -2px right -2px / 24px no-repeat,
              var(--fil-bl) bottom -2px left -2px / 24px no-repeat, var(--fil-br) bottom -2px right -2px / 24px no-repeat,
              linear-gradient(180deg, rgba(192,138,78,.05), transparent 60%), var(--panel);
}

/* ---------- Fond et texte ---------- */
body { font-family: "Barlow", "Segoe UI", system-ui, sans-serif; color: var(--text); background: var(--bg); }
::selection { background: rgba(192,138,78,.35); }
a { color: var(--accent2); }
.muted, .small { color: var(--muted); }
.pos { color: var(--pos); } .neg { color: var(--neg); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #3a3732; border: 2px solid var(--bg); border-radius: 5px; }

/* ---------- En-tête et pied de page : sobres, lien actif en kaki avec soulignement cuivré ---------- */
header.site { background: rgba(26,25,23,.94); border-bottom: 1px solid var(--line2); backdrop-filter: blur(8px); }
header.site .brand { font-family: var(--serif); font-weight: 600; color: var(--accent2); letter-spacing: .02em; }
header.site .logo { filter: none; }
header.site nav a { color: var(--soft); border-radius: 3px; font-weight: 500; position: relative; }
header.site nav a:hover { color: var(--text); background: rgba(255,255,255,.04); }
header.site nav a.on { color: var(--accent2); background: var(--khaki2); }
header.site nav .ver { background: var(--accent); color: #1a1208; }
header.site button, header.site select { border-radius: 3px; }
footer.site { border-top: 1px solid var(--line2); color: var(--muted); }
footer.site a { color: var(--muted); }
footer.site .free-pledge { border-color: var(--line2); background: rgba(255,255,255,.03); color: var(--text); }
@media (max-width: 700px) { header.site { position: static; } }

/* ---------- Titres de page en serif cuivré ---------- */
.pagehead h1, .page-title { font-family: var(--serif); font-weight: 600; font-size: 30px; color: var(--accent2); letter-spacing: 0; }
.pagehead p { color: var(--soft); }
.section-title, .card h2 { color: var(--text); font-weight: 600; }

/* ---------- Cartes : sobres ---------- */
.card, .pr-card, .pi-card, .pcard, .pk-card, .soon-box, .vc { background: var(--panel); border: 1px solid var(--line2); border-radius: var(--radius); box-shadow: none; }
.card h2 { font-size: 15px; }
.pk-card.have { border-color: var(--accent); }
.stats .v, .pi-price b { font-family: var(--f-cond); font-weight: 600; }
/* Blocs mis en avant : filigrane cuivré */
.fb-modal, .supportband, .ctaband { border: 1px solid var(--khaki); border-radius: 0; background: var(--featured); box-shadow: none; }
.fb-bg { background: rgba(10,9,8,.8); }

/* ---------- Boutons ---------- */
.btn { border-radius: 3px; background: var(--panel); border: 1px solid #57524a; color: var(--text); font-weight: 600; box-shadow: none; }
.btn:hover { border-color: var(--khaki); background: var(--panel2); }
.btn.primary { background: rgba(192,138,78,.14); border-color: var(--accent); color: var(--accent2); box-shadow: none; }
.btn.primary:hover { background: rgba(192,138,78,.24); filter: none; }
.btn.danger { color: var(--neg); border-color: rgba(232,115,95,.5); background: rgba(232,115,95,.08); }

/* ---------- Champs, filtres, onglets ---------- */
input, select, textarea { background: #171615; border: 1px solid var(--line); color: var(--text); border-radius: 3px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--khaki); }
input[type=checkbox], input[type=radio], input[type=range] { accent-color: var(--accent); }
.flt, .filters label { color: var(--muted); }
.fchip, .chip, .vc-tab, .pr-drange button, .pi-range button, .pr-cats button, .lp-chip, .soc-v { border-radius: 3px; background: var(--tile); border: 1px solid var(--line); color: var(--soft); }
.seg { border-radius: 3px; border-color: var(--line); background: var(--tile); }
.seg button { border-color: var(--line); color: var(--soft); }
.seg button.on { background: var(--khaki2); color: var(--accent2); }
.fchip.on, .vc-tab.on, .pr-drange button.on, .pi-range button.on, .pr-cats button.on { background: var(--khaki2); border-color: var(--khaki); color: var(--accent2); }

/* ---------- Tableaux : lignes en tuiles sombres ---------- */
th { color: var(--muted); font-weight: 500; background: var(--bg); border-bottom: 1px solid var(--line2); }
td { border-bottom: 1px solid var(--line2); }
tr.click:hover td, .pr-row:hover td { background: var(--tile); }
.bar-cell .bar, .mg-bar i, .lp-bar i, .gd-bar span { background: rgba(192,138,78,.28); border-radius: 2px; }
.tag, .tagx { border-radius: 3px; background: var(--tile2); color: var(--soft); border: 0; }

/* ---------- Rangs : lettre en serif, S en cuivre ---------- */
.tier { border-radius: 3px; font-family: var(--serif); font-weight: 600; background: var(--tile); border: 1px solid var(--line); color: var(--soft); }
.tier.tS { color: var(--accent2); border-color: var(--accent); background: rgba(192,138,78,.12); }
.tier.tA { color: var(--text); }
.tier.tB, .tier.tC, .tier.tD { color: var(--muted); }
.soon, .soon-badge { border-radius: 3px; color: var(--accent2); background: rgba(192,138,78,.12); border: 1px solid rgba(192,138,78,.5); }
.portrait { border-color: var(--khaki); }
