/* 
====================================================
      Styles généraux
====================================================
*/
body {
    margin: 0;
    padding: 0;
    font-family: Gotham, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}
h2 {
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 0.5em;
}
a {
    text-decoration: none;
    color: inherit;
}
.alert {
    margin: 1em auto;
    padding: 1em;
    width: 80%;
    max-width: 600px;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
}
.alert.error {
    background-color: #f8d7da;
    color: #721c24;
}
.alert.success {
    background-color: #d4edda;
    color: #155724;
}

/*
====================================================
   Section principale
====================================================
*/
.contenu {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    content-visibility: auto;
}
.accueil_simplifiez {
    width: 100%;
    background-color: #5A5A5A;
    color: white;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    padding: 3% 2%;
    flex-wrap: wrap;
}
.simplifiez_txt {
    color: #ccc;
    width: 50%;
    padding: 5%;
    min-width: 300px;
}
.simplifiez_txt h2 {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 10px;
}
.simplifiez_txt span {
    color: #EEE;
    font-weight: 800;
}
.simplifiez_icones {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    min-width: 300px;
}
.trois_icones {
    display: flex;
    justify-content: space-evenly;
    margin: 1em 0;
}
#facilite, #gestion, #fonctionnalites {
    text-align: center;
    transition: all 0.3s linear;
    margin: 0 1em;
}
#facilite:hover,
#gestion:hover,
#fonctionnalites:hover {
    opacity: 0.8;
    transition: all 0.3s linear;
}
#facilite img,
#gestion img,
#fonctionnalites img {
    margin: 8px;
}
.contact_commercial {
    text-align: center;
    margin: 1em auto;
}
.contact_commercial .button {
    display: inline-block;
    padding: 0.6em 2em;
    background-color: #2E2E2E;
    color: white;
    border: 1px solid white;
    border-radius: 4px;
    text-transform: uppercase;
    transition: all 0.5s linear;
}
.contact_commercial .button:hover {
    background-color: white;
    color: black;
    border: 1px solid black;
}

/*
====================================================
   Zone Formulaire + Carte
====================================================
*/
.form_et_carte {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: #f9f9f9;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    margin: 2rem 0;
}
.formulaire {
    padding: 3rem;
    background-color: white;
    border-radius: 8px 0 0 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
}
.formulaire h2 {
    font-weight: 600;
    font-size: 1.8em;
    margin: 0.5em 0;
    color: #333;
    text-align: center;
    margin-bottom: 1.5rem;
}
.formulaire form {
    margin: 1.5em auto;
    width: 90%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
}
.formulaire form input,
.formulaire form textarea {
    font-size: 1em;
    margin: 0.7em 0;
    padding: 1em;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background-color: #f8f8f8;
}
.formulaire form input::placeholder,
.formulaire form textarea::placeholder {
    color: #888;
    font-size: 0.95em;
}
.formulaire form input:focus,
.formulaire form textarea:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 5px rgba(74, 144, 226, 0.3);
    background-color: white;
}
#captcha {
    margin-top: 1.5em;
    background-color: #f8f8f8;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}
#captcha small {
    display: block;
    margin-bottom: 0.5rem;
    color: #666;
}
.captcha-container {
    display: flex;
    align-items: center;
    gap: 1em;
}
.captcha-container img {
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
}
.captcha-container input {
    width: 120px;
    text-align: center;
    font-size: 1.1em;
    font-weight: 600;
    letter-spacing: 2px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.5em;
    outline: none;
    background-color: white;
}
.btn-envoyer {
    background-color: #4a90e2;
    color: #fff;
    border: none;
    padding: 1em 1.5em;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 1.5em;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.btn-envoyer:hover {
    background-color: #3a7bc8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.carte {
    padding: 2rem;
    background-color: #f5f5f5;
    border-radius: 0 8px 8px 0;
}
.carte h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 600;
    text-align: center;
}
.googleMaps {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}
.googleMaps iframe {
    width: 100%;
    height: 600px;
    border: 0;
}

/* Ajout d'un style pour les champs obligatoires */
input:required, textarea:required {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%23e74c3c" d="M6 0C2.7 0 0 2.7 0 6s2.7 6 6 6 6-2.7 6-6-2.7-6-6-6zm0 10.5c-.8 0-1.5-.7-1.5-1.5S5.2 7.5 6 7.5s1.5.7 1.5 1.5-.7 1.5-1.5 1.5zm1.5-6c0 .8-.7 1.5-1.5 1.5S4.5 5.3 4.5 4.5 5.2 3 6 3s1.5.7 1.5 1.5z"/></svg>');
    background-position: right 10px top 50%;
    background-repeat: no-repeat;
    background-size: 12px;
    padding-right: 30px;
}

/*
====================================================
   Responsivité
====================================================
*/
@media (max-width: 1000px) {
    .accueil_simplifiez {
        flex-direction: column;
        align-items: center;
        padding-bottom: 5%;
    }
    .simplifiez_txt,
    .simplifiez_icones {
        width: 90%;
        margin-bottom: 2em;
    }
    .trois_icones {
        flex-direction: column;
        align-items: center;
        margin: 0;
    }
    .form_et_carte {
        display: flex;
        flex-direction: column;
    }
    .formulaire {
        border-radius: 8px 8px 0 0;
        padding: 2rem 1rem;
    }
    .carte {
        border-radius: 0 0 8px 8px;
    }
}

@media (max-width: 600px) {
    .formulaire form {
        width: 100%;
    }
    .formulaire h2 {
        font-size: 1.5em;
    }
    .captcha-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .captcha-container img {
        margin-bottom: 0.5rem;
    }
}