/* 17/11/2026 (Julien t3349u) : interrupteur clair/sombre, lien « Gestion des thèmes », page de choix, fil d'Ariane partagé.
   Chargé sur toutes les pages, après style.css, avant le CSS du thème choisi et theme-dark.css. Aucun effet métier. */

/* ---------- Interrupteur clair / sombre (en-tête) ---------- */
.mode-sw{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;border-radius:999px;border:1px solid var(--line,#e2e8f0);background:#fff;color:var(--navy,#1f3a68);text-decoration:none;flex:0 0 auto}
.mode-sw:hover{border-color:var(--gold,#d4a72c);color:var(--gold,#d4a72c)}
.mode-sw svg{width:1.05rem;height:1.05rem;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;display:block}
body:not(.theme-dark) .mode-sw-sun,html:not(.theme-dark) body .mode-sw-sun{display:none}
body.theme-dark .mode-sw-moon,html.theme-dark .mode-sw-moon{display:none}
.topbar .theme-sw{font-weight:700}

/* ---------- Fil d'Ariane (theme-soft.js, aussi utilisé par Bsinx) ---------- */
.topbar:has(.soft-crumb) .brand{margin-right:0}
.soft-crumb{margin-right:auto;margin-left:1.5rem;display:flex;flex-direction:column;gap:.05rem;min-width:0;line-height:1.2}
.soft-crumb ol{display:flex;align-items:center;gap:.4rem;list-style:none;padding:0;margin:0;font-size:.75rem;color:var(--muted);white-space:nowrap}
.soft-crumb ol li+li::before{content:"/";margin-right:.4rem;color:var(--muted);opacity:.7}
.soft-crumb b{font-size:.85rem;font-weight:700;color:var(--navy);white-space:nowrap}
.soft-crumb ol li:last-child{color:var(--navy);font-weight:600}
.soft-crumb ol li a{color:inherit;text-decoration:none}
.soft-crumb ol li a:hover{color:var(--gold)}
@media (max-width:900px){ .soft-crumb{display:none} }

/* ---------- Page Gestion des thèmes ---------- */
.th-modebar{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;margin:0 0 1.25rem}
.th-modebar-l{font-weight:700;color:var(--navy);margin-right:.3rem}
.th-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:1.1rem}
.th-card{background:#fff;border:1px solid var(--line,#e2e8f0);border-radius:1.1rem;box-shadow:0 8px 22px rgba(20,35,70,.06);overflow:hidden;transition:transform .15s,box-shadow .15s,border-color .15s}
.th-card:hover{transform:translateY(-2px);box-shadow:0 14px 28px rgba(20,35,70,.12)}
.th-card.on{border-color:var(--gold,#d4a72c);box-shadow:0 0 0 2px var(--gold,#d4a72c),0 14px 28px rgba(20,35,70,.1)}
.th-card-a{display:block;color:inherit;text-decoration:none;padding:0 0 .9rem}
.th-card h3{font-size:1.02rem;margin:.75rem 1rem .35rem;color:var(--navy);display:flex;align-items:center;gap:.45rem;flex-wrap:wrap}
.th-card p{margin:0 1rem .7rem;color:var(--muted);font-size:.85rem;line-height:1.4}
.th-tag{display:inline-block;font-size:.68rem;font-weight:700;letter-spacing:.03em;text-transform:uppercase;padding:.12rem .45rem;border-radius:999px;background:var(--gold-l,#f6ecd0);color:#7a5a10}
.th-now,.th-use{display:inline-block;margin:0 1rem;font-size:.8rem;font-weight:700}
.th-now{color:#15803d}
.th-use{color:var(--navy)}
.th-card:hover .th-use{color:var(--gold)}

/* Vignettes CSS (aperçu, pas une capture) */
.th-prev{height:128px;margin:0;background:#eef2f7;display:flex;flex-direction:column;overflow:hidden}
.th-prev-bar{height:18px;background:#fff;border-bottom:2px solid #d4a72c;display:flex;align-items:center;justify-content:flex-end;gap:5px;padding:0 8px;flex:0 0 auto}
.th-prev-bar i{width:14px;height:6px;border-radius:99px;background:#c7d2e3;display:block}
.th-prev-row{flex:1;display:flex;min-height:0}
.th-prev-side{width:38px;background:#fff;border-right:1px solid #e2e8f0;padding:8px 6px;display:flex;flex-direction:column;gap:5px}
.th-prev-side i{height:8px;border-radius:4px;background:#e2e8f0;display:block}
.th-prev-side i.on{background:#1f3a68}
.th-prev-main{flex:1;padding:8px 9px;display:flex;flex-direction:column;gap:6px}
.th-prev-main b{display:block;height:8px;width:46%;border-radius:4px;background:#1f3a68}
.th-prev-cards{display:flex;gap:5px}
.th-prev-cards s{flex:1;height:28px;border-radius:6px;background:#fff;box-shadow:0 1px 3px rgba(20,35,70,.12);display:block;text-decoration:none}
.th-prev-table{flex:1;background:#fff;border-radius:6px;box-shadow:0 1px 3px rgba(20,35,70,.12);padding:5px;display:flex;flex-direction:column;gap:3px}
.th-prev-table em{display:block;height:5px;background:#e8edf4;border-radius:2px;font-style:normal}

.th-prev-soft{background:#f4f4f5}
.th-prev-soft .th-prev-bar{background:rgba(255,255,255,.95);border-bottom:0;box-shadow:0 1px 4px rgba(0,0,0,.06)}
.th-prev-soft .th-prev-side{background:#fff;border-right:0}
.th-prev-soft .th-prev-side i.on{background:linear-gradient(310deg,#ea580c,#f59e0b)}
.th-prev-soft .th-prev-main b{background:linear-gradient(310deg,#c2410c,#f59e0b)}
.th-prev-soft .th-prev-cards s:first-child{background:linear-gradient(310deg,#ea580c,#f59e0b)}

.th-prev-soft-violet{background:#f7f4fb}
.th-prev-soft-violet .th-prev-bar{background:rgba(255,255,255,.95);border-bottom:0}
.th-prev-soft-violet .th-prev-side i.on{background:linear-gradient(310deg,#7928ca,#ff0080)}
.th-prev-soft-violet .th-prev-main b{background:linear-gradient(310deg,#7928ca,#ff0080)}
.th-prev-soft-violet .th-prev-cards s:first-child{background:linear-gradient(310deg,#7928ca,#ff0080)}

.th-prev-classic{background:#f4f6fa}
.th-prev-classic .th-prev-bar{border-bottom-color:#d4a72c}
.th-prev-classic .th-prev-side i.on,.th-prev-classic .th-prev-main b{background:#1f3a68}

.th-prev-bsinx,.th-prev-bsinx-teal,.th-prev-bsinx-violet{background:#EAEDF7}
.th-prev-bsinx .th-prev-bar,.th-prev-bsinx-teal .th-prev-bar,.th-prev-bsinx-violet .th-prev-bar{background:#fff;border-bottom:0;box-shadow:0 1px 0 #e4e7f2}
.th-prev-bsinx .th-prev-side,.th-prev-bsinx-teal .th-prev-side,.th-prev-bsinx-violet .th-prev-side{background:#fff;border-right:1px solid #e4e7f2}
.th-prev-bsinx .th-prev-side i.on,.th-prev-bsinx .th-prev-main b{background:#0E0E23}
.th-prev-bsinx .th-prev-cards s:first-child{background:#4d7cff}
.th-prev-bsinx-teal .th-prev-side i.on,.th-prev-bsinx-teal .th-prev-main b{background:#0E0E23}
.th-prev-bsinx-teal .th-prev-cards s:first-child{background:#0d9488}
.th-prev-bsinx-violet .th-prev-side i.on,.th-prev-bsinx-violet .th-prev-main b{background:#0E0E23}
.th-prev-bsinx-violet .th-prev-cards s:first-child{background:#7c3aed}

/* 17/11 : l'interrupteur et « Gestion des thèmes » allongent l'en-tête — ne pas renvoyer « Déconnexion » à la ligne sous le logo. */
@media (min-width:901px){
  .topbar{flex-wrap:nowrap;gap:.7rem}
  .soft-crumb{flex:1 1 10rem;min-width:8rem;overflow:hidden}
  .soft-crumb ol,.soft-crumb b{overflow:hidden;text-overflow:ellipsis;max-width:100%}
  .topbar .who{max-width:12rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .topbar a,.topbar .link,.topbar .mode-sw,.topbar .theme-sw,.topbar form.inline{flex:0 0 auto;white-space:nowrap}
}
@media (max-width:1200px){
  .topbar .who{display:none}
}

/* =====================================================================================================================
   17/11/2026 (Julien t3352u) : bandeau de titre de page foncé (titre en blanc), calé sur le haut du menu.
   Sélecteurs marketplace / fournisseur, pastille de mise à jour et Actualiser : même fond foncé.
   Barres d'onglets (.mj-tabs) : fond blanc, comme avant (onglet actif souligné, inactifs lisibles).
   ===================================================================================================================== */
.cat-head{
  background:var(--chrome-bg,#152a4d);
  color:var(--chrome-fg,#e8eef8);
  border-bottom:0;
  border-radius:1rem;
  padding:1rem 1.2rem 1.05rem;
  margin-bottom:1.25rem;
}
.cat-head .crumb{color:var(--chrome-muted,#c5d0ee)}
.cat-head .crumb:hover{color:#fff}
.cat-head h1{color:#fff}
.cat-head p,.cat-head .cat-sub{color:var(--chrome-muted,#c5d0ee);max-width:none}
.cat-head p a,.cat-head .cat-sub a{color:#fff}
.cat-head p a:hover,.cat-head .cat-sub a:hover{color:var(--gold,#d4a72c)}
.cat-head .cat-back,.cat-head .btn,.cat-head .btn.ghost,.cat-head .small{
  background:rgba(255,255,255,.1);color:#fff;border-color:rgba(255,255,255,.28)
}
.cat-head .cat-back:hover,.cat-head .btn:hover,.cat-head .btn.ghost:hover,.cat-head .small:hover{
  background:rgba(255,255,255,.18);color:#fff;border-color:rgba(255,255,255,.42)
}

/* Classic : le fil d'Ariane reste doré, comme l'en-tête. */
body:not(.theme-soft):not(.theme-bsinx) .cat-head .crumb{color:var(--gold,#d4a72c)}
body:not(.theme-soft):not(.theme-bsinx) .cat-head .crumb:hover{color:#fff}

nav.hist-sel,.hist-sel{
  background:var(--chrome-bg,#152a4d);
  color:var(--chrome-muted,#c5d0ee);
  border-radius:.75rem;
  padding:.35rem .6rem;
  margin:0 0 1.15rem;
  gap:.22rem;
}
.hist-sel-l{color:var(--chrome-fg,#e8eef8)}
.hist-sel .ibl{color:var(--chrome-muted,#c5d0ee)}
.hist-sel a,.hist-sel button.hist-sel-chip{
  background:#fff;color:#4b5563;border:1px solid #e5e7eb
}
.hist-sel a.on,.hist-sel button.hist-sel-chip.on{
  border:2px solid #e87511;background:#ffe8d1;color:#9a3412;font-weight:700
}
.hist-sel a:hover,.hist-sel button.hist-sel-chip:hover{border-color:#e87511}
.hist-sel img{background:#fff;border-radius:3px;padding:1px}
.hist-sel-q{
  background:#fff;color:#1e293b;border:1px solid #e5e7eb;
  color-scheme:light;
}
.hist-sel-q::placeholder{color:#6b7280}

p.frag-updated{
  display:flex !important;
  align-items:center;
  flex-wrap:wrap;
  gap:.45rem !important;
  width:100% !important;
  max-width:100% !important;
  box-sizing:border-box;
  margin:.65rem 0 1.15rem !important;
  padding:.7rem 1.1rem !important;
  border:0 !important;
  border-radius:1rem !important;
  background:var(--chrome-bg,#152a4d) !important;
  color:var(--chrome-fg,#e8eef8) !important;
  font-size:12px;
  line-height:1.4;
}
p.frag-updated > span[aria-hidden]{color:var(--gold,#d4a72c) !important}
p.frag-updated time{color:#fff !important;font-weight:600}
p.frag-updated .ibl{color:var(--chrome-muted,#c5d0ee)}
p.frag-updated .btn,
p.frag-updated .btn.ghost,
p.frag-updated .btn.act,
p.frag-updated .frag-refresh-btn{
  background:rgba(255,255,255,.1) !important;
  color:#fff !important;
  border:1px solid rgba(255,255,255,.28) !important;
}
p.frag-updated .btn:hover,
p.frag-updated .frag-refresh-btn:hover{
  background:rgba(255,255,255,.2) !important;
  color:#fff !important;
  border-color:rgba(255,255,255,.42) !important;
}

.cat-toolbar{
  background:var(--chrome-bg,#152a4d);
  color:var(--chrome-muted,#c5d0ee);
  border-radius:1rem;
  padding:.7rem 1.1rem;
  margin:0 0 1.15rem;
}
.cat-toolbar .cat-help{color:var(--chrome-muted,#c5d0ee)}
.cat-toolbar .cat-help a{color:#fff}
.cat-toolbar .cat-help a:hover{color:var(--gold,#d4a72c)}
.cat-toolbar .cat-back,.cat-toolbar .btn,.cat-toolbar .btn.ghost,.cat-toolbar .small{
  background:rgba(255,255,255,.1);color:#fff;border-color:rgba(255,255,255,.28)
}

/* Barres d'onglets : fond clair, comme avant. L'onglet actif est souligné par l'accent du thème. */
nav.mj-tabs{
  background:transparent;
  border-bottom:2px solid var(--line,#e3e7ef);
  border-radius:0;
  padding:0;
  margin:0 0 1.25rem;
}
nav.mj-tabs a{
  color:var(--navy,#1f3a68);
  border-bottom-color:transparent;
}
nav.mj-tabs a:hover{color:var(--navy,#1f3a68);opacity:.85}
nav.mj-tabs a.on{color:var(--navy,#1f3a68);border-bottom-color:var(--gold,#d4a72c);opacity:1}
nav.mj-tabs .mj-n,nav.mj-tabs small.mj-n{
  display:inline-block;
  margin-left:.2rem;
  padding:.05rem .4rem;
  border-radius:999px;
  background:#f4f4f5;
  color:#3f3f46;
  font-size:.75em;
  font-weight:700;
  line-height:1.4;
  vertical-align:middle;
}

/* Fusion visuelle des barres foncées qui se suivent (pastille de mise à jour + sélecteur mkp), pas des onglets. */
.cat-head:has(+ :is(nav.hist-sel,.hist-sel,.cat-toolbar,p.frag-updated)){
  margin-bottom:0;
  border-bottom-left-radius:0;
  border-bottom-right-radius:0;
  padding-bottom:.4rem;
}
.cat-head + :is(nav.hist-sel,.hist-sel,.cat-toolbar,p.frag-updated){
  margin-top:0;
  border-top-left-radius:0;
  border-top-right-radius:0;
}
.cat-toolbar + :is(nav.hist-sel,.hist-sel,p.frag-updated),
nav.hist-sel + :is(.cat-toolbar,p.frag-updated),
.hist-sel + :is(.cat-toolbar,p.frag-updated),
p.frag-updated + :is(nav.hist-sel,.hist-sel,.cat-toolbar){
  margin-top:0;
  border-top-left-radius:0;
  border-top-right-radius:0;
}
.frag-wrap:has(+ :is(#bloc-mkp,nav.hist-sel,.hist-sel)) > p.frag-updated{
  margin-bottom:0 !important;
  border-bottom-left-radius:0 !important;
  border-bottom-right-radius:0 !important;
}
.frag-wrap:has(+ :is(#bloc-mkp,nav.hist-sel,.hist-sel)) > p.frag-updated ~ p:empty{display:none}
.frag-wrap + #bloc-mkp > nav.hist-sel,
.frag-wrap + :is(nav.hist-sel,.hist-sel){
  margin-top:0;
  border-top-left-radius:0;
  border-top-right-radius:0;
}

@media (max-width:900px){
  .cat-head{padding:.85rem 1rem .9rem}
  nav.hist-sel,.hist-sel,p.frag-updated,.cat-toolbar{padding-left:1rem;padding-right:1rem}
}
