body {
    margin: 0;
    padding: 0;
    background-color: #efefef;
}

header {
    background-color: #fff;
}

.container {
    padding-top: 50px;
    padding-bottom: 50px;
}

.colleftapicil {
    float: left;
    text-align: center;
}

.colrightapicil {
    float: right;
}

.optionbox {
    background-color: #fff;
    border-radius: 15px;
    padding: 20px;
    margin: 2%;
    display: flex;
    align-items: center;
    gap: 23px;
    box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1);
}



.imgoptionbox {
    width: 20%;
    float: left;
    text-align: center;
}

.textoptionbox {
    width: 80%;
    float: left;
    text-align: left;
}

h1,
h2 {
    color: #3a4284;
    font-weight: 700;
    font-family: "Fira Sans", sans-serif;
}

p,
.textoptionbox {
    font-family: "Fira Sans", sans-serif;
    font-size: 17px;
    line-height: 25px;
    color: #3a4284;

}

.form-group {
    font-family: sans-serif;
}

.radio-label {
    font-family: sans-serif;
}

/*formulaire css*/
/* Section formulaire principale */
.form-section {
    background: white;
    padding: 40px;
    width: 100%;
    border-radius: 20px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

/* Titre principal du formulaire */
.form-title {
    color: #333;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Sous-titre du formulaire */
.form-subtitle {
    color: #888;
    font-size: 1rem;
    margin-bottom: 30px;
}

/* Groupes de champs de formulaire */
.form-group {
    margin-bottom: 20px;
}

/* Inputs de base (texte, email, tel) */
.form-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;

}

.form-input:focus {
    outline: none;
    border-color: #4a6cf7;
}

.form-input::placeholder {
    color: #aaa;
}

/* Container dropdown */
.dropdown {
    position: relative;
}

/* Select dropdown personnalisé */
.dropdown-select, .city1 {
    color: #b0b0b0;
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    appearance: none;
    font-family: inherit;
    transition: border-color 0.3s ease;
    /* Flèche personnalisée */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23666' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
}

.city1 {
    box-sizing: border-box;
}

.dropdown-select:focus, .city1:focus {
    outline: none;
    border-color: #4a6cf7;
}

/* Groupe de boutons radio */
.radio-group {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

/* Item radio individuel */
.radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Input radio personnalisé */
.radio-input {
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    appearance: none;
    background: white;
    transition: border-color 0.3s ease;
}

.radio-input:checked {
    border-color: #4a6cf7;
}

.radio-input:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: #4a6cf7;
    border-radius: 50%;
}

/* Label des boutons radio */
.radio-label {
    color: #666;
    font-size: 1rem;
    cursor: pointer;
    user-select: none;
}

/* Bouton de soumission */
.submit-button {
    width: 100%;
    background: #e53e3e;
    color: white;
    padding: 18px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: inherit;
}

.submit-button:hover {
    background: #d32f2f;
}

.submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Section info de réponse */
.response-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 15px;
    background: #f8f9ff;
    border-radius: 8px;
}

/* Icône horloge */
.clock-icon {
    width: 24px;
    height: 24px;
    color: #666;
    flex-shrink: 0;
}

/* Texte de réponse */
.response-text {
    color: #666;
    font-size: 0.9rem;
}

/* Titre de la réponse */
.response-title {
    font-weight: 600;
    margin-bottom: 2px;
    color: #333;
}

/* Disclaimer / mentions légales */
.disclaimer {
    font-size: 0.8rem;
    color: #999;
    margin-top: 15px;
    line-height: 1.4;
}

/* États de validation pour les inputs */
.form-input:invalid {
    border-color: #fdafaf;
}

/* Animation pour les transitions */
.form-input,
.dropdown-select,
.city1,
.radio-input,
.submit-button {
    transition: all 0.3s ease;
}

/* Amélioration de l'accessibilité */
.form-input:focus,
.dropdown-select:focus,
.city1:focus,
.radio-input:focus {
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.1);
}

/* Hover states */
.form-input:hover {
    border-color: #ccc;
}

.dropdown-select:hover, .city1:hover {
    border-color: #ccc;
}

.radio-input:hover {
    border-color: #ccc;
}

.codepostalville,
.nomprenom {
    display: flex;
    gap: 15px;
}


.error-message {
    color: red;
    font-size: 0.9rem;
    margin-top: 5px;
    padding: 5px;
    background-color: #ffebee;
    border: 1px solid #ffcdd2;
    border-radius: 4px;
    display: block;
}

.error-message.radio-error {
    margin-bottom: 16px;
}

.form-input.error,
.dropdown-select.error {
    border-color: #fdafaf !important;
    box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.2);
}
        
.radio-group .error-message {
    margin-top: 10px;
}

#div_ville, #div_cp {
    flex: 1;
}

@media (min-width: 1025px) {
    .container {
        width: 70%;
        margin: 0px auto;
        padding-top: 50px;
        padding-bottom: 50px;
        display: flex;
        gap: 40px;
        align-items: center;
    }

    .colleftapicil {
        float: left;
        text-align: center;
    }

    .colrightapicil {
        float: right;
    }

    .boxpkfaireconfiance {
        display: flex;
    }

    .optionbox {
        width: 50%;
        float: left;
    }
}

/* ========== RESPONSIVE DESIGN ========== */

/* Tablettes et écrans moyens */
@media (max-width: 1024px) {

    .colleftapicil {
        padding: 20px;
    }

    .container {
        width: 100% !important;
    }

    .colrightapicil {
        width: 100% !important;
    }

    .colrightapicil {
        width: 100% !important;
    }

    .form-section {
        width: 82%;
        border-radius: 0;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
        margin: 0px auto;
        border-radius: 15px !important;
    }



    .form-section {
        padding: 30px 20px;
    }

    .radio-group {
        flex-direction: column;
        gap: 15px;
    }


    .form-title {
        font-size: 1.3rem;
    }

    .form-input,
    .dropdown-select {
        padding: 12px;
        font-size: 0.95rem;
    }

    .submit-button {
        padding: 15px;
        font-size: 1rem;
    }

    .response-info {
        padding: 12px;
    }



    .optionbox {
        width: 80%;
        margin: 0px auto;
        margin-bottom: 12px;
    }

    p,
    .textoptionbox {
        font-family: "Fira Sans", sans-serif;
        font-size: 15px;
        line-height: 22px;
        color: #3a4284;
    }

}

@media (max-width: 600px) {
    .radio-group {
        flex-direction: row;
    }

    .city1 {
        padding: 12px;
    }
}

@media (max-width: 450px) {
    .city1 {
        /* background-image: none; */
    }
}

