/*************************************/
/****** Formulaire de contact ********/
/*************************************/
form {
    width: 100%;
    margin: 0px auto;
}

label {
    display: block;
    margin: 10px 0 5px;
    font-size: 1.2em;
    line-height: 1.5em;
    text-align: left;
}

label span{
    font-size: 16px;
    color: rgb(80,80,80);
    text-align: left;
}

.input-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    /*gap: 15px;*/
}

.input-group {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    margin-bottom: 15px;
    margin-right: 15px;
}

input[type="text"], textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

/*spécifique au bouton de jqalert*/
input[type="button"]{
    cursor: pointer;
    width: 50%;
    padding: 5px 10px;
    border: 0px;
    color: white;
    background: rgb(106,0,27);
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
}
/***********************************/

textarea {
    height: 150px;
}

input[type="text"]:focus, textarea:focus {
    border-color: rgb(106,0,27);
    outline: none;
    -webkit-box-shadow: 0 0 5px rgba(153, 0, 0, 0.5);
            box-shadow: 0 0 5px rgba(153, 0, 0, 0.5);
}

.checkbox-group {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}
.checkbox-group label {
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid rgb(106,0,27);
    color: rgb(106,0,27);
    cursor: pointer;
    text-align: center;
    width: 250px;
    margin-right: 15px;
}
.checkbox-group input {
    display: none;
}
.checkbox-group input:checked + label {
    border: 4px solid rgb(106,0,27);
    background: #fff;
    font-weight: bold;
}
.checkbox-group input:checked + label::after {
    content: '\2713';
    position: absolute;
    top: -10px;
    right: -10px;
    background: rgb(106,0,27);
    ;
    color: white;
    width: 20px;
    height: 20px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    font-size: 14px;
    font-weight: bold;
    border-radius: 50%;
}


input[type="text"], input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 2px solid #ccc;
    border-radius: 4px;
    -webkit-transition: border-color 0.3s;
    -o-transition: border-color 0.3s;
    transition: border-color 0.3s;
}
input[type="text"]:focus, input[type="email"]:focus {
    border-color: rgb(106,0,27);
    outline: none;
    -webkit-box-shadow: 0 0 5px rgba(153, 0, 0, 0.5);
            box-shadow: 0 0 5px rgba(153, 0, 0, 0.5);
}

.information{
    display: block;
    color: rgb(80,80,80);
    margin-top: 1em;
    font-size:0.95em;
    line-height: 1.2em;
}

.verifNationalite{
    display: none;
}

#contactForm .custom-btn{
    display: block;
    margin: 0px auto;
}

#contactForm .btn-property{
    width: 500px;
    margin: 0px auto;
}

@media (max-width: 1500px) {
    label {
        font-size: 1em;
        line-height: 1.2em;
    }
    .checkbox-group label {
        width: 200px;
    }
}
@media (max-width: 1300px) {
    .input-row {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
    }
    label {
        font-size: 1.2em;
        line-height: 1.6em;
    }
    .checkbox-group label {
        width: 250px;
    }
}
@media (max-width: 800px) {
    label {
        font-size: 1em;
        line-height: 1.5em;
    }
    label span{
        font-size: 14px;
        color: rgb(80,80,80);
    }
    .checkbox-group label {
        width: 150px;
    }
    #contactForm .btn-property{
        width: 300px;
    }
}

/* --- Style pour les éléments SELECT (Menu déroulant) --- */

select {
    /* Hérite du style des inputs text */
    width: 100%;
    padding: 10px;
    border: 2px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    
    /* Assure que la hauteur et le style sont cohérents */
    height: 50px; /* Ajuster si besoin pour aligner parfaitement avec les inputs */
    appearance: none; /* Supprime le style natif du navigateur */
    -moz-appearance: none;
    -webkit-appearance: none;
    
    /* Ajoute une petite flèche custom (optionnel mais recommandé pour l'esthétique) */
/*    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23999999%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-6.5%200-12.2%203.4-15.5%208.5-3.3%205.1-3.1%2011.3.6%2016.1l134%20165c3.5%204.6%209.1%207.1%2014.8%207.1s11.3-2.5%2014.8-7.1l134-165c3.7-4.8%203.9-11%20.6-16.1z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
    background-size: 10px auto;*/
    cursor: pointer;
}

select:focus {
    /* Style au focus, comme pour les inputs */
    border-color: rgb(106,0,27);
    outline: none;
    -webkit-box-shadow: 0 0 5px rgba(153, 0, 0, 0.5);
            box-shadow: 0 0 5px rgba(153, 0, 0, 0.5);
}

select option {
    /* Style de base pour les options */
    padding: 10px;
}