/* Variables CSS - Thème sombre et jeune */
:root {
    --primary-color: #ff006e;
    --primary-glow: #ff006e;
    --secondary-color: #8338ec;
    --accent-color: #3a86ff;
    --accent-glow: #3a86ff;
    --dark-bg: #0a0a0f;
    --dark-card: #141420;
    --dark-card-hover: #1a1a2e;
    --darker-bg: #050508;
    --text-light: #e0e0e0;
    --text-muted: #a0a0a0;
    --text-dark: #ffffff;
    --border-color: #2a2a3e;
    --border-glow: rgba(255, 0, 110, 0.3);
    --success-color: #06ffa5;
    --error-color: #ff006e;
    --info-color: #3a86ff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 20px rgba(255, 0, 110, 0.4);
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --safe-area-top: env(safe-area-inset-top);
    --safe-area-bottom: env(safe-area-inset-bottom);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 50%, #0f0f1a 100%);
    background-attachment: fixed;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding-top: var(--safe-area-top);
    padding-bottom: var(--safe-area-bottom);
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    height: 100%;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

@media (min-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* Popup BETA */
.beta-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Toujours au-dessus du logo, du header et des autres overlays */
    z-index: 110000;
    animation: beta-popup-fade-in 0.3s ease-out;
    box-sizing: border-box;
}

.beta-popup {
    background: linear-gradient(135deg, #141420 0%, #1f1f35 100%);
    border-radius: 20px;
    border: 2px solid rgba(255, 0, 110, 0.6);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 0, 110, 0.3);
    max-width: 450px;
    width: 100%;
    padding: 2rem;
    margin: 0;
    color: #ffffff;
    position: relative;
    animation: beta-popup-scale-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-sizing: border-box;
    /* Réinitialisation des styles par défaut */
    font-family: inherit;
    line-height: inherit;
}

@keyframes beta-popup-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes beta-popup-scale-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.beta-popup-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1rem 0;
    padding: 0;
    justify-content: center;
    box-sizing: border-box;
}

.beta-popup-icon {
    font-size: 2rem;
    margin: 0;
    padding: 0;
    line-height: 1;
    animation: beta-popup-pulse 2s ease-in-out infinite;
    display: inline-block;
    box-sizing: border-box;
}

@keyframes beta-popup-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.beta-popup-title {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #ff006e;
    text-align: center;
    margin: 0;
    padding: 0;
    line-height: 1.2;
    box-sizing: border-box;
    /* Réinitialisation des styles h2 par défaut */
    display: block;
    font-family: inherit;
}

.beta-popup-text {
    font-size: 1rem;
    color: var(--text-light);
    margin: 0 0 1.5rem 0;
    padding: 0;
    line-height: 1.6;
    text-align: center;
    box-sizing: border-box;
    /* Réinitialisation des styles p par défaut */
    display: block;
    font-family: inherit;
}

.beta-popup-button {
    width: 100%;
    margin: 0;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    /* Réinitialisation des styles button par défaut */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    outline: none;
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
    text-decoration: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.beta-popup-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 0, 110, 0.4);
}

@media (max-width: 480px) {
    .beta-popup {
        padding: 1.5rem 1.5rem 1.75rem;
        max-width: 90%;
    }

    .beta-popup-title {
        font-size: 1.15rem;
    }

    .beta-popup-text {
        font-size: 0.95rem;
    }

    .beta-popup-icon {
        font-size: 1.75rem;
    }
}

/* Navbar */
.navbar {
    background: rgba(20, 20, 32, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding-top: calc(0.75rem + var(--safe-area-top));
}

/* Header simplifié pour landing page */
.navbar-simple {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    box-shadow: none;
    padding: 2rem 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.navbar-simple .container {
    justify-content: flex-start;
}

.navbar-simple .logo {
    margin: 0;
}

.navbar-simple .logo-img {
    height: 60px;
    filter: drop-shadow(0 4px 15px rgba(255, 0, 110, 0.4));
    transition: var(--transition);
}

.navbar-simple .logo-img:hover {
    filter: drop-shadow(0 6px 20px rgba(255, 0, 110, 0.6));
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .navbar-simple {
        padding: 1.5rem 0;
    }
    
    .navbar-simple .logo-img {
        height: 50px;
    }
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
}

@media (max-width: 767px) {
    .navbar .container {
        justify-content: space-between;
        flex-wrap: nowrap;
    }
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
    z-index: 1001;
}

.logo-img {
    height: 40px;
    width: auto;
    transition: var(--transition);
    filter: drop-shadow(0 0 10px rgba(255, 0, 110, 0.3));
}

@media (min-width: 768px) {
    .logo-img {
        height: 50px;
    }
}

.logo:hover .logo-img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(255, 0, 110, 0.6));
}

/* Menu Hamburger Mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1002;
    position: relative;
    margin-left: auto;
    order: 2;
}

@media (max-width: 767px) {
    .menu-toggle {
        display: flex !important;
    }
}

.menu-toggle:focus {
    outline: none;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    display: block;
    box-shadow: 0 0 8px rgba(255, 0, 110, 0.3);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}


/* Overlay pour le menu mobile */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out,
                visibility 0.3s ease-in-out;
    pointer-events: none;
    will-change: opacity, visibility;
    cursor: pointer;
}

@media (min-width: 768px) {
    .menu-overlay {
        display: none !important;
    }
}

.menu-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
}

.nav-links {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Menu mobile - Design professionnel avec animations */
@media (max-width: 767px) {
    .nav-links {
        /* Reset styles desktop */
        display: none !important;
        gap: 0;
        align-items: stretch;
        flex-wrap: nowrap;
        
        /* Menu mobile fixe */
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        max-width: 85vw;
        height: 100vh;
        height: 100dvh;
        background: linear-gradient(180deg, var(--dark-card) 0%, rgba(20, 20, 32, 0.98) 100%);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 0;
        margin: 0;
        box-shadow: -8px 0 40px rgba(0, 0, 0, 0.6), 
                    -4px 0 20px rgba(255, 0, 110, 0.1);
        transition: right 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                    box-shadow 0.4s ease;
        z-index: 1000;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        will-change: right, transform;
        transform: translateX(0);
    }
    
    /* Wrapper pour les éléments principaux du menu */
    .nav-links-main {
        display: flex;
        flex-direction: column;
        flex: 1;
        width: 100%;
    }
    
    /* Wrapper pour les éléments du bas (Paramètres + Déconnexion) */
    .nav-links-bottom {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-top: auto;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-links.active {
        right: 0 !important;
        display: flex !important;
        box-shadow: -8px 0 40px rgba(0, 0, 0, 0.8), 
                    -4px 0 20px rgba(255, 0, 110, 0.2);
        animation: slideInRight 0.35s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards;
    }
    
    @keyframes slideInRight {
        from {
            transform: translateX(100%);
            opacity: 0;
        }
        to {
            transform: translateX(0);
            opacity: 1;
        }
    }
    
    /* Animation de fermeture - identique à l'ouverture mais inversée */
    .nav-links.closing {
        animation: slideOutRight 0.35s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards;
    }
    
    @keyframes slideOutRight {
        from {
            transform: translateX(0);
            opacity: 1;
        }
        to {
            transform: translateX(100%);
            opacity: 0;
        }
    }
    
    /* Espace en haut pour la navbar avec animation */
    .nav-links::before {
        content: '';
        display: block;
        height: 70px;
        flex-shrink: 0;
        width: 100%;
        background: linear-gradient(180deg, rgba(255, 0, 110, 0.1) 0%, transparent 100%);
        opacity: 0;
        transition: opacity 0.5s ease 0.2s;
    }
    
    .nav-links.active::before {
        opacity: 1;
    }
    
    /* Tous les enfants directs avec animation d'apparition */
    .nav-links > *:not(.nav-links-main):not(.nav-links-bottom) {
        width: 100% !important;
        flex-shrink: 0;
        margin: 0 !important;
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
        box-sizing: border-box;
        opacity: 0;
        transform: translateX(30px);
        transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    /* Wrappers avec animation */
    .nav-links-main,
    .nav-links-bottom {
        opacity: 0;
        transform: translateX(30px);
        transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    /* Animation séquentielle pour chaque élément à l'ouverture */
    .nav-links.active > *:not(.nav-links-main):not(.nav-links-bottom),
    .nav-links.active .nav-links-main,
    .nav-links.active .nav-links-bottom {
        opacity: 1;
        transform: translateX(0);
    }
    
    .nav-links.active > *:nth-child(1) {
        transition-delay: 0.1s;
    }
    
    .nav-links.active > *:nth-child(2) {
        transition-delay: 0.15s;
    }
    
    .nav-links.active > *:nth-child(3) {
        transition-delay: 0.2s;
    }
    
    .nav-links.active > *:nth-child(4) {
        transition-delay: 0.25s;
    }
    
    .nav-links.active > *:nth-child(5) {
        transition-delay: 0.3s;
    }
    
    /* Animation inverse à la fermeture */
    .nav-links.closing > *:not(.nav-links-main):not(.nav-links-bottom),
    .nav-links.closing .nav-links-main,
    .nav-links.closing .nav-links-bottom {
        opacity: 0 !important;
        transform: translateX(20px) !important;
        transition: opacity 0.25s ease,
                    transform 0.25s ease;
    }
    
    .nav-links.closing > *:nth-child(1) {
        transition-delay: 0s;
    }
    
    .nav-links.closing > *:nth-child(2) {
        transition-delay: 0.05s;
    }
    
    .nav-links.closing > *:nth-child(3) {
        transition-delay: 0.1s;
    }
    
    .nav-links.closing > *:nth-child(4) {
        transition-delay: 0.15s;
    }
    
    .nav-links.closing > *:nth-child(5) {
        transition-delay: 0.2s;
    }
    
    .nav-links.closing::before {
        opacity: 0 !important;
        transition: opacity 0.2s ease;
    }
    
    /* User info avec style amélioré */
    .nav-links .user-info {
        display: flex !important;
        align-items: center !important;
        gap: 0.875rem !important;
        width: 100% !important;
        padding: 1rem 1.25rem !important;
        margin: 0 !important;
        background: transparent !important;
        border-radius: 0 !important;
        order: 1;
        border: none !important;
        color: var(--text-light);
        position: relative;
        overflow: hidden;
    }
    
    /* Avatar de l'utilisateur dans le menu */
    .nav-links .user-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
        flex-shrink: 0;
        border: 2px solid rgba(255, 0, 110, 0.3);
        box-shadow: 0 0 10px rgba(255, 0, 110, 0.2);
    }
    
    /* Placeholder pour l'avatar */
    .nav-links .user-avatar-placeholder {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        border: 2px solid rgba(255, 0, 110, 0.3);
        box-shadow: 0 0 10px rgba(255, 0, 110, 0.2);
    }
    
    .nav-links .user-avatar-placeholder span {
        font-size: 1.125rem;
        font-weight: 700;
        color: var(--white);
        text-transform: uppercase;
    }
    
    /* Pseudo de l'utilisateur */
    .nav-links .user-pseudo {
        font-size: 0.95rem !important;
        font-weight: 600;
        color: var(--text-light);
        flex: 1;
    }
    
    /* Boutons avec effets améliorés */
    .nav-links .btn {
        display: flex !important;
        width: 100% !important;
        justify-content: flex-start !important;
        align-items: center !important;
        padding: 0.875rem 1.25rem !important;
        margin: 0 !important;
        font-size: 0.875rem !important;
        font-weight: 600;
        order: 2;
        border-radius: 0 !important;
        min-height: 52px;
        text-align: left !important;
        border: none !important;
        white-space: nowrap;
        position: relative;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
        background: transparent !important;
    }
    
    .nav-links .btn:hover {
        background: transparent !important;
        transform: translateX(4px);
    }
    
    .nav-links .btn:active {
        transform: translateX(2px);
    }
    
    /* Forcer les styles des boutons à être transparents */
    .nav-links .btn-primary,
    .nav-links .btn-secondary,
    .nav-links .btn-outline {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        color: var(--text-light) !important;
    }
    
    .nav-links .btn-primary:hover,
    .nav-links .btn-secondary:hover,
    .nav-links .btn-outline:hover {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        color: var(--text-light) !important;
    }
}

/* Menu desktop - réinitialiser les styles mobile */
@media (min-width: 768px) {
    .nav-links {
        display: flex !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        flex-direction: row !important;
        justify-content: flex-end !important;
        align-items: center !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
        transition: none !important;
        z-index: auto !important;
        overflow: visible !important;
        gap: 0.75rem !important;
    }
    
    .nav-links::before {
        display: none !important;
    }
    
    .nav-links > *:not(.nav-links-main):not(.nav-links-bottom) {
        width: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .nav-links-main,
    .nav-links-bottom {
        width: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .nav-links .user-info {
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        width: auto !important;
        padding: 0 !important;
        margin-right: 0.5rem !important;
        background: transparent !important;
        border-radius: 0 !important;
        border-bottom: none !important;
        order: 0 !important;
    }
    
    /* Avatar de l'utilisateur dans le menu desktop */
    .nav-links .user-avatar {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        object-fit: cover;
        flex-shrink: 0;
        border: 2px solid rgba(255, 0, 110, 0.3);
        box-shadow: 0 0 8px rgba(255, 0, 110, 0.2);
    }
    
    /* Placeholder pour l'avatar desktop */
    .nav-links .user-avatar-placeholder {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        border: 2px solid rgba(255, 0, 110, 0.3);
        box-shadow: 0 0 8px rgba(255, 0, 110, 0.2);
    }
    
    .nav-links .user-avatar-placeholder span {
        font-size: 0.875rem;
        font-weight: 700;
        color: var(--white);
        text-transform: uppercase;
    }
    
    /* Pseudo de l'utilisateur desktop */
    .nav-links .user-pseudo {
        font-size: 0.875rem !important;
        font-weight: 500;
        color: var(--text-light);
    }
    
    .nav-links .btn {
        display: inline-flex !important;
        width: auto !important;
        padding: 1rem 1.5rem !important;
        border-radius: var(--border-radius) !important;
        border-bottom: none !important;
        order: 0 !important;
        min-height: auto !important;
    }
}

.user-info {
    color: var(--text-muted);
    margin-right: 0.5rem;
    font-size: 0.85rem;
}

@media (min-width: 768px) {
    .user-info {
        font-size: 0.9rem;
        margin-right: 0.5rem;
    }
}

/* Main content */
.main-content {
    flex: 1;
    padding: 1rem 0;
}

@media (min-width: 768px) {
    .main-content {
        padding: 2rem 0;
    }
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 2rem 0;
    background: transparent;
    border-radius: var(--border-radius-lg);
    margin: 1rem 0 2rem;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero-section {
        padding: 5rem 0;
        margin: 2rem 0 4rem;
    }
}

.hero-section::before {
    display: none;
}

.hero-title {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 0, 110, 0.3);
    position: relative;
    z-index: 1;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
        margin-bottom: 1rem;
    }
}

.hero-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.4rem;
        margin-bottom: 3rem;
        padding: 0;
    }
}

/* Action Cards */
.action-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 0 0.5rem;
}

@media (min-width: 768px) {
    .action-cards {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
        margin-top: 3rem;
        padding: 0;
    }
}

.card {
    background: rgba(20, 20, 32, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: none;
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .card {
        padding: 2.5rem;
    }
}

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

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    background: rgba(20, 20, 32, 0.5);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(255, 0, 110, 0.3));
    transition: var(--transition);
}

@media (min-width: 768px) {
    .card-icon {
        font-size: 4rem;
        margin-bottom: 1.5rem;
    }
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 20px rgba(255, 0, 110, 0.6));
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 700;
}

@media (min-width: 768px) {
    .card h3 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
}

.card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .card p {
        margin-bottom: 2rem;
        font-size: 1rem;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 48px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (min-width: 768px) {
    .btn {
        padding: 0.875rem 2rem;
        font-size: 0.9rem;
        min-height: auto;
    }
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 0, 110, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 0, 110, 0.6);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(131, 56, 236, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(131, 56, 236, 0.6);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 0, 110, 0.2);
}

.btn-outline:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    box-shadow: 0 0 25px rgba(255, 0, 110, 0.5);
    border-color: transparent;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Auth Pages */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(60vh - 2rem);
    padding: 1rem 0;
}

@media (min-width: 768px) {
    .auth-container {
        min-height: 60vh;
        padding: 2rem 0;
    }
}

.auth-card {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: none;
    border-radius: var(--border-radius-lg);
    padding: 2rem 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 480px;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .auth-card {
        padding: 3rem;
    }
}

.auth-card::before {
    display: none;
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-dark);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

@media (min-width: 768px) {
    .auth-card h2 {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }
}

.auth-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(10, 10, 15, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    font-size: 1rem;
    color: var(--text-light);
    transition: var(--transition);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    min-height: 48px;
    font-family: inherit;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ff006e' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 0, 110, 0.15);
    background: rgba(10, 10, 15, 0.8);
}

.auth-links {
    text-align: center;
    margin-top: 2rem;
}

.auth-links p {
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.auth-links a:hover {
    color: var(--secondary-color);
}

.auth-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background: var(--primary-color);
    transition: var(--transition);
}

.auth-links a:hover::after {
    width: 100%;
}

/* Auth Divider */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0 1.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-divider span {
    padding: 0 1rem;
}

/* Google Button */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem;
    background: #ffffff;
    color: #3c4043;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    margin-bottom: 1.5rem;
}

.btn-google:hover {
    background: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.btn-google:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.btn-google svg {
    flex-shrink: 0;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .alert {
        padding: 1.25rem;
        font-size: 1rem;
    }
}

.alert-error {
    background-color: rgba(255, 0, 110, 0.1);
    color: #ff6b9d;
    border-color: var(--error-color);
}

.alert-success {
    background-color: rgba(6, 255, 165, 0.1);
    color: #06ffa5;
    border-color: var(--success-color);
}

.alert-info {
    background-color: rgba(58, 134, 255, 0.1);
    color: var(--info-color);
    border-color: var(--info-color);
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .page-header {
        margin-bottom: 3rem;
    }
}

.page-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .page-header h1 {
        font-size: 3rem;
        margin-bottom: 0.75rem;
    }
}

.page-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

@media (min-width: 768px) {
    .page-header p {
        font-size: 1.2rem;
    }
}

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
}

.dashboard-card {
    background: var(--dark-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .dashboard-card {
        padding: 2.5rem;
    }
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.dashboard-card:hover::before {
    transform: scaleX(1);
}

.dashboard-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: var(--primary-color);
}

.dashboard-card h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 700;
}

.dashboard-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* Carte Explorer mise en avant sur mobile */
@media (max-width: 767px) {
    .dashboard-grid {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .dashboard-card-explore {
        order: -1;
        background: linear-gradient(135deg, rgba(20, 20, 32, 0.95) 0%, rgba(10, 10, 15, 0.98) 100%);
        background-image: url('../maps/france-departments-real.svg');
        background-size: contain;
        background-position: center bottom;
        background-repeat: no-repeat;
        background-blend-mode: overlay;
        padding: 2rem 1.5rem !important;
        min-height: 320px;
        border: 2px solid var(--primary-color);
        box-shadow: 0 8px 30px rgba(255, 0, 110, 0.3),
                    0 0 40px rgba(131, 56, 236, 0.2);
        position: relative;
        overflow: hidden;
    }
    
    .dashboard-card-explore::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, 
            rgba(20, 20, 32, 0.85) 0%, 
            rgba(10, 10, 15, 0.9) 50%,
            rgba(20, 20, 32, 0.85) 100%);
        z-index: 0;
        pointer-events: none;
    }
    
    .dashboard-card-explore > * {
        position: relative;
        z-index: 1;
    }
    
    .dashboard-card-explore h3 {
        font-size: 2rem !important;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        margin-bottom: 1rem;
        text-shadow: 0 0 20px rgba(255, 0, 110, 0.5);
        filter: drop-shadow(0 2px 4px rgba(255, 0, 110, 0.3));
    }
    
    .dashboard-card-explore p {
        color: var(--text-light) !important;
        font-size: 1rem;
        margin-bottom: 1.5rem;
        font-weight: 500;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    }
    
    .dashboard-card-explore .btn {
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
        color: var(--white) !important;
        box-shadow: 0 4px 20px rgba(255, 0, 110, 0.5),
                    0 0 30px rgba(131, 56, 236, 0.3);
        font-size: 1rem;
        padding: 1rem 2rem !important;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        border: 2px solid rgba(255, 0, 110, 0.5);
        position: relative;
        overflow: hidden;
    }
    
    .dashboard-card-explore .btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.5s ease;
    }
    
    .dashboard-card-explore .btn:hover::before {
        left: 100%;
    }
    
    .dashboard-card-explore .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 30px rgba(255, 0, 110, 0.7),
                    0 0 40px rgba(131, 56, 236, 0.5);
    }
    
    /* Carte Battle Pass spéciale */
    .dashboard-card-special {
        background: linear-gradient(135deg, rgba(0, 123, 255, 0.15) 0%, rgba(138, 43, 226, 0.15) 100%);
        border: 2px solid rgba(0, 123, 255, 0.5);
        position: relative;
        overflow: hidden;
    }
    
    .dashboard-card-special::before {
        content: '✨';
        position: absolute;
        top: -10px;
        right: -10px;
        font-size: 4rem;
        opacity: 0.1;
        animation: sparkle 2s ease-in-out infinite;
    }
    
    @keyframes sparkle {
        0%, 100% {
            transform: rotate(0deg) scale(1);
        }
        50% {
            transform: rotate(15deg) scale(1.1);
        }
    }
    
    .btn-gradient {
        background: linear-gradient(135deg, #007bff 0%, #8a2be2 100%);
        color: white;
        border: none;
        transition: all 0.3s ease;
    }
    
    .btn-gradient:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(0, 123, 255, 0.4);
    }
    
    /* Autres cartes plus petites sur mobile */
    .dashboard-card:not(.dashboard-card-explore) {
        padding: 1.25rem !important;
        min-height: auto;
    }
    
    .dashboard-card:not(.dashboard-card-explore) h3 {
        font-size: 1.5rem;
    }
    
    .dashboard-card:not(.dashboard-card-explore) p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
}

/* Rassemblements Grid */
.rassemblements-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .rassemblements-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 2rem;
        margin-bottom: 3rem;
    }
}

.rasso-card {
    background: var(--dark-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .rasso-card {
        padding: 2rem;
    }
}

.rasso-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.rasso-card:hover::before {
    transform: scaleX(1);
}

.rasso-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: var(--primary-color);
}

.rasso-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .rasso-card h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
}

.rasso-date,
.rasso-location {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.rasso-description {
    margin: 1.25rem 0;
    color: var(--text-light);
    line-height: 1.7;
}

.rasso-creator {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.rasso-creator:hover {
    color: var(--text-light);
}

.rasso-creator span {
    flex: 1;
}

.rasso-creator:hover span {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Rassemblements passés */
.rasso-card-past {
    opacity: 0.7;
    position: relative;
}

.rasso-card-past::before {
    background: linear-gradient(90deg, #6c757d 0%, #495057 100%) !important;
}

.rasso-card-past:hover {
    opacity: 0.85;
    border-color: #6c757d;
}

.rasso-card-past h3 {
    color: var(--text-muted);
}

.past-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(108, 117, 125, 0.9);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

.like-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 2rem 1.5rem;
    color: var(--text-muted);
    background: var(--dark-card);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

@media (min-width: 768px) {
    .empty-state {
        padding: 4rem;
        min-height: 400px;
    }
}

.empty-state h2 {
    color: var(--text-light) !important;
    margin-bottom: 1rem !important;
    font-size: 1.25rem !important;
    font-weight: 600;
    display: block;
}

@media (min-width: 768px) {
    .empty-state h2 {
        font-size: 1.5rem !important;
    }
}

.empty-state p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-muted) !important;
    line-height: 1.6;
    display: block;
}

@media (min-width: 768px) {
    .empty-state p {
        font-size: 1.1rem;
    }
}

.empty-state a {
    color: var(--primary-color) !important;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.empty-state a:hover {
    text-decoration: underline;
    color: var(--secondary-color);
}

/* Icône pour empty state */
.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    opacity: 0.6;
    display: block;
    line-height: 1;
}

@media (min-width: 768px) {
    .empty-state-icon {
        font-size: 4rem;
    }
}

.empty-state-title {
    color: var(--text-light) !important;
    margin-bottom: 1rem !important;
    font-size: 1.25rem !important;
    font-weight: 600;
    display: block;
}

@media (min-width: 768px) {
    .empty-state-title {
        font-size: 1.5rem !important;
    }
}

.empty-state-text {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-muted) !important;
    line-height: 1.6;
    display: block;
}

@media (min-width: 768px) {
    .empty-state-text {
        font-size: 1.1rem;
    }
}

/* Visitor Info */
.visitor-info {
    margin-bottom: 2rem;
}

.visitor-cta {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--dark-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .visitor-cta {
        padding: 3rem;
        margin-top: 2rem;
    }
}

.visitor-cta p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1rem;
}

@media (min-width: 768px) {
    .visitor-cta p {
        font-size: 1.2rem;
    }
}

/* Footer */
.footer {
    background: var(--darker-bg);
    color: var(--text-muted);
    text-align: center;
    padding: 1.5rem 0;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .footer {
        padding: 2.5rem 0;
        font-size: 1rem;
    }
}

/* Responsive - Règles supplémentaires pour mobile */
@media (max-width: 767px) {
    .map-card h3 {
        font-size: 1.25rem;
    }
    
    .results-card h3 {
        font-size: 1.5rem;
    }
    
    .rasso-card h4 {
        font-size: 1.1rem;
    }
}

/* Animations */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 0, 110, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 0, 110, 0.6);
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
}

/* Form Container */
.form-container {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

@media (min-width: 768px) {
    .form-container {
        padding: 2rem 0;
    }
}

.form-card {
    background: var(--dark-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 900px;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .form-card {
        padding: 3rem;
    }
}

.form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
}

.create-form {
    margin-top: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

/* Déjà défini plus haut dans le fichier */

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 0, 110, 0.15);
    background: rgba(10, 10, 15, 0.8);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-help {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.form-help a {
    color: var(--primary-color);
    text-decoration: none;
}

.form-help a:hover {
    text-decoration: underline;
}

.form-section-divider {
    margin: 2.5rem 0 1.5rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.form-section-divider h3 {
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-section-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.form-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

/* Actions Bar */
.actions-bar {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: flex-end;
}

@media (min-width: 768px) {
    .actions-bar {
        margin-bottom: 2rem;
    }
}

/* Rasso Card Header */
.rasso-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.rasso-header h3 {
    margin: 0;
    flex: 1;
}

.rasso-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    display: inline-block;
    padding: 0.5rem;
    background: var(--darker-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition);
    cursor: pointer;
}

.btn-icon:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.rasso-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.rasso-footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.rasso-coords {
    font-family: monospace;
}

.rasso-footer-actions {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.rasso-footer-actions .rasso-creator {
    margin: 0;
    padding: 0;
    border: none;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.rasso-footer-actions .rasso-creator:hover span {
    color: var(--primary-color);
    text-decoration: underline;
}

.creator-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
    transition: var(--transition);
}

.rasso-creator:hover .creator-avatar {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 0, 110, 0.3);
}

.creator-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
    transition: var(--transition);
}

.rasso-creator:hover .creator-avatar-placeholder {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 0, 110, 0.3);
}

.creator-avatar-placeholder span {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
}

/* Bouton de like */
.like-button {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-light);
    font-size: 0.9rem;
    white-space: nowrap;
}

.like-button:hover {
    background: var(--darker-bg);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.like-button:active {
    transform: translateY(0);
}

.like-button.liked {
    border-color: var(--primary-color);
    background: rgba(255, 0, 110, 0.1);
}

.like-button.liked:hover {
    background: rgba(255, 0, 110, 0.2);
}

.like-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.like-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.like-count {
    font-weight: 600;
    color: var(--text-light);
}

.like-button.liked .like-count {
    color: var(--primary-color);
}

/* Info de like (pour les utilisateurs non connectés) */
.like-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.like-info .like-icon {
    font-size: 1.1rem;
}

.like-info .like-count {
    font-weight: 600;
}

/* Responsive pour les formulaires */
@media (max-width: 767px) {
    .rasso-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .rasso-footer {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .rasso-footer-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .like-button {
        width: 100%;
        justify-content: center;
    }
    
    .rasso-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Explore Page - Carte de France */
.explore-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (min-width: 1024px) {
    .explore-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        margin-top: 2rem;
    }
}

.map-section {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.map-card {
    background: var(--dark-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: visible;
}

.map-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-weight: 700;
    text-align: center;
}

.map-wrapper {
    background: var(--darker-bg);
    border-radius: var(--border-radius);
    padding: 0.5rem;
    overflow: visible;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

@media (min-width: 768px) {
    .map-wrapper {
        padding: 1rem;
        min-height: 500px;
        max-height: none;
        overflow: visible;
    }
}

.map-wrapper svg {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    transform-origin: center center;
}

#france-map {
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    height: auto;
    transform-origin: center center;
}

/* Cacher la ligne de séparation de la Corse et autres éléments indésirables */
#corsica_separating_line,
#france-map #corsica_separating_line {
    display: none !important;
}

.map-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--darker-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
}

.map-info p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.95rem;
}

.map-info strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* Flèche retour pour reset zoom */
.reset-zoom-arrow {
    position: absolute !important;
    top: 0.5rem !important;
    left: 0.5rem !important;
    background: var(--primary-color) !important;
    color: var(--white) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 2.5rem !important;
    height: 2.5rem !important;
    font-size: 1.5rem !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: var(--transition) !important;
    box-shadow: 0 2px 10px rgba(255, 0, 110, 0.3) !important;
    z-index: 1000 !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.reset-zoom-arrow:hover {
    background: var(--secondary-color) !important;
    transform: scale(1.1) !important;
    box-shadow: 0 4px 15px rgba(131, 56, 236, 0.5) !important;
}

.reset-zoom-arrow:active {
    transform: scale(0.95) !important;
}

.results-section {
    min-height: 500px;
}

.results-card {
    background: var(--dark-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    height: 100%;
}

.results-card h3 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
    font-weight: 700;
}

/* Events row - Afficher Rassemblements et Courses côte à côte */
.events-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 100%;
}

.events-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.events-column h4 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

/* Progression Stats */
.progression-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    border-radius: 50%;
}

.stat-content {
    flex: 1;
}

.stat-content h4 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin: 0;
    font-weight: 700;
}

.stat-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0.25rem 0 0 0;
}

.rassemblements-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.rassemblements-list .rasso-card {
    margin: 0;
    padding: 1.5rem;
}

.rassemblements-list .rasso-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 700;
}

/* Styles pour la carte SVG */
#france-map path {
    fill: #2a2a3e;
    stroke: #3a3a4e;
    stroke-width: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

#france-map path:hover {
    fill: #ff006e !important;
    stroke: #ffffff !important;
    stroke-width: 2 !important;
    filter: drop-shadow(0 0 8px rgba(255, 0, 110, 0.6)) !important;
}

#france-map path.selected {
    fill: #8338ec !important;
    stroke: #ffffff !important;
    stroke-width: 2 !important;
    filter: drop-shadow(0 0 12px rgba(131, 56, 236, 0.8)) !important;
}


/* Responsive pour la page explore */
@media (max-width: 1023px) {
    .map-section {
        position: relative;
        top: 0;
    }
    
    .rassemblements-list {
        max-height: none;
    }
    
    /* Events row sur tablette - réduire l'espace */
    .events-row {
        gap: 1.5rem;
    }
}

/* Mobile Tabs */
.mobile-tabs {
    display: none;
}

.mobile-tab-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    background: var(--dark-card);
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.mobile-tab-btn:first-child {
    border-radius: 12px 0 0 0;
}

.mobile-tab-btn:last-child {
    border-radius: 0 12px 0 0;
}

.mobile-tab-btn.active {
    background: var(--primary-color);
    color: white;
    border-bottom-color: var(--secondary-color);
}

.mobile-tab-btn:hover:not(.active) {
    background: var(--dark-bg);
}

@media (max-width: 767px) {
    /* Cacher le header de la page sur mobile par défaut */
    .page-header {
        display: none;
    }
    
    /* Afficher le header sur certaines pages en mobile */
    .explore-page .page-header,
    .container .page-header {
        display: block;
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .explore-page .page-header h1,
    .container .page-header h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .explore-page .page-header p,
    .container .page-header p {
        font-size: 0.9rem;
    }
    
    /* Cacher toutes les cartes du dashboard sauf "Explorer" */
    .dashboard-card:not(.dashboard-card-explore) {
        display: none;
    }
    
    /* Adapter la grille pour afficher seulement Explorer */
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .explore-container {
        gap: 1rem;
        margin-top: 1rem !important;
    }
    
    /* Cacher la carte de France sur mobile par défaut */
    .map-section {
        display: none;
    }
    
    /* Afficher la carte uniquement sur la page Explorer en mobile */
    .explore-page .map-section {
        display: block;
        position: relative;
        top: 0;
        margin-bottom: 1.5rem;
    }
    
    .explore-page .map-card {
        padding: 1rem;
    }
    
    .explore-page .map-card h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .explore-page .map-wrapper {
        min-height: auto;
        max-height: none;
        padding: 0.5rem;
        overflow: visible;
    }
    
    .explore-page .map-info {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
    
    /* Afficher les onglets sur mobile */
    .mobile-tabs {
        display: flex;
        gap: 0;
        margin-bottom: 1rem;
        border-radius: 12px 12px 0 0;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    /* Masquer les sections non actives */
    .mobile-tab-content {
        display: none;
    }
    
    .mobile-tab-content.active {
        display: block;
    }
    
    .results-section {
        min-height: auto;
        margin-top: 0;
    }
    
    .results-card {
        padding: 1.5rem;
    }
    
    .results-card h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    /* Events row responsive - garder 2 colonnes sur mobile */
    .events-row {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    /* Adapter les titres des colonnes sur mobile */
    .events-column h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    /* Adapter les cartes d'événements sur mobile */
    .rassemblements-list .rasso-card {
        padding: 0.75rem;
    }
    
    .rassemblements-list .rasso-card h4 {
        font-size: 0.9rem;
    }
    
    .rassemblements-list .rasso-card p {
        font-size: 0.85rem;
    }
    
    /* S'assurer que les résultats sont visibles */
    .results-card .rasso-card {
        margin-bottom: 1rem;
    }
    
    /* Progression stats sur mobile */
    .progression-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-icon {
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
    }
    
    .stat-content h4 {
        font-size: 1.5rem;
    }
    
    .stat-content p {
        font-size: 0.85rem;
    }
    
    /* Animation pour l'apparition des résultats */
    .results-card > * {
        animation: fadeInUp 0.4s ease-out;
    }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Date Time Picker Styles */
.datetime-picker-wrapper {
    position: relative;
    width: 100%;
}

.datetime-picker-button {
    width: 100%;
    padding: 1rem;
    background: var(--darker-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-light);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    min-height: 48px;
    touch-action: manipulation;
}

.datetime-picker-button:hover {
    border-color: var(--primary-color);
    background: var(--dark-bg);
    box-shadow: 0 0 0 3px rgba(255, 0, 110, 0.2);
}

.datetime-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.datetime-picker {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: var(--dark-card);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    min-width: 100%;
    width: 100%;
}

@media (min-width: 768px) {
    .datetime-picker {
        padding: 2rem;
        min-width: 800px;
        width: auto;
    }
}

.datetime-picker-content {
    display: flex;
    flex-direction: row;
    gap: 0;
    align-items: stretch;
}

/* Calendrier */
.calendar-container {
    flex: 0 0 auto;
    min-width: 100%;
    max-width: 100%;
    padding-right: 0;
    margin-right: 0;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .calendar-container {
        min-width: 320px;
        max-width: 200px;
        padding-right: 3rem;
        margin-right: 2rem;
    }
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.calendar-nav-btn {
    background: var(--darker-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-light);
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
}

.calendar-nav-btn:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--text-dark);
}

.calendar-month-year {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    width: 100%;
}

.calendar-weekday {
    text-align: center;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 0.5rem 0.25rem;
    min-width: 0;
    white-space: nowrap;
    overflow: visible;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    width: 100%;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-light);
    font-weight: 500;
    background: var(--darker-bg);
    border: 2px solid transparent;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.calendar-day:hover:not(.calendar-day-past):not(.calendar-day-other) {
    border-color: var(--primary-color);
    background: var(--dark-bg);
    transform: scale(1.1);
}

.calendar-day-today {
    border-color: var(--accent-color) !important;
    background: var(--dark-bg) !important;
    font-weight: 700;
}

.calendar-day-selected {
    background: var(--primary-color) !important;
    color: var(--text-dark) !important;
    border-color: var(--primary-color) !important;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(255, 0, 110, 0.5);
}

.calendar-day-past {
    opacity: 0.3;
    cursor: not-allowed;
}

.calendar-day-other {
    opacity: 0.3;
    cursor: default;
}

/* Time Picker */
.time-picker-container {
    border-left: none;
    border-top: 2px solid var(--border-color);
    padding-left: 0;
    margin-left: 0;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    min-width: 100%;
    display: block;
    overflow: visible;
}

@media (min-width: 768px) {
    .time-picker-container {
        border-left: 2px solid var(--border-color);
        border-top: none;
        padding-left: 3rem;
        margin-left: 2rem;
        padding-top: 0;
        margin-top: 0;
        min-width: 280px;
        display: flex;
        flex-direction: column;
        flex: 0 0 auto;
    }
}

.time-picker-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.time-wheels {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}

.time-wheel-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-wheel-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.time-wheel-wrapper {
    position: relative;
    height: 200px;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

/* Indicateur fixe au centre (encadré rose) */
.time-wheel-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 75px;
    height: 55px;
    background: rgba(255, 0, 110, 0.05);
    border: 3px solid var(--primary-color);
    border-radius: var(--border-radius);
    box-shadow: 0 0 25px rgba(255, 0, 110, 0.9), 0 0 50px rgba(255, 0, 110, 0.5);
    z-index: 1;
    pointer-events: none;
    backdrop-filter: blur(2px);
}

.time-wheel-wrapper::before,
.time-wheel-wrapper::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 80px;
    pointer-events: none;
    z-index: 0;
}

.time-wheel-wrapper::before {
    top: 0;
    background: linear-gradient(to bottom, var(--dark-card) 0%, transparent 100%);
}

.time-wheel-wrapper::after {
    bottom: 0;
    background: linear-gradient(to top, var(--dark-card) 0%, transparent 100%);
}

.time-wheel {
    width: 80px;
    height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    background: transparent;
    padding: 75px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-padding: 75px 0;
    position: relative;
    z-index: 2;
    -webkit-overflow-scrolling: touch;
}

.time-wheel::-webkit-scrollbar {
    display: none;
}

.time-wheel-item {
    height: 50px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-light) !important;
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    padding: 0.5rem 0.5rem;
    box-sizing: border-box;
    margin: 0;
    line-height: 1;
    width: 100%;
    opacity: 0.8;
    transform: scale(0.98);
    background: transparent;
}

.time-wheel-item:hover {
    color: var(--primary-color) !important;
    opacity: 0.9;
    transform: scale(1.02);
    background: rgba(255, 0, 110, 0.05);
}


/* Style pour l'item au centre via JavaScript */
.time-wheel-item-selected {
    color: var(--primary-color) !important;
    font-weight: 800 !important;
    font-size: 1.4rem !important;
    opacity: 1 !important;
    transform: scale(1.15) !important;
    z-index: 6 !important;
    position: relative !important;
    height: 50px !important;
    min-height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0.5rem 0.5rem !important;
    line-height: 1 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: rgba(255, 0, 110, 0.1) !important;
    border: 2px solid var(--primary-color) !important;
    border-radius: 8px !important;
    box-shadow: 0 0 15px rgba(255, 0, 110, 0.4) !important;
}

/* Actions du picker */
.datetime-picker-actions {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 2px solid var(--border-color);
    gap: 0.5rem;
}

@media (max-width: 767px) {
    .datetime-picker-actions {
        flex-direction: row;
        width: 100%;
    }
}

.datetime-select-btn {
    padding: 0.75rem 2rem;
    background: var(--primary-color);
    color: var(--text-dark);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 0 15px rgba(255, 0, 110, 0.3);
}

.datetime-select-btn:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 0 20px rgba(131, 56, 236, 0.5);
    transform: translateY(-2px);
}

.datetime-select-btn:active {
    transform: translateY(0);
}

/* Cacher l'input datetime-local original */
.datetime-picker-wrapper input[type="datetime-local"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

/* Responsive Date Time Picker */
@media (max-width: 767px) {
    .datetime-picker {
        position: fixed;
        left: 0;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        max-height: 90vh;
        overflow-y: auto;
        border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
        min-width: auto;
        width: 100%;
        max-width: 100%;
    }
    
    .datetime-picker-content {
        flex-direction: column;
    }
    
    .calendar-container {
        padding-right: 0;
        margin-right: 0;
        max-width: 100%;
        min-width: auto;
    }
    
    .time-picker-container {
        border-left: none;
        border-top: 2px solid var(--border-color);
        padding-left: 0;
        margin-left: 0;
        padding-top: 1.5rem;
        margin-top: 1.5rem;
        min-width: auto;
    }
    
    .time-wheels {
        gap: 1rem;
    }
    
    .time-wheel {
        width: 60px;
        height: 150px;
    }
    
    .time-wheel-wrapper {
        height: 150px;
    }
    
    .calendar-weekday {
        font-size: 0.7rem;
        padding: 0.25rem 0.1rem;
    }
    
    .calendar-day {
        font-size: 0.9rem;
    }
}

/* Page Profil */
.profile-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.profile-card {
    background: var(--dark-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
}

.profile-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: var(--primary-color);
}

.profile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    position: relative;
}

.profile-card-header .btn-icon {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    flex-shrink: 0;
}

.profile-card-header h2 {
    font-size: 1.75rem;
    margin: 0;
    margin-right: 3rem;
    color: var(--text-dark);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex: 1;
}

.profile-card h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.profile-avatar-container {
    position: relative;
    padding: 8px;
    border-radius: 50%;
    margin-bottom: 1rem;
    animation: levelGlow 3s ease-in-out infinite;
}

/* Aile droite pour niveau 9 */
.profile-avatar-level-9 .profile-avatar,
.profile-avatar-level-9 .profile-avatar-placeholder {
    box-shadow: 
        70px 0 0 -15px rgba(255, 215, 0, 0.3),
        85px -5px 0 -10px rgba(255, 0, 255, 0.3),
        95px -15px 0 -5px rgba(0, 255, 255, 0.3),
        100px -25px 0 0px rgba(255, 215, 0, 0.3),
        95px 20px 0 -5px rgba(255, 0, 255, 0.3),
        85px 15px 0 -10px rgba(0, 255, 255, 0.3),
        0 0 12px rgba(0, 0, 0, 0.2);
}

/* Aile droite pour niveau 10 */
.profile-avatar-level-10 .profile-avatar,
.profile-avatar-level-10 .profile-avatar-placeholder {
    box-shadow: 
        90px 0 0 -10px rgba(255, 255, 255, 0.5),
        105px -10px 0 -5px rgba(255, 215, 0, 0.6),
        115px -25px 0 0px rgba(255, 0, 255, 0.5),
        120px -40px 0 5px rgba(0, 255, 255, 0.4),
        115px 30px 0 0px rgba(255, 0, 255, 0.5),
        105px 20px 0 -5px rgba(255, 215, 0, 0.6),
        0 0 12px rgba(0, 0, 0, 0.2);
}

/* Cadres de niveau avec motifs uniques */
.profile-avatar-level-1 {
}

/* Niveau 2 - Légères étincelles */
.profile-avatar-level-2 {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    animation: levelPulse 2s ease-in-out infinite;
}

.profile-avatar-level-2::before {
    content: '✨';
    position: absolute;
    top: -10px;
    right: 20%;
    font-size: 1.2rem;
    animation: sparkle 2s ease-in-out infinite;
}

/* Niveau 3 - Étoiles multiples */
.profile-avatar-level-3 {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.5);
    border: 3px solid rgba(16, 185, 129, 0.3);
}

.profile-avatar-level-3::before,
.profile-avatar-level-3::after {
    content: '⭐';
    position: absolute;
    font-size: 1.3rem;
    animation: float 3s ease-in-out infinite;
}

.profile-avatar-level-3::before {
    top: -10px;
    left: 15%;
}

.profile-avatar-level-3::after {
    top: -10px;
    right: 15%;
    animation-delay: 1.5s;
}

/* Niveau 4 - Flammes */
.profile-avatar-level-4 {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.5);
    border: 4px solid rgba(245, 158, 11, 0.4);
    animation: levelRotate 4s linear infinite;
}

.profile-avatar-level-4::before,
.profile-avatar-level-4::after {
    content: '🔥';
    position: absolute;
    font-size: 1.5rem;
    animation: flicker 1.5s ease-in-out infinite;
}

.profile-avatar-level-4::before {
    bottom: -5px;
    left: 10%;
}

.profile-avatar-level-4::after {
    bottom: -5px;
    right: 10%;
    animation-delay: 0.75s;
}

/* Niveau 5 - Éclairs et énergie */
.profile-avatar-level-5 {
    background: 
        linear-gradient(45deg, #f59e0b 0%, #ef4444 25%, #8b5cf6 50%, #3b82f6 75%, #f59e0b 100%);
    background-size: 300% 300%;
    box-shadow: 0 0 35px rgba(139, 92, 246, 0.6);
    border: 4px solid rgba(255, 255, 255, 0.3);
    animation: levelGradient 3s ease infinite;
}

.profile-avatar-level-5::before,
.profile-avatar-level-5::after {
    content: '⚡';
    position: absolute;
    font-size: 1.8rem;
    animation: lightning 1s ease-in-out infinite;
}

.profile-avatar-level-5::before {
    top: 50%;
    left: -20px;
    transform: translateY(-50%) rotate(-20deg);
}

.profile-avatar-level-5::after {
    top: 50%;
    right: -20px;
    transform: translateY(-50%) rotate(20deg);
    animation-delay: 0.5s;
}

/* Niveau 6 - Ailes d'énergie */
.profile-avatar-level-6 {
    background: 
        conic-gradient(from 0deg, #8b5cf6, #ec4899, #f59e0b, #10b981, #3b82f6, #8b5cf6);
    box-shadow: 0 0 40px rgba(236, 72, 153, 0.7), inset 0 0 20px rgba(255, 255, 255, 0.2);
    border: 5px solid rgba(255, 255, 255, 0.4);
    animation: levelRotate 3s linear infinite;
}

.profile-avatar-level-6::before,
.profile-avatar-level-6::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 60px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.6), rgba(236, 72, 153, 0.6));
    border-radius: 50% 0 0 50%;
    transform: translateY(-50%);
    animation: wingFlap 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.8);
}

.profile-avatar-level-6::before {
    left: -35px;
}

.profile-avatar-level-6::after {
    right: -35px;
    border-radius: 0 50% 50% 0;
    animation-delay: 1s;
}

/* Niveau 7 - Couronne et ailes dorées */
.profile-avatar-level-7 {
    background: 
        linear-gradient(135deg, #ffd700 0%, #ffed4e 25%, #ffd700 50%, #ffed4e 75%, #ffd700 100%);
    background-size: 200% 200%;
    box-shadow: 
        0 0 40px rgba(255, 215, 0, 0.8),
        0 0 60px rgba(255, 215, 0, 0.5),
        inset 0 0 30px rgba(255, 255, 255, 0.3);
    border: 5px solid rgba(255, 215, 0, 0.6);
    animation: levelShine 2s ease-in-out infinite;
}

.profile-avatar-level-7::before {
    content: '👑';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem;
    animation: crown 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
}

.profile-avatar-level-7::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, transparent 40%, rgba(255, 215, 0, 0.1) 50%, transparent 60%);
    animation: halo 4s linear infinite;
    pointer-events: none;
}

/* Niveau 8 - Ailes angéliques + particules */
.profile-avatar-level-8 {
    background: 
        conic-gradient(from 0deg, 
            #ff0080, #ff8c00, #40e0d0, #ff0080, 
            #9400d3, #ff1493, #00ced1, #ff0080);
    box-shadow: 
        0 0 50px rgba(255, 0, 128, 0.8),
        0 0 70px rgba(64, 224, 208, 0.6),
        inset 0 0 40px rgba(255, 255, 255, 0.4);
    border: 6px double rgba(255, 255, 255, 0.6);
    animation: levelRotate 2s linear infinite, levelPulse 1.5s ease-in-out infinite;
}

.profile-avatar-level-8::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -50px;
    width: 60px;
    height: 80px;
    background: linear-gradient(135deg, 
        rgba(255, 0, 128, 0.4), 
        rgba(148, 0, 211, 0.4),
        rgba(64, 224, 208, 0.4));
    clip-path: polygon(100% 50%, 0 0, 30% 50%, 0 100%);
    transform: translateY(-50%);
    animation: angelWingLeft 3s ease-in-out infinite;
    filter: blur(2px) drop-shadow(0 0 15px rgba(255, 0, 128, 0.8));
}

.profile-avatar-level-8::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -50px;
    width: 60px;
    height: 80px;
    background: linear-gradient(-135deg, 
        rgba(255, 0, 128, 0.4), 
        rgba(148, 0, 211, 0.4),
        rgba(64, 224, 208, 0.4));
    clip-path: polygon(0 50%, 100% 0, 70% 50%, 100% 100%);
    transform: translateY(-50%);
    animation: angelWingRight 3s ease-in-out infinite;
    filter: blur(2px) drop-shadow(0 0 15px rgba(255, 0, 128, 0.8));
}

/* Niveau 9 - Ailes divines + fumée cosmique */
.profile-avatar-level-9 {
    background: 
        conic-gradient(from 0deg at 50% 50%,
            #ff0080 0deg,
            #ff8c00 45deg,
            #ffd700 90deg,
            #00ff00 135deg,
            #00ffff 180deg,
            #0080ff 225deg,
            #8000ff 270deg,
            #ff0080 315deg,
            #ff0080 360deg);
    box-shadow: 
        0 0 60px rgba(255, 215, 0, 1),
        0 0 80px rgba(255, 0, 255, 0.8),
        0 0 100px rgba(0, 255, 255, 0.6),
        inset 0 0 50px rgba(255, 255, 255, 0.5);
    border: 7px double #ffd700;
    animation: levelRotate 2s linear infinite, levelShine 1s ease-in-out infinite;
}

.profile-avatar-level-9::before {
    content: '💨';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8rem;
    opacity: 0.15;
    animation: smoke 5s ease-in-out infinite;
    filter: blur(5px);
}

.profile-avatar-level-9::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -70px;
    width: 80px;
    height: 100px;
    background: 
        radial-gradient(ellipse at center, 
            rgba(255, 215, 0, 0.5) 0%,
            rgba(255, 0, 255, 0.4) 30%,
            rgba(0, 255, 255, 0.3) 60%,
            transparent 100%);
    clip-path: polygon(100% 10%, 80% 0, 60% 15%, 50% 5%, 40% 20%, 30% 10%, 20% 30%, 10% 25%, 0 50%, 10% 75%, 20% 70%, 30% 90%, 40% 80%, 50% 95%, 60% 85%, 80% 100%, 100% 90%, 90% 50%);
    transform: translateY(-50%);
    animation: divineWingLeft 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 1));
}

/* Niveau 10 - ULTIMATE: Ailes divines massives + aura divine + particules */
.profile-avatar-level-10 {
    background: 
        radial-gradient(circle at 30% 30%, 
            rgba(255, 255, 255, 0.8) 0%, 
            transparent 50%),
        conic-gradient(from 0deg at 50% 50%,
            #ff0080 0deg,
            #ff4500 30deg,
            #ffd700 60deg,
            #00ff00 90deg,
            #00ffff 120deg,
            #0080ff 150deg,
            #8000ff 180deg,
            #ff00ff 210deg,
            #ff0080 240deg,
            #ff4500 270deg,
            #ffd700 300deg,
            #00ff00 330deg,
            #ff0080 360deg);
    box-shadow: 
        0 0 70px rgba(255, 215, 0, 1),
        0 0 100px rgba(255, 0, 255, 1),
        0 0 130px rgba(0, 255, 255, 0.8),
        inset 0 0 60px rgba(255, 255, 255, 0.6),
        inset 0 0 30px rgba(255, 215, 0, 0.8);
    border: 8px double #ffd700;
    filter: drop-shadow(0 0 20px #ffd700);
    animation: levelRotate 1.5s linear infinite, levelShine 0.8s ease-in-out infinite, levelPulse 1.2s ease-in-out infinite;
}

.profile-avatar-level-10::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -90px;
    width: 100px;
    height: 130px;
    background: 
        radial-gradient(ellipse at center, 
            rgba(255, 255, 255, 0.8) 0%,
            rgba(255, 215, 0, 0.7) 20%,
            rgba(255, 0, 255, 0.5) 40%,
            rgba(0, 255, 255, 0.4) 60%,
            transparent 100%);
    clip-path: polygon(100% 5%, 95% 0, 85% 8%, 75% 3%, 65% 12%, 55% 7%, 45% 18%, 35% 12%, 25% 25%, 15% 20%, 5% 35%, 0 50%, 5% 65%, 15% 80%, 25% 75%, 35% 88%, 45% 82%, 55% 93%, 65% 88%, 75% 97%, 85% 92%, 95% 100%, 100% 95%, 92% 50%);
    transform: translateY(-50%);
    animation: ultimateWingLeft 2.5s ease-in-out infinite;
    filter: 
        drop-shadow(0 0 30px rgba(255, 215, 0, 1))
        drop-shadow(0 0 50px rgba(255, 0, 255, 0.8));
}

.profile-avatar-level-10::after {
    content: '✨💫⭐';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    letter-spacing: 10px;
    animation: divine 2s ease-in-out infinite;
    text-shadow: 
        0 0 20px rgba(255, 215, 0, 1),
        0 0 40px rgba(255, 0, 255, 0.8),
        0 0 60px rgba(0, 255, 255, 0.6);
}

/* Animations pour les cadres */
@keyframes levelGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

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

@keyframes levelRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

@keyframes levelShine {
    0%, 100% { filter: brightness(1) drop-shadow(0 0 20px rgba(255, 215, 0, 0.5)); }
    50% { filter: brightness(1.2) drop-shadow(0 0 40px rgba(255, 215, 0, 1)); }
}

/* Animations pour effets décoratifs */
@keyframes sparkle {
    0%, 100% { 
        opacity: 0.3;
        transform: translateY(0) scale(0.8);
    }
    50% { 
        opacity: 1;
        transform: translateY(-5px) scale(1.2);
    }
}

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

@keyframes flicker {
    0%, 100% { 
        opacity: 0.8;
        transform: scale(1) translateY(0);
    }
    25% { 
        opacity: 0.4;
        transform: scale(0.9) translateY(-3px);
    }
    50% { 
        opacity: 1;
        transform: scale(1.1) translateY(-5px);
    }
    75% { 
        opacity: 0.6;
        transform: scale(0.95) translateY(-2px);
    }
}

@keyframes lightning {
    0%, 90%, 100% { 
        opacity: 0.3;
        filter: brightness(1);
    }
    10%, 50% { 
        opacity: 1;
        filter: brightness(2) drop-shadow(0 0 10px #fff);
    }
}

@keyframes wingFlap {
    0%, 100% { 
        transform: translateY(-50%) scaleX(1);
        opacity: 0.6;
    }
    50% { 
        transform: translateY(-50%) scaleX(1.2);
        opacity: 0.9;
    }
}

@keyframes crown {
    0%, 100% { 
        transform: translateX(-50%) translateY(0) rotate(0deg);
    }
    50% { 
        transform: translateX(-50%) translateY(-10px) rotate(-5deg);
    }
}

@keyframes halo {
    0% { 
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.3;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.6;
    }
    100% { 
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.3;
    }
}

@keyframes angelWingLeft {
    0%, 100% { 
        transform: translateY(-50%) translateX(0) scaleX(1);
        opacity: 0.6;
    }
    50% { 
        transform: translateY(-50%) translateX(-10px) scaleX(1.3);
        opacity: 0.9;
    }
}

@keyframes angelWingRight {
    0%, 100% { 
        transform: translateY(-50%) translateX(0) scaleX(1);
        opacity: 0.6;
    }
    50% { 
        transform: translateY(-50%) translateX(10px) scaleX(1.3);
        opacity: 0.9;
    }
}

@keyframes smoke {
    0% { 
        transform: translate(-50%, -50%) scale(0.8) rotate(0deg);
        opacity: 0.1;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.5) rotate(180deg);
        opacity: 0.2;
    }
    100% { 
        transform: translate(-50%, -50%) scale(0.8) rotate(360deg);
        opacity: 0.1;
    }
}

@keyframes divineWingLeft {
    0%, 100% { 
        transform: translateY(-50%) translateX(0) scaleY(1);
        opacity: 0.7;
    }
    50% { 
        transform: translateY(-50%) translateX(-15px) scaleY(1.2);
        opacity: 1;
    }
}

@keyframes ultimateWingLeft {
    0%, 100% { 
        transform: translateY(-50%) translateX(0) scale(1);
        opacity: 0.8;
    }
    50% { 
        transform: translateY(-50%) translateX(-20px) scale(1.3);
        opacity: 1;
    }
}

@keyframes divine {
    0%, 100% { 
        transform: translateX(-50%) translateY(0) scale(1);
        opacity: 0.8;
    }
    25% { 
        transform: translateX(-50%) translateY(-10px) scale(1.2);
        opacity: 1;
    }
    50% { 
        transform: translateX(-50%) translateY(0) scale(1.1);
        opacity: 0.9;
    }
    75% { 
        transform: translateX(-50%) translateY(-5px) scale(1.15);
        opacity: 1;
    }
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.profile-avatar-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.profile-avatar-placeholder span {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-dark);
    text-transform: uppercase;
}

/* Badge de niveau sur l'avatar */
.profile-level-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
    border: 3px solid white;
    z-index: 10;
}

.profile-level-badge .level-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.profile-level-badge .level-number {
    font-size: 0.75rem;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

/* Informations de niveau sous l'avatar */
.profile-level-info {
    text-align: center;
}

.profile-level-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.profile-level-xp {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
}

/* Badge de certification admin */
.admin-certification-badge {
    display: inline-block;
    margin-left: 0.5rem;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.5);
    vertical-align: middle;
}

.admin-badge-container {
    margin-top: 0.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: admin-badge-glow 2s ease-in-out infinite;
}

@keyframes admin-badge-glow {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(255, 215, 0, 0.7);
    }
}

.admin-badge-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.admin-badge-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.profile-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.profile-info-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
}

.profile-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-value {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
    transform: translateY(-4px);
}

.stat-value {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 500;
}

.stat-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.stat-link:hover {
    color: var(--secondary-color);
    transform: translateX(4px);
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .profile-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

.profile-actions .btn {
    flex: 1;
    min-width: 200px;
}

/* Avatar Upload Section */
.avatar-upload-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.current-avatar {
    margin-bottom: 0.5rem;
}

.avatar-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(255, 0, 110, 0.3);
}

.avatar-preview-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(255, 0, 110, 0.3);
}

.avatar-preview-placeholder span {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-dark);
    text-transform: uppercase;
}

.avatar-input {
    display: none;
}

.avatar-upload-section label.btn {
    cursor: pointer;
    margin: 0;
}

.avatar-upload-section .form-help {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.5rem;
}

@media (max-width: 767px) {
    .profile-avatar,
    .profile-avatar-placeholder {
        width: 120px;
        height: 120px;
    }
    
    .profile-avatar-placeholder span {
        font-size: 3rem;
    }
    
    .avatar-preview,
    .avatar-preview-placeholder {
        width: 100px;
        height: 100px;
    }
    
    .avatar-preview-placeholder span {
        font-size: 2.5rem;
    }
}

@media (max-width: 767px) {
    .profile-card {
        padding: 1.5rem;
    }
    
    .profile-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .profile-card-header h2,
    .profile-card h2 {
        font-size: 1.5rem;
    }
    
    .stat-value {
        font-size: 2.5rem;
    }
    
    .profile-actions .btn {
        width: 100%;
    }
}

/* ===============================================
   SYSTÈME DE NIVEAUX - PROGRESSION
   =============================================== */

/* Carte de niveau principal */
.level-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 123, 255, 0.3);
}

.level-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.level-icon-large {
    font-size: 5rem;
    line-height: 1;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.level-info {
    flex: 1;
}

.level-name {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: white;
}

.level-description {
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
    opacity: 0.9;
}

.level-number {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Barre de progression du niveau */
.level-progress-container {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 1.25rem;
    backdrop-filter: blur(10px);
}

.level-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.xp-current {
    color: #ffd700;
}

.xp-next {
    opacity: 0.85;
}

.level-progress-bar {
    width: 100%;
    height: 32px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.level-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 20px;
    transition: width 0.6s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-width: 50px;
}

.progress-percent {
    font-size: 0.875rem;
    font-weight: 700;
    color: #333;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.next-level-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.next-level-icon {
    font-size: 1.5rem;
}

.next-level-name {
    font-size: 0.875rem;
    font-weight: 600;
}

.next-level-name small {
    opacity: 0.8;
    font-weight: 500;
}

/* Niveau maximum atteint */
.level-max-reached {
    text-align: center;
    padding: 2rem 1rem;
    background: rgba(255, 215, 0, 0.15);
    border-radius: 12px;
}

.level-max-reached p {
    margin: 0.5rem 0;
}

.level-max-reached strong {
    color: #ffd700;
}

/* Statistiques avec XP */
.stat-card {
    position: relative;
}

.xp-earned {
    display: block;
    margin-top: 0.25rem;
    color: #ffd700;
    font-weight: 600;
    font-size: 0.75rem;
}

/* Guide d'XP */
.xp-guide {
    background: var(--card-background);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border: 2px solid rgba(0, 123, 255, 0.1);
}

.xp-guide h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.xp-guide-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.xp-guide-list li {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: rgba(0, 123, 255, 0.05);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.xp-guide-list li:last-child {
    margin-bottom: 0;
}

.xp-guide-list strong {
    color: var(--primary-color);
}

/* Grille de tous les niveaux */
.all-levels {
    margin-top: 2rem;
}

.all-levels h4 {
    color: var(--text-primary);
}

.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.level-badge {
    background: var(--card-background);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.level-badge.unlocked {
    border-color: rgba(0, 123, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.1);
}

.level-badge.locked {
    opacity: 0.4;
    filter: grayscale(100%);
}

.level-badge.current {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(0, 123, 255, 0.3);
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, rgba(0, 86, 179, 0.1) 100%);
}

.badge-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.badge-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.badge-level {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.badge-xp {
    font-size: 0.75rem;
    color: var(--text-light);
}

.current-badge-indicator {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

/* Responsive pour les cadres de niveau avatar */
@media (max-width: 768px) {
    /* Réduire la taille des ailes et effets sur mobile */
    .profile-avatar-level-6::before,
    .profile-avatar-level-6::after {
        width: 30px;
        height: 45px;
    }
    
    .profile-avatar-level-6::before {
        left: -25px;
    }
    
    .profile-avatar-level-6::after {
        right: -25px;
    }
    
    .profile-avatar-level-7::before {
        font-size: 2rem;
        top: -20px;
    }
    
    .profile-avatar-level-8::before {
        left: -35px;
        width: 45px;
        height: 60px;
    }
    
    .profile-avatar-level-8::after {
        right: -35px;
        width: 45px;
        height: 60px;
    }
    
    .profile-avatar-level-9::before {
        font-size: 6rem;
    }
    
    .profile-avatar-level-9::after {
        left: -50px;
        width: 60px;
        height: 75px;
    }
    
    .profile-avatar-level-10::before {
        left: -60px;
        width: 75px;
        height: 95px;
    }
    
    .profile-avatar-level-10::after {
        font-size: 1.5rem;
        top: -30px;
        letter-spacing: 5px;
    }
}

/* Responsive pour le système de niveaux */
@media (max-width: 768px) {
    .level-card {
        padding: 1.5rem;
    }
    
    .level-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .level-icon-large {
        font-size: 4rem;
    }
    
    .level-name {
        font-size: 1.5rem;
    }
    
    .level-progress-container {
        padding: 1rem;
    }
    
    .level-progress-bar {
        height: 28px;
    }
    
    .levels-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.75rem;
    }
    
    .level-badge {
        padding: 1rem;
    }
    
    .badge-icon {
        font-size: 2.5rem;
    }
    
    .xp-guide {
        padding: 1rem;
    }
    
    .xp-guide-list li {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .level-progress-info {
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
    }
    
    .next-level-info {
        flex-direction: column;
        text-align: center;
    }
    
    .levels-grid {
        grid-template-columns: 1fr;
    }
}

/* ===============================================
   ICÔNES D'ACCÈS RAPIDE PROGRESSION
   =============================================== */

.progression-quick-access {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    justify-content: center;
}

.progression-icon-mini {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.progression-icon-mini:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.5);
    background: linear-gradient(135deg, #0056b3 0%, var(--primary-color) 100%);
}

.progression-icon-mini:active {
    transform: translateY(-5px) scale(1.05);
}

/* Icône Battle Pass spéciale avec gradient violet/bleu */
.progression-icon-battlepass {
    background: linear-gradient(135deg, #007bff 0%, #8a2be2 100%);
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.4);
    position: relative;
    animation: battlePassGlow 2s ease-in-out infinite;
}

.progression-icon-battlepass:hover {
    background: linear-gradient(135deg, #8a2be2 0%, #007bff 100%);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.6);
}

@keyframes battlePassGlow {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(138, 43, 226, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(138, 43, 226, 0.7);
    }
}

/* ===============================================
   MODALES PROGRESSION
   =============================================== */

.modal-progression {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-progression-content {
    background: var(--card-background);
    border-radius: 20px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: slideInScale 0.3s ease;
}

.modal-progression-content-large {
    max-width: 900px;
}

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

.modal-progression-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 2px solid rgba(0, 123, 255, 0.15);
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.08) 0%, rgba(0, 86, 179, 0.08) 100%);
    border-radius: 20px 20px 0 0;
}

.modal-progression-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.modal-progression-close {
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    line-height: 1;
}

.modal-progression-close:hover {
    background: rgba(255, 0, 0, 0.1);
    color: #ef233c;
    transform: rotate(90deg);
}

.modal-progression-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

/* Scrollbar pour les modales */
.modal-progression-body::-webkit-scrollbar {
    width: 8px;
}

.modal-progression-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.modal-progression-body::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.modal-progression-body::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Styles pour le contenu des modales */
.modal-progression-body .progression-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.modal-progression-body .xp-guide-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-progression-body .xp-guide-list li {
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.05) 0%, rgba(0, 86, 179, 0.05) 100%);
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px solid rgba(0, 123, 255, 0.1);
    transition: all 0.3s ease;
}

.modal-progression-body .xp-guide-list li:hover {
    transform: translateX(5px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.modal-progression-body .xp-guide-list li:last-child {
    margin-bottom: 0;
}

.xp-guide-icon {
    font-size: 1.75rem;
    margin-right: 1rem;
}

.xp-guide-text {
    flex: 1;
    color: var(--text-primary);
    font-weight: 500;
}

.xp-guide-value {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.modal-progression-body .levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.level-badge {
    position: relative;
}

.badge-description {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    line-height: 1.4;
}

.locked-badge-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    opacity: 0.5;
}

/* Responsive pour les modales */
@media (max-width: 768px) {
    .modal-progression-content {
        width: 95%;
        max-height: 90vh;
        border-radius: 16px;
    }
    
    .modal-progression-header {
        padding: 1rem 1.25rem;
        border-radius: 16px 16px 0 0;
    }
    
    .modal-progression-header h3 {
        font-size: 1.25rem;
    }
    
    .modal-progression-body {
        padding: 1.25rem;
    }
    
    .progression-icon-mini {
        width: 45px;
        height: 45px;
        font-size: 1.35rem;
    }
    
    .modal-progression-body .progression-stats {
        grid-template-columns: 1fr;
    }
    
    .modal-progression-body .levels-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-progression-body .xp-guide-list li {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .xp-guide-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .modal-progression-content {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
    }
    
    .modal-progression-header {
        border-radius: 0;
    }
    
    .progression-icon-mini {
        width: 42px;
        height: 42px;
        font-size: 1.25rem;
    }
}

/* ========================================
   PAGE DE CHARGEMENT
   ======================================== */

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 50%, #0f0f1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    animation: fadeInUp 0.6s ease;
}

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

.loader-logo {
    margin-bottom: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

.loader-logo-img {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(255, 0, 110, 0.5));
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px rgba(255, 0, 110, 0.5));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 30px rgba(255, 0, 110, 0.7));
    }
}

.loader-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.spinner-ring:nth-child(2) {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    border-top-color: var(--secondary-color);
    animation-duration: 2s;
    animation-direction: reverse;
}

.spinner-ring:nth-child(3) {
    width: 40%;
    height: 40%;
    top: 30%;
    left: 30%;
    border-top-color: var(--accent-color);
    animation-duration: 1s;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loader-text {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: fadeTextPulse 1.5s ease-in-out infinite;
}

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

/* ========================================
   NOUVELLE PAGE D'ACCUEIL PROFESSIONNELLE
   ======================================== */

/* Hero Section Principale */
.index-hero-section {
    padding: 0;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Image de fond hero */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: slowZoom 20s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.85) 0%, rgba(20, 20, 32, 0.75) 50%, rgba(10, 10, 15, 0.85) 100%);
    backdrop-filter: blur(1px);
}

.index-hero-section .container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem 1rem;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* .hero-text-content - Wrapper pour titre et sous-titre */

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 0, 110, 0.15);
    border: 1px solid rgba(255, 0, 110, 0.4);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    animation: pulse-badge 2s ease-in-out infinite;
    backdrop-filter: blur(10px);
}

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

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

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

.hero-main-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-main-subtitle {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(255, 0, 110, 0.3);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 0, 110, 0.4);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-hero-install {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(58, 134, 255, 0.3);
}

.btn-hero-install:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(58, 134, 255, 0.4);
}

.btn-hero-install img {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    object-fit: cover;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(20, 20, 32, 0.7);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    backdrop-filter: blur(20px);
    max-width: 700px;
    margin: 0 auto;
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}


/* Section Features */
.features-section {
    padding: 6rem 0;
    background: rgba(10, 10, 15, 0.5);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--dark-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.05) 0%, rgba(131, 56, 236, 0.05) 100%);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.feature-icon svg {
    color: white;
}

.feature-title {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.feature-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

/* Section Visuelle avec img2 */
.visual-section {
    padding: 6rem 0;
    background: var(--dark-bg);
    position: relative;
}

.visual-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.visual-image-wrapper {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.visual-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
}

.visual-image-wrapper:hover .visual-image {
    transform: scale(1.05);
}

.visual-text-content {
    padding: 2rem 0;
}

.visual-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.visual-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.visual-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.visual-features-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    color: var(--text-light);
}

.visual-features-list li svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--success-color);
    stroke-width: 2.5;
}

/* How It Works Section */
.how-it-works-section {
    padding: 6rem 0;
    position: relative;
}

.steps-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.step-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.step-item:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: relative;
    z-index: 2;
    background-color: var(--dark-card);
}

.step-content {
    padding-top: 0.5rem;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.step-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.step-line {
    position: absolute;
    left: 39px;
    top: 80px;
    width: 2px;
    height: calc(100% + 3rem);
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    opacity: 0.3;
}

.step-item:last-child .step-line {
    display: none;
}

/* CTA Section avec image de fond */
.cta-section {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.cta-background-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.cta-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3);
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.4) 0%, rgba(131, 56, 236, 0.4) 100%);
    backdrop-filter: blur(2px);
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(255, 0, 110, 0.3);
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(255, 0, 110, 0.5);
}

.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .index-hero-section {
        min-height: 100vh;
        align-items: center;
    }
    
    .hero-content {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-main-title {
        font-size: 2.5rem;
    }
    
    .visual-content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .visual-image-wrapper {
        order: 2;
    }
    
    .visual-text-content {
        order: 1;
    }
}

@media (max-width: 768px) {
    /* Page d'accueil - forcer 100vh exact */
    body.landing-page-body {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    
    .main-content.landing-page-fullheight {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .index-hero-section {
        height: 100vh !important;
        height: 100dvh !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
        max-height: 100vh !important;
        max-height: 100dvh !important;
        align-items: stretch;
    }
    
    .hero-content {
        padding: 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }
    
    .hero-text-content {
        padding: 8rem 1.5rem 2rem;
        flex: 0 0 auto;
    }
    
    .hero-main-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-main-subtitle {
        font-size: 1.125rem;
        margin-bottom: 0;
    }
    
    .hero-cta-buttons {
        padding: 0 1.5rem 3rem;
        padding-bottom: calc(3rem + env(safe-area-inset-bottom));
        margin-bottom: 0;
        flex: 0 0 auto;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
        display: none;
    }
    
    .stat-divider {
        width: 40px;
        height: 1px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .step-item {
        grid-template-columns: 60px 1fr;
        gap: 1.5rem;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.25rem;
    }
    
    .step-line {
        left: 29px;
        top: 60px;
    }
    
    .visual-content-grid {
        gap: 2rem;
    }
    
    .visual-title {
        font-size: 2rem;
    }
    
    .visual-section {
        padding: 4rem 0;
    }
    
    .cta-section {
        padding: 5rem 0;
    }
}

@media (max-width: 480px) {
    /* Page d'accueil - forcer 100vh exact */
    body.landing-page-body {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    
    .main-content.landing-page-fullheight {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .index-hero-section {
        height: 100vh !important;
        height: 100dvh !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
        max-height: 100vh !important;
        max-height: 100dvh !important;
        align-items: stretch;
    }
    
    .hero-content {
        padding: 0;
        height: 100%;
        min-height: 100vh;
        min-height: -webkit-fill-available;
        justify-content: space-between;
    }
    
    .hero-text-content {
        padding: 7rem 1.5rem 2rem;
        flex: 0 0 auto;
    }
    
    .hero-main-title {
        font-size: 1.85rem;
        margin-bottom: 1rem;
        line-height: 1.2;
    }
    
    .hero-main-subtitle {
        font-size: 1.05rem;
        margin-bottom: 0;
        line-height: 1.5;
    }
    
    .hero-cta-buttons {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1.5rem 3rem;
        padding-bottom: calc(3rem + env(safe-area-inset-bottom));
        margin-bottom: 0;
        flex: 0 0 auto;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: flex-start;
        padding: 1.25rem 2rem;
        font-size: 1.1rem;
    }
    
    .hero-stats {
        display: none;
    }
    
    .features-section,
    .how-it-works-section,
    .visual-section,
    .cta-section {
        padding: 3rem 0;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        justify-content: flex-start;
    }
    
    .visual-title {
        font-size: 1.75rem;
    }
    
    .visual-description,
    .visual-features-list li {
        font-size: 1rem;
    }
}

/* ============================================
   Styles pour l'upload de photos de rassemblements
   ============================================ */

.photo-upload-container {
    margin-top: 0.5rem;
}

.photo-upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.photo-upload-item {
    position: relative;
}

.photo-upload-item input[type="file"] {
    display: none;
}

.photo-upload-label {
    display: block;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.photo-upload-label:hover {
    transform: scale(1.02);
}

.photo-preview {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Ratio 1:1 */
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.05) 0%, rgba(0, 86, 179, 0.05) 100%);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    overflow: hidden;
}

.photo-preview:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, rgba(0, 86, 179, 0.1) 100%);
}

.photo-preview .upload-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    opacity: 0.5;
}

.photo-preview .upload-text {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.875rem;
    color: var(--text-light);
    white-space: nowrap;
}

.remove-photo-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 30px;
    height: 30px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    line-height: 1;
    padding: 0;
}

.remove-photo-btn:hover {
    background: rgba(220, 53, 69, 1);
    transform: scale(1.1);
}

.form-section-title {
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.form-section-title h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* Responsive pour l'upload de photos */
@media (max-width: 768px) {
    .photo-upload-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.75rem;
    }
    
    .photo-preview .upload-icon {
        font-size: 2rem;
    }
    
    .photo-preview .upload-text {
        font-size: 0.75rem;
        bottom: 0.5rem;
    }
    
    .remove-photo-btn {
        width: 25px;
        height: 25px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .photo-upload-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Styles pour les photos existantes */
.existing-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.existing-photo-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.existing-photo-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.existing-photo-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.existing-photo-actions input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.existing-photo-actions label {
    color: white;
    font-size: 0.875rem;
    cursor: pointer;
    margin: 0;
}

@media (max-width: 768px) {
    .existing-photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .existing-photo-item img {
        height: 120px;
    }
}

/* ============================================
   Page de détails du rassemblement - Thème sombre
   ============================================ */

.view-rasso-page {
    padding: 2rem 0;
    min-height: calc(100vh - 80px);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 0.75rem 1.25rem;
    background: var(--dark-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

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

.breadcrumb span:not(:has(a)) {
    color: var(--text-light);
    font-weight: 600;
}

.view-rasso-container {
    max-width: 900px;
    margin: 0 auto;
}

.view-rasso-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Galerie de photos - Thème sombre */
.photo-gallery {
    background: var(--dark-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    position: relative;
    transition: var(--transition);
}

.photo-gallery:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.main-photo {
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: var(--darker-bg);
    position: relative;
}

.main-photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
    pointer-events: none;
}

.main-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.photo-gallery:hover .main-photo img {
    transform: scale(1.03);
}

.photo-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(10, 10, 15, 0.5);
}

.thumbnail {
    width: 100%;
    height: 85px;
    cursor: pointer;
    overflow: hidden;
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
    transition: var(--transition);
    position: relative;
}

.thumbnail:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--border-glow);
}

.thumbnail.active {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.no-photo-placeholder {
    background: var(--dark-card);
    border-radius: var(--border-radius-lg);
    padding: 4rem 2rem;
    text-align: center;
    border: 2px dashed var(--border-color);
}

.no-photo-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.no-photo-placeholder p {
    color: var(--text-muted);
    margin: 0;
}

/* Informations principales */
.rasso-main-info {
    background: var(--dark-card);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.rasso-main-info:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.rasso-header-view {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.header-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.header-left h1 {
    margin: 0;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.rasso-type-badge {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-glow);
    display: inline-block;
    width: fit-content;
}

.header-actions {
    display: flex;
    align-items: flex-start;
}

.rasso-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.meta-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem;
    background: rgba(255, 0, 110, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.meta-item:hover {
    border-color: var(--primary-color);
    background: rgba(255, 0, 110, 0.1);
}

.meta-icon {
    font-size: 1.75rem;
    line-height: 1;
}

.meta-content {
    flex: 1;
}

.meta-content strong {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-content p {
    margin: 0;
    color: var(--text-light);
    font-weight: 500;
    font-size: 1rem;
}

.rasso-description-full,
.rasso-reglement {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.rasso-description-full h3,
.rasso-reglement h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.rasso-description-full p,
.rasso-reglement p {
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
}

/* Pas de sidebar, tout dans l'accordéon */

.organizer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    padding: 1.25rem;
    background: rgba(255, 0, 110, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.organizer-info:hover {
    background: rgba(255, 0, 110, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.organizer-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    transition: var(--transition);
}

.organizer-info:hover .organizer-avatar {
    transform: scale(1.05);
}

.organizer-avatar-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    border: 2px solid var(--primary-color);
    transition: var(--transition);
}

.organizer-info:hover .organizer-avatar-placeholder {
    transform: scale(1.05);
}

.organizer-details {
    flex: 1;
}

.organizer-details strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.organizer-details small {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Bouton like large */
.like-button-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.875rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-glow);
    white-space: nowrap;
}

.like-button-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--border-glow);
}

.like-button-large:active {
    transform: translateY(0) scale(0.98);
}

.like-button-large.liked {
    background: linear-gradient(135deg, #06ffa5 0%, #3a86ff 100%);
    border-color: #06ffa5;
    box-shadow: 0 0 20px rgba(6, 255, 165, 0.4);
}

.like-button-large .like-icon {
    font-size: 1.35rem;
}

.like-button-large .like-count {
    background: rgba(0, 0, 0, 0.2);
    padding: 0.25rem 0.625rem;
    border-radius: 50px;
    font-size: 0.8rem;
}

/* Accordéon organisateur */
.organizer-accordion {
    background: var(--dark-card);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}

.organizer-accordion:hover {
    border-color: var(--primary-color);
}

.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
    font-weight: 600;
}

.accordion-header:hover {
    background: rgba(255, 0, 110, 0.05);
}

.accordion-header.active {
    background: rgba(255, 0, 110, 0.1);
    border-bottom: 1px solid var(--border-color);
}

.accordion-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.accordion-icon {
    font-size: 1.5rem;
}

.accordion-arrow {
    font-size: 0.875rem;
    transition: transform 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.accordion-content.active {
    max-height: 2000px;
}

.accordion-inner {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.organizer-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 1rem 0;
}

/* Contact et social */
.contact-info,
.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem;
    background: rgba(255, 0, 110, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.contact-item:hover {
    border-color: var(--primary-color);
    background: rgba(255, 0, 110, 0.1);
}

.contact-icon {
    font-size: 1.25rem;
}

.contact-item a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    flex: 1;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid transparent;
}

.social-link.facebook {
    background: linear-gradient(135deg, #1877F2 0%, #0d5dbf 100%);
    color: white;
}

.social-link.facebook:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
}

.social-link.instagram {
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
    color: white;
}

.social-link.instagram:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(193, 53, 132, 0.4);
}

.social-link span {
    font-size: 1.25rem;
}

/* Localisation */
.location-card p {
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.location-coords {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0 0 1rem 0;
    padding: 0.75rem;
    background: rgba(58, 134, 255, 0.05);
    border-radius: var(--border-radius);
    font-family: 'Courier New', monospace;
}

.location-card .btn {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    padding: 1rem;
    font-weight: 600;
    transition: var(--transition);
}

.location-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(58, 134, 255, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .view-rasso-page {
        padding: 1rem 0;
    }
    
    .rasso-header-view {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }
    
    .header-actions {
        width: 100%;
    }
    
    .like-button-large {
        width: 100%;
        justify-content: center;
    }
    
    .header-left h1 {
        font-size: 1.75rem;
    }
    
    .rasso-meta {
        grid-template-columns: 1fr;
    }
    
    .main-photo {
        height: 300px;
    }
    
    .photo-thumbnails {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    
    .thumbnail {
        height: 70px;
    }
    
    .rasso-main-info,
    .accordion-header,
    .accordion-inner {
        padding: 1.25rem;
    }
    
    .organizer-avatar,
    .organizer-avatar-placeholder {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .header-left h1 {
        font-size: 1.5rem;
    }
    
    .main-photo {
        height: 250px;
    }
    
    .photo-thumbnails {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .accordion-header {
        font-size: 1rem;
        padding: 1rem 1.25rem;
    }
    
    .accordion-inner {
        padding: 1rem;
    }
}

/* Lien sur le titre des rassemblements */
.rasso-title-link {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.rasso-title-link:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.rasso-card h4 {
    margin: 0 0 0.75rem 0;
}

/* ============================================
   Effet de confettis pour les likes
   ============================================ */

.confetti-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    pointer-events: none;
    z-index: 1000;
}

.confetti {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #007bff;
    opacity: 1;
    animation: confetti-fall 1s ease-out forwards;
    transform-origin: center;
}

@keyframes confetti-fall {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translate(var(--x), var(--y)) rotate(var(--rotation));
        opacity: 0;
    }
}

/* Animation du cœur qui like */
.heart-burst {
    animation: heart-burst 0.6s ease-out;
}

@keyframes heart-burst {
    0% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.5);
    }
    50% {
        transform: scale(0.9) rotate(-10deg);
    }
    75% {
        transform: scale(1.1) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

/* Amélioration du bouton like pour l'effet */
.like-button,
.like-button-large {
    position: relative;
    overflow: visible;
}

.like-button .like-icon,
.like-button-large .like-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.like-button:active .like-icon,
.like-button-large:active .like-icon {
    transform: scale(0.9);
}

.like-button.liked .like-icon,
.like-button-large.liked .like-icon {
    animation: like-pop 0.4s ease-out;
}

@keyframes like-pop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

/* Image dans les cartes de rassemblements */
.rasso-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    margin: -1rem -1rem 1rem -1rem;
}

.rasso-card-image a {
    display: block;
    width: 100%;
    height: 100%;
}

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

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

.rasso-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .rasso-card-image {
        height: 150px;
    }
}

/* ===================================
   STYLES POUR LES VOITURES
   =================================== */

/* Section biographie dans le profil */
.profile-bio-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.profile-bio-section h3 {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 600;
}

.profile-bio-content {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.profile-bio-empty {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius);
    border: 1px dashed var(--border-color);
    color: var(--text-muted);
    text-align: center;
}

.profile-bio-empty a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.profile-bio-empty a:hover {
    text-decoration: underline;
}

/* Section réseaux sociaux dans le profil */
.profile-social-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.profile-social-section h3 {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 600;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(131, 56, 236, 0.2);
}

.social-link .social-icon {
    font-size: 1.25rem;
}

.social-link.instagram:hover {
    border-color: #E4405F;
    box-shadow: 0 4px 12px rgba(228, 64, 95, 0.3);
}

.social-link.facebook:hover {
    border-color: #1877F2;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.social-link.twitter:hover {
    border-color: #1DA1F2;
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.3);
}

.social-link.tiktok:hover {
    border-color: #000000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.social-link.youtube:hover {
    border-color: #FF0000;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

.social-link.linkedin:hover {
    border-color: #0A66C2;
    box-shadow: 0 4px 12px rgba(10, 102, 194, 0.3);
}

.social-link.snapchat:hover {
    border-color: #FFFC00;
    box-shadow: 0 4px 12px rgba(255, 252, 0, 0.3);
}

.social-link.discord:hover {
    border-color: #5865F2;
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}

.social-empty {
    grid-column: 1 / -1;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius);
    border: 1px dashed var(--border-color);
    color: var(--text-muted);
    text-align: center;
}

.social-empty a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.social-empty a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .social-links {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .social-link {
        flex-direction: column;
        text-align: center;
        padding: 0.75rem;
        gap: 0.5rem;
    }
}

/* Section voiture dans le profil */
.profile-car-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Modale de la voiture */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 2rem;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
        -webkit-backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

.car-modal-content {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
    color: var(--primary);
    font-size: 1.75rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--primary);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
}

/* Galerie de photos de voiture */
.car-gallery {
    margin-bottom: 2rem;
}

.car-gallery-main {
    width: 100%;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    margin-bottom: 1rem;
}

.car-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.car-gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
}

.car-thumbnail {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.car-thumbnail:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.car-thumbnail.active {
    border-color: var(--primary);
    opacity: 1;
}

/* Sections d'informations de la voiture */
.car-info-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.car-info-section:last-child {
    margin-bottom: 0;
}

.car-info-section h3 {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.car-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.car-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.car-info-label {
    color: var(--text-light);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.car-info-value {
    color: var(--text);
    font-size: 1rem;
    font-weight: 500;
}

.car-description {
    color: var(--text);
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Formulaire de gestion de voiture */
.form-section-title {
    color: var(--primary);
    font-size: 1.25rem;
    margin: 2rem 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

.form-section-title:first-of-type {
    margin-top: 0;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Grille de photos de voiture */
.car-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.car-photo-item {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.car-photo-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.car-photo-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-delete-photo {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    transition: all 0.3s ease;
    z-index: 10;
}

.btn-delete-photo:hover {
    background: rgba(220, 53, 69, 1);
    transform: scale(1.1);
}

/* Responsive pour la modale de voiture */
@media (max-width: 768px) {
    .modal {
        padding: 1rem;
    }
    
    .car-modal-content {
        border-radius: 16px;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .car-gallery-main {
        height: 250px;
    }
    
    .car-info-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .car-photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.75rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .car-gallery-main {
        height: 200px;
    }
    
    .car-gallery-thumbnails {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 0.5rem;
    }
    
    .car-thumbnail {
        height: 60px;
    }
}

/* ===================================
   STYLES POUR LE BATTLE PASS
   =================================== */

.battle-pass-header {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, rgba(138, 43, 226, 0.1) 100%);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 2px solid rgba(0, 123, 255, 0.3);
}

.battle-pass-title-section {
    text-align: center;
    margin-bottom: 2rem;
}

.battle-pass-title-section h1 {
    background: linear-gradient(135deg, #007bff 0%, #8a2be2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.battle-pass-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.bp-stat {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bp-stat-value {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.bp-stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Notification nouvelles récompenses */
.battle-pass-notification {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.2) 0%, rgba(0, 123, 255, 0.2) 100%);
    border: 2px solid var(--success);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.battle-pass-notification h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--success);
}

.new-rewards-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.new-reward-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid var(--success);
}

.reward-icon-large {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}

.reward-icon-huge {
    font-size: 4rem;
}

/* Carte prochain palier */
.next-tier-card {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.15) 0%, rgba(138, 43, 226, 0.15) 100%);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    border: 2px solid rgba(0, 123, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.2);
}

.next-tier-card.max-tier-reached {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 140, 0, 0.15) 100%);
    border-color: #FFD700;
}

.max-tier-content {
    text-align: center;
    padding: 2rem;
}

.max-tier-content h3 {
    color: #FFD700;
    font-size: 2rem;
    margin: 1rem 0;
}

.max-tier-xp {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 1rem;
}

.next-tier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.next-tier-header h3 {
    margin: 0;
    color: var(--primary);
}

.next-tier-number {
    background: linear-gradient(135deg, #007bff 0%, #8a2be2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
}

.next-tier-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.next-tier-reward {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.next-tier-info h4 {
    color: var(--text);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.next-tier-info p {
    color: var(--text-light);
    margin: 0;
}

.next-tier-progress {
    padding: 0 1rem;
}

.progress-bar-large {
    width: 100%;
    height: 30px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.progress-fill-large {
    height: 100%;
    background: linear-gradient(90deg, #007bff 0%, #8a2be2 100%);
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.progress-text {
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
}

.xp-remaining {
    color: var(--primary);
    font-weight: bold;
}

/* Liste des paliers */
.battle-pass-tiers {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.75rem;
    color: var(--text);
    margin-bottom: 2rem;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.tiers-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tier-item {
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 16px;
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    overflow: hidden;
}

.tier-item.unlocked {
    border-color: var(--success);
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(0, 123, 255, 0.05) 100%);
}

.tier-item.current {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.15) 0%, rgba(138, 43, 226, 0.1) 100%);
    box-shadow: 0 5px 20px rgba(0, 123, 255, 0.3);
}

.tier-item.locked {
    opacity: 0.6;
}

.tier-number-badge {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #007bff 0%, #8a2be2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin-right: 1.5rem;
}

.tier-item.locked .tier-number-badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.tier-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.tier-header-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.tier-icon {
    font-size: 3rem;
}

.tier-info {
    flex: 1;
}

.tier-name {
    font-size: 1.25rem;
    color: var(--text);
    margin: 0 0 0.25rem 0;
}

.tier-description {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0 0 0.5rem 0;
}

.tier-type-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tier-type-badge {
    background: rgba(0, 123, 255, 0.2);
    color: var(--primary);
}

.tier-type-title {
    background: rgba(138, 43, 226, 0.2);
    color: #8a2be2;
}

.tier-type-frame {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.tier-type-icon {
    background: rgba(255, 87, 34, 0.2);
    color: #ff5722;
}

.tier-type-special {
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    color: white;
}

.tier-xp-requirement {
    text-align: right;
    flex-shrink: 0;
}

.xp-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.tier-unlocked-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--success);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.tier-locked-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
}

.lock-icon {
    font-size: 3rem;
    opacity: 0.5;
}

.tier-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: rgba(0, 0, 0, 0.3);
}

.tier-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff 0%, #8a2be2 100%);
    transition: width 0.5s ease;
}

/* Section récompenses équipées */
.equipped-rewards-section {
    margin-bottom: 3rem;
}

.equipped-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.equipped-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    border: 2px solid var(--border-color);
}

.equipped-card h4 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text);
}

.equipped-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
}

.equipped-item.active {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.2) 0%, rgba(138, 43, 226, 0.1) 100%);
    border: 2px solid var(--primary);
}

.equipped-item.empty {
    opacity: 0.5;
    font-style: italic;
    color: var(--text-light);
}

.equipped-icon {
    font-size: 2.5rem;
}

.equipped-name {
    text-align: center;
    font-weight: 600;
    color: var(--text);
}

/* Guide XP */
.xp-guide-section {
    margin-bottom: 3rem;
}

.xp-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.xp-method-card {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, rgba(138, 43, 226, 0.05) 100%);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    border: 2px solid rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
}

.xp-method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.3);
}

.xp-method-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.xp-method-card h4 {
    color: var(--text);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.xp-method-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    margin: 0;
}

/* Responsive Battle Pass */
@media (max-width: 768px) {
    .battle-pass-header {
        padding: 1.5rem;
    }
    
    .battle-pass-title-section h1 {
        font-size: 2rem;
    }
    
    .battle-pass-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .tier-item {
        flex-direction: column;
        text-align: center;
    }
    
    .tier-number-badge {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .tier-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .tier-header-section {
        flex-direction: column;
        text-align: center;
    }
    
    .tier-xp-requirement {
        text-align: center;
    }
    
    .next-tier-reward {
        flex-direction: column;
        text-align: center;
    }
    
    .equipped-grid {
        grid-template-columns: 1fr;
    }
    
    .xp-methods-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   SYSTÈME DE RASSEMBLEMENTS PRIVÉS
   ======================================== */

/* Formulaires - Section de confidentialité */
.privacy-toggle-card {
    background: linear-gradient(135deg, rgba(131, 56, 236, 0.08), rgba(255, 0, 110, 0.08));
    border: 2px solid rgba(131, 56, 236, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.privacy-toggle-card:hover {
    border-color: rgba(131, 56, 236, 0.4);
    box-shadow: 0 8px 24px rgba(131, 56, 236, 0.15);
    transform: translateY(-2px);
}

.privacy-toggle-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.privacy-toggle-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.privacy-toggle-info {
    flex: 1;
}

.privacy-toggle-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.25rem;
    color: var(--text);
    font-weight: 600;
}

.privacy-toggle-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.privacy-description {
    padding-top: 1rem;
    border-top: 1px solid rgba(131, 56, 236, 0.15);
}

.privacy-description p {
    margin: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.privacy-description p strong {
    color: var(--text);
}

/* Toggle Switch moderne */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    flex-shrink: 0;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #e0e0e0, #bdbdbd);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 34px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 4px 12px rgba(131, 56, 236, 0.4), inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-switch input:focus + .toggle-slider {
    box-shadow: 0 0 0 4px rgba(131, 56, 236, 0.2);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(26px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.toggle-slider:after {
    content: '🔓';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    opacity: 0.7;
    transition: all 0.3s ease;
    pointer-events: none;
}

.toggle-switch input:checked + .toggle-slider:after {
    content: '🔒';
    left: 8px;
    right: auto;
    opacity: 1;
}

/* Animations au hover et au clic */
.toggle-switch:hover .toggle-slider {
    transform: scale(1.05);
}

.toggle-switch:hover .toggle-slider:before {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.toggle-switch:active .toggle-slider {
    transform: scale(0.98);
}

.toggle-switch:active .toggle-slider:before {
    width: 30px;
}

.toggle-switch input:checked:active + .toggle-slider:before {
    margin-left: -4px;
}

/* Effet de pulsation quand activé */
.toggle-switch input:checked + .toggle-slider {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(131, 56, 236, 0.4), inset 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 4px 20px rgba(131, 56, 236, 0.6), inset 0 2px 4px rgba(0, 0, 0, 0.1);
    }
}

.code-input-group {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

.code-input-group input {
    flex: 1;
    font-family: 'Courier New', monospace;
    text-align: center;
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 600;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.code-input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(131, 56, 236, 0.1);
}

.btn-generate-code {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(131, 56, 236, 0.3);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-generate-code::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-generate-code:hover::before {
    width: 300px;
    height: 300px;
}

.btn-generate-code:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(131, 56, 236, 0.4);
}

.btn-generate-code:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(131, 56, 236, 0.3);
}

.private-info-box {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(131, 56, 236, 0.08), rgba(255, 0, 110, 0.08));
    border: 2px solid rgba(131, 56, 236, 0.2);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.private-info-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(131, 56, 236, 0.05), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.private-info-box strong {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
    font-size: 1.05rem;
}

.private-info-box ul {
    margin: 0.75rem 0 1.5rem 0;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.private-info-box ul:last-child {
    margin-bottom: 0;
}

.private-info-box ul li {
    margin: 0.5rem 0;
    line-height: 1.6;
    position: relative;
}

.private-info-box ul li::marker {
    color: var(--primary);
}

/* Section des options privées avec animation */
#private-options {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top;
}

#private-options[style*="display: block"] {
    max-height: 2000px;
    opacity: 1;
    margin-top: 1.5rem;
    animation: slideDown 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Amélioration du champ de code avec animation au focus */
.code-input-group input:focus {
    animation: focusPulse 0.3s ease;
}

@keyframes focusPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

/* Carte interactive - Badges privés */
.rasso-card.private-rasso {
    border: 2px solid var(--primary);
    background: linear-gradient(135deg, rgba(131, 56, 236, 0.05), rgba(255, 0, 110, 0.05));
}

.private-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.private-badge-inline {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.private-message {
    color: var(--primary);
    font-weight: 600;
    margin: 0.75rem 0 0.5rem 0;
}

.private-hint {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-style: italic;
    margin: 0;
}

.private-organizer {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-style: italic;
}

/* Page de demande de code d'accès */
.private-access-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem 1rem;
}

.private-access-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--border);
}

.private-preview-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.private-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.private-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(131, 56, 236, 0.8), rgba(255, 0, 110, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
}

.private-lock-icon {
    font-size: 4rem;
    animation: pulse 2s ease-in-out infinite;
}

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

.private-access-content {
    padding: 2.5rem;
    text-align: center;
}

.private-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.private-access-content h2 {
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.private-main-message {
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.private-sub-message {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.access-code-form {
    margin: 2rem 0;
    text-align: left;
}

.access-code-input {
    text-align: center;
    font-size: 1.25rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 1rem;
}

.private-info {
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.05), rgba(131, 56, 236, 0.05));
    border-radius: 12px;
    text-align: left;
}

.private-info p {
    margin-bottom: 0.75rem;
    color: var(--text);
}

.private-info ul {
    margin: 0;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.private-info ul li {
    margin: 0.5rem 0;
}

.private-actions {
    margin-top: 2rem;
}

/* Alertes pour les rassos privés */
.creator-private-notice {
    background: linear-gradient(135deg, rgba(131, 56, 236, 0.1), rgba(255, 0, 110, 0.1));
    border-left: 4px solid var(--primary);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.alert.alert-info {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(131, 56, 236, 0.1));
    border-left: 4px solid var(--primary);
    color: var(--text);
}

.alert.alert-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(40, 200, 100, 0.1));
    border-left: 4px solid #28a745;
    color: var(--text);
}

/* Responsive pour le système privé */
@media (max-width: 768px) {
    .privacy-toggle-card {
        padding: 1.25rem;
    }
    
    .privacy-toggle-header {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .privacy-toggle-icon {
        font-size: 2rem;
    }
    
    .privacy-toggle-info h4 {
        font-size: 1.1rem;
    }
    
    .privacy-toggle-info p {
        font-size: 0.875rem;
    }
    
    .toggle-switch {
        width: 56px;
        height: 30px;
    }
    
    .toggle-slider:before {
        height: 22px;
        width: 22px;
    }
    
    .toggle-switch input:checked + .toggle-slider:before {
        transform: translateX(26px);
    }
    
    .code-input-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-generate-code {
        width: 100%;
        padding: 1rem;
    }
    
    .private-access-container {
        padding: 1rem;
    }
    
    .private-access-content {
        padding: 1.5rem;
    }
    
    .private-preview-image {
        height: 200px;
    }
    
    .private-lock-icon {
        font-size: 3rem;
    }
    
    .privacy-description {
        font-size: 0.85rem;
    }
}

/* Overlay pour le fond flou et sombre */
.combined-picker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Styles pour le picker combiné date/heure début et fin */
.combined-datetime-picker {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 2px solid var(--primary);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.combined-picker-header {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    background: var(--darker-bg);
}

.picker-tab {
    flex: 1;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.picker-tab:hover {
    background: rgba(131, 56, 236, 0.1);
    color: var(--primary);
}

.picker-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: var(--card-bg);
}

.combined-picker-content {
    display: block;
    padding: 1.5rem;
    overflow-y: auto;
    overflow-x: visible;
    max-height: calc(85vh - 120px);
    /* Assurer que le contenu peut défiler correctement */
    -webkit-overflow-scrolling: touch;
    /* Forcer le défilement même si le contenu semble tenir */
    min-height: 300px;
}

.combined-picker-actions {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-top: 2px solid var(--border-color);
    background: var(--darker-bg);
}

.picker-action-btn {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.picker-action-btn.cancel {
    background: var(--darker-bg);
    color: var(--text-light);
    border-color: var(--border-color);
}

.picker-action-btn.cancel:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.picker-action-btn.validate {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.picker-action-btn.validate:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(131, 56, 236, 0.4);
}

@media (max-width: 768px) {
    .combined-datetime-picker {
        top: 50%;
        left: 50%;
        right: auto;
        bottom: auto;
        transform: translate(-50%, -50%) scale(0.9);
        max-width: 95vw;
        max-height: 95vh;
        border-radius: 16px;
        width: 95vw;
        animation: mobileSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
        /* Assurer que le picker n'est pas trop haut sur mobile */
        max-height: 90vh;
    }

    @keyframes mobileSlideUp {
        from {
            opacity: 0;
            transform: translate(-50%, -50%) scale(0.8);
        }
        to {
            opacity: 1;
            transform: translate(-50%, -50%) scale(0.9);
        }
    }

    .combined-picker-content {
        max-height: calc(85vh - 180px);
        min-height: 250px;
        /* Forcer le défilement même si le contenu semble tenir */
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
    }

    .picker-tab {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }

    .time-wheel {
        width: 70px;
        height: 180px;
        padding: 65px 0;
        scroll-padding: 65px 0;
    }

    .time-wheel-indicator {
        width: 65px;
        height: 48px;
    }

    .time-wheel-item {
        font-size: 1rem;
        height: 45px;
        min-height: 45px;
    }

    .time-wheel-item-selected {
        font-size: 1.2rem !important;
        height: 45px !important;
        min-height: 45px !important;
    }
}

/* === SYSTÈME DE MESSAGERIE - DESIGN ALIGNÉ AVEC LE SITE === */

.messages-page {
    padding: 0;
    min-height: calc(100vh - 80px);
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 50%, #0f0f1a 100%);
    background-attachment: fixed;
}

.messages-wrapper {
    display: flex;
    height: calc(100vh - 80px);
    max-width: 1400px;
    margin: 0 auto;
    gap: 0;
    background: transparent;
}

/* Sidebar des conversations */
.conversations-sidebar {
    width: 380px;
    background: var(--dark-card);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.conversations-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.conversations-sidebar:hover::before {
    opacity: 1;
}

.sidebar-header {
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--dark-card);
    position: relative;
}

.sidebar-title {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-actions {
    display: flex;
    gap: 0.5rem;
}

.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.icon-btn:hover {
    background: rgba(255, 0, 110, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 0, 110, 0.2);
    transform: translateY(-2px);
}

.icon-btn svg {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-btn:hover svg {
    transform: scale(1.15) rotate(5deg);
}

/* Demandes de messages en attente */
.pending-requests {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.08) 0%, rgba(131, 56, 236, 0.05) 100%);
    border-top: 1px solid var(--border-color);
    position: relative;
}

.pending-requests::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.pending-request-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem;
    background: var(--dark-card);
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.pending-request-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.pending-request-item:last-child {
    margin-bottom: 0;
}

.pending-request-item:hover {
    background: var(--dark-card-hover);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 0, 110, 0.2);
}

.pending-request-item:hover::before {
    transform: scaleX(1);
}

.request-avatar {
    position: relative;
    flex-shrink: 0;
}

.request-avatar img,
.request-avatar .avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-placeholder {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.request-content {
    flex: 1;
    min-width: 0;
}

.request-name {
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.request-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.request-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.accept-btn:hover {
    background: rgba(255, 0, 110, 0.15);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 0, 110, 0.3);
    transform: scale(1.1);
}

.reject-btn:hover {
    background: rgba(255, 59, 48, 0.15);
    border-color: #ff3b30;
    color: #ff3b30;
    box-shadow: 0 0 15px rgba(255, 59, 48, 0.3);
    transform: scale(1.1);
}

/* Liste des conversations */
.conversations-list {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.conversations-list::-webkit-scrollbar {
    width: 4px;
}

.conversations-list::-webkit-scrollbar-track {
    background: transparent;
}

.conversations-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.conversation-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    background: transparent;
}

.conversation-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.conversation-item:hover {
    background: var(--dark-card-hover);
    transform: translateX(4px);
}

.conversation-item:hover::before {
    transform: scaleY(1);
}

.conversation-item.active {
    background: linear-gradient(90deg, rgba(255, 0, 110, 0.1) 0%, transparent 100%);
    border-left: 3px solid var(--primary-color);
    padding-left: calc(1.25rem - 3px);
}

.conversation-item.active::before {
    transform: scaleY(1);
}

.conversation-item.unread {
    background: linear-gradient(90deg, rgba(255, 0, 110, 0.05) 0%, transparent 100%);
}

.conversation-item.unread .conversation-name {
    font-weight: 600;
    color: var(--text-light);
}

.conversation-avatar {
    position: relative;
    flex-shrink: 0;
}

.conversation-avatar img,
.conversation-avatar .avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.unread-indicator {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 2px solid var(--dark-card);
}

.conversation-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.conversation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.conversation-name {
    font-weight: 500;
    color: var(--text-light);
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    flex-shrink: 0;
    font-weight: 400;
}

.conversation-preview {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.you-label {
    color: var(--text-muted);
    font-weight: 500;
}

.empty-state {
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--text-muted);
}

.empty-state p {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
}

.empty-state span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.loading-state {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Zone de chat */
.chat-area {
    flex: 1;
    background: var(--dark-card);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
}

.chat-placeholder {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 50%, #0f0f1a 100%);
}

.placeholder-content {
    max-width: 400px;
}

.placeholder-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
    opacity: 0.6;
    filter: drop-shadow(0 0 20px rgba(255, 0, 110, 0.3));
}

.chat-placeholder h2 {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 0.5rem 0;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.chat-placeholder p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.95rem;
}

/* Header du chat - Design moderne */
.chat-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--dark-card);
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 70px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
}

.chat-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* Flèche de fermeture en haut */
.chat-close-arrow {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 101;
}

.chat-close-arrow:hover {
    background: rgba(255, 255, 255, 0.5);
    width: 50px;
}

.chat-close-arrow:active {
    transform: translateX(-50%) scale(0.95);
}

.chat-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    position: relative;
    z-index: 101;
}

.chat-back-btn:hover {
    background: rgba(255, 0, 110, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateX(-4px);
    box-shadow: 0 0 15px rgba(255, 0, 110, 0.2);
}

.chat-back-btn:active {
    transform: translateX(-4px) scale(0.95);
}

.chat-back-btn svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.5;
}

.chat-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.chat-avatar {
    flex-shrink: 0;
    position: relative;
}

.chat-avatar img,
.chat-avatar .avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.chat-user-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    flex: 1;
}

.chat-user-name {
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.05rem;
    letter-spacing: -0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-user-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.status-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-badge.friend {
    background: rgba(255, 0, 110, 0.15);
    color: var(--primary-color);
    border: 1px solid rgba(255, 0, 110, 0.3);
}

.status-badge.accepted {
    background: rgba(58, 134, 255, 0.15);
    color: var(--accent-color);
    border: 1px solid rgba(58, 134, 255, 0.3);
}

.status-badge.pending {
    background: rgba(131, 56, 236, 0.15);
    color: var(--secondary-color);
    border: 1px solid rgba(131, 56, 236, 0.3);
}

/* Conteneur des messages - Design amélioré */
.messages-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 50%, #0f0f1a 100%);
    background-attachment: fixed;
    position: relative;
}

.messages-container::-webkit-scrollbar {
    width: 6px;
}

.messages-container::-webkit-scrollbar-track {
    background: transparent;
}

.messages-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.messages-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

.empty-messages {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.empty-messages::before {
    content: "💬";
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Messages - Design moderne */
.message {
    max-width: 75%;
    display: flex;
    animation: messageSlideIn 0.3s ease-out;
    margin-bottom: 0.5rem;
    position: relative;
}

.message-sent {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-received {
    align-self: flex-start;
}

.message-bubble {
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-lg);
    position: relative;
    word-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.message-bubble:hover {
    box-shadow: var(--shadow-lg);
}

.message-sent .message-bubble {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 15px rgba(255, 0, 110, 0.3);
}

.message-sent .message-bubble:hover {
    box-shadow: 0 6px 20px rgba(255, 0, 110, 0.4);
    transform: translateY(-2px);
}

.message-received .message-bubble {
    background: var(--dark-card);
    color: var(--text-light);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 4px;
}

.message-received .message-bubble:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(255, 0, 110, 0.1);
}

.message-text {
    line-height: 1.5;
    font-size: 0.95rem;
    margin: 0;
}

.message-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
    margin-top: 0.35rem;
    font-size: 0.7rem;
    opacity: 0.8;
}

.message-sent .message-footer {
    justify-content: flex-end;
    color: rgba(255, 255, 255, 0.9);
}

.message-received .message-footer {
    justify-content: flex-start;
    color: var(--text-muted);
}

.message-time {
    font-size: 0.7rem;
    font-weight: 400;
    white-space: nowrap;
}

.message-status {
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    line-height: 1;
    min-width: 16px;
    font-weight: 500;
    letter-spacing: -1px;
}

.message-sent-status {
    color: rgba(255, 255, 255, 0.7);
    opacity: 0.8;
}

.message-read {
    color: var(--primary-color);
    opacity: 1;
    filter: drop-shadow(0 0 3px rgba(255, 0, 110, 0.5));
}

/* Animation des messages */
@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Zone de saisie des messages - Design moderne */
.message-input-area {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--dark-card);
    position: sticky;
    bottom: 0;
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.message-input-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    max-width: 100%;
}

#messageInput {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    background: var(--dark-card);
    color: var(--text-light);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
    resize: none;
    font-family: inherit;
    min-height: 44px;
    max-height: 120px;
}

#messageInput::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

#messageInput:focus {
    border-color: var(--primary-color);
    background: var(--dark-card-hover);
    box-shadow: 0 0 0 3px rgba(255, 0, 110, 0.1), 0 4px 15px rgba(255, 0, 110, 0.2);
}

.send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 0, 110, 0.3);
}

.send-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 110, 0.5), var(--shadow-glow);
}

.send-btn:active {
    transform: scale(0.95);
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.send-btn svg {
    width: 20px;
    height: 20px;
}

.message-restricted {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
}

.message-restricted p {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
}

.message-restricted span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Badges de notification unifiés dans la navigation */
.messages-link,
.favorites-link {
    position: relative;
}

/* Style unifié pour tous les badges de notification */
.messages-badge,
.favorites-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    font-size: 0.7rem;
    font-weight: bold;
    text-align: center;
    border: 2px solid var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(255, 0, 110, 0.5);
    animation: navBadgePulse 2s infinite;
    z-index: 10;
    line-height: 1;
}

/* Badge sans texte (juste un point) */
.favorites-badge:empty {
    width: 12px;
    height: 12px;
    min-width: 12px;
    padding: 0;
}

/* Badge avec texte (nombre) */
.messages-badge:not(:empty) {
    min-width: 20px;
    border-radius: 10px;
}

/* Animation de pulsation pour les badges */
@keyframes navBadgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(255, 0, 110, 0.5);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 15px rgba(255, 0, 110, 0.8);
    }
}

/* Amélioration de la visibilité sur mobile */
@media (max-width: 768px) {
    .messages-badge,
    .favorites-badge {
        top: -4px;
        right: -4px;
        min-width: 20px;
        height: 20px;
        font-size: 0.75rem;
        border: 3px solid var(--dark-bg);
        box-shadow: 0 0 15px rgba(255, 0, 110, 0.8), 0 0 25px rgba(255, 0, 110, 0.4);
    }
    
    /* Badge sans texte sur mobile */
    .favorites-badge:empty {
        width: 16px;
        height: 16px;
        min-width: 16px;
    }
    
    /* Badge avec texte sur mobile */
    .messages-badge:not(:empty) {
        min-width: 24px;
        border-radius: 12px;
    }
    
    /* Animation plus visible sur mobile */
    @keyframes navBadgePulse {
        0%, 100% {
            transform: scale(1);
            box-shadow: 0 0 15px rgba(255, 0, 110, 0.8), 0 0 25px rgba(255, 0, 110, 0.4);
        }
        50% {
            transform: scale(1.2);
            box-shadow: 0 0 20px rgba(255, 0, 110, 1), 0 0 35px rgba(255, 0, 110, 0.6);
        }
    }
}

/* Modal pour les demandes de messages */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--dark-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--text-light);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--border-color);
}

.modal-body {
    padding: 1.5rem;
}

/* Section Mes amis */
.friends-section {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.25rem 1.5rem;
    background: var(--dark-card);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
}

/* Barre de recherche des contacts */
.friends-search-wrapper {
    position: relative;
    margin-bottom: 1rem;
    display: block;
}

.friends-search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--dark-card);
    color: var(--text-light);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
    font-family: inherit;
}

.friends-search-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.friends-search-input:focus {
    border-color: var(--primary-color);
    background: var(--dark-card-hover);
    box-shadow: 0 0 0 3px rgba(255, 0, 110, 0.1), 0 4px 15px rgba(255, 0, 110, 0.2);
}

.friends-search-wrapper .search-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    transition: color 0.3s ease;
}

.friends-search-input:focus + .search-icon,
.friends-search-wrapper:has(.friends-search-input:focus) .search-icon {
    color: var(--primary-color);
}

/* Suggestions de recherche */
.friends-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.5rem;
    background: var(--dark-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.friends-suggestions::-webkit-scrollbar {
    width: 4px;
}

.friends-suggestions::-webkit-scrollbar-track {
    background: transparent;
}

.friends-suggestions::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

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

.suggestion-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.suggestion-item:hover {
    background: var(--dark-card-hover);
}

.suggestion-item:hover::before {
    transform: scaleY(1);
}

.suggestion-avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.suggestion-avatar img,
.suggestion-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.suggestion-item:hover .suggestion-avatar img,
.suggestion-item:hover .suggestion-avatar .avatar-placeholder {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(255, 0, 110, 0.3);
}

.suggestion-name {
    flex: 1;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-item:hover .suggestion-name {
    color: var(--primary-color);
}

.section-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.toggle-icon {
    color: var(--text-muted);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-header[aria-expanded="true"] .toggle-icon,
.section-header:has(+ .friends-bubbles[style*="display: grid"]) .toggle-icon {
    transform: rotate(180deg);
}

/* Bulles d'amis - Design professionnel et rond */
.friends-bubbles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 1rem;
    padding: 0.5rem 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease,
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.friends-bubbles.open {
    max-height: 1000px;
    opacity: 1;
    padding: 0.5rem 0;
}

.friends-bubbles.closing {
    max-height: 0;
    opacity: 0;
    padding: 0;
}

.friend-bubble {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 1rem 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    border: none;
    position: relative;
    aspect-ratio: 1;
    min-width: 80px;
    min-height: 80px;
    box-shadow: none;
}

.friend-bubble:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.friend-bubble:active {
    transform: translateY(-2px) scale(1.02);
}

/* La bordure verte est maintenant sur l'avatar, voir .friend-bubble.has-conversation .friend-bubble-avatar */

.friend-bubble.has-conversation:hover {
    transform: translateY(-4px) scale(1.05);
}

.friend-bubble-avatar {
    position: relative;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.friend-bubble-avatar img,
.friend-bubble-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.friend-bubble:hover .friend-bubble-avatar img,
.friend-bubble:hover .friend-bubble-avatar .avatar-placeholder {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Bordure rose sur l'avatar pour les contacts avec conversation */
.friend-bubble.has-conversation .friend-bubble-avatar img,
.friend-bubble.has-conversation .friend-bubble-avatar .avatar-placeholder {
    border: 3px solid rgba(255, 0, 110, 0.6);
    box-shadow: 0 2px 12px rgba(255, 0, 110, 0.3);
}

.friend-bubble.has-conversation:hover .friend-bubble-avatar img,
.friend-bubble.has-conversation:hover .friend-bubble-avatar .avatar-placeholder {
    border-color: rgba(255, 0, 110, 0.9);
    box-shadow: 0 4px 16px rgba(255, 0, 110, 0.4);
}

.friend-bubble-name {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-light);
    text-align: center;
    line-height: 1.2;
    word-break: break-word;
    max-width: 100%;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-top: 0.25rem;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.friend-bubble:hover .friend-bubble-name {
    opacity: 1;
}

.friends-empty-state {
    grid-column: 1 / -1;
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-muted);
}

.friends-empty-state p {
    margin: 0;
    font-size: 0.9rem;
}

/* ============================================
   DESIGN MOBILE WHATSAPP - MESSAGES
   Style WhatsApp avec thème sombre
   ============================================ */
@media (max-width: 768px) {
    /* Page principale - Thème sombre */
    .messages-page {
        min-height: 100vh;
        padding: 0;
        margin: 0;
        background: #0a0a0f;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        overflow: hidden;
    }

    .messages-wrapper {
        flex-direction: column;
        height: 100vh;
        max-width: 100%;
        position: relative;
        background: #0f0f15;
    }

    /* ===== SIDEBAR CONVERSATIONS - STYLE ALIGNÉ AVEC LE SITE ===== */
    .conversations-sidebar {
        width: 100%;
        height: 100vh;
        border-right: none;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 10;
        transition: transform 0.3s ease;
        background: var(--dark-card);
        border: none;
        box-shadow: var(--shadow-lg);
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .conversations-sidebar.hidden {
        transform: translateX(-100%);
    }

    /* Header sidebar - Style aligné avec le site */
    .sidebar-header {
        padding: 0.75rem 1rem;
        background: var(--dark-card);
        border-bottom: 1px solid var(--border-color);
        position: sticky;
        top: 0;
        z-index: 15;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .sidebar-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    }

    .sidebar-back-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: none;
        background: transparent;
        color: #ffffff;
        cursor: pointer;
        transition: background 0.15s ease;
        flex-shrink: 0;
    }

    .sidebar-back-btn:active {
        background: rgba(255, 255, 255, 0.1);
    }

    .sidebar-back-btn svg {
        width: 24px;
        height: 24px;
    }

    .sidebar-title {
        font-size: 1.25rem;
        font-weight: 500;
        color: #ffffff;
        letter-spacing: 0;
        margin: 0;
        flex: 1;
    }

    .sidebar-actions {
        gap: 0.5rem;
    }

    .icon-btn {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: transparent;
        color: #ffffff;
    }

    .icon-btn:active {
        background: rgba(255, 255, 255, 0.1);
        transform: scale(0.95);
    }

    /* Liste conversations - Style WhatsApp sombre */
    .conversations-list {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .conversations-list::-webkit-scrollbar {
        width: 0;
        display: none;
    }

    .conversation-item {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        transition: background 0.15s ease;
        position: relative;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        cursor: pointer;
    }

    .conversation-item:active {
        background: #1a252b;
    }

    .conversation-item.active {
        background: #1a252b;
    }

    .conversation-item.unread {
        background: #111b21;
    }

    .conversation-item.unread .conversation-name {
        font-weight: 600;
    }

    .conversation-avatar {
        position: relative;
        flex-shrink: 0;
    }

    .conversation-avatar img,
    .conversation-avatar .avatar-placeholder {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        border: none;
        box-shadow: none;
    }

    .unread-indicator {
        width: 20px;
        height: 20px;
        background: #25d366;
        border: none;
        box-shadow: none;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #ffffff;
        font-size: 0.7rem;
        font-weight: 600;
        position: absolute;
        top: -4px;
        right: -4px;
    }

    .conversation-content {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    .conversation-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
    }

    .conversation-name {
        font-size: 1rem;
        font-weight: 400;
        color: #e9edef;
        letter-spacing: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .conversation-item.unread .conversation-name {
        font-weight: 600;
        color: #ffffff;
    }

    .conversation-time {
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.6);
        font-weight: 400;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .conversation-preview {
        font-size: 0.875rem;
        color: rgba(255, 255, 255, 0.7);
        line-height: 1.4;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Demandes en attente */
    .pending-requests {
        padding: 0.75rem 1rem;
        background: #111b21;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .section-label {
        font-size: 0.75rem;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: rgba(255, 255, 255, 0.6);
        margin-bottom: 0.5rem;
    }

    .pending-request-item {
        padding: 0.75rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        margin-bottom: 0.5rem;
    }

    /* Section amis - En haut */
    .friends-section {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        flex-shrink: 0;
        padding: 1rem;
    }

    .section-header {
        padding: 0.75rem 0;
        background: transparent;
        cursor: pointer;
        transition: background 0.15s ease;
        margin-bottom: 0.75rem;
    }

    /* Barre de recherche mobile */
    .friends-search-wrapper {
        margin-bottom: 0.75rem;
    }

    .friends-search-input {
        padding: 0.625rem 0.875rem 0.625rem 2.5rem;
        font-size: 0.85rem;
    }

    .friends-search-wrapper .search-icon {
        left: 0.75rem;
        width: 16px;
        height: 16px;
    }

    .section-header:active {
        background: rgba(255, 255, 255, 0.05);
    }

    .section-label {
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: rgba(255, 255, 255, 0.6);
    }

    .friends-bubbles {
        padding: 0.5rem 0;
        gap: 1rem;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                    opacity 0.3s ease,
                    padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .friends-bubbles.open {
        max-height: 600px;
        opacity: 1;
        padding: 0.5rem 0;
    }

    .friends-bubbles.closing {
        max-height: 0;
        opacity: 0;
        padding: 0;
    }

    .friend-bubble {
        padding: 1rem 0.5rem;
        background: transparent;
        border-radius: 50%;
        border: none;
        aspect-ratio: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-width: 75px;
        min-height: 75px;
        box-shadow: none;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .friend-bubble:active {
        transform: scale(0.95);
    }

    /* La bordure verte est maintenant sur l'avatar, voir .friend-bubble.has-conversation .friend-bubble-avatar */

    .friend-bubble-avatar {
        width: 50px;
        height: 50px;
    }

    .friend-bubble-avatar img,
    .friend-bubble-avatar .avatar-placeholder {
        width: 100%;
        height: 100%;
        border: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

    /* Bordure rose sur l'avatar pour les contacts avec conversation */
    .friend-bubble.has-conversation .friend-bubble-avatar img,
    .friend-bubble.has-conversation .friend-bubble-avatar .avatar-placeholder {
        border: 3px solid rgba(255, 0, 110, 0.6);
        box-shadow: 0 2px 12px rgba(255, 0, 110, 0.3);
    }

    .friend-bubble-name {
        font-size: 0.65rem;
        margin-top: 0.25rem;
    }

    /* ===== CHAT AREA - STYLE WHATSAPP SOMBRE ===== */
    .chat-area {
        width: 100%;
        height: calc(100vh - 80px);
        position: absolute;
        top: 80px;
        left: 0;
        z-index: 20;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        background: #0a0a0f;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .chat-area.active {
        transform: translateX(0);
    }

    /* Header chat - Style moderne amélioré */
    .chat-header {
        padding: 0.875rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        position: relative;
        top: 0;
        z-index: 100;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        display: flex;
        align-items: center;
        gap: 0.875rem;
        min-height: 60px;
    }

    /* Flèche de fermeture en haut - Mobile */
    .chat-close-arrow {
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 2px;
        cursor: pointer;
        transition: all 0.3s ease;
        z-index: 101;
    }

    .chat-close-arrow:hover {
        background: rgba(255, 255, 255, 0.5);
        width: 50px;
    }

    .chat-close-arrow:active {
        transform: translateX(-50%) scale(0.95);
    }


    .chat-back-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border-radius: 12px;
        border: none;
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff;
        cursor: pointer;
        transition: all 0.2s ease;
        flex-shrink: 0;
        position: relative;
        z-index: 101;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .chat-back-btn:active {
        background: rgba(255, 255, 255, 0.15);
        transform: scale(0.95);
    }

    .chat-back-btn svg {
        width: 22px;
        height: 22px;
        stroke-width: 2.5;
    }

    .chat-user-info {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 0.875rem;
        min-width: 0;
    }

    .chat-avatar img,
    .chat-avatar .avatar-placeholder {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: 2px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .chat-user-name {
        font-size: 1rem;
        font-weight: 600;
        color: #ffffff;
        letter-spacing: -0.2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .chat-user-meta {
        font-size: 0.8rem;
        color: rgba(255, 255, 255, 0.7);
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    /* Messages container - Style WhatsApp sombre */
    .messages-container {
        flex: 1;
        padding: 0.5rem 0.75rem;
        background: #0a0a0f;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .messages-container::-webkit-scrollbar {
        width: 0;
        display: none;
    }

    .message {
        max-width: 75%;
        margin-bottom: 0.5rem;
        display: flex;
    }

    .message-sent {
        align-self: flex-end;
        flex-direction: row-reverse;
    }

    .message-received {
        align-self: flex-start;
    }

    .message-bubble {
        padding: 0.625rem 0.875rem;
        border-radius: 12px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        word-wrap: break-word;
        position: relative;
        max-width: 100%;
    }

    .message-sent .message-bubble {
        background: linear-gradient(135deg, #ff006e 0%, #c9005a 100%);
        color: #ffffff;
        border-bottom-right-radius: 4px;
    }

    .message-received .message-bubble {
        background: rgba(255, 255, 255, 0.08);
        color: #e9edef;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-bottom-left-radius: 4px;
    }

    .message-text {
        font-size: 0.9rem;
        line-height: 1.5;
        color: inherit;
        margin: 0;
    }

    .message-footer {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 0.35rem;
        margin-top: 0.3rem;
        font-size: 0.7rem;
        opacity: 0.8;
    }

    .message-sent .message-footer {
        color: rgba(255, 255, 255, 0.9);
    }

    .message-received .message-footer {
        color: rgba(255, 255, 255, 0.6);
    }

    .message-time {
        font-size: 0.7rem;
        color: inherit;
        opacity: 0.8;
        white-space: nowrap;
    }

    .message-status {
        font-size: 0.75rem;
        line-height: 1;
        color: inherit;
        opacity: 0.9;
    }

    /* Input area - Style moderne amélioré */
    .message-input-area {
        padding: 0.75rem 1rem;
        background: #202c33;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        position: sticky;
        bottom: 0;
        z-index: 100;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);
    }

    .message-input-wrapper {
        display: flex;
        align-items: center;
        gap: 0.625rem;
        background: rgba(255, 255, 255, 0.06);
        border-radius: 24px;
        padding: 0.5rem 0.875rem;
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .message-input-wrapper input {
        flex: 1;
        background: transparent;
        border: none;
        color: #e9edef;
        font-size: 0.95rem;
        padding: 0.5rem 0;
        outline: none;
        font-family: inherit;
        min-height: 20px;
    }

    .message-input-wrapper input::placeholder {
        color: rgba(255, 255, 255, 0.5);
        opacity: 0.7;
    }

    .send-btn {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: linear-gradient(135deg, #ff006e 0%, #c9005a 100%);
        border: none;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        flex-shrink: 0;
        transition: all 0.2s ease;
        box-shadow: 0 2px 8px rgba(255, 0, 110, 0.3);
    }

    .send-btn:active {
        transform: scale(0.92);
        box-shadow: 0 1px 4px rgba(255, 0, 110, 0.2);
    }

    .send-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .send-btn svg {
        width: 20px;
        height: 20px;
    }

    /* Placeholder */
    .chat-placeholder {
        display: none;
    }

    .empty-messages {
        text-align: center;
        padding: 3rem 1.5rem;
        color: rgba(255, 255, 255, 0.6);
    }

    /* Loading states */
    .loading-state {
        padding: 2rem;
        text-align: center;
        color: rgba(255, 255, 255, 0.6);
        font-size: 0.9rem;
    }

    .empty-state {
        padding: 3rem 1.5rem;
        text-align: center;
    }

    .empty-state p {
        color: #e9edef;
        font-size: 1rem;
    }

    .empty-state span {
        color: rgba(255, 255, 255, 0.6);
        font-size: 0.875rem;
    }

    /* Bouton flottant nouveau message */
    .floating-action-btn {
        position: fixed;
        bottom: 80px;
        right: 20px;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: #25d366;
        border: none;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        z-index: 100;
        transition: transform 0.2s ease;
    }

    .floating-action-btn:active {
        transform: scale(0.95);
    }

    .floating-action-btn svg {
        width: 24px;
        height: 24px;
    }
}

/* ========================================
   STORIES SYSTEM
   ======================================== */

/* Modal de story */
#storyModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.story-content {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 90vh;
    max-height: 700px;
    background: #1a1a1f;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.story-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.story-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.story-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    object-fit: cover;
}

.story-user-name {
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.story-time-remaining {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
}

.story-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.story-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.story-media-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.story-media {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.story-media video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.story-progress-bar {
    display: flex;
    gap: 5px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 10;
}

.story-progress-item {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.story-progress-item.active {
    background: rgba(255, 255, 255, 0.5);
    animation: storyProgress 5s linear;
}

.story-progress-item.completed {
    background: white;
}

@keyframes storyProgress {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

.story-navigation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.story-nav-btn {
    pointer-events: all;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin: 0 20px;
}

.story-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.story-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: white;
    text-align: center;
    padding: 40px;
}

.story-empty p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* Avatar avec indicateur de story */
.profile-avatar-container {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.profile-avatar-container:hover {
    transform: scale(1.05);
}

.profile-avatar-container.has-story::after {
    content: '';
    position: absolute;
    top: -3px;
    right: -3px;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
    z-index: 5;
}

/* Bouton + pour ajouter une story sur l'avatar */
.profile-add-story-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: 3px solid var(--bg-primary);
    color: white;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.profile-add-story-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.profile-add-story-btn span {
    line-height: 1;
    display: block;
}

/* Bouton pour uploader une story */
.upload-story-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.upload-story-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Modal pour uploader une story */
#uploadStoryModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    -webkit-overflow-scrolling: touch;
}

#uploadStoryModal * {
    pointer-events: auto;
}

.upload-story-content {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 10002;
    pointer-events: auto;
}

.upload-story-content h2 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.upload-story-preview {
    width: 100%;
    max-height: 400px;
    border-radius: 10px;
    margin-bottom: 20px;
    object-fit: contain;
    background: #000;
}

.upload-story-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.upload-story-actions .btn {
    min-width: 120px;
    min-height: 48px;
    padding: 12px 24px;
    font-size: 1rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255, 0, 110, 0.3);
    position: relative;
    z-index: 10;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto !important;
}

#publishStoryBtn {
    z-index: 10003 !important;
    position: relative;
    pointer-events: auto !important;
    cursor: pointer !important;
}

#publishStoryBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Stories dans le profil */
.profile-stories-section {
    margin-top: 20px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 10px;
}

.profile-stories-section h3 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.stories-preview {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.story-preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--primary-color);
}

.story-preview-item img,
.story-preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-delete-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: rgba(255, 0, 0, 0.8);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.story-delete-btn:hover {
    background: rgba(255, 0, 0, 1);
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .story-content {
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .story-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 24px;
        margin: 0 10px;
    }
    
    .upload-story-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    /* Amélioration de la modal d'upload sur mobile */
    #uploadStoryModal {
        padding: 10px;
        align-items: flex-end;
    }
    
    .upload-story-content {
        width: 100%;
        max-width: 100%;
        max-height: 85vh;
        border-radius: 20px 20px 0 0;
        padding: 20px;
        margin: 0;
        position: relative;
        z-index: 10002;
    }
    
    .upload-story-actions {
        flex-direction: column-reverse;
        gap: 12px;
        margin-top: 20px;
        position: sticky;
        bottom: 0;
        background: var(--bg-secondary);
        padding-top: 15px;
        margin-bottom: -20px;
        padding-bottom: 20px;
    }
    
    .upload-story-actions .btn {
        width: 100%;
        min-height: 52px;
        padding: 14px 24px;
        font-size: 1.1rem;
        font-weight: 600;
        border-radius: 12px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(255, 0, 110, 0.4);
        position: relative;
        z-index: 10003 !important;
        cursor: pointer !important;
        user-select: none;
        -webkit-user-select: none;
        pointer-events: auto !important;
    }
    
    #publishStoryBtn {
        z-index: 10004 !important;
        position: relative;
        pointer-events: auto !important;
        cursor: pointer !important;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    }
    
    #publishStoryBtn:active {
        transform: scale(0.95) !important;
        opacity: 0.9;
    }
    
    .upload-story-actions .btn-primary {
        order: -1;
        box-shadow: 0 4px 20px rgba(255, 0, 110, 0.5);
    }
    
    .upload-story-actions .btn:active {
        transform: scale(0.98);
    }
}

/* Styles pour les modals de recadrage d'images */
.crop-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.crop-modal-content {
    background: var(--dark-card);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.crop-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.crop-modal-header h3 {
    margin: 0;
    color: var(--text-light);
    font-size: 1.25rem;
    font-weight: 600;
}

.crop-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    line-height: 1;
}

.crop-modal-close:hover {
    background: var(--dark-card-hover);
    color: var(--text-light);
}

.crop-modal-body {
    padding: 20px;
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crop-container {
    width: 100%;
    max-width: 100%;
    max-height: 60vh;
    position: relative;
    background: var(--darker-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.crop-container img {
    max-width: 100%;
    max-height: 60vh;
    display: block;
}

.crop-modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid var(--border-color);
    justify-content: flex-end;
}

.crop-modal-footer .btn {
    min-width: 120px;
    padding: 12px 24px;
}

/* Prévisualisation des photos de voiture */
.car-photos-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.car-photo-preview-item {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--dark-card);
    border: 1px solid var(--border-color);
}

.car-photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-remove-preview {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 0, 110, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-remove-preview:hover {
    background: var(--error-color);
    transform: scale(1.1);
}

/* Responsive pour mobile */
@media (max-width: 767px) {
    .crop-modal {
        padding: 0;
        align-items: flex-end;
    }
    
    .crop-modal-content {
        max-width: 100%;
        max-height: 90vh;
        border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
        margin: 0;
    }
    
    .crop-modal-header {
        padding: 16px;
    }
    
    .crop-modal-header h3 {
        font-size: 1.1rem;
    }
    
    .crop-modal-body {
        padding: 16px;
    }
    
    .crop-container {
        max-height: 50vh;
    }
    
    .crop-container img {
        max-height: 50vh;
    }
    
    .crop-modal-footer {
        padding: 16px;
        flex-direction: column-reverse;
    }
    
    .crop-modal-footer .btn {
        width: 100%;
        min-width: auto;
    }
    
    .car-photos-preview {
        grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)) !important;
        gap: 6px !important;
        margin-top: 10px !important;
    }
    
    .car-photo-preview-item {
        aspect-ratio: 1/1 !important;
        height: 40px !important;
        max-height: 40px !important;
        width: 100% !important;
        min-height: 0 !important;
    }
    
    .car-photo-preview-item img {
        width: 100% !important;
        height: 100% !important;
        max-height: 40px !important;
        object-fit: cover !important;
    }
}

/* ================================
   Explore - Filtres véhicule Auto / Moto
   ================================ */

.explore-page .vehicle-filter {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    padding: 4px;
    margin-top: 0.5rem;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.explore-page .vehicle-filter-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 0.25rem;
    padding: 6px 14px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: var(--text-color);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    white-space: nowrap;
}

.explore-page .vehicle-filter-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}

.explore-page .vehicle-filter-btn.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 0 2px rgba(131, 56, 236, 0.25);
}

@media (max-width: 768px) {
    .explore-page .vehicle-filter {
        width: 100%;
        justify-content: space-between;
        overflow-x: auto;
    }
    
    .explore-page .vehicle-filter-btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}

/* ===========================
   Page Paramètres utilisateur
   =========================== */

.settings-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

@media (max-width: 900px) {
    .settings-layout {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   Modale Paramètres - Style cohérent avec le site
   =========================== */

/* Reset complet pour tous les éléments de la modale paramètres */
#settingsModal * {
    box-sizing: border-box !important;
}

#settingsModal button,
#settingsModal button[type="button"] {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    border-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    font: inherit !important;
    color: inherit !important;
    cursor: pointer !important;
    outline: none !important;
    outline-width: 0 !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: normal !important;
    vertical-align: baseline !important;
    overflow: visible !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
}

/* Override des styles de base pour la modale paramètres */
#settingsModal .modal-content.settings-modal-content {
    max-width: 600px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    background: var(--dark-card) !important;
    border: 2px solid var(--border-color) !important;
    box-shadow: var(--shadow-lg), 0 0 40px rgba(255, 0, 110, 0.1) !important;
    border-radius: var(--border-radius-lg) !important;
    position: relative !important;
    padding: 0 !important;
    margin: auto !important;
}

#settingsModal .modal-content.settings-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    z-index: 1;
}

#settingsModal .settings-modal-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 1.75rem 2rem !important;
    border-bottom: 2px solid var(--border-color) !important;
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.1), rgba(131, 56, 236, 0.05)) !important;
    position: relative !important;
    margin: 0 !important;
}

#settingsModal .settings-modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.settings-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.settings-header-icon {
    font-size: 1.75rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(255, 0, 110, 0.3);
}

.settings-modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-dark);
}

.settings-header-subtitle {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0.25rem 0 0 0;
    font-weight: 400;
}

.settings-close-btn {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--border-color) !important;
    font-size: 1.5rem !important;
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-light) !important;
}

.settings-close-btn:hover {
    background: rgba(255, 0, 110, 0.1) !important;
    border-color: var(--primary-color) !important;
    transform: rotate(90deg);
    box-shadow: 0 0 12px rgba(255, 0, 110, 0.3);
}

#settingsModal .settings-modal-body {
    padding: 2rem !important;
    margin: 0 !important;
    background: transparent !important;
}

/* ===========================
   Page Settings - Design complet refait
   =========================== */

/* Reset CSS global pour la page settings - Override user agent stylesheet */
body:has(.settings-page-header) .container,
.container:has(.settings-page-header) {
    box-sizing: border-box !important;
}

body:has(.settings-page-header) .settings-page-header,
.container .settings-page-header {
    all: initial;
    display: flex !important;
    align-items: center !important;
    gap: 1.5rem !important;
    margin-bottom: 3rem !important;
    padding: 2rem 0 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

body:has(.settings-page-header) .settings-page-header *,
.container .settings-page-header * {
    box-sizing: border-box !important;
}

/* Header de la page settings - Styles très spécifiques avec !important */
.settings-page-header {
    display: flex !important;
    align-items: center !important;
    gap: 1.5rem !important;
    margin-bottom: 3rem !important;
    padding: 2rem 0 !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.settings-page-header .settings-header-icon {
    font-size: 2.5rem !important;
    width: 64px !important;
    height: 64px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    background-color: var(--primary-color) !important;
    border-radius: var(--border-radius-lg) !important;
    box-shadow: 0 8px 24px rgba(255, 0, 110, 0.4) !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.settings-page-header h1 {
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    margin: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    background: linear-gradient(135deg, var(--text-dark), var(--primary-color)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: var(--text-dark) !important;
    line-height: 1.2 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Contenu de la page - Styles très spécifiques */
.settings-page-content {
    max-width: 750px !important;
    margin: 0 auto !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
}

/* Menu déroulant - Styles très spécifiques avec !important */
.settings-dropdown-container {
    position: relative !important;
    margin-bottom: 1.5rem !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.settings-dropdown-btn {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1.25rem !important;
    padding: 1.5rem 2rem !important;
    background: var(--dark-card) !important;
    background-color: var(--dark-card) !important;
    border: 2px solid var(--border-color) !important;
    border-width: 2px !important;
    border-radius: var(--border-radius-lg) !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: var(--text-light) !important;
    margin: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    outline: none !important;
    outline-width: 0 !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    text-align: left !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: normal !important;
    vertical-align: baseline !important;
    overflow: visible !important;
}

.settings-dropdown-text {
    flex: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block !important;
}

.settings-dropdown-btn:hover {
    border-color: var(--primary-color) !important;
    box-shadow: 0 8px 32px rgba(255, 0, 110, 0.4), 0 0 0 1px rgba(255, 0, 110, 0.2) !important;
    transform: translateY(-2px) !important;
    background: rgba(255, 0, 110, 0.05) !important;
    background-color: rgba(255, 0, 110, 0.05) !important;
}

.settings-dropdown-btn.active {
    border-color: var(--primary-color) !important;
    background: rgba(255, 0, 110, 0.1) !important;
    background-color: rgba(255, 0, 110, 0.1) !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-bottom: none !important;
    border-bottom-width: 0 !important;
}

.settings-dropdown-icon {
    font-size: 1.5rem !important;
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    background-color: var(--primary-color) !important;
    border-radius: var(--border-radius) !important;
    box-shadow: 0 4px 12px rgba(255, 0, 110, 0.4) !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    line-height: 1 !important;
}

.settings-dropdown-arrow {
    font-size: 1rem !important;
    color: var(--text-muted) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    user-select: none !important;
    font-weight: bold !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 0, 110, 0.15) !important;
    background-color: rgba(255, 0, 110, 0.15) !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    line-height: 1 !important;
}

.settings-dropdown-btn.active .settings-dropdown-arrow {
    transform: rotate(180deg) !important;
    color: var(--primary-color) !important;
    background: rgba(255, 0, 110, 0.25) !important;
    background-color: rgba(255, 0, 110, 0.25) !important;
    box-shadow: 0 0 12px rgba(255, 0, 110, 0.4) !important;
}

.settings-dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: var(--dark-card) !important;
    background-color: var(--dark-card) !important;
    border: 2px solid var(--primary-color) !important;
    border-top: none !important;
    border-top-width: 0 !important;
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg) !important;
    box-shadow: 0 8px 32px rgba(255, 0, 110, 0.4) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 100 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    display: block !important;
}

.settings-dropdown-menu.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    max-height: 800px !important;
    padding: 2rem !important;
    overflow: visible !important;
    display: block !important;
}

.settings-dropdown-item {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
    margin-bottom: 2rem !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.settings-dropdown-item:last-child {
    margin-bottom: 0 !important;
}

.settings-dropdown-item .settings-item {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    width: 100% !important;
    background: rgba(255, 0, 110, 0.08) !important;
    background-color: rgba(255, 0, 110, 0.08) !important;
}

.settings-dropdown-item .settings-item:hover {
    background: rgba(255, 0, 110, 0.15) !important;
    background-color: rgba(255, 0, 110, 0.15) !important;
}

.settings-dropdown-section-title {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: var(--text-light) !important;
    margin: 0 0 1rem 0 !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.settings-dropdown-item .settings-radio-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.875rem !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    padding: 0 !important;
}

.settings-dropdown-item .settings-radio {
    width: 100% !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

/* Responsive pour le menu déroulant */
@media (max-width: 600px) {
    .settings-dropdown-btn {
        padding: 1.5rem 1.5rem;
        font-size: 1.1rem;
    }
    
    .settings-dropdown-menu.active {
        padding: 1.5rem;
    }
}

/* Styles pour les boutons accordéon en dehors de la modale */
button.settings-accordion-header,
.settings-accordion > button.settings-accordion-header {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 1.5rem 1.75rem !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-width: 0 !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    text-align: left !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: var(--text-light) !important;
    margin: 0 !important;
    outline: none !important;
    outline-width: 0 !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: normal !important;
    vertical-align: baseline !important;
    overflow: visible !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
}

button.settings-accordion-header:hover,
.settings-accordion > button.settings-accordion-header:hover {
    background: rgba(255, 0, 110, 0.1) !important;
    background-color: rgba(255, 0, 110, 0.1) !important;
}

button.settings-accordion-header:focus,
.settings-accordion > button.settings-accordion-header:focus {
    outline: 2px solid var(--primary-color) !important;
    outline-offset: -2px !important;
    background: rgba(255, 0, 110, 0.1) !important;
}

button.settings-accordion-header.active,
.settings-accordion > button.settings-accordion-header.active {
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.15), rgba(131, 56, 236, 0.15)) !important;
    background-color: rgba(255, 0, 110, 0.15) !important;
    border-bottom: 2px solid var(--primary-color) !important;
}

/* Accordéon des préférences de notification */
.settings-accordion {
    background: var(--dark-card);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: 1rem;
}

.settings-accordion:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(255, 0, 110, 0.3), 0 0 0 1px rgba(255, 0, 110, 0.1);
    transform: translateY(-2px);
}

/* Styles très spécifiques pour le bouton accordéon - override user agent */
button.settings-accordion-header,
#settingsModal button.settings-accordion-header,
.settings-accordion > button.settings-accordion-header,
#settingsModal .settings-accordion button.settings-accordion-header {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 1.5rem 1.75rem !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-width: 0 !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    text-align: left !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: var(--text-light) !important;
    margin: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    outline: none !important;
    outline-width: 0 !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: normal !important;
    vertical-align: baseline !important;
    overflow: visible !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
}

button.settings-accordion-header:hover,
#settingsModal button.settings-accordion-header:hover,
.settings-accordion > button.settings-accordion-header:hover {
    background: rgba(255, 0, 110, 0.1) !important;
    background-color: rgba(255, 0, 110, 0.1) !important;
}

button.settings-accordion-header:focus,
#settingsModal button.settings-accordion-header:focus {
    outline: 2px solid var(--primary-color) !important;
    outline-offset: -2px !important;
    background: rgba(255, 0, 110, 0.1) !important;
}

button.settings-accordion-header.active,
#settingsModal button.settings-accordion-header.active,
.settings-accordion > button.settings-accordion-header.active {
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.15), rgba(131, 56, 236, 0.15)) !important;
    background-color: rgba(255, 0, 110, 0.15) !important;
    border-bottom: 2px solid var(--primary-color) !important;
}

.settings-accordion-title {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex: 1;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-light);
    margin: 0;
    padding: 0;
}

.settings-accordion-icon {
    font-size: 2rem;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius);
    box-shadow: 0 6px 16px rgba(255, 0, 110, 0.5);
    flex-shrink: 0;
}

.settings-accordion-arrow {
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    font-weight: bold;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 0, 110, 0.15);
    border-radius: 50%;
    flex-shrink: 0;
}

.settings-accordion-header.active .settings-accordion-arrow {
    transform: rotate(180deg);
    color: var(--primary-color);
    background: rgba(255, 0, 110, 0.25);
    box-shadow: 0 0 12px rgba(255, 0, 110, 0.4);
}

.settings-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.settings-accordion-content.active {
    max-height: 1000px;
}

.settings-accordion-inner {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

/* Styles pour les sous-sections */
#settingsModal .settings-subsection,
.settings-accordion-inner .settings-subsection {
    padding-top: 1.5rem !important;
    border-top: 2px solid var(--border-color) !important;
    margin-top: 1.5rem !important;
}

.settings-subsection-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-light);
    margin: 0 0 1.25rem 0;
    padding: 0;
}

.settings-subsection-description {
    display: none;
}

/* Styles spécifiques pour les items de paramètres */
.settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.75rem;
    background: rgba(255, 0, 110, 0.1);
    border-radius: var(--border-radius-lg);
    border: 2px solid var(--border-color);
    transition: var(--transition);
    margin: 0;
    margin-bottom: 1.25rem;
    box-sizing: border-box;
}

.settings-item:last-child {
    margin-bottom: 0;
}

.settings-item:hover {
    background: rgba(255, 0, 110, 0.18);
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 0, 110, 0.35), 0 0 0 1px rgba(255, 0, 110, 0.25);
}

/* Styles pour le contenu des items - Très spécifiques */
.settings-item-content,
#settingsModal .settings-item-content,
.settings-accordion-inner .settings-item-content,
.settings-dropdown-item .settings-item-content {
    display: flex !important;
    align-items: flex-start !important;
    align-items: center !important;
    gap: 1rem !important;
    flex: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
}

.settings-item-icon {
    font-size: 1.5rem !important;
    width: 48px !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.25), rgba(131, 56, 236, 0.25)) !important;
    background-color: rgba(255, 0, 110, 0.25) !important;
    border-radius: var(--border-radius) !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    line-height: 1 !important;
}

.settings-item-text {
    flex: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.settings-item h3 {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    color: var(--text-light) !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.settings-item-description {
    display: none !important;
}

@media (max-width: 600px) {
    .settings-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .settings-item-content {
        width: 100%;
    }
}

/* Styles pour le groupe de radio buttons */
#settingsModal .settings-radio-group,
.settings-subsection .settings-radio-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    width: 100% !important;
}

/* Styles spécifiques pour les radio buttons - Override user agent */
.settings-radio,
label.settings-radio {
    display: flex !important;
    align-items: center !important;
    gap: 1.25rem !important;
    padding: 1.5rem 1.75rem !important;
    border-radius: var(--border-radius-lg) !important;
    background: rgba(255, 0, 110, 0.1) !important;
    background-color: rgba(255, 0, 110, 0.1) !important;
    border: 2px solid var(--border-color) !important;
    border-width: 2px !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    position: relative !important;
    overflow: hidden !important;
    margin: 0 !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 1rem !important;
    box-sizing: border-box !important;
    width: 100% !important;
    text-align: left !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: inherit !important;
    font-weight: normal !important;
    line-height: normal !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    vertical-align: baseline !important;
}

.settings-radio:last-child,
label.settings-radio:last-child {
    margin-bottom: 0 !important;
}

.settings-radio::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 4px !important;
    height: 100% !important;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    background-color: var(--primary-color) !important;
    transform: scaleY(0) !important;
    transition: transform 0.3s ease !important;
    z-index: 1 !important;
}

.settings-radio:hover {
    background: rgba(255, 0, 110, 0.18) !important;
    background-color: rgba(255, 0, 110, 0.18) !important;
    border-color: var(--primary-color) !important;
    transform: translateX(6px) !important;
    box-shadow: 0 6px 20px rgba(255, 0, 110, 0.3) !important;
}

.settings-radio:hover::before {
    transform: scaleY(1) !important;
}

/* ===== Icône œil pour les champs mot de passe (login / register) ===== */
.password-wrapper {
    position: relative;
    display: block;
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
    width: 100%;
    padding-right: 3rem; /* espace pour l'icône à droite dans le champ */
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 999px;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    color: var(--text-muted);
}

.password-toggle:focus {
    outline: none;
}

.password-eye {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.password-eye .eye-pupil {
    fill: currentColor;
}

.password-eye .eye-outline {
    fill: none;
}

.password-eye .eye-slash {
    opacity: 1; /* barre visible lorsque le mot de passe est caché */
}

.password-eye.visible .eye-slash {
    opacity: 0; /* on enlève la barre quand le mot de passe est visible */
}

.settings-radio.active {
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.25), rgba(131, 56, 236, 0.2)) !important;
    background-color: rgba(255, 0, 110, 0.25) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 4px rgba(255, 0, 110, 0.2), 0 8px 24px rgba(255, 0, 110, 0.4) !important;
    transform: translateX(4px) !important;
}

.settings-radio.active::before {
    transform: scaleY(1) !important;
}

.settings-radio input[type="radio"],
label.settings-radio input[type="radio"] {
    accent-color: var(--primary-color) !important;
    width: 20px !important;
    height: 20px !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    -webkit-appearance: radio !important;
    -moz-appearance: radio !important;
    appearance: radio !important;
}

/* Styles pour les icônes et textes des radio buttons */
.radio-icon {
    font-size: 1.75rem !important;
    width: 48px !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.25), rgba(131, 56, 236, 0.25)) !important;
    background-color: rgba(255, 0, 110, 0.25) !important;
    border-radius: var(--border-radius) !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    line-height: 1 !important;
}

.settings-radio.active .radio-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    background-color: var(--primary-color) !important;
    box-shadow: 0 6px 16px rgba(255, 0, 110, 0.5) !important;
}

.radio-title {
    font-weight: 700 !important;
    color: var(--text-light) !important;
    font-size: 1.1rem !important;
    margin: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    display: inline-block !important;
}

.radio-subtitle {
    display: none !important;
}

/* Switch (toggle) utilisé pour l'activation des emails - Style cohérent */
.switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 30px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    border-radius: 34px;
    border: 1px solid var(--border-color);
}

.slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 2px;
    background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.9));
    transition: var(--transition);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.switch:hover .slider {
    background-color: rgba(255, 0, 110, 0.2);
    border-color: rgba(255, 0, 110, 0.4);
}

.switch input:checked + .slider {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 0, 110, 0.2), 0 4px 12px rgba(255, 0, 110, 0.4);
}

.switch input:checked + .slider:before {
    transform: translateX(26px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.switch input:focus + .slider {
    box-shadow: 0 0 0 3px rgba(255, 0, 110, 0.3);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* ===========================
   Override final pour page Settings - Force tous les styles
   =========================== */

/* Reset CSS global pour la page settings - Override user agent */
.settings-page-wrapper *,
.settings-page-wrapper *::before,
.settings-page-wrapper *::after {
    box-sizing: border-box !important;
}

/* Reset pour tous les éléments de base */
.settings-page-wrapper button,
.settings-page-wrapper span,
.settings-page-wrapper div,
.settings-page-wrapper h1,
.settings-page-wrapper h3,
.settings-page-wrapper h4,
.settings-page-wrapper label,
.settings-page-wrapper input {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    font: inherit !important;
    color: inherit !important;
    line-height: inherit !important;
    text-decoration: none !important;
    vertical-align: baseline !important;
    outline: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* Force tous les styles de la page settings avec spécificité maximale */
.settings-page-wrapper .settings-page-header,
.settings-page-wrapper .settings-page-content,
.settings-page-wrapper .settings-dropdown-container,
.settings-page-wrapper .settings-dropdown-btn,
.settings-page-wrapper .settings-dropdown-menu,
.settings-page-wrapper .settings-dropdown-item,
.settings-page-wrapper .settings-item,
.settings-page-wrapper .settings-radio,
.settings-page-wrapper label.settings-radio {
    box-sizing: border-box !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Force les styles des spans dans le bouton */
.settings-page-wrapper .settings-dropdown-btn span,
.settings-page-wrapper .settings-dropdown-icon,
.settings-page-wrapper .settings-dropdown-text,
.settings-page-wrapper .settings-dropdown-arrow {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    font: inherit !important;
    color: inherit !important;
    line-height: inherit !important;
    text-decoration: none !important;
    vertical-align: baseline !important;
    box-sizing: border-box !important;
}

/* Force les styles des h1, h3 et h4 */
.settings-page-wrapper .settings-page-header h1,
.settings-page-wrapper .settings-item h3,
.settings-page-wrapper .settings-dropdown-section-title {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    font: inherit !important;
    font-weight: 700 !important;
    color: var(--text-light) !important;
    line-height: 1.4 !important;
    box-sizing: border-box !important;
}

/* Force les styles des labels */
.settings-page-wrapper label.settings-radio {
    display: flex !important;
    align-items: center !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

/* Force les styles des inputs */
.settings-page-wrapper input[type="radio"],
.settings-page-wrapper input[type="checkbox"] {
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Blocage d'amis dans les paramètres */
.friends-block-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 480px;
    overflow-y: auto;
}

.friend-block-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0.9rem;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.friend-block-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.friend-block-avatar img {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    object-fit: cover;
}

.friend-avatar-placeholder-small {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #fff;
}

.friend-block-info {
    display: flex;
    flex-direction: column;
}

.friend-block-name {
    font-weight: 600;
}

.friend-block-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.friend-block-actions {
    flex-shrink: 0;
}

.btn-small {
    padding: 0.35rem 0.8rem;
    font-size: 0.85rem;
}

/* ===========================
   STYLES PWA
   =========================== */

/* Bouton d'installation PWA */
.pwa-install-btn {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 0, 110, 0.3);
    position: relative;
    z-index: 1000;
    white-space: nowrap;
    flex-shrink: 0;
}

.pwa-install-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    object-fit: cover;
}

/* Quand le bouton est affiché */
.pwa-install-btn[style*="flex"],
.pwa-install-btn.show {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.pwa-install-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 25px rgba(255, 0, 110, 0.5), 0 0 20px rgba(255, 0, 110, 0.3);
}

.pwa-install-btn:active {
    transform: translateY(0) scale(0.98);
}

.pwa-install-btn:active {
    transform: translateY(0);
}

.pwa-install-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}

/* Modal d'instructions iOS et autres navigateurs */
.ios-install-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1.5rem;
    animation: fadeIn 0.3s ease-out;
    cursor: pointer;
}

.ios-install-content {
    background: linear-gradient(135deg, var(--dark-card) 0%, var(--dark-card-hover) 100%);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    max-width: 400px;
    width: 100%;
    border: 2px solid rgba(255, 0, 110, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 0, 110, 0.2);
}

.ios-install-content h3 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.ios-install-content ol {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    line-height: 1.8;
}

.ios-install-content ol li {
    margin-bottom: 0.8rem;
}

.ios-install-content ol li strong {
    color: var(--primary-color);
}

.ios-install-content button {
    width: 100%;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.ios-install-content button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 0, 110, 0.3);
}

/* Notification de mise à jour PWA */
.pwa-update-notification {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--dark-card) 0%, var(--dark-card-hover) 100%);
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255, 0, 110, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 0, 110, 0.2);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideUp 0.3s ease-out;
    max-width: 90%;
}

.pwa-update-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-light);
}

.pwa-update-content span {
    font-weight: 500;
}

.pwa-update-content button {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.pwa-update-content button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 0, 110, 0.3);
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Message de succès d'installation */
.pwa-install-success {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 1.5rem;
    animation: fadeIn 0.3s ease-out;
}

.pwa-success-content {
    background: linear-gradient(135deg, var(--dark-card) 0%, var(--dark-card-hover) 100%);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    max-width: 400px;
    width: 100%;
    border: 2px solid rgba(6, 255, 165, 0.5);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(6, 255, 165, 0.3);
    text-align: center;
}

.pwa-success-content svg {
    color: var(--success-color);
    margin-bottom: 1rem;
}

.pwa-success-content h3 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.pwa-success-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.pwa-success-content button {
    width: 100%;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--success-color), #05d994);
    color: var(--dark-bg);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.pwa-success-content button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(6, 255, 165, 0.3);
}


/* Styles pour les appareils mobiles */
@media (max-width: 768px) {
    .pwa-install-btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
    
    .ios-install-content {
        padding: 1.5rem;
    }
    
    .pwa-update-notification {
        left: 1rem;
        right: 1rem;
        transform: none;
        max-width: none;
    }

    .pwa-install-prompt {
        bottom: -300px;
        left: 1rem;
        right: 1rem;
        width: auto;
        max-width: none;
        transform: translateX(0) !important;
    }

    .pwa-install-prompt.show {
        bottom: 1rem !important;
    }

    .pwa-prompt-content {
        padding: 1.5rem;
    }

    .pwa-prompt-content h3 {
        font-size: 1.2rem;
    }
    
    @keyframes slideUp {
        from {
            transform: translateY(100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
}

