/* Import des nouvelles polices Google */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Exo+2:wght@300;400;500;600;700;800&family=Rajdhani:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #0a192f;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

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

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

.gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center,
        rgba(2, 12, 27, 0) 0%,
        rgba(2, 12, 27, 0.8) 100%);
    animation: pulse 15s ease infinite;
}

.gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(41, 61, 147, 0.15) 0%,
        rgba(0, 123, 255, 0.15) 100%);
    filter: blur(60px);
    animation: move 8s ease infinite;
}

.content {
    position: relative;
    z-index: 2;
    margin-top: 60px; /* Correspond à la hauteur de la top-bar */
    margin-left: 60px; /* Correspond à la largeur de la sidebar rétractée */
    width: calc(100% - 60px);
    min-height: calc(100vh - 60px);
    transition: margin-left 0.3s ease, width 0.3s ease;
}

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

@keyframes move {
    0% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(10px, 10px);
    }
    50% {
        transform: translate(0, 20px);
    }
    75% {
        transform: translate(-10px, 10px);
    }
    100% {
        transform: translate(0, 0);
    }
}

.sidebar {
    position: fixed;
    left: -250px;
    top: 60px;
    height: calc(100% - 60px);
    width: 250px;
    background: rgba(13, 25, 48, 0.95);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
    z-index: 1000;
}

.sidebar.active {
    left: 0;
}

.toggle-btn {
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(13, 25, 48, 0.95);
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: none;
}

.arrow {
    color: white;
    font-size: 20px;
    transition: transform 0.3s ease;
}

.sidebar.active .arrow {
    transform: rotate(180deg);
}

.sidebar-content {
    padding: 20px 0;
    color: white;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    position: relative;
}

.nav-item:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
    color: white;
    background: rgba(52, 152, 219, 0.2);
    border-left: 4px solid #3498db;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: #3498db;
}

.nav-text {
    font-weight: 400;
    letter-spacing: 0.5px;
}

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(13, 25, 48, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.center-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 60px;  /* Augmenté de 50px à 60px */
    display: flex;
    align-items: center;
}

.center-logo img {
    height: 50px;  /* Augmenté de 40px à 50px */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(52, 152, 219, 0.3));
    transition: all 0.3s ease;
}

.center-logo img:hover {
    transform: scale(1.05);  /* Léger zoom au survol */
    filter: drop-shadow(0 0 12px rgba(52, 152, 219, 0.6)) brightness(1.2);
    cursor: pointer;
    animation: pulse-light 2s infinite;
}

@keyframes pulse-light {
    0% {
        filter: drop-shadow(0 0 12px rgba(52, 152, 219, 0.6)) brightness(1.2);
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(52, 152, 219, 0.8)) brightness(1.3);
    }
    100% {
        filter: drop-shadow(0 0 12px rgba(52, 152, 219, 0.6)) brightness(1.2);
    }
}

/* Ajuster le z-index pour que le logo soit toujours visible */
.logo, .user-section {
    position: relative;
    z-index: 2;
}

.logo h1 {
    color: white;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 2px;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(90deg, #3498db, #2980b9);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
}

.login-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.login-btn:hover {
    background: #2980b9;
}

/* Popup Styles */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.popup-overlay.active {
    display: flex;
}

.popup-content {
    background: rgba(13, 25, 48, 0.95);
    border-radius: 10px;
    width: 400px;
    border: 1px solid rgba(52, 152, 219, 0.3);
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.2);
    animation: popup-appear 0.3s ease;
    position: relative;
}

.popup-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-header h2 {
    color: white;
    font-size: 1.5rem;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: white;
}

.popup-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: white;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #2980b9;
}

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

/* Style pour le username une fois connecté */
.user-display {
    background: rgba(52, 152, 219, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(52, 152, 219, 0.3);
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.user-display:hover {
    background: rgba(52, 152, 219, 0.2);
    border-color: rgba(52, 152, 219, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.user-display span {
    background: linear-gradient(45deg, #3498db, #2980b9);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

.user-display::before {
    content: '👤';
    font-size: 1.1rem;
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #3498db;
}

.home-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    color: white;
}

.welcome-banner {
    text-align: center;
    margin-bottom: 4rem;
}

.welcome-banner h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 4.5rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 40px;
    background: linear-gradient(45deg, #3498db, #2980b9, #3498db);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient 3s ease infinite;
    text-shadow: 0 0 30px rgba(52, 152, 219, 0.3);
    letter-spacing: 4px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.feature-card {
    background: linear-gradient(135deg, rgba(13, 25, 48, 0.8), rgba(13, 25, 48, 0.95));
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(52, 152, 219, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.2);
    border-color: rgba(52, 152, 219, 0.6);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
}

.feature-card h3 {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #fff, #e0e0e0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.feature-card p {
    font-family: 'Rajdhani', sans-serif;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.steps-section {
    margin-top: 80px;
    text-align: center;
}

.steps-section h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 60px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
}

.steps-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #3498db, transparent);
}

.steps-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.step-card {
    background: rgba(13, 25, 48, 0.8);
    padding: 30px;
    border-radius: 15px;
    width: 250px;
    position: relative;
    border: 1px solid rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.2);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: #3498db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #3498db, #2980b9);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.step-card h3 {
    margin: 20px 0 10px;
    color: #3498db;
    font-family: 'Exo 2', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 25px 0 15px;
    color: #3498db;
    letter-spacing: 1px;
}

.step-card p {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Rajdhani', sans-serif;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    line-height: 1.6;
    font-weight: 500;
    letter-spacing: 0.5px;
}

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

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

@media (max-width: 768px) {
    .home-section {
        padding: 40px 15px;
    }
    
    .welcome-banner h1 {
        font-size: 3rem;
        letter-spacing: 2px;
    }
    
    .steps-container {
        flex-direction: column;
        align-items: center;
    }

    .feature-card h3 {
        font-size: 1.5rem;
    }
    
    .step-card h3 {
        font-size: 1.5rem;
    }
}

.inventory-section {
    padding: 15px 25px;
    margin: 10px 15px 20px 15px;
    background: linear-gradient(45deg, rgba(52, 152, 219, 0.15), rgba(41, 128, 185, 0.15));
    border-radius: 10px;
    border: 1px solid rgba(52, 152, 219, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.inventory-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(52, 152, 219, 0) 0%,
        rgba(52, 152, 219, 0.1) 50%,
        rgba(52, 152, 219, 0) 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.inventory-section:hover {
    transform: translateY(-2px);
    border-color: rgba(52, 152, 219, 0.6);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
    background: linear-gradient(45deg, rgba(52, 152, 219, 0.2), rgba(41, 128, 185, 0.2));
}

.inventory-section:hover::before {
    transform: translateX(100%);
}

.inventory-icon {
    font-size: 1.4rem;
    filter: drop-shadow(0 0 8px rgba(52, 152, 219, 0.4));
    animation: float 2s ease-in-out infinite;
}

.inventory-text {
    color: #3498db;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
    text-transform: uppercase;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-3px);
    }
    100% {
        transform: translateY(0px);
    }
}

#adminPassword {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px;
    width: 100%;
    color: white;
    border-radius: 4px;
}

#adminPassword:focus {
    border-color: #3498db;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
    outline: none;
}

.admin-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0a192f;
    z-index: 3000;
    display: none;
    overflow-y: auto;
}

.admin-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.admin-content {
    position: relative;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(13, 25, 48, 0.95);
    border-radius: 10px;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.admin-header h1 {
    color: #3498db;
    font-size: 2rem;
    font-weight: 600;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.8rem 1.5rem;
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 5px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(52, 152, 219, 0.2);
    transform: translateX(-5px);
}

.back-icon {
    font-size: 1.2rem;
}

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

.admin-card {
    background: rgba(13, 25, 48, 0.95);
    border-radius: 10px;
    padding: 2rem;
    border: 1px solid rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
}

.admin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
}

.admin-card h3 {
    color: #3498db;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Styles pour la popup d'inventaire */
.inventory-popup {
    width: 1200px; /* Augmenté de 800px à 1200px */
    max-width: 95vw;
    max-height: 90vh; /* Augmenté de 80vh à 90vh */
    background: rgba(13, 25, 48, 0.98);
}

.inventory-stats {
    display: flex;
    gap: 2rem;
    padding: 1.5rem; /* Augmenté de 1rem à 1.5rem */
    margin-bottom: 1.5rem;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

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

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.stat-value {
    color: #3498db;
    font-weight: 600;
    font-size: 1.2rem; /* Augmenté de 1.1rem à 1.2rem */
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); /* Réduit de 150px à 120px */
    gap: 1rem; /* Réduit de 1.5rem à 1rem */
    padding: 1.5rem;
    overflow-y: auto;
    max-height: calc(90vh - 200px); /* Ajusté en fonction de la nouvelle hauteur */
}

.inventory-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 8px;
    padding: 0.75rem; /* Réduit de 1rem à 0.75rem */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem; /* Réduit de 0.5rem à 0.4rem */
    transition: all 0.3s ease;
    cursor: pointer;
}

.inventory-item:hover {
    transform: translateY(-2px);
    border-color: rgba(52, 152, 219, 0.6);
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.2);
}

.item-image {
    width: 80px; /* Réduit de 100px à 80px */
    height: 80px; /* Réduit de 100px à 80px */
    object-fit: contain;
}

.item-name {
    color: white;
    font-size: 0.85rem; /* Réduit de 1rem à 0.85rem */
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.item-value {
    color: #3498db;
    font-size: 0.8rem; /* Réduit de 0.9rem à 0.8rem */
    font-weight: 500;
}

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

.admin-btn {
    padding: 0.8rem 1.2rem;
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 5px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.admin-btn:hover {
    background: rgba(52, 152, 219, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

/* CoinFlip Styles */
.coinflip-section {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.coinflip-header h2 {
    color: white;
    font-size: 2rem;
    font-weight: 600;
    background: linear-gradient(45deg, #3498db, #2980b9);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.create-game-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.8rem 1.5rem;
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 5px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.create-game-btn:hover {
    background: rgba(52, 152, 219, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.plus-icon {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Create Game Popup Styles */
.create-game-popup {
    width: 1000px;
    max-width: 95vw;
    max-height: 90vh;
}

.create-game-inventory {
    max-height: 300px;
    overflow-y: auto;
}

.selected-items {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.selected-items-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    min-height: 100px;
    padding: 1rem;
    border: 1px dashed rgba(52, 152, 219, 0.3);
    border-radius: 8px;
    margin: 1rem 0;
}

.total-value {
    color: #3498db;
    font-size: 1.1rem;
    text-align: right;
}

.side-selection {
    margin-top: 2rem;
}

.sides-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.side-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.side-option:hover {
    transform: translateY(-2px);
}

.coin {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.2));
    border: 4px solid;
    transition: all 0.3s ease;
}

.red-coin {
    border-color: #e74c3c;
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.3);
}

.blue-coin {
    border-color: #3498db;
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.3);
}

.side-option.selected .coin {
    transform: scale(1.1);
}

.side-option.red.selected {
    background: rgba(231, 76, 60, 0.1);
}

.side-option.blue.selected {
    background: rgba(52, 152, 219, 0.1);
}

.create-btn {
    padding: 1rem 2rem;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.create-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.create-btn:not(:disabled):hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

/* Modifier le style du conteneur de jeux */
.games-container {
    display: flex; /* Changer grid en flex */
    flex-direction: row; /* Pour l'affichage horizontal */
    gap: 2rem;
    padding: 1rem;
    overflow-x: auto; /* Pour permettre le défilement horizontal */
    width: 100%;
    min-height: 400px; /* Hauteur minimale fixe */
}

.game-card {
    min-width: 300px; /* Largeur minimale fixe */
    max-width: 300px; /* Largeur maximale fixe */
    flex-shrink: 0; /* Empêche la compression des cartes */
    background: rgba(13, 25, 48, 0.95);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
}

.content-section {
    display: none;
    padding: 120px 2rem 2rem; /* Augmenté le padding-top de 2rem à 120px */
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.coinflip-container {
    padding-top: 40px; /* Ajout d'un padding supplémentaire pour la section coinflip */
}

.trade-section, .shop-section {
    padding-top: 120px; /* Ajuster le padding pour les sections à venir */
}

/* Ajuster quand la sidebar est étendue */
.sidebar.active + .content {
    margin-left: 240px; /* Correspond à la largeur de la sidebar étendue */
    width: calc(100% - 240px);
}

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

.coinflip-container {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.coinflip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(13, 25, 48, 0.95);
    border-radius: 15px;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.coinflip-title h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    background: linear-gradient(45deg, #3498db, #2980b9);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.live-games {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

.games-wrapper {
    background: rgba(13, 25, 48, 0.95);
    border-radius: 15px;
    border: 1px solid rgba(52, 152, 219, 0.3);
    padding: 1.5rem;
    overflow: hidden;
}

.games-container {
    display: flex;
    gap: 2rem;
    padding: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(52, 152, 219, 0.5) rgba(13, 25, 48, 0.5);
}

.game-card {
    min-width: 300px;
    background: rgba(20, 30, 60, 0.95);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
    scroll-snap-align: start;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(52, 152, 219, 0.6);
}

.player-side {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.player-side.red .coin {
    border-color: #e74c3c;
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.2);
}

.player-side.blue .coin {
    border-color: #3498db;
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.2);
}

.items-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.preview-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.preview-image:hover {
    transform: scale(1.2);
}

.join-btn {
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.join-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

.cancel-btn {
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.game-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.bet-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 0.9rem;
}

.bet-side {
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 500;
}

.bet-side.red {
    color: #e74c3c;
}

.bet-side.blue {
    color: #3498db;
}

.bet-amount {
    color: #2ecc71;
    font-weight: 600;
}

.game-card {
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(
        to right,
        #e74c3c 50%,
        #3498db 50%
    );
}

.users-list {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 1rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background: rgba(13, 25, 48, 0.8);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 4px;
}

.user-name {
    color: #3498db;
    font-weight: 600;
}

.join-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.users-management-card {
    min-height: 400px;
}

.users-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(13, 25, 48, 0.8);
    border-radius: 8px;
}

.search-users input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 4px;
    padding: 0.5rem;
    color: white;
    width: 200px;
}

.users-list-container {
    background: rgba(13, 25, 48, 0.8);
    border-radius: 8px;
    padding: 1rem;
    height: 300px;
    overflow-y: auto;
}

.users-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.user-item:hover {
    background: rgba(52, 152, 219, 0.1);
    transform: translateX(5px);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(52, 152, 219, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #3498db;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    color: #3498db;
    font-weight: 600;
}

.user-date {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}