* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background: #0d0d12;
    color: #ffffff;
    padding: 30px 20px;
}

.container,
.game-container,
.config-container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

/* ============================= */
/* LOGO ET TITRES */
/* ============================= */

.logo {
    font-size: 70px;
    margin-bottom: 15px;
}

h1 {
    font-size: clamp(42px, 8vw, 72px);
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 12px;
}

.subtitle {
    color: #a7a7b3;
    font-size: 20px;
    margin-bottom: 45px;
}

/* ============================= */
/* CARTES */
/* ============================= */

.card {
    background: #17171f;
    border: 1px solid #292934;
    border-radius: 24px;
    padding: 35px;
}

.card h2 {
    font-size: 24px;
    margin-bottom: 12px;
}

.card p {
    color: #a7a7b3;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* ============================= */
/* CARTE CONFIGURATION */
/* ============================= */

.config-card {
    background: #17171f;
    border: 1px solid #292934;
    border-radius: 24px;
    padding: 35px;
    text-align: left;
}

.config-card h2 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 30px;
}

/* ============================= */
/* FORMULAIRE */
/* ============================= */

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

.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-group select {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #292934;
    border-radius: 12px;
    background: #111117;
    color: #ffffff;
    font-size: 15px;
    cursor: pointer;
    outline: none;
}

.form-group select:focus {
    border-color: #555563;
}

/* ============================= */
/* ANCIENNES CLASSES CONFIG */
/* ============================= */

.game-option {
    text-align: left;
    margin-bottom: 22px;
}

.game-option label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}

.game-option select {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #292934;
    border-radius: 12px;
    background: #111117;
    color: #ffffff;
    font-size: 15px;
    cursor: pointer;
    outline: none;
}

.game-option select:focus {
    border-color: #555563;
}

/* ============================= */
/* BOUTONS */
/* ============================= */

.play-button {
    display: inline-block;
    border: none;
    border-radius: 14px;
    padding: 17px 35px;
    background: #ffffff;
    color: #111111;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition:
        transform 0.2s,
        background 0.2s;
}

.play-button:hover {
    transform: translateY(-2px);
    background: #eeeeee;
}

.game-start-button {
    display: block;
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 17px 35px;
    margin-top: 10px;
    background: #ffffff;
    color: #111111;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition:
        transform 0.2s,
        background 0.2s;
}

.game-start-button:hover {
    transform: translateY(-2px);
    background: #eeeeee;
}

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

.game-start-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================= */
/* CARACTÉRISTIQUES */
/* ============================= */

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 25px;
}

.feature {
    background: #111117;
    border-radius: 16px;
    padding: 20px 10px;
}

.feature-icon {
    font-size: 27px;
    margin-bottom: 8px;
}

.feature-title {
    font-size: 14px;
    font-weight: 700;
}

.feature-text {
    color: #777784;
    font-size: 12px;
    margin-top: 5px;
}

.footer {
    margin-top: 30px;
    color: #555561;
    font-size: 12px;
}

/* ============================= */
/* LIEN RETOUR */
/* ============================= */

.back-link {
    display: inline-block;
    margin-top: 22px;
    color: #777784;
    text-decoration: none;
    font-size: 14px;
}

.back-link:hover {
    color: #ffffff;
}

/* ============================= */
/* ÉCRAN DE QUESTION */
/* ============================= */

.question-number {
    color: #777784;
    font-size: 14px;
    margin-bottom: 20px;
}

.lyrics-card {
    background: #17171f;
    border: 1px solid #292934;
    border-radius: 24px;
    padding: 35px 25px;
    margin-bottom: 20px;
}

.lyrics-intro {
    color: #a7a7b3;
    font-size: 15px;
    margin-bottom: 25px;
}

.lyrics {
    font-size: clamp(22px, 5vw, 32px);
    font-weight: 700;
    line-height: 1.5;
}

.answer-card {
    background: #111117;
    border-radius: 20px;
    padding: 25px;
    text-align: left;
}

.answer-card label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    margin-top: 18px;
}

.answer-card label:first-child {
    margin-top: 0;
}

.answer-card label span {
    color: #777784;
    font-weight: 400;
}

.answer-card input {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #292934;
    border-radius: 12px;
    background: #17171f;
    color: #ffffff;
    font-size: 16px;
    outline: none;
}

.answer-card input:focus {
    border-color: #555563;
}

.answer-button {
    width: 100%;
    margin-top: 25px;
}

.current-score {
    margin-top: 20px;
    color: #777784;
    font-size: 14px;
}

.current-score strong {
    color: #ffffff;
}

/* ============================= */
/* RÉSULTAT */
/* ============================= */

.result-card {
    margin-top: 25px;
    padding: 30px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    text-align: center;
    animation: resultAppear 0.3s ease;
}

.result-icon {
    font-size: 50px;
    margin-bottom: 10px;
}

.result-card h2 {
    margin: 0 0 10px;
    font-size: 28px;
}

.result-message {
    margin-bottom: 25px;
    opacity: 0.85;
}

.correct-answer {
    margin: 20px 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
}

.correct-answer p {
    margin: 6px 0;
}

.correct-answer p strong {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    opacity: 0.7;
    text-transform: uppercase;
}

#correct-artist,
#correct-title {
    font-size: 20px;
    font-weight: bold;
}

.points-earned {
    margin: 20px 0;
    font-size: 18px;
}

#points-earned {
    font-size: 26px;
    font-weight: bold;
}

/* ============================= */
/* AUDIO */
/* ============================= */

.audio-container {
    margin: 20px 0;
}

/* ============================= */
/* ANIMATION */
/* ============================= */

@keyframes resultAppear {

    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================= */
/* RESPONSIVE MOBILE */
/* ============================= */

@media (max-width: 550px) {

    body {
        padding: 20px 15px;
    }

    .card,
    .config-card {
        padding: 25px 18px;
    }

    .subtitle {
        font-size: 17px;
        margin-bottom: 30px;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .feature {
        padding: 15px;
    }

    .config-card h2 {
        font-size: 21px;
    }
}
