/* ============================================================
   Formulaires d'estimation — habillage moderne
   BSC DataRecovery — couleur de marque #d40c29
   Chargé UNIQUEMENT sur les pages /estimation/ (ne touche pas le reste du site)
   ============================================================ */

/* -- Carte contenant chaque bloc du formulaire -- */
#section3 { padding: 0 16px; }
#section3 #section3-1 {
    max-width: 780px;
    margin: 22px auto;
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 16px;
    box-shadow: 0 2px 4px rgba(20,20,20,.03), 0 14px 34px rgba(20,20,20,.06);
    padding: 26px 30px 30px;
    box-sizing: border-box;
    text-align: left;
}

/* -- Titres de bloc rouges (Identification / Description / Coordonnées) -- */
#section3-1 span > b > i > font,
#section3-1 b > i > font {
    display: inline-block;
    padding-bottom: 8px;
    border-bottom: 3px solid #d40c29;
    margin-bottom: 6px;
}

/* -- Labels -- */
#section3-1 label {
    display: inline-block;
    font-weight: 700;
    color: #2b2b2b;
    margin: 2px 0 5px;
    font-size: 15px;
    font-family: arial, sans-serif;
}

/* -- Champs de saisie -- */
#section3-1 input[type="text"],
#section3-1 input[type="number"],
#section3-1 input[type="email"],
#section3-1 input[type="tel"],
#section3-1 select,
#section3-1 textarea {
    display: block;
    width: 100%;
    max-width: 470px;
    box-sizing: border-box;
    padding: 11px 14px;
    margin: 3px 0 2px;
    border: 1.5px solid #e4e4e4;
    border-radius: 10px;
    font-family: arial, sans-serif;
    font-size: 16px;
    color: #222;
    background: #fafafa;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
    outline: none;
}

/* -- Menus déroulants : chevron rouge maison -- */
#section3-1 select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 40px;
    cursor: pointer;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23d40c29" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></svg>');
    background-repeat: no-repeat;
    background-position: right 14px center;
}

/* -- Zone de texte -- */
#section3-1 textarea {
    max-width: 100%;
    min-height: 165px;
    resize: vertical;
    line-height: 1.55;
}

/* -- Focus : liseré rouge + halo -- */
#section3-1 input:focus,
#section3-1 select:focus,
#section3-1 textarea:focus {
    border-color: #d40c29;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(212,12,41,.13);
}

/* -- Étape X/3 : barre grise du thème conservée (200px), texte agrandi et centré V+H -- */
#section2 #section2-1 {
    max-width: 800px;
    width: 95%;
    height: 200px;
    padding: 0;              /* annule le padding-top:80px du thème qui décentrait le texte */
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: arial, sans-serif;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #1a1a1a;          /* noir */
    line-height: 1.3;
}

/* -- Bouton d'envoi -- */
#section4-1 input[type="button"],
#section4-1 input[type="submit"] {
    font-family: arial, sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    letter-spacing: .5px;
    width: auto !important;
    height: auto !important;
    min-width: 250px;
    padding: 15px 36px !important;
    color: #fff !important;
    background: linear-gradient(180deg, #e6142f 0%, #b80a22 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(212,12,41,.32);
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
    text-transform: uppercase;
}
#section4-1 input[type="button"]:hover,
#section4-1 input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 11px 24px rgba(212,12,41,.4);
    filter: brightness(1.05);
}
#section4-1 input[type="button"]:active { transform: translateY(0); box-shadow: 0 4px 12px rgba(212,12,41,.3); }

/* -- Astérisques et notes requis en rouge (déjà en rouge via <font>, on renforce) -- */
#section3-1 font[color="#d40c29"] { color: #d40c29; }

/* -- Petites adaptations mobiles -- */
@media all and (max-width: 799px) {
    #section3 #section3-1 { padding: 20px 16px 24px; margin: 16px auto; border-radius: 12px; }
    #section3-1 input[type="text"],
    #section3-1 input[type="number"],
    #section3-1 input[type="email"],
    #section3-1 input[type="tel"],
    #section3-1 select { max-width: 100%; }
    /* 2026-09-20 : sur mobile le libellé prend toute la largeur (sinon le thème le tasse sur ~200 px
       et « Code postal * : » ou la question anti-robot passent sur 3 lignes) ; l'étiquette vide de la
       2e ligne d'adresse et les <br> en rafale disparaissent, l'espacement vient des marges des champs. */
    #section3-1 label { display: block !important; width: auto !important; max-width: none !important; min-width: 0 !important; float: none !important; margin: 0 0 6px; }
    #section3-1 label:empty { display: none; }
    #section3-1 input[type="text"],
    #section3-1 input[type="number"],
    #section3-1 input[type="email"],
    #section3-1 input[type="tel"],
    #section3-1 select,
    #section3-1 textarea { margin: 0 0 14px; }
    #section3-1 p > br, #section3-1 p br + br { display: none; }
    #section3-1 span[style*="float"] { float: none !important; display: block; margin: 4px 0 10px; }
    #section3-1 #humain { max-width: 100% !important; }
    #section4-1 input[type="button"] { min-width: 0; width: 100% !important; }
}
