/* Reset et variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #06b6d4;
    --accent-color: #10b981;
    --background-dark: #0f0f23;
    --background-darker: #0a0a1a;
    --background-light: #1a1a2e;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --gradient-primary: linear-gradient(135deg, #6366f1, #06b6d4);
    --gradient-secondary: linear-gradient(135deg, #8b5cf6, #ec4899);
    --glow-primary: 0 0 20px rgba(99, 102, 241, 0.5);
    --glow-secondary: 0 0 20px rgba(6, 182, 212, 0.5);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--background-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    z-index: 1001;
    transition: var(--transition);
}

.nav-logo i {
    color: var(--primary-color);
    font-size: 1.8rem;
}

/* Menu principal - Desktop */
.nav-menu {
    display: flex;
    gap: 2rem;
    margin-left: 2rem;
}

/* Centrer le menu sur les grands écrans */
@media (min-width: 1190px) {
    .nav-menu {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin-left: 0;
    }
}

/* Aligner à gauche à partir de 1000px */
@media (max-width: 1189px) and (min-width: 769px) {
    .nav-menu {
        margin-left: 2rem;
        position: static;
        transform: none;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    z-index: 1001;
    transition: var(--transition);
    flex-shrink: 0;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 100;
    margin-left: auto;
    flex-shrink: 0;
}


/* Styles pour le bouton d'ouverture/fermeture et le bouton de profil */
.search-toggle-btn,
.profile-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-toggle-btn:hover,
.profile-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: var(--glow-primary);
}

/* NOUVEAUX STYLES DE RECHERCHE ANIMÉE */
.search-container {
    position: relative;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: flex-end; 
}

/* 1. État initial (caché) */
.search-form-nav {
    position: absolute;
    right: 0;
    display: flex;
    align-items: center;
    width: 40px;
    opacity: 0;
    pointer-events: none;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease-out;
}

/* 2. État actif (ouvert) */
.search-container.active .search-form-nav {
    width: 235px;
    opacity: 1;
    pointer-events: auto;
}

/* Le bouton de toggle disparaît visuellement quand l'input est ouvert */
.search-container.active .search-toggle-btn {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
}

/* Style du champ de saisie */
.search-input-nav {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    height: 40px;
    border-radius: var(--border-radius) 0 0 var(--border-radius); 
    width: calc(100% - 40px);
    flex-grow: 1;
}

.search-input-nav:focus {
    outline: none;
    box-shadow: none;
}

/* Style du bouton de Soumission (intégré) */
.submit-btn {
    background: var(--primary-color);
    border: none;
    color: white; 
    padding: 0.5rem;
    height: 40px;
    width: 40px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; 
}

.submit-btn:hover {
    background: var(--primary-dark);
}
/* FIN NOUVEAUX STYLES DE RECHERCHE ANIMÉE */

/* === BOUTON MENU MOBILE === */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}
/* Hero Slider */
.hero-slider {
    position: relative;
    height: 80vh;
    min-height: 600px;
    overflow: hidden;
    margin-top: -1px; /* Compensation pour supprimer l'écart */
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
}

.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

/* Dégradé ajusté - plus bas et plus étendu */
.slide-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        /* Dégradé latéral */
        linear-gradient(
            90deg,
            rgba(15, 15, 35, 0.95) 0%,
            rgba(15, 15, 35, 0.7) 25%,
            rgba(15, 15, 35, 0.3) 50%,
            transparent 80%
        ),
        /* Dégradé vertical */
        linear-gradient(
            to bottom,
            transparent 40%,
            rgba(15, 15, 35, 0.4) 60%,
            rgba(15, 15, 35, 0.7) 75%,
            var(--background-dark) 95%,
            var(--background-dark) 100%
        );
    z-index: 2;
}

.slide-content {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    margin-bottom: 80px;
    /* Flex pour gérer l'empilement Titre / Info */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slide-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
    animation: slideInTop 0.8s ease-out;
    max-width: 800px;
}

.slide-info {
    max-width: 600px;
    animation: slideInLeft 0.8s ease-out;
}

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

@keyframes slideInTop {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.slide-year,
.slide-rating,
.slide-views {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.slide-rating { color: gold; }
.slide-rating i { color: gold; }

.slide-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-height: 4.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.slide-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.slide-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary.slide-btn {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: var(--glow-primary);
}

.btn-primary.slide-btn:hover {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.8);
    transform: translateY(-3px);
}

.btn-secondary.slide-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--primary-color);
    backdrop-filter: blur(10px);
}

.btn-secondary.slide-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: var(--glow-primary);
    transform: translateY(-3px);
}

/* Conteneur des indicateurs */
.slider-indicators-container {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 4;
    background: rgba(15, 15, 35, 0.7);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.slider-indicator {
    width: 16px;
    height: 16px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.slider-indicator.active {
    background: var(--primary-color);
    transform: scale(1.3);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

.slider-indicator:hover {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* =========================================
   RESPONSIVE - TABLETTE & MOBILE
   ========================================= */

/* Tablette et petits écrans (max 768px) */
@media (max-width: 768px) {
    .hero-slider {
        height: 70vh;
        min-height: 500px;
    }
    
    /* On centre tout le contenu sur mobile/tablette */
    .slide-content {
        align-items: center; 
        text-align: center;
        padding: 0 1.5rem;
    }

    .slide-title {
        font-size: 2.2rem;
        margin-bottom: 0.5rem;
    }
    
    .slide-info {
        max-width: 100%; /* Utiliser toute la largeur */
        display: flex;
        flex-direction: column;
        align-items: center; /* Centrer les enfants de slide-info */
    }

    .slide-meta {
        justify-content: center;
        gap: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .slide-year,
    .slide-rating,
    .slide-views {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    .slide-description {
        font-size: 1rem;
        -webkit-line-clamp: 2; /* Réduire à 2 lignes max sur mobile */
        line-clamp: 2;
        margin-bottom: 1.5rem;
    }
    
    .slide-actions {
        flex-direction: column; /* Boutons l'un sous l'autre */
        width: 100%;
        max-width: 300px; /* Limiter la largeur des boutons */
        gap: 0.8rem;
    }
    
    .slide-btn {
        width: 32px; /* Boutons pleine largeur du conteneur */
        height: 48px;
    }
    
    .slider-indicators-container {
        bottom: 1.5rem;
        padding: 0.6rem 1.2rem;
        gap: 0.8rem;
    }
    
    .slider-indicator {
        width: 12px;
        height: 12px;
    }
}

/* Mobile (max 480px) */
@media (max-width: 480px) {
    .hero-slider {
        height: 65vh;
        min-height: 450px;
    }
    
    .slide-title {
        font-size: 1.8rem;
    }
    
    .slide-content {
        padding: 0 1rem;
        margin-bottom: 60px; /* Laisser de la place aux indicateurs */
    }
    
    .slide-meta {
        gap: 0.5rem;
    }

    .slide-views {
        display: none; /* Masquer les vues sur très petit écran pour gagner de la place */
    }
    
    .slider-indicators-container {
        bottom: 1rem;
        padding: 0.5rem 1rem;
        gap: 0.6rem;
    }
}

/* Sections communes */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

/* Styles pour le défilement horizontal avec boutons */
.featured-content {
    position: relative;
    overflow: hidden;
}

.content-grid-wrapper {
    position: relative;
    overflow: hidden;
}

.scroll-container {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 1.5rem;
    padding: 1rem 0;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(99, 102, 241, 0.8);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    box-shadow: var(--glow-primary);
}

.scroll-btn:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.8);
}

.scroll-btn-left {
    left: 10px;
}

.scroll-btn-right {
    right: 10px;
}

.scroll-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: translateY(-50%) scale(1);
}

.scroll-btn:disabled:hover {
    transform: translateY(-50%) scale(1);
    background: rgba(99, 102, 241, 0.8);
}

/* Ajustement des cartes pour le défilement horizontal */
.horizontal-scroll .content-card {
    min-width: 280px;
    flex-shrink: 0;
}

/* Masquer les boutons sur mobile */
@media (max-width: 768px) {
    .scroll-btn {
        display: none;
    }
    
    .horizontal-scroll .content-card {
        min-width: 250px;
    }
}

/* Featured Content */
.featured {
    padding: 3rem 0;
}

.featured:first-of-type {
    padding-top: 5rem;
}

.featured:last-of-type {
    padding-bottom: 5rem;
}

/* Animation de défilement fluide */
.horizontal-scroll {
    -webkit-overflow-scrolling: touch;
}

/* Indicateur de défilement pour mobile */
@media (max-width: 768px) {
    .horizontal-scroll {
        gap: 1rem;
    }
    
    .horizontal-scroll .content-card {
        min-width: 250px;
    }
    
    .featured {
        padding: 2rem 0;
    }
    
    .featured:first-of-type {
        padding-top: 3rem;
    }
    
    .featured:last-of-type {
        padding-bottom: 3rem;
    }
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.content-card {
    background: var(--background-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    will-change: transform;
}

.content-card:hover {
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.card-image {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 150%;
}

.card-image img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.content-card:hover img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.content-card:hover .card-overlay {
    opacity: 1;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--text-primary);
    border: none;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition);
    box-shadow: var(--glow-primary);
}

.play-btn i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.play-btn:hover i {
    transform: scale(1.3);
}

.content-card:hover .play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-info h3 {
    margin-bottom: 0.2rem;
    font-size: 1.2rem;
}

.card-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.rating {
    color: gold;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Footer */
.footer {
    background: var(--background-darker);
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    min-width: 150px;
}

.footer-section h3,
.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
    display: block;
    padding: 0.3rem 0;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

/* Animations supplémentaires */
@keyframes glow {
    0%, 100% { box-shadow: var(--glow-primary); }
    50% { box-shadow: var(--glow-secondary); }
}

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

/* === MENU MOBILE === */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    height: 100vh;
    background: var(--background-dark);
    z-index: 997;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 80px 1.5rem 2rem;
    overflow-y: auto;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.5);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
}

.mobile-menu.active {
    left: 0;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border-left: 4px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.mobile-nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1.2rem;
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
}

/* === BOUTON DISCORD DANS LA NAVBAR === */
.discord-login-btn-navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #5865F2;
    color: white !important;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
    height: 40px;
    margin-left: 0.8rem;
}

.discord-login-btn-navbar i {
    font-size: 1.2rem;
}

.discord-login-btn-navbar:hover {
    background-color: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.5);
}

/* === AVATAR SEUL === */
.profile-avatar-only {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    z-index: 101;
}

.profile-avatar-only:hover {
    transform: scale(1.07);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.profile-avatar-only.menu-open {
    transform: scale(1.08);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
}

/* === MENU DÉROULANT UTILISATEUR === */
.profile-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0px);
    right: 30px;
    background: var(--background-light);
    border-radius: 12px;
    padding: 0.5rem 0;
    width: 260px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    z-index: 100;
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Ouvert : visible et animé */
.profile-menu.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* Lien dans le menu - Structure améliorée */
.profile-menu a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.9rem 1.1rem;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    border-left: 3px solid transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-menu a i {
    width: 18px;
    text-align: center;
    font-size: 1rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.profile-menu a span {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-menu a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--primary-light);
    border-left: 3px solid var(--primary-color);
    padding-left: 1.4rem;
}

.profile-menu a:hover i {
    color: var(--primary-light);
    transform: scale(1.1);
}

/* Ligne de séparation pour la déconnexion */
.profile-menu .logout {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.3rem;
    padding-top: 0.9rem;
}

/* Icônes spécifiques avec couleurs adaptées */
.profile-menu a:nth-child(1) i { color: #6366f1; }
.profile-menu a:nth-child(2) i { color: #f59e0b; }
.profile-menu a:nth-child(3) i { color: #10b981; }
.profile-menu a:nth-child(4) i { color: #eab308; }
.profile-menu a:nth-child(5) i { color: #ef4444; }
.profile-menu .logout i { color: #ff0000; }

/* Animation de hover plus subtile */
.profile-menu a {
    position: relative;
    overflow: hidden;
}

.profile-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.1), transparent);
    transition: width 0.3s ease;
}

.profile-menu a:hover::before {
    width: 100%;
}

/* --- Petite flèche au-dessus du menu (triangle) --- */
.profile-menu::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 16px;
    width: 12px;
    height: 12px;
    background: var(--background-light);
    transform: rotate(45deg);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    z-index: -1;
}

/* === OVERLAY POUR MENU MOBILE === */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 996;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.logo-image {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    transition: var(--transition);
}

.nav-logo:hover .logo-image {
    transform: rotate(360deg);
}


/* Responsive Design */
@media (max-width: 940px) {
    .discord-login-btn-navbar span {
        display: none;
    }
}

/* Responsive Design */
@media (max-width: 844px) {
    .search-container.active .search-form-nav {
        width: 25vw;
    }
}


/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-menu {
        display: none;
    }
    
    .nav-container {
        padding: 1rem;
        justify-content: flex-start;
    }

    .nav-logo {
        position: absolute;
        left: 130px;
        transform: translateX(-50%);
        margin: 0 auto;
    }

    .nav-actions {
        margin-left: auto;
        gap: 0.5rem;
    }


    .title-main {
        font-size: 2.5rem;
    }
    
    .title-sub {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .content-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .footer-content {
        justify-content: space-around;
    }
    
    .footer-section {
        min-width: 45%;
    }

    /* Ajustements spécifiques pour très petits écrans */
    .discord-login-btn-navbar {
        display: none;
    }

    .search-container.active .search-form-nav {
        width: 45vw;
    }


    .mobile-menu {
        width: 85%;
        max-width: 300px;
    }

    .profile-menu {
        right: 15px;
    }
}

@media (max-width: 480px) {
    .nav-logo span {
        font-size: 16px;
    }

    .nav-logo {
        left: 105px;
    }

    .logo-image {
        width: 28px;
        height: 28px;
    }
    
    .nav-container {
        padding: 0.8rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .title-main {
        font-size: 2rem;
    }
    
    .title-sub {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-section {
        min-width: 100%;
    }

    /* Ajustements supplémentaires pour mobile très petit */
    .profile-avatar-only {
        width: 36px;
        height: 36px;
    }

    .search-toggle-btn,
    .profile-btn {
        width: 36px;
        height: 36px;
    }

    .mobile-menu {
        padding: 70px 1rem 1rem;
        width: 85%;
    }

    .profile-menu {
        right: 9px;
    }
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

