/* ===========================================
   RH24 USERBAR v6.1.0 - TOPBAR BLOGVI
   STYLE : BLOGVI SOFT (Épuré, Coins 12px)
   STRUCTURE : Identique v6.0.8 (Placement préservé)
   =========================================== */

/* ===========================================
   ADAPTATION TOP BAR BLOGVI + MOBILE VISIBLE
   =========================================== */
#bloglo-topbar {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    color: #000 !important;
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
}

[data-theme="dark"] #bloglo-topbar {
    background: rgba(26, 26, 26, 0.98) !important;
    color: #fff !important;
    border-bottom-color: rgba(255,255,255,0.05) !important;
}

/* FORCER VISIBILITÉ SUR MOBILE */
#bloglo-topbar.bloglo-hide-mobile {
    display: block !important;
}

@media (max-width: 768px) {
    #bloglo-topbar {
        display: block !important;
    }
    
    #bloglo-topbar .bloglo-container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

.bloglo-topbar-widget__text span {
    display: block !important;
}

/* ===========================================
   USER SECTION (GAUCHE)
   =========================================== */
.rh24-user-section {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.rh24-avatar {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    /* SOFT STYLE : Pas de bordure noire */
    border: 1px solid rgba(0,0,0,0.05) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease;
    flex-shrink: 0 !important;
    background: #e0e0e0 !important;
}

/* DARK MODE SOFT */
[data-theme="dark"] .rh24-avatar {
    border-color: rgba(255,255,255,0.2) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}

.rh24-avatar.guest {
    opacity: 0.5 !important;
}

.rh24-avatar.guest i {
    color: #999 !important;
    font-size: 20px !important;
}

.rh24-avatar img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
}

.rh24-user-meta {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    line-height: 1 !important;
    max-height: 40px !important;
    justify-content: center !important;
}

/* USERNAME */
.rh24-username {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px;
    color: #000 !important;
    white-space: nowrap !important;
    width: max-content !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 150px !important;
}

[data-theme="dark"] .rh24-username {
    color: #fff !important;
}

.rh24-username.guest {
    opacity: 0.5 !important;
    font-size: 10px !important;
}

.rh24-rank-line {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.rh24-rank-badge {
    display: inline-block !important;
    /* 10 et non 9 (v6.10.236) : plus aucun texte sous 10 px sur le site. */
    font-size: 10px !important;
    font-weight: 700 !important;
    color: #fff !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    /* SOFT : Plus de bordure noire */
    border: none !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    text-transform: uppercase;
    flex-shrink: 0 !important;
}

/* XP TEXT */
.rh24-xp-text {
    font-size: 10px !important;
    color: #000 !important;
    opacity: 0.7 !important;
    white-space: nowrap !important;
    width: max-content !important;
}

[data-theme="dark"] .rh24-xp-text {
    color: #fff !important;
}

/* ===========================================
   ACTION BUTTONS (DROITE)
   =========================================== */
.rh24-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    justify-content: flex-end !important;
    margin-left: auto !important;
}

/* Forcer le span parent à flex */
.bloglo-topbar-widget__text span {
    display: flex !important;
}

/* Alignement */
.end-sm .bloglo-topbar-widget__text span {
    justify-content: flex-end !important;
}

.start-sm .bloglo-topbar-widget__text span {
    justify-content: flex-start !important;
}

.rh24-btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    /* SOFT : Bordure et ombre supprimées/changées */
    border: none !important;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1) !important;
    position: relative !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.rh24-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15) !important;
}

.rh24-btn > svg,
.rh24-btn > i {
    width: 16px !important;
    height: 16px !important;
    font-size: 16px !important;
    color: #fff !important;
}

/* Couleurs des boutons (Gardées car elles sont soft de base) */
.rh24-btn-loot { background: #f39c12 !important; }
.rh24-btn-backlog { background: #9b59b6 !important; }
.rh24-btn-drafts { background: #3498db !important; }
.rh24-btn-notifications { background: #e74c3c !important; }
.rh24-btn-objectives { background: #f39c12 !important; }
.rh24-btn-streak { background: #e67e22 !important; }
.rh24-btn-login { background: #555 !important; } /* Login plus neutre pour le style soft */

/* BULLES / BADGES */
.rh24-badge-count {
    position: absolute !important;
    top: -5px !important;
    right: -5px !important;
    background: #e74c3c !important;
    color: #fff !important;
    /* SOFT : Bordure blanche au lieu de noire */
    border: 2px solid #fff !important;
    border-radius: 50% !important;
    min-width: 18px !important;
    height: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
    padding: 0 4px !important;
    z-index: 5 !important;
}

[data-theme="dark"] .rh24-badge-count {
    border-color: #1a1a1a !important;
}

.rh24-badge-count.hidden { display: none !important; }

.rh24-badge-count.streak {
    background: #e67e22 !important;
}

.rh24-badge-count.objectives {
    background: #f39c12 !important;
    min-width: auto !important;
    padding: 0 6px !important;
}

/* ===========================================
   DROPDOWNS (STYLE SOFT)
   =========================================== */
.rh24-dropdown {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    right: 0 !important;
    background: #fff !important;
    /* SOFT : Bordure fine */
    border: 1px solid rgba(0,0,0,0.08) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12) !important;
    padding: 8px !important;
    min-width: 280px !important;
    max-width: 320px !important;
    max-height: 400px !important;
    overflow-y: auto !important;
    z-index: 999999999 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(10px) !important;
    transition: all 0.3s ease !important;
    color: #000 !important;
}

[data-theme="dark"] .rh24-dropdown {
    background: #1a1a1a !important;
    border-color: rgba(255,255,255,0.18) !important;
    color: #fff !important;
}

/* Ancienne ouverture au survol — retiree en v2.64.0.
   Elle rendait le panneau visible sans declencher les effets d'ouverture
   (chargement, marquage des notifications comme lues), donc un meme geste
   apparent produisait deux etats differents. Voir le bloc « CLIC SEUL ». */

.rh24-dropdown-header {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    margin-bottom: 8px !important;
    padding: 5px 4px !important;
    color: #000 !important;
    opacity: 0.6 !important;
}

[data-theme="dark"] .rh24-dropdown-header {
    color: #fff !important;
}

.rh24-dropdown-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 10px !important;
    border-radius: 8px !important;
    margin-bottom: 4px !important;
    text-decoration: none !important;
    color: #000 !important;
    font-size: 12px !important;
    transition: all 0.2s ease !important;
    background: rgba(0, 0, 0, 0.02) !important;
}

[data-theme="dark"] .rh24-dropdown-item {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.03) !important;
}

.rh24-dropdown-item:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    transform: none !important;
}

.rh24-dropdown-item.unread {
    background: rgba(46, 204, 113, 0.08) !important;
    border-left: 3px solid #2ecc71 !important;
}

.rh24-dropdown-item i {
    width: 16px !important;
    min-width: 16px !important;
    height: 16px !important;
    font-size: 14px !important;
    color: inherit !important;
    margin-top: 2px !important;
}

.rh24-dropdown-item-content { flex: 1 !important; }
.rh24-dropdown-item-title { font-weight: 700 !important; margin-bottom: 2px !important; font-size: 12px !important; color: inherit !important; }
.rh24-dropdown-item-text { font-size: 11px !important; opacity: 0.7 !important; line-height: 1.4 !important; color: inherit !important; }
.rh24-dropdown-item-time { font-size: 10px !important; opacity: 0.5 !important; margin-top: 4px !important; color: inherit !important; }

/* ITEMS OBJECTIFS */
.rh24-objective-item {
    padding: 10px !important;
    border-radius: 8px !important;
    background: rgba(0, 0, 0, 0.02) !important;
    margin-bottom: 8px !important;
    color: #000 !important;
}

[data-theme="dark"] .rh24-objective-item {
    background: rgba(255, 255, 255, 0.03) !important;
    color: #fff !important;
}

.rh24-objective-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 6px !important;
}

.rh24-objective-title { font-size: 12px !important; font-weight: 700 !important; color: inherit !important; }
.rh24-objective-progress { font-size: 11px !important; opacity: 0.6 !important; color: inherit !important; }

.rh24-objective-bar {
    height: 6px !important;
    background: rgba(0, 0, 0, 0.08) !important;
    border-radius: 3px !important;
    overflow: hidden !important;
}

[data-theme="dark"] .rh24-objective-bar {
    background: rgba(255, 255, 255, 0.08) !important;
}

.rh24-objective-bar-fill {
    height: 100% !important;
    background: linear-gradient(90deg, #f39c12, #e67e22) !important;
    border-radius: 3px !important;
    transition: width 0.3s ease !important;
}

.rh24-objective-item.completed .rh24-objective-bar-fill {
    background: linear-gradient(90deg, #2ecc71, #27ae60) !important;
}

.rh24-objective-item.completed {
    opacity: 0.6 !important;
}

.rh24-objective-reward {
    font-size: 10px !important;
    color: #f39c12 !important;
    font-weight: 700 !important;
    margin-top: 4px !important;
}

.rh24-dropdown-empty {
    text-align: center !important;
    padding: 20px !important;
    opacity: 0.5 !important;
    font-size: 12px !important;
    color: inherit !important;
}

/* ===========================================
   TOOLTIPS (STYLE SOFT)
   =========================================== */
.rh24-tooltip {
    position: absolute !important;
    bottom: -10px !important;
    left: 50% !important;
    transform: translate(-50%, 100%) !important;
    background: rgba(0,0,0,0.85) !important;
    border: none !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2) !important;
    padding: 8px 12px !important;
    z-index: 999999999 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
    pointer-events: none !important;
    white-space: nowrap !important;
    width: max-content !important;
    color: #fff !important;
}

.rh24-btn:hover .rh24-tooltip {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translate(-50%, calc(100% + 5px)) !important;
}

.rh24-tooltip-title {
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: inherit !important;
}

/* ===========================================
   DASHBOARD MON COMPTE (STYLE SOFT)
   =========================================== */
.rh24-dashboard {
    margin: 0px 0px;
    text-align: center;
}

.rh24-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.rh24-dashboard-card {
    background: #fff;
    /* SOFT : Bordure fine */
    border: 1px solid rgba(0,0,0,0.08) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04) !important;
    padding: 20px;
}

[data-theme="dark"] .rh24-dashboard-card {
    background: #1a1a1a !important;
    border-color: rgba(255,255,255,0.18) !important;
}

.rh24-dashboard-card h3 {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rh24-dashboard-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
}

[data-theme="dark"] .rh24-dashboard-stat {
    border-bottom-color: rgba(255,255,255,0.05) !important;
}

.rh24-dashboard-stat:last-child { border-bottom: none !important; }
.rh24-dashboard-stat-label { font-size: 14px; opacity: 0.7; }
.rh24-dashboard-stat-value { font-size: 20px; font-weight: 700; }

/* BOUTONS ACTIONS DASHBOARD */
.rh24-dashboard-btn {
    width: 50px !important;
    height: 50px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
    border: none !important;
}

.rh24-dashboard-btn i {
    font-size: 20px !important;
    color: #fff !important;
}

/* SYNC SECTION (SOFT STYLE) */
.rh24-sync-section {
    border: 1px solid rgba(0,0,0,0.1) !important;
    background: rgba(27,40,56,0.02) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03) !important;
    border-radius: 16px !important;
}

[data-theme="dark"] .rh24-sync-section {
    border-color: rgba(255,255,255,0.2) !important;
    background: rgba(255,255,255,0.02) !important;
}

/* BADGES DANS SYNC SECTION */
.rh24-badge-steam, 
.rh24-badge-protondb, 
.rh24-badge-sync {
    border: 1px solid rgba(0,0,0,0.1) !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05) !important;
    border-radius: 30px !important;
}

[data-theme="dark"] .rh24-badge-steam,
[data-theme="dark"] .rh24-badge-protondb,
[data-theme="dark"] .rh24-badge-sync {
    border-color: rgba(255,255,255,0.2) !important;
}

/* ===========================================
   RESPONSIVE TABLET & MOBILE
   =========================================== */
@media (max-width: 768px) {
    .rh24-user-section { display: flex !important; }
    .rh24-user-meta { gap: 2px !important; }
    /* PLUS DE TEXTE SOUS 10 PX (v6.10.236). Le bloc membre retrecissait sur
       telephone jusqu a 7 px pour le rang -- illisible, et c est sur toutes les
       pages d un membre connecte. Mesure a 375 px : en 11 et 10 px, le bloc
       tient (8 a 164 px), les boutons commencent a 207, rien ne deborde. */
    .rh24-username { font-size: 11px !important; max-width: 110px !important; }
    .rh24-rank-badge { font-size: 10px !important; padding: 2px 6px !important; }
    .rh24-xp-text { font-size: 10px !important; }
    
    .rh24-btn-objectives,
    .rh24-btn-notifications,
    .rh24-btn-streak {
        display: none !important;
    }
    
    .rh24-actions { gap: 6px !important; }
    .rh24-btn { 
        width: 36px !important; 
        height: 36px !important;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
    }
    
    .rh24-btn:hover { 
        transform: none !important;
        opacity: 1 !important;
    }
    .rh24-btn > svg, .rh24-btn > i { width: 14px !important; height: 14px !important; font-size: 14px !important; }
    
    .rh24-badge-count { 
        min-width: 16px !important; 
        height: 16px !important;
        padding: 0 3px !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
        top: -3px !important;
        right: -3px !important;
    }
    
    .rh24-tooltip { display: none !important; }
    .rh24-dashboard-grid { grid-template-columns: 1fr; }
    
    .rh24-dropdown {
        z-index: 9999999999 !important;
    }
}

@media (max-width: 480px) {
    /* Plus de reduction ici (v6.10.236) : 9, 7 et 8 px ne se lisaient pas.
       Les tailles du dessus valent jusqu au plus petit telephone. */
    .rh24-username { max-width: 110px !important; }
    
    .rh24-btn { 
        width: 34px !important; 
        height: 34px !important; 
    }
}

/* ===========================================
   FIX HAMBURGER MENU Z-INDEX
   =========================================== */
.rh24-dropdown {
    z-index: 9999999999 !important;
}

.rh24-tooltip {
    z-index: 9999999999 !important;
}

/* ===========================================
   FIX MOBILE LAYOUT & ALIGNMENT
   =========================================== */
@media (max-width: 768px) {
    #bloglo-topbar .bloglo-flex-row {
        gap: 4px !important;
    }
    
    #bloglo-topbar .col-md.start-sm {
        flex-grow: 0 !important;
        flex-shrink: 1 !important;
    }
    
    #bloglo-topbar .col-md.end-sm {
        display: flex !important;
        justify-content: flex-end !important;
        flex-grow: 1 !important;
    }
    
    #bloglo-topbar .col-md.end-sm .bloglo-topbar-widget,
    #bloglo-topbar .col-md.end-sm .bloglo-topbar-widget__text,
    #bloglo-topbar .col-md.end-sm .bloglo-topbar-widget__text > span {
        display: flex !important;
        justify-content: flex-end !important;
        width: 100% !important;
    }
    
    #bloglo-topbar .rh24-actions {
        display: flex !important;
        justify-content: flex-end !important;
        margin-left: auto !important;
    }
    
    #bloglo-topbar .bloglo-topbar-widget__text > span:has(.rh24-actions) {
        display: flex !important;
        justify-content: flex-end !important;
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    #bloglo-topbar .bloglo-flex-row { gap: 0px !important; }
    #bloglo-topbar .col-md { padding-left: 2px !important; padding-right: 2px !important; }
    
    #bloglo-topbar .col-md.start-sm { flex-grow: 0 !important; flex-shrink: 1 !important; }
    #bloglo-topbar .col-md.end-sm { flex-grow: 1 !important; justify-content: flex-end !important; }
    
    #bloglo-topbar .rh24-actions {
        display: flex !important;
        justify-content: flex-end !important;
        margin-left: auto !important;
    }
}

/* ===========================================
   MODULES OBJECTIFS ET NOTIFICATIONS - PAGE MON COMPTE
   =========================================== */
.rh24-objective-item-card {
    transition: all 0.2s ease;
    border-radius: 8px !important;
    border: 1px solid rgba(0,0,0,0.03) !important;
}
.rh24-objective-item-card:hover { background: rgba(0,0,0,0.03) !important; }
[data-theme="dark"] .rh24-objective-item-card { background: rgba(255,255,255,0.02) !important; }
[data-theme="dark"] .rh24-objective-item-card:hover { background: rgba(255,255,255,0.05) !important; }

.rh24-notif-card-item { 
    transition: all 0.2s ease; 
    border-radius: 8px !important;
}
.rh24-notif-card-item:hover { background: rgba(0,0,0,0.03) !important; transform: translateX(4px); }
[data-theme="dark"] .rh24-notif-card-item:hover { background: rgba(255,255,255,0.05) !important; }

/* Boutons icônes responsive */
@media (max-width: 768px) {
    .rh24-dashboard-btn { width: 45px !important; height: 45px !important; }
    .rh24-dashboard-btn i { font-size: 18px !important; }
}

@media (max-width: 480px) {
    .rh24-dashboard-btn { width: 42px !important; height: 42px !important; }
    .rh24-dashboard-btn i { font-size: 16px !important; }
}

/* ===========================================
   CORRECTIFS CIBLÉS v2.43.0
   Ajouts uniquement — aucune règle existante n'est modifiée.
   =========================================== */

/* Encarts du tableau de bord : une ombre portée en mode sombre, que le mode
   clair avait déjà. Sans elle, les cartes se fondent dans le fond. */
[data-theme="dark"] .rh24-dashboard-card {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45) !important;
}

/* Choix de la source d'avatar sur /mon-compte/.
   Ce sont des <input type="radio"> NATIFS, jamais stylisés : en mode sombre
   le navigateur les dessine avec sa palette claire, donc cercle sombre sur
   fond sombre, invisible tant qu'il n'est pas coché.

   « color-scheme » est la réponse standard : elle demande au navigateur de
   dessiner ses contrôles natifs avec sa palette sombre — contour clair et
   cercle visible. « accent-color » fixe l'état coché au rouge de la marque,
   identique dans les deux modes. */
.rh24-avatar-choices {
    accent-color: var(--rh24-brand, #e04b43);
}

.rh24-avatar-choices input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 0;
    flex: 0 0 auto;
    cursor: pointer;
}

[data-theme="dark"] .rh24-avatar-choices {
    color-scheme: dark;
}

/* Repli pour les navigateurs sans color-scheme : contour explicite. */
@supports not (color-scheme: dark) {
    [data-theme="dark"] .rh24-avatar-choices input[type="radio"] {
        outline: 1px solid rgba(255, 255, 255, 0.45);
        outline-offset: 1px;
        border-radius: 50%;
    }
}

[data-theme="dark"] .rh24-avatar-choices label {
    color: #e8e8e8;
}

/* ===========================================
   LISIBILITÉ DES PASTILLES DE COMPTAGE (v2.44.0)
   Bloc ADDITIF : aucune règle existante n'est modifiée, seules les valeurs
   utiles sont surchargées en fin de feuille.
   ===========================================

   Trois défauts cumulés sur la version d'origine :

   1. La bordure de 2 px mangeait 22 % du diamètre. Sur une pastille de
      18 px, il ne restait que 14 px pour le chiffre. Elle est ramenée à
      1,5 px : la séparation d'avec le bouton reste nette, et l'espace
      intérieur gagne 1 px.

   2. Le texte à 9 px en gras 700 est sous le seuil de confort : les
      glyphes se remplissent et « 8 » devient difficile à distinguer de
      « 6 ». Passé à 11 px, avec la pastille agrandie en conséquence.

   3. « border-radius: 50 % » sur un élément large produit une ELLIPSE.
      Invisible sur un chiffre, très net sur « 1672 » : la pastille
      s'étirait en ovale. Remplacé par un rayon en pixels, qui donne un
      cercle sur un chiffre et une gélule aux bouts arrondis au-delà.

   La pastille passe de 18 à 20 px sur un bouton de 40 px — elle reste
   largement dans les proportions d'origine.
   =========================================== */

.rh24-btn .rh24-badge-count {
    min-width: 20px !important;
    height: 20px !important;
    border-width: 1.5px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    line-height: 1 !important;
    padding: 0 5px !important;
    top: -6px !important;
    right: -6px !important;
    /* Chiffres de largeur constante : « 11 » et « 44 » occupent la même
       place, la pastille ne tressaute plus quand le compteur change. */
    font-variant-numeric: tabular-nums !important;
    font-feature-settings: "tnum" 1 !important;
}

/* La pastille des objectifs n'affiche plus qu'un chiffre (v2.45.0) : elle
   reprend donc exactement les mesures des autres, sans marge supplémentaire. */
.rh24-btn .rh24-badge-count.objectives {
    padding: 0 5px !important;
    font-size: 11px !important;
}

/* Objectifs tous accomplis : la couleur porte l'information que le
   dénominateur donnait auparavant. Vert au lieu de l'orange habituel. */
.rh24-btn .rh24-badge-count.objectives.is-complete {
    background: #27ae60 !important;
}

/* Tablette et mobile : mêmes proportions, un cran en dessous. */
@media (max-width: 768px) {
    .rh24-btn .rh24-badge-count {
        min-width: 18px !important;
        height: 18px !important;
        font-size: 10px !important;
        padding: 0 4px !important;
        top: -5px !important;
        right: -5px !important;
    }
    .rh24-btn .rh24-badge-count.objectives {
        padding: 0 4px !important;
        font-size: 10px !important;
    }
}

/* ===========================================
   MENUS DEROULANTS — CLIC SEUL (v2.64.0)
   ===========================================

   POURQUOI PAS LE SURVOL

   Ces menus ne sont pas de la navigation : ils portent des actions et de
   l'etat. Ouvrir celui des notifications MARQUE TOUT COMME LU. Un geste
   involontaire — traverser la barre a la souris — ne doit pas produire un
   effet de bord sur des donnees.

   Les trois declencheurs sont de plus adjacents : au survol, un simple
   passage les ouvrait l'un apres l'autre.

   Enfin, le clic seul donne un comportement IDENTIQUE sur ordinateur, sur
   ecran tactile et au clavier — un seul modele a comprendre au lieu de trois.

   Une seule regle decide donc de la visibilite : la classe .is-open.
   =========================================== */

/* Ferme par defaut. */
.rh24-btn > .rh24-dropdown {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(10px) !important;
    pointer-events: none;
}

/* Ouvert : uniquement sur action deliberee. Aucune regle de survol. */
.rh24-btn.is-open > .rh24-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto;
}

/* Le declencheur signale son etat, et reste visible au clavier. */
.rh24-btn[aria-expanded="true"] {
    background: rgba(0, 0, 0, .06);
}

[data-theme="dark"] .rh24-btn[aria-expanded="true"] {
    background: rgba(255, 255, 255, .10);
}

.rh24-btn:focus-visible {
    outline: 2px solid var(--rh24-brand, #e04b43);
    outline-offset: 2px;
}

/* ===========================================
   MES DERNIÈRES PUBLICATIONS (v2.99.0)
   Une chronologie, pas trois listes : tests, avis notés et contributions
   se mêlent par date. C'est ainsi qu'on se souvient de son activité.
   =========================================== */
.rh24-recent-list { list-style: none; margin: 12px 0 0; padding: 0; }
.rh24-recent-list li {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(150, 150, 150, .16);
}
.rh24-recent-list li:last-child { border-bottom: none; }
/* BADGE RÉEL (v3.36.0) — remplace l'icône FontAwesome grise par le même
   badge rond qu'on trouve sur les fiches d'article : cohérence visuelle,
   et surtout une information utile -- la note, pas juste "c'est un test". */
.rh24-recent-badge {
    display: inline-flex; align-items: center; justify-content: center;
    flex: 0 0 auto; width: 24px; height: 24px;
    border-radius: 50%; color: #fff !important;
    font-size: 11px; font-weight: 800;
    margin-top: 1px;
}
.rh24-recent-badge.is-empty {
    background: rgba(150, 150, 150, .3) !important;
    font-weight: 400;
}
.rh24-recent-list a {
    flex: 1; min-width: 0;
    text-decoration: none !important; color: inherit !important;
}
.rh24-recent-title {
    display: block; font-size: 14px; font-weight: 600; line-height: 1.35;
    overflow: hidden; text-overflow: ellipsis;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.rh24-recent-list a:hover .rh24-recent-title { color: #e04b43 !important; }
.rh24-recent-meta { display: block; margin-top: 2px; font-size: 12px; opacity: .6; }

/* Les deux nouveaux boutons d'action rapide adoptent le gabarit des trois
   autres : une rangée dont un membre différerait se lirait mal. */
.rh24-btn-publish    { background: #e04b43 !important; }
.rh24-btn-publish svg { color: #fff; }
.rh24-btn-clearnotif { background: #7f8c8d !important; border: none; cursor: pointer; }
.rh24-btn-clearnotif:disabled { opacity: .5; cursor: wait; }

/* Alignement des publications récentes (v3.27.0)
   Sur mobile, les autres titres de cartes sont alignés à gauche ; cette liste
   était centrée par héritage et rompait la colonne de lecture. */
.rh24-recent-list,
.rh24-recent-list li,
.rh24-recent-list a { text-align: left !important; }
.rh24-recent-list li { justify-content: flex-start; }


/* ============================================================
   FIX SVG ICONS IN DROPDOWNS & MON COMPTE (light mode)
   Les .rh24-icon dans les items de dropdown doivent toujours
   suivre la couleur du texte de leur conteneur, pas celle du
   bouton parent qui serait blanc.
   ============================================================ */
.rh24-dropdown .rh24-icon,
.rh24-dropdown svg.rh24-icon,
.rh24-objective-title .rh24-icon,
.rh24-dropdown-item-title .rh24-icon,
.rh24-notif-card-item .rh24-icon,
.rh24-dashboard-card .rh24-icon {
    color: currentColor !important;
    stroke: currentColor !important;
}

.rh24-icon { display: inline-block !important; vertical-align: -0.15em !important; flex-shrink: 0 !important; width: 1.1em !important; height: 1.1em !important; color: currentColor !important; stroke: currentColor !important; }

