/* Club Pilot 2.0 · polissage visuel (audit unslop, 7 nov. 2026)
   Feuille partagée, raccordée juste après le dernier </style> de chaque page
   (contrôlé par verifier-paquet : aucun style ne la suit).
   Chaque étape est délimitée par un marqueur : elle peut être livrée seule
   (les étapes suivantes supposent les précédentes).
   Elle ne touche ni la structure des pages, ni les scripts, ni les droits.
   Direction artistique conservée : lime #CCF71B, Hanken Grotesk, fond olive. */

/* ===== ÉTAPE 1 · Palette, logo et dates uniques ===== */

/* 1.1 Une seule rampe de neutres sur les pages sombres : l'Administration
   abandonne sa rampe bleue (second :root de admin.html) au profit de celle
   des pages coach et du pilotage. Même nom de variables, mêmes valeurs. */
html.cpb-pil{
  --bg:#0A0B08;--glass:#11130E;--panel:#15170F;--panel2:#1C1E16;
  --ink:#F4F5F0;--ink2:#A5A79B;--ink3:#6F7168;
  --hair:rgba(255,255,255,.07);--hair2:rgba(255,255,255,.12);
}
/* Les pages coach (Aujourd'hui, Planning, Résultats) sont claires : leurs variables ne sont pas touchées. */
/* Administration : surfaces bleues codées en dur, ramenées à la rampe olive */
html.cpb-pil body{background:#0A0B08}
html.cpb-pil .app{background:radial-gradient(120% 100% at 40% 0%,#1C1E16 0,#0A0B08 60%)}
html.cpb-pil .dv{background:linear-gradient(180deg,#15170F,#11130E)}
html.cpb-pil .prop{background:linear-gradient(180deg,#1C1E16,#15170F)}
html.cpb-pil .dc.sel,html.cpb-pil .dt.sel{background:linear-gradient(180deg,#1C1E16,#15170F)}
html.cpb-pil .hdx-m{background:#1C1E16;box-shadow:0 24px 60px rgba(0,0,0,.55),inset 0 0 0 1px rgba(255,255,255,.1)}
html.cpb-pil .mt-toast,html.cpb-pil #cs-toast{background:#15170F}
html.cpb-pil .fb.th-d{--fb-bg:#15170F;--fb-ink2:#A5A79B;--fb-hair:rgba(255,255,255,.12);--fb-soft:#1C1E16;--fb-soft2:#24251F}

/* 1.2 Logo : le signe reste plat, sans halo lime, sur toutes les pages.
   Le mot-marque « Club Pilot » garde un seul poids (600), au lieu de
   « Club » en 500 et « Pilot » en 800. */
.mk .cpm{filter:drop-shadow(0 18px 40px rgba(0,0,0,.45))}
.lg b,.logo b,.wm span[style]{font-weight:600!important}
.logo .wm span[style]{font-weight:600!important}

/* 1.3 Texte atténué : #6F7168 sur panneau donne 3,6:1. On l'éclaircit un peu
   (#85877A, 4,9:1) pour les métadonnées lisibles. */
.dk .lbl,.dk .clbl,.cv.dark .z5-note,.cv.dark .fsub,.cv.dark .m10-ks,html.cpb-pil .lbl{color:#85877A}

/* ===== ÉTAPE 2 · Accent lime et halos ===== */

/* 2.1 Halos lime retirés des composants (le halo reste sur la carte et le plan 3D) */
:is(html.cpb-pil,.cv.dark,.dk) :is(.ov .mbar i.m-mt,.hd .btn,.hd button,.top .ib,.top .av,.pnl .btn,.btn.lime,.go-btn:hover,.chip,.z5-days button,.z5-days span,.av):not(:focus-visible):not(.alerte):not(.err):not([aria-invalid=true]){box-shadow:none}
/* Focus clavier : anneau net, jamais retiré */
:is(.hd .btn,.hd button,.top .ib,.pnl .btn,.btn,.chip,.z5-days button,.av,.go-btn):focus-visible{box-shadow:0 0 0 2px var(--bg,#0A0B08),0 0 0 4px var(--lime,#CCF71B)}
/* Désactivé : lisible comme tel, sans halo */
:is(.btn,.pnl .btn,.z5-days button,.chip)[disabled],:is(.btn,.pnl .btn,.z5-days button,.chip)[aria-disabled=true]{opacity:.45;cursor:not-allowed}
.lg1 .ndl,#hud .vise{filter:none}

/* 2.2 L'accent se concentre : tuile d'icône neutre avec icône lime, anneau
   d'avatar en filet, badge « Exclusif » en lime sur fond neutre. */
.cv.dark .pnl .emb.c-exc,.cv.dark .pnl .emb.c-obl,.cv.dark .pnl .emb.c-par{background:#1C1E16;color:var(--lime,#CCF71B)}
.cv.dark .pnl .emb.c-par{color:#8AC9CE}
.cv.dark .av,.top .av{outline-color:rgba(255,255,255,.18);outline-width:1.5px;outline-offset:2px}
.cv.dark .pnl .chip.c-exc,.cv.dark .pnl .chip.c-obl{background:rgba(204,247,27,.12);color:var(--lime,#CCF71B)}
.cv.dark .pnl .chip.c-par{background:rgba(138,201,206,.14);color:#8AC9CE}

/* 2.3 Pastilles de jours hors édition : lime atténué (le lime plein reste
   pour les jours sélectionnés en édition). */
.cv.dark .z5-days span.on{background:rgba(204,247,27,.18);color:var(--lime,#CCF71B)}
.z5-days button[aria-pressed=true]{background:var(--lime,#CCF71B);color:#12140C}

/* 2.4 Lavis lime sur les lignes sélectionnées → palier de surface */
:is(html.cpb-pil,.cv.dark) :is(.row.sel,.cfx-seg .on,#stage .cfx-row.sel){background-image:none;background-color:#24251F}

/* 2.5 Engrenage en édition : lime, comme le reste de la sélection (plus d'ambre) */
.z5-settings[aria-expanded=true]{color:var(--lime,#CCF71B);border-color:var(--lime,#CCF71B)}
.z5-settings:focus-visible{outline-color:var(--lime,#CCF71B)}

/* ===== ÉTAPE 3 · Typographie ===== */

/* 3.1 Libellés en majuscules : 600 au lieu de 800, tracking .06em au lieu de .10 à .16em */
:is(.pnl .clbl,.lbl,.clbl,.m10-kl,.alc-h>span,.alc-k,.alv-k span,.th button,.bed-k,.bed-lb,
.ville,.club .ix,.lab,.tag,.hudT .nav2 .nr.cl .lbl,.cs-k,.k-l,.tac-k,.s .k,.s2 .k,
.z5-review h3,.fhd .lbl):not(dialog *):not([role=dialog] *){font-weight:600!important;letter-spacing:.06em!important}
/* En-têtes de tableau : graisse calmée, sans forcer l'espacement (libellés longs) */
:is(.alv-t th,thead th){font-weight:600}
.tag{font-weight:500!important;letter-spacing:.12em!important}

/* 3.2 Titres : la taille fait la hiérarchie, pas la graisse */
:is(h1,h2,.pnl h2,.fh h2,.ttl,#t2,.ps-ovl h1,.rpl-h h2,.ops-h h2,.bed h2):not(dialog *):not([role=dialog] *){font-weight:600!important}
h3{font-weight:600}

/* 3.3 Tracking négatif réservé aux grands corps */
.btn,.bed-hd,nav.navp>*,html.cp-tel nav.navp>*,.fhd>b.num,.ops-kpi b{letter-spacing:0!important}
.num{letter-spacing:0}
.ps-ovl h1,.ttl{letter-spacing:-.02em!important}

/* 3.4 Chiffres alignés partout */
.num,.k,td,.stat b,.m10-k b,.alv-k b,.ops-kpi b,.bar+b,.tac-pr,.cl-n{font-variant-numeric:tabular-nums}

/* 3.5 Graisses extrêmes ramenées à 700 maximum (les fichiers 800/900 peuvent être retirés de polices.css) */
.alc-h>span,.alc-r .lnk,.alc-hi summary,.alc-f>span,.alc-cf .lnk,.alv-k b,.alv-wk b,.alv-l em,.alv-d,.alv-go,.rpl-k,
.av,.go-btn,.vis .y li::before,.vis .n li::before{font-weight:600!important}

/* ===== ÉTAPE 4 · Composants et icônes ===== */

/* 4.1 Pastilles de jours : même géométrie en lecture et en édition. */
.z5-days{--cp-day-size:24px;gap:4px}
.z5-days > :is(button,span),
html.cp-tel .cp-block-config .z5-days > button{
  box-sizing:border-box;flex:0 0 auto;
  width:var(--cp-day-size);height:var(--cp-day-size);
  min-width:var(--cp-day-size);min-height:var(--cp-day-size);
  line-height:var(--cp-day-size);font-size:11px;font-weight:600;border-radius:6px
}
.z5-days button{position:relative}
/* Zone de toucher 28 px : 2 px de chaque côté, soit la moitié de l'espacement.
   Les zones de deux jours voisins se touchent sans se recouvrir. */
.z5-days button::after{content:"";position:absolute;inset:-2px}
html.cp-tel .z5-days{gap:8px}
html.cp-tel .z5-days button::after{inset:-4px}

/* 4.2 Rayons imbriqués : panneau 20 px, lignes 8 px avec marge 8 px et espacement 4 px */
.fq,.fr,.fs{border-radius:20px}
.z5-rows{gap:4px}
.z5-rows li{border-radius:8px;padding:8px}

/* 4.3 Rayons selon la taille : boutons 10 px, badges 6 px ; la pilule reste
   pour la barre d'onglets, les avatars et les pastilles de notification. */
.btn,.pnl .btn,.go-btn,.fb-btn,.ib:not(.lime){border-radius:10px}
.chip,.badge,.pill{border-radius:6px}
.btn.sm{border-radius:8px}

/* 4.4 Décoration étoilée retirée des nouveautés (Résultats) */
/* L'étoile animée devient une mention fixe « Nouveau » : la nouveauté reste identifiable. */
.rq-mso.neuf::after{content:"Nouveau"!important;animation:none!important;font-size:10px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--lime,#CCF71B);margin:-22px 0 0 0}

/* ===== ÉTAPE 5 · Mouvement et téléphone ===== */

/* 5.1 Plus de boucles décoratives ; seuls les voyants en direct battent */
/* Décoratif : arrêté. */
.ov .hint i,.ib29 .ib-orb .core svg,.cl-r.cl-on.ouvert .cl-imp{animation:none!important}
/* Critique : la barre rouge reste visible à l'arrêt ; seul le battement du halo est retiré. */
.cl-r.crit::before{animation:none!important}
/* Action attendue : battement conservé (signal utile), repère fixe ajouté,
   et arrêt complet si l'utilisateur demande moins de mouvement. */
.cl-r[data-moi] .cl-j.cour.m-action .cl-d,.cl-r.cl-on.ouvert .cl-jw .cl-j.cour .cl-d{outline:2px solid var(--lime,#CCF71B);outline-offset:2px}

/* 5.2 Transitions nommées, une seule courbe */
.toast{transition:transform .2s var(--ease,cubic-bezier(.22,1,.36,1)),opacity .2s var(--ease,cubic-bezier(.22,1,.36,1))!important}
.club:hover .ix::before,.club:focus-visible .ix::before{transform:none}
/* Mouvement réduit : placé après les transitions pour l'emporter (même spécificité). */
@media (prefers-reduced-motion:reduce){
  .cl-r[data-moi] .cl-j.cour.m-action .cl-d,.cl-r.cl-on.ouvert .cl-jw .cl-j.cour .cl-d,.rq-mso.neuf{animation:none!important}
  .toast,.mt-toast,#cs-toast{transition:none!important}
}

/* 5.3 Page d'entrée sur téléphone : la carte tient dans la largeur, sans débordement */
@media (max-width:760px){
  #carte3d{width:100vw!important;max-width:100vw!important;left:0!important}
}

/* ===== ÉTAPE 6 · Mouvement : retour d'appui, boucles et durées (audit du 12/11/2026, choix de Malik) =====
   Constat seulement dans claude/v85/AUDIT_MOTION_EMIL_1211.md. Ne change ni structure, ni scripts, ni droits. */

/* 6.1 Retour d'appui : tout élément pressable s'enfonce légèrement (160 ms, courbe de sortie).
   Spécificité nulle (:where) : une règle d'animation propre à un composant garde la priorité.
   .ib et .btn ont déjà leur retour d'appui. « Mouvement réduit » : la règle globale des pages le rend immédiat. */
@keyframes cp-appui{to{scale:.97}}
:where(button,[role="button"],summary):where(:not(:disabled,[aria-disabled="true"],.ib,.btn)):active{animation:cp-appui .16s cubic-bezier(.23,1,.32,1) forwards}
/* lignes larges (tâches d'Aujourd'hui) : même retour, amplitude réduite */
@keyframes cp-appui-l{to{scale:.985}}
:where(button.cl):active{animation-name:cp-appui-l}

/* 6.2 Boucles décoratives : les chevrons d'Aujourd'hui restent affichés, immobiles
   (le logo ne s'alterne plus toutes les 5 s : voir cpm.js). Les alertes (pulR, vigp) et l'heure courante (nowp) gardent leur pulsation. */
html body svg.fx path.chev{animation:none}
html body svg.fx g[style*="--L"] path.chev{opacity:.55}
html body svg.fx g[style*="--L"] path.chev:nth-child(2){transform:translateX(10px)}
html body svg.fx g[style*="--L"] path.chev:nth-child(3){transform:translateX(20px)}

/* 6.3 Jauges, barres, anneaux et curseurs : 0,25 s au lieu de 0,5 à 1,6 s (mêmes courbes, mêmes délais). */
html body .alv-b i{transition-duration:.2s}
html body .bar i{transition-duration:.2s}
html body .capbar i{transition-duration:.2s}
html body .capbar i u{transition-duration:.2s}




html body .cl-js::after{transition-duration:.2s}
html body .dist .dt{transition-duration:.2s}
html body .dist .md{transition-duration:.2s}

html body .fitb .bar b{transition-duration:.2s}

html body .hb .ld{transition-duration:.2s}
html body .ib-at .ib-stp .fill{transition-duration:.2s}
html body .ib29 .ib-bar i{transition-duration:.2s,.3s}
html body .ib29 .ib-gauge .tr i{transition-duration:.2s,.2s,.3s}
html body .pb-s{transition-duration:.2s}


html body .ring{transition-duration:.2s}
html body .ring path.fill{transition-duration:.2s}
html body .rq-b i{transition-duration:.2s}
html body .rw .vb .b u{transition-duration:.2s}

html body .st .mb b{transition-duration:.2s}
html body .stack i{transition-duration:.2s,.3s}
html body .ta-p{transition-duration:.2s}
html body .ta-s{transition-duration:.2s}
html body .tm{transition-duration:.2s}
html body .tw{transition-duration:.2s,.2s}
html body .wsv .cap b{transition-duration:.2s}
html body .wsv .cap b i{transition-duration:.2s}

/* ===== ÉTAPE 7 · Améliorations UI validées le 12/11/2026 (planche avant / après, D-UI-1211 et Q-UI-1) ===== */
/* n° 1 · Aujourd'hui : une ligne de boutons de 40 px, menu « Autres », liste sans barre de défilement + flèche */
html body .ws .act.ws-act{position:relative;flex-wrap:nowrap!important;gap:8px!important;padding-top:12px!important}
html body .ws .act.ws-act>.btn{height:40px!important;padding:0 16px!important;font-size:15px!important;border-radius:12px}
html body .ws .act.ws-act>.btn.pri{flex:1 1 auto;background:#050505;color:#fff!important}
html body .ws .act.ws-act>.btn.out{flex:0 0 auto;background:#F2FBCF;color:#050505;box-shadow:inset 0 0 0 2px #050505}
html body .ws .act.ws-act>.ws-more svg{fill:currentColor}
html body .ws-mn{display:none;position:absolute;right:0;bottom:calc(100% + 8px);z-index:40;min-width:270px;max-width:min(360px,100%);flex-direction:column;background:#fff;color:#111;border-radius:16px;padding:6px;box-shadow:0 14px 34px rgba(0,0,0,.22),0 0 0 1px rgba(0,0,0,.06)}
html body .ws-mn.on{display:flex}
html body .ws-mn>.btn,html body .ws-mn>a.btn{display:flex;justify-content:space-between;gap:12px;width:100%;height:44px;padding:0 12px;border-radius:10px;background:transparent;color:#111;box-shadow:none;border:0;font-size:14.5px;font-weight:600;text-align:left;text-decoration:none}
html body .ws-mn>.btn svg{display:none}
html body .ws-mn>.btn small{color:#6B6B63;font-weight:500;font-size:13px;max-width:55%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body .ws-mn>.btn:focus-visible{outline:2px solid #050505;outline-offset:-2px}
html body .ws-mn>.btn.ws-nd{color:#B42318}
html body .ws-mn .ws-sep{height:1px;background:rgba(0,0,0,.1);margin:4px 8px}
@media (hover:hover) and (pointer:fine){html body .ws-mn>.btn:hover{background:#F3F2EC}}
html body .ws .swap>.scrolly{scrollbar-width:none}
html body .ws .swap>.scrolly::-webkit-scrollbar{display:none}
html body .ws .ws-fl{position:relative;height:0;flex:0 0 auto;pointer-events:none}
html body .ws .ws-fl>span{position:absolute;left:50%;bottom:4px;transform:translate(-50%,4px);width:30px;height:20px;border-radius:999px;background:#050505;color:#CCF71B;display:grid;place-items:center;opacity:0;transition:opacity .2s,transform .2s}
html body .ws .ws-fl.on>span{opacity:1;transform:translate(-50%,0)}
/* n° 2 · un seul modèle d'en-tête de volet : sur-titre, titre 25 px, croix 44 px au même endroit (couleurs clair / sombre conservées) */
html body .fb-ey{display:flex;align-items:center;gap:8px;margin:2px 0 6px;font-size:10.5px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:var(--fb-ink,#14160F);opacity:.62}
html body .fb-ey i{width:7px;height:7px;border-radius:50%;background:currentColor;display:inline-block}
html body .fb-h h2{font-size:25px;font-weight:600;letter-spacing:-.02em}
html body .fb-x{width:44px;height:44px;top:16px;right:16px;display:grid;place-items:center;font-size:22px}
html body .con .cx{width:44px;height:44px;top:16px;right:16px}
/* n° 3 · Mes blocs : textes de la carte à 13 px minimum, durée en gras (la fiche ne change pas) */
html body .cg .cg-m,html body .cg .cg-m strong{font-size:13px!important}
html body .cg .cg-m{color:rgba(244,245,240,.86)}
html body .cg .cg-m strong{font-weight:700;color:#F4F5F0}
html body .cg .cg-lbl,html body .cg .cg-zv,html body .cg .cg-av,html body .cg em.cf,html body .cg .cg-cap b,html body .cg .cg-cap span{font-size:13px!important}
/* n° 6 · coche instantanée (l'enregistrement ne change pas) */
html body .ck,html body .ck svg{transition:none!important}
