/* =============================================================================
   Feuille de style « Thème & Tokens Dojo Nuit » (v1.23) — Judo Club de Campénéac
   - Police Sora pour les titres
   - Tokens de couleurs Dojo Nuit (Clair & Sombre) — Direction artistique 2026
   - Échelle typographique et lisibilité renforcée
   - Éradication intégrale des surfaces grises/translucides et textes sombres en mode nuit
   - Protection absolue des zones papier et de l'impression (PDF/Factures/Diplômes)
   ============================================================================= */

/* 1. Typographie des titres (Sora) */
h1, h2, h3, h4, .titre-fort {
  font-family: 'Sora', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* 2. Jetons de couleurs (Clair France Judo & Dojo Nuit) */
:root {
  color-scheme: light dark;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --texte: #0f172a;
  --doux: #334155;
  --bord: #e2e8f0;
  --or: #d99a1e;
  --bleu-nuit: #172554;
}

/* Interrupteur de secours : retour immédiat à l'aspect v1.22 */
body[data-ui-v123="off"] {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
}

html[data-theme="clair"],
body[data-theme="clair"] {
  color-scheme: light;
}

html[data-theme="sombre"],
body[data-theme="sombre"] {
  color-scheme: dark;
  --bg: #0a0f24;
  --surface: #121a3a;
  --surface-2: #18224a;
  --texte: #eef0f8;
  --doux: #c8d1ec;
  --bord: rgba(148, 163, 210, 0.22);
  --or: #efb73e;
  --bleu-nuit: #0b1026;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="clair"]),
  html[data-theme="auto"],
  body[data-theme="auto"] {
    --bg: #0a0f24;
    --surface: #121a3a;
    --surface-2: #18224a;
    --texte: #eef0f8;
    --doux: #c8d1ec;
    --bord: rgba(148, 163, 210, 0.22);
    --or: #efb73e;
    --bleu-nuit: #0b1026;
  }
}

/* 2b. Échelle typographique & Lisibilité générale 2026 (Clair & Sombre, hors papier) */
body[data-ui="2026"] main [class*="text-[10px]"] {
  font-size: 0.72rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

body[data-ui="2026"] main [class*="text-[11px]"] {
  font-size: 0.78rem;
  line-height: 1.45;
}

body[data-ui="2026"] main .text-xs {
  font-size: 0.8125rem;
  line-height: 1.5;
}

html[data-theme="clair"] body[data-ui="2026"] main :is(.text-slate-500, .text-slate-600),
:root:not([data-theme="sombre"]) body[data-ui="2026"] main :is(.text-slate-500, .text-slate-600) {
  color: #3b425e;
}

/* Suppression du voile d'opacité 0.15 au scroll sur l'accueil */
body[data-ui="2026"] .jcc-section {
  animation: none !important;
  opacity: 1 !important;
}

/* 3. Transitions douces sur changement de thème */
body[data-ui="2026"] {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

body[data-ui="2026"] nav,
body[data-ui="2026"] aside,
body[data-ui="2026"] main,
body[data-ui="2026"] header,
body[data-ui="2026"] footer,
body[data-ui="2026"] .bg-white,
body[data-ui="2026"] .bg-slate-50,
body[data-ui="2026"] .bg-slate-100 {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  body[data-ui="2026"],
  body[data-ui="2026"] * {
    transition: none !important;
  }
}

/* =============================================================================
   4. Règles de thème sombre pour l'extranet (Surfaces, Cartes, Tableaux, Textes)
   ============================================================================= */
html[data-theme="sombre"] body[data-ui="2026"],
body[data-theme="sombre"][data-ui="2026"] {
  background-color: var(--bg);
  color: var(--texte);
}

/* 4.1. Surfaces blanches et translucides (bg-white, bg-white/70, bg-white/80, bg-white/90) */
html[data-theme="sombre"] :is(.bg-white, [class~="bg-white"], [class*="bg-white/"]),
body[data-theme="sombre"] :is(.bg-white, [class~="bg-white"], [class*="bg-white/"]) {
  background-color: var(--surface) !important;
  color: var(--texte) !important;
  border-color: var(--bord) !important;
}

/* 4.2. Boutons, sous-onglets inactifs et surfaces secondaires (slate/gray 50..300 et opacités) */
html[data-theme="sombre"] :is(button[class*="bg-white/"], a[class*="bg-white/"]),
body[data-theme="sombre"] :is(button[class*="bg-white/"], a[class*="bg-white/"]),
html[data-theme="sombre"] :is(
  .bg-slate-50,
  [class~="bg-slate-50"],
  [class*="bg-slate-50/"],
  .bg-slate-100,
  [class~="bg-slate-100"],
  [class*="bg-slate-100/"],
  .bg-slate-200,
  [class~="bg-slate-200"],
  [class*="bg-slate-200/"],
  .bg-slate-300,
  [class~="bg-slate-300"],
  [class~="bg-gray-50"],
  [class~="bg-gray-100"],
  [class~="bg-gray-200"]
),
body[data-theme="sombre"] :is(
  .bg-slate-50,
  [class~="bg-slate-50"],
  [class*="bg-slate-50/"],
  .bg-slate-100,
  [class~="bg-slate-100"],
  [class*="bg-slate-100/"],
  .bg-slate-200,
  [class~="bg-slate-200"],
  [class*="bg-slate-200/"],
  .bg-slate-300,
  [class~="bg-slate-300"],
  [class~="bg-gray-50"],
  [class~="bg-gray-100"],
  [class~="bg-gray-200"]
) {
  background-color: var(--surface-2) !important;
  color: var(--texte) !important;
  border-color: var(--bord) !important;
}

/* 4.3. Surfaces profondes (slate-900, blue-950 hors boutons) */
html[data-theme="sombre"] .bg-slate-900,
html[data-theme="sombre"] .bg-blue-950,
body[data-theme="sombre"] .bg-slate-900,
body[data-theme="sombre"] .bg-blue-950 {
  background-color: #0b1026 !important;
}

/* 4.4. Barre haute sticky desktop en mode sombre */
html[data-theme="sombre"] header[class~="sticky"][class~="h-16"],
body[data-theme="sombre"] header[class~="sticky"][class~="h-16"] {
  background-color: rgba(10, 15, 36, 0.9) !important;
  border-bottom-color: var(--bord) !important;
  color: var(--texte) !important;
}

/* 4.5. Survols (:hover) des boutons, onglets et lignes de tableaux en mode sombre */
html[data-theme="sombre"] :is(
  button[class*="hover:bg-white"]:hover,
  button[class*="hover:bg-slate-"]:hover,
  a[class*="hover:bg-white"]:hover,
  a[class*="hover:bg-slate-"]:hover
),
body[data-theme="sombre"] :is(
  button[class*="hover:bg-white"]:hover,
  button[class*="hover:bg-slate-"]:hover,
  a[class*="hover:bg-white"]:hover,
  a[class*="hover:bg-slate-"]:hover
) {
  background-color: #233166 !important;
  color: #ffffff !important;
  border-color: #3b82f6 !important;
}

html[data-theme="sombre"] table tbody tr:hover,
html[data-theme="sombre"] tr[class*="hover:bg-"]:hover,
body[data-theme="sombre"] table tbody tr:hover,
body[data-theme="sombre"] tr[class*="hover:bg-"]:hover {
  background-color: #1a2654 !important;
  color: var(--texte) !important;
}

/* 4.6. Bordures génériques et séparateurs en mode sombre */
html[data-theme="sombre"] :where(.border, .border-b, .border-t, .border-l, .border-r, hr, .divide-y > :not([hidden]) ~ :not([hidden]), .divide-x > :not([hidden]) ~ :not([hidden])),
body[data-theme="sombre"] :where(.border, .border-b, .border-t, .border-l, .border-r, hr, .divide-y > :not([hidden]) ~ :not([hidden]), .divide-x > :not([hidden]) ~ :not([hidden])) {
  border-color: var(--bord);
}

html[data-theme="sombre"] :is(.border-slate-100, .border-slate-200, .border-slate-300, [class*="border-slate-"], [class*="divide-slate-"]),
body[data-theme="sombre"] :is(.border-slate-100, .border-slate-200, .border-slate-300, [class*="border-slate-"], [class*="divide-slate-"]),
html[data-theme="sombre"] :is(.border-t:not([class*="border-amber"],[class*="border-emerald"],[class*="border-rose"],[class*="border-blue"]), .border-b:not([class*="border-amber"],[class*="border-emerald"],[class*="border-rose"],[class*="border-blue"])),
body[data-theme="sombre"] :is(.border-t:not([class*="border-amber"],[class*="border-emerald"],[class*="border-rose"],[class*="border-blue"]), .border-b:not([class*="border-amber"],[class*="border-emerald"],[class*="border-rose"],[class*="border-blue"])) {
  border-color: var(--bord) !important;
}

/* 5. Protection zone papier et impression (Obligation § 1 du plan v1.23) */
/* Le diplôme (.diplome-grade) en est exclu : ses couleurs sont écrites dans le document lui-même, et le fond blanc
   forcé recouvrait l'illustration (vagues) et effaçait les liserés or et bleus du PDF. */
#facture-apercu, #facture-apercu *,
.facture-corps, .facture-corps *,
#apercu-attestation-corps, #apercu-attestation-corps *,
#bilan-ag-corps, #bilan-ag-corps *,
#resultats-ag-corps, #resultats-ag-corps *,
.html2pdf__container, .html2pdf__container *:not(.diplome-grade, .diplome-grade *),
#diplome-print-sheet, #diplome-print-sheet *,
#feuille-appel-a4-conteneur, #feuille-appel-a4-conteneur *,
#signature-pad, #canvas-signature {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
}

@media print {
  body, body * {
    background-color: #ffffff !important;
    color: #0f172a !important;
  }
}

/* =============================================================================
   6. Lot 5 — Accueil Graphique Héro Plein Écran & Ambiance Dojo Nuit
   ============================================================================= */
.jcc-hero {
  position: relative;
  background: linear-gradient(125deg, #080d1e 0%, #0f1b45 55%, #172554 100%) !important;
  border: 1px solid rgba(96, 165, 250, 0.25) !important;
  box-shadow: 0 20px 50px rgba(8, 13, 30, 0.6), 0 0 0 1px rgba(96, 165, 250, 0.15) !important;
}

/* Motif tatami / géométrique subtil en overlay sur le hero */
.jcc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 28px);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.2) 80%, transparent);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.2) 80%, transparent);
  pointer-events: none;
  z-index: 1;
}

/* Lueur d'aurore animée discrète */
.jcc-hero .jcc-aurore,
body[data-ui="2026"] .jcc-aurore {
  position: absolute;
  inset: -15%;
  background: radial-gradient(55% 65% at 15% 80%, rgba(30, 58, 138, 0.45), transparent 70%), radial-gradient(45% 55% at 85% 20%, rgba(37, 99, 235, 0.22), transparent 70%) !important;
  animation: jcc-aurore-subtile 16s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes jcc-aurore-subtile {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-2%, 2%) scale(1.04); }
  100% { transform: translate(2%, -1%) scale(1.02); }
}

@media (prefers-reduced-motion: reduce) {
  .jcc-hero .jcc-aurore {
    animation: none !important;
  }
}

.jcc-titre-hero {
  font-family: 'Sora', 'Plus Jakarta Sans', system-ui, sans-serif !important;
  letter-spacing: -0.025em;
}

/* =============================================================================
   7. Lot 4 — Composants, Cartes & Reliefs (Clair & Sombre)
   ============================================================================= */
.jcc-carte,
.carte-box {
  border-radius: 1rem;
  background-color: var(--surface);
  border: 1px solid var(--bord);
  box-shadow: 0 1px 3px rgba(11, 16, 38, 0.05), 0 6px 16px rgba(11, 16, 38, 0.04);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

@media (hover: hover) {
  .jcc-carte:hover,
  .carte-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -4px rgba(11, 16, 38, 0.09), 0 6px 12px -4px rgba(11, 16, 38, 0.05);
  }
}

html[data-theme="sombre"] .jcc-carte,
html[data-theme="sombre"] .carte-box,
body[data-theme="sombre"] .jcc-carte,
body[data-theme="sombre"] .carte-box {
  background-color: var(--surface) !important;
  border-color: var(--bord) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

html[data-theme="sombre"] .jcc-carte:hover,
html[data-theme="sombre"] .carte-box:hover,
body[data-theme="sombre"] .jcc-carte:hover,
body[data-theme="sombre"] .carte-box:hover {
  box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.55);
}

/* Chiffres clés atouts & Kanji en mode sombre */
.jcc-atout {
  border-radius: 1rem !important;
  border: 1px solid var(--bord) !important;
  background-color: var(--surface) !important;
  box-shadow: 0 2px 8px rgba(11, 16, 38, 0.04) !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@media (hover: hover) {
  .jcc-atout:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(11, 16, 38, 0.08) !important;
  }
}

html[data-theme="sombre"] .jcc-atout,
body[data-theme="sombre"] .jcc-atout {
  background-color: var(--surface) !important;
  border-color: var(--bord) !important;
  color: var(--doux) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
}

.jcc-atout > :first-child,
html[data-theme="sombre"] .jcc-atout > :first-child,
body[data-theme="sombre"] .jcc-atout > :first-child {
  font-family: 'Sora', 'Plus Jakarta Sans', system-ui, sans-serif !important;
  color: var(--or) !important;
  font-weight: 800 !important;
}

html[data-theme="sombre"] .jcc-kanji,
body[data-theme="sombre"] .jcc-kanji {
  background-image: linear-gradient(135deg, #fde68a, #f59e0b) !important;
  color: #fbbf24 !important;
}

/* En-tête des cartes */
.carte-tete {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  color: #fff;
  background: linear-gradient(135deg, var(--bleu-nuit), #1a2450);
}

.carte-tete.or {
  background: linear-gradient(135deg, #d99a1e, #efb73e);
  color: #0b1026;
}

.carte-tete.vert {
  background: linear-gradient(135deg, #166b47, #1f8a5b);
}

/* =============================================================================
   8. Pastilles et Badges de statut (Lot 4)
   ============================================================================= */
.badge-statut,
.badge-pilule,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  line-height: 1;
}

.badge-statut::before,
.badge-pilule::before,
.badge::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
}

.badge-complet,
.b-ok {
  background-color: rgba(31, 138, 91, 0.12);
  color: #1f8a5b;
  border: 1px solid rgba(31, 138, 91, 0.25);
}

.badge-attente,
.b-att {
  background-color: rgba(217, 154, 30, 0.14);
  color: #b47d0d;
  border: 1px solid rgba(217, 154, 30, 0.28);
}

html[data-theme="sombre"] .badge-attente,
html[data-theme="sombre"] .b-att,
body[data-theme="sombre"] .badge-attente,
body[data-theme="sombre"] .b-att {
  color: #efb73e;
  border-color: rgba(239, 183, 62, 0.3);
}

.badge-incomplet,
.b-ko {
  background-color: rgba(194, 65, 59, 0.12);
  color: #c2413b;
  border: 1px solid rgba(194, 65, 59, 0.25);
}

.badge-neutre,
.b-info {
  background-color: rgba(37, 51, 108, 0.12);
  color: #34468f;
  border: 1px solid rgba(37, 51, 108, 0.22);
}

html[data-theme="sombre"] .badge-neutre,
html[data-theme="sombre"] .b-info,
body[data-theme="sombre"] .badge-neutre,
body[data-theme="sombre"] .b-info {
  color: #c8d1ec;
  border-color: rgba(200, 209, 236, 0.25);
}

.pastille-badge {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
}

/* =============================================================================
   9. Finitions Mobiles, Tableaux en Cartes, Modales & Contrastes (Dojo Nuit)
   ============================================================================= */

/* Panneau mobile opaque et contrasté */
#mobile-nav-panel {
  background-color: #0b1230 !important;
  border-color: rgba(37, 48, 97, 0.8) !important;
  opacity: 1 !important;
}
html[data-theme="sombre"] #mobile-nav-panel,
body[data-theme="sombre"] #mobile-nav-panel {
  background-color: #0b1230 !important;
  border-color: rgba(239, 183, 62, 0.35) !important;
}

/* Tableaux mobiles en cartes en mode sombre */
html[data-theme="sombre"] table.block,
body[data-theme="sombre"] table.block {
  background-color: transparent !important;
}
html[data-theme="sombre"] table.block tr,
body[data-theme="sombre"] table.block tr {
  background-color: var(--surface) !important;
  border-color: var(--bord) !important;
  color: var(--texte) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45) !important;
}
html[data-theme="sombre"] table.block td,
body[data-theme="sombre"] table.block td {
  border-bottom-color: var(--bord) !important;
  color: var(--texte) !important;
}
html[data-theme="sombre"] table.block td::before,
body[data-theme="sombre"] table.block td::before {
  color: var(--doux) !important;
}
html[data-theme="sombre"] div:has(> table.block),
body[data-theme="sombre"] div:has(> table.block) {
  background-color: transparent !important;
  border-color: var(--bord) !important;
}

/* Fenêtres modales, dialogues et formulaires en mode sombre */
html[data-theme="sombre"] [role="dialog"] > div,
body[data-theme="sombre"] [role="dialog"] > div {
  background-color: #10183b !important;
  color: var(--texte) !important;
  border-color: var(--bord) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--bord) !important;
}
html[data-theme="sombre"] [role="dialog"] [class*="bg-slate-50"],
html[data-theme="sombre"] [role="dialog"] [class*="bg-slate-100"],
body[data-theme="sombre"] [role="dialog"] [class*="bg-slate-50"],
body[data-theme="sombre"] [role="dialog"] [class*="bg-slate-100"] {
  background-color: #16224c !important;
  border-color: var(--bord) !important;
  color: var(--texte) !important;
}
html[data-theme="sombre"] input:not([type="checkbox"],[type="radio"]),
html[data-theme="sombre"] select,
html[data-theme="sombre"] textarea,
body[data-theme="sombre"] input:not([type="checkbox"],[type="radio"]),
body[data-theme="sombre"] select,
body[data-theme="sombre"] textarea {
  background-color: #131c3e !important;
  color: var(--texte) !important;
  border-color: var(--bord) !important;
}
html[data-theme="sombre"] select option,
body[data-theme="sombre"] select option {
  background-color: #10183b !important;
  color: var(--texte) !important;
}

/* =============================================================================
   10. Perfectionnement Visuel, Couleurs & Contrastes AAA Dojo Nuit (v1.23)
   - Tous les textes colorés sombres convertis en teintes lumineuses AAA
   - Tous les fonds pastel (-50, -50/xx) adaptés en surfaces sombres riches
   - Tous les badges (-100, -200, -200/xx) contrastés
   - Bannières à dégradés clairs, boutons et frise d'avancement du dossier
   ============================================================================= */

/* 10.1. Tous les textes colorés en mode sombre (contraste AAA garanti) */
html[data-theme="sombre"] :is(
  .text-slate-950,
  .text-slate-900,
  .text-slate-800,
  .text-gray-900,
  .text-gray-800,
  .text-blue-950,
  .text-blue-900,
  .text-indigo-950,
  .text-indigo-900
),
body[data-theme="sombre"] :is(
  .text-slate-950,
  .text-slate-900,
  .text-slate-800,
  .text-gray-900,
  .text-gray-800,
  .text-blue-950,
  .text-blue-900,
  .text-indigo-950,
  .text-indigo-900
) {
  color: var(--texte) !important;
}

html[data-theme="sombre"] :is(
  .text-slate-700,
  .text-slate-600,
  .text-slate-500,
  .text-slate-400,
  .text-gray-700,
  .text-gray-600,
  .text-gray-500
),
body[data-theme="sombre"] :is(
  .text-slate-700,
  .text-slate-600,
  .text-slate-500,
  .text-slate-400,
  .text-gray-700,
  .text-gray-600,
  .text-gray-500
) {
  color: var(--doux) !important;
}

html[data-theme="sombre"] :is(.text-blue-800, .text-blue-700, .text-blue-600),
body[data-theme="sombre"] :is(.text-blue-800, .text-blue-700, .text-blue-600) {
  color: #93c5fd !important;
}

html[data-theme="sombre"] :is(.text-indigo-800, .text-indigo-700, .text-indigo-600),
body[data-theme="sombre"] :is(.text-indigo-800, .text-indigo-700, .text-indigo-600) {
  color: #a5b4fc !important;
}

html[data-theme="sombre"] :is(
  .text-amber-950,
  .text-amber-900,
  .text-amber-800,
  .text-amber-700,
  .text-orange-950,
  .text-orange-900,
  .text-orange-800,
  .text-orange-700,
  .text-yellow-900,
  .text-yellow-800
),
body[data-theme="sombre"] :is(
  .text-amber-950,
  .text-amber-900,
  .text-amber-800,
  .text-amber-700,
  .text-orange-950,
  .text-orange-900,
  .text-orange-800,
  .text-orange-700,
  .text-yellow-900,
  .text-yellow-800
) {
  color: #fcd34d !important;
}

/* Exception : sur un fond ambre plein (.bg-amber-400, .bg-amber-500, .from-amber-400), le texte reste sombre #0b1026 */
html[data-theme="sombre"] :is(.bg-amber-400, .bg-amber-500, .from-amber-400, [class*="from-amber-400"]):is(.text-amber-950, .text-amber-900, .text-slate-900),
html[data-theme="sombre"] :is(.bg-amber-400, .bg-amber-500, .from-amber-400, [class*="from-amber-400"]) :is(.text-amber-950, .text-amber-900, .text-slate-900),
body[data-theme="sombre"] :is(.bg-amber-400, .bg-amber-500, .from-amber-400, [class*="from-amber-400"]):is(.text-amber-950, .text-amber-900, .text-slate-900),
body[data-theme="sombre"] :is(.bg-amber-400, .bg-amber-500, .from-amber-400, [class*="from-amber-400"]) :is(.text-amber-950, .text-amber-900, .text-slate-900) {
  color: #0b1026 !important;
}

html[data-theme="sombre"] :is(
  .text-emerald-950,
  .text-emerald-900,
  .text-emerald-800,
  .text-emerald-700,
  .text-emerald-600,
  .text-green-950,
  .text-green-900,
  .text-green-800,
  .text-green-700,
  .text-teal-900,
  .text-teal-800,
  .text-teal-700
),
body[data-theme="sombre"] :is(
  .text-emerald-950,
  .text-emerald-900,
  .text-emerald-800,
  .text-emerald-700,
  .text-emerald-600,
  .text-green-950,
  .text-green-900,
  .text-green-800,
  .text-green-700,
  .text-teal-900,
  .text-teal-800,
  .text-teal-700
) {
  color: #6ee7b7 !important;
}

html[data-theme="sombre"] :is(
  .text-rose-950,
  .text-rose-900,
  .text-rose-800,
  .text-rose-700,
  .text-rose-600,
  .text-red-950,
  .text-red-900,
  .text-red-800,
  .text-red-700,
  .text-red-600
),
body[data-theme="sombre"] :is(
  .text-rose-950,
  .text-rose-900,
  .text-rose-800,
  .text-rose-700,
  .text-rose-600,
  .text-red-950,
  .text-red-900,
  .text-red-800,
  .text-red-700,
  .text-red-600
) {
  color: #fda4af !important;
}

html[data-theme="sombre"] :is(
  .text-purple-950,
  .text-purple-900,
  .text-purple-800,
  .text-purple-700,
  .text-purple-600,
  .text-violet-900,
  .text-violet-800,
  .text-violet-700
),
body[data-theme="sombre"] :is(
  .text-purple-950,
  .text-purple-900,
  .text-purple-800,
  .text-purple-700,
  .text-purple-600,
  .text-violet-900,
  .text-violet-800,
  .text-violet-700
) {
  color: #d8b4fe !important;
}

/* 10.2. Tous les fonds pastel -50 et -50/xx (bannières, cartes KPI, encarts) */
html[data-theme="sombre"] :is(.bg-blue-50, [class~="bg-blue-50"], [class*="bg-blue-50/"], [class~="bg-sky-50"], [class*="bg-sky-50/"]),
body[data-theme="sombre"] :is(.bg-blue-50, [class~="bg-blue-50"], [class*="bg-blue-50/"], [class~="bg-sky-50"], [class*="bg-sky-50/"]) {
  background-color: #13224e !important;
  border-color: rgba(96, 165, 250, 0.38) !important;
  color: var(--texte) !important;
}

html[data-theme="sombre"] :is(.bg-indigo-50, [class~="bg-indigo-50"], [class*="bg-indigo-50/"]),
body[data-theme="sombre"] :is(.bg-indigo-50, [class~="bg-indigo-50"], [class*="bg-indigo-50/"]) {
  background-color: #191e52 !important;
  border-color: rgba(129, 140, 248, 0.38) !important;
  color: var(--texte) !important;
}

html[data-theme="sombre"] :is(.bg-emerald-50, [class~="bg-emerald-50"], [class*="bg-emerald-50/"], .bg-green-50, [class~="bg-green-50"], [class*="bg-green-50/"], [class~="bg-teal-50"], [class*="bg-teal-50/"]),
body[data-theme="sombre"] :is(.bg-emerald-50, [class~="bg-emerald-50"], [class*="bg-emerald-50/"], .bg-green-50, [class~="bg-green-50"], [class*="bg-green-50/"], [class~="bg-teal-50"], [class*="bg-teal-50/"]) {
  background-color: #0d2b26 !important;
  border-color: rgba(52, 211, 153, 0.4) !important;
  color: #ecfdf5 !important;
}

html[data-theme="sombre"] :is(.bg-amber-50, [class~="bg-amber-50"], [class*="bg-amber-50/"], .bg-orange-50, [class~="bg-orange-50"], [class*="bg-orange-50/"], [class~="bg-yellow-50"], [class*="bg-yellow-50/"]),
body[data-theme="sombre"] :is(.bg-amber-50, [class~="bg-amber-50"], [class*="bg-amber-50/"], .bg-orange-50, [class~="bg-orange-50"], [class*="bg-orange-50/"], [class~="bg-yellow-50"], [class*="bg-yellow-50/"]) {
  background-color: #2b1f10 !important;
  border-color: rgba(251, 191, 36, 0.42) !important;
  color: #fffbeb !important;
}

html[data-theme="sombre"] :is(.bg-rose-50, [class~="bg-rose-50"], [class*="bg-rose-50/"], [class~="bg-red-50"], [class*="bg-red-50/"]),
body[data-theme="sombre"] :is(.bg-rose-50, [class~="bg-rose-50"], [class*="bg-rose-50/"], [class~="bg-red-50"], [class*="bg-red-50/"]) {
  background-color: #2e1324 !important;
  border-color: rgba(251, 113, 133, 0.42) !important;
  color: #fff1f2 !important;
}

html[data-theme="sombre"] :is(.bg-purple-50, [class~="bg-purple-50"], [class*="bg-purple-50/"], [class~="bg-violet-50"], [class*="bg-violet-50/"]),
body[data-theme="sombre"] :is(.bg-purple-50, [class~="bg-purple-50"], [class*="bg-purple-50/"], [class~="bg-violet-50"], [class*="bg-violet-50/"]) {
  background-color: #251545 !important;
  border-color: rgba(192, 132, 252, 0.4) !important;
  color: #faf5ff !important;
}

/* 10.2b. Tous les badges -100, -200 et -200/xx en mode sombre */
html[data-theme="sombre"] :is(.bg-emerald-100, .bg-emerald-200, [class*="bg-emerald-100/"], [class*="bg-emerald-200/"], .bg-green-100, .bg-green-200),
body[data-theme="sombre"] :is(.bg-emerald-100, .bg-emerald-200, [class*="bg-emerald-100/"], [class*="bg-emerald-200/"], .bg-green-100, .bg-green-200) {
  background-color: #0f382f !important;
  color: #6ee7b7 !important;
  border: 1px solid rgba(52, 211, 153, 0.45) !important;
}

html[data-theme="sombre"] :is(.bg-amber-100, .bg-amber-200, [class*="bg-amber-100/"], [class*="bg-amber-200/"], .bg-orange-100, .bg-orange-200, .bg-yellow-100),
body[data-theme="sombre"] :is(.bg-amber-100, .bg-amber-200, [class*="bg-amber-100/"], [class*="bg-amber-200/"], .bg-orange-100, .bg-orange-200, .bg-yellow-100) {
  background-color: #38260f !important;
  color: #fde68a !important;
  border: 1px solid rgba(251, 191, 36, 0.45) !important;
}

html[data-theme="sombre"] :is(.bg-blue-100, .bg-blue-200, [class*="bg-blue-100/"], [class*="bg-blue-200/"]),
body[data-theme="sombre"] :is(.bg-blue-100, .bg-blue-200, [class*="bg-blue-100/"], [class*="bg-blue-200/"]) {
  background-color: #172b63 !important;
  color: #bfdbfe !important;
  border: 1px solid rgba(96, 165, 250, 0.45) !important;
}

html[data-theme="sombre"] :is(.bg-indigo-100, .bg-indigo-200, [class*="bg-indigo-100/"], [class*="bg-indigo-200/"]),
body[data-theme="sombre"] :is(.bg-indigo-100, .bg-indigo-200, [class*="bg-indigo-100/"], [class*="bg-indigo-200/"]) {
  background-color: #212463 !important;
  color: #c7d2fe !important;
  border: 1px solid rgba(129, 140, 248, 0.45) !important;
}

html[data-theme="sombre"] :is(.bg-rose-100, .bg-rose-200, [class*="bg-rose-100/"], [class*="bg-rose-200/"], .bg-red-100, .bg-red-200),
body[data-theme="sombre"] :is(.bg-rose-100, .bg-rose-200, [class*="bg-rose-100/"], [class*="bg-rose-200/"], .bg-red-100, .bg-red-200) {
  background-color: #3d152b !important;
  color: #fecdd3 !important;
  border: 1px solid rgba(251, 113, 133, 0.45) !important;
}

html[data-theme="sombre"] :is(.bg-purple-100, .bg-purple-200, [class*="bg-purple-100/"], [class*="bg-purple-200/"]),
body[data-theme="sombre"] :is(.bg-purple-100, .bg-purple-200, [class*="bg-purple-100/"], [class*="bg-purple-200/"]) {
  background-color: #311959 !important;
  color: #e9d5ff !important;
  border: 1px solid rgba(192, 132, 252, 0.45) !important;
}

/* 10.3. Bannières à dégradés clairs (Règlements groupés, annonces famille, etc.) */
html[data-theme="sombre"] [class*="from-emerald-50"],
html[data-theme="sombre"] [class*="from-green-50"],
body[data-theme="sombre"] [class*="from-emerald-50"],
body[data-theme="sombre"] [class*="from-green-50"] {
  background-image: linear-gradient(135deg, rgba(6, 78, 59, 0.45), rgba(4, 120, 87, 0.25)) !important;
  border-color: rgba(52, 211, 153, 0.35) !important;
}

html[data-theme="sombre"] [class*="from-amber-50"],
html[data-theme="sombre"] [class*="from-orange-50"],
body[data-theme="sombre"] [class*="from-amber-50"],
body[data-theme="sombre"] [class*="from-orange-50"] {
  background-image: linear-gradient(135deg, rgba(120, 53, 15, 0.45), rgba(180, 83, 9, 0.25)) !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
}

/* 10.4. Boutons bleus et boutons secondaires en mode sombre */
html[data-theme="sombre"] button[class~="bg-blue-950"],
html[data-theme="sombre"] a[class~="bg-blue-950"],
body[data-theme="sombre"] button[class~="bg-blue-950"],
body[data-theme="sombre"] a[class~="bg-blue-950"] {
  background-color: #1d4ed8 !important;
  color: #ffffff !important;
  border: 1px solid #3b82f6 !important;
}
html[data-theme="sombre"] button[class~="bg-blue-950"]:hover,
html[data-theme="sombre"] a[class~="bg-blue-950"]:hover,
body[data-theme="sombre"] button[class~="bg-blue-950"]:hover,
body[data-theme="sombre"] a[class~="bg-blue-950"]:hover {
  background-color: #2563eb !important;
}

html[data-theme="sombre"] button[class~="bg-slate-100"],
html[data-theme="sombre"] a[class~="bg-slate-100"],
body[data-theme="sombre"] button[class~="bg-slate-100"],
body[data-theme="sombre"] a[class~="bg-slate-100"] {
  background-color: var(--surface-2) !important;
  color: var(--texte) !important;
  border-color: var(--bord) !important;
}

/* 10.5. Frise d'avancement du dossier (.frise-dossier-complet) */
html[data-theme="sombre"] .frise-dossier-complet,
body[data-theme="sombre"] .frise-dossier-complet {
  background-color: var(--surface-2) !important;
  border-color: var(--bord) !important;
}
html[data-theme="sombre"] .frise-dossier-complet .text-slate-900,
html[data-theme="sombre"] .frise-dossier-complet .text-slate-800,
body[data-theme="sombre"] .frise-dossier-complet .text-slate-900,
body[data-theme="sombre"] .frise-dossier-complet .text-slate-800 {
  color: var(--texte) !important;
}
html[data-theme="sombre"] .frise-dossier-complet .text-slate-700,
html[data-theme="sombre"] .frise-dossier-complet .text-slate-600,
body[data-theme="sombre"] .frise-dossier-complet .text-slate-700,
body[data-theme="sombre"] .frise-dossier-complet .text-slate-600 {
  color: var(--doux) !important;
}
html[data-theme="sombre"] .frise-dossier-complet .bg-slate-100,
body[data-theme="sombre"] .frise-dossier-complet .bg-slate-100 {
  background-color: #1a234a !important;
  border-color: var(--bord) !important;
}

/* 10.6. Déclinaisons complètes sous @media (prefers-color-scheme: dark) pour mode auto */
@media (prefers-color-scheme: dark) {
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) body[data-ui="2026"],
  :is(body[data-theme="auto"], body:not([data-theme="clair"]))[data-ui="2026"] {
    background-color: var(--bg);
    color: var(--texte);
  }

  /* Surfaces blanches et translucides */
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) :is(.bg-white, [class~="bg-white"], [class*="bg-white/"]) {
    background-color: var(--surface) !important;
    color: var(--texte) !important;
    border-color: var(--bord) !important;
  }

  /* Boutons, sous-onglets inactifs et surfaces secondaires */
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) :is(button[class*="bg-white/"], a[class*="bg-white/"]),
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) :is(
    .bg-slate-50,
    [class~="bg-slate-50"],
    [class*="bg-slate-50/"],
    .bg-slate-100,
    [class~="bg-slate-100"],
    [class*="bg-slate-100/"],
    .bg-slate-200,
    [class~="bg-slate-200"],
    [class*="bg-slate-200/"],
    .bg-slate-300,
    [class~="bg-slate-300"],
    [class~="bg-gray-50"],
    [class~="bg-gray-100"],
    [class~="bg-gray-200"]
  ) {
    background-color: var(--surface-2) !important;
    color: var(--texte) !important;
    border-color: var(--bord) !important;
  }

  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) :is(.bg-slate-900, .bg-blue-950) {
    background-color: #0b1026 !important;
  }

  /* Barre haute sticky desktop */
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) header[class~="sticky"][class~="h-16"] {
    background-color: rgba(10, 15, 36, 0.9) !important;
    border-bottom-color: var(--bord) !important;
    color: var(--texte) !important;
  }

  /* Survols (:hover) */
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) :is(
    button[class*="hover:bg-white"]:hover,
    button[class*="hover:bg-slate-"]:hover,
    a[class*="hover:bg-white"]:hover,
    a[class*="hover:bg-slate-"]:hover
  ) {
    background-color: #233166 !important;
    color: #ffffff !important;
    border-color: #3b82f6 !important;
  }

  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) :is(table tbody tr:hover, tr[class*="hover:bg-"]:hover) {
    background-color: #1a2654 !important;
    color: var(--texte) !important;
  }

  /* Bordures génériques */
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) :where(.border, .border-b, .border-t, .border-l, .border-r, hr, .divide-y > :not([hidden]) ~ :not([hidden]), .divide-x > :not([hidden]) ~ :not([hidden])) {
    border-color: var(--bord);
  }

  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) :is(.border-slate-100, .border-slate-200, .border-slate-300, [class*="border-slate-"], [class*="divide-slate-"]),
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) :is(.border-t:not([class*="border-amber"],[class*="border-emerald"],[class*="border-rose"],[class*="border-blue"]), .border-b:not([class*="border-amber"],[class*="border-emerald"],[class*="border-rose"],[class*="border-blue"])) {
    border-color: var(--bord) !important;
  }

  /* Cartes, atouts et kanji */
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) :is(.jcc-carte, .carte-box) {
    background-color: var(--surface) !important;
    border-color: var(--bord) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  }

  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) .jcc-atout {
    background-color: var(--surface) !important;
    border-color: var(--bord) !important;
    color: var(--doux) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
  }

  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) .jcc-atout > :first-child {
    color: var(--or) !important;
  }

  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) .jcc-kanji {
    background-image: linear-gradient(135deg, #fde68a, #f59e0b) !important;
    color: #fbbf24 !important;
  }

  /* Tableaux mobiles et modales */
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) table.block {
    background-color: transparent !important;
  }
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) table.block tr {
    background-color: var(--surface) !important;
    border-color: var(--bord) !important;
    color: var(--texte) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45) !important;
  }
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) table.block td {
    border-bottom-color: var(--bord) !important;
    color: var(--texte) !important;
  }
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) table.block td::before {
    color: var(--doux) !important;
  }
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) [role="dialog"] > div {
    background-color: #10183b !important;
    color: var(--texte) !important;
    border-color: var(--bord) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--bord) !important;
  }
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) [role="dialog"] :is([class*="bg-slate-50"], [class*="bg-slate-100"]) {
    background-color: #16224c !important;
    border-color: var(--bord) !important;
    color: var(--texte) !important;
  }
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) :is(input:not([type="checkbox"],[type="radio"]), select, textarea) {
    background-color: #131c3e !important;
    color: var(--texte) !important;
    border-color: var(--bord) !important;
  }

  /* Textes colorés AAA */
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) :is(
    .text-slate-950,
    .text-slate-900,
    .text-slate-800,
    .text-gray-900,
    .text-gray-800,
    .text-blue-950,
    .text-blue-900,
    .text-indigo-950,
    .text-indigo-900
  ) {
    color: var(--texte) !important;
  }

  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) :is(
    .text-slate-700,
    .text-slate-600,
    .text-slate-500,
    .text-slate-400,
    .text-gray-700,
    .text-gray-600,
    .text-gray-500
  ) {
    color: var(--doux) !important;
  }

  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) :is(.text-blue-800, .text-blue-700, .text-blue-600) {
    color: #93c5fd !important;
  }

  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) :is(.text-indigo-800, .text-indigo-700, .text-indigo-600) {
    color: #a5b4fc !important;
  }

  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) :is(
    .text-amber-950,
    .text-amber-900,
    .text-amber-800,
    .text-amber-700,
    .text-orange-950,
    .text-orange-900,
    .text-orange-800,
    .text-orange-700,
    .text-yellow-900,
    .text-yellow-800
  ) {
    color: #fcd34d !important;
  }

  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) :is(.bg-amber-400, .bg-amber-500, .from-amber-400, [class*="from-amber-400"]):is(.text-amber-950, .text-amber-900, .text-slate-900),
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) :is(.bg-amber-400, .bg-amber-500, .from-amber-400, [class*="from-amber-400"]) :is(.text-amber-950, .text-amber-900, .text-slate-900) {
    color: #0b1026 !important;
  }

  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) :is(
    .text-emerald-950,
    .text-emerald-900,
    .text-emerald-800,
    .text-emerald-700,
    .text-emerald-600,
    .text-green-950,
    .text-green-900,
    .text-green-800,
    .text-green-700,
    .text-teal-900,
    .text-teal-800,
    .text-teal-700
  ) {
    color: #6ee7b7 !important;
  }

  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) :is(
    .text-rose-950,
    .text-rose-900,
    .text-rose-800,
    .text-rose-700,
    .text-rose-600,
    .text-red-950,
    .text-red-900,
    .text-red-800,
    .text-red-700,
    .text-red-600
  ) {
    color: #fda4af !important;
  }

  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) :is(
    .text-purple-950,
    .text-purple-900,
    .text-purple-800,
    .text-purple-700,
    .text-purple-600,
    .text-violet-900,
    .text-violet-800,
    .text-violet-700
  ) {
    color: #d8b4fe !important;
  }

  /* Fonds pastel -50 et -50/xx */
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) :is(.bg-blue-50, [class~="bg-blue-50"], [class*="bg-blue-50/"], [class~="bg-sky-50"], [class*="bg-sky-50/"]) {
    background-color: #13224e !important;
    border-color: rgba(96, 165, 250, 0.38) !important;
    color: var(--texte) !important;
  }

  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) :is(.bg-indigo-50, [class~="bg-indigo-50"], [class*="bg-indigo-50/"]) {
    background-color: #191e52 !important;
    border-color: rgba(129, 140, 248, 0.38) !important;
    color: var(--texte) !important;
  }

  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) :is(.bg-emerald-50, [class~="bg-emerald-50"], [class*="bg-emerald-50/"], .bg-green-50, [class~="bg-green-50"], [class*="bg-green-50/"], [class~="bg-teal-50"], [class*="bg-teal-50/"]) {
    background-color: #0d2b26 !important;
    border-color: rgba(52, 211, 153, 0.4) !important;
    color: #ecfdf5 !important;
  }

  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) :is(.bg-amber-50, [class~="bg-amber-50"], [class*="bg-amber-50/"], .bg-orange-50, [class~="bg-orange-50"], [class*="bg-orange-50/"], [class~="bg-yellow-50"], [class*="bg-yellow-50/"]) {
    background-color: #2b1f10 !important;
    border-color: rgba(251, 191, 36, 0.42) !important;
    color: #fffbeb !important;
  }

  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) :is(.bg-rose-50, [class~="bg-rose-50"], [class*="bg-rose-50/"], [class~="bg-red-50"], [class*="bg-red-50/"]) {
    background-color: #2e1324 !important;
    border-color: rgba(251, 113, 133, 0.42) !important;
    color: #fff1f2 !important;
  }

  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) :is(.bg-purple-50, [class~="bg-purple-50"], [class*="bg-purple-50/"], [class~="bg-violet-50"], [class*="bg-violet-50/"]) {
    background-color: #251545 !important;
    border-color: rgba(192, 132, 252, 0.4) !important;
    color: #faf5ff !important;
  }

  /* Badges et pastilles colorés -100, -200 et -200/xx */
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) :is(.bg-emerald-100, .bg-emerald-200, [class*="bg-emerald-100/"], [class*="bg-emerald-200/"], .bg-green-100, .bg-green-200) {
    background-color: #0f382f !important;
    color: #6ee7b7 !important;
    border: 1px solid rgba(52, 211, 153, 0.45) !important;
  }

  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) :is(.bg-amber-100, .bg-amber-200, [class*="bg-amber-100/"], [class*="bg-amber-200/"], .bg-orange-100, .bg-orange-200, .bg-yellow-100) {
    background-color: #38260f !important;
    color: #fde68a !important;
    border: 1px solid rgba(251, 191, 36, 0.45) !important;
  }

  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) :is(.bg-blue-100, .bg-blue-200, [class*="bg-blue-100/"], [class*="bg-blue-200/"]) {
    background-color: #172b63 !important;
    color: #bfdbfe !important;
    border: 1px solid rgba(96, 165, 250, 0.45) !important;
  }

  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) :is(.bg-indigo-100, .bg-indigo-200, [class*="bg-indigo-100/"], [class*="bg-indigo-200/"]) {
    background-color: #212463 !important;
    color: #c7d2fe !important;
    border: 1px solid rgba(129, 140, 248, 0.45) !important;
  }

  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) :is(.bg-rose-100, .bg-rose-200, [class*="bg-rose-100/"], [class*="bg-rose-200/"], .bg-red-100, .bg-red-200) {
    background-color: #3d152b !important;
    color: #fecdd3 !important;
    border: 1px solid rgba(251, 113, 133, 0.45) !important;
  }

  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) :is(.bg-purple-100, .bg-purple-200, [class*="bg-purple-100/"], [class*="bg-purple-200/"]) {
    background-color: #311959 !important;
    color: #e9d5ff !important;
    border: 1px solid rgba(192, 132, 252, 0.45) !important;
  }

  /* Bannières à dégradés clairs */
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) :is([class*="from-emerald-50"], [class*="from-green-50"]) {
    background-image: linear-gradient(135deg, rgba(6, 78, 59, 0.45), rgba(4, 120, 87, 0.25)) !important;
    border-color: rgba(52, 211, 153, 0.35) !important;
  }

  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) :is([class*="from-amber-50"], [class*="from-orange-50"]) {
    background-image: linear-gradient(135deg, rgba(120, 53, 15, 0.45), rgba(180, 83, 9, 0.25)) !important;
    border-color: rgba(245, 158, 11, 0.35) !important;
  }

  /* Boutons bleus et boutons secondaires */
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) :is(button[class~="bg-blue-950"], a[class~="bg-blue-950"]) {
    background-color: #1d4ed8 !important;
    color: #ffffff !important;
    border: 1px solid #3b82f6 !important;
  }
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) :is(button[class~="bg-blue-950"]:hover, a[class~="bg-blue-950"]:hover) {
    background-color: #2563eb !important;
  }

  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) :is(button[class~="bg-slate-100"], a[class~="bg-slate-100"]) {
    background-color: var(--surface-2) !important;
    color: var(--texte) !important;
    border-color: var(--bord) !important;
  }

  /* Frise dossier complet */
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) .frise-dossier-complet {
    background-color: var(--surface-2) !important;
    border-color: var(--bord) !important;
  }
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) .frise-dossier-complet :is(.text-slate-900, .text-slate-800) {
    color: var(--texte) !important;
  }
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) .frise-dossier-complet :is(.text-slate-700, .text-slate-600) {
    color: var(--doux) !important;
  }
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) .frise-dossier-complet .bg-slate-100 {
    background-color: #1a234a !important;
    border-color: var(--bord) !important;
  }
}

/* =============================================================================
   11. Protection stricte et absolue de la zone papier et de l'impression (v1.23)
   - Factures, attestations CE, bilans AG, diplômes, feuilles d'appel A4
   - Garanti 100 % sur fond blanc pur avec texte noir profond, même en mode sombre
   ============================================================================= */
#facture-apercu, #facture-apercu *,
.facture-corps, .facture-corps *,
#apercu-attestation-corps, #apercu-attestation-corps *,
#bilan-ag-corps, #bilan-ag-corps *,
#resultats-ag-corps, #resultats-ag-corps *,
.html2pdf__container, .html2pdf__container *:not(.diplome-grade, .diplome-grade *),
#diplome-print-sheet, #diplome-print-sheet *,
#feuille-appel-a4-conteneur, #feuille-appel-a4-conteneur *,
#signature-pad, #canvas-signature {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
}

/* =============================================================================
   12. Refonte UX/UI « Mon Espace » (v1.24) — Architecture compartimentée 8 px
   - Fiche judoka (.fam-fiche-judoka), compartiments (.fam-compartiment-admin)
   - Badges pratique sportive (.fam-pill-sport) et onglets ([data-judoka-tab])
   - Mode Clair & Mode Sombre Dojo Nuit (accents or/bleu nuit Spreadshop)
   ============================================================================= */
.fam-fiche-judoka {
  background-color: var(--surface);
  border: 1px solid var(--bord) !important;
  border-top: 3px solid #1d4ed8 !important;
  border-left: 1px solid var(--bord) !important;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(11, 16, 38, 0.04), 0 8px 20px rgba(11, 16, 38, 0.03);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

@media (hover: hover) {
  .fam-fiche-judoka:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px -4px rgba(11, 16, 38, 0.08), 0 4px 10px -2px rgba(11, 16, 38, 0.04);
  }
}

.fam-compartiment-admin {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(203, 213, 225, 0.7) !important;
  background: rgba(248, 250, 252, 0.55) !important;
  border-radius: 0.75rem;
  padding: 0.75rem 0.875rem;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

@media (hover: hover) {
  .fam-compartiment-admin:hover {
    border-color: rgba(148, 163, 184, 0.9) !important;
  }
}

.fam-pill-sport {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 0.5rem;
  background: #f1f5f9 !important;
  color: #334155 !important;
  border: 1px solid #e2e8f0 !important;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

[data-judoka-tab] {
  min-height: 2.5rem;
  padding: 0.5rem 0.875rem;
  border-radius: 0.75rem;
  background: #ffffff !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: none !important;
  font-weight: 700;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

[data-judoka-tab]:active {
  transform: scale(0.98);
}

[data-judoka-tab][aria-selected="true"] {
  background: #172554 !important;
  color: #ffffff !important;
  border: 1px solid #1d4ed8 !important;
  box-shadow: none !important;
}

html[data-theme="sombre"] .fam-fiche-judoka,
body[data-theme="sombre"] .fam-fiche-judoka {
  background-color: var(--surface) !important;
  border: 1px solid var(--bord) !important;
  border-top: 3px solid #1d4ed8 !important;
  border-left: 1px solid var(--bord) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

html[data-theme="sombre"] .fam-compartiment-admin,
body[data-theme="sombre"] .fam-compartiment-admin {
  border: 1px solid rgba(51, 68, 124, 0.5) !important;
  background: rgba(15, 23, 42, 0.35) !important;
}

html[data-theme="sombre"] .fam-compartiment-admin:hover,
body[data-theme="sombre"] .fam-compartiment-admin:hover {
  border-color: rgba(96, 165, 250, 0.45) !important;
}

html[data-theme="sombre"] .fam-pill-sport,
body[data-theme="sombre"] .fam-pill-sport {
  background: rgba(30, 41, 59, 0.7) !important;
  color: #cbd5e1 !important;
  border: 1px solid #334155 !important;
}

html[data-theme="sombre"] [data-judoka-tab][aria-selected="false"],
body[data-theme="sombre"] [data-judoka-tab][aria-selected="false"] {
  background: #121a3a !important;
  color: #cbd5e1 !important;
  border: 1px solid #2e3f70 !important;
  box-shadow: none !important;
}

html[data-theme="sombre"] [data-judoka-tab][aria-selected="true"],
body[data-theme="sombre"] [data-judoka-tab][aria-selected="true"] {
  background: #1e3168 !important;
  color: #ffffff !important;
  border: 1px solid #60a5fa !important;
  box-shadow: none !important;
}

@media (prefers-color-scheme: dark) {
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) .fam-fiche-judoka {
    background-color: var(--surface) !important;
    border: 1px solid var(--bord) !important;
    border-top: 3px solid #1d4ed8 !important;
    border-left: 1px solid var(--bord) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  }

  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) .fam-compartiment-admin {
    border: 1px solid rgba(51, 68, 124, 0.5) !important;
    background: rgba(15, 23, 42, 0.35) !important;
  }

  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) .fam-compartiment-admin:hover {
    border-color: rgba(96, 165, 250, 0.45) !important;
  }

  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) .fam-pill-sport {
    background: rgba(30, 41, 59, 0.7) !important;
    color: #cbd5e1 !important;
    border: 1px solid #334155 !important;
  }

  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) [data-judoka-tab][aria-selected="false"] {
    background: #121a3a !important;
    color: #cbd5e1 !important;
    border: 1px solid #2e3f70 !important;
    box-shadow: none !important;
  }

  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) [data-judoka-tab][aria-selected="true"] {
    background: #1e3168 !important;
    color: #ffffff !important;
    border: 1px solid #60a5fa !important;
    box-shadow: none !important;
  }
}

/* =============================================================================
   13. Refonte modulaire v1.24 — Secrétariat, Trésorerie, Tatami & Tableaux Mobiles
   - Avatar d'initiales (.fam-avatar-initiales)
   - Barre d'outils compartimentée (.sec-barre-outils, .sec-actions-cell)
   - Grille et cartes d'appel Tatami (.tat-grille-pointage, .tat-carte-appel)
   - Cartes de tableaux responsives avec étiquettes (table.block td[data-label])
   ============================================================================= */
.fam-avatar-initiales {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  min-width: 1.85rem;
  border-radius: 0.5rem;
  background-color: var(--bleu-nuit);
  color: var(--or);
  border: 1px solid rgba(217, 154, 30, 0.4);
  font-family: 'Sora', 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 1px 3px rgba(17, 25, 54, 0.15);
}

.sec-barre-outils {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.375rem;
}

.sec-menu-actions > summary {
  list-style: none;
}

.sec-menu-actions > summary::-webkit-details-marker {
  display: none;
}

.sec-menu-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 40;
  min-width: 210px;
  padding: 0.5rem;
  border-radius: 0.85rem;
  background-color: var(--surface);
  border: 1px solid var(--bord);
  box-shadow: 0 10px 28px -4px rgba(11, 16, 38, 0.16), 0 4px 10px -2px rgba(11, 16, 38, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sec-menu-popover button,
.sec-menu-popover a {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  padding: 0.45rem 0.65rem;
  border-radius: 0.5rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
}

html[data-theme="sombre"] .sec-menu-popover,
body[data-theme="sombre"] .sec-menu-popover {
  background-color: #10183b !important;
  border-color: var(--bord) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(239, 183, 62, 0.25) !important;
}

@media (prefers-color-scheme: dark) {
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) .sec-menu-popover {
    background-color: #10183b !important;
    border-color: var(--bord) !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(239, 183, 62, 0.25) !important;
  }
}

.tat-grille-pointage {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

@media (max-width: 639px) {
  .tat-grille-pointage {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
    width: 100%;
  }
}

.tat-carte-appel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.875rem;
  border-radius: 0.875rem;
  background-color: var(--surface);
  border: 1px solid var(--bord);
  box-shadow: 0 1px 3px rgba(11, 16, 38, 0.04);
  transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

@media (hover: hover) {
  .tat-carte-appel:hover {
    transform: translateY(-1px);
    border-color: rgba(217, 154, 30, 0.45);
    box-shadow: 0 4px 12px rgba(11, 16, 38, 0.07);
  }
}

html[data-theme="sombre"] .fam-avatar-initiales,
body[data-theme="sombre"] .fam-avatar-initiales {
  background-color: #16224c !important;
  color: var(--or) !important;
  border-color: rgba(239, 183, 62, 0.45) !important;
}

html[data-theme="sombre"] .tat-carte-appel,
body[data-theme="sombre"] .tat-carte-appel {
  background-color: var(--surface) !important;
  border-color: var(--bord) !important;
  color: var(--texte) !important;
}

@media (prefers-color-scheme: dark) {
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) .fam-avatar-initiales {
    background-color: #16224c !important;
    color: var(--or) !important;
    border-color: rgba(239, 183, 62, 0.45) !important;
  }

  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) .tat-carte-appel {
    background-color: var(--surface) !important;
    border-color: var(--bord) !important;
    color: var(--texte) !important;
  }
}

@media (max-width: 767px) {
  table.block tbody,
  table.block tr,
  table.block td {
    display: block;
    width: 100%;
  }

  table.block tr {
    margin-bottom: 0.75rem;
    border-radius: 0.875rem;
    border: 1px solid var(--bord);
    background-color: var(--surface);
    padding: 0.5rem 0.75rem;
    box-shadow: 0 2px 6px rgba(11, 16, 38, 0.04);
  }

  table.block td[data-label] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 0.5rem 0.25rem;
    text-align: left !important;
    border-bottom: 1px dashed var(--bord);
  }

  table.block td[data-label]:last-child {
    border-bottom: none;
  }

  table.block td[data-label]::before {
    content: attr(data-label);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--doux);
    line-height: 1.2;
  }

  table.block td.sec-actions-cell .sec-barre-outils {
    width: 100%;
    margin-left: 0 !important;
    max-width: 100% !important;
  }

  /* Secrétariat sur mobile : carte compartimentée en grille 2 colonnes (comme Mon Espace) */
  #tab-secretariat table.block tbody tr {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 0.875rem !important;
  }

  #tab-secretariat table.block tbody tr > td[data-label="Sélection"],
  #tab-secretariat table.block tbody tr > td[data-label="Judoka & Suivi"],
  #tab-secretariat table.block tbody tr > td[data-label="Actions"] {
    grid-column: 1 / -1;
  }

  #tab-secretariat table.block tbody tr > td:not([data-label="Sélection"]):not([data-label="Judoka & Suivi"]):not([data-label="Actions"]) {
    background: var(--bg);
    border: 1px solid var(--bord);
    border-radius: 0.65rem;
    padding: 0.5rem 0.65rem;
    min-width: 0;
  }

  #tab-secretariat table.block tbody tr > td[data-label="Sélection"] {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.15rem 0.25rem;
    border-bottom: none;
  }
}

/* =============================================================================
   13. Architecture visuelle v1.25 (Topbar + Subnav horizontale, En-têtes Dojo,
       Secrétariat Maître-Détail & Coquille Paramètres Administration)
   ============================================================================= */

/* 13.1. Coquille supérieure Desktop (Topbar Bleu France Judo + Subnav horizontale des 9 espaces) */
@media (min-width: 768px) {
  body[data-ui="2026"] {
    flex-direction: column !important;
  }

  body[data-ui="2026"] #desktop-sidebar,
  body[data-ui="2026"] #desktop-sidebar.replie {
    width: 100% !important;
    height: auto !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 45 !important;
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    grid-template-rows: 58px auto !important;
    background: linear-gradient(90deg, #172554 0%, #1e3a8a 52%, #172554 100%) !important;
    border-right: none !important;
    border-bottom: 1px solid #dbeafe !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06) !important;
    overflow: visible !important;
  }

  body[data-ui="2026"] #desktop-sidebar .marque-entete {
    grid-column: 1;
    grid-row: 1;
    padding: 0 24px !important;
    border-bottom: none !important;
    height: 58px;
  }

  body[data-ui="2026"] #desktop-sidebar > div:last-child {
    grid-column: 2;
    grid-row: 1;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 0 24px !important;
    border-top: none !important;
    background: transparent !important;
    height: 58px;
  }

  body[data-ui="2026"] #desktop-sidebar #btn-sidebar-collapse {
    display: none !important;
  }

  body[data-ui="2026"] #desktop-sidebar #btn-theme-sidebar,
  body[data-ui="2026"] #desktop-sidebar #btn-auth-login {
    width: auto !important;
    margin-bottom: 0 !important;
    padding: 6px 12px !important;
    white-space: nowrap !important;
  }

  body[data-ui="2026"] #desktop-sidebar #auth-user-box {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 4px 10px !important;
    margin: 0 !important;
  }
  body[data-ui="2026"] #desktop-sidebar #auth-user-box.hidden {
    display: none !important;
  }
  body[data-ui="2026"] #desktop-sidebar #auth-user-box > div {
    padding-top: 0 !important;
  }

  /* Barre horizontale des 9 espaces (Subnav) */
  body[data-ui="2026"] #desktop-sidebar > div:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex !important;
    align-items: center !important;
    gap: 2px !important;
    padding: 0 20px !important;
    margin: 0 !important;
    background: var(--surface, #ffffff) !important;
    border-top: 1px solid rgba(96, 165, 250, 0.32) !important;
    overflow-x: auto !important;
  }

  body[data-ui="2026"] #desktop-sidebar > div:nth-child(2) > div {
    display: flex !important;
    align-items: center !important;
    gap: 2px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
  }

  body[data-ui="2026"] #desktop-sidebar #sidebar-group-club,
  body[data-ui="2026"] #desktop-sidebar #sidebar-group-gestion {
    display: none !important;
  }

  body[data-ui="2026"] #desktop-sidebar nav {
    display: flex !important;
    align-items: center !important;
    gap: 2px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body[data-ui="2026"] #desktop-sidebar nav > * + * {
    margin-top: 0 !important;
  }

  body[data-ui="2026"] #desktop-sidebar nav button,
  body[data-ui="2026"] #desktop-sidebar nav a {
    width: auto !important;
    border-radius: 0 !important;
    padding: 10px 9px 9px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: var(--doux, #334155) !important;
    background: transparent !important;
    border-left: none !important;
    border-bottom: 2.5px solid transparent !important;
    box-shadow: none !important;
    white-space: nowrap !important;
    gap: 6px !important;
  }

  body[data-ui="2026"] #desktop-sidebar nav button svg,
  body[data-ui="2026"] #desktop-sidebar nav a svg {
    width: 16px !important;
    height: 16px !important;
  }

  body[data-ui="2026"] #desktop-sidebar nav button:hover,
  body[data-ui="2026"] #desktop-sidebar nav a:hover {
    color: var(--texte, #0f172a) !important;
    background: rgba(59, 130, 246, 0.06) !important;
  }

  body[data-ui="2026"] #desktop-sidebar nav button[class~="border-l-4"] {
    color: #172554 !important;
    font-weight: 700 !important;
    background: linear-gradient(180deg, transparent 0%, #eff6ff 100%) !important;
    border-bottom-color: #1d4ed8 !important;
  }

  html[data-theme="sombre"] body[data-ui="2026"] #desktop-sidebar nav button[class~="border-l-4"] {
    color: #ffffff !important;
    background: linear-gradient(180deg, transparent 0%, rgba(59, 130, 246, 0.2) 100%) !important;
    border-bottom-color: #fbbf24 !important;
  }

  /* Masquage de l'ancienne barre de titre en doublon sur desktop (intégrée à la Topbar+Subnav v1.25) */
  body[data-ui="2026"] header[class~="h-16"] {
    display: none !important;
  }
}

/* 13.2. Cartouches d'en-tête de page (.v125-page-header) avec médaillon Hermine et filigrane Shishi */
.v125-page-header {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #ffffff 0%, #f0f6ff 100%);
  border: 1px solid #dbeafe;
  border-left: 4px solid #1d4ed8;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.v125-page-header::after {
  content: "";
  position: absolute;
  right: 12px;
  top: -18px;
  bottom: -18px;
  width: 120px;
  background: url('/images/watermark-shishi-336.webp') no-repeat right center / contain;
  opacity: 0.09;
  pointer-events: none;
}

.v125-page-header > * {
  position: relative;
  z-index: 1;
}

.v125-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #1e40af;
}

.v125-eyebrow::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff url('/images/logo-hermine-72.webp') no-repeat center / contain;
  border: 1.5px solid #f59e0b;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
  flex-shrink: 0;
}

html[data-theme="sombre"] .v125-page-header,
body[data-theme="sombre"] .v125-page-header {
  background: linear-gradient(135deg, #121a3a 0%, #172554 100%) !important;
  border-color: var(--bord) !important;
  border-left: 4px solid #fbbf24 !important;
}

html[data-theme="sombre"] .v125-page-header::after,
body[data-theme="sombre"] .v125-page-header::after {
  opacity: 0.16;
}

html[data-theme="sombre"] .v125-eyebrow,
body[data-theme="sombre"] .v125-eyebrow {
  color: #fcd34d !important;
}

/* 13.3. Panneau de files de travail du Secrétariat (.v125-toolbar-panel & .v125-queue-bar) */
.v125-toolbar-panel {
  background: var(--surface, #ffffff);
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.v125-queue-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f1f5f9;
}

.v125-queue-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

.v125-queue-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.6rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background 120ms ease, color 120ms ease;
}

.v125-queue-tab:hover {
  background: rgba(255, 255, 255, 0.75);
  color: #0f172a;
}

.v125-queue-tab[aria-selected="true"] {
  background: #172554;
  color: #ffffff;
  border-color: #172554;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}

.v125-queue-count {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 99px;
  background: #e2e8f0;
  color: #334155;
}

.v125-queue-count.warn { background: #fef3c7; color: #92400e; }
.v125-queue-count.err { background: #fee2e2; color: #991b1b; }
.v125-queue-count.ok { background: #dcfce7; color: #065f46; }
.v125-queue-tab[aria-selected="true"] .v125-queue-count {
  background: #fbbf24 !important;
  color: #172554 !important;
}

.v125-segmented {
  display: inline-flex;
  background: #e2e8f0;
  padding: 3px;
  border-radius: 0.5rem;
}

.v125-segmented button {
  padding: 0.3rem 0.65rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
}

.v125-segmented button[aria-pressed="true"] {
  background: #ffffff;
  color: #0f172a;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.v125-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--surface, #ffffff);
}

html[data-theme="sombre"] .v125-toolbar-panel,
body[data-theme="sombre"] .v125-toolbar-panel {
  background: var(--surface) !important;
  border-color: var(--bord) !important;
}

html[data-theme="sombre"] .v125-queue-bar,
body[data-theme="sombre"] .v125-queue-bar {
  background: var(--surface-2) !important;
  border-bottom-color: var(--bord) !important;
}

html[data-theme="sombre"] .v125-queue-tab,
body[data-theme="sombre"] .v125-queue-tab,
html[data-theme="sombre"] .queue-tab,
body[data-theme="sombre"] .queue-tab {
  background: rgba(30, 41, 59, 0.6) !important;
  color: #cbd5e1 !important;
  border: 1px solid #334155 !important;
}

html[data-theme="sombre"] .v125-queue-tab:hover,
body[data-theme="sombre"] .v125-queue-tab:hover,
html[data-theme="sombre"] .queue-tab:hover,
body[data-theme="sombre"] .queue-tab:hover {
  background: #1e2b5c !important;
  color: #ffffff !important;
  border-color: #3b82f6 !important;
}

html[data-theme="sombre"] .v125-queue-tab[aria-selected="true"],
body[data-theme="sombre"] .v125-queue-tab[aria-selected="true"],
html[data-theme="sombre"] .queue-tab[aria-selected="true"],
body[data-theme="sombre"] .queue-tab[aria-selected="true"] {
  background: #1e3a8a !important;
  color: #ffffff !important;
  border: 1px solid #60a5fa !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="sombre"] table thead,
html[data-theme="sombre"] table thead tr,
html[data-theme="sombre"] table thead th,
body[data-theme="sombre"] table thead,
body[data-theme="sombre"] table thead tr,
body[data-theme="sombre"] table thead th {
  background-color: #141d42 !important;
  color: #cbd5e1 !important;
  border-bottom-color: #233060 !important;
}

html[data-theme="sombre"] table thead th:hover,
html[data-theme="sombre"] th[data-sort-col]:hover,
html[data-theme="sombre"] th[class*="hover:bg-"]:hover,
body[data-theme="sombre"] table thead th:hover,
body[data-theme="sombre"] th[data-sort-col]:hover,
body[data-theme="sombre"] th[class*="hover:bg-"]:hover {
  background-color: #18224a !important;
  color: #f8fafc !important;
}

html[data-theme="sombre"] .v125-filter-row,
body[data-theme="sombre"] .v125-filter-row {
  background: var(--surface) !important;
}

/* 13.4. Grille Maître-Détail du Secrétariat & Coquille Paramètres Administration */
.sec-split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 1rem;
  align-items: start;
}

.sec-split-layout--plein {
  grid-template-columns: 1fr;
}

.sec-inspector {
  position: sticky;
  top: 7.5rem;
  border-top: 3px solid #1d4ed8 !important;
  scroll-margin-top: 7.5rem;
}

tr[data-dossier-row][data-selected="true"] {
  background-color: #eff6ff !important;
  box-shadow: inset 3px 0 0 #2563eb;
}

.v125-settings-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 1.15rem;
  align-items: start;
}

.v125-settings-nav {
  background: var(--surface, #ffffff);
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  position: sticky;
  top: 7.5rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.v125-settings-nav-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.62rem 0.75rem;
  border-radius: 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  text-align: left;
  transition: background 120ms ease, color 120ms ease;
}

.v125-settings-nav-btn:hover {
  background: #f0f6ff;
  color: #0f172a;
}

.v125-settings-nav-btn[aria-pressed="true"],
.v125-settings-nav-btn[aria-current="true"] {
  background: #eff6ff;
  color: #1d4ed8;
  box-shadow: inset 3px 0 0 #1d4ed8;
  font-weight: 700;
}

html[data-theme="sombre"] .v125-settings-nav,
body[data-theme="sombre"] .v125-settings-nav {
  background: var(--surface) !important;
  border-color: var(--bord) !important;
}

html[data-theme="sombre"] .v125-settings-nav-btn,
body[data-theme="sombre"] .v125-settings-nav-btn {
  color: var(--doux) !important;
}

html[data-theme="sombre"] .v125-settings-nav-btn[aria-pressed="true"],
body[data-theme="sombre"] .v125-settings-nav-btn[aria-pressed="true"] {
  background: rgba(59, 130, 246, 0.2) !important;
  color: #fcd34d !important;
  box-shadow: inset 3px 0 0 #fbbf24 !important;
}

html[data-theme="sombre"] .sec-inspector,
body[data-theme="sombre"] .sec-inspector {
  background-color: var(--surface) !important;
  border-color: var(--bord) !important;
  border-top: 3px solid var(--or) !important;
}

html[data-theme="sombre"] .sec-inspector-head,
body[data-theme="sombre"] .sec-inspector-head {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.18) 0%, rgba(18, 26, 58, 0.4) 100%) !important;
  border-bottom-color: var(--bord) !important;
}

html[data-theme="sombre"] tr[data-dossier-row][data-selected="true"],
body[data-theme="sombre"] tr[data-dossier-row][data-selected="true"] {
  background-color: #1e2d5e !important;
  box-shadow: inset 3px 0 0 var(--or);
}

/* 13.5. Inscription à 2 colonnes (.insc-split-layout), tunnel 5 étapes (.v125-stepper-bar) & panier responsive */
.insc-split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 1.25rem;
  align-items: start;
}

.insc-split-layout.insc-en-etape-5 {
  grid-template-columns: minmax(0, 1fr) !important;
  max-width: 780px;
  margin-inline: auto;
}

.insc-split-layout.insc-en-etape-5 .insc-panier-sticky {
  position: static !important;
}

.insc-split-layout > * {
  min-width: 0;
}

.insc-panier-sticky {
  position: sticky;
  top: 7.25rem;
  border-top: 3px solid #1d4ed8 !important;
}

.v125-stepper-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0.65rem 0.9rem;
  background: var(--surface, #ffffff);
  border: 1px solid #e2e8f0;
  border-radius: 0.875rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

@media (max-width: 1180px) {
  .sec-split-layout,
  .v125-settings-shell,
  .insc-split-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .sec-inspector,
  .v125-settings-nav,
  .insc-panier-sticky {
    position: static !important;
  }
  .insc-panier-hors-etape5 {
    display: none !important;
  }
  .v125-settings-nav {
    flex-direction: row;
    overflow-x: auto;
  }
  .v125-settings-nav-btn {
    white-space: nowrap;
  }
}

.v125-step {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  background: transparent;
  border: 1px solid transparent;
  padding: 0.35rem 0.5rem;
  border-radius: 0.625rem;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.v125-step:hover:not(.is-locked):not(.is-active) {
  background: #f8fafc;
  color: #0f172a;
}

.v125-step:focus-visible {
  outline: 2px solid #1d4ed8;
  outline-offset: 2px;
}

.v125-step .insc-step-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v125-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 99px;
  font-size: 0.6875rem;
  font-weight: 700;
  background: #e2e8f0;
  color: #334155;
  flex-shrink: 0;
}

.v125-step.is-active {
  background: #eff6ff;
  color: #1e40af;
  border-color: #93c5fd;
  font-weight: 700;
}

.v125-step.is-active .v125-step-num {
  background: #1d4ed8;
  color: #ffffff;
}

.v125-step.is-done {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

.v125-step.is-done .v125-step-num {
  background: #047857;
  color: #ffffff;
}

.v125-step.is-locked {
  opacity: 0.58;
  cursor: not-allowed;
}

@media (max-width: 767px) {
  .v125-stepper-bar {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 0.45rem 0.5rem;
    gap: 0.35rem;
  }
  .v125-step {
    justify-content: center;
    padding: 0.35rem 0.25rem;
  }
  .v125-step .insc-step-label {
    display: none;
  }
}

html[data-theme="sombre"] .v125-stepper-bar,
body[data-theme="sombre"] .v125-stepper-bar,
html[data-theme="sombre"] #insc-stepper-mobile-resume,
body[data-theme="sombre"] #insc-stepper-mobile-resume {
  background: #111936 !important;
  border-color: #26355e !important;
}

html[data-theme="sombre"] .v125-step,
body[data-theme="sombre"] .v125-step {
  color: #cbd5e1;
}

html[data-theme="sombre"] .v125-step:hover:not(.is-locked):not(.is-active),
body[data-theme="sombre"] .v125-step:hover:not(.is-locked):not(.is-active) {
  background: rgba(30, 41, 59, 0.7);
  color: #f8fafc;
}

html[data-theme="sombre"] .v125-step-num,
body[data-theme="sombre"] .v125-step-num {
  background: #1e293b;
  color: #e2e8f0;
}

html[data-theme="sombre"] .v125-step.is-active,
body[data-theme="sombre"] .v125-step.is-active {
  background: rgba(37, 99, 235, 0.22);
  color: #bfdbfe;
  border-color: rgba(96, 165, 250, 0.45);
}

html[data-theme="sombre"] .v125-step.is-active .v125-step-num,
body[data-theme="sombre"] .v125-step.is-active .v125-step-num {
  background: #3b82f6;
  color: #ffffff;
}

html[data-theme="sombre"] .v125-step.is-done,
body[data-theme="sombre"] .v125-step.is-done {
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
  border-color: rgba(52, 211, 153, 0.35);
}

html[data-theme="sombre"] .v125-step.is-done .v125-step-num,
body[data-theme="sombre"] .v125-step.is-done .v125-step-num {
  background: #059669;
  color: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) :is(.v125-stepper-bar, #insc-stepper-mobile-resume) {
    background: #111936 !important;
    border-color: #26355e !important;
  }
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) .v125-step {
    color: #cbd5e1;
  }
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) .v125-step-num {
    background: #1e293b;
    color: #e2e8f0;
  }
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) .v125-step.is-active {
    background: rgba(37, 99, 235, 0.22);
    color: #bfdbfe;
    border-color: rgba(96, 165, 250, 0.45);
  }
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) .v125-step.is-active .v125-step-num {
    background: #3b82f6;
    color: #ffffff;
  }
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) .v125-step.is-done {
    background: rgba(16, 185, 129, 0.16);
    color: #6ee7b7;
    border-color: rgba(52, 211, 153, 0.35);
  }
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) .v125-step.is-done .v125-step-num {
    background: #059669;
    color: #ffffff;
  }
}

#tab-inscription .v125-insc-segmented {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0.25rem;
  border-radius: 0.875rem;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  gap: 0.25rem;
}

#tab-inscription .v125-insc-tab {
  min-height: 44px;
  padding: 0.55rem 1rem;
  border-radius: 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

#tab-inscription .v125-insc-tab:hover:not(.is-active) {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.7);
}

#tab-inscription .v125-insc-tab.is-active {
  background: #172554 !important;
  color: #ffffff !important;
  border-color: #172554 !important;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
}

html[data-theme="sombre"] #tab-inscription .v125-insc-segmented,
body[data-theme="sombre"] #tab-inscription .v125-insc-segmented {
  background: #0f172a;
  border-color: #33447c;
}

html[data-theme="sombre"] #tab-inscription .v125-insc-tab,
body[data-theme="sombre"] #tab-inscription .v125-insc-tab {
  color: #cbd5e1;
}

html[data-theme="sombre"] #tab-inscription .v125-insc-tab:hover:not(.is-active),
body[data-theme="sombre"] #tab-inscription .v125-insc-tab:hover:not(.is-active) {
  color: #ffffff;
  background: rgba(30, 41, 59, 0.75);
}

html[data-theme="sombre"] #tab-inscription .v125-insc-tab.is-active,
body[data-theme="sombre"] #tab-inscription .v125-insc-tab.is-active {
  background: #1d4ed8 !important;
  color: #ffffff !important;
  border-color: #60a5fa !important;
}

@media (prefers-color-scheme: dark) {
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) #tab-inscription .v125-insc-segmented {
    background: #0f172a;
    border-color: #33447c;
  }
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) #tab-inscription .v125-insc-tab {
    color: #cbd5e1;
  }
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) #tab-inscription .v125-insc-tab.is-active {
    background: #1d4ed8 !important;
    color: #ffffff !important;
    border-color: #60a5fa !important;
  }
}

/* 13.6. Secrétariat épuré : 4 colonnes permanentes + Matrice 2×2 des 4 volets + Pastilles de ceinture */
#tab-secretariat .sec-col-detail-repli {
  display: none !important;
}

#tab-secretariat #btn-groupes-a-verifier,
#tab-secretariat #btn-attestations-qs,
#tab-secretariat #btn-saisie-ffjda-sec {
  display: none !important;
}

.v125-volets-grid,
.status-matrix {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
}

.v125-volet-chip,
.status-matrix .status-chip {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 26px !important;
  min-height: 26px !important;
  padding: 0 8px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
}

.v125-volet-chip > span:last-child,
.status-matrix .status-chip > span:last-child {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  display: block !important;
}

.v125-volet-dot {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  flex-shrink: 0;
  background: #94a3b8;
}

.v125-volet-ok {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}
.v125-volet-ok .v125-volet-dot { background: #10b981; }

.v125-volet-warn {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}
.v125-volet-warn .v125-volet-dot { background: #f59e0b; }

.v125-volet-err {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}
.v125-volet-err .v125-volet-dot { background: #ef4444; }

html[data-theme="sombre"] .v125-volet-ok,
body[data-theme="sombre"] .v125-volet-ok,
html[data-theme="sombre"] .status-chip.ok,
body[data-theme="sombre"] .status-chip.ok {
  background: rgba(16, 185, 129, 0.14) !important;
  color: #6ee7b7 !important;
  border: 1px solid rgba(52, 211, 153, 0.3) !important;
}
html[data-theme="sombre"] .v125-volet-ok .v125-volet-dot,
body[data-theme="sombre"] .v125-volet-ok .v125-volet-dot {
  background: #34d399 !important;
}

html[data-theme="sombre"] .v125-volet-warn,
body[data-theme="sombre"] .v125-volet-warn,
html[data-theme="sombre"] .status-chip.warn,
body[data-theme="sombre"] .status-chip.warn {
  background: rgba(245, 158, 11, 0.14) !important;
  color: #fcd34d !important;
  border: 1px solid rgba(251, 191, 36, 0.3) !important;
}
html[data-theme="sombre"] .v125-volet-warn .v125-volet-dot,
body[data-theme="sombre"] .v125-volet-warn .v125-volet-dot {
  background: #fbbf24 !important;
}

html[data-theme="sombre"] .v125-volet-err,
body[data-theme="sombre"] .v125-volet-err,
html[data-theme="sombre"] .status-chip.err,
body[data-theme="sombre"] .status-chip.err {
  background: rgba(239, 68, 68, 0.14) !important;
  color: #fca5a5 !important;
  border: 1px solid rgba(248, 113, 113, 0.3) !important;
}
html[data-theme="sombre"] .v125-volet-err .v125-volet-dot,
body[data-theme="sombre"] .v125-volet-err .v125-volet-dot {
  background: #f87171 !important;
}

html[data-theme="sombre"] .v125-volet-muted,
body[data-theme="sombre"] .v125-volet-muted,
html[data-theme="sombre"] .v125-belt-badge,
body[data-theme="sombre"] .v125-belt-badge,
html[data-theme="sombre"] .status-chip.neutral,
body[data-theme="sombre"] .status-chip.neutral {
  background: rgba(30, 41, 59, 0.7) !important;
  color: #cbd5e1 !important;
  border: 1px solid #334155 !important;
}

@media (prefers-color-scheme: dark) {
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) :is(.v125-volet-ok, .status-chip.ok) {
    background: rgba(16, 185, 129, 0.14) !important;
    color: #6ee7b7 !important;
    border: 1px solid rgba(52, 211, 153, 0.3) !important;
  }
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) .v125-volet-ok .v125-volet-dot {
    background: #34d399 !important;
  }

  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) :is(.v125-volet-warn, .status-chip.warn) {
    background: rgba(245, 158, 11, 0.14) !important;
    color: #fcd34d !important;
    border: 1px solid rgba(251, 191, 36, 0.3) !important;
  }
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) .v125-volet-warn .v125-volet-dot {
    background: #fbbf24 !important;
  }

  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) :is(.v125-volet-err, .status-chip.err) {
    background: rgba(239, 68, 68, 0.14) !important;
    color: #fca5a5 !important;
    border: 1px solid rgba(248, 113, 113, 0.3) !important;
  }
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) .v125-volet-err .v125-volet-dot {
    background: #f87171 !important;
  }

  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) :is(.v125-volet-muted, .v125-belt-badge, .status-chip.neutral) {
    background: rgba(30, 41, 59, 0.7) !important;
    color: #cbd5e1 !important;
    border: 1px solid #334155 !important;
  }
}

.v125-belt-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.1rem 0.45rem;
  border-radius: 99px;
  font-size: 0.68rem;
  font-weight: 600;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  white-space: nowrap;
}

.v125-belt-swatch {
  width: 11px;
  height: 7px;
  border-radius: 2px;
  border: 1px solid rgba(15, 23, 42, 0.25);
  flex-shrink: 0;
}

/* Boutons d'en-tête du Secrétariat compacts et harmonisés */
#tab-secretariat .v125-page-header button {
  min-height: 34px !important;
  padding: 0.35rem 0.7rem !important;
  font-size: 0.74rem !important;
  border-radius: 0.5rem !important;
}

/* =============================================================================
   14. Alignement trait pour trait sur maquettes/v1.25-site-complet.html (v1.26)
   ============================================================================= */

/* 1. Espace de travail 1480px et fond sobre sans halo artificiel */
body[data-ui="2026"] > div.flex-1 {
  background: var(--bg) !important;
}

@media (min-width: 768px) {
  body[data-ui="2026"] main {
    max-width: 1480px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 22px 24px 56px !important;
  }
}

/* 2. Topbar & Subnav identiques à la maquette */
@media (min-width: 768px) {
  body[data-ui="2026"] #desktop-sidebar,
  body[data-ui="2026"] #desktop-sidebar.replie {
    grid-template-rows: 60px auto !important;
  }

  body[data-ui="2026"] #desktop-sidebar .marque-entete {
    height: 60px !important;
    background: linear-gradient(90deg, #172554 0%, #1e3a8a 52%, #172554 100%) !important;
  }

  body[data-ui="2026"] #desktop-sidebar > div:last-child {
    height: 60px !important;
    background: linear-gradient(90deg, #172554 0%, #1e3a8a 52%, #172554 100%) !important;
  }

  #desktop-sidebar .marque-entete img {
    width: 38px !important;
    height: 38px !important;
    border: 2px solid #fbbf24 !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35) !important;
  }

  #desktop-sidebar .marque-texte {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
  }

  #desktop-sidebar > div:nth-child(2) {
    background: var(--surface, #ffffff) !important;
    border-top: 1px solid rgba(96, 165, 250, 0.32) !important;
    border-bottom: 1px solid var(--bord, #e2e8f0) !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
    padding: 0 max(24px, calc((100vw - 1480px) / 2 + 24px)) !important;
  }

  #desktop-sidebar nav button,
  #desktop-sidebar nav a {
    padding: 12px 12px 11px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
  }
}

.v125-nav-count {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 99px;
  background: #fbbf24;
  color: #172554;
  margin-left: 4px;
}

/* 3. Accueil & Planning (Héros 2 colonnes, Chiffres clés, Vidéo, Grille 2 colonnes) */
.v125-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 318px;
  gap: 28px;
  align-items: center;
}
@media (max-width: 1100px) {
  .v125-hero-grid {
    grid-template-columns: 1fr;
  }
}

.v125-hero-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(147, 197, 253, 0.3);
  border-radius: 12px;
  padding: 18px;
  color: #f8fafc;
}

.v125-hero-info-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  color: #dbeafe;
}
.v125-hero-info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.v125-hero-info-row strong {
  color: #ffffff;
  text-align: right;
  font-weight: 600;
}

.v125-hero-facts {
  list-style: none;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 12.5px;
  color: #bfdbfe;
}
.v125-hero-facts strong {
  color: #fcd34d;
  font-weight: 700;
  display: block;
  font-size: 14px;
}

@media (min-width: 1101px) {
  #accueil-atouts {
    position: relative;
    z-index: 2;
    margin-top: -26px !important;
  }
}

.v125-accueil-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: start;
}
@media (max-width: 1100px) {
  .v125-accueil-grid {
    grid-template-columns: 1fr;
  }
}

/* 4. Panneaux, Sous-onglets, Bandeaux de santé, Cartes KPI et Tarifs de la maquette */
.v125-panel {
  background: var(--surface, #ffffff);
  border: 1px solid var(--bord, #e2e8f0);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  overflow: hidden;
}

.v125-panel-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--bord, #e2e8f0);
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
html[data-theme="sombre"] .v125-panel-head,
body[data-theme="sombre"] .v125-panel-head {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.09) 0%, transparent 100%) !important;
  border-bottom-color: var(--bord) !important;
}

.v125-panel-body {
  padding: 18px;
}

.v125-panel-foot {
  padding: 12px 18px;
  border-top: 1px solid var(--bord, #e2e8f0);
  background: #f0f6ff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #475569;
}
html[data-theme="sombre"] .v125-panel-foot,
body[data-theme="sombre"] .v125-panel-foot {
  background: var(--surface-2) !important;
  color: var(--doux) !important;
  border-top-color: var(--bord) !important;
}

.v125-tabs {
  display: flex;
  align-items: stretch;
  gap: 2px;
  border-bottom: 1px solid var(--bord, #e2e8f0);
  padding: 0 10px;
  overflow-x: auto;
  background: var(--surface, #ffffff);
  border-radius: 12px 12px 0 0;
}

.v125-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  border-bottom: 2.5px solid transparent;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  white-space: nowrap;
  transition: color 120ms ease, background 120ms ease;
}
.v125-tab:hover {
  color: #0f172a !important;
  background: #f0f6ff !important;
}
.v125-tab[aria-selected="true"],
.v125-tab.bg-blue-950 {
  color: #172554 !important;
  background: linear-gradient(180deg, transparent 0%, #eff6ff 100%) !important;
  border-bottom: 2.5px solid #1d4ed8 !important;
  font-weight: 700 !important;
}
html[data-theme="sombre"] .v125-tab[aria-selected="true"],
body[data-theme="sombre"] .v125-tab[aria-selected="true"],
html[data-theme="sombre"] .v125-tab.bg-blue-950,
body[data-theme="sombre"] .v125-tab.bg-blue-950 {
  color: #ffffff !important;
  background: linear-gradient(180deg, transparent 0%, rgba(59, 130, 246, 0.2) 100%) !important;
  border-bottom-color: #fbbf24 !important;
}

.v125-health-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--bord, #e2e8f0);
  border-radius: 12px;
  background: var(--surface, #ffffff);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
@media (max-width: 900px) {
  .v125-health-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.v125-health-cell {
  padding: 12px 15px;
  border-right: 1px solid var(--bord, #e2e8f0);
  background: var(--surface, #ffffff);
}
.v125-health-cell:last-child {
  border-right: none;
}

.v125-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 1100px) {
  .v125-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .v125-kpi-grid {
    grid-template-columns: 1fr;
  }
}

.v125-kpi {
  background: var(--surface, #ffffff);
  border: 1px solid #e2e8f0;
  border-top: 3px solid #1d4ed8;
  border-radius: 12px;
  padding: 15px 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}
.v125-kpi:nth-child(2) {
  background: #fffbeb;
  border-color: #fde68a;
  border-top-color: #f59e0b;
}
.v125-kpi:nth-child(3) {
  background: #eff6ff;
  border-color: #bfdbfe;
  border-top-color: #2563eb;
}
.v125-kpi:nth-child(4) {
  background: #ecfdf5;
  border-color: #a7f3d0;
  border-top-color: #10b981;
}
html[data-theme="sombre"] .v125-kpi,
body[data-theme="sombre"] .v125-kpi {
  background: var(--surface) !important;
  border-color: var(--bord) !important;
  border-top: 3px solid #fbbf24 !important;
}

.v125-price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 900px) {
  .v125-price-grid {
    grid-template-columns: 1fr;
  }
}

.v125-price-card {
  border: 1px solid #dbeafe;
  border-top: 3px solid #1d4ed8;
  border-radius: 12px;
  padding: 15px;
  background: var(--surface, #ffffff);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

/* 5. Avatars initiales pastel à 4 teintes & Fiches Famille / Inspecteur Secrétariat */
.fam-avatar-initiales {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #f59e0b;
  color: #78350f;
  font-weight: 800;
  font-size: 11.5px;
  box-shadow: 0 1px 2px rgba(180, 83, 9, 0.12);
}

tr:nth-child(4n+2) .fam-avatar-initiales,
.tat-carte-appel:nth-child(4n+2) .fam-avatar-initiales {
  background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%) !important;
  border-color: #fb923c !important;
  color: #7c2d12 !important;
}

tr:nth-child(4n+3) .fam-avatar-initiales,
.tat-carte-appel:nth-child(4n+3) .fam-avatar-initiales {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%) !important;
  border-color: #4ade80 !important;
  color: #14532d !important;
}

tr:nth-child(4n+4) .fam-avatar-initiales,
.tat-carte-appel:nth-child(4n+4) .fam-avatar-initiales {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%) !important;
  border-color: #60a5fa !important;
  color: #1e3a8a !important;
}

html[data-theme="sombre"] .fam-avatar-initiales,
body[data-theme="sombre"] .fam-avatar-initiales,
html[data-theme="sombre"] tr:nth-child(n) .fam-avatar-initiales,
body[data-theme="sombre"] tr:nth-child(n) .fam-avatar-initiales,
html[data-theme="sombre"] .tat-carte-appel:nth-child(n) .fam-avatar-initiales,
body[data-theme="sombre"] .tat-carte-appel:nth-child(n) .fam-avatar-initiales {
  background: #16224c !important;
  color: var(--or) !important;
  border-color: rgba(239, 183, 62, 0.45) !important;
}

@media (prefers-color-scheme: dark) {
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) .fam-avatar-initiales,
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) tr:nth-child(n) .fam-avatar-initiales,
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) .tat-carte-appel:nth-child(n) .fam-avatar-initiales {
    background: #16224c !important;
    color: var(--or) !important;
    border-color: rgba(239, 183, 62, 0.45) !important;
  }
}

.fam-fiche-judoka {
  border: 1px solid var(--bord) !important;
  border-top: 3px solid #1d4ed8 !important;
  border-left: 1px solid var(--bord) !important;
  border-radius: 12px;
}

.sec-split-layout {
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 16px;
}
@media (max-width: 1240px) {
  .sec-split-layout {
    grid-template-columns: minmax(0, 1fr) 400px;
  }
}

.sec-inspector {
  background: var(--surface, #ffffff);
  border: 1px solid #bfdbfe !important;
  border-top: 3px solid #1d4ed8 !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 26px -6px rgba(23, 37, 84, 0.10), 0 4px 10px -3px rgba(23, 37, 84, 0.05) !important;
  overflow: hidden;
}
html[data-theme="sombre"] .sec-inspector,
body[data-theme="sombre"] .sec-inspector {
  background: var(--surface) !important;
  border-color: var(--bord) !important;
  border-top-color: #fbbf24 !important;
}

.v125-insp-section {
  padding: 13px 17px;
  border-bottom: 1px solid var(--bord, #e2e8f0);
}
.v125-insp-section:last-child {
  border-bottom: none;
}

.v125-insp-heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-blue, #1d4ed8);
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
html[data-theme="sombre"] .v125-insp-heading,
body[data-theme="sombre"] .v125-insp-heading {
  color: #93c5fd !important;
}

.v125-kv-grid {
  display: grid;
  grid-template-columns: 105px 1fr;
  row-gap: 6px;
  column-gap: 10px;
  font-size: 12.5px;
}

.v125-kv-label {
  color: var(--doux, #64748b);
}

.v125-kv-value {
  color: var(--texte, #0f172a);
  font-weight: 600;
  word-break: break-word;
}
html[data-theme="sombre"] .v125-kv-label,
body[data-theme="sombre"] .v125-kv-label {
  color: var(--doux, #94a3b8) !important;
}
html[data-theme="sombre"] .v125-kv-value,
body[data-theme="sombre"] .v125-kv-value {
  color: #f1f5f9 !important;
}

.inspector-header {
  padding: 15px 17px;
  background: linear-gradient(180deg, #eff6ff 0%, #f8fbff 100%);
  border-bottom: 1px solid #dbeafe;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
html[data-theme="sombre"] .inspector-header,
body[data-theme="sombre"] .inspector-header {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.18) 0%, rgba(59, 130, 246, 0.04) 100%) !important;
  border-bottom-color: var(--bord) !important;
}

.inspector-title {
  font-family: 'Sora', 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #172554;
}
html[data-theme="sombre"] .inspector-title,
body[data-theme="sombre"] .inspector-title {
  color: #ffffff !important;
}

.inspector-subtitle {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}
html[data-theme="sombre"] .inspector-subtitle,
body[data-theme="sombre"] .inspector-subtitle {
  color: #94a3b8 !important;
}

/* =============================================================================
   15. Boutons secondaires unifiés (Mode Clair & Mode Sombre)
   ============================================================================= */
#btn-groupes-a-verifier,
#btn-attestations-qs,
#btn-saisie-ffjda-sec,
#btn-import-licencies,
button[onclick*="exporterBordereauMairie"],
button[onclick*="ouvrirModifierDossier"],
button[data-action="ouvrir-reglements"],
button[onclick*="ouvrirSaisieFfjda"],
.sec-btn-menu,
#btn-sec-toggle-inspecteur,
#btn-campagne-manuelle,
#btn-admin-audit-saison {
  background: #ffffff !important;
  color: #1e293b !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: none !important;
}

#btn-groupes-a-verifier:hover,
#btn-attestations-qs:hover,
#btn-saisie-ffjda-sec:hover,
#btn-import-licencies:hover,
button[onclick*="exporterBordereauMairie"]:hover,
button[onclick*="ouvrirModifierDossier"]:hover,
button[data-action="ouvrir-reglements"]:hover,
button[onclick*="ouvrirSaisieFfjda"]:hover,
.sec-btn-menu:hover,
#btn-sec-toggle-inspecteur:hover,
#btn-campagne-manuelle:hover,
#btn-admin-audit-saison:hover {
  background: #f0f6ff !important;
  border-color: #93c5fd !important;
}

html[data-theme="sombre"] #btn-groupes-a-verifier,
body[data-theme="sombre"] #btn-groupes-a-verifier,
html[data-theme="sombre"] #btn-attestations-qs,
body[data-theme="sombre"] #btn-attestations-qs,
html[data-theme="sombre"] #btn-saisie-ffjda-sec,
body[data-theme="sombre"] #btn-saisie-ffjda-sec,
html[data-theme="sombre"] #btn-import-licencies,
body[data-theme="sombre"] #btn-import-licencies,
html[data-theme="sombre"] button[onclick*="exporterBordereauMairie"],
body[data-theme="sombre"] button[onclick*="exporterBordereauMairie"],
html[data-theme="sombre"] button[onclick*="ouvrirModifierDossier"],
body[data-theme="sombre"] button[onclick*="ouvrirModifierDossier"],
html[data-theme="sombre"] button[data-action="ouvrir-reglements"],
body[data-theme="sombre"] button[data-action="ouvrir-reglements"],
html[data-theme="sombre"] button[onclick*="ouvrirSaisieFfjda"],
body[data-theme="sombre"] button[onclick*="ouvrirSaisieFfjda"],
html[data-theme="sombre"] .sec-btn-menu,
body[data-theme="sombre"] .sec-btn-menu,
html[data-theme="sombre"] #btn-sec-toggle-inspecteur,
body[data-theme="sombre"] #btn-sec-toggle-inspecteur,
html[data-theme="sombre"] #btn-campagne-manuelle,
body[data-theme="sombre"] #btn-campagne-manuelle,
html[data-theme="sombre"] #btn-admin-audit-saison,
body[data-theme="sombre"] #btn-admin-audit-saison {
  background: #121a3a !important;
  color: #e2e8f0 !important;
  border: 1px solid #2e3f70 !important;
  box-shadow: none !important;
}

html[data-theme="sombre"] #btn-groupes-a-verifier:hover,
body[data-theme="sombre"] #btn-groupes-a-verifier:hover,
html[data-theme="sombre"] #btn-attestations-qs:hover,
body[data-theme="sombre"] #btn-attestations-qs:hover,
html[data-theme="sombre"] #btn-saisie-ffjda-sec:hover,
body[data-theme="sombre"] #btn-saisie-ffjda-sec:hover,
html[data-theme="sombre"] #btn-import-licencies:hover,
body[data-theme="sombre"] #btn-import-licencies:hover,
html[data-theme="sombre"] button[onclick*="exporterBordereauMairie"]:hover,
body[data-theme="sombre"] button[onclick*="exporterBordereauMairie"]:hover,
html[data-theme="sombre"] button[onclick*="ouvrirModifierDossier"]:hover,
body[data-theme="sombre"] button[onclick*="ouvrirModifierDossier"]:hover,
html[data-theme="sombre"] button[data-action="ouvrir-reglements"]:hover,
body[data-theme="sombre"] button[data-action="ouvrir-reglements"]:hover,
html[data-theme="sombre"] button[onclick*="ouvrirSaisieFfjda"]:hover,
body[data-theme="sombre"] button[onclick*="ouvrirSaisieFfjda"]:hover,
html[data-theme="sombre"] .sec-btn-menu:hover,
body[data-theme="sombre"] .sec-btn-menu:hover,
html[data-theme="sombre"] #btn-sec-toggle-inspecteur:hover,
body[data-theme="sombre"] #btn-sec-toggle-inspecteur:hover,
html[data-theme="sombre"] #btn-campagne-manuelle:hover,
body[data-theme="sombre"] #btn-campagne-manuelle:hover,
html[data-theme="sombre"] #btn-admin-audit-saison:hover,
body[data-theme="sombre"] #btn-admin-audit-saison:hover {
  background: #1e2b5c !important;
  color: #ffffff !important;
  border-color: #3b82f6 !important;
}

@media (prefers-color-scheme: dark) {
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) :is(
    #btn-groupes-a-verifier,
    #btn-attestations-qs,
    #btn-saisie-ffjda-sec,
    #btn-import-licencies,
    button[onclick*="exporterBordereauMairie"],
    button[onclick*="ouvrirModifierDossier"],
    button[data-action="ouvrir-reglements"],
    button[onclick*="ouvrirSaisieFfjda"],
    .sec-btn-menu,
    #btn-sec-toggle-inspecteur,
    #btn-campagne-manuelle,
    #btn-admin-audit-saison
  ) {
    background: #121a3a !important;
    color: #e2e8f0 !important;
    border: 1px solid #2e3f70 !important;
    box-shadow: none !important;
  }

  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) :is(
    #btn-groupes-a-verifier:hover,
    #btn-attestations-qs:hover,
    #btn-saisie-ffjda-sec:hover,
    #btn-import-licencies:hover,
    button[onclick*="exporterBordereauMairie"]:hover,
    button[onclick*="ouvrirModifierDossier"]:hover,
    button[data-action="ouvrir-reglements"]:hover,
    button[onclick*="ouvrirSaisieFfjda"]:hover,
    .sec-btn-menu:hover,
    #btn-sec-toggle-inspecteur:hover,
    #btn-campagne-manuelle:hover,
    #btn-admin-audit-saison:hover
  ) {
    background: #1e2b5c !important;
    color: #ffffff !important;
    border-color: #3b82f6 !important;
  }
}

/* =============================================================================
   16. Contrastes en mode sombre (Segmented, Champs, Scrollbars)
   ============================================================================= */
html[data-theme="sombre"] .v125-segmented,
body[data-theme="sombre"] .v125-segmented {
  background: #0d142d !important;
  border: 1px solid #233060 !important;
}

html[data-theme="sombre"] .v125-segmented button,
body[data-theme="sombre"] .v125-segmented button {
  color: #cbd5e1 !important;
  background: transparent !important;
  border: 1px solid transparent !important;
}

html[data-theme="sombre"] .v125-segmented button[aria-pressed="true"],
body[data-theme="sombre"] .v125-segmented button[aria-pressed="true"],
html[data-theme="sombre"] #btn-sec-toggle-inspecteur[aria-pressed="true"],
body[data-theme="sombre"] #btn-sec-toggle-inspecteur[aria-pressed="true"] {
  background: #1e3168 !important;
  color: #ffffff !important;
  border: 1px solid #60a5fa !important;
  box-shadow: none !important;
}

html[data-theme="sombre"] #sig-panier-nom,
body[data-theme="sombre"] #sig-panier-nom,
html[data-theme="sombre"] input:not([type="checkbox"],[type="radio"]),
body[data-theme="sombre"] input:not([type="checkbox"],[type="radio"]),
html[data-theme="sombre"] select,
body[data-theme="sombre"] select,
html[data-theme="sombre"] textarea,
body[data-theme="sombre"] textarea {
  background-color: #121a3a !important;
  color: #f1f5f9 !important;
  border-color: #2e3f70 !important;
}

@media (prefers-color-scheme: dark) {
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) .v125-segmented {
    background: #0d142d !important;
    border: 1px solid #233060 !important;
  }

  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) .v125-segmented button {
    color: #cbd5e1 !important;
    background: transparent !important;
    border: 1px solid transparent !important;
  }

  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) :is(.v125-segmented button[aria-pressed="true"], #btn-sec-toggle-inspecteur[aria-pressed="true"]) {
    background: #1e3168 !important;
    color: #ffffff !important;
    border: 1px solid #60a5fa !important;
    box-shadow: none !important;
  }

  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) :is(
    #sig-panier-nom,
    input:not([type="checkbox"],[type="radio"]),
    select,
    textarea
  ) {
    background-color: #121a3a !important;
    color: #f1f5f9 !important;
    border-color: #2e3f70 !important;
  }

  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) :is(.v125-queue-tab, .queue-tab) {
    background: rgba(30, 41, 59, 0.6) !important;
    color: #cbd5e1 !important;
    border: 1px solid #334155 !important;
  }

  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) :is(.v125-queue-tab:hover, .queue-tab:hover) {
    background: #1e2b5c !important;
    color: #ffffff !important;
    border-color: #3b82f6 !important;
  }

  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) :is(.v125-queue-tab[aria-selected="true"], .queue-tab[aria-selected="true"]) {
    background: #1e3a8a !important;
    color: #ffffff !important;
    border: 1px solid #60a5fa !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35) !important;
  }

  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) :is(table thead, table thead tr, table thead th) {
    background-color: #141d42 !important;
    color: #cbd5e1 !important;
    border-bottom-color: #233060 !important;
  }

  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) :is(table thead th:hover, th[data-sort-col]:hover, th[class*="hover:bg-"]:hover) {
    background-color: #18224a !important;
    color: #f8fafc !important;
  }
}

/* Scrollbars fines */
#msg-destinataires-liste,
.overflow-y-auto,
.overflow-x-auto {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

html[data-theme="sombre"] #msg-destinataires-liste,
body[data-theme="sombre"] #msg-destinataires-liste,
html[data-theme="sombre"] .overflow-y-auto,
body[data-theme="sombre"] .overflow-y-auto,
html[data-theme="sombre"] .overflow-x-auto,
body[data-theme="sombre"] .overflow-x-auto {
  scrollbar-width: thin;
  scrollbar-color: #33447c transparent;
}

@media (prefers-color-scheme: dark) {
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) :is(
    #msg-destinataires-liste,
    .overflow-y-auto,
    .overflow-x-auto
  ) {
    scrollbar-width: thin;
    scrollbar-color: #33447c transparent;
  }
}

/* =============================================================================
   17. Tableau du Secrétariat (Espacement, curseur, frise compacte)
   ============================================================================= */
@media (min-width: 768px) {
  #tab-secretariat table tbody td {
    padding: 12px 14px !important;
    vertical-align: middle !important;
  }
}

#tab-secretariat tr[data-dossier-row] {
  cursor: pointer !important;
}

#tab-secretariat .frise-dossier-compact {
  display: none !important;
}

/* =============================================================================
   18. Secrétariat : Fluidification pleine largeur et étirement 100% des tables
   ============================================================================= */
@media (min-width: 768px) {
  body[data-ui="2026"] main:has(> #tab-secretariat:not(.hidden)) {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
}

#tab-secretariat,
#sec-maitre-detail,
#sec-colonne-tableaux,
#vue-sec-incomplets,
#vue-sec-valides,
#vue-sec-registre,
#tab-secretariat .table-surface,
#tab-secretariat .table-wrap,
#tab-secretariat div.overflow-x-auto {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

#sec-maitre-detail.sec-split-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 420px !important;
  gap: 16px !important;
  width: 100% !important;
  max-width: none !important;
  align-items: start !important;
}

#sec-maitre-detail.sec-split-layout.sec-split-layout--plein {
  grid-template-columns: minmax(0, 1fr) !important;
}

@media (max-width: 1180px) {
  #sec-maitre-detail.sec-split-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (min-width: 768px) {
  #vue-sec-incomplets table,
  #vue-sec-valides table,
  #vue-sec-registre table,
  #tab-secretariat .data-table {
    display: table !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: none !important;
    table-layout: auto !important;
    border-collapse: collapse !important;
  }

  #vue-sec-incomplets thead,
  #vue-sec-valides thead,
  #vue-sec-registre thead {
    display: table-header-group !important;
  }

  #vue-sec-incomplets tbody,
  #vue-sec-valides tbody,
  #vue-sec-registre tbody {
    display: table-row-group !important;
    width: 100% !important;
  }

  #vue-sec-incomplets tr,
  #vue-sec-valides tr,
  #vue-sec-registre tr {
    display: table-row !important;
    width: 100% !important;
  }

  #vue-sec-incomplets th:not(.sec-col-detail-repli),
  #vue-sec-incomplets td:not(.sec-col-detail-repli),
  #vue-sec-valides th:not(.sec-col-detail-repli),
  #vue-sec-valides td:not(.sec-col-detail-repli),
  #vue-sec-registre th:not(.sec-col-detail-repli),
  #vue-sec-registre td:not(.sec-col-detail-repli) {
    display: table-cell !important;
  }
}


/* =============================================================================
   Accueil : tableau des cotisations compact sur téléphone (une carte par cours :
   nom et prix sur la même ligne, âges et séances dessous, sans les étiquettes répétées)
   ============================================================================= */
@media (max-width: 767px) {
  /* « !important » : la règle générale des tableaux mobiles (00-tete.html) l'impose déjà pour les lignes et cellules. */
  #tab-planning table.accueil-tarifs tr {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 0.75rem;
    row-gap: 0.15rem;
    padding: 0.75rem 0.9rem;
    margin-bottom: 0.5rem;
  }
  #tab-planning table.accueil-tarifs tr:last-child {
    margin-bottom: 0;
  }
  #tab-planning table.accueil-tarifs td[data-label] {
    display: block !important;
    width: auto;
    padding: 0;
    border-bottom: none;
  }
  #tab-planning table.accueil-tarifs td[data-label]::before {
    content: none;
  }
  #tab-planning table.accueil-tarifs td:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
    font-size: 0.85rem;
  }
  #tab-planning table.accueil-tarifs td:nth-child(2),
  #tab-planning table.accueil-tarifs td:nth-child(3) {
    grid-column: 1;
    color: var(--doux);
  }
  #tab-planning table.accueil-tarifs td:nth-child(4) {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
    text-align: right !important;
    white-space: nowrap;
    font-size: 1rem;
  }
}

/* =============================================================================
   14. Espace Famille v1.32 — Coquille unifiée, frise repliable et timeline
   ============================================================================= */
.fam-shell {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

@media (min-width: 1024px) {
  .fam-shell {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
  }
}

.fam-side-nav {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  overflow-x: auto;
  padding: 0.375rem;
  border-radius: 1rem;
  background: var(--surface, #ffffff);
  border: 1px solid var(--bord, #e2e8f0);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

@media (min-width: 1024px) {
  .fam-side-nav {
    flex-direction: column;
    align-items: stretch;
    position: sticky;
    top: 5.25rem;
    padding: 0.5rem;
    gap: 0.25rem;
    overflow-x: visible;
  }
}

.fam-side-nav-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.625rem 0.875rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
  background: transparent;
  border: 1px solid transparent;
  text-align: left;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.fam-side-nav-btn:hover:not(.is-active) {
  background: #f1f5f9;
  color: #0f172a;
}

.fam-side-nav-btn.is-active {
  background: #172554 !important;
  color: #ffffff !important;
  border-color: #172554 !important;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.14);
}

.fam-nav-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.4rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
  background: #e2e8f0;
  color: #1e293b;
}

.fam-side-nav-btn.is-active .fam-nav-count {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.frise-dossier-repliee summary::-webkit-details-marker {
  display: none;
}

.frise-dossier-repliee[open] .frise-dossier-detail-label {
  opacity: 0.75;
}

.fam-timeline {
  position: relative;
  padding-left: 0.125rem;
}

.fam-timeline::before {
  content: "";
  position: absolute;
  left: 0.9375rem;
  top: 0.75rem;
  bottom: 0.75rem;
  width: 2px;
  background: #cbd5e1;
}

.fam-timeline-item {
  position: relative;
  z-index: 1;
}

html[data-theme="sombre"] .fam-side-nav,
body[data-theme="sombre"] .fam-side-nav {
  background: var(--surface, #121a3a);
  border-color: var(--bord, #233060);
}

html[data-theme="sombre"] .fam-side-nav-btn,
body[data-theme="sombre"] .fam-side-nav-btn {
  color: #cbd5e1;
}

html[data-theme="sombre"] .fam-side-nav-btn:hover:not(.is-active),
body[data-theme="sombre"] .fam-side-nav-btn:hover:not(.is-active) {
  background: rgba(30, 41, 59, 0.75);
  color: #ffffff;
}

html[data-theme="sombre"] .fam-side-nav-btn.is-active,
body[data-theme="sombre"] .fam-side-nav-btn.is-active {
  background: #1d4ed8 !important;
  color: #ffffff !important;
  border-color: #60a5fa !important;
}

html[data-theme="sombre"] .fam-nav-count,
body[data-theme="sombre"] .fam-nav-count {
  background: #1e293b;
  color: #e2e8f0;
}

html[data-theme="sombre"] .fam-empty-state,
body[data-theme="sombre"] .fam-empty-state {
  background: var(--surface-2, #18224a) !important;
  border-color: var(--bord, #233060) !important;
}

html[data-theme="sombre"] .fam-timeline::before,
body[data-theme="sombre"] .fam-timeline::before {
  background: #33447c;
}

@media (prefers-color-scheme: dark) {
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) .fam-side-nav {
    background: var(--surface, #121a3a);
    border-color: var(--bord, #233060);
  }
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) .fam-side-nav-btn {
    color: #cbd5e1;
  }
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) .fam-side-nav-btn.is-active {
    background: #1d4ed8 !important;
    color: #ffffff !important;
    border-color: #60a5fa !important;
  }
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) .fam-empty-state {
    background: var(--surface-2, #18224a) !important;
    border-color: var(--bord, #233060) !important;
  }
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) .fam-timeline::before {
    background: #33447c;
  }
}

/* Grille plate 4 colonnes sans boîtes imbriquées dans Mes Judokas & Dossiers */
#tab-famille .fam-grille-admin {
  gap: 0.75rem 0;
}

#tab-famille .fam-compartiment-admin {
  display: flex;
  flex-direction: column;
  justify-content: flex-start !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0.25rem 0.875rem !important;
}

#tab-famille .fam-compartiment-admin:first-child {
  padding-left: 0 !important;
}

#tab-famille .fam-compartiment-admin:last-child {
  padding-right: 0 !important;
}

@media (min-width: 1024px) {
  #tab-famille .fam-compartiment-admin:not(:first-child) {
    border-left: 1px solid var(--bord, #e2e8f0) !important;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  #tab-famille .fam-compartiment-admin:nth-child(odd) {
    padding-left: 0 !important;
  }
  #tab-famille .fam-compartiment-admin:nth-child(even) {
    padding-right: 0 !important;
    border-left: 1px solid var(--bord, #e2e8f0) !important;
  }
  #tab-famille .fam-compartiment-admin:nth-child(n+3) {
    border-top: 1px solid var(--bord, #e2e8f0) !important;
    padding-top: 0.625rem !important;
  }
}

@media (max-width: 639px) {
  #tab-famille .fam-compartiment-admin {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  #tab-famille .fam-compartiment-admin:not(:first-child) {
    border-top: 1px solid var(--bord, #e2e8f0) !important;
    padding-top: 0.625rem !important;
  }
}

html[data-theme="sombre"] #tab-famille .fam-compartiment-admin,
body[data-theme="sombre"] #tab-famille .fam-compartiment-admin {
  background: transparent !important;
  border-color: var(--bord, #233060) !important;
}

html[data-theme="sombre"] #tab-famille .fam-btn-action-secondaire,
body[data-theme="sombre"] #tab-famille .fam-btn-action-secondaire {
  background: var(--surface-2, #18224a) !important;
  border-color: var(--bord, #2e3f70) !important;
  color: var(--texte, #f1f5f9) !important;
}

html[data-theme="sombre"] #tab-famille .fam-btn-action-secondaire:hover,
body[data-theme="sombre"] #tab-famille .fam-btn-action-secondaire:hover {
  background: #1e2b58 !important;
}

@media (prefers-color-scheme: dark) {
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) #tab-famille .fam-compartiment-admin {
    background: transparent !important;
    border-color: var(--bord, #233060) !important;
  }
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) #tab-famille .fam-btn-action-secondaire {
    background: var(--surface-2, #18224a) !important;
    border-color: var(--bord, #2e3f70) !important;
    color: var(--texte, #f1f5f9) !important;
  }
}

/* Pied de carte unifié, chevron d'options et interrupteur Droit à l'image */
.fam-card-footer {
  background: #f8fafc;
  border-top: 1px solid var(--bord, #e2e8f0);
  margin: 0.75rem -1rem -1rem -1rem;
  padding: 0.75rem 1rem;
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
}

@media (min-width: 640px) {
  .fam-card-footer {
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    margin-bottom: -1.25rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

.fam-btn-action-secondaire.is-open .fam-options-chevron {
  transform: rotate(180deg);
}

.fam-toggle-switch {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 2.35rem;
  height: 1.35rem;
  border-radius: 9999px;
  background: #cbd5e1;
  border: 1px solid #94a3b8;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.fam-toggle-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 9999px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.25);
  transition: transform 0.18s ease;
}

.fam-toggle-switch:checked {
  background: #1d4ed8;
  border-color: #1e40af;
}

.fam-toggle-switch:checked::after {
  transform: translateX(1rem);
}

.fam-toggle-switch:focus-visible {
  outline: 2px solid #1d4ed8;
  outline-offset: 2px;
}

html[data-theme="sombre"] .fam-card-footer,
body[data-theme="sombre"] .fam-card-footer {
  background: var(--surface-2, #18224a);
  border-top-color: var(--bord, #233060);
}

html[data-theme="sombre"] .fam-toggle-switch,
body[data-theme="sombre"] .fam-toggle-switch {
  background: #334155;
  border-color: #475569;
}

html[data-theme="sombre"] .fam-toggle-switch:checked,
body[data-theme="sombre"] .fam-toggle-switch:checked {
  background: #2563eb;
  border-color: #60a5fa;
}

@media (prefers-color-scheme: dark) {
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) .fam-card-footer {
    background: var(--surface-2, #18224a);
    border-top-color: var(--bord, #233060);
  }
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) .fam-toggle-switch {
    background: #334155;
    border-color: #475569;
  }
  :is(html[data-theme="auto"], body[data-theme="auto"], html:not([data-theme="clair"]), body:not([data-theme="clair"])) .fam-toggle-switch:checked {
    background: #2563eb;
    border-color: #60a5fa;
  }
}
