/* Fichier: Assets/stylesforcontact.css */

.contact-container {
    max-width: 700px; /* Formulaires mieux perçus avec une largeur modérée */
    margin: 40px auto;
    padding: 0 20px;
    font-family: sans-serif;
    line-height: 1.6;
}

.contact-content h1 {
    font-size: 2.2em;
    color: #1a4d8c; 
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 15px;
    text-align: center;
}

.contact-intro {
    text-align: center;
    margin-bottom: 30px;
    color: #555;
    font-size: 1.05em;
}

/* Style de base du formulaire */
.contact-form {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #2c3e50;
}

.form-group .required {
    color: #e74c3c;
}

/* Styles pour tous les champs texte et textarea */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="text"][name="subject"], /* cibler spécifiquement l'objet */
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #1a4d8c;
    box-shadow: 0 0 5px rgba(26, 77, 140, 0.2);
    outline: none;
}

/* Petits textes d'aide */
.form-text-hint {
    font-size: 0.85em;
    color: #888;
    margin-top: 5px;
}

/* Checkbox (Termes) */
.checkbox-group {
    display: flex;
    align-items: center;
    margin-top: 25px;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    min-width: 16px; /* Assurer une taille cliquable */
    min-height: 16px;
}

.checkbox-group label a {
    color: #e74c3c;
    text-decoration: none;
    font-weight: normal;
}

.checkbox-group label a:hover {
    text-decoration: underline;
}

/* CAPTCHA placeholder */
.captcha-placeholder {
    background: #f0f0f0;
    padding: 15px;
    text-align: center;
    border-radius: 4px;
    color: #777;
    height: 80px; /* Taille approximative d'un widget reCAPTCHA */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    border: 1px dashed #ccc;
}

/* Bouton Soumettre */
.submit-button {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #1a4d8c; /* Couleur principale */
    color: white;
    font-size: 1.1em;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 30px;
    transition: background-color 0.3s, opacity 0.3s;
}

.submit-button:hover:not(:disabled) {
    background-color: #0d3870; /* Teinte plus foncée au survol */
}

.submit-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Styles pour les messages d'alerte (succès/erreur) - MISE À JOUR */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: 500;
    line-height: 1.5;
}
.alert-error {
    background-color: #fcebeb;
    color: #cc0000;
    border: 1px solid #ebccd1;
}
.alert-success {
    background-color: #e8f9e8;
    color: #387038;
    border: 1px solid #d6e9c6;
}

/* Responsive */
@media (max-width: 500px) {
    .contact-form {
        padding: 20px;
    }
    .contact-content h1 {
        font-size: 1.8em;
    }
}