/* Container général */
.mood-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Grille utilisateurs */
.profiles-wrapper {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
}

/* Carte profil */
.profile-card {
    background: #ffffff;
    padding: 10px;
    text-align: center;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.profile-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}

/* Nom utilisateur */
.profile-name {
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
}

/* Feux tricolores */

.traffic-lights-container {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;

}
.traffic-light {
    width: 85px;
    background: #1a1a1a;
    padding: 15px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 15px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.4);
}

.light {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin: 0 auto;
    background: #555;
    opacity: 0.2;
    transition: 
        opacity 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border 0.25s ease;
}

/* Colors */
.light.red { background: #e74c3c; }
.light.orange { background: #f39c12; }
.light.green { background: #2ecc71; }

/* When active (ON) */
.light.on {
    opacity: 1;
    transform: scale(1.25);
    border: 3px solid rgba(255,255,255,0.6);
    box-shadow:
        0 0 15px currentColor,
        0 0 35px currentColor,
        0 0 60px currentColor;
}

/* Formulaire changement d'état */
.mood-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Boutons radio stylisés */
.state-options {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.state-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-weight: 600;
    cursor: pointer;
    color: white;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.state-btn.level-red { background: #e74c3c; }
.state-btn.level-orange { background: #f39c12; }
.state-btn.level-green { background: #2ecc71; }

input[type="radio"] {
    display: none;
}

input[type="radio"]:checked + .state-btn {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Bouton soumettre */
.submit-btn {
    background: #4a6cf7;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.submit-btn:hover {
    background: #3a53c7;
}

/* Responsive mobile */
@media (max-width: 480px) {
    .profiles-grid {
        grid-template-columns: 1fr;
    }

    .state-options {
        gap: 15px;
    }
}
