* {
    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;
    margin-top:150px;
}

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


#progress-header {
    width: 100%;
    background-color: white; /* Fond blanc */
    padding: 20px 0;
    position: fixed; /* Fixe l'en-tête en haut */
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Ombre douce */
    text-align: center;
}

#progress-header h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: bold;
    color: #D32F2F;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); /* Effet d'ombre */
}

#progress-container {
    width: 80%;
    height: 30px;
    background-color: #ddd;
    margin: 15px auto;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

#progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #D32F2F, #FF6F61);
    border-radius: 30px;
    transition: width 0.4s ease-in-out;
    position: relative;
    color: white;
    font-weight: bold;
}

#progress-percentage {
    font-size: 1rem;
    font-weight: bold;
    color: rgb(0, 0, 0); /* Texte en blanc */
    position: fixed;
    width: 80%;
    text-align: center;
    z-index: 100;
}
#question6c .options-container {
    display: flex;
    align-items: center;
    gap: 15px;
}
#question8a .options-container {
    display: flex;
    align-items: center;
    gap: 15px;
}


#codePostal {
    width: 150px;
    padding: 10px;
    font-size: 1rem;
    border: 2px solid #ccc;
    border-radius: 8px;
    text-align: center;
}

#codePostal:focus {
    border-color: #D32F2F;
    outline: none;
}


#codePostal2 {
    width: 150px;
    padding: 10px;
    font-size: 1rem;
    border: 2px solid #ccc;
    border-radius: 8px;
    text-align: center;
}

#codePostal2:focus {
    border-color: #D32F2F;
    outline: none;
}


.btn-validate {
    background-color: #D32F2F;
    color: white;
    padding: 10px 15px;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, transform 0.3s;
}

.btn-validate:hover {
    background-color: #C62828;
    transform: scale(1.05);
}

#question10 .options-container {
    display: flex;
    align-items: center;
    gap: 15px;
}
#question10b .options-container {
    display: flex;
    align-items: center;
    gap: 15px;
}
#telephone {
    width: 180px;
    padding: 10px;
    font-size: 1rem;
    border: 2px solid #ccc;
    border-radius: 8px;
    text-align: center;
}

#telephone:focus {
    border-color: #D32F2F;
    outline: none;
}

#telephone2 {
    width: 180px;
    padding: 10px;
    font-size: 1rem;
    border: 2px solid #ccc;
    border-radius: 8px;
    text-align: center;
}

#telephone2:focus {
    border-color: #D32F2F;
    outline: none;
}



/* 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: 1;
}

.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;
}

/* Uniformisation de la taille des champs */
.input-field {
    width: 50%;  /* Augmenter la largeur */
    padding: 12px; /* Augmenter l'espace intérieur */
    font-size: 1.2rem; /* Agrandir le texte */
    border: 2px solid #ccc;
    border-radius: 8px;
    text-align: center;
}

.input-field:focus {
    border-color: #D32F2F;
    outline: none;
}

/* Uniformisation de la présentation des questions */
.input-container {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
    margin-top: 10px;
}

/* Appliquer ce style aux champs concernés */
#codePostal, #codePostal2, #telephone, #telephone2, #prenom, #prenom2, #nom, #nom2 {
    width: 50%;  
    padding: 12px;
    font-size: 1.2rem;
    border: 2px solid #ccc;
    border-radius: 8px;
    text-align: center;
}


@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;
    }
}