/* Habillage 2026 « Verre + Éclat » du CRM M&R Solutions (admin, app, bo).
   Tout est conditionné par l'attribut data-habillage="2026" posé sur <html> par theme-init.js :
   sans cet attribut, aucune règle ne s'applique et le CRM garde exactement son habillage précédent.
   Ce fichier ne masque et ne déplace rien : polices, couleurs, relief et arrondis seulement.
   Couleurs M&R : rose #E91E8C, mauve, bleu #213CA0, blanc. Le dégradé rose, mauve, bleu est la signature ;
   le rose reste présent en touches, jamais en grand voile sur les fonds.
   Thème clair d'abord (thème par défaut depuis le 01/10/2026) ; le thème sombre ne reçoit que les polices et la signature. */

/* Polices de la charte, hébergées avec le front. Noms de famille propres à l'habillage :
   l'ancien habillage ne les référence pas, donc ne les charge pas. */
@font-face{font-family:"MR Inter";src:url("/fonts/inter-latin-400-normal.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"MR Inter";src:url("/fonts/inter-latin-500-normal.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"MR Inter";src:url("/fonts/inter-latin-600-normal.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"MR Inter";src:url("/fonts/inter-latin-700-normal.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"MR Space Grotesk";src:url("/fonts/space-grotesk-latin-500-normal.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"MR Space Grotesk";src:url("/fonts/space-grotesk-latin-600-normal.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"MR Space Grotesk";src:url("/fonts/space-grotesk-latin-700-normal.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}

html[data-habillage="2026"] body{font-family:"MR Inter","Inter",system-ui,-apple-system,"Segoe UI",sans-serif}
html[data-habillage="2026"] h1,html[data-habillage="2026"] h2,html[data-habillage="2026"] h3,
html[data-habillage="2026"] h4,html[data-habillage="2026"] h5,html[data-habillage="2026"] h6{font-family:"MR Space Grotesk","Space Grotesk","MR Inter",sans-serif;letter-spacing:-.012em}
/* Titres et chiffres dont la police est posée en ligne par les composants (165 endroits) : même police hébergée */
html[data-habillage="2026"] [style*="Space Grotesk"]{font-family:"MR Space Grotesk","Space Grotesk","MR Inter",sans-serif !important}
html[data-habillage="2026"] [style*="'Inter'"]:not([style*="Grotesk"]){font-family:"MR Inter","Inter",system-ui,sans-serif !important}

/* ---------- Jetons du thème clair : plus de contraste, mêmes couleurs de marque ---------- */
/* 16/11/2026, décision de Laurent (Q-129 (5)) : aussi sur body.light, dont les jetons de base masquaient ceux-ci dans le contenu
   (texte secondaire 4,7 → 8,1 pour 1, rose 4,0 → 4,7 pour 1 sur blanc). */
html[data-habillage="2026"].light,
html[data-habillage="2026"] body.light{
  --background:250 60% 98%;
  --foreground:232 52% 14%;
  --card:0 0% 100%;
  --card-foreground:232 52% 14%;
  --popover:0 0% 100%;
  --popover-foreground:232 52% 14%;
  --primary:327 78% 48%;              /* le rose de la marque, un ton plus dense : le texte blanc y reste lisible */
  --primary-foreground:0 0% 100%;
  --secondary:240 40% 96%;
  --secondary-foreground:232 52% 14%;
  --muted:240 36% 96%;
  --muted-foreground:230 22% 36%;     /* textes secondaires plus foncés */
  --accent:327 80% 96%;
  --accent-foreground:327 80% 30%;
  --border:240 30% 89%;
  --input:240 26% 84%;
  --ring:327 78% 48%;
  --radius:0.875rem;
  --radius-card:1.25rem;
  --sidebar-foreground:232 32% 22%;
  --sidebar-primary:327 78% 48%;
  --sidebar-ring:327 78% 48%;
}

/* ---------- Fond : maille rose, mauve et bleue, légère (pas de voile rose) ---------- */
html[data-habillage="2026"].light body{
  background:
    radial-gradient(1000px 620px at 100% 0%,rgba(233,30,140,.10) 0%,transparent 60%),
    radial-gradient(1000px 640px at 0% 100%,rgba(33,60,160,.18) 0%,transparent 60%),
    radial-gradient(760px 480px at 62% 58%,rgba(139,63,216,.09) 0%,transparent 62%),
    linear-gradient(180deg,#FAF9FE 0%,#ECEBFA 100%);
  background-attachment:fixed;
}

/* ---------- Verre : barre latérale et barre du haut ---------- */
html[data-habillage="2026"].light aside.backdrop-blur-2xl,
html[data-habillage="2026"].light header.backdrop-blur-2xl{
  background-image:none;
  background-color:rgba(255,255,255,.62);
  border:1px solid rgba(255,255,255,.96);
  -webkit-backdrop-filter:blur(28px) saturate(185%);
  backdrop-filter:blur(28px) saturate(185%);
  box-shadow:0 1px 0 rgba(255,255,255,.95) inset,0 22px 44px -24px rgba(110,70,200,.5),0 2px 6px -2px rgba(60,20,90,.06);
}
@media (min-width:1024px){
  html[data-habillage="2026"].light aside.backdrop-blur-2xl{margin:12px 0 12px 12px;border-radius:24px}
  html[data-habillage="2026"].light header.backdrop-blur-2xl{margin:12px 12px 0;border-radius:22px}
}
/* Entrée active du menu : le dégradé de la marque (le style est posé en ligne par le composant) */
html[data-habillage="2026"] aside nav a > div.absolute.inset-0.rounded-xl[style*="linear-gradient"]{
  background:linear-gradient(100deg,#D81B84 0%,#8B3FD8 58%,#213CA0 100%) !important;
}

/* ---------- Cartes : du relief, des bords nets ---------- */
html[data-habillage="2026"].light .glass-card,
html[data-habillage="2026"].light .card-premium{
  background:rgba(255,255,255,.84);
  -webkit-backdrop-filter:blur(22px) saturate(170%);
  backdrop-filter:blur(22px) saturate(170%);
  border:1px solid rgba(255,255,255,.98);
  box-shadow:0 1px 0 rgba(255,255,255,.95) inset,0 22px 44px -24px rgba(110,70,200,.5),0 2px 6px -2px rgba(60,20,90,.08);
}
html[data-habillage="2026"].light .glass-card:hover,
html[data-habillage="2026"].light .card-premium:hover{
  box-shadow:0 1px 0 rgba(255,255,255,.95) inset,0 26px 50px -24px rgba(110,70,200,.6),0 3px 8px -2px rgba(60,20,90,.10);
}
html[data-habillage="2026"].light .glass,
html[data-habillage="2026"].light .glass-strong{
  background:rgba(255,255,255,.86);
  border:1px solid rgba(255,255,255,.96);
  box-shadow:0 14px 30px -20px rgba(110,70,200,.42);
}
html[data-habillage="2026"].light .glass-modal.glass-modal{
  border:1px solid rgba(110,80,180,.18);
  box-shadow:0 30px 70px -30px rgba(60,20,110,.55),0 4px 14px -4px rgba(60,20,90,.12);
}
html[data-habillage="2026"].light .bg-card.border:is(.rounded-lg,.rounded-xl,.rounded-2xl){
  box-shadow:0 1px 0 rgba(255,255,255,.9) inset,0 16px 32px -22px rgba(110,70,200,.46),0 1px 3px rgba(60,20,90,.06);
}

/* ---------- En-tête de page : un voile de dégradé et un filet, pas d'aplat ---------- */
html[data-habillage="2026"].light .premium-hero{
  border:1px solid rgba(255,255,255,.98);
  background:linear-gradient(90deg,rgba(216,27,132,.11),rgba(139,63,216,.10) 50%,rgba(33,60,160,.14)),rgba(255,255,255,.88);
  box-shadow:0 1px 0 rgba(255,255,255,.95) inset,0 22px 44px -24px rgba(110,70,200,.5),0 2px 6px -2px rgba(60,20,90,.08);
}
html[data-habillage="2026"].light .premium-hero::after{
  content:"";position:absolute;left:20px;right:20px;bottom:0;height:3px;border-radius:3px 3px 0 0;
  background:linear-gradient(90deg,#D81B84,#8B3FD8 50%,#213CA0);pointer-events:none;
}
html[data-habillage="2026"].light .premium-hero h1{
  background:linear-gradient(100deg,#D81B84,#7A3FD0 55%,#213CA0);
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
}

/* ---------- Signature : le dégradé rose, mauve, bleu ---------- */
html[data-habillage="2026"] .gradient-admin{background:linear-gradient(100deg,#D81B84 0%,#8B3FD8 55%,#213CA0 100%)}
html[data-habillage="2026"] .gradient-text-admin{
  background:linear-gradient(100deg,#D81B84,#7A3FD0 55%,#213CA0);
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
}
html[data-habillage="2026"] .btn-premium{
  background:linear-gradient(100deg,#D81B84 0%,#8B3FD8 55%,#213CA0 100%);background-size:160% 100%;
  box-shadow:0 1px 0 rgba(255,255,255,.22) inset,0 12px 24px -12px rgba(216,27,132,.6),0 8px 18px -10px rgba(33,60,160,.5);
}
html[data-habillage="2026"] .accent-card::before{background:linear-gradient(90deg,#D81B84,#8B3FD8 50%,#213CA0);height:3px;opacity:1}
html[data-habillage="2026"].light .bg-primary{background-image:linear-gradient(100deg,#D81B84 0%,#8B3FD8 62%,#213CA0 118%)}
html[data-habillage="2026"].light button.bg-primary,
html[data-habillage="2026"].light a.bg-primary{box-shadow:0 1px 0 rgba(255,255,255,.22) inset,0 12px 22px -12px rgba(216,27,132,.55)}
html[data-habillage="2026"].light button.bg-primary:hover,
html[data-habillage="2026"].light a.bg-primary:hover{filter:brightness(1.07)}
/* Boutons roses pleins : même rose dense que le jeton, pour que le texte blanc reste lisible */
html[data-habillage="2026"].light .bg-pink-500{background-color:#D81B84}
html[data-habillage="2026"].light .bg-pink-600{background-color:#C2157A}
html[data-habillage="2026"].light button.bg-pink-500,
html[data-habillage="2026"].light a.bg-pink-500{background-image:linear-gradient(100deg,#D81B84 0%,#A93BD0 135%);box-shadow:0 12px 22px -12px rgba(216,27,132,.55)}
html[data-habillage="2026"].light button.bg-pink-500:hover,
html[data-habillage="2026"].light a.bg-pink-500:hover{filter:brightness(1.07)}

/* ---------- Champs ---------- */
html[data-habillage="2026"].light .input-premium{background:rgba(255,255,255,.92);border:1px solid rgba(70,60,130,.22)}
html[data-habillage="2026"].light .input-premium:hover{border-color:rgba(216,27,132,.4)}
html[data-habillage="2026"].light .input-premium:focus,
html[data-habillage="2026"].light .input-premium:focus-within{border-color:rgba(216,27,132,.7);box-shadow:0 0 0 3px rgba(216,27,132,.16)}

/* ---------- Contraste : les textes pâles pensés pour le thème sombre deviennent lisibles en clair ---------- */
html[data-habillage="2026"].light :is(.text-pink-300,.text-pink-400,.text-pink-500,.text-pink-400\/80,.text-pink-400\/70){color:#BE185D}
html[data-habillage="2026"].light :is(.text-rose-300,.text-rose-400,.text-rose-500){color:#BE123C}
html[data-habillage="2026"].light :is(.text-red-300,.text-red-400){color:#B91C1C}
html[data-habillage="2026"].light .text-red-500{color:#DC2626}
html[data-habillage="2026"].light :is(.text-orange-300,.text-orange-400,.text-orange-500,.text-orange-600){color:#C2410C}
html[data-habillage="2026"].light :is(.text-amber-300,.text-amber-400,.text-amber-500,.text-amber-600){color:#B45309}
html[data-habillage="2026"].light :is(.text-yellow-300,.text-yellow-400,.text-yellow-500,.text-yellow-600){color:#A16207}
html[data-habillage="2026"].light :is(.text-emerald-300,.text-emerald-400,.text-emerald-500,.text-emerald-600){color:#047857}
html[data-habillage="2026"].light :is(.text-green-300,.text-green-400,.text-green-500,.text-green-600){color:#15803D}
html[data-habillage="2026"].light :is(.text-teal-300,.text-teal-400,.text-teal-500,.text-teal-600){color:#0F766E}
html[data-habillage="2026"].light :is(.text-cyan-300,.text-cyan-400,.text-cyan-500,.text-cyan-600){color:#0E7490}
html[data-habillage="2026"].light :is(.text-sky-300,.text-sky-400,.text-sky-500,.text-sky-600){color:#0369A1}
html[data-habillage="2026"].light :is(.text-blue-300,.text-blue-400,.text-blue-500){color:#1D4ED8}
html[data-habillage="2026"].light :is(.text-indigo-300,.text-indigo-400){color:#4338CA}
html[data-habillage="2026"].light :is(.text-violet-300,.text-violet-400,.text-violet-500){color:#6D28D9}
html[data-habillage="2026"].light :is(.text-purple-300,.text-purple-400,.text-purple-500){color:#7E22CE}
html[data-habillage="2026"].light :is(.text-fuchsia-300,.text-fuchsia-400,.text-fuchsia-500){color:#A21CAF}
html[data-habillage="2026"].light :is(.text-zinc-300,.text-zinc-400,.text-slate-300,.text-slate-400,.text-gray-300,.text-gray-400){color:#5B657B}
/* Textes atténués par transparence (mesurés à 1,7 à 3,2 pour 1 avant correction) */
html[data-habillage="2026"].light :is(.text-muted-foreground\/90,.text-muted-foreground\/80,.text-muted-foreground\/70){color:hsl(230 22% 36%)}
html[data-habillage="2026"].light .text-muted-foreground\/60{color:hsl(230 20% 40%)}
html[data-habillage="2026"].light .text-muted-foreground\/50{color:hsl(230 18% 44%)}
html[data-habillage="2026"].light :is(.text-muted-foreground\/40,.text-muted-foreground\/30){color:hsl(230 16% 48%)}
html[data-habillage="2026"].light :is(.text-foreground\/80,.text-foreground\/70){color:hsl(232 40% 26%)}
html[data-habillage="2026"].light :is(.text-foreground\/60,.text-foreground\/50,.text-foreground\/40){color:hsl(232 28% 38%)}
html[data-habillage="2026"].light :is(.text-sidebar-foreground\/80,.text-sidebar-foreground\/70,.text-sidebar-foreground\/60){color:hsl(232 32% 26%)}
html[data-habillage="2026"].light :is(.text-primary\/90,.text-primary\/80,.text-primary\/70,.text-primary\/60){color:hsl(327 78% 40%)}
/* Sur un fond foncé, ces textes gardent leur teinte claire d'origine */
html[data-habillage="2026"].light :is(.bg-slate-900,.bg-slate-950,.bg-slate-800,.bg-zinc-900,.bg-zinc-950,.bg-zinc-800,.bg-gray-900,.bg-gray-950,.bg-gray-800,.bg-neutral-900,.bg-black) :is(.text-zinc-300,.text-slate-300,.text-gray-300){color:#CBD5E1}
html[data-habillage="2026"].light :is(.bg-slate-900,.bg-slate-950,.bg-slate-800,.bg-zinc-900,.bg-zinc-950,.bg-zinc-800,.bg-gray-900,.bg-gray-950,.bg-gray-800,.bg-neutral-900,.bg-black) :is(.text-zinc-400,.text-slate-400,.text-gray-400){color:#94A3B8}
html[data-habillage="2026"].light :is(.bg-slate-900,.bg-slate-950,.bg-slate-800,.bg-zinc-900,.bg-zinc-950,.bg-zinc-800,.bg-gray-900,.bg-gray-950,.bg-gray-800,.bg-neutral-900,.bg-black) :is(.text-pink-300,.text-pink-400){color:#F9A8D4}
html[data-habillage="2026"].light :is(.bg-slate-900,.bg-slate-950,.bg-slate-800,.bg-zinc-900,.bg-zinc-950,.bg-zinc-800,.bg-gray-900,.bg-gray-950,.bg-gray-800,.bg-neutral-900,.bg-black) :is(.text-amber-300,.text-amber-400){color:#FCD34D}
html[data-habillage="2026"].light :is(.bg-slate-900,.bg-slate-950,.bg-slate-800,.bg-zinc-900,.bg-zinc-950,.bg-zinc-800,.bg-gray-900,.bg-gray-950,.bg-gray-800,.bg-neutral-900,.bg-black) :is(.text-emerald-300,.text-emerald-400){color:#6EE7B7}
html[data-habillage="2026"].light :is(.bg-slate-900,.bg-slate-950,.bg-slate-800,.bg-zinc-900,.bg-zinc-950,.bg-zinc-800,.bg-gray-900,.bg-gray-950,.bg-gray-800,.bg-neutral-900,.bg-black) :is(.text-red-300,.text-red-400){color:#FCA5A5}
html[data-habillage="2026"].light :is(.bg-slate-900,.bg-slate-950,.bg-slate-800,.bg-zinc-900,.bg-zinc-950,.bg-zinc-800,.bg-gray-900,.bg-gray-950,.bg-gray-800,.bg-neutral-900,.bg-black) :is(.text-blue-300,.text-blue-400,.text-indigo-300,.text-indigo-400,.text-violet-300,.text-violet-400){color:#C7D2FE}

/* ---------- Chiffres clés et titres de page en dégradé (repérés par leur police posée en ligne) ---------- */
html[data-habillage="2026"].light h1[style*="Space Grotesk"],
html[data-habillage="2026"].light div.font-bold.text-foreground[style*="Space Grotesk"]{
  background:linear-gradient(100deg,#D81B84,#7A3FD0 55%,#213CA0);
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
}

/* ── Changement de page ───────────────────────────────────────────────────────────────────────────
   La barre latérale et le bandeau du haut ne bougent pas ; la page de droite arrive en fondu, avec une
   légère montée. Aucun maintien en fin d'animation (ni « forwards » ni « both ») : une animation qui
   reste active ferait de ce bloc le repère des éléments en position fixe (fenêtres, volets) et les
   décalerait. Réglage sans reconstruction : modifier ici, puis changer ?v= dans index.html. */
@keyframes mr-page-entree{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@keyframes mr-fondu{from{opacity:0}to{opacity:1}}
html[data-habillage="2026"] .mr-page{animation:mr-page-entree .24s cubic-bezier(.22,1,.36,1)}
/* Page pas encore chargée (première visite, connexion lente) : seule la fine barre de chargement s'affiche,
   le fondu attend le contenu et part quand il arrive. */
html[data-habillage="2026"] .mr-page:has(> .min-h-\[calc\(100vh-120px\)\]){animation:none}
html[data-habillage="2026"] .mr-page:has([data-arrivee-cascade]){animation:none}
/* Menu : l'entrée cliquée s'allume tout de suite, texte et icône compris. Avant, la pastille arrivait d'un coup
   mais le texte mettait 0,3 s à passer au blanc (sombre sur rose un instant), et l'ancienne entrée gardait
   0,3 s un texte blanc sans pastille. Le menu répond en premier, la page suit en fondu. */
html[data-habillage="2026"] aside nav a,
html[data-habillage="2026"] aside nav a *{transition-duration:.12s}
@media (prefers-reduced-motion:reduce){
  html[data-habillage="2026"] .mr-page{animation:mr-fondu .12s linear}
}

/* ── Échelle et hiérarchie des textes (référence : maquette « Verre + Éclat » validée le 14/11/2026) ──────────
   Relevé du 14/11 sur huit écrans de direction : la taille la plus utilisée était 10 px (1 230 libellés), avec
   du 8 et du 9 px, et les chiffres clés en 20 px noir. Plancher de lecture relevé, titres d'écran à 27 px,
   chiffres clés dans la police des titres, menu à 13,5 px sur des lignes plus compactes. */
html[data-habillage="2026"] [class~="text-[8px]"]{font-size:10.5px}
html[data-habillage="2026"] [class~="text-[9px]"]{font-size:11px}
html[data-habillage="2026"] [class~="text-[10px]"]{font-size:11.5px}
html[data-habillage="2026"] [class~="text-[11px]"]{font-size:12px}
html[data-habillage="2026"] [class~="text-[12.5px]"]{font-size:13.5px}
/* Libellés en capitales : interlettrage resserré, lisible à cette taille. */
html[data-habillage="2026"] .uppercase[class*="tracking-"]{letter-spacing:.07em}

/* Titres d'écran */
html[data-habillage="2026"] main h1{font-size:27px;line-height:1.15;letter-spacing:-.02em;font-weight:600}
@media (max-width:640px){html[data-habillage="2026"] main h1{font-size:23px}}

/* Chiffres clés : police des titres, plus grands, chiffres alignés */
html[data-habillage="2026"] main :is(div,span,p):is([class~="text-xl"],[class~="text-2xl"],[class~="text-3xl"]):is([class~="font-bold"],[class~="tabular-nums"]){
  font-family:"MR Space Grotesk","Space Grotesk","MR Inter",sans-serif;letter-spacing:-.02em;line-height:1.12;font-variant-numeric:tabular-nums;
}
html[data-habillage="2026"] main :is(div,span,p)[class~="text-xl"]:is([class~="font-bold"],[class~="tabular-nums"]){font-size:24px}
html[data-habillage="2026"] main :is(div,span,p)[class~="text-2xl"]:is([class~="font-bold"],[class~="tabular-nums"]){font-size:28px}
/* Dégradé de la signature sur les chiffres écrits dans la couleur du texte. Réservé aux éléments sans enfant :
   le dégradé découpé dans le texte ne suit pas toujours un élément enfant animé, qui deviendrait invisible. */
html[data-habillage="2026"].light main :is(div,span,p):is([class~="text-xl"],[class~="text-2xl"],[class~="text-3xl"])[class~="font-bold"][class~="text-foreground"]:not(:has(*)){
  background:linear-gradient(100deg,#D81B84,#7A3FD0 55%,#213CA0);
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
}

/* Menu : lignes plus compactes sur ordinateur (le tiroir du téléphone garde ses grandes zones de toucher) */
@media (min-width:1024px){
  html[data-habillage="2026"] aside nav a{padding:6px 10px}
  html[data-habillage="2026"] aside nav a > div.rounded-lg{padding:4px}
}
html[data-habillage="2026"] aside nav button span.uppercase{font-size:10.5px;letter-spacing:.1em;font-weight:700}
/* Pastilles et étiquettes : jamais coupées sur deux lignes (avec le texte agrandi, « Super Admin » se cassait). */
html[data-habillage="2026"] .rounded-full:is([class~="text-[8px]"],[class~="text-[9px]"],[class~="text-[10px]"],[class~="text-[11px]"],[class~="text-xs"]){white-space:nowrap}

/* ---------- Menu resserré (maquette validée, 14/11/2026 ; couleurs remises le 15/11) ----------
   Le repli par défaut est décidé dans Sidebar.tsx (menus longs seulement) ; ici, l'apparence.
   Retour de Laurent du 15/11 : « j'aimais bien quand les menus principaux étaient colorés, remets-le mais plus
   premium qu'avant ». Chaque titre de section reprend donc SA couleur (variable --mr-sec posée par Sidebar.tsx) :
   fond teinté en dégradé, liseré fin, pastille avec halo, libellé et chevron dans la teinte. Les sections sans
   couleur restent neutres. Libellé en casse normale, 13,5 px. */
html[data-habillage="2026"] aside nav button.mr-menu-section{
  background:none !important;box-shadow:none !important;transform:none !important;
  margin-bottom:3px;padding:5px 11px;border-radius:13px;gap:10px;
}
html[data-habillage="2026"] aside nav button.mr-menu-section:hover{background:hsl(var(--sidebar-foreground) / .06) !important}
html[data-habillage="2026"] aside nav button.mr-menu-section > span{
  font-family:"MR Inter","Inter",system-ui,sans-serif !important;font-size:13.5px !important;font-weight:600 !important;
  text-transform:none !important;letter-spacing:0 !important;color:hsl(var(--sidebar-foreground) / .82) !important;
}
html[data-habillage="2026"] aside nav button.mr-menu-section[aria-expanded="true"] > span{color:hsl(var(--sidebar-foreground)) !important}
html[data-habillage="2026"] aside nav button.mr-menu-section > div.flex-1{background:none !important}
html[data-habillage="2026"] aside nav button.mr-menu-section > div:first-child{width:8px;height:8px;box-shadow:none}
html[data-habillage="2026"] aside nav button.mr-menu-section > svg{width:15px;height:15px;color:hsl(var(--sidebar-foreground) / .5) !important}
/* Sections colorées */
html[data-habillage="2026"] aside nav button.mr-menu-section[style*="--mr-sec"]{
  background:linear-gradient(90deg,color-mix(in srgb,var(--mr-sec) 15%,transparent),color-mix(in srgb,var(--mr-sec) 4%,transparent)) !important;
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--mr-sec) 26%,transparent) !important;
}
html[data-habillage="2026"] aside nav button.mr-menu-section[style*="--mr-sec"]:hover,
html[data-habillage="2026"] aside nav button.mr-menu-section[style*="--mr-sec"][aria-expanded="true"]{
  background:linear-gradient(90deg,color-mix(in srgb,var(--mr-sec) 24%,transparent),color-mix(in srgb,var(--mr-sec) 8%,transparent)) !important;
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--mr-sec) 40%,transparent) !important;
}
html[data-habillage="2026"] aside nav button.mr-menu-section[style*="--mr-sec"] > span{color:color-mix(in srgb,var(--mr-sec) 44%,#141A3D) !important}
html[data-habillage="2026"] aside nav button.mr-menu-section[style*="--mr-sec"] > svg{color:color-mix(in srgb,var(--mr-sec) 60%,#141A3D) !important}
html[data-habillage="2026"] aside nav button.mr-menu-section[style*="--mr-sec"] > div:first-child{box-shadow:0 0 0 3px color-mix(in srgb,var(--mr-sec) 22%,transparent) !important}
html[data-habillage="2026"].dark aside nav button.mr-menu-section[style*="--mr-sec"] > span{color:color-mix(in srgb,var(--mr-sec) 62%,#ffffff) !important}
html[data-habillage="2026"].dark aside nav button.mr-menu-section[style*="--mr-sec"] > svg{color:color-mix(in srgb,var(--mr-sec) 70%,#ffffff) !important}
html[data-habillage="2026"] aside nav > div.mt-4{margin-top:0}
html[data-habillage="2026"] aside nav > div.mt-4:nth-of-type(2){margin-top:12px;padding-top:14px;border-top:1px solid hsl(var(--sidebar-foreground) / .1)}
html[data-habillage="2026"] aside nav button.mr-menu-section + ul{margin:2px 0 10px;padding-left:6px}
/* Entrée du menu au clavier : contour aux couleurs de la marque, au lieu du bleu du navigateur */
html[data-habillage="2026"] aside nav a:focus-visible,
html[data-habillage="2026"] aside nav button:focus-visible{outline:2px solid rgba(139,63,216,.5);outline-offset:2px;border-radius:14px}
html[data-habillage="2026"] aside nav a:focus:not(:focus-visible){outline:none}
/* La recherche du bas du menu double celle de l'en-tête sur ordinateur (même fenêtre, même raccourci) :
   elle reste dans le tiroir du téléphone, où l'en-tête est réduit. */
@media (min-width:1024px){ html[data-habillage="2026"] aside .mr-menu-recherche{display:none} }

/* ---------- Barre latérale : panneau de verre flottant à gauche, centré sur la hauteur (15/11/2026) ----------
   Retours de Laurent : « j'aimerais que la sidebar reste flottante sur le côté gauche, que ce soit hyper premium »,
   « et la centrer sur la hauteur ». Le panneau prend la hauteur de son contenu et se place au milieu de l'écran ;
   si le menu est plus long que l'écran, il occupe toute la hauteur et défile à l'intérieur.
   Finition (direction « Liquid Glass » autorisée le 06/11) : verre plus dense et plus flou, bord lumineux,
   liseré en dégradé de la marque, ombre en couches, capsule active en relief, carte du compte en bas.
   Valable en clair et en sombre ; sous 1024 px le tiroir du téléphone reste tel qu'il était. */
@media (min-width:1024px){
  html[data-habillage="2026"] aside.backdrop-blur-2xl{
    position:relative;align-self:center;height:auto;max-height:calc(100vh - 24px);
    margin:12px 0 12px 12px;border-radius:24px;
  }
  html[data-habillage="2026"] aside nav{padding-top:10px;padding-bottom:10px}
  @supports (height:100dvh){ html[data-habillage="2026"] aside.backdrop-blur-2xl{max-height:calc(100dvh - 24px)} }
  html[data-habillage="2026"].light aside.backdrop-blur-2xl{
    background-color:rgba(255,255,255,.72);
    background-image:linear-gradient(165deg,rgba(233,30,140,.075) 0%,rgba(255,255,255,0) 26%,rgba(255,255,255,0) 70%,rgba(33,60,160,.085) 100%);
    border:1px solid rgba(255,255,255,.96);
    -webkit-backdrop-filter:blur(30px) saturate(190%);backdrop-filter:blur(30px) saturate(190%);
    box-shadow:0 1px 0 #fff inset,0 -1px 0 rgba(139,63,216,.06) inset,
      0 36px 72px -36px rgba(86,58,190,.6),0 16px 30px -22px rgba(216,27,132,.3),0 2px 6px -2px rgba(60,20,90,.07);
  }
  html[data-habillage="2026"].dark aside.backdrop-blur-2xl{
    background-color:rgba(22,20,48,.68);
    background-image:linear-gradient(165deg,rgba(233,30,140,.10) 0%,rgba(255,255,255,0) 30%,rgba(255,255,255,0) 68%,rgba(72,96,220,.12) 100%);
    border:1px solid rgba(255,255,255,.09);
    -webkit-backdrop-filter:blur(30px) saturate(160%);backdrop-filter:blur(30px) saturate(160%);
    box-shadow:0 1px 0 rgba(255,255,255,.08) inset,0 36px 72px -30px rgba(0,0,0,.75),0 0 0 1px rgba(0,0,0,.25);
  }
  /* Liseré en dégradé de la marque sur le bord du panneau */
  html[data-habillage="2026"] aside.backdrop-blur-2xl::before{
    content:"";position:absolute;inset:0;border-radius:inherit;padding:1px;pointer-events:none;z-index:2;
    background:linear-gradient(165deg,rgba(233,30,140,.5),rgba(255,255,255,.12) 30%,rgba(255,255,255,.12) 66%,rgba(33,60,160,.5));
    -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
    -webkit-mask-composite:xor;mask-composite:exclude;
  }
}
/* Entrées : coins doux, survol en verre, capsule active en relief */
html[data-habillage="2026"] aside nav a{border-radius:14px}
html[data-habillage="2026"].light aside nav a:hover{box-shadow:0 1px 0 rgba(255,255,255,.95) inset,0 10px 20px -16px rgba(86,58,190,.6)}
html[data-habillage="2026"] aside nav a:active{transform:scale(.985)}
html[data-habillage="2026"] aside nav a > div.absolute.inset-0.rounded-xl[style*="linear-gradient"]{
  border-radius:14px;
  box-shadow:0 1px 0 rgba(255,255,255,.38) inset,0 14px 24px -14px rgba(216,27,132,.7),0 8px 16px -10px rgba(33,60,160,.5) !important;
}
/* Entrées d'une section dépliée : filet dans la couleur de la section */
html[data-habillage="2026"] aside nav button.mr-menu-section + ul{margin:3px 0 10px 9px;padding-left:2px;border-left:2px solid hsl(var(--sidebar-foreground) / .1)}
html[data-habillage="2026"] aside nav button.mr-menu-section + ul a{padding-left:8px;padding-right:6px;gap:10px}
html[data-habillage="2026"] aside nav > div[style*="--mr-sec"] > ul{border-left-color:color-mix(in srgb,var(--mr-sec) 34%,transparent)}
/* Carte du compte, en bas du panneau */
html[data-habillage="2026"] aside .mr-menu-compte{
  background:rgba(255,255,255,.74);border:1px solid rgba(255,255,255,.96);
  box-shadow:0 1px 0 #fff inset,0 10px 22px -16px rgba(86,58,190,.5);transition:box-shadow .16s ease,transform .16s ease;
}
html[data-habillage="2026"] aside .mr-menu-compte:hover{box-shadow:0 1px 0 #fff inset,0 16px 28px -16px rgba(86,58,190,.65);transform:translateY(-1px)}
html[data-habillage="2026"].dark aside .mr-menu-compte{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.09);box-shadow:none}
html[data-habillage="2026"] aside .mr-menu-compte-avatar{
  color:#fff;background:linear-gradient(135deg,#D81B84,#8B3FD8 58%,#213CA0);
  box-shadow:0 0 0 2px rgba(255,255,255,.92),0 6px 12px -6px rgba(139,63,216,.75);
}
html[data-habillage="2026"].dark aside .mr-menu-compte-avatar{box-shadow:0 0 0 2px rgba(255,255,255,.14),0 6px 12px -6px rgba(0,0,0,.7)}
/* Bas du panneau resserré : le bouton de personnalisation est plus fin ; sur une fenêtre basse, la ligne de version
   s'efface pour laisser la place au menu (elle reste visible dès 1 100 px de haut). */
html[data-habillage="2026"] aside .mr-menu-perso > button{padding:7px 12px}
html[data-habillage="2026"] aside .mr-menu-compte{margin-bottom:8px}
@media (min-width:1024px) and (max-height:1099px){
  html[data-habillage="2026"] aside .mr-menu-version{display:none}
  html[data-habillage="2026"] aside .mr-menu-compte{margin-bottom:0}
}
/* Défilement intérieur discret : la barre n'apparaît qu'au survol du panneau */
html[data-habillage="2026"] aside nav{scrollbar-width:thin;scrollbar-color:transparent transparent}
html[data-habillage="2026"] aside:hover nav{scrollbar-color:rgba(139,63,216,.28) transparent}
@media (prefers-reduced-motion:reduce){ html[data-habillage="2026"] aside nav a:active{transform:none} html[data-habillage="2026"] aside .mr-menu-compte:hover{transform:none} }

/* ---------- Cartes des pages : verre blanc, plus de gris (15/11/2026) ----------
   Beaucoup d'écrans posent leurs cartes avec un fond « encre à 2 % », qui devient grisâtre sur le fond lilas.
   Dans l'habillage, ces cartes prennent le verre blanc des autres cartes. Seules les cartes sont visées
   (bord + arrondi + ce fond), pas les petits fonds de boutons ou de lignes. */
html[data-habillage="2026"].light main :is(.rounded-xl,.rounded-2xl,.rounded-lg).border[class~="bg-foreground/[0.02]"]{
  background-color:rgba(255,255,255,.82);
  border-color:rgba(255,255,255,.95);
  box-shadow:0 1px 0 rgba(255,255,255,.9) inset,0 18px 38px -28px rgba(110,70,200,.45),0 1px 3px rgba(60,20,90,.05);
}
