* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Styles pour l'interface animateur (index.html) */
.host-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.video-section {
    margin-bottom: 30px;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#youtube-player {
    width: 100%;
    height: 450px;
    border: none;
}

.url-input {
    width: 100%;
    max-width: 600px;
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    margin-bottom: 20px;
    transition: border-color 0.3s ease;
}

.url-input:focus {
    outline: none;
    border-color: #667eea;
}

.load-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.load-btn:hover {
    transform: translateY(-2px);
}

.buzz-display {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin: 20px 0;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.buzz-display.show {
    opacity: 1;
    transform: scale(1);
}

.player-status {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.player-card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.player-card:hover {
    transform: translateY(-2px);
}

.player-card.rouge { border-left: 5px solid #e74c3c; }
.player-card.bleu { border-left: 5px solid #3498db; }
.player-card.vert { border-left: 5px solid #2ecc71; }
.player-card.jaune { border-left: 5px solid #f1c40f; }

/* Styles pour l'interface joueur (player.html) */
.player-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    text-align: center;
}

.color-selection {
    margin-bottom: 30px;
}

.color-btn {
    width: 80px;
    height: 80px;
    border: none;
    border-radius: 50%;
    margin: 10px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.color-btn:hover {
    transform: scale(1.1);
}

.color-btn.rouge { background: linear-gradient(45deg, #e74c3c, #c0392b); }
.color-btn.bleu { background: linear-gradient(45deg, #3498db, #2980b9); }
.color-btn.vert { background: linear-gradient(45deg, #2ecc71, #27ae60); }
.color-btn.jaune { background: linear-gradient(45deg, #f1c40f, #f39c12); }

.color-btn.selected {
    transform: scale(1.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.buzzer-section {
    display: none;
}

.buzzer-btn {
    width: 200px;
    height: 200px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin: 20px auto;
}

.buzzer-btn:hover:not(:disabled) {
    transform: scale(1.05);
}

.buzzer-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.buzzer-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: scale(0.9);
}

.status-message {
    margin: 20px 0;
    padding: 15px;
    border-radius: 10px;
    font-weight: bold;
}

.status-message.error {
    background: #ff6b6b;
    color: white;
}

.status-message.success {
    background: #2ecc71;
    color: white;
}

.status-message.info {
    background: #3498db;
    color: white;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .host-container,
    .player-container {
        padding: 20px;
    }
    
    #youtube-player {
        height: 250px;
    }
    
    .buzzer-btn {
        width: 150px;
        height: 150px;
        font-size: 20px;
    }
    
    .color-btn {
        width: 60px;
        height: 60px;
        font-size: 14px;
    }
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.buzzer-btn:not(:disabled) {
    animation: pulse 2s infinite;
}

.buzzer-btn:disabled {
    animation: none;
} 