/* ML School — corrections de contraste (DÉCISIONS 16.2, Lot 4bis)
   Chargé en dernier sur toutes les pages : il ne fait que corriger des couleurs de texte.
   Cibles : 4,5:1 pour tout texte (3:1 au-delà de 24 px ou 18,66 px gras).
   Mesures : --sub #9A9AAF = 2,76:1 sur blanc → #6B6B80 (5,2:1) ; sur jaune #FFC107 : #111 ou #4A4A5E ;
   petit texte kaki : #5A5F2C ; texte sur fond noir : au moins #A0A0A0. */

:root{--sub:#6B6B80}

/* Pied de page (fond noir) */
.foot-desc{color:rgba(255,255,255,.7)}
.foot-link{color:rgba(255,255,255,.72)}
.foot-copy,.foot-legal a{color:rgba(255,255,255,.66)}
.foot-legal a:hover,.foot-link:hover{color:#fff}

/* Gris clair écrit directement dans le HTML */
[style*="color:#9A9AAF"],[style*="color:#9a9aaf"]{color:#6B6B80!important}
[style*="color:rgba(17,17,17,.5)"]{color:#55555F!important}
[style*="color:rgba(17,17,17,.6)"],.per{color:#4A4A5E!important}

/* Texte clair sur fond sombre */
[style*="color:rgba(255,255,255,.4)"]{color:rgba(255,255,255,.72)!important}

/* Kaki : petit texte sur blanc ou kaki pâle, et fonds kaki sous texte blanc */
.b-ks,.persona-tag,[style*="background:var(--k3)"][style*="color:var(--k2)"]{color:#5A5F2C!important}
[style*="color:#8A8F4F"],[style*="color:#8a8f4f"]{color:#5A5F2C!important}
.bg-k,.btn-k,.trust-bar{background:#6B7038!important}

/* Jaune utilisé comme couleur de texte sur fond clair */
.ico-opt,.reass-num{color:#7A5C00}

/* Vert WhatsApp et coches sur fond blanc */
.ico-yes,[style*="color:#16A34A"],[style*="color:#25D366"]{color:#15803D!important}

/* Violet de la carte « Permis boîte auto » (Tarifs) */
[style*="color:#7B5EA7"]{color:#5E4589!important}

/* Texte gris dans une carte de prix jaune : #4A4A5E (5,3:1), jamais --sub ni --mu */
[style*="background:var(--y)"] [style*="color:#9A9AAF"],[style*="background:var(--y)"] [style*="color:var(--sub)"],
[style*="background:var(--y)"] [style*="color:var(--mu)"],[style*="background:#FFC107"] [style*="color:#9A9AAF"]{color:#4A4A5E!important}

/* Étiquette « À venir » (page Qualité) et fonds kaki écrits dans le HTML */
.soon-pill{color:#5A5F2C!important}
[style*="background:var(--k)"]{background:#6B7038!important}
