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

/* Loading Screen Styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    font-family: 'Orbitron', monospace;
}

.loading-container {
    text-align: center;
    color: #00ff88;
}

.usb-icon {
    width: 80px;
    height: 40px;
    margin: 0 auto 30px;
    position: relative;
    animation: usbPulse 2s ease-in-out infinite;
}

.usb-body {
    width: 60px;
    height: 25px;
    background: linear-gradient(45deg, #333, #666);
    border-radius: 5px;
    position: relative;
    border: 2px solid #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.usb-body::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 10px;
    background: #00ff88;
    border-radius: 2px;
    animation: dataTransfer 1.5s ease-in-out infinite;
}

.usb-connector {
    width: 20px;
    height: 15px;
    background: linear-gradient(45deg, #555, #888);
    border-radius: 0 3px 3px 0;
    position: absolute;
    right: -18px;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid #00ff88;
}

.loading-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.8);
    letter-spacing: 3px;
}

.loading-text {
    font-size: 1.2em;
    margin-bottom: 20px;
    opacity: 0.8;
    animation: textGlow 2s ease-in-out infinite alternate;
}

.return-message {
    font-size: 1em;
    margin-bottom: 30px;
    color: #00ff88;
    opacity: 0.8;
    font-style: italic;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
    animation: textGlow 2s ease-in-out infinite alternate;
}

.maintenance-message {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #ff4444;
    border-radius: 10px;
    padding: 30px;
    margin: 30px auto;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 0 30px rgba(255, 68, 68, 0.3);
}

.maintenance-message h3 {
    color: #ff4444;
    font-size: 1.5em;
    margin-bottom: 15px;
    text-shadow: 0 0 15px rgba(255, 68, 68, 0.8);
    animation: warningPulse 2s ease-in-out infinite;
}

.maintenance-message p {
    color: #ffffff;
    font-size: 1.2em;
    margin-bottom: 10px;
    line-height: 1.4;
}

.maintenance-message .sub-text {
    color: #cccccc;
    font-size: 0.9em;
    font-style: italic;
    opacity: 0.8;
}

.maintenance-message strong {
    color: #ff4444;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.6);
}

.loading-dots {
    font-size: 2em;
    letter-spacing: 5px;
}

.loading-dots span {
    animation: dotBounce 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0s; }

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

@keyframes dataTransfer {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scaleX(0.8); }
    50% { opacity: 1; transform: translate(-50%, -50%) scaleX(1.2); }
}

@keyframes textGlow {
    0% { text-shadow: 0 0 20px rgba(0, 255, 136, 0.5); }
    100% { text-shadow: 0 0 30px rgba(0, 255, 136, 1); }
}

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

@keyframes dotBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2a0a0a 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

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

/* Header */
.header {
    text-align: center;
    padding: 60px 0;
    background: radial-gradient(circle at center, rgba(255, 0, 0, 0.1) 0%, transparent 70%);
}

.title {
    font-size: 4rem;
    font-weight: 900;
    color: #ff0040;
    text-shadow: 0 0 20px rgba(255, 0, 64, 0.5);
    letter-spacing: 8px;
    margin-bottom: 10px;
    animation: glow 2s ease-in-out infinite alternate;
}

.subtitle {
    font-size: 1.2rem;
    color: #cccccc;
    letter-spacing: 4px;
    font-weight: 300;
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(255, 0, 64, 0.5);
    }
    to {
        text-shadow: 0 0 30px rgba(255, 0, 64, 0.8), 0 0 40px rgba(255, 0, 64, 0.3);
    }
}

/* Game Info */
.game-info {
    margin: 80px 0;
}

.info-card {
    display: flex;
    justify-content: space-around;
    background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
    border: 2px solid #333;
    border-radius: 20px;
    padding: 40px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.info-item {
    text-align: center;
    flex: 1;
}

.info-item .number {
    display: block;
    font-size: 3.5rem;
    font-weight: 900;
    color: #ff0040;
    margin-bottom: 10px;
}

.info-item .label {
    font-size: 1rem;
    color: #aaaaaa;
    letter-spacing: 2px;
}

.info-item.prize .number {
    color: #ffd700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

/* Warning */
.warning {
    margin: 60px 0;
}

.warning-box {
    background: linear-gradient(145deg, #2a0a0a, #1a0505);
    border: 2px solid #ff0040;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 0 20px rgba(255, 0, 64, 0.2);
}

.warning-box h2 {
    color: #ff0040;
    font-size: 2rem;
    margin-bottom: 20px;
    animation: pulse 1.5s infinite;
}

.warning-box p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #ffcccc;
}

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

/* Rules */
.rules {
    margin: 80px 0;
}

.rules h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 50px;
    letter-spacing: 3px;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.rule-card {
    background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
    border: 1px solid #333;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rule-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 0, 64, 0.1);
}

.rule-number {
    font-size: 3rem;
    font-weight: 900;
    color: #ff0040;
    margin-bottom: 15px;
}

.rule-card h3 {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.rule-card p {
    color: #cccccc;
    line-height: 1.5;
}



/* Registration */
.registration {
    margin: 80px 0;
}

.registration-box {
    background: linear-gradient(145deg, #2a1a1a, #1a0f0f);
    border: 2px solid #ff0040;
    border-radius: 20px;
    padding: 50px;
    text-align: center;
    box-shadow: 0 0 30px rgba(255, 0, 64, 0.2);
}

.registration-box h2 {
    font-size: 2.5rem;
    color: #ff0040;
    margin-bottom: 20px;
}

.registration-box p {
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 30px;
}

.register-btn {
    background: linear-gradient(145deg, #ff0040, #cc0030);
    color: white;
    border: none;
    padding: 20px 50px;
    font-size: 1.3rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 2px;
    box-shadow: 0 5px 15px rgba(255, 0, 64, 0.3);
}

.register-btn:hover {
    background: linear-gradient(145deg, #ff1050, #dd0040);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 0, 64, 0.4);
}

.disclaimer {
    margin-top: 20px;
    color: #888;
    font-style: italic;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid #333;
    margin-top: 80px;
}

.footer p {
    color: #666;
    margin-bottom: 10px;
}

.footer-warning {
    font-size: 0.9rem;
    color: #888;
}

/* Responsive */
@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }
    
    .info-card {
        flex-direction: column;
        gap: 30px;
    }
    
    .rules-grid,
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .registration-box {
        padding: 30px 20px;
    }
    
    .register-btn {
        padding: 15px 30px;
        font-size: 1.1rem;
    }
}

/* Animations supplémentaires */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-info,
.warning,
.rules,
.games-preview,
.registration {
    animation: fadeInUp 0.8s ease-out;
}

/* Effet de particules en arrière-plan */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 0, 64, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 0, 64, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}