/* =============================================================================
   AgriShop – feuille de style publique
   Palette : vert forêt / vert prairie / crème / jaune moisson
   ============================================================================= */
:root {
    --green-950: #12241a;
    --green-900: #1f3d2b;
    --green-800: #254a33;
    --green-700: #2e6b3f;
    --green-600: #3a7f4b;
    --green-500: #4f9a57;
    --green-200: #cfe2c9;
    --green-100: #e6f0e2;
    --green-50: #f3f7f0;
    --cream: #f7f5ef;
    --sand: #eee7d6;
    --accent: #e9a319;
    --accent-600: #cf8c08;
    --accent-100: #fdf1d4;
    --orange: #dd6b26;
    --text: #1c2a21;
    --muted: #5d6c62;
    --border: #e0e5da;
    --white: #fff;
    --danger: #c0392b;
    --danger-100: #fbe9e7;
    --warning-100: #fff4da;
    --info-100: #e7f1fb;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow-sm: 0 1px 2px rgba(18, 36, 26, .06), 0 2px 8px rgba(18, 36, 26, .05);
    --shadow: 0 10px 30px rgba(18, 36, 26, .10);
    --shadow-lg: 0 24px 60px rgba(18, 36, 26, .18);
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --container: 1240px;
    --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--text); background: var(--cream); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-900); text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--green-950); letter-spacing: -.015em; }
h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.85rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 860px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--green-900); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }
.hp-field { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 760px; }
.prose { max-width: 820px; }
.prose p:last-child { margin-bottom: 0; }

.icon { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }

/* ---------------------------------------------------------------- Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .72em 1.25em; border-radius: 10px; border: 2px solid transparent; font-weight: 700; font-size: .95rem; line-height: 1.2; cursor: pointer; text-decoration: none !important; transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.is-disabled { opacity: .55; cursor: not-allowed; }
.btn--primary { background: var(--green-700); color: #fff; box-shadow: 0 4px 14px rgba(46, 107, 63, .28); }
.btn--primary:hover { background: var(--green-800); color: #fff; }
.btn--accent { background: var(--accent); color: var(--green-950); box-shadow: 0 6px 18px rgba(233, 163, 25, .35); }
.btn--accent:hover { background: var(--accent-600); color: var(--green-950); }
.btn--outline { background: #fff; border-color: var(--green-700); color: var(--green-700); }
.btn--outline:hover { background: var(--green-50); color: var(--green-900); }
.btn--ghost { background: transparent; color: var(--green-800); }
.btn--ghost:hover { background: var(--green-100); color: var(--green-900); }
.btn--glass { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .5); backdrop-filter: blur(6px); }
.btn--glass:hover { background: rgba(255, 255, 255, .26); color: #fff; }
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover { background: #a93226; color: #fff; }
.btn--danger-text { color: var(--danger); }
.btn--danger-text:hover { background: var(--danger-100); color: var(--danger); }
.btn--sm { padding: .5em .85em; font-size: .85rem; border-radius: 8px; }
.btn--lg { padding: .95em 1.6em; font-size: 1.02rem; }
.btn--block { display: flex; width: 100%; }
.btn--grow { flex: 1; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--border); background: #fff; color: var(--muted); cursor: pointer; transition: .2s; }
.icon-btn:hover { color: var(--danger); border-color: var(--danger); }

.badge { display: inline-flex; align-items: center; padding: .25em .6em; border-radius: 999px; font-size: .74rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.badge--sale { background: var(--orange); color: #fff; }
.badge--condition { background: var(--green-900); color: #fff; }
.badge--new { background: var(--accent); color: var(--green-950); }
.pill { display: inline-flex; min-width: 1.4em; height: 1.4em; padding: 0 .4em; align-items: center; justify-content: center; border-radius: 999px; background: var(--green-700); color: #fff; font-size: .75rem; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 18px 0 0; padding: 0; }
.chip { display: inline-flex; align-items: center; gap: .45em; padding: .5em .95em; background: #fff; border: 1px solid var(--border); border-radius: 999px; color: var(--green-900); font-weight: 600; font-size: .92rem; transition: .2s; }
.chip:hover { border-color: var(--green-600); background: var(--green-50); text-decoration: none; }
.chip .icon { color: var(--green-600); }
.chip__count { color: var(--muted); font-weight: 500; font-size: .82rem; }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: var(--radius-sm); border: 1px solid; margin: 0 0 18px; }
.alert p { margin: 0 0 .25em; }
.alert p:last-child { margin: 0; }
.alert > .icon { margin-top: .15em; }
.alert--success { background: var(--green-100); border-color: var(--green-200); color: var(--green-900); }
.alert--error { background: var(--danger-100); border-color: #f2c4bd; color: #7b2318; }
.alert--warning { background: var(--warning-100); border-color: #f3dca2; color: #6e4b00; }
.alert--info { background: var(--info-100); border-color: #c5dcf2; color: #1d4a72; }
.flash-stack { margin-top: 18px; }

.spinner { display: inline-block; width: 1em; height: 1em; border: 2px solid var(--green-200); border-top-color: var(--green-700); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -.15em; margin-right: .5em; }
@keyframes spin { to { transform: rotate(360deg); } }

.eyebrow { display: inline-flex; align-items: center; gap: .5em; margin: 0 0 .8em; font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.eyebrow--dark { color: var(--green-600); }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--green-700); }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-back { display: inline-flex; align-items: center; gap: .4em; font-size: .9rem; margin-top: 12px; }

/* ---------------------------------------------------------------- En-tête */
.topbar { background: var(--green-950); color: #cfe0d2; font-size: .84rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; align-items: center; }
.topbar li { display: inline-flex; align-items: center; gap: .45em; }
.topbar a { color: #e7efe8; }
.topbar a:hover { color: var(--accent); }
.topbar .icon { color: var(--accent); }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--border); }
.header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--green-950); text-decoration: none !important; flex: none; }
.brand__logo { max-height: 56px; width: auto; }
.brand__mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: linear-gradient(140deg, var(--green-700), var(--green-900)); color: var(--accent); box-shadow: 0 6px 16px rgba(31, 61, 43, .3); }
.brand__mark .icon { width: 28px; height: 28px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-size: 1.32rem; font-weight: 900; letter-spacing: -.02em; }
.brand__tagline { font-size: .74rem; color: var(--muted); font-weight: 600; }
.brand--light { color: #fff; }
.brand--light .brand__tagline { color: #a8c2ae; }

.search { position: relative; flex: 1; max-width: 560px; display: flex; }
.search input { width: 100%; height: 48px; padding: 0 56px 0 18px; border: 2px solid var(--border); border-radius: 12px; background: var(--green-50); transition: .2s; }
.search input:focus { outline: none; border-color: var(--green-600); background: #fff; box-shadow: 0 0 0 4px rgba(79, 154, 87, .15); }
.search__btn { position: absolute; right: 5px; top: 5px; width: 38px; height: 38px; border: 0; border-radius: 9px; background: var(--green-700); color: #fff; display: grid; place-items: center; cursor: pointer; }
.search__btn:hover { background: var(--green-900); }
.search--page { max-width: 640px; margin-top: 12px; }
.search__suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--border); overflow: hidden; z-index: 60; }
.suggest__item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; color: var(--text); text-decoration: none !important; }
.suggest__item:hover, .suggest__item.is-active { background: var(--green-50); }
.suggest__img { width: 52px; height: 40px; object-fit: cover; border-radius: 6px; background: var(--green-50); }
.suggest__name { flex: 1; font-weight: 600; font-size: .92rem; }
.suggest__name small { display: block; color: var(--muted); font-weight: 400; }
.suggest__price { font-weight: 800; color: var(--green-800); font-size: .9rem; white-space: nowrap; }
.suggest__all { display: block; padding: 11px 14px; background: var(--green-50); font-weight: 700; font-size: .9rem; border-top: 1px solid var(--border); }
.suggest__empty { padding: 14px; color: var(--muted); font-size: .9rem; }

.header__actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.header-action { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 12px; border-radius: 10px; color: var(--green-900); font-size: .74rem; font-weight: 700; text-decoration: none !important; }
.header-action:hover { background: var(--green-50); color: var(--green-900); }
.header-action .icon { width: 24px; height: 24px; }
.header-action__icon { position: relative; display: inline-flex; }
.cart-count { position: absolute; top: -7px; right: -10px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--green-950); font-size: .7rem; font-weight: 900; display: grid; place-items: center; border: 2px solid #fff; }
.cart-count.is-bump { animation: bump .4s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--green-50); color: var(--green-900); cursor: pointer; place-items: center; }
.nav-toggle .icon { width: 24px; height: 24px; }

.main-nav { background: var(--green-900); }
.menu { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.menu__item { position: relative; }
.menu__link { display: inline-flex; align-items: center; gap: .4em; padding: 14px 12px; color: #e6efe7; font-weight: 600; font-size: .9rem; text-decoration: none !important; }
.menu__link:hover, .menu__item:hover > .menu__link, .menu__item:focus-within > .menu__link { color: #fff; background: rgba(255, 255, 255, .07); }
.menu__item--accent { margin-inline-start: auto; }
.menu__item--accent .menu__link { color: var(--accent); }
.menu__caret { width: 1em; height: 1em; opacity: .7; }
.menu__toggle { display: none; }
.mega { display: none; position: absolute; left: 0; top: 100%; min-width: 320px; padding-top: 0; z-index: 70; }
/* Les derniers menus s'ouvrent vers l'intérieur pour ne jamais dépasser du bord de la page */
.menu__item:nth-last-child(-n+4) > .mega { left: auto; right: 0; }
.menu__item:hover > .mega, .menu__item:focus-within > .mega { display: block; animation: megaIn .2s ease both; }
@keyframes megaIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.mega__inner { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px 28px; width: max-content; max-width: min(760px, 90vw); padding: 24px 26px; background: #fff; border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-lg); border-top: 3px solid var(--accent); }
.mega__col { min-width: 170px; }
.mega__title { display: block; font-weight: 800; color: var(--green-900); margin-bottom: 6px; }
.mega__list { list-style: none; margin: 0; padding: 0; }
.mega__list a { display: block; padding: 4px 0; color: var(--muted); font-size: .92rem; }
.mega__list a:hover { color: var(--green-700); }
.mega__all { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: .4em; padding-top: 12px; border-top: 1px solid var(--border); font-weight: 700; font-size: .9rem; }

/* ---------------------------------------------------------------- Fil d'Ariane / titres */
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 18px 0 0; font-size: .87rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin-inline-end: 6px; color: #a7b2a9; }
.breadcrumbs a { color: var(--muted); display: inline-flex; }
.breadcrumbs a:hover { color: var(--green-700); }
.page-head { padding-top: 22px; padding-bottom: 6px; }
.page-head__logo { max-height: 70px; width: auto; margin-bottom: 12px; }
.page-head--cover { position: relative; color: #fff; padding: 56px 36px 40px; margin-top: 18px; border-radius: 20px; background: linear-gradient(100deg, rgba(18, 36, 26, .9) 0%, rgba(18, 36, 26, .55) 60%, rgba(18, 36, 26, .2)), var(--cover) center / cover no-repeat; overflow: hidden; }
.page-head--cover h1 { color: #fff; }
.page-head--cover .prose { color: #e1ebe3; }
.page-head--cover .chip { background: rgba(255, 255, 255, .92); }
.page-title { padding: 26px 0 8px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.page-title h1 { margin: 0; }
.page-title .lead { flex-basis: 100%; margin: 0; }
.steps { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; font-size: .85rem; font-weight: 700; color: var(--muted); }
.steps li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: #fff; border: 1px solid var(--border); }
.steps span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--green-100); color: var(--green-800); font-size: .78rem; }
.steps .is-current { color: var(--green-900); border-color: var(--green-600); }
.steps .is-current span, .steps .is-done span { background: var(--green-700); color: #fff; }
.steps .icon { width: 14px; height: 14px; }

/* ---------------------------------------------------------------- Bannière d'accueil */
.hero { position: relative; overflow: hidden; color: #fff; min-height: clamp(460px, 70vh, 640px); display: flex; align-items: center; background: var(--green-900); }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(95deg, rgba(14, 30, 21, .92) 0%, rgba(18, 40, 27, .75) 38%, rgba(18, 40, 27, .15) 75%, rgba(18, 40, 27, 0) 100%); }
.hero--photo .hero__bg::after { background: linear-gradient(95deg, rgba(14, 30, 21, .9) 0%, rgba(14, 30, 21, .6) 45%, rgba(14, 30, 21, .15) 100%); }
.hero__inner { position: relative; z-index: 1; padding-top: 70px; padding-bottom: 70px; }
.hero__content { max-width: 620px; animation: rise .8s ease both; }
.hero__title { color: #fff; font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 900; line-height: 1.05; margin-bottom: .45em; letter-spacing: -.03em; text-wrap: balance; }
.hero__text { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: #dce8de; max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 22px; }
.hero__phone { display: flex; align-items: center; gap: .5em; color: #c9dacd; font-size: .95rem; }
.hero__phone a { color: var(--accent); font-weight: 800; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- Sections */
.section { padding: clamp(48px, 7vw, 84px) 0; }
.section--tinted { background: linear-gradient(180deg, var(--sand) 0%, var(--cream) 100%); }
.section--dark { background: radial-gradient(1200px 400px at 80% 0%, rgba(233, 163, 25, .12), transparent 60%), var(--green-900); color: #dbe7dd; }
.section--dark .section__title, .section--dark h3 { color: #fff; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 30px; }
.section__head--center { justify-content: center; text-align: center; }
.section__title { margin: 0; }

.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.category-card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); color: var(--text); text-decoration: none !important; transition: transform .25s, box-shadow .25s; }
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--text); }
.category-card__media { aspect-ratio: 16 / 10; background: linear-gradient(140deg, var(--green-100), var(--sand)); display: grid; place-items: center; overflow: hidden; }
.category-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.category-card:hover .category-card__media img { transform: scale(1.05); }
.category-card__icon { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 22px; background: #fff; color: var(--green-700); box-shadow: var(--shadow-sm); }
.category-card__icon .icon { width: 44px; height: 44px; stroke-width: 1.5; }
.category-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 2px; }
.category-card__name { font-weight: 800; font-size: 1.08rem; color: var(--green-950); }
.category-card__count { font-size: .86rem; color: var(--muted); }
.category-card__arrow { position: absolute; right: 16px; bottom: 18px; width: 34px; height: 34px; border-radius: 50%; background: var(--green-50); color: var(--green-700); display: grid; place-items: center; transition: .25s; }
.category-card:hover .category-card__arrow { background: var(--accent); color: var(--green-950); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.product-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--green-50); overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .product-card__media img { transform: scale(1.04); }
.product-card__badges { position: absolute; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.product-card__body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.product-card__meta { margin: 0 0 4px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--green-600); }
.product-card__title { font-size: 1.02rem; margin: 0 0 6px; }
.product-card__title a { color: var(--green-950); }
.product-card__excerpt { font-size: .88rem; color: var(--muted); margin-bottom: 8px; }
.product-card__footer { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-top: auto; padding-top: 10px; }

.stock { display: inline-flex; align-items: center; gap: .45em; margin: 0 0 4px; font-size: .84rem; font-weight: 700; }
.stock__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent); }
.stock--in_stock { color: #2c8a3f; }
.stock--low_stock { color: #c27a00; }
.stock--on_order { color: #2b6cb0; }
.stock--out_of_stock { color: var(--danger); }

.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.price__current { font-size: 1.22rem; font-weight: 900; color: var(--green-900); letter-spacing: -.01em; }
.price__current--request { font-size: .98rem; color: var(--green-700); }
.price__old { color: var(--muted); font-size: .9rem; }
.price__label { font-size: .8rem; color: var(--muted); font-weight: 600; }
.price--lg .price__current { font-size: 2rem; }
.price--lg .price__current--request { font-size: 1.3rem; }

.advantages { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.advantage { padding: 28px 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); transition: .25s; }
.advantage:hover { background: rgba(255, 255, 255, .09); transform: translateY(-3px); }
.advantage__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--accent); color: var(--green-950); margin-bottom: 16px; }
.advantage__icon .icon { width: 28px; height: 28px; }
.advantage p { margin: 0; color: #c3d3c6; }

.brand-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.brand-tile { display: grid; place-items: center; height: 96px; padding: 16px; background: #fff; border-radius: var(--radius); border: 1px solid var(--border); transition: .25s; text-decoration: none !important; }
.brand-tile:hover { border-color: var(--green-500); box-shadow: var(--shadow-sm); }
.brand-tile img { max-height: 60px; width: auto; object-fit: contain; filter: grayscale(.4); transition: .25s; }
.brand-tile:hover img { filter: none; }
.brand-tile__name { font-weight: 900; font-size: 1.15rem; color: var(--green-900); letter-spacing: .02em; text-transform: uppercase; }

.section--quote { padding-top: 0; }
.quote-cta { display: grid; grid-template-columns: 1.6fr 1fr; align-items: center; gap: 30px; padding: clamp(32px, 5vw, 56px); border-radius: 24px; color: #dfeae1; background: radial-gradient(600px 300px at 100% 100%, rgba(233, 163, 25, .28), transparent 60%), linear-gradient(120deg, var(--green-800), var(--green-950)); box-shadow: var(--shadow-lg); }
.quote-cta .section__title { color: #fff; margin-bottom: .4em; }
.quote-cta__action { text-align: right; }
.checklist { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.checklist li { display: flex; align-items: center; gap: .6em; }
.checklist .icon { color: var(--accent); }

.contact-block { display: grid; grid-template-columns: 1fr 1.15fr; gap: 32px; align-items: start; }
.contact-list { list-style: none; margin: 20px 0; padding: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list li > .icon { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: var(--green-100); color: var(--green-700); }
.contact-list strong { display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* ---------------------------------------------------------------- Cartes et formulaires */
.card { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-sm); padding: 24px; }
.card__title { display: flex; align-items: center; gap: .5em; font-size: 1.1rem; font-weight: 800; color: var(--green-950); margin: 0 0 16px; padding: 0; }
.card__title .icon { color: var(--green-600); }
fieldset.card { margin: 0 0 20px; min-width: 0; }
.form h3 { margin-top: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-row--3 { grid-template-columns: 1fr 1.4fr 1fr; }
.field { margin-bottom: 16px; min-width: 0; }
.field label { display: block; margin-bottom: 6px; font-weight: 700; font-size: .9rem; color: var(--green-950); }
.optional { color: var(--muted); font-weight: 400; }
.field input, .parts-search input, .field select, .field textarea, .filters select, .sort-form select, .quote-row select, .quote-row input, .price-range input {
    width: 100%; padding: .72em .9em; border: 1.5px solid #cfd8cc; border-radius: 10px; background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .parts-search input:focus, .field select:focus, .field textarea:focus, .filters select:focus, .quote-row select:focus, .quote-row input:focus, .price-range input:focus, .sort-form select:focus {
    outline: none; border-color: var(--green-600); box-shadow: 0 0 0 4px rgba(79, 154, 87, .15);
}
[aria-invalid="true"] { border-color: var(--danger) !important; background: #fffafa !important; }
.field__error { margin: 6px 0 0; color: var(--danger); font-size: .85rem; font-weight: 600; }
.form-hint { display: flex; align-items: center; gap: .5em; font-size: .86rem; color: var(--muted); margin: 10px 0 0; }
.check { display: flex; align-items: flex-start; gap: .6em; margin: 6px 0; cursor: pointer; font-size: .94rem; }
.check input { width: 18px; height: 18px; margin: .15em 0 0; accent-color: var(--green-700); flex: none; }
.check--terms { margin: 14px 0; font-size: .9rem; }
.options { display: grid; gap: 10px; }
.option { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: 12px; cursor: pointer; transition: .2s; }
.option:hover { border-color: var(--green-500); }
.option:has(input:checked) { border-color: var(--green-700); background: var(--green-50); box-shadow: 0 0 0 3px rgba(46, 107, 63, .1); }
.option input { width: 18px; height: 18px; accent-color: var(--green-700); flex: none; }
.option__body { flex: 1; display: flex; flex-direction: column; }
.option__body small { color: var(--muted); }
.option__price { font-weight: 800; color: var(--green-900); white-space: nowrap; }

/* ---------------------------------------------------------------- Catalogue */
.listing { display: grid; grid-template-columns: 270px 1fr; gap: 28px; align-items: start; padding: 20px 0 64px; }
.filters { position: sticky; top: calc(var(--header-h) + 60px); background: #fff; border-radius: var(--radius); border: 1px solid var(--border); padding: 20px; max-height: calc(100vh - var(--header-h) - 80px); overflow: auto; }
.filters__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.filters__title { display: flex; align-items: center; gap: .45em; font-size: 1.05rem; margin: 0; }
.filters__close { display: none; border: 0; background: var(--green-50); width: 38px; height: 38px; border-radius: 10px; cursor: pointer; place-items: center; }
.filter-group { border: 0; border-top: 1px solid var(--border); margin: 0; padding: 16px 0 10px; min-width: 0; }
.filter-group legend { font-weight: 800; font-size: .86rem; text-transform: uppercase; letter-spacing: .06em; color: var(--green-900); padding: 0; margin-bottom: 10px; float: left; width: 100%; }
.filter-group legend + * { clear: both; }
.filter-group .check { justify-content: flex-start; font-size: .92rem; }
.filter-group .check span:not(.count) { flex: 1; }
.count { color: var(--muted); font-size: .8rem; background: var(--green-50); padding: 0 .5em; border-radius: 999px; }
.filter-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.filter-links a { display: flex; justify-content: space-between; padding: 5px 0; color: var(--text); font-size: .93rem; }
.filter-links a:hover { color: var(--green-700); }
.price-range { display: flex; align-items: center; gap: 8px; }
.filters__actions { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--border); }
.listing__toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.listing__count { margin: 0; color: var(--muted); }
.listing__count strong { color: var(--green-950); font-size: 1.1rem; }
.listing__tools { display: flex; gap: 10px; align-items: center; }
.filters-open { display: none; }
.sort-form select { width: auto; padding: .55em 2em .55em .8em; }
.filters-backdrop { display: none; }

.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 36px 0 0; }
.pagination__link { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border-radius: 10px; background: #fff; border: 1px solid var(--border); color: var(--green-900); font-weight: 700; text-decoration: none !important; }
.pagination__link:hover { border-color: var(--green-600); }
.pagination__link.is-active { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.pagination__gap { display: grid; place-items: center; min-width: 30px; color: var(--muted); }

.empty-state { text-align: center; padding: 56px 24px; background: #fff; border-radius: var(--radius); border: 1px dashed #c8d3c4; }
.empty-state__icon { width: 56px; height: 56px; color: var(--green-500); margin-bottom: 12px; stroke-width: 1.4; }
.empty-state p { color: var(--muted); max-width: 520px; margin-left: auto; margin-right: auto; }
.empty-state__actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }

/* ---------------------------------------------------------------- Fiche produit */
.product { display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px; padding-top: 24px; padding-bottom: 40px; align-items: start; }
.product__gallery { position: sticky; top: calc(var(--header-h) + 64px); }
.gallery__main { position: relative; aspect-ratio: 4 / 3; background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; background: #fff; transition: opacity .25s; }
.gallery__main img.is-fading { opacity: 0; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; list-style: none; margin: 12px 0 0; padding: 0; }
.gallery__thumb { display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: #fff; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active, .gallery__thumb:hover { border-color: var(--green-600); }
.product__brand { display: inline-block; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; color: var(--green-600); margin-bottom: 6px; }
.product__title { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 12px; }
.product__ref { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 0 0 16px; padding: 0; font-size: .88rem; color: var(--muted); }
.product__ref strong { color: var(--text); }
.product__lead { font-size: 1.05rem; color: #3e4c43; }
.buy-box { margin-top: 20px; padding: 24px; background: #fff; border-radius: 18px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); display: grid; gap: 14px; }
.buy-box__row { display: flex; gap: 12px; }
.buy-box__note { margin: 0; color: var(--muted); }
.buy-box__perks { list-style: none; margin: 4px 0 0; padding: 14px 0 0; border-top: 1px solid var(--border); display: grid; gap: 10px; font-size: .92rem; }
.buy-box__perks li { display: flex; gap: 10px; align-items: flex-start; }
.buy-box__perks .icon { color: var(--green-600); margin-top: .1em; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid #cfd8cc; border-radius: 10px; background: #fff; overflow: hidden; flex: none; }
.qty__btn { width: 42px; height: 50px; border: 0; background: var(--green-50); color: var(--green-900); cursor: pointer; display: grid; place-items: center; }
.qty__btn:hover { background: var(--green-100); }
.qty__input { width: 58px; height: 50px; border: 0; text-align: center; font-weight: 800; -moz-appearance: textfield; appearance: textfield; }
.qty__input::-webkit-outer-spin-button, .qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm .qty__btn { width: 32px; height: 38px; }
.qty--sm .qty__input { width: 44px; height: 38px; }

.product-details { padding-bottom: 40px; }
.tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--border); overflow-x: auto; }
.tabs__btn { padding: 14px 20px; border: 0; background: none; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; cursor: pointer; white-space: nowrap; }
.tabs__btn:hover { color: var(--green-800); }
.tabs__btn.is-active { color: var(--green-900); border-bottom-color: var(--accent); }
.tabs__panel { padding: 28px 4px; }
.spec-table { width: 100%; max-width: 820px; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.spec-table th, .spec-table td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--border); }
.spec-table tr:nth-child(odd) { background: var(--green-50); }
.spec-table th { width: 40%; font-weight: 700; color: var(--green-950); }

/* ---------------------------------------------------------------- Panier / commande */
.cart { padding-bottom: 64px; }
.cart__loading { padding: 40px; text-align: center; color: var(--muted); }
.cart__layout, .checkout, .quote-form { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; padding-top: 12px; }
.cart__table-wrap { padding: 0; overflow-x: auto; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; padding: 14px 16px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 1px solid var(--border); }
.cart-table td { padding: 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-table tr:last-child td { border-bottom: 0; }
.cart-table .num { white-space: nowrap; }
.cart-item { display: flex; gap: 14px; align-items: center; min-width: 220px; }
.cart-item__img { width: 76px; height: 58px; object-fit: cover; border-radius: 8px; background: var(--green-50); flex: none; }
.cart-item__name { font-weight: 700; color: var(--green-950); }
.cart-item__meta { display: block; font-size: .8rem; color: var(--muted); }
.cart-item__msg { display: block; font-size: .82rem; color: var(--danger); font-weight: 600; margin-top: 2px; }
.cart-row--invalid { background: #fffaf8; }
.cart__actions { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.cart__actions-right { display: flex; gap: 8px; flex-wrap: wrap; }
.summary { position: sticky; top: calc(var(--header-h) + 64px); }
.summary__title { font-size: 1.2rem; margin-bottom: 14px; }
.summary__shipping { border: 0; padding: 0; margin: 0 0 12px; }
.summary__shipping legend { font-weight: 700; font-size: .9rem; margin-bottom: 8px; }
.summary__shipping .option { padding: 10px 12px; }
.summary__totals { margin: 0 0 18px; display: grid; gap: 8px; }
.summary__totals div { display: flex; justify-content: space-between; gap: 10px; }
.summary__totals dt { color: var(--muted); }
.summary__totals dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.summary__total { padding-top: 12px; margin-top: 4px; border-top: 2px solid var(--border); }
.summary__total dt { color: var(--green-950); font-weight: 800; }
.summary__total dd { font-size: 1.45rem; font-weight: 900; color: var(--green-900); }
.summary__secure { display: flex; gap: .5em; align-items: center; justify-content: center; margin: 12px 0 0; font-size: .82rem; color: var(--muted); text-align: center; }
.summary-lines { list-style: none; margin: 0 0 14px; padding: 0 0 12px; border-bottom: 1px solid var(--border); display: grid; gap: 10px; max-height: 320px; overflow: auto; }
.summary-line { display: flex; gap: 10px; align-items: center; font-size: .9rem; }
.summary-line img { width: 48px; height: 38px; object-fit: cover; border-radius: 6px; flex: none; }
.summary-line__name { flex: 1; }
.summary-line__name small { display: block; color: var(--muted); }
.summary-line--invalid { color: var(--danger); }
.free-shipping { padding: 12px 14px; border-radius: 10px; background: var(--accent-100); margin-bottom: 14px; font-size: .88rem; }
.free-shipping p { margin: 0 0 8px; }
.progress { height: 8px; border-radius: 999px; background: #f3dfae; overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--orange)); border-radius: inherit; transition: width .4s; }

.success { text-align: center; padding: 48px 20px 24px; }
.success__icon { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--green-700); color: #fff; box-shadow: 0 0 0 10px var(--green-100); animation: pop .5s ease both; }
.success__icon .icon { width: 42px; height: 42px; stroke-width: 2.4; }
.success__number { font-size: 1.15rem; }
.success__number strong { color: var(--green-800); font-size: 1.3rem; letter-spacing: .03em; }
@keyframes pop { from { transform: scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }
.order-recap { margin: 10px 0 30px; }
.recap-table { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
.recap-table th, .recap-table td { padding: 10px 8px; border-bottom: 1px solid var(--border); text-align: left; }
.recap-table tfoot th { font-weight: 600; color: var(--muted); text-align: right; }
.recap-table .num { text-align: right; }
.recap-table__total th, .recap-table__total td { font-weight: 900; color: var(--green-900); font-size: 1.1rem; border-bottom: 0; }
.order-recap__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.quote-rows { display: grid; gap: 10px; margin-bottom: 12px; }
.quote-row { display: grid; grid-template-columns: 1fr 110px 38px; gap: 10px; align-items: center; }
.quote-row__qty { display: flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 700; }
.quote-row__qty input { padding: .6em; }
.howto { list-style: none; counter-reset: step; margin: 0 0 20px; padding: 0; display: grid; gap: 14px; }
.howto li { counter-increment: step; position: relative; padding-left: 44px; display: flex; flex-direction: column; }
.howto li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--green-100); color: var(--green-800); font-weight: 800; display: grid; place-items: center; }
.howto span { color: var(--muted); font-size: .9rem; }

.legal-page { padding: 30px 20px 60px; }
.legal-list { display: grid; gap: 8px; margin-top: 24px; padding: 20px; background: #fff; border-radius: var(--radius); border: 1px solid var(--border); }
.legal-list div { display: grid; grid-template-columns: 220px 1fr; gap: 12px; }
.legal-list dt { font-weight: 700; }
.legal-list dd { margin: 0; }
.error-page { text-align: center; padding: 70px 20px; }
.error-page__code { font-size: clamp(5rem, 14vw, 9rem); font-weight: 900; line-height: 1; color: var(--green-200); letter-spacing: -.05em; }
.error-page p { color: var(--muted); max-width: 560px; margin-left: auto; margin-right: auto; }
.error-page__search { display: flex; gap: 10px; max-width: 520px; margin: 24px auto; }
.error-page__search input { flex: 1; padding: .8em 1em; border: 1.5px solid #cfd8cc; border-radius: 10px; }

/* ---------------------------------------------------------------- Pied de page */
.site-main { min-height: 50vh; }
.site-footer { background: var(--green-950); color: #b8cabd; margin-top: 40px; font-size: .93rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; padding-top: 60px; padding-bottom: 44px; }
.footer__about p { margin: 16px 0; }
.footer__title { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin-bottom: 16px; }
.footer__links, .footer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer__links a, .footer__contact a { color: #cfdcd2; }
.footer__links a:hover, .footer__contact a:hover { color: var(--accent); }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact .icon { color: var(--accent); margin-top: .15em; }
.social { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: rgba(255, 255, 255, .08); color: #fff; transition: .2s; }
.social a:hover { background: var(--accent); color: var(--green-950); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); font-size: .82rem; }
.footer__bottom-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.footer__bottom p { margin: 0; }

/* ---------------------------------------------------------------- Notifications et modale */
.toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: grid; gap: 10px; max-width: min(380px, calc(100vw - 40px)); }
.toast { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--green-950); color: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); animation: toastIn .3s ease both; font-size: .94rem; }
.toast a { color: var(--accent); font-weight: 700; white-space: nowrap; }
.toast--error { background: #7b2318; }
.toast--warning { background: #7a5300; }
.toast .icon { color: var(--accent); flex: none; }
.toast--error .icon { color: #ffcfc7; }
.toast.is-leaving { animation: toastOut .3s ease both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(12, 24, 17, .55); backdrop-filter: blur(2px); }
.modal__dialog { position: relative; width: min(460px, 100%); background: #fff; border-radius: 18px; padding: 28px; box-shadow: var(--shadow-lg); animation: rise .25s ease both; }
.modal__text { color: var(--muted); }
.modal__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1100px) {
    .hide-md { display: none !important; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .cart__layout, .checkout, .quote-form { grid-template-columns: 1fr 340px; }
}

@media (max-width: 960px) {
    :root { --header-h: 66px; }
    .header__inner { flex-wrap: wrap; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
    .search { order: 3; flex-basis: 100%; max-width: none; }
    .nav-toggle { display: grid; }
    .main-nav { display: none; position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); z-index: 120; overflow-y: auto; box-shadow: var(--shadow-lg); padding-top: 12px; }
    .main-nav.is-open { display: block; animation: slideIn .25s ease both; }
    @keyframes slideIn { from { transform: translateX(100%); } to { transform: none; } }
    body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(12, 24, 17, .5); z-index: 110; }
    .main-nav .container { padding: 0; }
    .menu { flex-direction: column; }
    .menu__item { display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid rgba(255, 255, 255, .07); }
    .menu__link { padding: 15px 20px; }
    .menu__caret { display: none; }
    .menu__toggle { display: grid; place-items: center; width: 52px; border: 0; background: none; color: #fff; cursor: pointer; }
    .menu__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
    .mega { position: static; grid-column: 1 / -1; opacity: 1; visibility: visible; transform: none; display: none; min-width: 0; }
    .menu__item:hover > .mega, .menu__item:focus-within > .mega { display: none; }
    .menu__item.is-open > .mega { display: block; }
    .mega__inner { width: auto; max-width: none; grid-template-columns: 1fr; border-radius: 0; box-shadow: none; background: var(--green-800); border-top: 0; padding: 12px 20px 18px 28px; gap: 12px; }
    .mega__title { color: #fff; }
    .mega__list a { color: #cfdcd2; }
    .mega__all { color: var(--accent); border-top-color: rgba(255, 255, 255, .1); }
    .listing { grid-template-columns: 1fr; }
    .filters { position: fixed; inset: 0 auto 0 0; width: min(340px, 88vw); max-height: none; z-index: 130; border-radius: 0; transform: translateX(-105%); transition: transform .25s; top: 0; }
    .filters.is-open { transform: none; box-shadow: var(--shadow-lg); }
    .filters__close { display: grid; }
    .filters-open { display: inline-flex; }
    .filters-backdrop.is-open { display: block; position: fixed; inset: 0; background: rgba(12, 24, 17, .5); z-index: 125; }
    .product { grid-template-columns: 1fr; gap: 24px; }
    .product__gallery, .summary, .filters { position: relative; top: auto; }
    .filters { position: fixed; top: 0; }
    .cart__layout, .checkout, .quote-form { grid-template-columns: 1fr; }
    .quote-cta { grid-template-columns: 1fr; }
    .quote-cta__action { text-align: left; }
    .contact-block { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .container { padding: 0 16px; }
    .hide-sm { display: none !important; }
    .topbar__links { gap: 12px; }
    .brand__tagline { display: none; }
    .brand__name { font-size: 1.12rem; }
    .brand__mark { width: 40px; height: 40px; }
    .header-action__label { display: none; }
    .form-row, .form-row--3, .order-recap__grid { grid-template-columns: 1fr; }
    .section__head { flex-direction: column; align-items: flex-start; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .product-card__body { padding: 12px; }
    .product-card__excerpt { display: none; }
    .product-card__footer { flex-direction: column; align-items: stretch; }
    .product-card__footer .btn span { display: inline; }
    .price__current { font-size: 1.05rem; }
    .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .category-card__arrow { display: none; }
    .footer__grid { grid-template-columns: 1fr; gap: 28px; }
    .steps li { padding: 4px; }
    .steps li:not(.is-current) { font-size: 0; gap: 0; }
    .buy-box__row { flex-direction: column; }
    .qty { align-self: flex-start; }
    .cart-table thead { display: none; }
    .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
    .cart-table tr { padding: 12px 14px; border-bottom: 1px solid var(--border); position: relative; }
    .cart-table td { border: 0; padding: 4px 0; text-align: left !important; }
    .cart-table td[data-label]::before { content: attr(data-label) " : "; color: var(--muted); font-size: .82rem; }
    .cart-table td.cart-remove { position: absolute; top: 12px; right: 12px; width: auto; }
    .quote-row { grid-template-columns: 1fr 38px; }
    .quote-row__qty { grid-column: 1; grid-row: 2; }
    .legal-list div { grid-template-columns: 1fr; gap: 0; }
    .hero__actions .btn { width: 100%; }
    .page-head--cover { padding: 36px 20px 28px; }
}

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

/* =============================================================================
   Sélecteur de langue
   ============================================================================= */
.lang-switch { display: inline-flex; align-items: center; gap: 8px; }
.lang-switch a, .lang-switch__current { padding: 2px 8px; border-radius: 6px; font-weight: 600; }
.lang-switch__current { background: rgba(255, 255, 255, .12); color: #fff; }
.lang-switch a:hover { background: rgba(255, 255, 255, .08); text-decoration: none; }

/* =============================================================================
   Langues de droite à gauche (arabe) : <html dir="rtl">
   La plupart des mises en page (flex, grid) s'inversent automatiquement ;
   les règles ci-dessous traitent les positions explicites.
   ============================================================================= */
[dir="rtl"] body {
    font-family: "Segoe UI", Tahoma, "Geeza Pro", "Noto Sans Arabic", "Noto Naskh Arabic", "Arabic Typesetting", Arial, sans-serif;
    line-height: 1.7;
}
/* L'espacement des lettres casse la liaison des caractères arabes */
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] .eyebrow, [dir="rtl"] .brand__name,
[dir="rtl"] .hero__title, [dir="rtl"] .badge, [dir="rtl"] .filter-group legend, [dir="rtl"] .footer__title,
[dir="rtl"] .product-card__meta, [dir="rtl"] .product__brand, [dir="rtl"] .cart-table th, [dir="rtl"] .contact-list strong,
[dir="rtl"] .brand-tile__name, [dir="rtl"] .price__current { letter-spacing: 0; }
[dir="rtl"] .hero__title { line-height: 1.3; }

/* Flèches et chevrons orientés */
[dir="rtl"] .icon--arrow-right, [dir="rtl"] .icon--arrow-left,
[dir="rtl"] .icon--chevron-right, [dir="rtl"] .icon--chevron-left { transform: scaleX(-1); }
[dir="rtl"] .link-arrow:hover .icon { transform: scaleX(-1) translateX(4px); }
[dir="rtl"] .breadcrumbs li + li::before { content: "‹"; }

/* Positions absolues */
[dir="rtl"] .skip-link { left: auto; right: 12px; }
[dir="rtl"] .search input { padding: 0 18px 0 56px; }
[dir="rtl"] .search__btn { right: auto; left: 5px; }
[dir="rtl"] .cart-count { right: auto; left: -10px; }
[dir="rtl"] .product-card__badges { left: auto; right: 12px; }
[dir="rtl"] .mega { left: auto; right: 0; }
[dir="rtl"] .menu__item:nth-last-child(-n+4) > .mega { right: auto; left: 0; }
[dir="rtl"] .category-card__arrow { right: auto; left: 16px; }
[dir="rtl"] .toast-region { right: auto; left: 20px; }
[dir="rtl"] .howto li { padding-left: 0; padding-right: 44px; }
[dir="rtl"] .howto li::before { left: auto; right: 0; }

/* Alignements de texte */
[dir="rtl"] .num { text-align: left; }
[dir="rtl"] .cart-table th, [dir="rtl"] .recap-table th, [dir="rtl"] .recap-table td, [dir="rtl"] .spec-table th, [dir="rtl"] .spec-table td { text-align: right; }
[dir="rtl"] .recap-table tfoot th { text-align: left; }
[dir="rtl"] .recap-table .num { text-align: left; }
[dir="rtl"] .quote-cta__action { text-align: left; }

/* Bannière et couvertures : dégradé et illustration en miroir (texte à droite) */
[dir="rtl"] .hero__bg::after { background: linear-gradient(265deg, rgba(14, 30, 21, .92) 0%, rgba(18, 40, 27, .75) 38%, rgba(18, 40, 27, .15) 75%, rgba(18, 40, 27, 0) 100%); }
[dir="rtl"] .hero--photo .hero__bg::after { background: linear-gradient(265deg, rgba(14, 30, 21, .9) 0%, rgba(14, 30, 21, .6) 45%, rgba(14, 30, 21, .15) 100%); }
[dir="rtl"] .hero:not(.hero--photo) .hero__bg img { transform: scaleX(-1); }
[dir="rtl"] .page-head--cover { background: linear-gradient(260deg, rgba(18, 36, 26, .9) 0%, rgba(18, 36, 26, .55) 60%, rgba(18, 36, 26, .2)), var(--cover) center / cover no-repeat; }

/* Panneaux latéraux mobiles */
@media (max-width: 960px) {
    [dir="rtl"] .main-nav { inset: 0 auto 0 0; }
    [dir="rtl"] .main-nav.is-open { animation-name: slideInRtl; }
    @keyframes slideInRtl { from { transform: translateX(-100%); } to { transform: none; } }
    [dir="rtl"] .filters { inset: 0 0 0 auto; transform: translateX(105%); }
    [dir="rtl"] .filters.is-open { transform: none; }
    [dir="rtl"] .mega__inner { padding: 12px 28px 18px 20px; }
}
@media (max-width: 640px) {
    [dir="rtl"] .cart-table td { text-align: right !important; }
    [dir="rtl"] .cart-table td.cart-remove { right: auto; left: 12px; }
}

/* Contenus saisis par l'administrateur (produits, catégories…) potentiellement en
   français : le sens de chaque paragraphe est déduit de son contenu, ce qui garde
   la ponctuation à sa place dans un texte latin affiché sur un site arabe. */
[dir="rtl"] .product-card__title, [dir="rtl"] .product-card__excerpt, [dir="rtl"] .product-card__meta,
[dir="rtl"] .product__title, [dir="rtl"] .product__lead, [dir="rtl"] .tabs__panel p, [dir="rtl"] .spec-table td,
[dir="rtl"] .spec-table th, [dir="rtl"] .category-card__name, [dir="rtl"] .menu__link, [dir="rtl"] .mega a,
[dir="rtl"] .chip, [dir="rtl"] .page-head h1, [dir="rtl"] .page-head .prose p, [dir="rtl"] .breadcrumbs li,
[dir="rtl"] .cart-item__name, [dir="rtl"] .summary-line__name, [dir="rtl"] .suggest__name, [dir="rtl"] .filter-links a,
[dir="rtl"] .footer__links a, [dir="rtl"] .brand__tagline, [dir="rtl"] .eyebrow, [dir="rtl"] .recap-table td,
[dir="rtl"] .quote-row select, [dir="rtl"] .legal-page .prose p { unicode-bidi: plaintext; }

/* =============================================================================
   Fonctionnalités complémentaires
   ============================================================================= */
.btn--whatsapp { background: #25d366; color: #fff; }
.btn--whatsapp:hover { background: #1ebe5a; color: #fff; }
.whatsapp-float { position: fixed; bottom: 20px; inset-inline-start: 20px; z-index: 150; display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 999px; background: #25d366; color: #fff; font-weight: 700; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); text-decoration: none !important; transition: transform .2s; }
.whatsapp-float:hover { color: #fff; transform: translateY(-2px); }
.whatsapp-float .icon { width: 24px; height: 24px; }
@media (max-width: 640px) { .whatsapp-float span { display: none; } .whatsapp-float { padding: 14px; } }
.buy-box__contact { display: flex; gap: 8px; flex-wrap: wrap; }
.buy-box__contact .btn { flex: 1; }
.tiers { width: 100%; border-collapse: collapse; font-size: .92rem; background: var(--green-50); border-radius: 10px; overflow: hidden; }
.tiers caption { text-align: start; font-weight: 800; padding: 0 0 6px; display: flex; align-items: center; gap: .4em; color: var(--green-900); }
.tiers th, .tiers td { padding: 7px 12px; border-bottom: 1px solid var(--border); text-align: start; }
.tiers td { text-align: end; }
.stock-alert { display: grid; gap: 6px; padding: 14px; border-radius: 12px; background: var(--accent-100); }
.stock-alert label { display: flex; align-items: center; gap: .45em; font-weight: 700; font-size: .92rem; }
.stock-alert__row { display: flex; gap: 8px; }
.stock-alert__row input { flex: 1; min-width: 0; padding: .65em .8em; border: 1.5px solid #e3cf98; border-radius: 9px; }
.financing { padding: 16px; border: 1.5px dashed var(--green-200); border-radius: 12px; display: grid; gap: 10px; }
.financing__title { display: flex; align-items: center; gap: .45em; font-weight: 800; margin: 0; color: var(--green-900); }
.financing__inputs { display: flex; gap: 10px; flex-wrap: wrap; }
.financing__inputs label { display: grid; gap: 4px; font-size: .85rem; font-weight: 600; flex: 1; min-width: 120px; }
.financing__inputs input, .financing__inputs select { padding: .55em .7em; border: 1.5px solid #cfd8cc; border-radius: 9px; background: #fff; }
.financing__result { margin: 0; }
.financing__result strong { font-size: 1.3rem; color: var(--green-800); }
.financing__disclaimer { margin: 0; font-size: .78rem; color: var(--muted); }
.financing .btn { justify-self: start; }
.callback-product { display: flex; align-items: center; gap: .5em; padding: 10px 14px; background: var(--green-50); border-radius: 10px; }
.captcha { margin: 10px 0; }
.section--tight { padding-top: 0; }
.coupon-form { margin: 0 0 14px; padding: 12px; border: 1px dashed var(--green-200); border-radius: 10px; }
.coupon-form label { display: flex; align-items: center; gap: .4em; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.coupon-form__row { display: flex; gap: 8px; }
.coupon-form__row input { flex: 1; min-width: 0; padding: .5em .7em; border: 1.5px solid #cfd8cc; border-radius: 8px; text-transform: uppercase; }
.coupon-form__msg { margin: 8px 0 0; font-size: .85rem; }
.coupon-form__msg.is-ok { color: var(--green-700); }
.coupon-form__msg.is-error { color: var(--danger); }
.link-btn { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
.summary__discount { color: var(--orange) !important; }
.summary__notes { display: grid !important; gap: 2px; color: var(--muted); }
.cart-item__tier { display: block; font-size: .8rem; color: var(--green-700); font-weight: 600; }
/* Avis, comparateur, conseils */
.stars { display: inline-flex; gap: 1px; color: #d8dcd5; vertical-align: -.15em; }
.stars .icon { width: 1em; height: 1em; stroke-width: 1.4; }
.stars .is-on { color: var(--accent); }
.stars--lg .icon { width: 1.4em; height: 1.4em; }
.product__rating { display: inline-flex; align-items: center; gap: 8px; margin: -4px 0 12px; color: var(--muted); font-size: .9rem; text-decoration: none !important; }
.product-card__rating { margin: 0 0 4px; font-size: .85rem; color: var(--muted); }
.reviews { padding-top: 10px; padding-bottom: 40px; scroll-margin-top: 140px; }
.reviews__summary { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; }
.reviews__layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.review { padding: 18px 0; border-bottom: 1px solid var(--border); }
.review__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.review__title { color: var(--green-950); }
.review__text { margin: 8px 0; }
.review__meta { margin: 0; font-size: .85rem; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.review__reply { margin-top: 10px; padding: 10px 14px; background: var(--green-50); border-inline-start: 3px solid var(--green-600); border-radius: 8px; font-size: .92rem; }
.review__reply p { margin: 4px 0 0; }
.badge--verified { background: var(--green-100); color: var(--green-800); text-transform: none; letter-spacing: 0; gap: 3px; }
.badge--verified .icon { width: .9em; height: .9em; }
.review-form h3 { margin-top: 0; }
.rating-input { border: 0; padding: 0; margin: 0 0 14px; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.rating-input legend { float: left; width: 100%; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
[dir="rtl"] .rating-input legend { float: right; }
.rating-input input { position: absolute; opacity: 0; }
.rating-input label { cursor: pointer; color: #d8dcd5; }
.rating-input label .icon { width: 30px; height: 30px; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: var(--accent); }
.rating-input input:focus-visible + label { outline: 3px solid var(--accent); border-radius: 4px; }
.compare-toggle.is-active { color: var(--green-700); border-color: var(--green-600); background: var(--green-50); }
.compare-toggle--icon { flex: none; }
.compare-bar { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 140; display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; background: var(--green-900); color: #fff; font-weight: 800; box-shadow: var(--shadow-lg); text-decoration: none !important; }
.compare-bar:hover { color: var(--accent); }
.compare-wrap { overflow-x: auto; padding-bottom: 40px; }
.compare-table { width: 100%; min-width: 640px; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.compare-table th, .compare-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: start; vertical-align: top; }
.compare-table tbody th { width: 180px; background: var(--green-50); font-size: .88rem; color: var(--green-950); }
.compare-table thead th { position: relative; font-weight: 700; }
.compare-table thead img { width: 100%; max-width: 200px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; margin-bottom: 8px; }
.compare-table thead a { color: var(--green-950); display: block; }
.compare-remove { position: absolute; top: 8px; inset-inline-end: 8px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); box-shadow: var(--shadow-sm); cursor: pointer; display: grid; place-items: center; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; padding-bottom: 40px; }
.post-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.post-card__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card__body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.post-card__date { display: inline-flex; align-items: center; gap: .4em; margin: 0; font-size: .82rem; color: var(--muted); }
.post-card__title { margin: 0; font-size: 1.1rem; }
.post-card__title a { color: var(--green-950); }
.post-card__excerpt { color: var(--muted); font-size: .92rem; margin: 0 0 8px; flex: 1; }
.post { padding-top: 26px; padding-bottom: 30px; }
.post__cover { width: 100%; border-radius: 18px; margin: 16px 0 26px; aspect-ratio: 16 / 9; object-fit: cover; }
.post__content { max-width: none; font-size: 1.05rem; }
.post__content h2 { margin-top: 1.6em; }
.post__content ul { padding-inline-start: 1.3em; }
@media (max-width: 960px) { .reviews__layout { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .compare-bar { bottom: 80px; } }

/* ---------------------------------------------------------------- Espace client */
.account { padding-block: 32px 64px; }
.account .card { margin-bottom: 20px; }
.account h1 { font-size: 1.5rem; margin-top: 0; }
.auth-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; max-width: 920px; margin-inline: auto; align-items: start; }
.account-pitch { background: var(--green-900, #1f3d2b); color: #fff; border: 0; }
.account-pitch h2 { color: #fff; margin-top: 0; }
.account-pitch .btn--outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); margin-top: 20px; }
.account-pitch .btn--outline:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.account-pitch .muted { color: rgba(255, 255, 255, .7); }
.narrow-form { max-width: 640px; margin-inline: auto; }
.field-hint { display: block; color: var(--muted); font-size: .8rem; margin-top: 4px; }
.account-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }
.account-nav { display: grid; gap: 4px; padding: 16px; position: sticky; top: calc(var(--header-h, 80px) + 16px); }
.account-nav__hello { display: flex; align-items: center; gap: .5em; font-weight: 700; margin: 0 0 10px; }
.account-nav a, .account-nav button { display: flex; align-items: center; gap: .6em; width: 100%; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; text-align: start; }
.account-nav a:hover, .account-nav button:hover, .account-nav a.is-active { background: #eef3ea; }
.account-nav form { margin: 0; }
.status-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #eef3ea; font-size: .82rem; font-weight: 600; white-space: nowrap; }
.table-scroll { overflow-x: auto; }
@media (max-width: 820px) {
    .auth-grid, .account-layout { grid-template-columns: 1fr; }
    .account-nav { position: static; }
}

/* ---------------------------------------------------------------- Pièces par machine */
.section-subtitle { font-size: 1.25rem; margin: 32px 0 16px; }
.parts-search { max-width: 760px; margin-bottom: 8px; }
.parts-search label { font-weight: 700; display: block; margin-bottom: 8px; }
.parts-search__row { display: flex; gap: 10px; }
.parts-search__row input { flex: 1; min-width: 0; }
.parts-models { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.parts-models__group h3 { margin: 0 0 10px; font-size: 1rem; color: var(--green-900); }
.parts-models__group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.parts-models__group a.is-active { font-weight: 700; }
@media (max-width: 560px) { .parts-search__row { flex-direction: column; } }

/* ---------------------------------------------------------------- Location */
.rental-box { margin: 16px 0; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fbfcf8; }
.rental-box > summary { display: flex; align-items: center; gap: .6em; padding: 12px 16px; cursor: pointer; font-weight: 700; list-style: none; }
.rental-box > summary::-webkit-details-marker { display: none; }
.rental-box > summary small { display: block; font-weight: 400; color: var(--muted); }
.rental-box[open] > summary { border-bottom: 1px solid var(--border); }
.rental-box > :not(summary) { margin-inline: 16px; }
.rental-box > .btn { margin-bottom: 16px; width: calc(100% - 32px); }
.rental-cal { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin: 14px 0; }
.rental-cal__month { border-collapse: separate; border-spacing: 2px; width: 100%; font-size: .8rem; text-align: center; }
.rental-cal__month caption { font-weight: 700; padding-bottom: 6px; text-transform: capitalize; }
.rental-cal__month th { color: var(--muted); font-weight: 600; padding: 2px; }
.rental-cal__month td { padding: 4px 0; border-radius: 6px; }
.rental-cal__month td.is-free { background: #e7f3e3; color: #1f3d2b; }
.rental-cal__month td.is-booked { background: #f6d9d4; color: #8a2b1d; text-decoration: line-through; }
.rental-cal__month td.is-past { color: #b9c0b7; }
.rental-cal__legend { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px 10px; font-size: .8rem; color: var(--muted); margin: 0; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 4px; }
.dot--free { background: #e7f3e3; border: 1px solid #b9d9b0; }
.dot--booked { background: #f6d9d4; border: 1px solid #e3aaa0; }
.rental-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.rental-summary__product { display: flex; align-items: center; gap: 12px; color: var(--text); margin-bottom: 12px; }
.rental-summary__product img { width: 96px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); }
.rental-summary__prices { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rental-summary__prices li { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--border); padding-bottom: 6px; }
.rental-estimate { padding: 10px 14px; border-radius: var(--radius-sm); background: #eef3ea; font-weight: 600; }
.rental-estimate.is-warning { background: #fff4dc; color: #7a5300; }
@media (max-width: 860px) { .rental-layout { grid-template-columns: 1fr; } }
