/*
 * SMB - Corrections générales du site.
 * Note : Porto (MAJ 2026) force html{font-size:16px} alors que les styles Magento
 * sont écrits en rem pour une base de 10px : on fixe ici en px les éléments concernés.
 */

/* ---------- Bandeau cookies ---------- */
body .message.global.cookie {
    left: 16px;
    right: auto;
    bottom: 16px;
    max-width: 440px;
    margin: 0;
    padding: 20px 22px !important;
    font-family: 'Montserrat', 'Open Sans', sans-serif;
    font-size: 13px !important;
    line-height: 1.6;
    color: #4b5563 !important;
    background: #fff !important;
    border: 1px solid #eceef0 !important;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(16, 24, 40, .12);
    z-index: 1000;
}
body .message.global.cookie p {
    margin: 0;
    font-size: 13px !important;
    line-height: 1.6 !important;
    color: #4b5563;
}
body .message.global.cookie strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px !important;
    color: #1f2328;
}
body .message.global.cookie a {
    color: #176d14 !important;
    text-decoration: underline;
}
body .message.global.cookie .actions {
    margin-top: 14px;
}
body .message.global.cookie .action.allow {
    height: auto !important;
    padding: 10px 20px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: #fff !important;
    background: #176d14 !important;
    border: 0 !important;
    border-radius: 6px;
}
body .message.global.cookie .action.allow:hover {
    background: #11550f !important;
}
@media (max-width: 575px) {
    body .message.global.cookie {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
    }
}

/* ---------- Flèches du carrousel d'accueil ---------- */
/* Porto ajoute un chevron en ::before alors que le bouton contient déjà une icône <em> */
body .full-screen-slider .owl-nav button.owl-prev::before,
body .full-screen-slider .owl-nav button.owl-next::before {
    content: none !important;
    display: none !important;
}
body .full-screen-slider .owl-nav button.owl-prev,
body .full-screen-slider .owl-nav button.owl-next {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 46px !important;
    height: 46px !important;
    margin: 0 20px !important;
    padding: 0 !important;
    font-size: 18px !important;
    line-height: 1 !important;
    color: #fff !important;
    background: rgba(0, 0, 0, .35) !important;
    border: 0 !important;
    border-radius: 50% !important;
    transition: background-color .15s ease;
}
body .full-screen-slider .owl-nav button.owl-prev:hover,
body .full-screen-slider .owl-nav button.owl-next:hover {
    background: #176d14 !important;
}
body .full-screen-slider .owl-nav button em {
    margin: 0 !important;
    color: #fff !important;
}
@media (max-width: 767px) {
    body .full-screen-slider .owl-nav button.owl-prev,
    body .full-screen-slider .owl-nav button.owl-next {
        width: 36px !important;
        height: 36px !important;
        margin: 0 8px !important;
        font-size: 14px !important;
    }
}

/* ---------- Accueil : titres (H1 sur le slider, H2 pour les sections) ---------- */
/* Conserve le rendu d'origine après le changement de niveau des balises */
body h1.titre_slide1 {
    font-size: 44px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 2px;
    margin-bottom: 2px;
}
body h2.services,
body h2.filterproduct-title {
    font-size: 29px;
    font-weight: 600;
    color: #000;
    margin-bottom: 20px;
}
body h2.filterproduct-title {
    margin-top: 0;
}
body h2.services {
    margin-top: 30px;
    line-height: 1.1;
}
@media (max-width: 767px) {
    body h1.titre_slide1 { font-size: 40px; }
    body h2.services { font-size: 33px; }
    body h2.filterproduct-title { font-size: 27px; }
}

/* ---------- Page contact ---------- */
.smb-contact {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0 60px;
}
.smb-contact-intro {
    text-align: center;
    margin-bottom: 32px;
}
body .smb-contact-title {
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 12px;
    color: #1f2328;
}
.smb-contact-lead {
    font-size: 18px;
    line-height: 1.5;
    color: #4b5563;
    margin: 0;
}
.smb-contact-form {
    margin-bottom: 48px;
}
.smb-contact-infos {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
}
.smb-contact-map iframe {
    display: block;
    border-radius: 10px;
}
.smb-contact-card {
    padding: 28px;
    background: #f6f8f6;
    border-radius: 10px;
}
.smb-contact-label {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #6b7280;
}
.smb-contact-phone {
    margin: 0 0 20px;
    font-size: 24px;
    font-weight: 600;
}
.smb-contact-phone a {
    color: #176d14 !important;
}
.smb-contact-address {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #1f2328;
}
@media (max-width: 767px) {
    .smb-contact { padding: 24px 0 40px; }
    body .smb-contact-title { font-size: 28px; }
    .smb-contact-lead { font-size: 16px; }
    .smb-contact-infos { grid-template-columns: 1fr; }
    .smb-contact-map iframe { height: 280px; }
}


/* ---------- Bandeaux image de l'accueil ---------- */
.smb-banner {
    position: relative;
    margin: 0;
    background-color: #1f2328;
    background-size: cover;
    background-position: center;
    border-bottom: 6px solid #176d14;
}
.smb-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 24px;
    color: #fff;
}
.smb-banner-center {
    text-align: center;
}
.smb-banner-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
body .smb-banner-title {
    margin: 0 0 24px;
    font-size: 34px;
    font-weight: 400;
    line-height: 1.3;
    color: #fff;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
}
.smb-banner-split .smb-banner-title {
    margin: 0;
}
.smb-banner-text {
    margin: 0 0 20px;
    font-size: 17px;
    line-height: 1.6;
    color: #fff;
}
body a.smb-banner-btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    color: #fff !important;
    background: #176d14;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color .15s ease;
}
body a.smb-banner-btn:hover {
    background: #11550f;
}
@media (max-width: 767px) {
    .smb-banner-inner { padding: 40px 20px; }
    .smb-banner-split { grid-template-columns: 1fr; gap: 16px; text-align: center; }
    body .smb-banner-title { font-size: 24px; }
    .smb-banner-text { font-size: 15px; }
}
body h2.filterproduct-title {
    margin-top: 56px;
}
@media (max-width: 767px) {
    body h2.filterproduct-title { margin-top: 40px; }
    body h3.cat-detail { font-size: 17px !important; line-height: 1.3 !important; margin-top: 8px; }
}

/* ---------- Bandeau de page (Demande de devis) ---------- */
.smb-banner-page {
    margin-bottom: 40px;
}
.smb-banner-page .smb-banner-inner {
    padding: 56px 24px;
}
body .smb-banner-page .smb-banner-title {
    margin-bottom: 12px;
    font-size: 44px;
    font-weight: 300;
}
.smb-banner-page .smb-banner-text {
    margin: 0;
}
@media (max-width: 767px) {
    .smb-banner-page .smb-banner-inner { padding: 36px 20px; }
    body .smb-banner-page .smb-banner-title { font-size: 30px; }
}

/* ---------- Formulaires devis / pièces (Easycreateform) ---------- */
body .cms-page-view .std {
    width: auto;
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 1.6;
    color: #1f2328;
}
body form.easycreateform .actions-toolbar {
    margin: 24px 0 0;
    padding: 0;
    text-align: center;
}
body form.easycreateform button.action.submit {
    width: auto !important;
    min-width: 200px;
    height: 48px !important;
    padding: 0 32px !important;
    overflow: visible;
    font-size: 15px !important;
    font-weight: 600;
    line-height: 48px !important;
    letter-spacing: .02em;
    text-transform: uppercase;
    white-space: nowrap;
    color: #fff !important;
    background: #176d14 !important;
    border: 0 !important;
    border-radius: 6px;
}
body form.easycreateform button.action.submit:hover {
    background: #11550f !important;
}
@media (max-width: 767px) {
    body form.easycreateform .fieldset {
        padding: 20px 16px !important;
    }
    body form.easycreateform button.action.submit {
        width: 100% !important;
    }
}

/* ---------- Divers responsive ---------- */
body .bande_footer {
    width: auto !important;
    max-width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
body.catalog-product-view a.btn.btn-default {
    max-width: 100%;
    height: auto !important;
    white-space: normal;
    line-height: 1.4 !important;
    padding-top: 10px;
    padding-bottom: 10px;
}
@media (max-width: 991px) {
    .smb-banner-split { grid-template-columns: 1fr; gap: 16px; text-align: center; }
    body .smb-banner-title { font-size: 28px; }
}
