/* =================================
   MONOPOLYGO FR - GAMING ENHANCEMENTS
   ================================= */

::selection {
    background: rgba(14, 165, 233, 0.3);
    color: var(--text-light);
}

::-moz-selection {
    background: rgba(14, 165, 233, 0.3);
    color: var(--text-light);
}

/* Gaming Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, 
        var(--primary-blue) 0%, 
        var(--primary-gold) 100%);
    border-radius: 6px;
    border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, 
        var(--primary-gold) 0%, 
        var(--primary-blue) 100%);
}

/* Gaming Animations & Keyframes */
@keyframes gaming-pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes floatUpBadge {
    from { transform: translateY(0); }
    to { transform: translateY(-5px); }
}

@keyframes gradient-shift {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

@keyframes neon-glow {
    from { text-shadow: 0 0 10px #f59e0b, 0 0 20px #8b5cf6; }
    to { text-shadow: 0 0 20px #f59e0b, 0 0 30px #0ea5e9; }
}

@keyframes countUp {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes floatUp {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

@keyframes flashPulse {
    from { opacity: 0.8; }
    to { opacity: 1; }
}

/* Canvas de Particules */
#scroll-particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 5;
}

.video-stack {
    position: relative;
    width: 100%;
    z-index: 10;
    /* aspect-ratio: supprimé pour adaptation auto */
    background: transparent;
    border-radius: 48px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-stack::before {
    content: '';
    display: block;
    padding-top: 56.25%;
}

.video-stack video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 11;
    border-radius: 48px;
    transition: opacity 0.4s ease;
}

.video-stack video.hidden {
    opacity: 0;
    pointer-events: none;
}

.video-stack video.active {
    opacity: 1;
}

.video-stack video.paused-on-last-frame {
    opacity: 1;
}

/* Hiérarchie Globale */
.hero-section {
    position: relative;
    z-index: 8;
}

.hero-banner-wrapper {
    position: relative;
    z-index: 12;
}

.stats-grid {
    position: relative;
    z-index: 3;
    margin-top: 40px;
}

.section {
    position: relative;
    z-index: 4;
    background: var(--bg-dark);
}

.news-card,
.app-card,
.card {
    position: relative;
    z-index: 6;
}

/* Gaming Focus States */
.btn-primary:focus,
.btn-secondary:focus,
.btn-app:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
    box-shadow: 
        0 0 0 4px rgba(14, 165, 233, 0.2),
        0 8px 25px rgba(14, 165, 233, 0.4);
}

/* Gaming Hero Enhancements */
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -1px;
    background: linear-gradient(90deg, #0ea5e9, #8b5cf6, #f59e0b);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 6s ease infinite;
}

.glow-text {
    animation: neon-glow 1.5s ease-in-out infinite alternate;
    color: #fff;
}

.neon-border {
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px #0ea5e9, inset 0 0 8px #0ea5e933;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.neon-border:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 0 20px #0ea5e9, 0 0 40px #8b5cf6;
}

.animated-stats .stat-number {
    animation: countUp 2s ease-in-out forwards;
}

.hero-banner-image {
    animation: none !important;
}

/* Particules Modifiées - Plus Discrètes */
.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    opacity: 0.2;
    animation: floatUp 10s infinite linear;
    box-shadow: none;
}

/* Gaming Utilities */
.gaming-text-glow {
    text-shadow: 
        0 0 5px rgba(14, 165, 233, 0.5),
        0 0 10px rgba(14, 165, 233, 0.3),
        0 0 15px rgba(14, 165, 233, 0.2);
}

.gaming-border-animate {
    animation: gaming-border 3s ease-in-out infinite;
}

.loading-gaming {
    animation: gaming-pulse 1.5s ease-in-out infinite;
}

.event-date {
    color: var(--warning-orange);
    font-weight: 600;
    font-size: 0.8rem;
    background: rgba(249, 115, 22, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.news-meta .event-date::before {
    content: "📅 ";
}

@media (max-width: 768px) {
    .news-meta {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .event-date {
        font-size: 0.75rem;
        padding: 1px 4px;
    }
}

.app-detail-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 30px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.app-detail-cta .btn-primary {
    margin: 0;
    width: auto;
    max-width: 300px;
}

@media (max-width: 768px) {
    .app-detail-cta .btn-primary {
        width: 90%;
        max-width: none;
    }
}

.app-compatibility {
    background: linear-gradient(145deg, 
        rgba(14, 165, 233, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    border: 2px solid rgba(14, 165, 233, 0.3);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 20px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.app-compatibility:hover {
    background: linear-gradient(145deg, 
        rgba(14, 165, 233, 0.15) 0%, 
        rgba(255, 255, 255, 0.08) 100%);
    border-color: rgba(14, 165, 233, 0.5);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.3);
    transform: translateY(-2px);
}

.app-compatibility .compat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    margin-right: 8px;
    opacity: 0.9;
}

.app-compatibility .compat-text {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 0.95rem;
    text-shadow: 0 0 8px rgba(14, 165, 233, 0.3);
}

.app-detail-compatibility:hover .compat-text {
    color: var(--primary-gold);
    text-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
}

/* Stats Gaming Premium avec Neon-Border - CONSERVÉS */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
    padding: 0 20px;
}

.stat-item.neon-border {
    background: linear-gradient(145deg, 
        rgba(15, 23, 42, 0.9) 0%, 
        rgba(30, 41, 59, 0.8) 50%, 
        rgba(51, 65, 85, 0.7) 100%);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(20px);
    transform-style: preserve-3d;
    cursor: pointer;
}

.stat-item.neon-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        #0EA5E9, #8B5CF6, #F59E0B, #10B981, 
        #0EA5E9, #8B5CF6, #F59E0B, #10B981);
    background-size: 400% 400%;
    border-radius: 16px;
    z-index: -1;
    animation: gradientBorder 4s ease-in-out infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-item.neon-border::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(145deg, 
        rgba(15, 23, 42, 0.95) 0%, 
        rgba(30, 41, 59, 0.9) 50%, 
        rgba(51, 65, 85, 0.85) 100%);
    border-radius: 14px;
    z-index: -1;
}

.stat-item.neon-border:hover {
    transform: translateY(-8px) scale(1.02) rotateX(5deg);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(14, 165, 233, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.stat-item.neon-border:hover::before {
    opacity: 1;
}

.stat-item.neon-border .stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, 
        #0EA5E9 0%, 
        #8B5CF6 50%, 
        #F59E0B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    display: block;
    line-height: 1;
    text-shadow: 0 0 30px rgba(14, 165, 233, 0.5);
    transition: all 0.4s ease;
    position: relative;
}

.stat-item.neon-border:hover .stat-number {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.stat-item.neon-border .stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    transition: all 0.3s ease;
    position: relative;
}

.stat-item.neon-border:hover .stat-label {
    color: var(--primary-blue);
    opacity: 1;
    transform: translateY(-2px);
}

.stat-item.neon-border {
    animation: statEnter 0.8s ease-out forwards;
}

.stat-item.neon-border:nth-child(1) { animation-delay: 0.1s; }
.stat-item.neon-border:nth-child(2) { animation-delay: 0.2s; }
.stat-item.neon-border:nth-child(3) { animation-delay: 0.3s; }
.stat-item.neon-border:nth-child(4) { animation-delay: 0.4s; }

@keyframes gradientBorder {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes statEnter {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.stat-item.neon-border:nth-child(1):hover {
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(14, 165, 233, 0.6);
}

.stat-item.neon-border:nth-child(2):hover {
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(16, 185, 129, 0.6);
}

.stat-item.neon-border:nth-child(3):hover {
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(245, 158, 11, 0.6);
}

.stat-item.neon-border:nth-child(4):hover {
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(139, 92, 246, 0.6);
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        margin: 30px 0;
        padding: 0 10px;
    }
    
    .stat-item.neon-border {
        padding: 20px 16px;
    }
    
    .stat-item.neon-border .stat-number {
        font-size: 2rem;
    }
    
    .stat-item.neon-border .stat-label {
        font-size: 0.8rem;
    }
    
    .stat-item.neon-border:hover {
        transform: translateY(-4px) scale(1.02);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .stat-item.neon-border {
        padding: 16px 12px;
    }
    
    .stat-item.neon-border .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-item.neon-border .stat-label {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }
}

/* Stats Améliorées Discord - CONSERVÉES */
.stat-item {
    position: relative;
    overflow: visible;
}

.stat-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.stat-indicator.online {
    background: #23a55a;
    box-shadow: 0 0 8px #23a55a;
    animation: pulse-green 2s infinite;
}

.stat-indicator.offline {
    background: #ed4245;
    box-shadow: 0 0 8px #ed4245;
    animation: pulse-red 2s infinite;
}

.stat-indicator.loading {
    background: #fbbf24;
    box-shadow: 0 0 8px #fbbf24;
    animation: pulse-yellow 1s infinite;
}

.stat-update {
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0.8;
    margin-top: 4px;
    font-style: italic;
}

@keyframes pulse-green {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

@keyframes pulse-red {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.9); }
}

.stat-number {
    transition: all 0.5s ease;
}

.stat-number.updating {
    color: var(--primary-gold);
    transform: scale(1.05);
}

.stat-item:hover .stat-indicator {
    transform: scale(1.2);
}

.stat-item:hover .stat-number {
    text-shadow: 0 0 8px currentColor;
}

/* Widget Discord Complet - CONSERVÉ */
.discord-widget-complete {
    background: linear-gradient(135deg, #1e1f22 0%, #2b2d31 100%);
    border: 2px solid #5865f2;
    border-radius: 20px;
    padding: 32px;
    margin: 40px 0;
    box-shadow: 0 12px 40px rgba(88, 101, 242, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.discord-widget-complete:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(88, 101, 242, 0.3);
}

.discord-widget-complete::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #5865f2, #4752c4, #5865f2);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

.discord-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.discord-server-icon {
    position: relative;
}

.discord-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #5865f2;
    object-fit: cover;
}

.server-status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid #1e1f22;
    transition: all 0.3s ease;
}

.server-status-dot.online {
    background: #23a55a;
    box-shadow: 0 0 12px #23a55a;
    animation: pulse-green 2s infinite;
}

.server-status-dot.offline {
    background: #ed4245;
    box-shadow: 0 0 12px #ed4245;
}

.server-status-dot.loading {
    background: #fbbf24;
    animation: pulse-yellow 1.5s infinite;
}

.discord-server-info h3 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.discord-subtitle {
    color: #b5bac1;
    font-size: 0.9rem;
    margin: 0;
}

.discord-stats-enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.discord-stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.discord-stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.02);
}

.stat-icon-bg {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.stat-icon-bg.members {
    background: linear-gradient(135deg, #5865f2, #4752c4);
}

.stat-icon-bg.online {
    background: linear-gradient(135deg, #23a55a, #16a34a);
}

.stat-icon-bg.support {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.stat-content {
    flex: 1;
}

.discord-stat-number {
    display: block;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1;
}

.discord-stat-number.online-count {
    color: #23a55a;
}

.discord-stat-number.updating {
    color: var(--primary-gold);
    animation: glow 0.5s ease;
}

.discord-stat-label {
    display: block;
    color: #b5bac1;
    font-size: 0.8rem;
    margin-top: 2px;
}

.discord-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 20px 0;
}

.discord-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #b5bac1;
    font-size: 0.9rem;
}

.feature-check {
    color: #23a55a;
    font-weight: bold;
}

.discord-join-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
    color: white;
    text-decoration: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.discord-join-btn:hover {
    background: linear-gradient(135deg, #4752c4 0%, #3c45a3 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.4);
}

.discord-join-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.discord-join-btn:hover::before {
    left: 100%;
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.discord-btn-icon {
    font-size: 1.2rem;
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.btn-main {
    font-size: 1rem;
    font-weight: 600;
}

.btn-sub {
    font-size: 0.8rem;
    opacity: 0.8;
}

.discord-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.discord-update-time {
    color: #6d6f78;
    font-size: 0.8rem;
    font-style: italic;
}

.discord-trust {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
}

.trust-badge {
    color: #23a55a;
}

.trust-rating {
    color: #fbbf24;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes glow {
    0%, 100% { text-shadow: 0 0 5px currentColor; }
    50% { text-shadow: 0 0 15px currentColor; }
}

@media (max-width: 768px) {
    .discord-widget-complete {
        margin: 20px 0;
        padding: 24px;
    }
    
    .discord-stats-enhanced {
        grid-template-columns: 1fr;
    }
    
    .discord-features {
        grid-template-columns: 1fr;
    }
    
    .discord-footer {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* Bouton Discord Navigation Amélioré - CONSERVÉ */
.btn-nav-discord.enhanced {
    position: relative;
    padding: 8px 16px;
    border-radius: 8px;
    background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    overflow: visible;
    min-width: 120px;
}

.btn-nav-discord.enhanced:hover {
    background: linear-gradient(135deg, #4752c4 0%, #3c45a3 100%);
    border-color: #ffffff33;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.4);
}

.discord-nav-content {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.discord-nav-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.discord-main-text {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1;
}

.discord-members-badge {
    color: #23a55a;
    font-weight: 700;
    font-size: 0.7rem;
    line-height: 1;
    animation: pulse-members 3s infinite;
}

.discord-status-indicator {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #1e1f22;
    transition: all 0.3s ease;
}

.discord-status-indicator.online {
    background: #23a55a;
    box-shadow: 0 0 8px #23a55a;
    animation: pulse-green 2s infinite;
}

.discord-status-indicator.offline {
    background: #ed4245;
    box-shadow: 0 0 8px #ed4245;
}

.discord-status-indicator.loading {
    background: #fbbf24;
    animation: pulse-yellow 1.5s infinite;
}

/* Bouton Discord Navigation Compact - CONSERVÉ */
.btn-nav-discord.compact {
    position: relative;
    padding: 6px 12px;
    border-radius: 6px;
    background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
    border: 1px solid transparent;
    transition: all 0.3s ease;
    overflow: visible;
}

.btn-nav-discord.compact:hover {
    background: linear-gradient(135deg, #4752c4 0%, #3c45a3 100%);
    border-color: #ffffff20;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.discord-nav-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.discord-logo-compact {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
}

.discord-compact-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.discord-label {
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1;
}

.discord-members-compact {
    color: #23a55a;
    font-weight: 700;
    font-size: 0.75rem;
    line-height: 1;
    background: rgba(35, 165, 90, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(35, 165, 90, 0.3);
    animation: pulse-members 3s infinite;
}

.discord-status-compact {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid #1e1f22;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.discord-status-compact.online {
    background: #23a55a;
    box-shadow: 0 0 6px #23a55a;
    animation: pulse-green 2s infinite;
}

.discord-status-compact.offline {
    background: #ed4245;
    box-shadow: 0 0 6px #ed4245;
}

.discord-status-compact.loading {
    background: #fbbf24;
    animation: pulse-yellow 1.5s infinite;
}

/* Tooltip - CONSERVÉ */
.discord-nav-tooltip {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #1e1f22 0%, #2b2d31 100%);
    border: 2px solid #5865f2;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    width: 220px;
    pointer-events: none;
}

.discord-nav-tooltip::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #5865f2;
}

.btn-nav-discord.compact:hover .discord-nav-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.tooltip-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.tooltip-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #5865f2;
}

.tooltip-server-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tooltip-server-name {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1;
}

.tooltip-server-status {
    color: #23a55a;
    font-size: 0.7rem;
    line-height: 1;
}

.tooltip-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
    padding: 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tooltip-stat {
    text-align: center;
}

.tooltip-stat-number {
    display: block;
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
}

.tooltip-stat-number.online {
    color: #23a55a;
}

.tooltip-stat-number.updating {
    animation: glow 0.5s ease;
}

.tooltip-stat-label {
    display: block;
    color: #b5bac1;
    font-size: 0.7rem;
    margin-top: 2px;
}

.tooltip-footer {
    text-align: center;
}

.tooltip-cta {
    color: #b5bac1;
    font-size: 0.7rem;
    font-style: italic;
}

@keyframes pulse-members {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes pulse-yellow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

@media (max-width: 768px) {
    .discord-label {
        display: none;
    }
    
    .btn-nav-discord.compact {
        padding: 6px 8px;
    }
    
    .discord-nav-compact {
        gap: 6px;
    }
    
    .discord-nav-tooltip {
        width: 200px;
        left: auto;
        right: 0;
        transform: translateX(0);
    }
    
    .discord-nav-tooltip::before {
        left: auto;
        right: 20px;
        transform: translateX(0);
    }
    
    .btn-nav-discord.compact:hover .discord-nav-tooltip {
        transform: translateX(0) translateY(0);
    }
}

/* Animations Iris Ultra-Lisses - 2 KEYFRAMES SEULEMENT */
@keyframes introIrisOpen {
    0% { 
        clip-path: inset(47% 47% 47% 47% round 48px);
        opacity: 0.3;
    }
    100% { 
        clip-path: inset(0% 0% 0% 0% round 48px);
        opacity: 1;
    }
}

@keyframes outroIrisClose {
    0% { 
        clip-path: inset(0% 0% 0% 0% round 48px);
        opacity: 1;
    }
    100% { 
        clip-path: inset(47% 47% 47% 47% round 48px);
        opacity: 0.2;
    }
}

/* Classes d'animation - EASINGS ULTRA-FLUIDES */
.video-stack.intro-growing {
    animation: introIrisOpen 2s ease-out forwards;
    transition: none !important;
    transform: translateZ(0);
}

.video-stack.outro-shrinking {
    animation: outroIrisClose 0.9s ease-in forwards;
    transition: none !important;
    transform: translateZ(0);
}

/* États statiques - AUCUNE TRANSITION */
.video-stack.intro-small {
    clip-path: inset(47% 47% 47% 47% round 48px);
    opacity: 0.3;
    transition: none !important;
    animation: none !important;
}

.video-stack.normal {
    clip-path: inset(0% 0% 0% 0% round 48px);
    opacity: 1;
    transition: none !important;
    animation: none !important;
}

.video-stack.resetting {
    animation: none !important;
    clip-path: inset(0% 0% 0% 0% round 48px);
    opacity: 1;
    transition: none !important;
}

/* Vidéos - AUCUNE TRANSITION */
.video-stack video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: none !important;
    transition: none !important;
}

/* Container optimisé */
.video-stack {
    transform: translateZ(0);
    backface-visibility: hidden;
}