        /* ==========================================================================
           GLOBAL RESET & MOBILE PREVENT OVERFLOW
           ========================================================================== */
        * {
            box-sizing: border-box;
        }

        html, body {
            overflow-x: hidden;
            width: 100%;
            margin: 0;
            padding: 0;
        }

        /* ==========================================================================
           DESIGN SYSTEM & VARIABLE DE COULEUR (THEME : MANUSCRIT D'IVOIRE)
           ========================================================================== */
        :root {
            --bg-page: #f9f6f0; /* Ivoire chaud / papier de création */
            --bg-card: #ffffff; /* Cartes blanches */
            --border-color: #e7e3d4; /* Bordure parchemin douce */
            --text-main: #2d2926; /* Anthracite chaud */
            --text-muted: #5d5851; /* Gris chaud plus sombre pour l'accessibilité contraste */
            --accent: #8b263e; /* Bordeaux poétique signature */
            --accent-hover: #6b1b2e; /* Bordeaux plus sombre */
            --shadow: 0 4px 15px -3px rgba(41, 18, 24, 0.04), 0 2px 6px -2px rgba(41, 18, 24, 0.06);
            --radius: 12px;
            --radius-sm: 8px;
            --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
            --font-serif: 'Lora', Georgia, serif;
            --font-family: var(--font-serif);
        }

        body {
            background-color: var(--bg-page);
            color: var(--text-main);
            font-family: var(--font-family);
            line-height: 1.6;
        }

        /* Titres en Serif pour une esthétique littéraire */
        h1, h2, h3, h4, h5, h6, .poem-title {
            font-family: var(--font-serif);
            color: var(--text-main);
            font-weight: 600;
        }

        /* Override sans-serif pour les menus, dates, listes denses et boutons d'interface */
        .header-nav > li > a,
        .dropdown-menu li a,
        .btn-auth,
        .user-greeting,
        .mobile-menu-toggle,
        .dense-list,
        .info-list,
        #live-chat,
        .symbiose-item-row,
        .lecteur-audio-personnalise,
        .item-compact-card,
        .artist-day-card,
        .footer-members-list,
        .site-footer,
        .btn-mini,
        .bouton-poeme,
        .topic-badge,
        .date,
        .author-info,
        .row-meta,
        .widget-gallery-overlay,
        .welcome-header p {
            font-family: var(--font-sans) !important;
        }

        /* Conteneur principal centré à 1400px */
        .site-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 15px;
            box-sizing: border-box;
            width: 100%;
            overflow-x: hidden;
        }

        /* ==========================================================================
           HEADER PREMIUM ET RESPONSIVE (BORDEAUX DE RELIURE DE LIVRE)
           ========================================================================== */
        .site-header {
            background-color: #291218; /* Bordeaux cuir profond */
            border: 1px solid #472029;
            color: #f5eef0;
            border-radius: var(--radius);
            padding: 15px 30px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            box-shadow: var(--shadow);
            margin-bottom: 25px;
            flex-wrap: wrap;
            gap: 15px;
        }

        .header-logo img {
            height: 45px;
            display: block;
        }

        .header-nav-container {
            display: flex;
            align-items: center;
        }

        .header-nav {
            display: flex;
            gap: 10px;
            list-style: none;
            margin: 0;
            padding: 0;
        }

        .header-nav li {
            position: relative;
        }

        .header-nav > li > a {
            color: #ebdce0;
            text-decoration: none;
            font-weight: 500;
            font-size: 0.95rem;
            transition: color 0.2s, background-color 0.2s;
            padding: 8px 12px;
            border-radius: var(--radius-sm);
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .header-nav > li > a:hover {
            color: white;
            background-color: rgba(255, 255, 255, 0.08);
        }

        .header-nav > li > a i {
            font-size: 0.75rem;
            opacity: 0.8;
            transition: transform 0.2s;
        }

        .dropdown-menu {
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            display: none;
            background-color: #291218;
            border: 1px solid #472029;
            border-radius: var(--radius-sm);
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
            z-index: 1000;
            min-width: 215px;
            padding: 8px 0;
            margin-top: 8px;
            list-style: none;
        }

        /* Pont invisible pour maintenir le survol (hover) actif lors du glissement de la souris */
        .dropdown-menu::before {
            content: '';
            position: absolute;
            top: -12px;
            left: 0;
            right: 0;
            height: 12px;
            background: transparent;
        }

        .dropdown-menu li {
            width: 100%;
        }

        .dropdown-menu li a {
            display: block;
            padding: 8px 16px;
            color: #ebdce0;
            font-size: 0.9rem;
            text-decoration: none;
            transition: background-color 0.2s, color 0.2s;
            white-space: nowrap;
        }

        .dropdown-menu li a:hover {
            background-color: var(--accent);
            color: white;
        }

        @media (min-width: 1201px) {
            .has-dropdown:hover .dropdown-menu,
            .has-dropdown:focus-within .dropdown-menu {
                display: block;
                animation: fadeInDropdown 0.2s ease forwards;
            }
            .has-dropdown:hover > a i,
            .has-dropdown:focus-within > a i {
                transform: rotate(180deg);
                color: var(--accent);
            }
        }

        @keyframes fadeInDropdown {
            from {
                opacity: 0;
                transform: translate(-50%, 10px);
            }
            to {
                opacity: 1;
                transform: translate(-50%, 0);
            }
        }

        .header-user-menu {
            display: flex;
            align-items: center;
            gap: 15px;
            color: #f5eef0;
        }

        .user-greeting {
            font-size: 0.9rem;
            font-weight: 500;
            color: #ebdce0;
        }

        .btn-auth {
            padding: 8px 16px;
            border-radius: var(--radius-sm);
            font-size: 0.9rem;
            font-weight: 500;
            text-decoration: none;
            transition: all 0.2s;
            display: inline-block;
        }

        .btn-auth-login {
            color: #f5eef0;
            border: 1px solid #472029;
        }

        .btn-auth-login:hover {
            background-color: rgba(255, 255, 255, 0.08);
            color: white;
        }

        .btn-auth-register {
            background-color: var(--accent);
            color: white;
            border: 1px solid var(--accent);
        }

        .btn-auth-register:hover {
            background-color: var(--accent-hover);
        }

        .mobile-menu-toggle {
            display: none;
            background: none;
            border: none;
            color: #f5eef0;
            font-size: 1.5rem;
            cursor: pointer;
            padding: 8px;
            align-items: center;
            justify-content: center;
        }

        /* ==========================================================================
           USER PROFILE DROPDOWN MENU (V10 PREMIUM)
           ========================================================================== */
        .user-dropdown-container {
            position: relative;
            display: inline-block;
        }

        .user-dropdown-btn {
            background-color: transparent;
            border: 1px solid #472029;
            color: #ebdce0;
            padding: 8px 16px;
            font-family: var(--font-sans);
            font-size: 0.9rem;
            font-weight: 500;
            border-radius: var(--radius-sm);
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: all 0.2s ease;
            position: relative;
        }

        .user-dropdown-btn:hover {
            color: white;
            background-color: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.2);
        }

        .user-dropdown-btn i.fa-circle-user {
            font-size: 1.15rem;
            color: #f5eef0;
        }

        .user-dropdown-btn .caret-icon {
            font-size: 0.75rem;
            opacity: 0.7;
            transition: transform 0.2s ease;
        }

        /* Active container shows active menu */
        .user-dropdown-container.active .user-dropdown-menu {
            display: block;
            animation: fadeInDropdown 0.25s ease forwards;
        }

        .user-dropdown-container.active .user-dropdown-btn .caret-icon {
            transform: rotate(180deg);
        }

        .user-dropdown-menu {
            position: absolute;
            top: 100%;
            right: 0;
            background-color: #291218;
            border: 1px solid #472029;
            border-radius: var(--radius-sm);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
            z-index: 1050;
            min-width: 230px;
            padding: 8px 0;
            margin-top: 8px;
            list-style: none;
            display: none;
        }

        .user-dropdown-menu li a {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 16px;
            color: #ebdce0;
            font-family: var(--font-sans);
            font-size: 0.9rem;
            text-decoration: none;
            transition: all 0.2s ease;
        }

        .user-dropdown-menu li a:hover {
            background-color: var(--accent);
            color: white;
        }

        .user-dropdown-menu li a i {
            width: 16px;
            text-align: center;
            opacity: 0.8;
            font-size: 0.95rem;
        }

        /* Divider inside dropdown */
        .user-dropdown-menu .dropdown-divider {
            height: 1px;
            background-color: #472029;
            margin: 6px 0;
        }

        .user-dropdown-menu .logout-link {
            color: #ff6b6b;
        }

        .user-dropdown-menu .logout-link:hover {
            background-color: #cc2b2b;
            color: white;
        }

        /* Notification elements */
        .notification-indicator-dot {
            width: 8px;
            height: 8px;
            background-color: #e63946;
            border-radius: 50%;
            position: absolute;
            top: 6px;
            right: 8px;
            box-shadow: 0 0 8px #e63946;
        }

        .dropdown-badge-count {
            background-color: var(--accent);
            color: white;
            font-size: 0.75rem;
            font-weight: 700;
            padding: 1px 6px;
            border-radius: 10px;
            margin-left: auto;
        }

        .dropdown-dot-warning {
            width: 6px;
            height: 6px;
            background-color: #f39c12;
            border-radius: 50%;
            margin-left: auto;
            box-shadow: 0 0 6px #f39c12;
        }

        .header-user-menu-mobile {
            display: none;
        }

        /* HEADER RESPONSIVE MOBILE */
        @media (max-width: 1200px) {
            .mobile-menu-toggle {
                display: flex;
            }

            .header-nav-container {
                display: none;
                flex-direction: column;
                position: absolute;
                top: 100%;
                left: 0;
                right: 0;
                background-color: #291218;
                border: 1px solid #472029;
                border-radius: var(--radius);
                padding: 20px;
                box-shadow: var(--shadow);
                margin-top: 10px;
                z-index: 1000;
                box-sizing: border-box;
                width: 100%;
            }

            .header-nav-container.active {
                display: flex;
            }

            .header-nav {
                flex-direction: column;
                gap: 8px;
                width: 100%;
            }

            .header-nav > li {
                width: 100%;
            }

            .header-nav > li > a {
                width: 100%;
                justify-content: space-between;
                padding: 12px 16px;
                background-color: #3d1b24;
                border-radius: var(--radius-sm);
                box-sizing: border-box;
            }

            .header-nav > li > a:hover {
                background-color: #4a212c;
            }

            .dropdown-menu {
                position: static;
                transform: none;
                display: none;
                width: 100%;
                box-sizing: border-box;
                background-color: #1f0b10;
                border: none;
                border-radius: 0 0 var(--radius-sm) var(--radius-sm);
                margin-top: -4px;
                padding: 8px 0;
                box-shadow: none;
            }

            .dropdown-menu::before,
            .dropdown-menu::after {
                display: none;
            }

            .has-dropdown.active .dropdown-menu {
                display: block;
            }

            .has-dropdown.active > a {
                border-radius: var(--radius-sm) var(--radius-sm) 0 0;
                background-color: #3d1b24;
            }

            .has-dropdown.active > a i {
                transform: rotate(180deg);
            }

            .dropdown-menu li a {
                padding: 10px 24px;
                border-bottom: 1px solid rgba(255, 255, 255, 0.02);
            }

            .dropdown-menu li a:last-child {
                border-bottom: none;
            }

            .header-user-menu {
                display: none;
            }

            .header-user-menu-mobile {
                display: flex;
                flex-direction: column;
                align-items: stretch;
                gap: 8px;
                margin-top: 20px;
                padding: 16px;
                background-color: #1a0a0d; /* Section membre distincte (fond plus sombre) */
                border: 1px solid #472029;
                border-radius: var(--radius);
                width: 100%;
                box-sizing: border-box;
            }

            .mobile-user-info {
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 8px;
                color: #ffffff;
                font-family: var(--font-sans);
                font-size: 1.05rem;
                padding-bottom: 12px;
                border-bottom: 1px solid rgba(255, 255, 255, 0.08);
                margin-bottom: 8px;
                width: 100%;
            }

            .mobile-user-info i {
                font-size: 1.2rem;
                color: var(--accent);
            }

            .mobile-dropdown-links {
                width: 100%;
                display: flex;
                flex-direction: column;
                gap: 4px;
                list-style: none;
                padding: 0;
                margin: 0;
            }

            .mobile-dropdown-links li {
                width: 100%;
            }

            .mobile-dropdown-links li a {
                display: flex;
                align-items: center;
                gap: 12px;
                padding: 10px 12px;
                color: #ebdce0;
                font-family: var(--font-sans);
                font-size: 0.95rem;
                text-decoration: none;
                background-color: transparent; /* Liens Ã©purÃ©s */
                border-radius: var(--radius-sm);
                transition: all 0.2s ease;
                box-sizing: border-box;
                width: 100%;
            }

            .mobile-dropdown-links li a:hover {
                background-color: rgba(255, 255, 255, 0.05);
                color: #ffffff;
            }

            .mobile-dropdown-links li a i {
                width: 18px;
                text-align: center;
                opacity: 0.8;
                font-size: 1rem;
            }

            .mobile-dropdown-links .dropdown-divider {
                height: 1px;
                background-color: rgba(255, 255, 255, 0.08);
                margin: 6px 0;
            }

            .mobile-dropdown-links li a.logout-link {
                color: #ff6b6b;
            }

            .mobile-dropdown-links li a.logout-link:hover {
                background-color: rgba(255, 107, 107, 0.15);
                color: #ff8e8e;
            }
        }

                /* ==========================================================================
           LAYOUT DE LA PAGE (2 COLONNES)
           ========================================================================== */
        .page-layout {
            display: grid;
            grid-template-columns: minmax(0, 2.1fr) minmax(0, 0.9fr);
            gap: 24px;
            align-items: start;
            width: 100%;
        }

        @media (max-width: 1024px) {
            .page-layout {
                grid-template-columns: minmax(0, 1fr);
            }
        }

        .main-content {
            display: flex;
            flex-direction: column;
            gap: 24px;
            min-width: 0;
            width: 100%;
        }

        .content-grid-2col {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
            gap: 20px;
            width: 100%;
            align-items: stretch;
        }

        @media (max-width: 768px) {
            .content-grid-2col {
                grid-template-columns: minmax(0, 1fr);
            }
        }

        /* Widgets adaptatifs (Recherche & Statistiques) */
        .mobile-search-widget,
        .mobile-stats-widget {
            display: none;
        }
        @media (max-width: 1024px) {
            .mobile-search-widget,
            .mobile-stats-widget {
                display: block;
                margin-bottom: 20px;
            }
            .sidebar .desktop-search-widget,
            .sidebar #events-stats-widget {
                display: none !important;
            }
        }

        /* Styles des badges de sujets du forum */
        .topic-badge {
            text-decoration: none !important;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            font-size: 0.85em;
            margin-left: 8px;
            vertical-align: middle;
            position: relative;
            cursor: help;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        .topic-badge:hover {
            transform: scale(1.1);
            box-shadow: 0 4px 8px rgba(0,0,0,0.15);
        }
        .topic-badge i {
            font-size: 0.9em;
        }
        /* Définition des couleurs des badges */
        .badge-libre { background: linear-gradient(135deg, #E8F5E9, #C8E6C9); color: #2E7D32; border: 1px solid #A5D6A7; }
        .badge-fixe { background: linear-gradient(135deg, #E3F2FD, #BBDEFB); color: #1565C0; border: 1px solid #90CAF9; }
        .badge-nouvelle { background: linear-gradient(135deg, #FFF3E0, #FFE0B2); color: #E65100; border: 1px solid #FFCC80; }
        .badge-long { background: linear-gradient(135deg, #F3E5F5, #E1BEE7); color: #7B1FA2; border: 1px solid #CE93D8; }
        .badge-averti { background: linear-gradient(135deg, #FFEBEE, #FFCDD2); color: #C62828; border: 1px solid #EF9A9A; }
        .badge-question { background: linear-gradient(135deg, #E0F2F1, #B2DFDB); color: #00695C; border: 1px solid #80CBC4; }
        .badge-jeux { background: linear-gradient(135deg, #FFFDE7, #FFF9C4); color: #FBC02D; border: 1px solid #FFF59D; }
        .badge-ia { background: linear-gradient(135deg, #2c3e50, #3498db); color: #ffffff; border: 1px solid #2980b9; font-weight: bold; font-size: 9px; }
        .badge-default { background: linear-gradient(135deg, #F5F5F5, #E0E0E0); color: #616161; border: 1px solid #BDBDBD; }

        /* ==========================================================================
           COMPOSANTS GENERIQUES COMPACTS
           ========================================================================== */
        .compact-box {
            background-color: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: var(--radius);
            padding: 16px;
            box-shadow: var(--shadow);
            box-sizing: border-box;
            width: 100%;
        }

        .compact-box h2, .compact-box h3 {
            font-size: 1.1rem;
            font-weight: 600;
            margin-top: 0;
            margin-bottom: 12px;
            color: var(--text-main);
            border-bottom: 1px solid var(--border-color);
            padding-bottom: 8px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .compact-box h2 i, .compact-box h3 i {
            color: var(--accent);
        }

        /* Listes denses de poèmes */
        .dense-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .dense-list li {
            padding: 8px 0;
            border-bottom: 1px dashed var(--border-color);
            font-size: 0.88rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            min-width: 0;
        }

        .dense-list li:last-child {
            border-bottom: none;
            padding-bottom: 0;
        }

        .dense-list .poem-link {
            font-weight: 500;
            color: var(--text-main);
            text-decoration: none;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            flex-grow: 1;
            flex-shrink: 1;
            min-width: 0;
        }

        .dense-list .poem-link:hover {
            color: var(--accent);
        }

        .dense-list .author-info {
            color: var(--text-muted);
            font-size: 0.8rem;
            font-style: italic;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 45%;
            flex-shrink: 1;
            padding-right: 4px;
        }

        .dense-list .author-info a {
            color: var(--text-muted);
            text-decoration: none;
        }

        .dense-list .author-info a:hover {
            color: var(--accent);
            text-decoration: underline;
        }

        .dense-list .date {
            color: var(--text-muted);
            font-size: 0.78rem;
            white-space: nowrap;
            flex-shrink: 0;
        }

        /* ==========================================================================
           SPECIFIQUES : INFOS, CHAT & MUSIC
           ========================================================================== */
        .info-list {
            list-style: none;
            padding: 0;
            margin: 0;
            max-height: 200px;
            overflow-y: auto;
        }

        .info-list li {
            padding: 8px 12px;
            border-radius: var(--radius-sm);
            margin-bottom: 6px;
            font-size: 0.85rem;
            background-color: var(--bg-page);
            word-break: break-word;
            overflow-wrap: break-word;
        }

        .info-list .date {
            font-weight: 600;
            color: var(--accent);
            margin-right: 6px;
        }

        .info-list a {
            color: var(--text-main);
            text-decoration: none;
            font-weight: 500;
        }

        .info-list a:hover {
            color: var(--accent);
            text-decoration: underline;
        }

        #live-chat {
            border: 1px solid var(--border-color);
            background-color: var(--bg-page);
            border-radius: var(--radius-sm);
            padding: 10px;
        }

        #chat-messages {
            max-height: 160px;
            overflow-y: auto;
            font-size: 0.82rem;
            margin-bottom: 8px;
            word-break: break-word;
            overflow-wrap: break-word;
        }

        #chat-messages a {
            color: var(--accent);
            text-decoration: none;
            font-weight: 500;
        }

        #chat-messages a:hover {
            color: var(--accent-hover);
            text-decoration: underline;
        }

        .chat-pseudo-link {
            color: var(--text-main);
            text-decoration: none;
            font-weight: 600;
        }

        .chat-pseudo-link:hover {
            color: var(--accent);
            text-decoration: underline;
        }

        #chat-form {
            display: flex;
            gap: 8px;
        }

        #chat-form input {
            flex-grow: 1;
            border: 1px solid var(--border-color);
            border-radius: var(--radius-sm);
            padding: 6px 10px;
            font-size: 0.82rem;
            min-width: 0;
        }

        #chat-form button {
            background-color: var(--accent);
            color: white;
            border: none;
            border-radius: var(--radius-sm);
            padding: 6px 12px;
            cursor: pointer;
            font-size: 0.82rem;
        }

        .symbiose-item-row {
            padding: 8px 0;
            border-bottom: 1px dashed var(--border-color);
            font-size: 0.85rem;
        }

        .symbiose-item-row:last-child {
            border-bottom: none;
        }

        .symbiose-item-row .row-header {
            display: flex;
            justify-content: space-between;
            font-weight: 500;
        }

        .symbiose-item-row .row-meta {
            font-size: 0.75rem;
            color: var(--text-muted);
            margin-top: 2px;
        }

        .symbiose-item-row .row-media {
            margin-top: 4px;
        }

        .lecteur-audio-personnalise {
            display: flex;
            align-items: center;
            gap: 8px;
            background-color: var(--bg-page);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-sm);
            padding: 4px 8px;
            font-size: 0.75rem;
        }

        .lecteur-audio-personnalise button {
            background: none;
            border: none;
            cursor: pointer;
            color: var(--accent);
        }

        /* ==========================================================================
           PUBLICATIONS & ARTISTES GRIDS
           ========================================================================== */
        .compact-grid-items {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
        }

        .item-compact-card {
            background-color: var(--bg-page);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-sm);
            padding: 8px;
            text-align: center;
            box-sizing: border-box;
        }

        .item-compact-card img {
            width: 100%;
            aspect-ratio: 1;
            object-fit: cover;
            border-radius: 50%;
            margin-bottom: 6px;
        }

        .item-compact-card.book-card img {
            aspect-ratio: 2 / 3;
            border-radius: 4px;
        }

        .item-compact-card h4 {
            font-size: 0.8rem;
            font-weight: 600;
            margin: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            line-height: 1.25;
            height: 2.5em; /* Assure des hauteurs de cartes harmonisées sur 2 lignes */
        }

        .item-compact-card p {
            font-size: 0.72rem;
            color: var(--text-muted);
            margin: 2px 0 6px 0;
        }

        .btn-mini {
            display: inline-block;
            padding: 2px 8px;
            font-size: 0.72rem;
            color: var(--accent);
            border: 1px solid var(--accent);
            border-radius: 12px;
            text-decoration: none;
            background-color: white;
        }

        .btn-mini:hover {
            background-color: var(--accent);
            color: white;
        }

        /* ==========================================================================
           SIDEBAR WIDGETS
           ========================================================================== */
        .sidebar {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .sidebar-widget {
            background-color: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: var(--radius);
            padding: 16px;
            box-shadow: var(--shadow);
        }

        .sidebar-widget h3 {
            font-size: 1rem;
            font-weight: 600;
            margin-top: 0;
            margin-bottom: 12px;
            border-bottom: 1px solid var(--border-color);
            padding-bottom: 6px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .sidebar-widget h3 i {
            color: var(--accent);
        }

        .widget-image-container {
            border-radius: var(--radius-sm);
            overflow: hidden;
            background-color: var(--bg-page);
            aspect-ratio: 4 / 3;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid var(--border-color);
            max-width: 320px;
            margin: 0 auto;
            width: 100%;
        }

        .widget-image-container a {
            display: flex;
            width: 100%;
            height: 100%;
            justify-content: center;
            align-items: center;
            overflow: hidden;
        }

        .widget-image-container img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            width: 100%;
            height: 100%;
        }

        /* Grille compacte pour les galeries dans la sidebar */
        .widget-gallery-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
            width: 100%;
        }

        .widget-gallery-item {
            position: relative;
            aspect-ratio: 1;
            border-radius: var(--radius-sm);
            overflow: hidden;
            border: 1px solid var(--border-color);
            background-color: var(--bg-page);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .widget-gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

        .widget-gallery-item:hover img {
            transform: scale(1.08);
        }

        /* Overlay textuel par défaut, disparaît au survol */
        .widget-gallery-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 45%);
            padding: 6px;
            color: #fff;
            opacity: 1;
            visibility: visible;
            transition: opacity 0.3s ease, visibility 0.3s ease;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            height: 100%;
            pointer-events: none;
        }

        .widget-gallery-item:hover .widget-gallery-overlay {
            opacity: 0;
            visibility: hidden;
        }

        .widget-gallery-overlay-title {
            font-size: 0.72rem;
            font-weight: 600;
            line-height: 1.2;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            margin-bottom: 2px;
        }

        .widget-gallery-overlay-author {
            font-size: 0.65rem;
            opacity: 0.85;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .widget-description {
            font-size: 0.8rem;
            color: var(--text-muted);
            margin-top: 8px;
            text-align: center;
        }

        .artist-day-card {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .artist-day-avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            overflow: hidden;
            border: 2px solid var(--accent);
        }

        .artist-day-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .artist-day-name {
            font-weight: 600;
            font-size: 0.9rem;
            margin: 0;
        }

        .artist-day-link {
            font-size: 0.75rem;
            color: var(--accent);
            text-decoration: none;
        }

        /* ==========================================================================
           FOOTER MODERNE ET INTÉGRÉ
           ========================================================================== */
        .site-footer {
            background-color: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: var(--radius);
            padding: 20px;
            box-shadow: var(--shadow);
            margin-top: 30px;
            box-sizing: border-box;
            width: 100%;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
            margin-bottom: 25px;
        }

        .footer-col h4 {
            font-size: 1rem;
            margin-top: 0;
            margin-bottom: 12px;
            color: var(--text-main);
            border-bottom: 1px solid var(--border-color);
            padding-bottom: 6px;
        }

        .footer-col ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .footer-col li {
            margin-bottom: 6px;
            font-size: 0.85rem;
        }

        .footer-col a {
            color: var(--text-muted);
            text-decoration: none;
            transition: color 0.2s;
        }

        .footer-col a:hover {
            color: var(--accent);
        }

        .footer-bottom {
            border-top: 1px solid var(--border-color);
            padding-top: 20px;
            text-align: center;
            font-size: 0.85rem;
            color: var(--text-muted);
        }

        .footer-bottom a {
            color: var(--text-main);
            text-decoration: none;
            font-weight: 500;
        }

        .welcome-header {
            background-color: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: var(--radius);
            padding: 20px;
            box-shadow: var(--shadow);
            margin-bottom: 24px;
            text-align: center;
        }

        .welcome-header h1 {
            font-size: 1.4rem;
            margin-top: 0;
            margin-bottom: 8px;
            color: var(--text-main);
        }

        .welcome-header p {
            font-size: 0.9rem;
            color: var(--text-muted);
            margin: 0;
        }

        .poemes-navigation {
            margin-top: 10px;
            text-align: right;
        }

        .poemes-navigation .bouton-poeme {
            display: inline-block;
            padding: 3px 10px;
            font-size: 0.75rem;
            color: var(--accent);
            border: 1px solid var(--accent);
            border-radius: 12px;
            text-decoration: none;
        }
        .footer-members-list {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 2px 12px;
            padding: 0;
            margin: 0;
            list-style: none;
        }
        .footer-members-list li {
            display: flex;
            align-items: center;
            font-size: 0.82rem;
            min-width: 0;
            line-height: 1.2;
        }
        .footer-members-list li a {
            color: var(--text-muted);
            text-decoration: none;
            transition: color 0.2s;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .footer-members-list li a:hover {
            color: var(--accent);
        }
        .status-indicator {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            margin-right: 8px;
            display: inline-block;
            flex-shrink: 0;
        }
        .status-indicator.online {
            background-color: #2ecc71;
            box-shadow: 0 0 4px #2ecc71;
        }
        .status-indicator.offline {
            background-color: #cbd5e1;
        }
        .status-indicator.registered {
            background-color: var(--accent);
            opacity: 0.7;
        }
        .status-indicator.unconfirmed {
            background-color: #ff3b30;
            box-shadow: 0 0 6px rgba(255, 59, 48, 0.8);
        }

        /* ==========================================================================
           COMPOSANT D'ONGLETS & AMÉLIORATIONS PAGE D'ACCUEIL
           ========================================================================== */
        .tabs-container {
            background-color: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            margin-bottom: 0;
        }
        
        .tab-buttons {
            display: flex;
            background-color: #eae7e2;
            border-bottom: 1px solid var(--border-color);
            margin: 0;
            padding: 0;
            list-style: none;
            border-top-left-radius: calc(var(--radius) - 1px);
            border-top-right-radius: calc(var(--radius) - 1px);
            overflow: hidden;
        }
        
        .tab-button {
            flex: 1;
            text-align: center;
            padding: 14px 16px;
            font-family: var(--font-sans) !important;
            font-size: 0.95rem;
            font-weight: 600;
            color: var(--text-muted);
            cursor: pointer;
            background-color: #f3f0ec;
            border: none;
            border-bottom: 3px solid transparent;
            border-right: 1px solid var(--border-color);
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .tab-button:last-child {
            border-right: none;
        }
        
        .tab-button:hover {
            color: var(--accent);
            background-color: #eae7e2;
        }
        
        .tab-button.active {
            color: var(--accent);
            border-bottom-color: var(--accent);
            background-color: var(--bg-card);
            font-weight: 700;
        }

        /* Mobile responsive optimizations for tab buttons */
        @media (max-width: 600px) {
            .tab-text {
                display: inline-block !important;
                font-size: 0.72rem;
            }
            .tab-button {
                flex: 1;
                padding: 10px 4px;
                font-size: 0.95rem; /* Icon size */
                gap: 4px;
                flex-direction: column; /* Stack icon above text */
            }
        }
        
        .tab-pane {
            display: none;
            padding: 12px 20px 20px 20px;
        }
        
        .tab-pane.active {
            display: block;
            animation: fadeInTab 0.3s ease;
        }

        @keyframes fadeInTab {
            from { opacity: 0; transform: translateY(4px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Chat en direct rétractable */
        #live-chat {
            position: relative;
        }
        
        #chat-messages.collapsed {
            max-height: 90px;
            overflow-y: hidden !important;
        }
        
        .chat-toggle-container {
            padding: 8px 0 0 0;
            border-top: 1px dashed var(--border-color);
            margin-top: 5px;
            text-align: center;
        }

        .chat-toggle-btn {
            display: inline-block;
            background: none;
            border: none;
            color: var(--accent);
            font-family: var(--font-sans) !important;
            font-size: 0.8rem;
            font-weight: 600;
            cursor: pointer;
            transition: color 0.2s;
        }

        .chat-toggle-btn:hover {
            color: var(--accent-hover);
            text-decoration: underline;
        }

        /* PayPal button custom style */
        .paypal-custom-btn {
            background-color: var(--accent) !important;
            color: #ffffff !important;
            border: 1px solid var(--accent-hover) !important;
            border-radius: var(--radius-sm) !important;
            padding: 8px 16px !important;
            font-family: var(--font-sans) !important;
            font-weight: 600 !important;
            font-size: 0.85rem !important;
            cursor: pointer !important;
            transition: background-color 0.2s ease !important;
        }
        .paypal-custom-btn:hover {
            background-color: var(--accent-hover) !important;
        }

        /* Section layout spacing improvements */
        .main-content {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        .page-layout {
            gap: 30px;
        }

        /* En-têtes de regroupement de sections */
        .section-group-header {
            margin-top: 16px;
            margin-bottom: 8px;
            border-bottom: 2px solid var(--accent);
            padding-bottom: 8px;
        }
        .section-group-header h2 {
            font-size: 1.35rem;
            margin: 0 0 6px 0;
            color: var(--text-main);
            font-family: var(--font-serif);
            font-weight: 600;
        }
        .section-group-header p {
            font-size: 0.84rem;
            color: var(--text-muted);
            margin: 0;
            font-family: var(--font-sans) !important;
            line-height: 1.4;
        }

        /* Alignement des liens de poèmes et des badges */
        .dense-list .poem-link {
            font-weight: 500;
            color: var(--text-main);
            text-decoration: none;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            flex-grow: 1;
            flex-shrink: 1;
            min-width: 0;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        
        .topic-title-text {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        /* Disposition sur deux colonnes pour le contenu des onglets sur grand écran */
        @media (min-width: 769px) {
            .tab-pane .dense-list {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 0 40px;
            }
            .tab-pane .dense-list li {
                border-bottom: 1px dashed var(--border-color);
            }
            .tabs-container .widget-gallery-grid {
                grid-template-columns: repeat(6, 1fr) !important;
                gap: 12px;
            }
        }

        /* Gallery Grid styling for mobile (3 columns instead of 2) */
        .tabs-container .widget-gallery-grid {
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
        }

        /* Books Widget Grid and Cards styling */
        .widget-books-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
            gap: 12px;
            width: 100%;
            align-items: stretch;
        }

        .widget-book-card {
            background-color: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-sm);
            padding: 10px;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            box-shadow: 0 2px 4px rgba(0,0,0,0.01);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            height: 100%;
            box-sizing: border-box;
            min-width: 0;
        }

        .widget-book-card:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow);
            border-color: var(--accent);
        }

        .widget-book-cover {
            width: 100%;
            aspect-ratio: 100 / 140; /* Golden ratio or book aspect ratio */
            overflow: hidden;
            border-radius: 4px;
            border: 1px solid var(--border-color);
            background-color: var(--bg-page);
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            min-width: 0;
        }

        .widget-book-cover img {
            max-width: 100%;
            max-height: 100%;
            width: auto;
            height: auto;
            object-fit: contain;
        }

        .widget-book-info {
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            flex-grow: 1;
            min-width: 0;
        }

        .widget-book-info h4 {
            font-size: 0.8rem;
            font-weight: 600;
            margin: 0 0 4px 0;
            line-height: 1.2;
            width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            color: var(--text-main);
        }

        .widget-book-info p {
            font-size: 0.72rem;
            color: var(--text-muted);
            margin: 0 0 8px 0;
            width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            font-family: var(--font-sans) !important;
        }

        .widget-book-info .btn-mini {
            margin-top: auto;
        }

        /* Force 6 columns on large desktop viewports */
        @media (min-width: 1200px) {
            .widget-books-grid {
                grid-template-columns: repeat(6, 1fr);
            }
        }

        .theme-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
            gap: 16px;
            width: 100%;
        }

        .theme-card {
            background-color: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-sm);
            padding: 10px;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            box-shadow: 0 2px 4px rgba(0,0,0,0.01);
            height: 100%;
            box-sizing: border-box;
            min-width: 0;
        }

        .theme-card:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow);
            border-color: var(--accent);
        }

        .theme-card img {
            width: 100%;
            aspect-ratio: 4 / 3;
            object-fit: cover;
            border-radius: 4px;
            border: 1px solid var(--border-color);
            background-color: var(--bg-page);
            margin-bottom: 8px;
        }

        .theme-card h3 {
            font-size: 0.85rem;
            font-weight: 600;
            margin: 0 0 4px 0;
            line-height: 1.2;
            color: var(--text-main);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            width: 100%;
            text-align: center;
            display: block;
            border-bottom: none;
            padding-bottom: 0;
        }

        .theme-card .poem-count {
            font-size: 0.76rem;
            color: var(--accent);
            font-weight: 600;
            margin: 0 0 2px 0;
            font-family: var(--font-sans) !important;
        }

        .theme-card .theme-date {
            font-size: 0.7rem;
            color: var(--text-muted);
            margin: 0;
            font-family: var(--font-sans) !important;
        }

        .blurred-image {
            filter: blur(10px) !important;
        }

/* --- Styles MALVOYANT --- */
html.mode-malvoyant,
body.mode-malvoyant {
    font-size: 125% !important;
}

.mode-malvoyant *,
.mode-malvoyant [style*="font-weight"] {
    font-weight: normal !important;
}

.mode-malvoyant b,
.mode-malvoyant strong {
    font-weight: normal !important;
    font-style: normal !important;
}

/* Protéger les icônes Font Awesome */
.mode-malvoyant i.fa,
.mode-malvoyant i.fas,
.mode-malvoyant i.far,
.mode-malvoyant i.fab,
.mode-malvoyant i.fa-solid,
.mode-malvoyant i.fa-regular,
.mode-malvoyant i.fa-brands {
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free', 'Font Awesome 5 Brands', sans-serif !important;
    font-style: normal !important;
    font-weight: 900 !important;
}

.mode-malvoyant i[class^="fa"]::before {
    display: inline-block;
}

#bouton-accessibilite {
  position: fixed;
  bottom: 15px;
  right: 15px;
  z-index: 9999;
  background-color: #F4F2F3;
  border: 1px solid #94A7AE;
  border-radius: 50%;
  padding: 6px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  color: #64766A;
  transition: transform 0.2s, color 0.2s, background-color 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#bouton-accessibilite:hover {
  background-color: #EAE7EA;
}

#bouton-accessibilite.active {
  background-color: #2e7d32;
  color: white;
  transform: scale(1.1);
  border-color: #2e7d32;
}

/* Émojis Noto SVG du Forum - Alignement & Taille */
.ca-noto-emoji {
    height: 1.6em;
    width: auto;
    vertical-align: -0.2em;
    display: inline-block;
    margin: 0 0.12em;
}

