/* Bloc rendu par woocommerce_after_single_product_summary : hors du conteneur
   .summary, mais les thèmes à base de flottants (Storefront) exigent un clear
   explicite pour repasser en pleine largeur sous la galerie. */
.bdpe-devis {
    clear: both;
    width: 100%;
    margin: 2.5rem 0;
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 4px;
}

.bdpe-devis__entete {
    margin-bottom: 1.5rem;
}

.bdpe-devis__titre {
    margin: 0 0 0.5rem;
}

.bdpe-devis__produit {
    margin: 0;
}

.bdpe-devis__section {
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 1.15rem;
}

.bdpe-devis__section:first-of-type {
    margin-top: 0;
}

.bdpe-devis__grille {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 2rem;
}

.bdpe-devis__champ {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0;
}

.bdpe-devis__champ--pleine {
    grid-column: 1 / -1;
}

.bdpe-devis__champ input,
.bdpe-devis__champ select,
.bdpe-devis__champ textarea {
    width: 100%;
    box-sizing: border-box;
}

.bdpe-devis__champ label {
    font-weight: 600;
}

.bdpe-devis__champ .required {
    border: 0;
    color: #b32d2e;
    text-decoration: none;
}

.bdpe-devis__facultatif {
    font-weight: 400;
    opacity: 0.65;
}

.bdpe-devis__envoi {
    margin-top: 1.75rem;
}

.bdpe-devis__mention {
    font-weight: 600;
}

.bdpe-devis__retour {
    clear: both;
}

/* Piège à robots : retiré du flux et du parcours clavier, sans display:none
   que certains automates savent détecter. */
.bdpe-devis__piege {
    position: absolute !important;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .bdpe-devis {
        padding: 1.25rem;
    }

    .bdpe-devis__grille {
        grid-template-columns: 1fr;
    }
}
