/* pixisgood — interface à l'essai « filets » : plein écran sur fond légèrement gris, un seul aplat (noir) pour les éléments forts,
   filets de trois sortes pour distinguer les éléments :
   — structure (en-tête, colonnes, grandes sections) : filet épais noir, pleine largeur / pleine hauteur ;
   — blocs (cartes, sections de réglages) : filet fin ;
   — éléments internes (réglages, parties d'une carte) : filet pointillé.
   S'active avec ?theme=filets (voir template.html) ; tout est préfixé par [data-theme="filets"], l'interface actuelle n'est pas touchée. */
[data-theme="filets"] {
  color-scheme: light;
  --bg: #efefec;           /* fond de page légèrement gris, seule teinte de fond */
  --panel: #efefec;        /* pas d'autre teinte : les zones se distinguent par les filets */
  --aplat: #111111;        /* le seul aplat : éléments forts (boutons, sélections, onglet actif, bandeau) */
  --aplat2: #333333;       /* survol de l'aplat */
  --ink: #111111;          /* texte et traits forts */
  --text2: #3d3d3b;        /* textes courants */
  --mute: #7a7a76;
  --soft: transparent;
  --num: #cdcdc8;
  --dots: transparent;     /* plus de trame sous les numéros */
  --line: #c6c6c1;
  --cond: 'Archivo', 'Helvetica Neue', Arial, sans-serif; /* remplace la Barlow Condensed (plus large : corps et interlettrages ajustés plus bas) */
  --r1: 2px solid #111111;  /* structure */
  --r2: 1px solid #c2c2bd;  /* blocs */
  --r3: 1px dotted #9e9e99; /* éléments internes */
}
[data-theme="filets"] body { background: var(--bg); color: var(--ink); }
[data-theme="filets"] :is(.hero-t p, .card p, .ttl p, .lab, .toggle, .lab-inline, .sw-n, .seo .lead, .seo-grid ol, .seo-grid ul, .faq p, .legal-body p, .legal-body li,
  .guide-body p, .guide-body li, .guide-cards p, .contact-t p, .contact-f label, .contact-f .consent, .pal-name, .guide-cta em, .dev p) { color: var(--text2); }

/* ---------- En-tête : filet de structure ---------- */
[data-theme="filets"] header.top { background: var(--bg); border-bottom: var(--r1); }
[data-theme="filets"] .logo, [data-theme="filets"] nav.tabs a { border-right: var(--r2); }
[data-theme="filets"] .logo span { border-color: var(--ink); }
[data-theme="filets"] nav.tabs a:hover { color: var(--ink); background: none; }
[data-theme="filets"] nav.tabs a.on { color: #fff; background: var(--aplat); box-shadow: none; }
[data-theme="filets"] .credit a { color: var(--ink); }
[data-theme="filets"] .credit .credit-ig { border: var(--r2); }
[data-theme="filets"] .credit .credit-ig:hover { background: var(--aplat); color: #fff; }

/* ---------- Accueil plein écran ---------- */
[data-theme="filets"] .home { max-width: none; padding: 0; }
[data-theme="filets"] .home > * { margin: 0 !important; }
[data-theme="filets"] .dev { background: var(--aplat); color: #fff; border-bottom: var(--r1); padding: 14px 24px; }
[data-theme="filets"] .dev-tag { border-color: rgba(255,255,255,.4); }
[data-theme="filets"] .home .dev p { color: #cfcfcb; }
[data-theme="filets"] .home .dev p b { color: #fff; }
[data-theme="filets"] .dev-btn { background: var(--bg); color: var(--ink); }
[data-theme="filets"] .dev-btn:hover { background: #ffd23f; }
[data-theme="filets"] .hero { background: none; border-bottom: var(--r1); }
[data-theme="filets"] .hero-n { background: none; color: var(--num); border-right: var(--r2); padding-left: 24px; }
[data-theme="filets"] .hero-t small, [data-theme="filets"] .seo-head small { color: var(--mute); }
[data-theme="filets"] .cards { gap: 0; background: none; border: 0; }
[data-theme="filets"] .home > .cards { margin-inline: auto !important; border-left: var(--r2); } /* 1600 px au plus, centrées : filet à gauche quand l'écran est plus large */
[data-theme="filets"] .card { background: none; border-right: var(--r2); border-bottom: var(--r2); transition: background .2s; }
[data-theme="filets"] .card:hover { transform: none; box-shadow: none; background: #f8f8f6; }
[data-theme="filets"] .card-top { border-bottom: var(--r3); }
[data-theme="filets"] .card-top .n { background: none; color: var(--num); border-right: var(--r3); }
[data-theme="filets"] .card-top .card-ico { color: var(--ink); }
[data-theme="filets"] .thumb { background: none; border-bottom: var(--r3); }
[data-theme="filets"] .thumb canvas, [data-theme="filets"] .thumb img { box-shadow: 0 6px 20px rgba(0,0,0,.08); outline: 0; }
[data-theme="filets"] .card-foot { border-top: var(--r3); padding-top: 12px; margin-top: 10px; }
[data-theme="filets"] .card-foot .go { background: var(--aplat); color: #fff; }
[data-theme="filets"] .card:hover .card-foot .go { background: var(--aplat2); color: #fff; }

/* ---------- Outil : colonnes pleine hauteur ---------- */
[data-theme="filets"] .side, [data-theme="filets"] .out { background: var(--bg); }
[data-theme="filets"] .side { border-right: var(--r1); }
[data-theme="filets"] .out { border-left: var(--r1); }
[data-theme="filets"] .stage { background: var(--bg); }
[data-theme="filets"] .stage canvas { box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 18px 50px rgba(0,0,0,.10); outline: 0; }
[data-theme="filets"] .stagebar { color: var(--mute); }
[data-theme="filets"] .sb-right button { background: none; border: var(--r2); color: var(--ink); }
[data-theme="filets"] .sb-right button:hover { background: var(--aplat); color: #fff; }
[data-theme="filets"] .drop { border-color: var(--ink); background: rgba(239,239,236,.88); color: var(--ink); }
[data-theme="filets"] .ttl { border-bottom: var(--r1); }
[data-theme="filets"] .ttl .n { background: none; color: var(--num); border-right: var(--r3); }
[data-theme="filets"] details.sec { border-bottom: var(--r2); }
[data-theme="filets"] details.sec > summary { background: none; border-bottom: 0; padding: 14px 22px; color: var(--ink); }
[data-theme="filets"] details.sec > summary:hover { color: #fff; }
[data-theme="filets"] details.sec[open] > summary { border-bottom: var(--r3); }
[data-theme="filets"] details.sec > summary em { border: var(--r3); color: var(--mute); }
[data-theme="filets"] .sec-body { padding: 4px 0 10px; }
[data-theme="filets"] .sec-body > .ctl + .ctl { border-top: var(--r3); }
[data-theme="filets"] .ctl { padding: 10px 22px 12px; }
[data-theme="filets"] .lab output { color: var(--ink); background: none; border: var(--r3); padding: 1px 6px; min-width: 42px; text-align: center; }
[data-theme="filets"] .note { color: var(--mute); }
[data-theme="filets"] .side-foot { border-top: var(--r2); background: none; }
[data-theme="filets"] .link { color: var(--mute); }
[data-theme="filets"] .link:hover { color: var(--ink); }
@media (max-width: 1180px) { [data-theme="filets"] .out { border-left: 0; border-top: var(--r1); } [data-theme="filets"] .out details.sec { border-right: var(--r2); } }
@media (max-width: 760px) { [data-theme="filets"] .stage { border-bottom: var(--r1); box-shadow: none; } [data-theme="filets"] .side { border-right: 0; } [data-theme="filets"] .out { border-top: var(--r1); } }

/* ---------- Curseurs bien visibles ---------- */
[data-theme="filets"] input[type=range] { height: 26px; }
[data-theme="filets"] input[type=range]::-webkit-slider-runnable-track {
  height: 6px; border: 0;
  background: linear-gradient(90deg, var(--ink) 0 var(--v, 0%), #cfcfca var(--v, 0%) 100%);
}
[data-theme="filets"] input[type=range]::-webkit-slider-thumb {
  width: 20px; height: 20px; margin-top: -7px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--ink); box-shadow: 0 0 0 3px var(--bg);
}
[data-theme="filets"] input[type=range]:hover::-webkit-slider-thumb { background: var(--aplat); }
[data-theme="filets"] input[type=range]:active::-webkit-slider-thumb { transform: scale(1.15); background: var(--ink); }
[data-theme="filets"] input[type=range]:focus-visible { outline: 1px dotted var(--ink); outline-offset: 3px; }
[data-theme="filets"] input[type=range]::-moz-range-track { height: 6px; background: #cfcfca; }
[data-theme="filets"] input[type=range]::-moz-range-progress { height: 6px; background: var(--ink); }
[data-theme="filets"] input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 2px solid var(--ink); }

/* ---------- Boutons, segments, champs : l'aplat pour les éléments forts ---------- */
[data-theme="filets"] .btn { background: var(--aplat); border-color: var(--aplat); color: #fff; }
[data-theme="filets"] .btn:hover { background: var(--aplat2); border-color: var(--aplat2); }
[data-theme="filets"] .btn.ghost { background: none; border: var(--r2); color: var(--ink); }
[data-theme="filets"] .btn.ghost:hover { background: none; border-color: var(--ink); }
[data-theme="filets"] .btn.busy { background: linear-gradient(90deg, var(--aplat2) var(--p, 0%), var(--aplat) var(--p, 0%)); }
[data-theme="filets"] .seg { border: var(--r2); }
[data-theme="filets"] .seg button { background: none; color: var(--text2); }
[data-theme="filets"] .seg button + button { border-left: var(--r2); }
[data-theme="filets"] .seg button:not(.on):hover { background: none; color: var(--ink); }
[data-theme="filets"] .seg button.on { background: var(--aplat); color: #fff; }
[data-theme="filets"] .toggle i { border-color: var(--ink); background: none; }
[data-theme="filets"] .toggle i::after { background: var(--ink); }
[data-theme="filets"] .toggle input:checked + i { background: var(--aplat); }
[data-theme="filets"] .toggle input:checked + i::after { background: #fff; }
[data-theme="filets"] :is(select, textarea, .ctl > input[type=text], .fp-search, .wh input, .mine-name, .hex) { background: none; color: var(--ink); border: var(--r2); }
[data-theme="filets"] select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); }
[data-theme="filets"] select option { background: #fff; color: var(--ink); }
[data-theme="filets"] .hex { border-width: 0 0 0 1px; }
[data-theme="filets"] :is(.colorbox, .pal-item, .sw-c, .pal-strip, .pal-contrast, .fp-list, .chips button, .fp-cats button) { border-color: #c2c2bd; background: none; }
[data-theme="filets"] .fp-item { background: none; border-bottom: var(--r3); }
[data-theme="filets"] .fp-item:hover { background: #f8f8f6; }
[data-theme="filets"] .fp-item.on, [data-theme="filets"] .fp-cats button.on { background: var(--aplat); color: #fff; border-color: var(--aplat); }
[data-theme="filets"] .fp-more { background: var(--aplat); color: #fff; }
[data-theme="filets"] .pal-add { background: none; border-color: var(--mute); }
[data-theme="filets"] .pal-item .x { background: var(--bg); border-color: var(--ink); color: var(--ink); }
[data-theme="filets"] .ib { background: none; border: var(--r2); color: var(--ink); }
[data-theme="filets"] .ib.on { background: var(--aplat); color: #fff; }
[data-theme="filets"] .gallery button { background: none; border: var(--r2); color: var(--ink); }
[data-theme="filets"] .gallery button:hover { border-color: var(--mute); }
[data-theme="filets"] .gallery button.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
[data-theme="filets"] .g-thumb, [data-theme="filets"] .ex-thumb { background: none; }
[data-theme="filets"] .fmts button { background: none; border: var(--r2); color: var(--ink); }
[data-theme="filets"] .fmts button:hover { border-color: var(--mute); }
[data-theme="filets"] .fmts button.on { background: var(--aplat); border-color: var(--aplat); color: #fff; }
[data-theme="filets"] .mine-load { background: none; border: var(--r2); color: var(--ink); }
[data-theme="filets"] .mine-load:hover { border-color: var(--ink); }
[data-theme="filets"] .pal-chip.on, [data-theme="filets"] .pal-sw.on { outline-color: var(--ink); }
[data-theme="filets"] .toast { background: var(--ink); color: var(--bg); }

/* ---------- Pages (contenu, FAQ, contact) : plein écran, filets ---------- */
[data-theme="filets"] .seo { background: var(--bg); border-top: var(--r1); }
[data-theme="filets"] .seo-in { max-width: none; padding: 0 0 40px; }
[data-theme="filets"] .seo-head { background: none; border-bottom: var(--r1); margin: 0; }
[data-theme="filets"] .seo-head .n { background: none; color: var(--num); border-right: var(--r2); }
[data-theme="filets"] .seo-in > h2 { padding-left: 24px; padding-right: 24px; }
[data-theme="filets"] .seo-in > h2 { margin: 0; padding-top: 26px; padding-bottom: 12px; border-top: var(--r2); }
[data-theme="filets"] .seo-head + h2, [data-theme="filets"] .crumbs + .seo-head + h2 { border-top: 0; }
[data-theme="filets"] :is(.seo-grid, .ex-grid, .tool-links, .guide-cards) { gap: 0; background: none; border-top: var(--r3); }
[data-theme="filets"] :is(.seo-grid > article, .ex-card, .tool-links li, .guide-cards li) { border-right: var(--r2); border-bottom: var(--r2); }
[data-theme="filets"] .seo-grid article, [data-theme="filets"] .tool-links a, [data-theme="filets"] .guide-cards a, [data-theme="filets"] .ex-card { background: none; color: var(--ink); }
[data-theme="filets"] .tool-links a:hover, [data-theme="filets"] .guide-cards a:hover { background: var(--aplat); color: #fff; }
[data-theme="filets"] .ex-card:hover { transform: none; box-shadow: none; background: #f8f8f6; }
[data-theme="filets"] .ex-label { border-top: var(--r3); }
[data-theme="filets"] .ex-thumb canvas { box-shadow: none; }
[data-theme="filets"] .faq { background: none; border-top: var(--r3); }
[data-theme="filets"] .faq details { border-bottom: var(--r3); }
[data-theme="filets"] .faq summary { color: var(--ink); }
[data-theme="filets"] .faq summary:hover { color: #fff; }
[data-theme="filets"] .crumbs { padding: 18px 24px 0; }
[data-theme="filets"] .legal-body, [data-theme="filets"] .guide-body { background: none; padding: 8px 24px 32px; color: var(--ink); }
[data-theme="filets"] .legal-body a, [data-theme="filets"] .guide-meta a, [data-theme="filets"] .contact-sign a, [data-theme="filets"] .contact-f .consent a { color: var(--ink); }
[data-theme="filets"] .guide-body tbody tr:nth-child(odd) { background: none; }
[data-theme="filets"] .guide-body th, [data-theme="filets"] .guide-body td { border-bottom: var(--r3); }
[data-theme="filets"] .guide-cta { background: none; border: var(--r2); color: var(--ink); }
[data-theme="filets"] .legal-body a.guide-cta:hover { background: var(--aplat); color: #fff; }
[data-theme="filets"] .contact { background: var(--bg); border-top: var(--r1); }
[data-theme="filets"] .contact .seo-in { padding: 40px 24px; }
[data-theme="filets"] .contact-f input:not([type=checkbox]), [data-theme="filets"] .contact-f textarea { background: none; color: var(--ink); border: var(--r2); }
[data-theme="filets"] .contact-f input:focus, [data-theme="filets"] .contact-f textarea:focus { box-shadow: none; border-color: var(--ink); }
[data-theme="filets"] .contact-f .consent input { accent-color: var(--ink); }
[data-theme="filets"] .site-foot { background: var(--bg); color: var(--mute); border-top: var(--r1); }
[data-theme="filets"] .site-foot a { color: var(--ink); }
[data-theme="filets"] .foot-home { border-color: var(--ink); }
[data-theme="filets"] .site-foot .seo-in { padding: 24px; }
[data-theme="filets"] #matomo-opt-out { background: none; border: var(--r2); }
[data-theme="filets"] .lost-hero { background: none; }

/* ---------- Connect ---------- */
[data-theme="filets"] .cn-graph { background-color: var(--bg); background-image: radial-gradient(#c9c9c4 1px, transparent 1px); border-bottom: var(--r1); }
[data-theme="filets"] .cn-wire { stroke: var(--ink); }
[data-theme="filets"] .cn-node { background: #fff; border-color: var(--ink); box-shadow: none; color: var(--ink); }
[data-theme="filets"] .cn-head { border-bottom-color: var(--ink); }
[data-theme="filets"] .cn-node.cat-src .cn-head { background: var(--aplat); color: #fff; }
[data-theme="filets"] .cn-node.cat-mix .cn-head, [data-theme="filets"] .cn-node.cat-gen .cn-head { color: #111; }
[data-theme="filets"] .cn-in, [data-theme="filets"] .cn-out { border-color: var(--ink); background: var(--bg); }
[data-theme="filets"] .cn-out, [data-theme="filets"] .cn-in.on { background: var(--ink); }
[data-theme="filets"] .cn-lab { background: rgba(255,255,255,.85); color: var(--ink); }
[data-theme="filets"] .cn-bar button, [data-theme="filets"] .cn-cbtn button { background: var(--bg); border-color: var(--ink); color: var(--ink); }
[data-theme="filets"] .cn-bar button:hover { background: var(--aplat); color: #fff; }
[data-theme="filets"] .cn-card { background: none; border: var(--r2); }
[data-theme="filets"] .cn-cname { color: var(--ink); }
[data-theme="filets"] .stage .cn-thumb, [data-theme="filets"] .cn-pthumb { background: #e4e4e0; }

/* bouton pour revenir à l'interface actuelle */
.theme-back { position: fixed; right: 12px; bottom: 12px; z-index: 60; padding: 7px 12px; background: #111; color: #fff; font-family: var(--mono); font-size: 11px; text-decoration: none; letter-spacing: .02em; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
[data-theme="filets"] .theme-back { background: var(--ink); color: var(--bg); }

/* ---------- Archivo : largeurs et corps ajustés (elle chasse plus que la Barlow Condensed) ----------
   Textes courants en largeur normale, petites capitales de l'interface en semi-étroite, titres en étroite grasse. */
[data-theme="filets"] body { font-size: 14px; }
[data-theme="filets"] :is(.hero-t h1, .card-top b, .ttl h2, .seo-head h1, .seo-head h2, .contact-t h2, .lost-hero h1, .guide-cards b, .guide-cta b, .pal-contrast b) {
  font-stretch: 75%; font-weight: 700; letter-spacing: -.01em;
}
[data-theme="filets"] .hero-t h1 { font-size: clamp(32px, 4.6vw, 60px); line-height: .98; }
[data-theme="filets"] .card-top b { font-size: 24px; }
[data-theme="filets"] .ttl h2 { font-size: 28px; }
[data-theme="filets"] :is(nav.tabs a, .seg button, .g-name, details.sec > summary, .lab, .toggle, .lab-inline, .btn, .card-top small, .ttl small, .hero-t small, .seo-head small,
  .sw-n, .fmts small, select, .chips button, .fp-cats button, .dev-btn, .card-foot .go, .ex-label, .tool-links span, .link, .credit, .cn-head, .cn-bar button, .cn-cname,
  .contact-f label, .contact-t small, .site-foot nav, .pal-name, .seo h2, .faq summary, .mine-load b, .fp-more, .dev p b, .wh label) {
  font-stretch: 82%;
}
[data-theme="filets"] nav.tabs a { font-size: 13px; letter-spacing: .03em; font-weight: 600; }
@media (max-width: 1640px) { [data-theme="filets"] nav.tabs a { font-size: 12.5px; letter-spacing: .01em; } }
[data-theme="filets"] .seg button { font-size: 11.5px; letter-spacing: .02em; padding: 7px 3px; }
[data-theme="filets"] .g-name { font-size: 11px; letter-spacing: 0; }
[data-theme="filets"] details.sec > summary { font-size: 12.5px; letter-spacing: .06em; }
[data-theme="filets"] .lab, [data-theme="filets"] .toggle, [data-theme="filets"] .lab-inline { font-size: 11.5px; letter-spacing: .04em; }
[data-theme="filets"] .btn { font-size: 12.5px; letter-spacing: .06em; }
[data-theme="filets"] .btn.small { font-size: 11px; letter-spacing: .03em; }
[data-theme="filets"] .card-top small, [data-theme="filets"] .ttl small { font-size: 11.5px; letter-spacing: .08em; }
[data-theme="filets"] .sw-n { font-size: 10.5px; letter-spacing: .02em; }
[data-theme="filets"] select { font-size: 13px; letter-spacing: .02em; }
[data-theme="filets"] .card-foot .go, [data-theme="filets"] .dev-btn { font-size: 12.5px; letter-spacing: .07em; }
[data-theme="filets"] .hero-t p { font-size: 17px; line-height: 1.45; }
[data-theme="filets"] .card p { font-size: 14.5px; line-height: 1.45; }
[data-theme="filets"] .ttl p { font-size: 13px; line-height: 1.4; }
[data-theme="filets"] .dev p { font-size: 15px; line-height: 1.45; }
[data-theme="filets"] :is(.seo .lead, .faq p, .seo-grid ol, .seo-grid ul, .guide-body p, .guide-body li, .guide-cards p, .contact-t p, .legal-body p, .legal-body li) { font-size: 15.5px; line-height: 1.55; }
[data-theme="filets"] .tool-links span { font-size: 17px; }
[data-theme="filets"] textarea { font-size: 16px; }
@media (max-width: 760px) {
  [data-theme="filets"] .hero-t p { font-size: 16px; }
  [data-theme="filets"] .card p { font-size: 15px; }
  [data-theme="filets"] .seg button { font-size: 12px; }
  [data-theme="filets"] .lab, [data-theme="filets"] .toggle { font-size: 12px; }
}
/* resserrages ciblés (mesurés : mêmes nombres de lignes qu'avec la Barlow Condensed) */
[data-theme="filets"] .hero-t h1 { font-stretch: 68%; }
[data-theme="filets"] :is(nav.tabs a, .seg button, .g-name, .sw-n) { font-stretch: 72%; }
[data-theme="filets"] nav.tabs a { padding: 0 clamp(7px, 0.75vw, 20px); gap: 5px; }
[data-theme="filets"] :is(.card p, .ttl p) { font-stretch: 90%; }
[data-theme="filets"] nav.tabs a { padding: 0 clamp(6px, 0.7vw, 20px); }
[data-theme="filets"] .seg button { padding: 7px 2px; letter-spacing: 0; }

/* ---------- Accueil uniquement : colonne centrale blanche, 20 % de gris à gauche et à droite ----------
   (l'accueil est la seule page sans atelier ni contenu statique ; l'en-tête reste pleine largeur) */
[data-theme="filets"] body[data-tool=""]:not([data-static]) > :is(main, .seo, .contact, .site-foot) {
  margin-inline: 20%; background: #ffffff; border-left: var(--r2); border-right: var(--r2);
}
[data-theme="filets"] body[data-tool=""]:not([data-static]) .home > .cards { border-left: 0; margin-right: -1px !important; }
@media (max-width: 1180px) {
  [data-theme="filets"] body[data-tool=""]:not([data-static]) > :is(main, .seo, .contact, .site-foot) { margin-inline: 4%; }
}
@media (max-width: 760px) {
  [data-theme="filets"] body[data-tool=""]:not([data-static]) > :is(main, .seo, .contact, .site-foot) { margin-inline: 0; border-left: 0; border-right: 0; }
}
