@media(max-width:760px){
html[data-coachme-premium="1"] .cm-mobile-brand{height:44px;padding:3px 8px!important;background:#fff!important;border-radius:14px!important;box-shadow:0 7px 18px rgba(0,0,0,.18)!important}
html[data-coachme-premium="1"] .cm-mobile-brand img{display:block;width:112px;height:auto}
html[data-coachme-premium="1"] .sb-toggle{display:flex!important;left:0!important;top:50%!important;width:20px!important;height:62px!important;z-index:560!important;background:#08223d!important;border-radius:0 10px 10px 0!important;box-shadow:3px 0 12px rgba(0,0,0,.28)!important}
html[data-coachme-premium="1"] body:has(.sidebar.cm-mobile-open) .sb-toggle{left:min(84vw,340px)!important}
html[data-coachme-premium="1"] .sb-toggle-arrow{font-size:11px!important;color:#d8ecff!important}
html[data-coachme-premium="1"] .cm-mobile-nav{grid-template-columns:repeat(6,minmax(0,1fr))!important;background:rgba(5,22,38,.96)!important;border-color:rgba(105,154,201,.20)!important}
html[data-coachme-premium="1"] .cm-mobile-nav button{color:#8fa7c1!important}
html[data-coachme-premium="1"] .cm-mobile-nav button.on{color:#58aaff!important;background:#12345d!important}
html[data-coachme-premium="1"] #page-dashboard .hero{background:linear-gradient(90deg,rgba(3,16,31,.95) 0%,rgba(3,27,52,.78) 50%,rgba(3,28,50,.30) 100%),url('/coachme-hero-soccer.jpg?v=20260915') center/cover!important}
html[data-coachme-premium="1"] #page-dashboard .sm-card,html[data-coachme-premium="1"] #page-dashboard .card{background:linear-gradient(145deg,#0b2035,#081927)!important;border-color:#173c5c!important;color:#f5f9ff!important}
html[data-coachme-premium="1"] #page-dashboard .sm-num,html[data-coachme-premium="1"] #page-dashboard .card-title{color:#f5f9ff!important}
body.premium-agenda-preview #page-agenda,body.premium-convocations-preview #page-convocations{color:#f4f8ff!important}
body.premium-agenda-preview #page-agenda>.card,body.premium-convocations-preview #convoc-list>.card{background:linear-gradient(145deg,#102742,#09192c)!important;border-color:rgba(130,180,225,.18)!important}
body.premium-agenda-preview #agenda-list>div[style*="background:#ffffff"]{background:#0d2239!important}
body.premium-agenda-preview #agenda-list>div[style*="background:#dbeafe"]{background:#143e6b!important}
body.premium-agenda-preview #agenda-list>div[style*="background:#ede9fe"]{background:#3b2865!important}
body.premium-agenda-preview #agenda-list>div[style*="background:#fed7aa"]{background:#503113!important}
body.premium-agenda-preview #agenda-list>div[style*="background:#fef08a"]{background:#44380b!important}
body.premium-agenda-preview #agenda-list>div:has(.ct-train){background:#104632!important}
}

/* Agenda Premium — peau visuelle pastel (fonctions natives inchangées) */
@media(max-width:760px){
html[data-coachme-premium="1"] body.premium-agenda-preview{background:#f3f6fb!important;color:#17345b!important}
html[data-coachme-premium="1"] body.premium-agenda-preview #page-agenda{color:#17345b!important}
html[data-coachme-premium="1"] body.premium-agenda-preview #agenda-premium-head{color:#17345b!important}
html[data-coachme-premium="1"] body.premium-agenda-preview .ap-title-row p{color:#7f8ea3!important}
html[data-coachme-premium="1"] body.premium-agenda-preview .ap-kpis>div{background:#fff!important;border-color:#dce4ee!important;box-shadow:0 8px 20px rgba(41,66,96,.06)!important}
html[data-coachme-premium="1"] body.premium-agenda-preview .ap-kpis span{color:#7d8ca1!important} html[data-coachme-premium="1"] body.premium-agenda-preview .ap-kpis b{color:#17345b!important}
html[data-coachme-premium="1"] body.premium-agenda-preview #month-tabs button{background:#fff!important;color:#536278!important;border:1px solid #dce4ee!important;border-radius:13px!important;box-shadow:0 5px 12px rgba(40,65,95,.05)!important}
html[data-coachme-premium="1"] body.premium-agenda-preview #month-tabs button[style*="background:var(--blue)"]{background:#234b80!important;color:#fff!important;border-color:#234b80!important}
html[data-coachme-premium="1"] body.premium-agenda-preview #page-agenda>.card{background:#fff!important;border:1px solid #dce4ee!important;box-shadow:0 10px 26px rgba(40,65,95,.06)!important;border-radius:22px!important}
html[data-coachme-premium="1"] body.premium-agenda-preview #page-agenda>.card>.card-header{background:#fff!important;border-bottom:1px solid #e6ebf2!important} html[data-coachme-premium="1"] body.premium-agenda-preview #agenda-month-title{color:#17345b!important}
html[data-coachme-premium="1"] body.premium-agenda-preview .ap-event-card{border:0!important;border-radius:16px!important;box-shadow:none!important;color:#17345b!important}
html[data-coachme-premium="1"] body.premium-agenda-preview .ap-event-card[data-kind="match"]{background:#d9e7f8!important} html[data-coachme-premium="1"] body.premium-agenda-preview .ap-event-card[data-kind="rattrapage"]{background:#eadff9!important}
html[data-coachme-premium="1"] body.premium-agenda-preview .ap-event-card[data-kind="train"]{background:#dff3e8!important} html[data-coachme-premium="1"] body.premium-agenda-preview .ap-event-card[data-kind="spec"]{background:#eceff4!important}
html[data-coachme-premium="1"] body.premium-agenda-preview .ap-event-card[data-kind="tournoi"]{background:#ffd5a6!important} html[data-coachme-premium="1"] body.premium-agenda-preview .ap-event-card[data-kind="coupe"]{background:#fff0a7!important}
html[data-coachme-premium="1"] body.premium-agenda-preview .ap-event-card [style*="color:var(--gray-800)"]{color:#17345b!important} html[data-coachme-premium="1"] body.premium-agenda-preview .ap-event-card [style*="color:var(--gray-400)"]{color:#8d9aae!important}
html[data-coachme-premium="1"] body.premium-agenda-preview .ap-action-unvalidate{background:#f3f5f8!important;color:#596779!important} html[data-coachme-premium="1"] body.premium-agenda-preview .ap-action-validate{background:#d8f4df!important;color:#267242!important}
html[data-coachme-premium="1"] body.premium-agenda-preview .ap-icon-edit{background:#eef5fc!important;color:#4c78a6!important} html[data-coachme-premium="1"] body.premium-agenda-preview .ap-icon-delete{background:#ffe3e5!important;color:#b45a63!important}
}

/* Variante sombre de la même peau pastel */
@media(max-width:760px){
html[data-coachme-premium="1"][data-theme="dark"] body.premium-agenda-preview{background:#071522!important;color:#eef5fc!important}
html[data-coachme-premium="1"][data-theme="dark"] body.premium-agenda-preview #page-agenda,html[data-coachme-premium="1"][data-theme="dark"] body.premium-agenda-preview #agenda-premium-head{color:#eef5fc!important}
html[data-coachme-premium="1"][data-theme="dark"] body.premium-agenda-preview .ap-kpis>div,html[data-coachme-premium="1"][data-theme="dark"] body.premium-agenda-preview #page-agenda>.card{background:#102338!important;border-color:#23415d!important}
html[data-coachme-premium="1"][data-theme="dark"] body.premium-agenda-preview #page-agenda>.card>.card-header{background:#102338!important;border-color:#23415d!important} html[data-coachme-premium="1"][data-theme="dark"] body.premium-agenda-preview #agenda-month-title{color:#eef5fc!important}
html[data-coachme-premium="1"][data-theme="dark"] body.premium-agenda-preview #month-tabs button{background:#102338!important;color:#a9bdd1!important;border-color:#274965!important} html[data-coachme-premium="1"][data-theme="dark"] body.premium-agenda-preview #month-tabs button[style*="background:var(--blue)"]{background:#234b80!important;color:#fff!important}
html[data-coachme-premium="1"][data-theme="dark"] body.premium-agenda-preview .ap-event-card[data-kind="match"]{background:#294b69!important} html[data-coachme-premium="1"][data-theme="dark"] body.premium-agenda-preview .ap-event-card[data-kind="rattrapage"]{background:#4a4263!important}
html[data-coachme-premium="1"][data-theme="dark"] body.premium-agenda-preview .ap-event-card[data-kind="train"]{background:#315445!important} html[data-coachme-premium="1"][data-theme="dark"] body.premium-agenda-preview .ap-event-card[data-kind="spec"]{background:#3d4854!important}
html[data-coachme-premium="1"][data-theme="dark"] body.premium-agenda-preview .ap-event-card[data-kind="tournoi"]{background:#5b4939!important} html[data-coachme-premium="1"][data-theme="dark"] body.premium-agenda-preview .ap-event-card[data-kind="coupe"]{background:#5b5539!important}
html[data-coachme-premium="1"][data-theme="dark"] body.premium-agenda-preview .ap-event-card [style*="color:var(--gray-800)"]{color:#f0f5fb!important} html[data-coachme-premium="1"][data-theme="dark"] body.premium-agenda-preview .ap-event-card [style*="color:var(--gray-400)"]{color:#b0bfd0!important}
}

/* === Couleurs métier EXACTES CoachMe normal — source prod === */
/* On conserve le graphisme Premium ; seuls les fonds/couleurs métier sont repris. */
body.premium-agenda-preview .ap-event-card[data-kind="match"],
body.premium-agenda-preview .ap-event-card[data-kind="rattrapage"]{
  background:#dbeafe!important;
  border-color:#bfdbfe!important;
}
body.premium-agenda-preview .ap-event-card[data-kind="tournoi"]{
  background:#fed7aa!important;
  border-color:#fdba74!important;
}
body.premium-agenda-preview .ap-event-card[data-kind="coupe"]{
  background:#fef08a!important;
  border-color:#fde047!important;
}
body.premium-agenda-preview .ap-event-card[data-kind="train"]{
  background:#ffffff!important;
  border-color:#e5e7eb!important;
}
body.premium-agenda-preview .ap-event-card[data-kind="spec"]{
  background:#e5e7eb!important;
  border-color:#d1d5db!important;
}
body.premium-agenda-preview .ap-event-card[data-kind="match"]:before,
body.premium-agenda-preview .ap-event-card[data-kind="rattrapage"]:before{background:#60a5fa!important}
body.premium-agenda-preview .ap-event-card[data-kind="tournoi"]:before{background:#fb923c!important}
body.premium-agenda-preview .ap-event-card[data-kind="coupe"]:before{background:#eab308!important}
body.premium-agenda-preview .ap-event-card[data-kind="train"]:before{background:#22c55e!important}
body.premium-agenda-preview .ap-event-card[data-kind="spec"]:before{background:#9ca3af!important}
/* Les cartes pastel gardent un texte foncé, y compris en mode sombre. */
html[data-theme="dark"] body.premium-agenda-preview .ap-event-card[data-kind]{color:#1f2937!important}
html[data-theme="dark"] body.premium-agenda-preview .ap-event-card[data-kind] [style*="color:var(--gray-800)"]{color:#1f2937!important}
html[data-theme="dark"] body.premium-agenda-preview .ap-event-card[data-kind] [style*="color:var(--gray-400)"]{color:#64748b!important}

/* Verrouillage final : palette EXACTE de CoachMe normal */
html[data-coachme-premium="1"] body.premium-agenda-preview .ap-event-card[data-kind="match"],
html[data-coachme-premium="1"] body.premium-agenda-preview .ap-event-card[data-kind="rattrapage"],
html[data-coachme-premium="1"][data-theme="dark"] body.premium-agenda-preview .ap-event-card[data-kind="match"],
html[data-coachme-premium="1"][data-theme="dark"] body.premium-agenda-preview .ap-event-card[data-kind="rattrapage"]{background:#dbeafe!important;border-color:#bfdbfe!important;color:#1f2937!important}
html[data-coachme-premium="1"] body.premium-agenda-preview .ap-event-card[data-kind="tournoi"],
html[data-coachme-premium="1"][data-theme="dark"] body.premium-agenda-preview .ap-event-card[data-kind="tournoi"]{background:#fed7aa!important;border-color:#fdba74!important;color:#1f2937!important}
html[data-coachme-premium="1"] body.premium-agenda-preview .ap-event-card[data-kind="coupe"],
html[data-coachme-premium="1"][data-theme="dark"] body.premium-agenda-preview .ap-event-card[data-kind="coupe"]{background:#fef08a!important;border-color:#fde047!important;color:#1f2937!important}
html[data-coachme-premium="1"] body.premium-agenda-preview .ap-event-card[data-kind="train"],
html[data-coachme-premium="1"][data-theme="dark"] body.premium-agenda-preview .ap-event-card[data-kind="train"]{background:#ffffff!important;border-color:#e5e7eb!important;color:#1f2937!important}
html[data-coachme-premium="1"] body.premium-agenda-preview .ap-event-card[data-kind="spec"],
html[data-coachme-premium="1"][data-theme="dark"] body.premium-agenda-preview .ap-event-card[data-kind="spec"]{background:#e5e7eb!important;border-color:#d1d5db!important;color:#1f2937!important}
html[data-coachme-premium="1"] body.premium-agenda-preview .ap-event-card[data-kind] [style*="color:var(--gray-800)"],
html[data-coachme-premium="1"][data-theme="dark"] body.premium-agenda-preview .ap-event-card[data-kind] [style*="color:var(--gray-800)"]{color:#1f2937!important}
html[data-coachme-premium="1"] body.premium-agenda-preview .ap-event-card[data-kind] [style*="color:var(--gray-400)"],
html[data-coachme-premium="1"][data-theme="dark"] body.premium-agenda-preview .ap-event-card[data-kind] [style*="color:var(--gray-400)"]{color:#64748b!important}

/* === DARK CONTRAST AUDIT — 20260922 ===
   Le branding club est conserve en mode clair. En mode sombre, les variables
   de texte/accent doivent rester lisibles meme si applyClubConfig les a posees en inline. */
html[data-coachme-premium="1"][data-theme="dark"]{
  --blue:#2d8cff!important;
  --blue-dark:#dcecff!important;
  --blue-light:#58adff!important;
  --green:#35d69a!important;
  --green-dark:#57e0ad!important;
  --orange:#f5b84f!important;
  --red:#ff6475!important;
}

/* Reglages : anciens chips clairs + cartouches convertis en sombre. */
html[data-coachme-premium="1"][data-theme="dark"] #page-reglages .rs-chip{
  background:#0b2034!important;color:#c4d2e2!important;border-color:#355773!important;
}
html[data-coachme-premium="1"][data-theme="dark"] #page-reglages .rs-chip.on{
  background:linear-gradient(135deg,#0d5aa8,#0a4380)!important;color:#fff!important;border-color:#248cf0!important;
}
html[data-coachme-premium="1"][data-theme="dark"] #page-reglages [style*="background:#eff6ff"] [style*="color:#1e3a8a"]{color:#b9dcff!important;}
html[data-coachme-premium="1"][data-theme="dark"] #page-reglages [style*="background:#eff6ff"] [style*="color:#475569"]{color:#aebfd1!important;}
html[data-coachme-premium="1"][data-theme="dark"] #page-reglages [style*="color:#166534"]{color:#8aefc6!important;border-color:#39b98b!important;}
html[data-coachme-premium="1"][data-theme="dark"] #page-reglages [style*="color:#b45309"]{color:#ffd071!important;}

/* Modales legacy : certains fonds pastel sont convertis en sombre ; leurs textes le sont aussi. */
html[data-coachme-premium="1"][data-theme="dark"] .modal [style*="color:#1e3a5f"],
html[data-coachme-premium="1"][data-theme="dark"] .modal [style*="color:#1e3a8a"],
html[data-coachme-premium="1"][data-theme="dark"] .modal [style*="color:#1e40af"]{color:#b9dcff!important;}
html[data-coachme-premium="1"][data-theme="dark"] .modal [style*="color:#475569"]{color:#aebfd1!important;}
html[data-coachme-premium="1"][data-theme="dark"] .modal [style*="color:#1d6fa4"],
html[data-coachme-premium="1"][data-theme="dark"] .modal [style*="color:#1d4ed8"]{color:#7fc4ff!important;}
html[data-coachme-premium="1"][data-theme="dark"] .modal [style*="color:#065f46"],
html[data-coachme-premium="1"][data-theme="dark"] .modal [style*="color:#166534"]{color:#8aefc6!important;}
html[data-coachme-premium="1"][data-theme="dark"] .modal [style*="color:#991b1b"],
html[data-coachme-premium="1"][data-theme="dark"] .modal [style*="color:#b91c1c"]{color:#ff9aa5!important;}
html[data-coachme-premium="1"][data-theme="dark"] .modal [style*="color:#92400e"],
html[data-coachme-premium="1"][data-theme="dark"] .modal [style*="color:#b45309"]{color:#ffd071!important;}

/* Synchronisation FFF/FAL : anciens textes fixes sur cartes sombres. */
html[data-coachme-premium="1"][data-theme="dark"] #page-sync-fff [style*="color:#334155"]{color:#dce8f4!important;}
html[data-coachme-premium="1"][data-theme="dark"] #page-sync-fff [style*="color:#475569"],
html[data-coachme-premium="1"][data-theme="dark"] #page-sync-fff [style*="color:#64748b"]{color:#9eb2c8!important;}
html[data-coachme-premium="1"][data-theme="dark"] #page-sync-fff [style*="color:#166534"]{color:#8aefc6!important;}
html[data-coachme-premium="1"][data-theme="dark"] #page-sync-fff [style*="color:#1d4ed8"]{color:#7fc4ff!important;}
html[data-coachme-premium="1"][data-theme="dark"] #page-sync-fff [style*="color:#9a3412"],
html[data-coachme-premium="1"][data-theme="dark"] #page-sync-fff [style*="color:#b45309"]{color:#ffbd82!important;}
html[data-coachme-premium="1"][data-theme="dark"] #page-sync-fff [style*="color:#b91c1c"]{color:#ff9aa5!important;}

/* Joueurs : le bouton de tri ne doit jamais reprendre le style natif gris du navigateur. */
body.premium-native-spa #page-joueurs .pp-sort{
  appearance:none;-webkit-appearance:none;border:0;background:transparent;color:var(--pp-blue);padding:4px 2px;font:850 9px/1 inherit;cursor:pointer;
}

/* Tresorerie V3 : les titres utilisaient l'ancienne couleur club sombre comme couleur de texte. */
html[data-coachme-premium="1"][data-theme="dark"] #page-tresorerie .t3-head h2,
html[data-coachme-premium="1"][data-theme="dark"] #page-tresorerie .t3-tab.active,
html[data-coachme-premium="1"][data-theme="dark"] #page-tresorerie .t3-kpi strong,
html[data-coachme-premium="1"][data-theme="dark"] #page-tresorerie .t3-alert strong,
html[data-coachme-premium="1"][data-theme="dark"] #page-tresorerie .t3-card-head h3,
html[data-coachme-premium="1"][data-theme="dark"] #page-tresorerie .t3-dot-card h4,
html[data-coachme-premium="1"][data-theme="dark"] #page-tresorerie .t3-dot-card .price,
html[data-coachme-premium="1"][data-theme="dark"] #page-tresorerie .t3-piece-row strong,
html[data-coachme-premium="1"][data-theme="dark"] #page-tresorerie .t3-budget-card-head>strong,
html[data-coachme-premium="1"][data-theme="dark"] #page-tresorerie .t3-budget-values b,
html[data-coachme-premium="1"][data-theme="dark"] #page-tresorerie .t3-ticket-title strong,
html[data-coachme-premium="1"][data-theme="dark"] #page-tresorerie .t3-ticket-numbers b,
html[data-coachme-premium="1"][data-theme="dark"] #page-tresorerie .t3-mini-title,
html[data-coachme-premium="1"][data-theme="dark"] #page-tresorerie .treso-event-kpi strong{color:var(--cm-text)!important;}

/* Contraste des actions colorees : texte sombre sur accents tres lumineux. */
html[data-coachme-premium="1"][data-theme="dark"] .btn-green,
html[data-coachme-premium="1"][data-theme="dark"] .nav-badge.nb-green{color:#071625!important;}
html[data-coachme-premium="1"][data-theme="dark"] body.premium-native-spa #page-joueurs .pp-filter.active{
  background:#0d5aa8!important;border-color:#248cf0!important;color:#fff!important;
}
html[data-coachme-premium="1"][data-theme="dark"] #page-convocations #cvoc-create-btns .btn-primary,
html[data-coachme-premium="1"][data-theme="dark"] #page-convocations .btn-primary[style*="background:var(--orange)"],
html[data-coachme-premium="1"][data-theme="dark"] #page-convocations .btn-primary[style*="background:#eab308"]{color:#071625!important;}
html[data-coachme-premium="1"][data-theme="dark"] #page-convocations #cvoc-create-btns .btn-primary[style*="background:#1a3a6b"]{color:#fff!important;}
html[data-coachme-premium="1"][data-theme="dark"] #compo-tab-11[style*="color: white"],
html[data-coachme-premium="1"][data-theme="dark"] #compo-tab-8[style*="color: white"],
html[data-coachme-premium="1"][data-theme="dark"] #compo-tab-5[style*="color: white"]{color:#071625!important;}

/* Derniers cas détectés par l'audit de contraste : sélection d'équipe et confirmations destructives. */
html[data-coachme-premium="1"][data-theme="dark"] #modal-convoc #convoc-equipe-checks button[style*="background:var(--green-dark)"],
html[data-coachme-premium="1"][data-theme="dark"] #modal-convoc #convoc-equipe-checks button[style*="background:var(--blue)"],
html[data-coachme-premium="1"][data-theme="dark"] #modal-convoc #convoc-equipe-checks button[style*="background:#0ea5e9"]{color:#071625!important;}
html[data-coachme-premium="1"][data-theme="dark"] #modal-convoc #convoc-equipe-checks button[style*="background:#1a3a6b"]{color:#fff!important;}
html[data-coachme-premium="1"][data-theme="dark"] #modal-suppr-msg .btn-primary,
html[data-coachme-premium="1"][data-theme="dark"] #modal-suppr-tous .btn-primary,
html[data-coachme-premium="1"][data-theme="dark"] #modal-vider-compo .btn-primary{color:#071625!important;}
/* Theme clair — navigation mobile */
@media(max-width:760px){
html[data-coachme-premium="1"]:not([data-theme="dark"]) .cm-mobile-nav{
  background:rgba(255,255,255,.96)!important;
  border-color:#d7e1eb!important;
  box-shadow:0 16px 40px rgba(31,62,94,.14)!important;
}
html[data-coachme-premium="1"]:not([data-theme="dark"]) .cm-mobile-nav button{
  color:#657b90!important;
}
html[data-coachme-premium="1"]:not([data-theme="dark"]) .cm-mobile-nav button.on{
  color:#147fe8!important;
  background:#e9f3ff!important;
  box-shadow:inset 0 0 0 1px #cfe3f7!important;
}
html[data-coachme-premium="1"]:not([data-theme="dark"]) .sb-toggle{
  background:#edf5fc!important;
  box-shadow:3px 0 12px rgba(31,62,94,.12)!important;
}
html[data-coachme-premium="1"]:not([data-theme="dark"]) .sb-toggle-arrow{color:#315a7d!important}
}