/* v89 : mode sombre — textes et fonds illisibles corrigés */

/* 1. Variables manquantes : « --text », « --card » et « --soft » n'étaient définies qu'en clair.
      Résultat : texte presque noir sur fond sombre (profil vendeur, page Compte). */
html.dark,html body.dark{--text:#f3ece7;--card:#211c19;--soft:#2d2018}

/* 2. Profil vendeur (fenêtre et page) */
html body.dark #ahSellerProfilePanel,html.dark #ahSellerProfilePanel{background:#14110f;color:#f3ece7}
body.dark .ahsp-name,html.dark .ahsp-name,body.dark .ahsp-posts h3,html.dark .ahsp-posts h3,body.dark .ahsp-tx strong,html.dark .ahsp-tx strong{color:#f3ece7}
body.dark .ahsp-sub,html.dark .ahsp-sub,body.dark .ahsp-stats span,html.dark .ahsp-stats span,body.dark .ahsp-tx small,html.dark .ahsp-tx small,body.dark .ahsp-loading,html.dark .ahsp-loading{color:#b5a79d}
body.dark .ahsp-tx b,html.dark .ahsp-tx b{color:#ff8a4a}
body.dark .ahsp-posts h3 span,html.dark .ahsp-posts h3 span{background:#3a2418;color:#ffd0aa}
body.dark #ahSellerProfilePanel .ah-seller-bio,html.dark #ahSellerProfilePanel .ah-seller-bio{background:#2a2420;border-color:#4a3d35;color:#f3ece7}
body.dark #ahSellerProfilePanel .ah-profile-post,html.dark #ahSellerProfilePanel .ah-profile-post{background:#211c19;border-color:#3a302a!important;color:#f3ece7}
body.dark #ahSellerProfilePanel .ah-profile-post-photo,html.dark #ahSellerProfilePanel .ah-profile-post-photo{background:#2a2420}
body.dark #ahSellerProfilePanel .ah-profile-post-info b,html.dark #ahSellerProfilePanel .ah-profile-post-info b{color:#ff8a4a}
body.dark #ahSellerProfilePanel .ah-profile-publications,html.dark #ahSellerProfilePanel .ah-profile-publications{border-top-color:#3a302a}
body.dark #ahSellerProfilePanel .ah-profile-publications h3 span,html.dark #ahSellerProfilePanel .ah-profile-publications h3 span{background:#3a2418;color:#ffd0aa}
body.dark #ahSellerProfilePanel .ah-profile-empty,html.dark #ahSellerProfilePanel .ah-profile-empty{background:#2a2420;color:#b5a79d}
body.dark #ahSellerProfilePanel .ah-seller-close,html.dark #ahSellerProfilePanel .ah-seller-close{background:#2a2420!important;color:#f3ece7!important}
body.dark .ah-view-seller-profile,html.dark .ah-view-seller-profile{background:#2a2420;border-color:#4a3d35;color:#ffd0aa}

/* 3. Page Compte : titres de cartes et textes secondaires */
body.dark #ahAuthBox .ahp-card h4,html.dark #ahAuthBox .ahp-card h4{color:#ffb88f}
body.dark #ahAuthBox,html.dark #ahAuthBox{color:#f3ece7}
body.dark #ahAuthClose,html.dark #ahAuthClose{background:#2a2420!important;color:#ffb27a!important}
body.dark .ah-photo-hint,html.dark .ah-photo-hint{background:#2a2420!important;color:#ffd0aa!important}
body.dark #ahProfileFields .ah-profile-upload,html.dark #ahProfileFields .ah-profile-upload{background:#3a2418;color:#ffd0aa}
body.dark .ah-meter,html.dark .ah-meter{background:#3a302a}

/* 4. Statistiques vendeur : suit le mode choisi dans l'appli (et non le réglage du téléphone) */
body.dark .ahst-open,html.dark .ahst-open{background:#2a2420;border-color:#4a3d35;color:#f3ece7}
body.dark .ahst-box,html.dark .ahst-box{background:#211c19;color:#f3ece7}
body.dark .ahst-head,body.dark .ahst-card,html.dark .ahst-head,html.dark .ahst-card{border-color:#3a302a}
body.dark .ahst-tiles div,html.dark .ahst-tiles div{background:#2a2420}
body.dark .ahst-tiles span,body.dark .ahst-mute,html.dark .ahst-tiles span,html.dark .ahst-mute{color:#b5a79d}
body.dark .ahst-btn,html.dark .ahst-btn{background:#3a3014;color:#f0d68a;border-color:#7a5f1a}
/* téléphone en sombre mais appli en clair : on remet le clair */
html:not(.dark) body:not(.dark) .ahst-open{background:#fff;border-color:#d9d9d9}
html:not(.dark) body:not(.dark) .ahst-box{background:#fff;color:#1a1a1a}
html:not(.dark) body:not(.dark) .ahst-head,html:not(.dark) body:not(.dark) .ahst-card{border-color:#e5e5e5}
html:not(.dark) body:not(.dark) .ahst-tiles div{background:#f4f6f4}
html:not(.dark) body:not(.dark) .ahst-tiles span,html:not(.dark) body:not(.dark) .ahst-mute{color:#6b6b6b}
html:not(.dark) body:not(.dark) .ahst-btn{background:#fff4d6;color:#7a5500;border-color:#e6c36a}

/* 5. Carte : barre du haut, panneau du bas et boutons */
body.dark #ahMapOv .ahm-top,html.dark #ahMapOv .ahm-top,body.dark #ahMapOv .ahm-bot,html.dark #ahMapOv .ahm-bot{background:#211c19;color:#f3ece7}
body.dark #ahMapOv .ahm-tt span,html.dark #ahMapOv .ahm-tt span,body.dark #ahMapOv .ahm-bot .ahm-i small,html.dark #ahMapOv .ahm-bot .ahm-i small,body.dark #ahMapOv .ahm-rs span,html.dark #ahMapOv .ahm-rs span{color:#b5a79d}
body.dark #ahMapOv .ahm-rs b,html.dark #ahMapOv .ahm-rs b{color:#7be0ae}
body.dark #ahMapOv .ahm-rm,html.dark #ahMapOv .ahm-rm{color:#ff8a80}
body.dark #ahMapOv .ahm-ib,html.dark #ahMapOv .ahm-ib,body.dark #ahMapOv .ahm-btn,html.dark #ahMapOv .ahm-btn{background:#2a2420!important;color:#f3ece7!important}
body.dark #ahMapOv .ahm-zoom .ahm-ib,html.dark #ahMapOv .ahm-zoom .ahm-ib{background:#211c19!important}
body.dark #ahMapOv .ahm-btn.pri,html.dark #ahMapOv .ahm-btn.pri{background:#2e9b57!important;color:#fff!important}
body.dark #ahMapOv .ahm-seg,html.dark #ahMapOv .ahm-seg{background:#2a2420!important;border-color:#4a3d35!important;color:#f3ece7!important}
body.dark #ahMapOv .ahm-seg.on,html.dark #ahMapOv .ahm-seg.on{background:#2f7df6!important;border-color:#2f7df6!important;color:#fff!important}
body.dark #ahMapOv .ahm-attr,html.dark #ahMapOv .ahm-attr{background:#211c19cc;color:#b5a79d}
body.dark #ahmRec,html.dark #ahmRec{background:#211c19;color:#6ea8ff}
body.dark #ahmNav .ahm-ib,html.dark #ahmNav .ahm-ib{background:#ffffff22!important;color:#fff!important}

/* 6. Petites pastilles qui restaient claires */
body.dark .distlink,html.dark .distlink{background:#3a2418;border-color:#6b3d22;color:#ffb27a}
body.dark .ahurg,html.dark .ahurg{background:#3b1a17;color:#ff9c93}
