/*
Theme Name: SBC B2B
Theme URI: https://sbc.com.tn/
Author: SBC
Description: Thème WordPress/WooCommerce B2B sur mesure pour SBC, compatible Elementor et doté d’une gestion native des demandes de devis.
Version: 0.5.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: sbc-b2b
*/

:root {
  --sbc-lime: #c4e500;
  --sbc-charcoal: #151914;
  --sbc-ivory: #f7f8f2;
  --sbc-green: #365314;
  --sbc-muted: #62695e;
  --sbc-white: #ffffff;
  --sbc-line: #dde1d7;
  --sbc-soft: #eef1e8;
  --sbc-danger: #9b2c2c;
  --sbc-radius: 14px;
  --sbc-shadow: 0 14px 40px rgba(21, 25, 20, .08);
  --sbc-container: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sbc-ivory);
  color: var(--sbc-charcoal);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.5;
  font-synthesis: none;
}
body.admin-bar .sbc-site-header { top: 32px; }
img { max-width: 100%; height: auto; }
a { color: var(--sbc-green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button, .button, .sbc-button, input[type="submit"] {
  min-height: 46px;
  border: 0;
  border-radius: 10px;
  padding: 12px 20px;
  background: var(--sbc-green);
  color: var(--sbc-white);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease;
}
button:hover, .button:hover, .sbc-button:hover, input[type="submit"]:hover { background: #29400f; color: #fff; transform: translateY(-1px); }
.sbc-button--outline { border: 1px solid var(--sbc-green); background: transparent; color: var(--sbc-green); }
.sbc-button--outline:hover { background: var(--sbc-green); color: #fff; }
:focus-visible { outline: 3px solid var(--sbc-lime); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0 0 .6em; font-family: Manrope, Inter, system-ui, sans-serif; font-weight: 700; line-height: 1.12; letter-spacing: -.022em; }
h1 { font-size: clamp(2rem, 4vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 2.7vw, 2.35rem); }
.sbc-container { width: min(calc(100% - 40px), var(--sbc-container)); margin-inline: auto; }
.sbc-main { min-height: 55vh; padding-block: 0 80px; }
.sbc-card { border: 1px solid var(--sbc-line); border-radius: var(--sbc-radius); background: #fff; box-shadow: 0 5px 18px rgba(21,25,20,.035); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* En-tête */
.sbc-site-header { position: sticky; z-index: 100; top: 0; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--sbc-line); backdrop-filter: blur(12px); }
.sbc-header-main { display: grid; grid-template-columns: 150px minmax(260px, 1fr) auto; gap: 28px; align-items: center; min-height: 78px; }
.sbc-logo img { display: block; width: auto; max-height: 54px; }
.sbc-logo__text { color: var(--sbc-charcoal); font: 800 2rem/1 Manrope, sans-serif; text-decoration: none; }
.sbc-product-search { display: flex; overflow: hidden; border: 1px solid var(--sbc-line); border-radius: 999px; background: #f2f3ef; }
.sbc-product-search input { width: 100%; min-height: 46px; padding: 0 18px; border: 0; background: transparent; outline: none; }
.sbc-product-search button { min-height: 42px; margin: 2px; border-radius: 999px; padding-inline: 18px; }
.sbc-header-actions { display: flex; gap: 10px; align-items: center; }
.sbc-header-link { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; color: var(--sbc-charcoal); font-size: .9rem; font-weight: 650; text-decoration: none; }
.sbc-header-link--quote { background: var(--sbc-green); color: #fff; }
.sbc-icon { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sbc-product-search button { display: inline-flex; align-items: center; gap: 8px; }
.sbc-quote-count { display: grid; min-width: 20px; height: 20px; place-items: center; border-radius: 50%; background: var(--sbc-lime); color: var(--sbc-charcoal); font-size: .7rem; font-weight: 850; }
.sbc-nav { border-top: 1px solid #edf0e8; }
.sbc-nav__inner { display: flex; justify-content: center; align-items: center; min-height: 52px; }
.sbc-nav ul { display: flex; gap: 28px; align-items: center; margin: 0; padding: 0; list-style: none; }
.sbc-nav a { color: var(--sbc-charcoal); font-size: .94rem; font-weight: 650; text-decoration: none; }
.sbc-nav a:hover { color: var(--sbc-green); }
.sbc-menu-toggle { display: none; }
.sbc-pro-strip { padding: 9px 0; background: var(--sbc-soft); font-size: .9rem; font-weight: 650; }

/* Accueil */
.sbc-hero { display: grid; min-height: 530px; grid-template-columns: 1fr 1.15fr; overflow: hidden; border-radius: 0 0 24px 24px; background: #ecece7; }
.sbc-hero__content { display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 6vw, 90px); }
.sbc-eyebrow { margin-bottom: 18px; color: #789300; font-size: .78rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.sbc-hero__content p { max-width: 520px; margin: 0 0 28px; color: var(--sbc-muted); font-size: 1.14rem; }
.sbc-hero__media { min-height: 420px; background: center/cover no-repeat; }
.sbc-slider { position: relative; overflow: hidden; border-radius: 0 0 24px 24px; background: #ecece7; }
.sbc-slider__slide { display: grid; min-height: 560px; grid-template-columns: 1fr 1.15fr; }
.sbc-slider__slide[hidden] { display: none; }
.sbc-slider__content { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(52px, 6vw, 90px); }
.sbc-slider__content p { max-width: 540px; margin: 0 0 28px; color: var(--sbc-muted); font-size: 1.14rem; }
.sbc-slider__media { min-height: 440px; background: #dde0d8 center/cover no-repeat; }
.sbc-slider--visual { border-radius: 0; background: #f2f3ef; }
.sbc-slider--visual .sbc-slider__slide { min-height: 590px; }
.sbc-slider__slide--full { display: block; }
.sbc-slider__full-image { display: block; width: 100%; height: 590px; overflow: hidden; background: #f2f3ef; }
.sbc-slider__full-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.sbc-slider__mobile-caption { display: none; }
.sbc-slider__navigation { position: absolute; z-index: 4; right: clamp(18px,3vw,42px); bottom: 24px; display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 999px; background: rgba(21,25,20,.82); }
.sbc-slider__arrow { display: grid; width: 38px; min-height: 38px; place-items: center; padding: 0; border-radius: 50%; background: transparent; color: #fff; }
.sbc-slider__arrow:hover { background: rgba(255,255,255,.14); transform: none; }
.sbc-slider__dots { display: flex; gap: 7px; align-items: center; }
.sbc-slider__dots button { width: 9px; min-height: 9px; padding: 0; border-radius: 50%; background: #aeb4aa; }
.sbc-slider__dots button.is-active { width: 23px; border-radius: 999px; background: var(--sbc-lime); }
.sbc-section { padding-block: 70px; }
.sbc-section__head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 26px; }
.sbc-category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.sbc-category-card { position: relative; min-height: 250px; overflow: hidden; border-radius: var(--sbc-radius); background: #e7e9e3; color: #fff; text-decoration: none; }
.sbc-category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.sbc-category-card:hover img { transform: scale(1.03); }
.sbc-category-card span { position: absolute; inset: auto 16px 15px; z-index: 2; font-weight: 800; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.sbc-category-card::after { content: ""; position: absolute; inset: auto 0 0; height: 38%; background: rgba(0,0,0,.55); }
.sbc-product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.sbc-product-card { overflow: hidden; border: 1px solid var(--sbc-line); border-radius: var(--sbc-radius); background: #fff; }
.sbc-product-card__image { display: flex; aspect-ratio: 1 / .86; align-items: center; justify-content: center; padding: 18px; overflow: hidden; background: #f0f1ee; }
.sbc-product-card__image img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.14); }
.sbc-product-card__body { padding: 18px; }
.sbc-product-card__brand { color: var(--sbc-muted); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.sbc-product-card h3 { min-height: 2.2em; margin: 7px 0 16px; font-size: 1.05rem; letter-spacing: -.02em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sbc-product-card h3 a { color: var(--sbc-charcoal); text-decoration: none; }

/* Bandeau de marques défilant (widget Elementor "SBC — Marques") */
.sbc-marquee { overflow: hidden; border: 1px solid var(--sbc-line); border-radius: var(--sbc-radius); background: #fff; }
.sbc-marquee__track { display: flex; width: max-content; align-items: stretch; animation: sbc-marquee-scroll var(--sbc-marquee-speed, 26s) linear infinite; }
.sbc-marquee:hover .sbc-marquee__track, .sbc-marquee:focus-within .sbc-marquee__track { animation-play-state: paused; }
.sbc-marquee.is-static { overflow-x: auto; }
.sbc-marquee.is-static .sbc-marquee__track { animation: none; }
.sbc-marquee__item { display: flex; flex: 0 0 auto; width: var(--sbc-marquee-w, 160px); height: var(--sbc-marquee-h, 80px); align-items: center; justify-content: center; padding: 12px 20px; border-right: 1px solid var(--sbc-line); text-decoration: none; }
.sbc-marquee__item:last-child { border-right: 0; }
.sbc-marquee__item img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sbc-marquee__item span { color: var(--sbc-charcoal); font-weight: 850; font-size: 1.1rem; text-align: center; }
@keyframes sbc-marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.sbc-callout { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 30px 38px; border-radius: var(--sbc-radius); background: var(--sbc-lime); }
.sbc-callout h2, .sbc-callout p { margin: 0; }

/* WooCommerce / catalogue */
.woocommerce .woocommerce-breadcrumb { width: min(calc(100% - 40px), var(--sbc-container)); margin: 24px auto; color: var(--sbc-muted); }
.woocommerce-products-header { width: min(calc(100% - 40px), var(--sbc-container)); margin-inline: auto; }
.woocommerce-products-header .term-description { display: none; }
.sbc-catalog-hero { display: grid; min-height: 320px; grid-template-columns: 1fr; overflow: hidden; margin-bottom: 12px; border-radius: 18px; background: #eef0e9; }
.sbc-catalog-hero.has-image { grid-template-columns: .95fr 1.05fr; }
.sbc-catalog-hero__content { display: flex; flex-direction: column; justify-content: center; padding: clamp(38px,5vw,72px); }
.sbc-catalog-hero h1 { max-width: 720px; margin-bottom: 14px; font-size: clamp(2rem,3.7vw,3.35rem); }
.sbc-catalog-hero__description { max-width: 630px; color: var(--sbc-muted); font-size: 1.08rem; }
.sbc-catalog-hero__description p { margin: 0; }
.sbc-catalog-hero__image { min-height: 360px; background: center/cover no-repeat; }
.sbc-subcategory-strip { display: flex; gap: 12px; overflow-x: auto; padding: 0 0 26px; scroll-snap-type: x mandatory; }
.sbc-subcategory-strip a { position: relative; flex: 0 0 220px; height: 145px; overflow: hidden; border-radius: 12px; background: #e9ebe5; color: #fff; scroll-snap-align: start; text-decoration: none; }
.sbc-subcategory-strip img { width: 100%; height: 100%; object-fit: cover; }
.sbc-subcategory-strip a::after { content: ""; position: absolute; inset: 45% 0 0; background: rgba(21,25,20,.58); }
.sbc-subcategory-strip span { position: absolute; z-index: 2; right: 14px; bottom: 12px; left: 14px; font-weight: 800; }
.sbc-catalog-layout { display: grid; width: min(calc(100% - 40px), var(--sbc-container)); grid-template-columns: 250px minmax(0,1fr); gap: 30px; margin: 34px auto 0; align-items: start; }
.sbc-filter-toggle { display: none; }
.sbc-catalog-sidebar { overflow: hidden; border: 1px solid var(--sbc-line); border-radius: 14px; background: #fff; }
.sbc-catalog-sidebar__head { display: flex; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--sbc-line); font: 800 1.05rem/1.2 Manrope, sans-serif; }
.sbc-filter-group { padding: 20px; border-bottom: 1px solid var(--sbc-line); }
.sbc-filter-group h2 { margin-bottom: 12px; font-size: .9rem; letter-spacing: 0; }
.sbc-filter-group ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.sbc-filter-group a { display: flex; justify-content: space-between; gap: 12px; color: var(--sbc-charcoal); font-size: .88rem; text-decoration: none; }
.sbc-filter-group a:hover, .sbc-filter-group a.is-active { color: var(--sbc-green); font-weight: 750; }
.sbc-filter-group small { color: var(--sbc-muted); }
.sbc-filter-reset { display: block; padding: 17px 20px; font-weight: 700; text-decoration: none; }
.sbc-catalog-results { width: 100%; min-width: 0; }
.sbc-catalog-results::after, .sbc-catalog-results::before { display: table; clear: both; content: ""; }
.sbc-catalog-results .woocommerce-result-count { margin: 10px 0 28px; color: var(--sbc-muted); }
.sbc-catalog-results .woocommerce-ordering { margin: 0 0 22px; }
.sbc-catalog-results .woocommerce-ordering select { min-height: 44px; border: 1px solid var(--sbc-line); border-radius: 9px; padding: 8px 36px 8px 12px; background: #fff; }
.woocommerce ul.products { display: grid; width: 100%; max-width: none; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; margin: 0; padding: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { display: flex; width: auto !important; min-width: 0; flex-direction: column; margin: 0 !important; padding: 0 0 18px; overflow: hidden; border: 1px solid var(--sbc-line); border-radius: var(--sbc-radius); background: #fff; }
.woocommerce ul.products li.product a.woocommerce-loop-product__link { display: block; color: var(--sbc-charcoal); text-decoration: none; }
.woocommerce ul.products li.product a img { display: block; width: 100%; height: auto; margin: 0 0 14px; padding: 14px; aspect-ratio: 1/1; object-fit: contain; background: #f0f1ee; transform: scale(1.14); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { margin-inline: 16px; }
.sbc-loop-brand { margin: 0 16px 4px; color: var(--sbc-muted); font-size: .7rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { min-height: 3.4em; padding: 0; font-size: .98rem; line-height: 1.3; letter-spacing: -.015em; }
.sbc-loop-quote-form { margin: auto 16px 0; }
.woocommerce ul.products li.product .sbc-loop-quote-button { display: flex; width: calc(100% - 32px); min-height: 42px; justify-content: center; align-items: center; gap: 7px; margin: auto 16px 0; padding: 9px 12px; border: 1px solid var(--sbc-green); border-radius: 8px; background: var(--sbc-green); color: #fff; font-size: .82rem; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; }
.woocommerce ul.products li.product .sbc-loop-quote-form .sbc-loop-quote-button { width: 100%; margin: 0; }
.woocommerce ul.products li.product .sbc-loop-quote-button:hover { border-color: #29400f; background: #29400f; color: #fff; }
.woocommerce ul.products li.product .sbc-loop-quote-button .sbc-icon { width: 17px; height: 17px; flex-basis: 17px; }
.add-to-quote-btn, .yith-ywraq-add-to-quote, .yith-ywraq-add-button, .add-request-quote-button { display: none !important; }
.woocommerce nav.woocommerce-pagination { margin-top: 34px; }
.woocommerce nav.woocommerce-pagination ul { border: 0; }
.woocommerce nav.woocommerce-pagination ul li { margin: 0 4px; border: 0; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--sbc-green); color: #fff; }
.woocommerce div.product { display: grid; width: min(calc(100% - 40px), var(--sbc-container)); grid-template-columns: minmax(0,1.08fr) minmax(360px,.92fr); gap: 54px; margin-inline: auto; align-items: start; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { width: 100% !important; min-width: 0; float: none !important; align-self: start; }
.woocommerce div.product div.images { margin-bottom: 0; }
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper { overflow: hidden; border-radius: 16px; background: #f0f1ee; }
.woocommerce div.product div.images img { width: 100%; border-radius: 12px; background: #f0f1ee; object-fit: contain; }
.woocommerce div.product div.images .woocommerce-product-gallery__image img { transform: scale(1.12); }
.woocommerce div.product div.images .flex-control-thumbs { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-top: 12px; }
.woocommerce div.product div.images .flex-control-thumbs li { width: auto; float: none; }
.woocommerce div.product div.images .flex-control-thumbs img { border: 1px solid transparent; background: #f0f1ee; }
.woocommerce div.product div.images .flex-control-thumbs img.flex-active { border-color: var(--sbc-green); }
.woocommerce div.product div.summary { padding-top: 6px; }
.woocommerce div.product .product_title { max-width: 720px; margin-bottom: 12px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: clamp(2.2rem,3.6vw,3.35rem); line-height: 1.04; }
.sbc-product-brand { margin-bottom: 12px; color: var(--sbc-green); font-size: .78rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.woocommerce div.product .product_meta { display: grid; gap: 5px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--sbc-line); color: var(--sbc-muted); font-size: .88rem; }
.woocommerce div.product .woocommerce-tabs, .woocommerce div.product .related, .woocommerce div.product .upsells { grid-column: 1 / -1; width: 100%; }
.woocommerce div.product .woocommerce-tabs { margin-top: 22px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { margin: 0 0 28px; padding: 0; border-bottom: 1px solid var(--sbc-line); }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { margin: 0 28px 0 0; padding: 0 0 12px; border: 0; background: transparent; }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-bottom: 3px solid var(--sbc-green); }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 0; }
.woocommerce div.product .related > h2 { margin-top: 34px; font-size: clamp(1.75rem,3vw,2.4rem); }
.sbc-product-service-points { display: grid; gap: 12px; margin-top: 22px; }
.sbc-product-service-points div { display: grid; gap: 2px; padding: 15px 17px; border: 1px solid var(--sbc-line); border-radius: 10px; background: #fff; }
.sbc-product-service-points span { color: var(--sbc-muted); font-size: .88rem; }
.sbc-access-box { margin: 22px 0; padding: 20px; border-left: 5px solid var(--sbc-lime); border-radius: 10px; background: var(--sbc-soft); }
.sbc-access-box p { margin-top: 0; }
.sbc-access-box .sbc-button { display: inline-flex; }
.sbc-quote-inline { margin-top: 24px; padding: 22px; border: 1px solid var(--sbc-line); border-radius: var(--sbc-radius); background: #fff; }
.sbc-quote-inline form { display: flex; gap: 12px; align-items: end; }
.sbc-quote-inline input[type="number"] { width: 92px; min-height: 46px; padding: 8px 12px; border: 1px solid var(--sbc-line); border-radius: 9px; }
.sbc-status { display: inline-flex; padding: 5px 10px; border-radius: 999px; background: var(--sbc-soft); color: var(--sbc-green); font-size: .78rem; font-weight: 800; }

/* Devis */
.sbc-page-head { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; padding-block: 24px 32px; }
.sbc-page-head p { max-width: 690px; color: var(--sbc-muted); font-size: 1.08rem; }
.sbc-steps { display: flex; gap: 8px; }
.sbc-step { min-width: 96px; text-align: center; color: var(--sbc-muted); font-size: .78rem; }
.sbc-step b { display: grid; width: 40px; height: 40px; place-items: center; margin: 0 auto 7px; border-radius: 50%; background: #e3e5df; color: var(--sbc-charcoal); }
.sbc-step.is-active b { background: var(--sbc-green); color: #fff; }
.sbc-quote-layout { display: grid; grid-template-columns: minmax(0,1fr) 380px; gap: 24px; align-items: start; }
.sbc-quote-panel { padding: 26px; }
.sbc-quote-item { display: grid; grid-template-columns: 90px 1fr 130px auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--sbc-line); }
.sbc-quote-item img { width: 90px; height: 74px; padding: 8px; object-fit: contain; border-radius: 9px; background: #f1f2ef; }
.sbc-quote-item h3 { margin: 0 0 4px; font-size: 1rem; }
.sbc-quote-item small { color: var(--sbc-muted); }
.sbc-quote-item input { width: 100%; min-height: 42px; padding: 8px; border: 1px solid var(--sbc-line); border-radius: 8px; }
.sbc-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sbc-field { display: flex; flex-direction: column; gap: 7px; }
.sbc-field--wide { grid-column: 1 / -1; }
.sbc-field label { font-weight: 750; }
.sbc-field input, .sbc-field select, .sbc-field textarea { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid var(--sbc-line); border-radius: 9px; background: #fff; }
.sbc-field textarea { min-height: 130px; resize: vertical; }
.sbc-quote-summary { position: sticky; top: 160px; padding: 26px; }
.sbc-quote-summary__line { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--sbc-line); }
.sbc-quote-summary .sbc-button { display: flex; width: 100%; justify-content: center; margin-top: 20px; }
.sbc-notice { margin-bottom: 20px; padding: 14px 18px; border-left: 5px solid var(--sbc-green); border-radius: 8px; background: var(--sbc-soft); }
.sbc-notice--error { border-color: var(--sbc-danger); background: #fff2f2; }

/* Connexion professionnelle */
.sbc-login-shell { display: grid; grid-template-columns: 1.1fr .9fr; overflow: hidden; margin-block: 20px 70px; border-radius: 20px; box-shadow: var(--sbc-shadow); }
.sbc-login-intro { min-height: 650px; padding: clamp(40px,5vw,72px); background: var(--sbc-charcoal); color: #fff; }
.sbc-login-intro p { color: #d9ddd2; }
.sbc-benefits { display: grid; gap: 16px; margin-top: 32px; padding: 0; list-style: none; }
.sbc-benefits li::before { content: "✓"; display: inline-grid; width: 25px; height: 25px; place-items: center; margin-right: 10px; border-radius: 50%; background: var(--sbc-lime); color: var(--sbc-charcoal); font-weight: 900; }
.sbc-login-form { padding: clamp(36px,5vw,70px); background: #fff; }
.sbc-login-form .woocommerce form.login, .sbc-login-form .woocommerce form.register { margin: 20px 0; padding: 0; border: 0; }
.sbc-login-form .input-text { min-height: 48px; border: 1px solid var(--sbc-line); border-radius: 9px; }

/* Pied */
.sbc-site-footer { padding: 58px 0 24px; background: var(--sbc-charcoal); color: #fff; }
.sbc-footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3,1fr); gap: 50px; }
.sbc-footer-logo img { max-width: 150px; max-height: 80px; }
.sbc-site-footer h3 { font-size: .95rem; letter-spacing: 0; }
.sbc-site-footer ul { margin: 0; padding: 0; list-style: none; }
.sbc-site-footer li { margin: 7px 0; }
.sbc-site-footer a { color: #dfe3d8; text-decoration: none; }
.sbc-footer-bottom { margin-top: 42px; padding-top: 18px; border-top: 1px solid #444b41; color: #b9c0b5; font-size: .8rem; }

@media (max-width: 1100px) {
  h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
  h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
  .sbc-container { width: min(calc(100% - 32px), var(--sbc-container)); }
  .sbc-header-main { grid-template-columns: 120px minmax(180px,1fr) auto; gap: 14px; }
  .sbc-header-actions .sbc-action-label, .sbc-search-label { display: none; }
  .sbc-product-search button { width: 42px; justify-content: center; padding: 0; }
  .sbc-nav { overflow-x: auto; scrollbar-width: none; }
  .sbc-nav::-webkit-scrollbar { display: none; }
  .sbc-nav__inner { justify-content: flex-start; }
  .sbc-nav ul { width: max-content; gap: 22px; }
  .sbc-nav a { font-size: .86rem; }
  .sbc-slider--visual .sbc-slider__slide, .sbc-slider__full-image { height: 500px; min-height: 500px; }
  .sbc-category-grid { grid-template-columns: repeat(3,1fr); }
  .sbc-product-grid, .woocommerce ul.products { grid-template-columns: repeat(2,1fr); }
  .sbc-catalog-layout { grid-template-columns: 215px minmax(0,1fr); gap: 20px; }
  .woocommerce div.product { grid-template-columns: minmax(0,1fr) minmax(320px,.85fr); gap: 34px; }
  .woocommerce div.product .product_title { font-size: clamp(2.15rem,4vw,3rem); }
  .sbc-quote-layout { grid-template-columns: 1fr; }
  .sbc-quote-summary { position: static; }
  .sbc-footer-grid { gap: 30px; }
}

@media (max-width: 760px) {
  body { font-size: 14.5px; line-height: 1.46; }
  body.admin-bar .sbc-site-header { top: 46px; }
  h1 { font-size: clamp(1.75rem, 8vw, 2.15rem); }
  h2 { font-size: clamp(1.35rem, 6vw, 1.7rem); }
  .sbc-container { width: min(calc(100% - 28px), var(--sbc-container)); }
  .sbc-main { padding-bottom: 56px; }
  .sbc-header-main { grid-template-columns: 88px 1fr; gap: 8px 12px; min-height: 0; padding-block: 9px 11px; }
  .sbc-logo img { max-width: 88px; max-height: 44px; }
  .sbc-header-actions { grid-column: 2; justify-content: flex-end; gap: 5px; }
  .sbc-header-link, .sbc-menu-toggle { width: 42px; min-height: 42px; justify-content: center; padding: 0; }
  .sbc-header-link--quote { position: relative; }
  .sbc-quote-count { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; font-size: .65rem; }
  .sbc-menu-toggle { display: inline-flex; align-items: center; border: 1px solid var(--sbc-line); background: #fff; color: var(--sbc-charcoal); }
  .sbc-menu-toggle > span { display: none; }
  .sbc-product-search { grid-column: 1 / -1; grid-row: 2; margin-top: 2px; }
  .sbc-product-search input { min-height: 42px; padding-inline: 14px; }
  .sbc-product-search button { width: 40px; min-height: 38px; }
  .sbc-nav { overflow: visible; }
  .sbc-nav__inner { display: none; width: 100%; padding: 8px 14px 14px; }
  .sbc-nav.is-open .sbc-nav__inner { display: block; }
  .sbc-nav ul { width: 100%; flex-direction: column; align-items: stretch; gap: 0; }
  .sbc-nav li { width: 100%; border-bottom: 1px solid var(--sbc-line); }
  .sbc-nav li:last-child { border-bottom: 0; }
  .sbc-nav a { display: block; padding: 11px 4px; font-size: .93rem; }
  .sbc-hero { grid-template-columns: 1fr; }
  .sbc-hero__media { order: -1; min-height: 250px; }
  .sbc-hero__content { padding: 30px 22px 42px; }
  .sbc-slider__slide { min-height: auto; grid-template-columns: 1fr; }
  .sbc-slider__media { order: -1; min-height: 235px; }
  .sbc-slider__content { padding: 30px 22px 70px; }
  .sbc-slider__content p { font-size: 1rem; }
  .sbc-slider--visual .sbc-slider__slide, .sbc-slider__full-image { height: 350px; min-height: 350px; }
  .sbc-slider__full-image { position: relative; }
  .sbc-slider__full-image img { height: 100%; min-height: 0; object-fit: cover; object-position: 72% center; }
  .sbc-slider__mobile-caption { position: absolute; right: 14px; bottom: 14px; left: 14px; display: flex; flex-direction: column; gap: 2px; max-width: 260px; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.94); color: var(--sbc-charcoal); font: 800 1.05rem/1.2 Manrope, sans-serif; box-shadow: var(--sbc-shadow); }
  .sbc-slider__mobile-caption small { color: var(--sbc-green); font: 700 .78rem/1.4 Inter, sans-serif; }
  .sbc-slider__navigation { top: 14px; right: 14px; bottom: auto; gap: 8px; padding: 6px; }
  .sbc-slider__arrow { width: 34px; min-height: 34px; }
  .sbc-slider__dots button { width: 8px; min-height: 8px; }
  .sbc-slider__dots button.is-active { width: 18px; }
  .sbc-section { padding-block: 48px; }
  .sbc-section__head { display: block; margin-bottom: 20px; }
  .sbc-section__head > a { display: inline-block; margin-top: 6px; }
  .sbc-category-grid { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .sbc-category-card { min-width: 76vw; min-height: 210px; scroll-snap-align: start; }
  .sbc-product-grid, .woocommerce ul.products { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 10px; }
  .sbc-product-card__body { padding: 14px; }
  .sbc-product-card h3 { font-size: .95rem; }
  .sbc-product-card .sbc-button { width: 100%; padding-inline: 10px; text-align: center; }
  .sbc-marquee__item { width: min(var(--sbc-marquee-w, 160px), 42vw); height: min(var(--sbc-marquee-h, 80px), 64px); padding: 8px 14px; }
  .sbc-marquee__item span { font-size: .92rem; }
  .sbc-callout { flex-direction: column; align-items: stretch; padding: 24px; }
  .sbc-callout .sbc-button { text-align: center; }
  .woocommerce .woocommerce-breadcrumb, .woocommerce-products-header, .sbc-catalog-layout, .woocommerce div.product { width: min(calc(100% - 28px), var(--sbc-container)); }
  .sbc-catalog-hero { min-height: 0; border-radius: 13px; }
  .sbc-catalog-hero.has-image { grid-template-columns: 1fr; }
  .sbc-catalog-hero__image { order: -1; min-height: 180px; }
  .sbc-catalog-hero__content { padding: 23px 19px 25px; }
  .sbc-catalog-hero h1 { margin-bottom: 9px; font-size: 1.75rem; }
  .sbc-catalog-hero__description { font-size: .9rem; }
  .sbc-subcategory-strip a { flex-basis: 170px; height: 116px; }
  .sbc-catalog-layout { grid-template-columns: 1fr; gap: 14px; margin-top: 22px; }
  .sbc-filter-toggle { display: flex; width: 100%; min-height: 46px; justify-content: space-between; align-items: center; grid-column: 1; padding: 11px 15px; }
  .sbc-catalog-sidebar { display: none; grid-column: 1; }
  .sbc-catalog-sidebar.is-open { display: block; }
  .sbc-catalog-results { width: 100%; min-width: 0; grid-column: 1; }
  .sbc-catalog-results .woocommerce-result-count { float: none; margin: 4px 0 12px; }
  .sbc-catalog-results .woocommerce-ordering { float: none; width: 100%; margin-bottom: 18px; }
  .sbc-catalog-results .woocommerce-ordering select { width: 100%; }
  .woocommerce ul.products li.product { border-radius: 10px; padding-bottom: 10px; }
  .woocommerce ul.products li.product a img { margin-bottom: 10px; padding: 9px; aspect-ratio: 1/1; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { min-height: 4.6em; margin: 4px 9px 10px; font-size: .78rem; line-height: 1.28; }
  .sbc-loop-brand { margin: 0 9px 2px; font-size: .6rem; }
  .sbc-loop-quote-form { margin: auto 9px 0; }
  .woocommerce ul.products li.product .sbc-loop-quote-button { width: calc(100% - 18px); min-height: 40px; margin: auto 9px 0; padding: 7px 6px; gap: 5px; font-size: .7rem; }
  .woocommerce ul.products li.product .sbc-loop-quote-form .sbc-loop-quote-button { width: 100%; margin: 0; }
  .woocommerce ul.products li.product .sbc-loop-quote-button .sbc-icon { width: 15px; height: 15px; flex-basis: 15px; }
  .woocommerce div.product { grid-template-columns: 1fr; gap: 26px; }
  .woocommerce div.product .product_title { font-size: 2.1rem; }
  .woocommerce div.product div.summary { padding-top: 0; }
  .woocommerce div.product .woocommerce-tabs ul.tabs { display: flex; gap: 22px; overflow-x: auto; white-space: nowrap; }
  .woocommerce div.product .woocommerce-tabs ul.tabs li { flex: 0 0 auto; margin-right: 0; }
  .woocommerce div.product .related > h2 { font-size: 1.7rem; }
  .sbc-quote-inline { padding: 18px; }
  .sbc-quote-inline form { flex-direction: column; align-items: stretch; }
  .sbc-quote-inline input[type="number"], .sbc-quote-inline select { width: 100%; min-height: 44px; border: 1px solid var(--sbc-line); border-radius: 9px; padding: 8px 10px; }
  .sbc-page-head { grid-template-columns: 1fr; padding-block: 22px; }
  .sbc-steps { overflow-x: auto; padding-bottom: 8px; }
  .sbc-step { min-width: 82px; }
  .sbc-quote-panel, .sbc-quote-summary { padding: 19px; }
  .sbc-quote-item { grid-template-columns: 68px 1fr; gap: 12px; }
  .sbc-quote-item img { width: 68px; height: 62px; }
  .sbc-quote-item__qty, .sbc-quote-item__remove { grid-column: 2; }
  .sbc-form-grid { grid-template-columns: 1fr; }
  .sbc-field--wide { grid-column: auto; }
  .sbc-login-shell { grid-template-columns: 1fr; margin-bottom: 48px; border-radius: 14px; }
  .sbc-login-intro { min-height: auto; padding: 32px 24px; }
  .sbc-login-form { padding: 32px 24px; }
  .sbc-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 22px; }
  .sbc-site-footer { padding-top: 44px; }
  .sbc-footer-bottom span { display: block; float: none !important; margin-top: 8px; }
}

@media (max-width: 560px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.4rem; }
  .sbc-slider--visual .sbc-slider__slide, .sbc-slider__full-image { height: 320px; min-height: 320px; }
  .sbc-slider__mobile-caption { max-width: 220px; font-size: .98rem; }
  .sbc-product-grid { grid-template-columns: 1fr; }
  .woocommerce ul.products { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  .sbc-category-card { min-width: 84vw; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { min-height: 0; font-size: .95rem; }
  .woocommerce div.product .product_title { font-size: 1.9rem; }
  .sbc-footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
