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

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 900px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    margin-left: auto;
    margin-right: auto;
}

h2 {
    text-align: center;
    text-transform: uppercase;
    font-size: 2rem;
    font-weight: bold;
    color: #D32F2F;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

#progress-container {
    width: 100%;
    height: 25px;
    background-color: #ddd;
    margin-bottom: 30px;
    border-radius: 15px;
    border: 2px solid #000;
    position: relative;
}

#progress-bar {
    width: 0;
    height: 100%;
    background-color: #D32F2F;
    border-radius: 15px;
    position: absolute;
    top: 0;
    left: 0;
}

#progress-percentage {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    font-weight: bold;
    color: #D32F2F;
}

/* Style des questions pour occuper tout l'écran */

.question {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: #fff;
}

.options-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    background: #f9f9f9;
    border: 2px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    text-align: center;
}

.option:hover {
    background: #f1f1f1;
    border-color: #D32F2F;
    transform: scale(1.05);
}

.option input[type="radio"] {
    display: none;
}

.option.selected {
    background: #f1f1f1;
    border-color: #D32F2F;
    transform: scale(1.05);
}

.option img {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
    object-fit: cover;
    border-radius: 8px;
}

.option span {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
}


label {
    font-weight: bold;
    color: #333;
    display: block;
    margin-bottom: 10px;
    font-size: 1.1rem; /* Taille adaptable */
}

input[type="radio"] {
    margin-right: 10px;
}

.question:hover {
    background-color: #f9f9f9;
}

.question input[type="radio"] {
    cursor: pointer;
}

.question input[type="radio"]:focus {
    outline: none;
    border-color: #D32F2F;
}

.buttons-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.btn {
    padding: 12px 20px;
    font-size: 1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 1000;
}

.btn-cancel {
    background-color: #000;
    color: white;
    margin-right: 20px;
}

.btn-cancel:hover {
    background-color: #555;
}

.btn-submit {
    background-color: #D32F2F;
    color: white;
}

.btn-submit:hover {
    background-color: #C62828;
}
#send-button-container {
    display: none;
}

.buttons-container.show-buttons {
    justify-content: space-between;
}

@media (max-width: 768px) {
    h2 {
        font-size: 1.8rem;
    }

    .btn {
        font-size: 0.9rem;
        padding: 10px 15px;
    }

    .container {
        padding: 15px;
    }

    #progress-container {
        height: 20px;
    }

    #progress-percentage {
        font-size: 1rem;
    }


    .question {
        padding: 15px;
    }

    label {
        font-size: 1rem;
    }

    .buttons-container {
        flex-direction: column;
        align-items: center;
    }

    .btn-cancel, .btn-submit {
        margin-right: 0;
        margin-left: 0;
        margin-top: 10px ;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 1.5rem;
    }

    .btn {
        font-size: 0.8rem;
        padding: 8px 12px;
    }

    .container {
        padding: 10px;
    }

    .question {
        padding: 10px;
    }

    label {
        font-size: 0.9rem;
    }

    #progress-container {
        height: 18px;
    }

    #progress-percentage {
        font-size: 0.9rem;
    }
}