/* Styles généraux */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Accessibilité - Classes utilitaires */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

:root {
    --primary-red: #FF0000;
    --primary-green: #008000;
    --primary-black: #000000;
    --sidebar-bg: #f5f5f5;
    --footer-bg: #f0f0f0;
    --main-bg: #ffffff;
    --text-color: #000000;
    --text-secondary: #666666;
    --tag-bg: #f8f8f8;
    --tag-border: #e0e0e0;
    --search-bg: #e0e0e0;
    --card-bg: #ffffff;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --divider-color: #e5e5e5;
    --border-color: #e0e0e0;
    --hover-bg: rgba(0, 0, 0, 0.05);
}

/* Dark theme */
[data-theme="dark"] {
    --primary-red: #FF4444;
    --primary-green: #00AA00;
    --primary-black: #ffffff;
    --sidebar-bg: #121212;
    --footer-bg: #1a1a1a;
    --main-bg: #1a1a1a;
    --text-color: #ffffff;
    --text-secondary: #b3b3b3;
    --tag-bg: #2d2d2d;
    --tag-border: #404040;
    --search-bg: #333333;
    --card-bg: #1e1e1e;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    --divider-color: #404040;
    --border-color: #404040;
    --hover-bg: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--main-bg);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--text-color);
}

/* Amélioration du focus pour l'accessibilité */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Support pour les préférences d'animation réduite */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Support pour le contraste élevé */
@media (prefers-contrast: high) {
    :root {
        --text-color: #000000;
        --primary-red: #CC0000;
        --card-bg: #FFFFFF;
        --sidebar-bg: #F0F0F0;
        --tag-bg: #E8E8E8;
        --search-bg: #D0D0D0;
    }
    
    [data-theme="dark"] {
        --text-color: #ffffff;
        --primary-red: #FF6666;
        --card-bg: #000000;
        --sidebar-bg: #111111;
        --main-bg: #000000;
    }
}

img {
    max-width: 100%;
    height: auto;
}

/* Layout */
.sidebar {
    width: 250px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--sidebar-bg);
    overflow-y: auto;
    padding: 15px 0;
    z-index: 100;
}

.main-content {
    margin-left: 250px;
    width: calc(100% - 250px);
    padding: 0 20px 20px 20px;
    position: relative;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Logo */
.logo {
    display: block;
    padding: 10px 15px;
    margin-bottom: 20px;
}

.logo img {
    height: 100px;
}

/* Amélioration de la visibilité des logos en mode dark */
[data-theme="dark"] .logo img,
[data-theme="dark"] .section-logo img,
[data-theme="dark"] .footer-logo img {
    filter:
        drop-shadow(0 0 1px rgba(255, 255, 255, 0.8))
        drop-shadow(0 0 2px rgba(255, 255, 255, 0.6))
        drop-shadow(0 0 3px rgba(255, 255, 255, 0.4));
}

/* Navigation */
.sidebar-nav {
    margin-bottom: 30px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    font-size: 18px;
    font-weight: 500;
    transition: background-color 0.2s;
    position: relative;
    overflow: hidden;
}

.nav-item:hover {
    background-color: var(--hover-bg);
}

/* PWA Install Button */
.install-pwa-button {
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-right: 10px;
    flex-shrink: 0;
    white-space: nowrap;
}

.install-pwa-button:hover {
    background: #cc0000;
}

.install-pwa-button:active {
    transform: scale(0.95);
}

/* PWA Styles */
@media (display-mode: standalone) {
    body {
        padding-top: env(safe-area-inset-top);
    }
    
    .header {
        padding-top: env(safe-area-inset-top);
    }
}

/* Offline indicator */
.offline-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ff4444;
    color: white;
    text-align: center;
    padding: 10px;
    z-index: 1000;
    display: none;
}

.offline-indicator.show {
    display: block;
}

/* Enhanced mobile experience */
@media (max-width: 768px) {
    .install-pwa-button {
        padding: 6px 10px;
        font-size: 14px;
    }
}

/* Styles pour la page active dans la sidebar */
.nav-item.active {
    background-color: rgba(255, 0, 0, 0.08);
    font-weight: 600;
    color: var(--primary-red);
    box-shadow: inset 3px 0 0 var(--primary-red);
}

.nav-item.active i {
    color: var(--primary-red);
}

.nav-item i, .nav-item img {
    margin-right: 15px;
    width: 24px;
    text-align: center;
}

.nav-divider {
    height: 1px;
    background-color: var(--divider-color);
    margin: 15px 0;
}

.category-title {
    font-size: 20px;
    font-weight: 600;
    padding: 10px 15px;
    margin-top: 20px;
}

.tag-item {
    position: relative;
    display: flex;
    align-items: center;
    padding: 10px 15px 10px 25px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
}

.tag-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--primary-red);
    transform: translateX(5px);
}

/* Style pour un tag actif */
.tag-item.active {
    background-color: rgba(255, 0, 0, 0.08);
    color: var(--primary-red);
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--primary-red);
}

.tag-icon {
    color: var(--primary-red);
    font-size: 0.9em;
    margin-right: 10px;
    transition: transform 0.2s ease;
}

.tag-item:hover .tag-icon, 
.tag-item.active .tag-icon {
    transform: scale(1.5);
}

/* Media queries pour le style actif sur les différentes tailles d'écran */
@media (max-width: 1200px) and (min-width: 1001px) {
    .nav-item.active {
        background-color: rgba(255, 0, 0, 0.15);
    }
    
    .nav-item.active::after {
        content: attr(data-title);
        position: absolute;
        left: 70px;
        top: 50%;
        transform: translateY(-50%);
        background: var(--primary-red);
        color: white;
        padding: 5px 10px;
        border-radius: 4px;
        white-space: nowrap;
        box-shadow: 0 1px 5px rgba(0,0,0,0.2);
        z-index: 100;
    }
}

/* Style pour le menu mobile */
.mobile-menu .nav-item.active {
    background-color: rgba(255, 0, 0, 0.08);
    color: var(--primary-red);
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--primary-red);
}

.mobile-menu .tag-item.active {
    background-color: rgba(255, 0, 0, 0.08);
    color: var(--primary-red);
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--primary-red);
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 25px 20px;
    background-color: var(--main-bg);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: calc(100vw - 250px);
    margin-bottom: 20px;
    margin-left: -20px;
    padding-left: 40px;
    padding-right: 40px;
    box-sizing: border-box;
}

.search-container {
    flex: 1;
    max-width: 600px;
    margin: 0 auto;
}

.search-container form {
    display: flex;
    position: relative;
}

.search-container input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    background-color: #f8f8f8;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    color: var(--text-color);
}

.search-container input:focus {
    outline: none;
    border-color: var(--primary-red);
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-container input::placeholder {
    color: #9e9e9e;
    transition: opacity 0.3s ease;
}

.search-container input:focus::placeholder {
    opacity: 0.7;
}

.search-container button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-red);
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-container button:hover {
    background-color: #d40000;
    transform: translateY(-50%) scale(1.05);
}

.social-icons, .action-icons {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.icon-button {
    background: none;
    border: none;
    font-size: 24px;
    margin-left: 15px;
    cursor: pointer;
}

.icon-button i {
    color: var(--text-color);
}

/* Theme toggle button */
#theme-toggle {
    transition: transform 0.3s ease, background-color 0.3s ease;
}

#theme-toggle:hover {
    background-color: var(--hover-bg);
    border-radius: 50%;
    transform: scale(1.1);
}

#theme-toggle:active {
    transform: scale(0.95);
}

/* Theme transition for smooth switching */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Dark theme specific adjustments */
[data-theme="dark"] .mt-container {
    --mt-color-bg: var(--card-bg);
    --mt-color-content-txt: var(--text-color);
}

/* Override couleurs Mastodon - Theme rouge */
.mt-container, .mt-container[data-theme=light], .mt-dialog, .mt-dialog[data-theme=light] {
    --mt-color-btn-bg: var(--primary-red) !important;
    --mt-color-btn-bg-hover: #cc0000 !important; 
    --mt-color-link: var(--primary-red) !important;
}

.mt-container[data-theme=dark], .mt-dialog[data-theme=dark] {
    --mt-color-btn-bg: var(--primary-red) !important;
    --mt-color-btn-bg-hover: #ff6666 !important;
    --mt-color-link: #ff6666 !important;
}

/* Icône Mastodon en rouge */
.mt-title i.fa-mastodon {
    color: var(--primary-red) !important;
}

/* Bouton de don dans le header */
.donation-link {
    background: transparent !important;
    color: var(--primary-red) !important;
    position: relative;
    overflow: hidden;
    border: none !important;
    box-shadow: none !important;
}

.donation-link:hover {
    background: rgba(255, 0, 0, 0.1) !important;
    transform: scale(1.2);
}

.donation-link i {
    color: var(--primary-red) !important;
}

/* Animation pulse pour attirer l'attention */
.donation-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-heart 2s infinite;
}

@keyframes pulse-heart {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 40px;
        height: 40px;
        opacity: 0;
    }
}

/* Lien de don dans la sidebar */
.donation-nav-link i {
    color: var(--primary-red) !important;
}

.donation-nav-link:hover i {
    color: #cc0000 !important;
}

.donation-nav-link.active i {
    color: var(--primary-red) !important;
}

[data-theme="dark"] img {
    opacity: 0.9;
}

[data-theme="dark"] .video-thumbnail img {
    opacity: 0.85;
}

[data-theme="dark"] .video-thumbnail:hover img {
    opacity: 1;
}

/* Améliorer le contraste des icônes en mode sombre */
[data-theme="dark"] .fa-play-circle {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Priorité plus élevée pour les couleurs des réseaux sociaux */
.icon-button i.icon-facebook,
.icon-button i.icon-youtube,
.icon-button i.icon-instagram,
.icon-button i.icon-tiktok,
.icon-button i.icon-twitter,
.icon-button i.icon-mastodon {
    color: inherit;
}

/* Hero Section */
.hero-mastodon-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
    padding-top: 5px;
    align-items: start;
}

.timeline-container {
    max-width: 800px;
    width: 100%;
    justify-self: center;
}


/* Responsive breakpoint pour écrans entre 1025px et 1699px */
@media (max-width: 1699px) and (min-width: 1025px) {
    .hero-mastodon-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    #mt-container {
        grid-column: 1 / 2;
    }
}

.hero {
    position: relative;
    width: 100%;
    height: 400px;
    background-color: #888;
    overflow: hidden;
    border-radius: 8px;
}

/* Styles pour le lecteur vidéo dans le hero */
.hero-video-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.hero-video-info {
    position: absolute;
    bottom: 70px;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #fff;
    padding: 15px;
    z-index: 5;
    pointer-events: none;
}

.hero-video-info h2 {
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    opacity: 0.9;
}

.hero-channel-info {
    display: flex;
    align-items: center;
    opacity: 0.8;
}

.hero-channel-info .channel-avatar,
.hero-channel-info .channel-avatar-placeholder {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 8px;
}

.hero-channel-info .channel-name {
    font-size: 14px;
    font-weight: 500;
}

.live-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--primary-red);
    color: white;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 14px;
    font-weight: bold;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 5px;
}

.live-badge i {
    font-size: 10px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Message quand aucun direct n'est disponible */
.hero-no-live {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    padding: 20px;
}

.hero-no-live i {
    font-size: 50px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.hero-no-live h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

.hero-no-live p {
    font-size: 16px;
    max-width: 80%;
    opacity: 0.9;
}

/* ========================================= */
/* Styles pour la section PLAYLIST */
/* ========================================= */

.hero-playlist {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, var(--sidebar-bg) 0%, var(--main-bg) 100%);
}

.hero-playlist-header {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.hero-playlist-header i {
    font-size: 24px;
    color: var(--primary-red);
}

.hero-playlist-info h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: var(--text-primary);
}

.hero-playlist-info p {
    font-size: 14px;
    margin: 0;
    color: var(--text-secondary);
    opacity: 0.9;
}

.hero-playlist-container {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.hero-playlist-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.hero-playlist-footer {
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
}

.hero-playlist-link {
    color: var(--primary-red);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.hero-playlist-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.hero-playlist-link i {
    font-size: 12px;
}

/* Responsive pour les playlists */
@media (max-width: 768px) {
    .hero-playlist-header {
        padding: 12px 15px;
    }

    .hero-playlist-info h2 {
        font-size: 16px;
    }

    .hero-playlist-info p {
        font-size: 13px;
    }

    .hero-playlist-footer {
        padding: 10px 15px;
    }
}

/* Annonce du prochain live dans le hero (page d'accueil) - Split gauche/droite */
.hero-next-live {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    /* Arrière-plan flou - sera défini en ligne avec l'URL de l'image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Overlay d'assombrissement pour améliorer la lisibilité */
.hero-next-live::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(0, 0, 0, 0.85) 100%
    );
    z-index: 1;
}

/* Effet de flou sur l'arrière-plan */
.hero-next-live::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: inherit;
    filter: blur(20px);
    z-index: 0;
}

.hero-next-live-image-container {
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    position: relative;
    z-index: 2;
}

.hero-next-live-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.6));
    position: relative;
    z-index: 2;
}

.hero-next-live-content {
    flex: 0 0 50%;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    color: white;
    position: relative;
    z-index: 2;
}

.hero-next-live-content i.fa-calendar-alt {
    font-size: 35px;
    margin-bottom: 10px;
    color: var(--primary-red);
}

.hero-next-live-content h2 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
    line-height: 1.4;
    max-width: 90%;
}

.hero-next-live-content p {
    font-size: 14px;
    margin: 0 auto 12px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.4;
    max-width: 95%;
}

.hero-next-live-date {
    font-size: 13px !important;
    font-weight: 600;
    color: white !important;
    background: var(--primary-red);
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 10px !important;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
    max-width: 90%;
    line-height: 1.4;
}

.hero-next-live-date i {
    margin-right: 6px;
}

.hero-next-live-datetime {
    width: 100%;
}

.hero-next-live-timezones {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 10px;
    padding: 10px 12px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    max-width: 95%;
    margin-left: auto;
    margin-right: auto;
}

.hero-timezone-item {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.95);
    white-space: nowrap;
    line-height: 1.5;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    flex: 0 1 auto;
    min-width: fit-content;
}

.hero-timezone-item strong {
    color: white;
    font-weight: 700;
}

#mt-container {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    margin-bottom: 1em;
}

.mt-header {
    padding: 12px 15px;
    background: linear-gradient(45deg, #000000, #333333);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.mt-title {
    color: white;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

.mt-title i {
    color: var(--primary-red);
}

.mt-body {
    height: calc(100% - 50px);
    overflow-y: auto;
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
}

.hero-logo {
    font-size: 50px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-logo .re {
    color: var(--primary-red);
}

.play-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.play-button i {
    color: white;
    font-size: 36px;
}

/* Tags Section */
.tags-section {
    margin: 30px 0;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px 0 20px;
    text-align: center;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
    position: relative;
}

.tags-section::-webkit-scrollbar {
    height: 6px;
}

.tags-section::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.tags-section::-webkit-scrollbar-track {
    background-color: transparent;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    margin: 0 8px 12px;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    background: var(--tag-bg);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    color: var(--text-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.tag::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-red), #ff4d4d);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.tag:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(255, 0, 0, 0.2);
}

.tag:hover::before {
    opacity: 1;
}

.tag:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(255, 0, 0, 0.3);
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: nowrap;
}

.section-logo {
    margin-right: 15px;
    flex-shrink: 0;
    min-width: 60px;
}

.section-logo img {
    height: 80px;
    width: auto;
    min-width: 80px;
    object-fit: contain;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Video Sections */
.video-section {
    margin-bottom: 40px;
    position: relative;
    padding-top: 5px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.video-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-thumbnail {
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    opacity: 1;
    background-image: url('../img/play-icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Cacher l'icône Font Awesome originale */
.video-play-icon i {
    display: none;
}

.video-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.video-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.video-channel {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.channel-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #e5e5e5;
}

.channel-avatar-placeholder {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e5e5e5;
    color: var(--text-secondary);
    font-size: 16px;
}

.channel-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    display: flex;
    align-items: center;
    color: inherit;
}

.video-metadata {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: auto;
}

.video-metadata i {
    margin-right: 4px;
    font-size: 13px;
    color: var(--primary-red);
}

.video-views, .video-date {
    display: flex;
    align-items: center;
    font-size: 12px;
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.video-tag {
    display: inline-block;
    padding: 3px 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 5px;
}

/* Carousel */
.carousel {
    position: relative;
    overflow: hidden;
    margin: 15px 0 30px;
    padding: 10px 0;
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease;
    padding-bottom: 10px;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    touch-action: pan-y pinch-zoom; /* Permettre le scroll vertical et le zoom */
}

.carousel-container:active {
    cursor: grabbing;
}

.carousel-item {
    flex: 0 0 auto;
    width: 220px;
    margin-right: 20px;
}

/* Réduire l'espacement en mobile */
@media (max-width: 768px) {
    .carousel-item {
        margin-right: 10px;
    }
}

.carousel-controls {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-dot.active {
    background-color: var(--primary-red);
    transform: scale(1.2);
}

/* Shorts specific styling */
.short-card {
    width: 180px;
    position: relative;
}

.short-thumbnail {
    aspect-ratio: 9/16;
    height: 320px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.short-thumbnail:hover {
    transform: scale(1.05);
}

.short-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: filter 0.3s ease;
}

.short-thumbnail:hover img {
    filter: blur(2px);
}

/* Overlay hover pour les shorts */
.short-thumbnail::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(64, 64, 64, 0.9);
    transition: top 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2;
}

.short-thumbnail:hover::before {
    top: 0;
}

/* Logo overlay */
.short-thumbnail::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 80px;
    height: 80px;
    background-image: url('../img/logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s;
    z-index: 3;
}

.short-thumbnail:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Titre sur l'overlay pour les shorts */
.short-card .short-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: white;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    z-index: 4;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 30px 12px 12px;
    border-radius: 0 0 12px 12px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s;
}

.short-card:hover .short-title-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Icône play sur l'overlay pour les shorts */
.short-card .short-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    z-index: 5;
    width: 60px;
    height: 60px;
    background-image: url('../img/play-icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.15s;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Cacher l'icône Font Awesome pour les shorts */
.short-card .short-play-overlay i {
    display: none;
}

.short-card:hover .short-play-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Ajustements pour mobile */
@media (max-width: 768px) {
    .short-card {
        width: 150px;
    }
    
    .short-thumbnail {
        height: 267px; /* Maintient le ratio 9:16 */
    }
}

@media (max-width: 480px) {
    .short-card {
        width: 130px;
    }
    
    .short-thumbnail {
        height: 231px; /* Maintient le ratio 9:16 */
    }
}

/* View More Button */
.view-more {
    display: block;
    width: max-content;
    margin: 25px auto 5px;
    padding: 12px 30px;
    background-color: var(--primary-red);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.view-more:hover {
    background-color: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.view-more:disabled {
    background-color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Info Section */
.info-section {
    margin: 40px 0;
    padding: 30px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.info-description {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: justify;
}

.info-text {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.info-text a {
    color: var(--primary-red);
    font-weight: bold;
    text-decoration: underline;
    transition: opacity 0.2s;
}

.info-text a:hover {
    opacity: 0.8;
}

/* Styles pour les licences Creative Commons */
.cc-licenses {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
}

.cc-license {
    flex: 1 0 300px;
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.cc-logo {
    height: 31px;
    margin-bottom: 15px;
}

.cc-license h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.cc-license p {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

.info-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Styles for movement figure and caption */
.movement-figure {
    margin: 0;
    padding: 0;
    text-align: center;
}

.info-image {
    max-width: 60%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 15px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.movement-caption {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-color-secondary);
    text-align: justify;
    margin-top: 10px;
}

/* Style pour le titre centré */
.section-title.centered {
    text-align: center;
    margin: 0 0 20px;
    position: relative;
    padding-bottom: 15px;
}

.section-title.centered::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-red);
}

/* Media queries pour le responsive */
@media (max-width: 576px) {
    .movement-caption {
        font-size: 12px;
    }
    
    .info-image {
        max-width: 80%;
    }
    
    .header {
        padding-left: 25px;
        padding-right: 25px;
    }
    
    .search-container {
        max-width: 70%;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    /* Ajustement du header de section pour mobile */
    .section-header {
        flex-wrap: nowrap;
        align-items: center;
    }
    
    .section-logo {
        margin-right: 10px;
        margin-bottom: 0;
    }
    
    .section-logo img {
        height: 50px;
        min-width: 50px;
    }
    
    /* Pour les cas très extrêmes où le texte est excessivement long */
    @media (max-width: 360px) {
        .search-page .section-header,
        .category-page .section-header {
            flex-direction: column;
            align-items: flex-start;
        }
        
        .search-page .section-logo,
        .category-page .section-logo {
            margin-bottom: 10px;
        }
    }
    
    .hero-logo {
        font-size: 36px;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
    }
    
    .play-button i {
        font-size: 24px;
    }
    
    .video-title {
        font-size: 16px;
    }
    
    .cc-licenses {
        gap: 15px;
    }
    
    .cc-license {
        flex: 1 0 100%;
        padding: 15px;
    }
    
    .cc-license h4 {
        font-size: 15px;
    }
    
    .cc-license p {
        font-size: 13px;
    }
    
    .info-section {
        padding: 20px 15px;
    }
    
    .footer-social {
        gap: 10px;
    }
    
    .footer-social a {
        width: 35px;
        height: 35px;
        min-width: 35px;
        min-height: 35px;
        font-size: 18px;
        margin: 0 5px;
    }
    
    .mobile-social-icons {
        gap: 10px;
    }
    
    .mobile-social-icons a {
        width: 35px;
        height: 35px;
        min-width: 35px;
        min-height: 35px;
        font-size: 18px;
    }
}

/* Footer */
.footer {
    margin-top: 40px;
    margin-left: 250px;
    width: calc(100% - 250px);
    padding: 50px 30px 30px;
    background-color: var(--footer-bg);
    border-top: 1px solid var(--border-color);
    box-sizing: border-box;
    align-self: stretch;
    color: var(--text-color);
}

.footer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-logo {
    margin: 0;
    cursor: pointer;
}

.footer-logo img {
    height: 90px;
    transition: transform 0.3s;
    cursor: pointer;
}

.footer-logo img:hover {
    transform: scale(1.05);
}

.footer-contact-info {
    text-align: right;
}

.footer-contact {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.footer-email {
    font-size: 16px;
}

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

.footer-email a:hover {
    color: var(--primary-red);
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: left;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    padding: 0 20px;
    margin-bottom: 30px;
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-red);
}

.footer-links {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s;
    display: inline-block;
    position: relative;
}

.footer-links a:hover {
    color: var(--primary-red);
    transform: translateX(5px);
}

/* Style pour le lien actif dans le footer */
.footer-links a.active {
    color: var(--primary-red);
    font-weight: 600;
    position: relative;
}

.footer-links a.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-red) 20%, 
        var(--primary-red) 80%, 
        transparent 100%);
    opacity: 0.8;
    transform-origin: center;
    transition: transform 0.3s, opacity 0.3s;
}

.footer-links a.active:hover::after {
    opacity: 1;
    transform: scaleX(1.1);
}

.footer-links a i {
    margin-right: 8px;
}

.footer-copyright {
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-copyright a {
    color: var(--primary-red);
    font-weight: bold;
    text-decoration: underline;
    transition: opacity 0.2s;
}

.footer-copyright a:hover {
    opacity: 0.8;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    gap: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    color: var(--text-color);
    font-size: 20px;
    transition: all 0.3s;
    min-width: 40px;
    min-height: 40px;
    aspect-ratio: 1/1;
}

.footer-social a:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

@media (max-width: 1000px) {
    .footer {
        margin-left: 0;
        width: 100%;
        padding: 40px 20px 20px;
    }
    
    .footer-header {
        flex-direction: column;
        text-align: center;
        margin-bottom: 30px;
        padding-bottom: 20px;
    }
    
    .footer-logo {
        margin-bottom: 20px;
    }
    
    .footer-contact-info {
        text-align: center;
    }
    
    .footer-columns {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-column {
        text-align: center;
        margin-bottom: 30px;
        width: 100%;
        max-width: 400px;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links a:hover {
        transform: none;
    }
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-color);
    margin-left: 15px;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    position: relative;
    z-index: 200;
    margin-left: 15px;
    color: var(--text-color);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--main-bg);
    z-index: 150;
    padding: 60px 20px 20px;
    transform: translateX(-100%);
    transition: transform 0.3s;
    overflow-y: auto;
    max-height: 100vh;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
}

/* Amélioration de l'espacement dans le menu mobile */
.mobile-menu .search-container {
    margin-bottom: 25px;
    padding: 0 5px;
}

.mobile-menu .search-container form {
    margin-bottom: 10px;
}

.mobile-menu nav {
    margin-top: 15px;
}

.mobile-menu .nav-item {
    margin-bottom: 2px;
}

.mobile-menu .mobile-section-title {
    margin-top: 20px;
    margin-bottom: 15px;
}

/* Media Queries */
@media (max-width: 1200px) and (min-width: 1001px) {
    .sidebar {
        width: 70px;
    }
    
    .main-content, .footer {
        margin-left: 70px;
        width: calc(100% - 70px);
    }
    
    /* Ajuster le header pour le mode sidebar compact */
    .header {
        width: 100%;
        max-width: calc(100vw - 70px);
        margin-left: -20px;
        padding-left: 40px;
        padding-right: 40px;
        box-sizing: border-box;
    }
    
    .nav-item span {
        display: none;
    }
    
    /* Masquer complètement la section Hashtags */
    .category-title, 
    .tag-item {
        display: none;
    }
    
    .nav-item {
        justify-content: center;
        padding: 15px 0;
        position: relative;
    }
    
    .nav-item i {
        margin-right: 0;
        font-size: 20px;
    }
    
    /* Tooltip for compact mode */
    .nav-item:hover::after {
        content: attr(data-title);
        position: absolute;
        left: 70px;
        top: 50%;
        transform: translateY(-50%);
        background: var(--sidebar-bg);
        color: var(--text-color);
        padding: 5px 10px;
        border-radius: 4px;
        white-space: nowrap;
        box-shadow: 0 1px 5px rgba(0,0,0,0.2);
        z-index: 100;
    }
    
    .logo {
        text-align: center;
        padding: 10px 0;
    }
    
    .logo img {
        height: 50px;
    }
}

@media (max-width: 1000px) {
    .sidebar {
        display: none;
    }
    
    .main-content, .footer {
        margin-left: 0;
        width: 100%;
    }
    
    /* Ajuster le header pour l'affichage mobile */
    .header {
        width: 100vw;
        max-width: 100vw;
        margin-left: -20px;
        padding-left: 20px;
        padding-right: 20px;
        box-sizing: border-box;
        position: relative;
        left: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .search-container {
        max-width: 60%;
    }
    
    .social-icons {
        display: none;
    }
    
    .action-icons {
        display: flex;
        align-items: center;
    }
    
    .hero-mastodon-wrapper {
        grid-template-columns: 1fr;
    }
    
    .hero, #mt-container {
        width: 100%;
        height: 300px;
    }

    /* Augmenter la hauteur du hero quand il y a une annonce */
    .hero:has(.hero-next-live) {
        height: 600px;
    }

    /* Augmenter aussi la hauteur du hero pour "no-live" pour cohérence */
    .hero:has(.hero-no-live) {
        height: 300px;
    }
    
    .hero-mastodon-wrapper #mt-container {
        height: 600px;
    }
    
    /* Pour le nouveau layout timeline-wordpress */
    .timeline-container #mt-container {
        height: 400px;
    }
    
    /* Réduire la taille des boutons du footer Mastodon en mobile */
    .mt-footer .mt-btn-violet {
        font-size: 12px !important;
        padding: 5px 10px !important;
    }

    .hero-logo {
        font-size: 40px;
    }
    
    .footer-columns {
        flex-direction: column;
    }
    
    .footer-column {
        text-align: center;
        margin-bottom: 30px;
    }
}

@media (max-width: 992px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .video-title {
        font-size: 15px;
    }
}

@media (max-width: 400px) {
    .cc-license {
        padding: 12px;
    }
    
    .cc-logo {
        height: 25px;
    }
    
    .cc-license h4 {
        font-size: 14px;
    }
    
    .footer-social {
        gap: 10px;
        max-width: 250px;
    }
    
    .footer-social a {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        font-size: 16px;
        margin: 0 3px;
    }
    
    .mobile-social-icons {
        gap: 5px;
        flex-wrap: wrap;
    }
    
    .mobile-social-icons a {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        font-size: 16px;
    }
}

/* Styles pour le menu dropdown des réseaux sociaux */
.more-social-container {
    position: relative;
}

.more-social-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 180px;
    background-color: var(--main-bg);
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    padding: 10px 0;
    display: none;
    z-index: 100;
}

.more-social-container:hover .more-social-dropdown,
.more-social-toggle:focus + .more-social-dropdown,
.more-social-dropdown:hover {
    display: block;
}

.more-social-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    font-size: 14px;
    transition: background-color 0.2s;
}

.more-social-item:hover {
    background-color: rgba(0,0,0,0.05);
}

.more-social-item i {
    margin-right: 10px;
    font-size: 18px;
    width: 20px;
    text-align: center;
    color: inherit;
}

@media (max-width: 1000px) {
    .more-social-dropdown {
        right: -15px;
    }
}

/* Styles pour les icônes des réseaux sociaux avec leurs couleurs officielles */
i.icon-facebook, 
.fab.fa-facebook.icon-facebook {
    color: #1877F2 !important; /* Bleu Facebook */
}

i.icon-youtube,
.fab.fa-youtube.icon-youtube {
    color: #FF0000 !important; /* Rouge YouTube */
}

i.icon-instagram,
.fab.fa-instagram.icon-instagram {
    /* Imiter le dégradé Instagram avec une couleur principale */
    color: #E1306C !important; /* Rose/magenta Instagram */
}

i.icon-tiktok,
.fab.fa-tiktok.icon-tiktok {
    color: #000000 !important; /* Noir TikTok */
}

[data-theme="dark"] .header i.icon-tiktok,
[data-theme="dark"] .header .fab.fa-tiktok.icon-tiktok {
    color: #ffffff !important; /* Blanc TikTok en mode sombre - header seulement */
}

i.icon-tiktok-accent {
    color: #EE1D52 !important; /* Rouge TikTok */
}

i.icon-x,
.fab.fa-x-twitter.icon-x,
.fab.fa-x.icon-x {
    color: #000000 !important; /* Noir X (anciennement Twitter) */
}

[data-theme="dark"] .header i.icon-x,
[data-theme="dark"] .header .fab.fa-x-twitter.icon-x,
[data-theme="dark"] .header .fab.fa-x.icon-x {
    color: #ffffff !important; /* Blanc X en mode sombre - header seulement */
}

i.icon-mastodon,
.fab.fa-mastodon.icon-mastodon {
    color: #563ACC !important; /* Violet Mastodon */
}

/* Maintenir la couleur par défaut pour les icônes dans le footer */

/* Ajustements pour le menu déroulant des réseaux sociaux */
.more-social-item i {
    margin-right: 10px;
    font-size: 18px;
    width: 20px;
    text-align: center;
    /* Supprimer la couleur rouge par défaut pour utiliser les classes spécifiques */
    color: inherit;
}

/* Styles pour le menu mobile des réseaux sociaux */
.mobile-social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
    padding: 10px 15px;
}

.mobile-social-icons a {
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5;
    transition: transform 0.2s, background-color 0.2s;
    min-width: 40px;
    min-height: 40px;
    aspect-ratio: 1/1;
}

.mobile-social-icons a:hover {
    transform: scale(1.1);
    background-color: #e8e8e8;
}

@media (max-width: 1000px) {
    .mobile-menu-section .social-icons {
        display: flex;
    }
}

.mobile-section-title {
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0 10px;
    padding: 0;
    color: var(--text-color);
    text-align: center;
}

/* Styles pour la page de direct */
.live-page {
    width: 100%;
    margin-bottom: 40px;
    padding-top: 5px;
}

.live-container {
    position: relative;
    width: 100%;
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    margin-top: 20px;
}

.live-player {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Ratio 16:9 */
}

.live-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.live-info {
    padding: 20px;
    border-top: 1px solid var(--divider-color);
}

.live-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

.live-channel-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.live-channel-info .channel-avatar,
.live-channel-info .channel-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
}

.live-channel-info .channel-name {
    font-size: 18px;
    font-weight: 500;
}

.live-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
}

.live-description p {
    margin-bottom: 15px;
}

.live-badge.large {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--primary-red);
    color: white;
    border-radius: 4px;
    padding: 8px 15px;
    font-size: 16px;
    font-weight: bold;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-badge.large i {
    font-size: 12px;
    animation: pulse 1.5s infinite;
}

.no-live-message {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--card-bg);
    color: var(--text-color);
    text-align: center;
    padding: 60px 20px;
    border-radius: 8px;
}

.no-live-message i {
    font-size: 60px;
    margin-bottom: 20px;
    opacity: 0.7;
    color: var(--primary-red);
}

.no-live-message h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
}

.no-live-message p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Annonce du prochain live - Split gauche/droite */
.next-live-announcement {
    display: flex;
    flex-direction: row;
    border-radius: 8px;
    overflow: hidden;
    min-height: 500px;
    position: relative;
    /* Arrière-plan flou - sera défini en ligne avec l'URL de l'image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Overlay d'assombrissement pour améliorer la lisibilité */
.next-live-announcement::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(0, 0, 0, 0.85) 100%
    );
    z-index: 1;
}

/* Effet de flou sur l'arrière-plan */
.next-live-announcement::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: inherit;
    filter: blur(20px);
    z-index: 0;
    border-radius: 8px;
}

.next-live-image-container {
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.next-live-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    max-height: 600px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.7));
    position: relative;
    z-index: 2;
}

.next-live-content {
    flex: 0 0 50%;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    position: relative;
    z-index: 2;
}

.next-live-content i.fa-calendar-alt {
    font-size: 60px;
    margin-bottom: 20px;
    color: var(--primary-red);
}

.next-live-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.next-live-content p {
    font-size: 20px;
    margin: 0 auto 25px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
    max-width: 100%;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.next-live-date {
    font-size: 22px !important;
    font-weight: 600;
    color: white !important;
    background: var(--primary-red);
    padding: 12px 24px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 30px !important;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

.next-live-date i {
    margin-right: 8px;
}

.utc-offset {
    font-size: 16px;
    opacity: 0.85;
    font-weight: 500;
}

.next-live-datetime {
    width: 100%;
}

.next-live-timezones {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
    margin-bottom: 20px;
    padding: 16px 20px;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
}

.timezone-item {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.95);
    white-space: nowrap;
    line-height: 1.5;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex: 0 1 auto;
    min-width: fit-content;
}

.timezone-item strong {
    color: white;
    font-weight: 700;
}

.day-shift {
    font-size: 12px;
    color: var(--primary-red);
    font-weight: 700;
    margin-left: 4px;
}

.btn-primary {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary-red);
    color: white;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Responsive tablette/desktop étroit - 769px à 1024px */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero-mastodon-wrapper {
        display: block;
    }

    .timeline-container {
        width: 100%;
        max-width: 100%;
    }

    .hero {
        width: 100%;
        margin-bottom: 20px;
    }

    #mt-container {
        flex: 1;
    }

    .wordpress-section {
        flex: 1;
    }
}

/* Responsive pour la page de direct */
@media (max-width: 768px) {
    .live-title {
        font-size: 20px;
    }
    
    .live-channel-info .channel-avatar,
    .live-channel-info .channel-avatar-placeholder {
        width: 32px;
        height: 32px;
    }
    
    .live-channel-info .channel-name {
        font-size: 16px;
    }
    
    .live-badge.large {
        top: 15px;
        left: 15px;
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .no-live-message {
        padding: 40px 15px;
    }
    
    .no-live-message i {
        font-size: 50px;
    }
    
    .no-live-message h2 {
        font-size: 24px;
    }
    
    .no-live-message p {
        font-size: 16px;
    }

    /* Responsive mobile - Stack vertical pour l'annonce */
    .next-live-announcement {
        flex-direction: column;
        min-height: auto;
    }

    .next-live-image-container {
        flex: 0 0 auto;
        width: 100%;
        max-height: 400px;
        padding: 15px;
    }

    .next-live-image {
        max-height: 350px;
    }

    .next-live-content {
        flex: 0 0 auto;
        width: 100%;
        padding: 30px 20px;
        overflow-y: auto;
        max-height: 600px;
    }

    .next-live-content i.fa-calendar-alt {
        font-size: 45px;
    }

    .next-live-content h2 {
        font-size: 24px;
    }

    .next-live-content p {
        font-size: 16px;
    }

    .next-live-date {
        font-size: 17px !important;
        padding: 10px 18px;
    }

    .next-live-timezones {
        gap: 8px;
        padding: 14px 16px;
        margin-top: 12px;
        margin-bottom: 16px;
    }

    .timezone-item {
        font-size: 14px;
        padding: 5px 10px;
    }

    /* Hero next live responsive */
    .hero-next-live {
        flex-direction: column;
    }

    .hero-next-live-image-container {
        flex: 0 0 300px;
        width: 100%;
        padding: 15px;
        max-height: 300px;
    }

    .hero-next-live-image {
        max-height: 270px;
    }

    .hero-next-live-content {
        flex: 1;
        width: 100%;
        padding: 5px 15px 25px 15px;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .hero-next-live-content i.fa-calendar-alt {
        font-size: 35px;
        margin-bottom: 10px;
        margin-top: 0;
    }

    .hero-next-live-content h2 {
        font-size: 20px;
        margin-bottom: 8px;
        line-height: 1.2;
    }

    .hero-next-live-content p {
        font-size: 13px;
        margin-bottom: 10px;
        line-height: 1.4;
    }

    .hero-next-live-date {
        font-size: 13px !important;
        padding: 6px 12px;
        margin-bottom: 10px !important;
    }

    .hero-next-live-timezones {
        gap: 5px;
        padding: 8px 10px;
        margin-top: 8px;
    }

    .hero-timezone-item {
        font-size: 10px;
        padding: 3px 6px;
    }

    .utc-offset {
        font-size: 11px;
    }
}

/* Media query pour très petits écrans (iPhone 4S, etc.) */
@media (max-width: 360px) {
    /* Réduction de l'icône calendar pour .next-live-announcement sur direct.php */
    .next-live-content i.fa-calendar-alt {
        font-size: 35px;
        margin-bottom: 8px;
    }

    .next-live-content h2 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .next-live-content p {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .next-live-date {
        font-size: 14px !important;
        padding: 8px 14px;
        margin-bottom: 12px !important;
    }

    .next-live-timezones {
        gap: 6px;
        padding: 10px 12px;
        margin-top: 10px;
    }

    .timezone-item {
        font-size: 11px;
        padding: 4px 8px;
    }
}

/* Catégories */
.category-page {
    width: 100%;
    margin-bottom: 40px;
    padding-top: 5px;
}

.category-videos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 20px;
}

.no-videos-message {
    text-align: center;
    padding: 50px 20px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    margin-top: 30px;
}

.no-videos-message i {
    font-size: 50px;
    color: var(--primary-red);
    margin-bottom: 20px;
    opacity: 0.7;
}

.no-videos-message h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.no-videos-message p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.btn-primary {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-red);
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.3s;
}

.btn-primary:hover {
    background-color: #d40000;
    transform: translateY(-3px);
}

@media (max-width: 992px) {
    .category-videos {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .category-videos {
        grid-template-columns: 1fr;
    }
}

/* Page de recherche */
.search-page {
    margin-bottom: 40px;
    padding-top: 5px;
}

.search-form-container {
    margin: 20px 0 30px;
}

.search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}

.search-form input[type="text"] {
    flex: 1;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-right: none;
    border-radius: 4px 0 0 4px;
    width: 100%;
}

.search-form button {
    background-color: var(--primary-red);
    color: white;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    font-size: 16px;
    transition: background-color 0.3s;
}

.search-form button:hover {
    background-color: #d40000;
}

.search-results-count {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
    background-color: var(--tag-bg);
    color: var(--text-secondary);
    border-radius: 4px;
}

.search-instructions {
    text-align: center;
    margin: 40px auto;
    max-width: 500px;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-instructions i {
    font-size: 48px;
    color: var(--primary-red);
    margin-bottom: 15px;
    opacity: 0.7;
}

.search-instructions h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
}

.search-instructions p {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 10px;
}

.search-instructions .mt-2 {
    margin-top: 20px;
}

.search-instructions strong {
    color: var(--primary-red);
    font-weight: 600;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 20px;
}

.page-numbers {
    display: flex;
    align-items: center;
}

.page-number {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    border-radius: 4px;
    background-color: #f5f5f5;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.2s;
}

.page-number:hover {
    background-color: #e0e0e0;
}

.page-number.current {
    background-color: var(--primary-red);
    color: white;
    cursor: default;
}

.page-link {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 4px;
    background-color: #f5f5f5;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.2s;
}

.page-link:hover {
    background-color: #e0e0e0;
}

.page-link.prev i {
    margin-right: 8px;
}

.page-link.next i {
    margin-left: 8px;
}

.page-dots {
    margin: 0 5px;
    color: var(--text-secondary);
}

/* Styles pour les hashtags dans le menu mobile */
.mobile-menu .nav-item .fas.fa-hashtag {
    color: var(--primary-red);
    font-size: 0.9em;
    transition: transform 0.2s ease;
}

.mobile-menu .nav-item:hover .fas.fa-hashtag {
    transform: scale(1.2);
}

.mobile-menu .nav-item:hover {
    color: var(--primary-red);
    background-color: rgba(255, 0, 0, 0.05);
}

/* Styles pour le conteneur flex des sections Informations et Tendances Hashtags */
.info-tags-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
    margin-top: 60px;
    position: relative;
}

/* Conteneur pour la section des tags */
.tags-section-container {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 25px 20px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
}

/* Section info */
.info-section {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 25px 20px;
    box-shadow: var(--card-shadow);
}

.info-description {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: justify;
}

/* Media Queries pour grands écrans */
@media (min-width: 992px) {
    .info-tags-container {
        flex-direction: row;
        align-items: flex-start;
        margin-top: 30px;
    }
    
    .info-section, 
    .tags-section-container {
        display: flex;
        flex-direction: column;
        margin-top: 0;
        margin-bottom: 0;
    }
    
    .info-section {
        flex: 3;
        margin-right: 30px;
    }
    
    .tags-section-container {
        flex: 2;
        align-self: stretch;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    /* Quand la section info n'est pas présente, la section tags prend toute la largeur */
    .info-tags-container:not(:has(.info-section)) .tags-section-container {
        flex: 1;
        max-width: 800px;
        margin: 0 auto;
    }
    
    .tags-section {
        flex-grow: 1;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-content: center;
    }
}

/* Séparateur de section */
.section-divider {
    height: 1px;
    background-image: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.1) 50%, transparent);
    border: none;
    margin: 40px 0;
    position: relative;
    overflow: visible;
}

.section-divider::before {
    content: '';
    display: block;
    width: 40px;
    height: 5px;
    background-color: var(--primary-red);
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Version responsive du séparateur */
@media (max-width: 768px) {
    .section-divider {
        margin: 30px 0;
    }
    
    .section-divider::before {
        width: 30px;
        height: 4px;
    }
}

 
/* ==========================================
   Modal de mise à jour PWA (js/pwa-update.js)
   ========================================== */

.pwa-update-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.pwa-update-overlay.pwa-update-visible {
    opacity: 1;
}

.pwa-update-modal {
    background-color: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
    max-width: 420px;
    width: 100%;
    padding: 28px 24px 24px;
    text-align: center;
    transform: translateY(12px) scale(0.97);
    transition: transform 0.25s ease;
}

.pwa-update-visible .pwa-update-modal {
    transform: translateY(0) scale(1);
}

.pwa-update-logo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin-bottom: 12px;
}

.pwa-update-title {
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 700;
}

.pwa-update-text {
    margin: 0 0 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.pwa-update-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.pwa-update-btn {
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.pwa-update-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.pwa-update-btn-primary {
    background-color: var(--primary-red);
    color: #ffffff;
}

.pwa-update-btn-primary:hover:not(:disabled) {
    filter: brightness(0.9);
}

.pwa-update-btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.pwa-update-btn-secondary:hover:not(:disabled) {
    background-color: var(--hover-bg);
}

.pwa-update-btn:focus-visible {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .pwa-update-actions {
        flex-direction: column;
    }

    .pwa-update-btn {
        width: 100%;
    }
}

/* Section « Tendances » (aside de l'accueil) : carte « mise en avant » */
.tags-section-container {
    position: relative;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    border: 1px solid var(--tag-border);
    overflow: hidden;
}

/* Barre d'accent identitaire en haut de la carte (rouge → jaune → vert) */
.tags-section-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red) 0%, #FFD700 50%, var(--primary-green) 100%);
}

/* Icône du titre */
.trending-title-icon {
    color: var(--primary-red);
}

.tags-section-container .tags-section {
    margin: 6px 0 2px;
    padding: 4px 0 6px;
    overflow-x: visible;
    white-space: normal;
}

.tags-section-container .tag {
    font-size: 1rem;
    padding: 10px 22px;
    border: 1px solid var(--tag-border);
}

/* Rangée d'emoji décorative au-dessus des hashtags « Tendances » (accueil) */
.trending-hashtag-emojis {
    font-size: 1.35rem;
    letter-spacing: 0.3em;
    line-height: 1;
    text-align: center;
    margin: 4px 0 10px;
}
