/* ============================================
   AMÉLIORATION CONTRASTE FORMULAIRES
   Fichier : form-contrast.css
   À placer à la racine du site
   ============================================ */

/* ============================================
   LABELS ET TEXTES
   ============================================ */
label {
    font-weight: 600 !important;
    color: #222 !important;
    cursor: pointer;
    margin-bottom: 8px;
    display: inline-block;
    font-size: 1em;
}

/* Textes dans les colonnes de formulaire */
.row .col-md-4,
.blocformcontenu .row .col-md-4 {
    color: #222 !important;
    font-weight: 500;
    line-height: 1.5;
}

/* Tous les paragraphes dans les formulaires */
.blocformcontenu p {
    color: #222 !important;
    font-weight: 500;
}

/* ============================================
   CHAMPS DE SAISIE
   ============================================ */
input, 
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea, 
select {
    width: 100%;
    border: 2px solid #666 !important;
    padding: 12px;
    font-size: 16px !important;
    color: #111 !important;
    background: #fff !important;
    border-radius: 4px;
    transition: all 0.2s ease;
    line-height: 1.4;
}

/* Focus des champs - WCAG obligatoire */
input:focus, 
textarea:focus, 
select:focus {
    outline: 3px solid #dd0333 !important;
    outline-offset: 2px;
    border-color: #dd0333 !important;
    background: #fffef8 !important;
}

/* Placeholder lisible */
input::placeholder,
textarea::placeholder {
    color: #666 !important;
    opacity: 1;
}

/* Champs en erreur */
input.erreur,
textarea.erreur,
select.erreur {
    border: 3px solid #dd0333 !important;
    background: #fff5f5 !important;
}

/* ============================================
   BOUTONS
   ============================================ */
input[type="submit"],
button[type="submit"] {
    background: #dd0333 !important;
    font-size: 1.2em !important;
    border: none !important;
    color: #fff !important;
    text-transform: uppercase;
    padding: 14px 35px !important;
    font-weight: 600 !important;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s ease;
    width: auto !important;
}

input[type="submit"]:hover,
button[type="submit"]:hover {
    background: #b8022a !important;
}

input[type="submit"]:focus,
button[type="submit"]:focus {
    outline: 3px solid #dd0333 !important;
    outline-offset: 3px;
}

/* ============================================
   CAPTCHA
   ============================================ */
#div_refresh_captcha {
    color: #111 !important;
    font-weight: 500;
    margin: 10px 0;
}

#captcha {
    font-size: 18px !important;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Texte d'instruction du captcha */
.blocformcontenu p[style*="font-weight: bold"] {
    color: #111 !important;
    background: #fffbea;
    padding: 10px;
    border-left: 4px solid #dd0333;
    margin: 10px 0;
}

/* ============================================
   MESSAGES ET ALERTES
   ============================================ */
#wrong_captcha,
.text-center.rose,
h2.rose {
    color: #b8022a !important;
    font-weight: 600 !important;
    background: #fff5f5;
    padding: 15px;
    border-left: 5px solid #dd0333;
    margin: 20px 0;
    border-radius: 4px;
}

/* ============================================
   BLOCS INFORMATIFS
   ============================================ */
.info-encadre {
    background: #f5f5f5 !important;
    border-left: 5px solid #dd0333 !important;
    padding: 20px !important;
    margin-bottom: 20px;
    border-radius: 5px;
}

.info-encadre p {
    color: #111 !important;
    line-height: 1.7;
    margin: 10px 0;
}

.info-encadre strong {
    color: #dd0333 !important;
    font-weight: 700;
}

/* ============================================
   TITRES DE FORMULAIRE
   ============================================ */
.blocformtitre {
    color: #111 !important;
    font-weight: 700 !important;
    font-size: 1.4em;
}

.blocformtitre strong {
    color: #dd0333 !important;
}

.blocsouligne {
    background: #dd0333 !important;
    height: 3px;
    width: 60px;
    margin-top: 10px;
}

/* ============================================
   RESPONSIVE MOBILE
   ============================================ */
@media (max-width: 768px) {
    /* Éviter le zoom automatique iOS */
    input, 
    textarea, 
    select {
        font-size: 16px !important;
        padding: 14px;
    }
    
    label,
    .col-md-4 {
        font-size: 1.05em;
        margin-bottom: 10px;
    }
    
    /* Boutons plus grands sur mobile */
    input[type="submit"],
    button[type="submit"] {
        width: 100% !important;
        padding: 16px 20px !important;
    }
    
    /* Espacement entre les champs */
    .row {
        margin-bottom: 15px;
    }
}

/* ============================================
   ACCESSIBILITÉ RENFORCÉE
   ============================================ */

/* Indicateur visuel pour les champs requis */
label:after {
    content: "";
}

/* Améliorer la visibilité des liens dans les formulaires */
.blocformcontenu a {
    color: #dd0333 !important;
    text-decoration: underline;
    font-weight: 600;
}

.blocformcontenu a:hover {
    color: #b8022a !important;
}

.blocformcontenu a:focus {
    outline: 3px solid #dd0333;
    outline-offset: 2px;
    background: #fffbea;
}
