/* =============================================================================
   AziluM Forum Styler v3 — CSS consolidé propre, sans conflits
   Frutiger Aero / Glassmorphism — Violet / Orange AziluM Gaming
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;500;600;700&family=Rajdhani:wght@400;500;600;700&display=swap');

/* =============================================================================
   VARIABLES — DARK (défaut) + LIGHT
   ============================================================================= */

:root,
[data-afs-theme="dark"] {
    --afs-bg-base:        transparent;
    --afs-surface:        rgba(15, 10, 40, 0.82);
    --afs-surface-hover:  rgba(30, 20, 70, 0.90);
    --afs-border:         rgba(180, 130, 255, 0.25);
    --afs-text:           #f0eaff;
    --afs-text-muted:     #b8a8e0;
    --afs-text-head:      #ffffff;
    --afs-shadow:         0 6px 28px rgba(0,0,0,0.60);
    --afs-nav-bg:         rgba(10, 5, 30, 0.88);
    --afs-stats-bg:       rgba(20, 10, 55, 0.75);
    --afs-crumb-bg:       rgba(10, 5, 30, 0.70);
    --afs-nav-link:       #d4bfff;
    --afs-nav-link-hover: #ffb347;
    --afs-el-bg:          #fdfbff;
    --afs-el-hover:       #f3eeff;
    --afs-el-border:      rgba(168,85,247,0.12);
    --afs-poster-bg:      rgba(243,238,255,0.70);
    --afs-text-title:     #1a1040;
    --afs-text-secondary: #6b5a99;
    --afs-link:           #7c3aed;
    --afs-stat-num:       #ffb347;
    --afs-stat-label:     #b8a8e0;
}

[data-afs-theme="light"] {
    --afs-bg-base:        #eef2ff;
    --afs-surface:        rgba(255,255,255,0.80);
    --afs-surface-hover:  rgba(255,255,255,0.95);
    --afs-border:         rgba(120,80,200,0.20);
    --afs-text:           #1a1040;
    --afs-text-muted:     #5a4a90;
    --afs-text-head:      #0a0825;
    --afs-shadow:         0 6px 28px rgba(60,20,120,0.12);
    --afs-nav-bg:         rgba(240,235,255,0.92);
    --afs-stats-bg:       rgba(255,255,255,0.90);
    --afs-crumb-bg:       rgba(235,230,255,0.80);
    --afs-nav-link:       #4a2a90;
    --afs-nav-link-hover: #c05a00;
    --afs-el-bg:          #fdfbff;
    --afs-el-hover:       #f3eeff;
    --afs-el-border:      rgba(124,58,237,0.10);
    --afs-poster-bg:      rgba(243,238,255,0.70);
    --afs-text-title:     #1a1040;
    --afs-text-secondary: #6b5a99;
    --afs-link:           #7c3aed;
    --afs-stat-num:       #7c3aed;
    --afs-stat-label:     #6b5a99;
}

:root {
    --afs-accent:    var(--afs-accent-override, #ff9a2e);
    --afs-secondary: var(--afs-secondary-override, #a855f7);
    --afs-blur:      14px;
    --afs-radius:    14px;
}

/* =============================================================================
   WRAPPER PRINCIPAL
   ============================================================================= */

#af-wrapper {
    font-family: 'Exo 2', sans-serif;
    font-size: 15px;
    color: var(--afs-text);
    position: relative;
    background: var(--afs-bg-base);
    border-radius: var(--afs-radius);
    padding: 0;
    overflow: visible;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* =============================================================================
   NAVIGATION — #forum-header
   ============================================================================= */

#forum-header {
    background: var(--afs-nav-bg);
    backdrop-filter: blur(var(--afs-blur));
    -webkit-backdrop-filter: blur(var(--afs-blur));
    border: 1px solid var(--afs-border);
    border-radius: var(--afs-radius) var(--afs-radius) 0 0;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 52px;
    box-shadow: var(--afs-shadow);
}

#forum-navigation {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
}

#forum-navigation a {
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--afs-nav-link);
    text-decoration: none;
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}
#forum-navigation a:hover {
    color: var(--afs-nav-link-hover);
    background: rgba(255,154,46,0.12);
    border-color: rgba(255,154,46,0.30);
}

#forum-search input[type="search"] {
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--afs-border);
    border-radius: 999px;
    color: var(--afs-text);
    padding: 6px 16px;
    font-family: 'Exo 2', sans-serif;
    font-size: 13px;
    width: 200px;
    transition: border-color 0.2s, width 0.3s;
}
#forum-search input[type="search"]::placeholder { color: var(--afs-text-muted); }
#forum-search input[type="search"]:focus {
    outline: none;
    border-color: var(--afs-accent);
    box-shadow: 0 0 0 3px rgba(255,154,46,0.15);
    width: 250px;
}

/* =============================================================================
   FIL D'ARIANE
   ============================================================================= */

#forum-breadcrumbs {
    background: var(--afs-crumb-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-left: 1px solid var(--afs-border);
    border-right: 1px solid var(--afs-border);
    border-bottom: 1px solid var(--afs-border);
    padding: 8px 22px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    letter-spacing: 0.04em;
    color: var(--afs-text-muted);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}
#forum-breadcrumbs a { color: var(--afs-accent); text-decoration: none; font-weight: 600; transition: color 0.2s; }
#forum-breadcrumbs a:hover { color: var(--afs-secondary); }

/* =============================================================================
   TITRE PRINCIPAL
   ============================================================================= */

#af-wrapper h1.main-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--afs-text-head);
    padding: 16px 22px 10px;
    margin: 0;
}

/* =============================================================================
   EN-TÊTE CATÉGORIE — .title-element
   ============================================================================= */

#af-wrapper .title-element {
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: #ffb347;
    background: linear-gradient(90deg, rgba(255,140,30,0.18) 0%, transparent 70%);
    border-left: 3px solid #ff9a2e;
    border-bottom: 1px solid var(--afs-border);
    padding: 10px 22px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}
#af-wrapper .title-element .last-post-headline {
    font-size: 11px;
    color: var(--afs-text-muted);
    font-weight: 400;
}

/* =============================================================================
   CONTENEUR LISTE — .content-container
   ============================================================================= */

#af-wrapper .content-container {
    background: var(--afs-surface);
    backdrop-filter: blur(var(--afs-blur));
    -webkit-backdrop-filter: blur(var(--afs-blur));
    border: 1px solid var(--afs-border);
    border-radius: 0 0 var(--afs-radius) var(--afs-radius);
    margin: 0 0 20px 0;
    overflow: hidden;
    box-shadow: var(--afs-shadow);
    width: 100%;
    box-sizing: border-box;
    height: auto !important;
    min-height: unset !important;
}

/* =============================================================================
   LIGNE FORUM — .content-element.forum
   [icône 52px] [nom forum flex] [poster 190px]
   ============================================================================= */

/* Neutraliser le display:table et height:80px d'Asgaros */
#af-wrapper .forum,
#af-wrapper .topic,
#af-wrapper .unread-topic,
#af-wrapper .unapproved-topic,
#af-wrapper .content-element.forum,
#af-wrapper .content-element.topic {
    display: flex !important;
    height: auto !important;
    min-height: unset !important;
    width: 100% !important;
    table-layout: unset !important;
}

#af-wrapper .content-element.forum {
    align-items: stretch !important;
    border-bottom: 1px solid var(--afs-el-border) !important;
    background: var(--afs-el-bg) !important;
    transition: background 0.2s !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    gap: 0 !important;
}
#af-wrapper .content-element.forum:last-child { border-bottom: none !important; }
#af-wrapper .content-element.forum:hover { background: var(--afs-el-hover) !important; }

/* Icône statut */
#af-wrapper .content-element.forum .forum-status {
    flex: 0 0 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    padding: 0 !important;
    color: var(--afs-text-muted) !important;
}
#af-wrapper .content-element.forum .forum-status.unread i { color: var(--afs-accent) !important; }
#af-wrapper .content-element.forum .forum-status.read i   { color: var(--afs-text-muted) !important; }

/* Nom forum */
#af-wrapper .content-element.forum .forum-name {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    padding: 14px 16px 14px 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 3px !important;
}
#af-wrapper .content-element.forum .forum-name a.forum-title {
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--afs-text-title) !important;
    text-decoration: none !important;
    display: block !important;
    transition: color 0.2s !important;
    line-height: 1.3 !important;
}
#af-wrapper .content-element.forum .forum-name a.forum-title:hover { color: var(--afs-accent) !important; }

#af-wrapper .content-element.forum .forum-name small.forum-description {
    display: block !important;
    color: var(--afs-text-secondary) !important;
    font-size: 12px !important;
    font-style: italic !important;
}
#af-wrapper .content-element.forum .forum-name small.forum-stats {
    display: block !important;
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 11px !important;
    color: var(--afs-text-muted) !important;
    letter-spacing: 0.05em !important;
}
#af-wrapper .content-element.forum .forum-name small.forum-lastpost-small {
    display: none !important;
}

/* Poster — colonne droite */
#af-wrapper .content-element.forum .forum-poster {
    flex: 0 0 190px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 5px !important;
    padding: 12px 14px !important;
    border-left: 1px solid var(--afs-el-border) !important;
    background: var(--afs-poster-bg) !important;
    box-sizing: border-box !important;
}

#af-wrapper .content-element.forum .forum-poster-avatar {
    display: block !important;
}
#af-wrapper .content-element.forum .forum-poster-avatar img {
    width: 30px !important;
    height: 30px !important;
    border-radius: 8px !important;
    border: none !important;
    box-shadow: none !important;
    display: block !important;
    object-fit: cover !important;
}

#af-wrapper .content-element.forum .forum-poster-summary {
    display: block !important;
    width: 100% !important;
}
#af-wrapper .content-element.forum .forum-poster-summary > a {
    display: block !important;
    color: var(--afs-text-title) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    overflow: visible !important;
    max-width: none !important;
    transition: color 0.2s !important;
}
#af-wrapper .content-element.forum .forum-poster-summary > a:hover { color: var(--afs-accent) !important; }

#af-wrapper .content-element.forum .forum-poster-summary small {
    display: block !important;
    font-size: 11px !important;
    color: var(--afs-text-muted) !important;
    margin-top: 3px !important;
}
#af-wrapper .content-element.forum .forum-poster-summary small a {
    font-size: 11px !important;
    text-decoration: none !important;
    display: inline !important;
}
/* REMOVED highlight-admin */ /*
    color: var(--afs-accent) !important;
    font-weight: 700 !important;
}
#af-wrapper .content-element.forum .forum-poster-summary small span { color: var(--afs-text-muted) !important; }

/* =============================================================================
   LIGNE TOPIC — .content-element.topic
   [icône 52px] [nom topic flex] [poster 110px centré]
   ============================================================================= */

#af-wrapper .content-element.topic {
    align-items: stretch !important;
    border-bottom: 1px solid var(--afs-el-border) !important;
    background: var(--afs-el-bg) !important;
    transition: background 0.2s !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    gap: 0 !important;
}
#af-wrapper .content-element.topic:last-child { border-bottom: none !important; }
#af-wrapper .content-element.topic:hover { background: var(--afs-el-hover) !important; }

/* Icône statut topic */
#af-wrapper .content-element.topic .topic-status {
    flex: 0 0 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    padding: 0 !important;
}
#af-wrapper .content-element.topic .topic-status.unread i { color: var(--afs-accent) !important; }
#af-wrapper .content-element.topic .topic-status.read i   { color: var(--afs-text-muted) !important; }

/* Nom topic */
#af-wrapper .content-element.topic .topic-name {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    padding: 12px 16px 12px 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 3px !important;
}
#af-wrapper .content-element.topic .topic-name > a {
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--afs-text-title) !important;
    text-decoration: none !important;
    display: block !important;
    transition: color 0.2s !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
#af-wrapper .content-element.topic .topic-name > a:hover { color: var(--afs-accent) !important; }
#af-wrapper .content-element.topic .topic-name small,
#af-wrapper .content-element.topic .topic-name small a {
    font-size: 11px !important;
    color: var(--afs-text-muted) !important;
    text-decoration: none !important;
}
#af-wrapper .content-element.topic .topic-name small a:hover { color: var(--afs-accent) !important; }
#af-wrapper .content-element.topic .topic-name small a.highlight-admin { color: var(--afs-accent) !important; font-weight: 700 !important; }

/* Poster topic */
#af-wrapper .content-element.topic .topic-poster {
    flex: 0 0 110px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    padding: 10px 12px !important;
    border-left: 1px solid var(--afs-el-border) !important;
    background: var(--afs-poster-bg) !important;
    text-align: center !important;
    box-sizing: border-box !important;
}
#af-wrapper .content-element.topic .topic-poster-avatar img {
    width: 36px !important;
    height: 36px !important;
    border-radius: 8px !important;
    border: none !important;
    box-shadow: none !important;
    display: block !important;
    object-fit: cover !important;
}
#af-wrapper .content-element.topic .topic-poster .forum-poster-summary {
    font-size: 11px !important;
    color: var(--afs-text-muted) !important;
    line-height: 1.4 !important;
    text-align: center !important;
}
#af-wrapper .content-element.topic .topic-poster .forum-poster-summary a {
    color: var(--afs-link) !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    display: block !important;
}
#af-wrapper .content-element.topic .topic-poster .forum-poster-summary a.highlight-admin { color: var(--afs-accent) !important; font-weight: 700 !important; }
#af-wrapper .content-element.topic .topic-poster .forum-poster-summary a:hover { color: var(--afs-accent) !important; }

/* =============================================================================
   INDICATEURS LU/NON LU
   ============================================================================= */

#read-unread {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    padding: 10px 22px !important;
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
    color: var(--afs-text-muted) !important;
    border-top: 1px solid var(--afs-border) !important;
    background: rgba(10,5,30,0.40) !important;
}
[data-afs-theme="light"] #read-unread { background: rgba(124,58,237,0.04) !important; }
#read-unread .indicator { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
#read-unread .indicator.unread { background: var(--afs-accent); }
#read-unread .indicator.read   { background: var(--afs-text-muted); opacity: 0.4; }
#read-unread a { color: var(--afs-accent) !important; text-decoration: none; }
#read-unread a:hover { color: var(--afs-secondary) !important; }

/* =============================================================================
   STATISTIQUES
   ============================================================================= */

#af-wrapper #statistics,
#statistics {
    background: var(--afs-surface) !important;
    backdrop-filter: blur(var(--afs-blur)) !important;
    border: 1px solid var(--afs-border) !important;
    border-radius: var(--afs-radius) !important;
    margin: 0 0 24px 0 !important;
    overflow: hidden !important;
    box-shadow: var(--afs-shadow) !important;
}
#statistics-body {
    padding: 16px 20px !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}
#statistics-elements {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.statistics-element {
    background: var(--afs-stats-bg) !important;
    border: 1px solid var(--afs-border) !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    text-align: center !important;
    flex: 1 !important;
    min-width: 80px !important;
    box-shadow: none !important;
    transition: border-color 0.2s, transform 0.2s !important;
}
.statistics-element:hover { border-color: rgba(255,154,46,0.40) !important; transform: translateY(-2px) !important; }
.element-number {
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: var(--afs-stat-num) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
}
.element-name {
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 10px !important;
    letter-spacing: 0.09em !important;
    text-transform: uppercase !important;
    color: var(--afs-stat-label) !important;
    margin-top: 4px !important;
}
#statistics-online-users {
    font-size: 12px !important;
    color: var(--afs-text-muted) !important;
    font-family: 'Rajdhani', sans-serif !important;
    border-top: 1px solid var(--afs-border) !important;
    padding-top: 12px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    align-items: center !important;
    background: transparent !important;
}
#statistics-online-users a { color: var(--afs-accent) !important; text-decoration: none !important; }

/* =============================================================================
   BOTTOM NAVIGATION
   ============================================================================= */

#bottom-navigation {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    padding: 10px 16px !important;
    font-size: 13px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    background: rgba(10,5,30,0.40) !important;
    border-radius: 0 0 var(--afs-radius) var(--afs-radius) !important;
}
[data-afs-theme="light"] #bottom-navigation { background: rgba(124,58,237,0.04) !important; }

#bottom-navigation span.fas,
#bottom-navigation span#forum-subscription {
    color: #ffffff !important;
    font-size: 13px !important;
    flex-shrink: 0 !important;
}
[data-afs-theme="light"] #bottom-navigation span.fas,
[data-afs-theme="light"] #bottom-navigation span#forum-subscription { color: #7c3aed !important; }

#af-wrapper #bottom-navigation a,
#af-wrapper #bottom-navigation a b,
#af-wrapper #bottom-navigation a:link,
#af-wrapper #bottom-navigation a:visited,
#bottom-navigation a,
#bottom-navigation a b,
#bottom-navigation a:link,
#bottom-navigation a:visited {
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: color 0.2s !important;
}
[data-afs-theme="light"] #bottom-navigation a,
[data-afs-theme="light"] #bottom-navigation a b { color: #7c3aed !important; }
#bottom-navigation a:hover,
#bottom-navigation a:hover b { color: #ff9a2e !important; }

/* =============================================================================
   PAGES-AND-MENU — bouton "Nouveau Sujet"
   ============================================================================= */

#af-wrapper .pages-and-menu {
    display: flex !important;
    justify-content: flex-end !important;
    padding: 8px 14px !important;
}
#af-wrapper .forum-menu {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}
#af-wrapper .forum-menu a.button {
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.09em !important;
    text-transform: uppercase !important;
    color: #fff !important;
    background: linear-gradient(135deg, #ff9a2e, #a855f7) !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 5px 14px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: opacity 0.18s !important;
}
#af-wrapper .forum-menu a.button:hover { opacity: 0.82 !important; }

/* =============================================================================
   BADGES PROFIL
   ============================================================================= */

.profile-link.highlight-admin  { color: #ffb347 !important; font-weight: 700 !important; }
.profile-link.highlight-default { color: #c084fc !important; font-weight: 600 !important; }
.profile-link.highlight-admin:hover   { color: #ffd080 !important; }
.profile-link.highlight-default:hover { color: var(--afs-accent) !important; }

/* =============================================================================
   LIENS GLOBAUX
   ============================================================================= */

#af-wrapper a { color: #c084fc; text-decoration: none; transition: color 0.2s; }
#af-wrapper a:hover { color: var(--afs-accent); }
[data-afs-theme="light"] #af-wrapper a { color: #7c3aed; }

/* =============================================================================
   BOUTONS
   ============================================================================= */

#af-wrapper input[type="submit"],
#af-wrapper button[type="submit"],
#af-wrapper .button,
#af-wrapper #forum-actions a,
#af-wrapper a[href*="delete"],
#af-wrapper a[href*="move"],
#af-wrapper a[href*="stick"],
#af-wrapper a[href*="close"],
#af-wrapper a[href*="reply"],
#af-wrapper a[href*="repondre"],
#af-wrapper a[href*="supprimer"],
#af-wrapper a[href*="deplacer"],
#af-wrapper a[href*="epingler"],
#af-wrapper a[href*="fermer"] {
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.09em !important;
    text-transform: uppercase !important;
    border-radius: 999px !important;
    padding: 5px 14px !important;
    cursor: pointer !important;
    transition: opacity 0.18s, transform 0.18s !important;
    height: auto !important;
    line-height: 1.4 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    box-shadow: none !important;
}
#af-wrapper input[type="submit"],
#af-wrapper button[type="submit"],
#af-wrapper a[href*="reply"],
#af-wrapper a[href*="repondre"] {
    color: #fff !important;
    background: linear-gradient(135deg, #ff9a2e 0%, #a855f7 100%) !important;
    border: none !important;
}
#af-wrapper #forum-actions a,
#af-wrapper a[href*="delete"],
#af-wrapper a[href*="move"],
#af-wrapper a[href*="stick"],
#af-wrapper a[href*="close"],
#af-wrapper a[href*="supprimer"],
#af-wrapper a[href*="deplacer"],
#af-wrapper a[href*="epingler"],
#af-wrapper a[href*="fermer"] {
    color: #e0d0ff !important;
    background: rgba(168,85,247,0.14) !important;
    border: 1px solid rgba(168,85,247,0.30) !important;
}
#af-wrapper .button.button-red {
    color: #c084fc !important;
    background: transparent !important;
    border: 1px solid rgba(168,85,247,0.45) !important;
}
#af-wrapper input[type="submit"]:hover,
#af-wrapper button[type="submit"]:hover,
#af-wrapper .button:hover,
#af-wrapper #forum-actions a:hover { opacity: 0.85 !important; transform: translateY(-1px) !important; }

/* =============================================================================
   FORMULAIRES
   ============================================================================= */

#af-wrapper input[type="text"],
#af-wrapper input[type="email"],
#af-wrapper input[type="password"],
#af-wrapper textarea,
#af-wrapper select {
    background: rgba(10,5,35,0.60);
    border: 1px solid var(--afs-border);
    border-radius: 8px;
    color: var(--afs-text);
    padding: 10px 14px;
    font-family: 'Exo 2', sans-serif;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
[data-afs-theme="light"] #af-wrapper input[type="text"],
[data-afs-theme="light"] #af-wrapper textarea,
[data-afs-theme="light"] #af-wrapper select {
    background: rgba(255,255,255,0.70);
    color: var(--afs-text);
}
#af-wrapper input:focus, #af-wrapper textarea:focus, #af-wrapper select:focus {
    outline: none;
    border-color: var(--afs-accent);
    box-shadow: 0 0 0 3px rgba(255,154,46,0.18);
}

/* Labels */
#af-wrapper label,
#af-wrapper .checkbox-label {
    color: #7e22ce !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    font-family: 'Exo 2', sans-serif !important;
}
#af-wrapper .editor-row-subject {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 8px 14px !important;
}
#af-wrapper .editor-row-submit {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 12px 14px !important;
}

/* Champs sondage */
#af-wrapper input[name="poll-title"],
#af-wrapper input[name="poll-option[]"] {
    background: #ffffff !important;
    color: #1a1040 !important;
    border: 1px solid rgba(168,85,247,0.25) !important;
}

/* Zone message */
#af-wrapper textarea[name="message"],
#af-wrapper .wp-editor-area {
    background: #ffffff !important;
    color: #1a1040 !important;
    border: 1px solid rgba(180,130,255,0.22) !important;
    font-family: Georgia, serif !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    padding: 14px !important;
    border-radius: 0 0 8px 8px !important;
    resize: vertical !important;
}

/* =============================================================================
   PAGINATION
   ============================================================================= */

#af-wrapper .pagination, #af-wrapper .forum-pagination {
    display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; padding: 16px 0;
}
#af-wrapper .pagination a, #af-wrapper .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 34px; height: 34px; padding: 0 10px; border-radius: 8px;
    font-family: 'Rajdhani', sans-serif; font-size: 14px; font-weight: 700;
    background: var(--afs-surface); border: 1px solid var(--afs-border);
    color: var(--afs-text); text-decoration: none; transition: all 0.2s ease;
}
#af-wrapper .pagination a:hover { background: var(--afs-accent); color: #fff; border-color: transparent; }
#af-wrapper .pagination .current { background: linear-gradient(135deg, #ff9a2e, #a855f7); color: #fff; border-color: transparent; }

/* =============================================================================
   PAGE TOPIC — posts
   ============================================================================= */

#af-wrapper .post-container,
#af-wrapper .forum-post {
    background: #fdfbff !important;
    border: 1px solid rgba(168,85,247,0.12) !important;
    border-radius: 10px !important;
    margin-bottom: 12px !important;
}

/* Supprimer le cadre vert user-online */
#af-wrapper .user-online .avatar {
    box-shadow: none !important;
    border: none !important;
}
#af-wrapper .user-online .avatar img {
    box-shadow: none !important;
    border: none !important;
    border-radius: 10px !important;
}

/* Texte du post */
#af-wrapper .post-content,
#af-wrapper .post-message {
    color: #2d2d2d !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
}
#af-wrapper .post-content p,
#af-wrapper .post-content div,
#af-wrapper .post-message p,
#af-wrapper .post-message div { color: #2d2d2d !important; }
#af-wrapper .post-content a, #af-wrapper .post-message a { color: #7c3aed !important; }
#af-wrapper .post-content a:hover, #af-wrapper .post-message a:hover { color: #ff9a2e !important; }

/* Infos auteur */
#af-wrapper .post-author-block-name a { color: #ff9a2e !important; font-weight: 700 !important; }
#af-wrapper .post-counter,
#af-wrapper .post-author-block-meta { color: #3d2d6e !important; font-size: 12px !important; font-weight: 600 !important; }

/* =============================================================================
   TINYMCE
   ============================================================================= */

.mce-tinymce, .mce-container.mce-panel {
    border: 1px solid rgba(168,85,247,0.30) !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: #ffffff !important;
}
.mce-toolbar-grp, .mce-top-part {
    background: #f0ebff !important;
    border-bottom: 1px solid rgba(168,85,247,0.20) !important;
    padding: 5px 8px !important;
}
.mce-widget.mce-btn {
    background: #ffffff !important;
    border: 1px solid rgba(168,85,247,0.22) !important;
    border-radius: 5px !important;
    width: 26px !important; height: 26px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 1px !important;
}
.mce-widget.mce-btn:hover { background: #fdf4ff !important; border-color: #a855f7 !important; }
.mce-widget.mce-btn button { background: transparent !important; border: none !important; }
.mce-widget.mce-btn button i.mce-ico { color: #7c3aed !important; font-size: 12px !important; }
.mce-edit-area { background: #ffffff !important; }
.mce-statusbar { background: #f0ebff !important; }

/* =============================================================================
   TOGGLE THÈME
   ============================================================================= */

#afs-theme-toggle {
    position: fixed;
    bottom: 28px; right: 28px;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9a2e, #a855f7);
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 20px rgba(255,154,46,0.45);
    transition: transform 0.25s cubic-bezier(.34,1.56,.64,1);
    z-index: 9999;
}
#afs-theme-toggle:hover { transform: scale(1.12) rotate(15deg); }

/* =============================================================================
   SCROLLBAR
   ============================================================================= */

#af-wrapper ::-webkit-scrollbar { width: 5px; height: 5px; }
#af-wrapper ::-webkit-scrollbar-track { background: rgba(255,255,255,0.03); border-radius: 3px; }
#af-wrapper ::-webkit-scrollbar-thumb { background: linear-gradient(#ff9a2e, #a855f7); border-radius: 3px; }

/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 768px) {
    #forum-header { padding: 0 12px; }
    #forum-search input[type="search"] { width: 130px; }
    #af-wrapper .content-element.forum .forum-poster,
    #af-wrapper .content-element.topic .topic-poster { display: none !important; }
    .statistics-element { min-width: 70px; padding: 10px 12px; }
    .element-number { font-size: 18px !important; }
    #afs-theme-toggle { bottom: 16px; right: 16px; width: 40px; height: 40px; font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
    #af-wrapper *, #afs-theme-toggle { transition: none !important; animation: none !important; }
}

/* =============================================================================
   BOUTONS TOPIC — sobres, modernes, texte centré
   ============================================================================= */

/* Reset complet des boutons d'action topic */
#af-wrapper #forum-actions,
#af-wrapper .forum-action-buttons {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    padding: 10px 0 !important;
}

#af-wrapper #forum-actions a,
#af-wrapper .forum-action-buttons a {
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    border-radius: 6px !important;
    padding: 6px 14px !important;
    cursor: pointer !important;
    height: 30px !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: opacity 0.15s, transform 0.15s !important;
    /* Fond neutre semi-transparent */
    background: rgba(255,255,255,0.08) !important;
    border: 1px solid rgba(255,255,255,0.18) !important;
    color: rgba(255,255,255,0.80) !important;
}

#af-wrapper #forum-actions a:hover,
#af-wrapper .forum-action-buttons a:hover {
    background: rgba(255,255,255,0.15) !important;
    border-color: rgba(255,255,255,0.35) !important;
    color: #ffffff !important;
    opacity: 1 !important;
    transform: translateY(-1px) !important;
}

/* Bouton Répondre — accent orange/violet */
#af-wrapper #forum-actions a[href*="reply"],
#af-wrapper #forum-actions a[href*="repondre"],
#af-wrapper .forum-action-buttons a[href*="reply"],
#af-wrapper .forum-action-buttons a[href*="repondre"] {
    background: linear-gradient(135deg, rgba(255,154,46,0.25), rgba(168,85,247,0.25)) !important;
    border-color: rgba(255,154,46,0.45) !important;
    color: #ffb347 !important;
}
#af-wrapper #forum-actions a[href*="reply"]:hover,
#af-wrapper #forum-actions a[href*="repondre"]:hover {
    background: linear-gradient(135deg, rgba(255,154,46,0.40), rgba(168,85,247,0.40)) !important;
    color: #ffffff !important;
}


/* =============================================================================
   BOUTONS TOPIC — ciblage classes réelles Asgaros
   ============================================================================= */

#af-wrapper .button.button-red,
#af-wrapper .button.button-orange,
#af-wrapper .button.button-normal,
#af-wrapper a.button {
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    border-radius: 6px !important;
    padding: 0 14px !important;
    height: 28px !important;
    line-height: 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: background 0.15s, border-color 0.15s, color 0.15s !important;
    background: rgba(255,255,255,0.07) !important;
    border: 1px solid rgba(255,255,255,0.18) !important;
    color: rgba(255,255,255,0.75) !important;
    border-radius: 999px !important;
}

#af-wrapper .button.button-red:hover,
#af-wrapper .button.button-orange:hover,
#af-wrapper .button.button-normal:hover,
#af-wrapper a.button:hover {
    background: rgba(255,255,255,0.14) !important;
    border-color: rgba(255,255,255,0.35) !important;
    color: #ffffff !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Bouton Répondre — légèrement mis en avant */
#af-wrapper a.button.forum-editor-button {
    background: rgba(255,154,46,0.15) !important;
    border-color: rgba(255,154,46,0.40) !important;
    color: #ffb347 !important;
}
#af-wrapper a.button.forum-editor-button:hover {
    background: rgba(255,154,46,0.28) !important;
    color: #ffffff !important;
}


/* =============================================================================
   BOUTONS TOPIC — classes réelles : button-red, button-neutral, button-normal
   ============================================================================= */

#af-wrapper .forum-menu {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    padding: 8px 0 !important;
}

#af-wrapper .forum-menu a.button.button-red,
#af-wrapper .forum-menu a.button.button-neutral,
#af-wrapper .forum-menu a.button.button-normal {
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    border-radius: 999px !important;
    padding: 0 14px !important;
    height: 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: background 0.15s, border-color 0.15s, color 0.15s !important;
    /* Style sobre uniforme */
    background: rgba(255,255,255,0.07) !important;
    border: 1px solid rgba(255,255,255,0.20) !important;
    color: rgba(255,255,255,0.72) !important;
}

#af-wrapper .forum-menu a.button.button-red:hover,
#af-wrapper .forum-menu a.button.button-neutral:hover,
#af-wrapper .forum-menu a.button.button-normal:hover {
    background: rgba(255,255,255,0.14) !important;
    border-color: rgba(255,255,255,0.38) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

/* Répondre — légèrement mis en avant */
#af-wrapper .forum-menu a.button.button-normal.forum-editor-button {
    background: rgba(255,154,46,0.12) !important;
    border-color: rgba(255,154,46,0.38) !important;
    color: #ffb347 !important;
}
#af-wrapper .forum-menu a.button.button-normal.forum-editor-button:hover {
    background: rgba(255,154,46,0.25) !important;
    color: #ffffff !important;
}

/* Icône dans le bouton */
#af-wrapper .forum-menu a.button .menu-icon {
    font-size: 10px !important;
    opacity: 0.85 !important;
}


/* =============================================================================
   CHAMP OBJET — fond blanc laiteux, hauteur correcte
   ============================================================================= */

#af-wrapper .editor-subject-input,
#af-wrapper input#subject,
#af-wrapper input[name="subject"] {
    background: #fdfbff !important;
    border: 1px solid rgba(168,85,247,0.30) !important;
    border-radius: 8px !important;
    color: #1a1040 !important;
    font-family: 'Exo 2', sans-serif !important;
    font-size: 14px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
    outline: none !important;
}
#af-wrapper .editor-subject-input:focus,
#af-wrapper input#subject:focus,
#af-wrapper input[name="subject"]:focus {
    border-color: rgba(168,85,247,0.60) !important;
    box-shadow: 0 0 0 3px rgba(168,85,247,0.12) !important;
}

/* Le span wrapper autour de l'input */
#af-wrapper .editor-row-subject > span {
    flex: 1 !important;
    display: block !important;
    min-width: 0 !important;
}


/* Fix largeur champ Objet */
#af-wrapper .editor-row-subject {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 8px 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
#af-wrapper .editor-row-subject > span {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: 100% !important;
    display: block !important;
}
#af-wrapper .editor-subject-input,
#af-wrapper input#subject,
#af-wrapper input[name="subject"] {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}


/* =============================================================================
   RESTAURER boutons Envoyer / Annuler dans l'éditeur
   ============================================================================= */

/* Bouton Envoyer — gradient orange/violet */
#af-wrapper .editor-row-submit input[type="submit"],
#af-wrapper .editor-row-submit button[type="submit"],
#af-wrapper input[name="send_topic"],
#af-wrapper input[name="send_post"],
#af-wrapper input[name="send_reply"],
#af-wrapper input[name="save_topic"],
#af-wrapper input[name="save_post"] {
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.09em !important;
    text-transform: uppercase !important;
    color: #fff !important;
    background: linear-gradient(135deg, #ff9a2e 0%, #a855f7 100%) !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 8px 22px !important;
    height: auto !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 14px rgba(255,154,46,0.30) !important;
    transition: opacity 0.18s !important;
    visibility: visible !important;
    opacity: 1 !important;
}
#af-wrapper .editor-row-submit input[type="submit"]:hover { opacity: 0.85 !important; }

/* Bouton Annuler — transparent avec bordure violette */
#af-wrapper .editor-row-submit a.button.button-red,
#af-wrapper .editor-row-submit .button-cancel,
#af-wrapper a[href*="cancel"] {
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.09em !important;
    text-transform: uppercase !important;
    color: #c084fc !important;
    background: transparent !important;
    border: 1px solid rgba(168,85,247,0.45) !important;
    border-radius: 999px !important;
    padding: 7px 22px !important;
    height: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    box-shadow: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    transition: opacity 0.18s !important;
}
#af-wrapper .editor-row-submit a.button.button-red:hover { opacity: 0.75 !important; }


/* =============================================================================
   Envoyer / Annuler — classes réelles input.button-normal + a.button-red
   ============================================================================= */

/* Envoyer */
#af-wrapper input.button.button-normal {
    color: #fff !important;
    background: linear-gradient(135deg, #ff9a2e 0%, #a855f7 100%) !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 8px 22px !important;
    height: auto !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(255,154,46,0.25) !important;
    transition: box-shadow 0.18s, transform 0.18s !important;
}
#af-wrapper input.button.button-normal:hover {
    box-shadow: 0 6px 20px rgba(255,154,46,0.50) !important;
    transform: translateY(-1px) !important;
    opacity: 1 !important;
}

/* Annuler */
#af-wrapper a.button.button-red {
    color: #c084fc !important;
    background: transparent !important;
    border: 1px solid rgba(168,85,247,0.45) !important;
    border-radius: 999px !important;
    padding: 7px 22px !important;
    height: auto !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: background 0.18s, border-color 0.18s, color 0.18s !important;
}
#af-wrapper a.button.button-red:hover {
    background: rgba(168,85,247,0.12) !important;
    border-color: rgba(168,85,247,0.70) !important;
    color: #e0c4ff !important;
    box-shadow: none !important;
    transform: none !important;
}


/* Fix hover Envoyer — brightness au lieu de opacity */
#af-wrapper input.button.button-normal:hover {
    background: linear-gradient(135deg, #ff9a2e 0%, #a855f7 100%) !important;
    filter: brightness(1.15) !important;
    box-shadow: 0 6px 20px rgba(255,154,46,0.50) !important;
    transform: translateY(-1px) !important;
    opacity: 1 !important;
    color: #fff !important;
}


/* Fix "Ajouter un sondage" — lisible en mode sombre */
#af-wrapper .row-title.add-poll {
    color: #c084fc !important;
}
#af-wrapper .row-title.add-poll .editor-row-title-icon {
    color: #c084fc !important;
}
#af-wrapper .row-title.add-poll:hover {
    color: #ff9a2e !important;
}


/* Fix add-poll — violet foncé, taille normale */
#af-wrapper .row-title.add-poll,
#af-wrapper .row-title.add-poll .editor-row-title-icon {
    color: #7e22ce !important;
    font-size: inherit !important;
    font-weight: 600 !important;
}
#af-wrapper .row-title.add-poll:hover,
#af-wrapper .row-title.add-poll:hover .editor-row-title-icon {
    color: #ff9a2e !important;
}


/* =============================================================================
   PAGE PROFIL
   ============================================================================= */

/* Conteneur principal profil */
#af-wrapper #profile-content {
    background: #fdfbff !important;
    border-radius: 0 0 var(--afs-radius) var(--afs-radius) !important;
    padding: 20px 24px !important;
}

/* Lignes de données */
#af-wrapper .profile-row {
    display: flex !important;
    align-items: baseline !important;
    gap: 12px !important;
    padding: 9px 0 !important;
    border-bottom: 1px solid rgba(168,85,247,0.08) !important;
}
#af-wrapper .profile-row:last-of-type { border-bottom: none !important; }

#af-wrapper .profile-row-title {
    flex: 0 0 160px !important;
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    color: #a855f7 !important;
}

#af-wrapper .profile-row-value {
    flex: 1 !important;
    font-size: 13px !important;
    color: #2d2d2d !important;
    line-height: 1.6 !important;
}
#af-wrapper .profile-row-value a {
    color: #7c3aed !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}
#af-wrapper .profile-row-value a:hover { color: #ff9a2e !important; }
#af-wrapper .profile-row-value p {
    margin: 0 !important;
    color: #2d2d2d !important;
}

/* En-tête section "Activité des membres" */
#af-wrapper .profile-section-header {
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.10em !important;
    text-transform: uppercase !important;
    color: #ffb347 !important;
    background: linear-gradient(90deg, rgba(255,140,30,0.12) 0%, transparent 70%) !important;
    border-left: 3px solid #ff9a2e !important;
    padding: 10px 16px !important;
    margin: 18px -24px 14px -24px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}
#af-wrapper .profile-section-header .profile-section-header-icon {
    font-size: 13px !important;
    opacity: 0.85 !important;
}

/* Bloc statistiques — réutilise le style existant */
#af-wrapper .profile-section-content {
    display: flex !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
    margin-bottom: 18px !important;
}
#af-wrapper .profile-section-content .statistics-element {
    flex: 1 !important;
    min-width: 100px !important;
    background: rgba(168,85,247,0.07) !important;
    border: 1px solid rgba(168,85,247,0.18) !important;
    border-radius: 10px !important;
    padding: 14px 16px !important;
    text-align: center !important;
    transition: border-color 0.2s, transform 0.2s !important;
}
#af-wrapper .profile-section-content .statistics-element:hover {
    border-color: rgba(255,154,46,0.40) !important;
    transform: translateY(-2px) !important;
}
#af-wrapper .profile-section-content .element-number {
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #ff9a2e !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
}
#af-wrapper .profile-section-content .statistics-element-icon {
    font-size: 15px !important;
    opacity: 0.70 !important;
}
#af-wrapper .profile-section-content .element-name {
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 10px !important;
    letter-spacing: 0.09em !important;
    text-transform: uppercase !important;
    color: #6b5a99 !important;
    margin-top: 4px !important;
}

/* Lien "Éditer le profil" */
#af-wrapper .edit-profile-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: #c084fc !important;
    background: transparent !important;
    border: 1px solid rgba(168,85,247,0.40) !important;
    border-radius: 999px !important;
    padding: 6px 16px !important;
    text-decoration: none !important;
    transition: background 0.18s, color 0.18s !important;
}
#af-wrapper .edit-profile-link:hover {
    background: rgba(168,85,247,0.12) !important;
    color: #e0c4ff !important;
    border-color: rgba(168,85,247,0.65) !important;
}


/* =============================================================================
   NOMS UTILISATEURS — ne pas surcharger, laisser Asgaros gérer les couleurs par rôle
   ============================================================================= */

.profile-link.highlight-admin,
.profile-link.highlight-default,
.profile-link.highlight-admin:hover,
.profile-link.highlight-default:hover,
#af-wrapper .profile-link,
#af-wrapper a.profile-link,
#af-wrapper .highlight-admin,
#af-wrapper .highlight-default {
    text-shadow: none !important;
}


/* =============================================================================
   NOMS UTILISATEURS — neutraliser les surcharges de couleur dans les sélecteurs contextuels
   ============================================================================= */

/* highlight-admin/default — couleur gérée par Asgaros, on ne touche à rien */


/* Pseudo utilisateur en gras */
#af-wrapper a.profile-link,
#af-wrapper .profile-link {
    font-weight: 700 !important;
}

