#sousBody {
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    
    
    #sousApp {
        width: 90%;
        max-width: 800px;
        padding: 2rem;
        background-color: rgba(0, 0, 0, 0.5);
        border-radius: 1rem;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    }

    .titre {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        text-align: center;
        margin-bottom: 2rem;
    }

    .titre h1 {
        font-size: 2rem;
        background-image: linear-gradient(#f0ad2c, #ffce6d, #af9052);
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;
        text-shadow: 1px 4px 20px #474747;
    }


    .numChoisi {
        font-size: 4rem;
        font-weight: 700;
        text-align: center;
        margin: 2rem 0;
        background-image: linear-gradient(#f0ad2c, #ffce6d, #af9052);
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;
        text-shadow: 1px 4px 20px #474747;
    }

    .btnReponse {
        display: flex;
        justify-content: center;
        gap: 2rem;
        margin-bottom: 2rem;
    }


    .btnReponse button:active {
        animation: bounceClick 0.2s ease;
    }


    .btnReponse button {
        border: 2px solid white;
        border-radius: 0.5rem;
        width: 7rem;
        height: 3rem;
        font-size: 1rem;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .btnRouge {
        background-color: #ff0000;
        color: white;
    }

    .btnNoir {
        background-color: black;
        color: white;
    }

    .btnReponse button:hover {
        transform: scale(1.05);
        opacity: 0.9;
    }

    button.bonneReponse {
        outline: 5px solid green;
    }

    button.mauvaiseReponse {
        outline: 5px solid red;
    }

    .score {
        display: flex;
        justify-content: flex-end;
        gap: 2rem;
        font-size: 1.2rem;
        font-weight: bold;
        margin-top: 2rem;
        font-family: 'Times New Roman', Times, serif;
    }

    .nbRepJuste {
        color: #00ff00;
    }

    .nbRepFausse {
        color: #ff5555;
    }


    dialog {
        all: unset;
        /* 🔥 enlève styles par défaut (padding/margin etc.) */
        display: none;
    }

    dialog[open] {
        position: fixed;
        inset: 0;
        /* équivalent à top: 0; right: 0; bottom: 0; left: 0 */
        background-color: rgba(0, 0, 0, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1000;
        animation: fadeIn 0.3s ease-in-out;
    }

    #contenuDialog {
        width: 90%;
        max-width: 500px;
        background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
        border: 2px dashed #b9a37a;
        border-radius: 20px;
        padding: 1.5rem;
        backdrop-filter: blur(10px);
        box-shadow: 0 -20px 80px 30px rgba(255, 174, 0, 0.5);
        color: white;
        text-align: center;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        animation: scaleIn 0.4s ease;
    }

    #txtFinal {
        font-size: 2rem;
        font-weight: bold;
        color: #ffd166;
    }


    #txtFinal,
    #scoreFinal {
        animation: slideUp 0.4s ease-in-out;
    }

    #scoreFinal {
        font-size: 3rem;
        color: #ffcb29;
        font-weight: bold;
    }

    #btnFinal {
        margin-top: auto;
        padding: 0.8rem 1.8rem;
        font-size: 1rem;
        font-weight: bold;
        background-color: #917605;
        color: white;
        border: none;
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    #btnFinal:hover {
        background-color: #5a4903;
        transform: scale(1.05);
    }
}

@keyframes fadeIn {
    from {
        background-color: rgba(0, 0, 0, 0);
    }

    to {
        background-color: rgba(0, 0, 0, 0.6);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

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

@keyframes bounceClick {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}