/* ==========================================================================
   Design refresh (client example): header with account + cart at the far right,
   navy menu bar with yellow current pill, hero with mascot + big tyre, icon tabs.
   ========================================================================== */

/* ---- Header ---- */
.header { border-bottom: 0; }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; padding-top: 0 !important; flex-wrap: nowrap !important; }
.header__actions { margin-left: auto !important; display: flex; align-items: center; gap: 6px; }
.header .logo__img { height: 60px; }
.header .icon-btn { font-weight: 700; }
.header .icon-btn .icon { width: 26px; height: 26px; }
.header .cart-total { font-weight: 800; color: var(--blue-900); }
.header .badge { top: 0; right: auto; left: 22px; }

.navbar { background: var(--blue-900); display: none; }
@media (min-width: 960px) { .navbar { display: block; } }
.navbar .container { max-width: 1320px; padding-inline: 20px; }
.navbar .nav { display: block; order: 0; flex: none; margin: 0; border: 0; }
.navbar .nav__list { margin: 0; gap: 6px; align-items: center; padding: 8px 0; }
.navbar .nav__list > li { position: relative; }
.navbar .nav__list a { color: #fff; font-weight: 700; padding: 12px 20px; border-radius: 12px; display: inline-flex; align-items: center; gap: 8px; transition: background .15s, color .15s; }
.navbar .nav__list a .icon { width: 20px; height: 20px; }
.navbar .nav__list a:hover { background: rgba(255,255,255,.12); color: #fff; }
.navbar .nav__list li.is-current > a,
.navbar .nav__list a[aria-current="page"] { background: #ffc61a; color: #0a2470; box-shadow: 0 4px 12px rgba(255,176,0,.35); }
.navbar .menu-item-has-children > a::after { content: ""; border: 4px solid transparent; border-top-color: currentColor; margin-top: 4px; }
.navbar .sub-menu { position: absolute; left: 0; top: 100%; min-width: 240px; background: #fff; border-radius: 12px; box-shadow: 0 16px 40px rgba(2,12,45,.3); padding: 8px; display: none; z-index: 50; }
.navbar li:hover > .sub-menu, .navbar li:focus-within > .sub-menu { display: block; }
.navbar .sub-menu a { color: var(--ink); padding: 10px 14px; display: block; }
.navbar .sub-menu a:hover { background: var(--blue-50); color: var(--blue-700); }

/* ---- Hero ---- */
.hero-section {
  background: #0a47d0 url("../images/hero/hero-bg-mobile.jpg") no-repeat center bottom / cover;
  padding: 40px 0 80px;
  min-height: 660px;
  display: flex; align-items: center;
}
.hero-section > .container { width: 100%; }
.hero-bg { display: none; }
/* Wide screens: Bob (left) and the tyre (right) are separate pieces pinned to their own side, so nothing is cut off at any width;
   the soft fog in the middle stretches. */
@media (min-width: 1400px) {
  .hero-section { background-image: url("../images/hero/hero-mid.jpg"); background-size: 100% 100%; background-position: center; }
  .hero-bg { display: block; position: absolute; inset: 0; z-index: -3; pointer-events: none; overflow: hidden; }
  .hero-bg img { position: absolute; bottom: 0; height: 100%; width: auto; max-width: none; }
  .hero-bg__left { left: 0; -webkit-mask-image: linear-gradient(to right, #000 88%, transparent); mask-image: linear-gradient(to right, #000 88%, transparent); }
  .hero-bg__right { right: 0; -webkit-mask-image: linear-gradient(to left, #000 88%, transparent); mask-image: linear-gradient(to left, #000 88%, transparent); }
}
/* the photo is already glowing: keep the seasonal tint very light */
.hero-section::before { opacity: .45; }
.hero-section .hero-layout { grid-template-columns: 1fr; }
/* wave into the benefits bar */
.hero-section .hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 50px; z-index: 0; pointer-events: none; }
.hero-section .hero-wave path { fill: #f3f6fd; }

.hero-intro h1 { font-size: clamp(2rem, 3.4vw, 3.2rem); font-weight: 900; font-style: italic; line-height: 1.12; letter-spacing: -.02em; text-shadow: 0 3px 14px rgba(0,0,0,.3); }
/* curved, tapered yellow swoosh under the title (not a straight line) */
.hero-intro h1::after { content: ""; display: block; width: min(320px, 80%); height: 22px; margin-top: 10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 22' preserveAspectRatio='none'%3E%3Cpath d='M2 17 Q160 -6 318 9 Q160 4 2 17Z' fill='%23facc15'/%3E%3C/svg%3E") no-repeat left center / 100% 100%; }
.hero-intro p { max-width: 36ch; }

/* wide screens: Bob (in the photo) on the left, text in the middle, search card on the right */
@media (min-width: 1400px) {
  .hero-section .hero-layout { grid-template-columns: minmax(0, 1fr) clamp(500px, 38vw, 590px); gap: 24px; }
  /* Bob takes ~27% of the photo width; the photo is scaled to the hero height (660px => 1760px wide, at least the screen width) */
  .hero-intro { padding-left: calc(0.27 * max(100vw, 1760px) + 24px - max(20px, (100vw - 1320px) / 2 + 20px)); }
  .hero-intro h1 { font-size: clamp(1.9rem, 2.3vw, 2.4rem); }
  .hero-intro p { font-size: 1rem; max-width: 30ch; }
  .hero-quick { gap: 4px 12px; }
  .hero-quick a { font-size: .75rem; }
  .hero-quick .icon { width: 26px; height: 26px; }
}
/* below that: single column, readable text over the photo */
@media (max-width: 1399px) {
  .hero-section::before { opacity: 1; background-image: linear-gradient(180deg, rgba(5,25,95,.55), rgba(5,25,95,.25) 60%, transparent), var(--hero-season-img, none); }
  .hero-intro { text-align: center; }
  .hero-intro h1::after { margin-inline: auto; }
  .hero-intro p { margin-inline: auto; }
  .hero-quick { justify-content: center; }
}

/* ---- Icons inside the hero (sprite icons are stroke-based) ---- */
.hero-section .icon { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.search-tabs-bar { background: #fff; border-bottom: 1px solid #e8edf6; padding: 10px 10px 0; gap: 4px; flex-wrap: nowrap !important; overflow-x: auto !important; }
.search-tab-btn { flex: 1 1 0 !important; min-width: max-content; padding: 10px 12px 12px !important; border-radius: 14px 14px 0 0; color: #334155; font-size: .8rem; }
.search-tab-btn .icon { width: 28px; height: 28px; }
.search-tab-btn.active { background: linear-gradient(180deg, #1f6bff, #0a4fd6) !important; color: #fff !important; box-shadow: 0 6px 14px rgba(10,92,255,.35); }
.search-tab-btn.active::after { display: none; }
.search-tab-btn.active .icon { color: #fff; }
.vehicle-subs { padding-top: 14px; }

.season-btn-group { gap: 8px; }
.season-toggle-btn { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 14px; min-width: 74px; }
.season-toggle-btn .icon { width: 24px; height: 24px; }
.season-toggle-btn:nth-child(2) .icon { color: #f59e0b; }
.season-toggle-btn:nth-child(3) .icon { color: #16a34a; }
.season-toggle-btn:nth-child(4) .icon { color: #2563eb; }
.season-toggle-btn.active .icon { color: #fff !important; }
.btn-rechercher { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-style: italic; font-weight: 900; }
.btn-rechercher .icon { width: 26px; height: 26px; stroke-width: 2.4; }
.hero-quick .icon { fill: none; stroke: currentColor; stroke-width: 1.6; }
.search-widget { border-radius: 24px; overflow: hidden; }

@media (max-width: 959px) { .header .logo__img { height: 44px; } .hero-section { padding: 32px 0 80px; } }

/* ---- Fit fixes inside the search card ---- */
.search-tab-btn { min-width: 0 !important; padding: 10px 4px 12px !important; font-size: .74rem; }
.search-tab-btn .icon { width: 26px; height: 26px; }
.options-season-row { display: flex !important; flex-wrap: wrap; gap: 12px 28px; align-items: flex-end; }
.season-toggle-btn { min-width: 64px; padding: 8px 10px; font-size: .8rem; }
.season-toggle-btn .icon { width: 22px; height: 22px; }
@media (min-width: 1400px) { .hero-quick { gap: 2px 8px; } .hero-quick a { font-size: .7rem; } }
@media (max-width: 480px) { .search-tabs-bar .search-tab-btn { flex: 0 0 auto !important; min-width: 64px !important; padding-inline: 8px !important; } }

/* Quick icons: curved yellow swoosh under each (like the example), not a straight line */
.hero-quick a { border-bottom: 0 !important; position: relative; padding-bottom: 14px; }
.hero-quick a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 9px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 9' preserveAspectRatio='none'%3E%3Cpath d='M1 7 Q50 -3 99 5 Q50 3 1 7Z' fill='%23facc15'/%3E%3C/svg%3E") no-repeat center / 100% 100%; }


/* ==========================================================================
   1.8.41 - Header exactly like the client example:
   [logo] [search pill ........] [Votre compte] [Déconnexion] [cart + total]
   then a full-width navy menu bar (Accueil pill | Produits v | Conseils | Centre de montage | Nous contacter)
   ========================================================================== */
.topbar__contact { align-items: center; gap: 14px; }
.topbar__contact .topbar__sep { width: 1px; height: 16px; background: rgba(255,255,255,.45); }
.topbar__hours { display: inline-flex; align-items: center; gap: 6px; }
.topbar__hours .icon { width: 18px; height: 18px; }
.topbar__promo, .topbar__contact { font-weight: 600; }

@media (min-width: 960px) {
  .header__in { flex-wrap: nowrap !important; gap: 28px !important; min-height: 80px; padding-top: 0 !important; }
  .header__in .logo { order: 1; }
  .header__in .header__search { order: 2; display: block; flex: 1 1 auto; max-width: 580px; margin: 0 !important; }
  .header__in .header__actions { order: 3; margin-left: auto !important; gap: 10px; flex: none; }
  .header .header__search .input { min-height: 46px; border-radius: 999px; background: #eef2fb; border: 1px solid transparent; padding-left: 48px; font-weight: 500; }
  .header .header__search .input:focus { background: #fff; border-color: var(--blue-600); }
  .header .header__search .icon { left: 18px; width: 22px; height: 22px; color: var(--blue-900); }
  .header .icon-btn { color: var(--blue-900); gap: 10px; padding: 0 12px; white-space: nowrap; }
  .header .icon-btn:hover { background: var(--blue-50); }
  .header .badge { top: 2px; left: 38px; right: auto; }
}
/* tablets: keep the search under the logo row instead of squeezing it */
@media (min-width: 960px) and (max-width: 1099px) {
  .header__in { gap: 14px !important; }
  .header .icon-btn__label { display: none; }
}
/* navy bar: left-aligned, same width as the header */
@media (min-width: 960px) {
  .navbar .nav__list { justify-content: flex-start; gap: 8px; padding: 6px 0; }
  .navbar .nav__list a { padding: 11px 20px; font-size: .98rem; }
  .navbar .menu-item-has-children > a::after { margin-left: 4px; }
}
.mobile-search { padding: 12px 16px; }

/* ==========================================================================
   1.8.42 - Hero text was squeezed into a thin column on 1240-1700px screens.
   Cause: style.css sets .container to 1100px, but the hero padding maths assumed 1320px
   (same as the header). The hero container is now 1320px, and the 3-piece banner starts at 1400px.
   ========================================================================== */
.hero-section > .container { max-width: 1320px; }
@media (min-width: 1400px) {
  .hero-section .hero-layout { grid-template-columns: minmax(300px, 1fr) clamp(500px, 36vw, 590px); }
  .hero-intro { min-width: 0; }
  .hero-intro h1 { overflow-wrap: normal; word-break: normal; }
}

/* ==========================================================================
   1.8.43 - Vehicle logos supplied by the client (assets/images/vehicles/*.svg, inlined as sprite symbols
   so they follow the text colour: navy on the white card, white on the blue hero and on the active tab).
   ========================================================================== */
.search-tab-btn .icon, .hero-quick .icon { fill: none; stroke: currentColor; }
.search-tab-btn .icon { width: 34px; height: 34px; }
.hero-quick .icon { width: 36px; height: 36px; }
@media (min-width: 1400px) { .hero-quick .icon { width: 34px; height: 34px; } }
.search-tab-btn { color: #0b2356; }

/* ==========================================================================
   1.8.44 - No wave at the bottom of the hero: straight edge straight into the benefits bar (like the client example)
   ========================================================================== */
.hero-section .hero-wave { display: none !important; }
.hero-section { padding-bottom: 44px; }
@media (max-width: 959px) { .hero-section { padding-bottom: 36px; } }

/* ==========================================================================
   1.8.45 - Season logos supplied by the client (assets/images/seasons/*.svg, inlined as sprite symbols hf-s-*).
   They keep their own colours; on the active (navy) button the logo sits on a white chip so it stays visible.
   ========================================================================== */
.season-toggle-btn .icon--season { width: 34px; height: 34px; color: inherit; }
.season-toggle-btn:nth-child(n) .icon--season { color: inherit; }
.season-toggle-btn.active .icon--season { color: inherit !important; background: #fff; border-radius: 10px; padding: 2px; }
.season-toggle-btn { min-width: 72px; }

/* ==========================================================================
   1.8.46 - Hero text and menu pill like the client example
   ========================================================================== */
/* Title: "Avec Bob," big, "Bob" yellow, then two lines, yellow swoosh, plain paragraph */
.hero-intro h1 { font-weight: 800; font-style: italic; letter-spacing: -.025em; line-height: 1.08; margin-bottom: 14px; }
.hero-intro h1 .hero-title__a { display: block; font-size: 1.18em; margin-bottom: 4px; }
.hero-intro h1 .hero-title__b { display: block; }
.hero-intro h1 .hero-accent { color: #ffc61a; font-size: 1.12em; }
.hero-intro h1::after { margin-top: 14px; }
.hero-intro p { font-style: normal; font-weight: 500; line-height: 1.6; color: #eaf0ff; }
@media (min-width: 1400px) {
  .hero-section .hero-layout { grid-template-columns: minmax(300px, 1fr) clamp(500px, 34vw, 580px); }
  .hero-intro h1 { font-size: clamp(1.7rem, 2.05vw, 2.35rem); }
  .hero-intro p { font-size: 1rem; max-width: 36ch; }
  .hero-intro h1 .hero-title__b { white-space: nowrap; }
}
@media (max-width: 1399px) { .hero-intro h1 .hero-title__a, .hero-intro h1 .hero-title__b { display: inline; } .hero-intro h1 .hero-br { display: none; } }
.hero-quick a { font-weight: 700; }

/* Menu: the selected / hovered item is a yellow tab hanging from the top of the navy bar */
@media (min-width: 960px) {
  .navbar .nav__list { padding: 0; gap: 10px; align-items: stretch; }
  .navbar .nav__list > li { display: flex; }
  .navbar .nav__list > li > a { padding: 17px 24px; border-radius: 10px 10px 26px 26px; font-weight: 700; font-size: .95rem; }
  .navbar .nav__list > li > a:hover,
  .navbar .nav__list > li > a:focus-visible,
  .navbar .nav__list > li > a:active,
  .navbar .nav__list > li:hover > a,
  .navbar .nav__list > li.is-current > a,
  .navbar .nav__list > li > a[aria-current="page"] { background: #ffc61a; color: #0a2470; box-shadow: 0 4px 12px rgba(255,176,0,.35); }
  .navbar .nav__list > li.menu-item-has-children:hover > a { border-radius: 10px 10px 0 0; }
  .navbar .sub-menu { top: 100%; }
}

/* ==========================================================================
   1.8.47 - Search card exactly like the client example:
   tabs, size fields, selection line, SAISON buttons with TYPE DE PNEU on the same row, MARQUE + big yellow Rechercher.
   The Tourisme / 4x4 / Utilitaires line is required by the client, so it stays as a slim line of small pills (see .vehicle-subs below).
   ========================================================================== */
/* Client requirement: Tourisme / 4x4 - SUV / Utilitaires - Camionnettes must stay. Kept as a slim line of small pills. */
.vehicle-subs { display: block; padding: 10px 24px 0; }
.vehicle-sub { gap: 6px; }
.vehicle-sub__btn { padding: 5px 12px; font-size: .78rem; border-width: 1px; }
.search-form-body { padding: 16px 24px 24px; }

/* tabs: smaller icons like the example */
.search-tab-btn .icon { width: 28px; height: 28px; }
.search-tab-btn { font-size: .72rem; }

/* size fields: white, light border, fits "Vitesse" */
.dimensions-row { gap: 8px; margin-bottom: 14px; }
.select-wrap select,
.select-wrap .field-text-input { background-color: #fff; border: 1px solid #d9e1ee; border-radius: 10px; font-size: .875rem; font-weight: 500; padding: 10px 20px 10px 10px; min-height: 42px; }
.select-wrap select:focus,
.select-wrap .field-text-input:focus { border-color: var(--color-primary-blue); box-shadow: 0 0 0 3px rgba(22,84,201,.15); }
.select-wrap .field-text-input::placeholder { font-weight: 500; }
.field-label { font-size: .72rem; letter-spacing: .04em; }

/* SAISON + TYPE DE PNEU on one row */
.options-season-row { display: flex !important; flex-wrap: wrap; align-items: flex-end; gap: 12px 22px; margin-bottom: 16px; }
.options-season-row > .field-group { flex: 0 0 auto; }
.season-btn-group { gap: 6px; flex-wrap: nowrap; }
.season-toggle-btn { flex: 0 0 auto !important; min-width: 60px !important; padding: 7px 6px !important; gap: 3px; font-size: .76rem !important; font-weight: 600; white-space: nowrap; border-radius: 10px; border-color: #dfe6f1; color: #5b6578; }
.season-toggle-btn .icon--season { width: 28px; height: 28px; }
.season-toggle-btn.active { color: #fff; }
.options-season-row .checkbox-group { gap: 8px 14px; flex-wrap: wrap; padding-bottom: 4px; }
.checkbox-label { font-size: .85rem; font-weight: 600; color: #1e293b; }

/* MARQUE + big yellow button */
.brand-search-row { grid-template-columns: 1.15fr 1fr; gap: 14px; align-items: end; }
.brand-search-row .select-wrap select { min-height: 52px; font-size: .95rem; font-weight: 500; padding-left: 14px; }
.btn-rechercher { min-height: 54px; padding: 12px 20px; border-radius: 14px; font-size: 1.2rem; font-weight: 900; font-style: italic; width: 100%; background: linear-gradient(180deg, #ffc61a, #ffb300); box-shadow: 0 6px 16px rgba(255,176,0,.35); }
@media (max-width: 639px) { .brand-search-row { grid-template-columns: 1fr; } }

/* ==========================================================================
   1.8.51 - Bigger "Bob" in the hero title + tidier filter card (only these)
   ========================================================================== */
.hero-intro h1 .hero-accent { font-size: 1.55em; line-height: 1; }

/* SAISON and TYPE DE PNEU labels on the same line; the two checkboxes centred next to the season buttons */
.options-season-row { align-items: stretch; }
.options-season-row > .field-group { display: flex; flex-direction: column; }
.options-season-row .checkbox-group { flex: 1; align-items: center; align-content: center; padding-bottom: 0; }

/* MARQUE select and Rechercher button: same height, aligned */
.brand-search-row { align-items: end; }
.brand-search-row .select-wrap select { min-height: 56px; }
.btn-rechercher { min-height: 56px; }

/* ==========================================================================
   1.8.52 - Wider hero filter card + bigger vehicle logos under the hero text
   (the logos inside the filter card tabs are NOT changed)
   ========================================================================== */
/* Bigger vehicle logos under the hero text */
.hero-quick { gap: 8px 16px; }
.hero-quick .icon { width: 50px; height: 50px; }
.hero-quick a { font-size: .8rem; gap: 6px; }
@media (min-width: 1400px) {
  .hero-quick { gap: 8px 14px; }
  .hero-quick .icon { width: 50px; height: 50px; }
  .hero-quick a { font-size: .78rem; }
}

/* Wider filter card on large screens (hero container grows from 1320px to 1480px) */
@media (min-width: 1700px) {
  .hero-section > .container { max-width: 1480px; }
  .hero-section .hero-layout { grid-template-columns: minmax(300px, 1fr) clamp(620px, 36vw, 700px); }
  .hero-intro { padding-left: calc(0.27 * max(100vw, 1760px) + 24px - max(20px, (100vw - 1480px) / 2 + 20px)); }
}
@media (min-width: 1400px) and (max-width: 1699px) {
  .hero-section .hero-layout { grid-template-columns: minmax(300px, 1fr) clamp(520px, 36vw, 600px); }
}

/* Roomier, tidier card content (tab icons untouched) */
.search-form-body { padding: 20px 28px 28px; }
.vehicle-subs { padding: 14px 28px 0; }
.vehicle-sub__btn { padding: 7px 16px; font-size: .84rem; }
.dimensions-row { gap: 12px; margin-bottom: 16px; }
.select-wrap select,
.select-wrap .field-text-input { min-height: 48px; font-size: .95rem; padding-left: 14px; }
.field-label { font-size: .75rem; margin-bottom: 6px; }

/* SAISON buttons fill their space, TYPE DE PNEU sits on the right */
.options-season-row { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; gap: 12px 28px; margin-bottom: 20px; }
.options-season-row > .field-group { flex: none; min-width: 0; }
.season-btn-group { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.season-toggle-btn { min-width: 0 !important; width: 100%; padding: 10px 6px !important; font-size: .82rem !important; }
.season-toggle-btn .icon--season { width: 30px; height: 30px; }
.options-season-row .checkbox-group { flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; padding-left: 4px; }
.checkbox-label { font-size: .9rem; }
@media (max-width: 639px) {
  .options-season-row { grid-template-columns: 1fr; }
  .options-season-row .checkbox-group { flex-direction: row; }
  .search-form-body { padding: 16px 16px 20px; }
  .vehicle-subs { padding: 12px 16px 0; }
}

/* ==========================================================================
   1.8.53 - Filter card pushed to the right edge and wider; vehicle logos stay on ONE row
   ========================================================================== */
@media (min-width: 1400px) {
  .hero-section > .container { --hero-pad: clamp(24px, 2.5vw, 56px); max-width: none; padding-inline: var(--hero-pad); }
  .hero-section .hero-layout { grid-template-columns: minmax(300px, 1fr) clamp(540px, 38vw, 640px); gap: 24px; }
  .hero-intro { padding-left: calc(0.27 * max(100vw, 1760px) + 24px - var(--hero-pad)); }
  .hero-section .hero-layout > :last-child { justify-self: end; width: 100%; }
}
@media (min-width: 1700px) {
  .hero-section .hero-layout { grid-template-columns: minmax(300px, 1fr) clamp(680px, 38vw, 760px); }
  .hero-quick { flex-wrap: nowrap; gap: 8px 16px; }
}

/* ==========================================================================
   1.8.54 - Vehicle logos always on ONE line, tidier SAISON / TYPE DE PNEU block, cleaner menu hover + active
   ========================================================================== */
/* --- Hero vehicle logos: one single line, sizes scale with the screen --- */
@media (min-width: 1400px) {
  .hero-section .hero-layout { grid-template-columns: minmax(300px, 1fr) clamp(520px, 36vw, 640px); }
  .hero-quick { flex-wrap: nowrap; gap: 6px clamp(6px, .8vw, 16px); }
  .hero-quick li { flex: 0 0 auto; }
  .hero-quick .icon { width: clamp(36px, 2.7vw, 50px); height: clamp(36px, 2.7vw, 50px); }
  .hero-quick a { font-size: clamp(.66rem, .8vw, .78rem); white-space: nowrap; }
}
@media (min-width: 1700px) {
  .hero-section .hero-layout { grid-template-columns: minmax(300px, 1fr) clamp(680px, 38vw, 760px); }
}

/* --- Filter card: SAISON + TYPE DE PNEU --- */
.options-season-row { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 26px; align-items: stretch; margin-bottom: 24px; }
.season-btn-group { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.season-toggle-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 72px; padding: 8px 6px !important; border: 1.5px solid #dfe6f1; border-radius: 12px; background: #fff; transition: border-color .15s, background .15s, color .15s, box-shadow .15s; }
.season-toggle-btn .icon--season { width: 28px; height: 28px; }
.season-toggle-btn:hover { border-color: #9db8f2; background: #f5f8ff; color: #0b2356; }
.season-toggle-btn.active { background: #0b2a6f; border-color: #0b2a6f; color: #fff; box-shadow: 0 6px 14px rgba(11,42,111,.28); }
/* Renforcé / Run-flat as two neat selectable chips, a thin divider separates them from the seasons */
.options-season-row > .field-group:last-child { padding-left: 26px; border-left: 1px solid #e3e9f3; }
.options-season-row .checkbox-group { display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 8px; padding: 0; }
.options-season-row .checkbox-label { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border: 1.5px solid #dfe6f1; border-radius: 10px; background: #fff; font-size: .88rem; font-weight: 600; color: #1e293b; white-space: nowrap; cursor: pointer; transition: border-color .15s, background .15s; }
.options-season-row .checkbox-label:hover { border-color: #9db8f2; }
.options-season-row .checkbox-label:has(input:checked) { border-color: #0a5cff; background: #eef4ff; color: #0a3fb0; }
.brand-search-row { margin-top: 2px; }
@media (max-width: 639px) {
  .options-season-row { grid-template-columns: 1fr; }
  .season-btn-group { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .options-season-row > .field-group:last-child { padding-left: 0; border-left: 0; }
  .options-season-row .checkbox-group { flex-direction: row; }
  .options-season-row .checkbox-label { flex: 1; }
}

/* --- Header menu: one tab shape, distinct hover and active --- */
@media (min-width: 960px) {
  .navbar .nav__list { gap: 6px; }
  .navbar .nav__list > li > a { padding: 18px 24px; border-radius: 0 0 18px 18px; border-top: 0; color: #fff; background: transparent; box-shadow: none; transition: background .18s, color .18s, box-shadow .18s; }
  /* hover / keyboard focus: soft light tab with a yellow bottom line */
  .navbar .nav__list > li > a:hover,
  .navbar .nav__list > li > a:focus-visible,
  .navbar .nav__list > li:hover > a { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 0 -4px 0 #ffc61a; }
  .navbar .nav__list > li > a:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
  /* current page: solid yellow tab (also when hovered) */
  .navbar .nav__list > li.is-current > a,
  .navbar .nav__list > li.is-current:hover > a,
  .navbar .nav__list > li > a[aria-current="page"],
  .navbar .nav__list > li > a[aria-current="page"]:hover { background: #ffc61a; color: #0a2470; box-shadow: 0 6px 14px rgba(255,176,0,.32); }
  /* open drop-down: tab joins the panel */
  .navbar .nav__list > li.menu-item-has-children:hover > a { border-radius: 0; }
  .navbar .sub-menu { border-radius: 0 12px 12px 12px; margin: 0; border-top: 3px solid #ffc61a; }
  .navbar .sub-menu a { border-radius: 8px; }
}

/* ==========================================================================
   1.8.55 - Hero text block moved left (closer to Bob) so the filter card can be wider
   Card width = whatever space is left after the text + logo row (min 640px, max 780px)
   ========================================================================== */
@media (min-width: 1400px) {
  .hero-intro { padding-left: calc(0.255 * max(100vw, 1760px) + 24px - var(--hero-pad, 40px)); }
  .hero-intro p { max-width: 34ch; }
  .hero-quick { gap: 6px clamp(6px, .7vw, 14px); }
  .hero-quick a { font-size: clamp(.64rem, .76vw, .76rem); }
}
@media (min-width: 1700px) {
  .hero-section .hero-layout {
    grid-template-columns: minmax(300px, 1fr) clamp(640px, calc(100vw - 0.255 * max(100vw, 1760px) - 579px - var(--hero-pad, 40px)), 780px);
  }
}

/* Filter card: use the extra width (bigger fields, bigger search button) */
@media (min-width: 1700px) {
  .search-form-body { padding: 22px 32px 30px; }
  .vehicle-subs { padding: 16px 32px 0; }
  .select-wrap select, .select-wrap .field-text-input { min-height: 52px; }
  .season-toggle-btn { min-height: 78px; }
  .options-season-row > .field-group:last-child { padding-left: 30px; }
  .brand-search-row { grid-template-columns: 1.2fr 1fr; gap: 16px; }
  .brand-search-row .select-wrap select, .btn-rechercher { min-height: 60px; }
}

/* ==========================================================================
   1.8.56 - New hero background (assets/images/hero/hero-banner.jpg, 2048 x 768) used as ONE image on every screen.
   The old 3-piece banner (hero-left / hero-mid / hero-right) is no longer used.
   Bob sits at the left (about 4-21 % of the banner width), the tyre at the right.
   ========================================================================== */
.hero-section {
  background-color: #0a47d0;
  background-image: url("../images/hero/hero-banner-mobile.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center bottom;
}
.hero-bg { display: none !important; }
@media (min-width: 700px) {
  .hero-section { background-image: url("../images/hero/hero-banner.jpg"); }
}
@media (min-width: 1400px) {
  .hero-section {
    background-size: cover;
    background-position: left bottom;
    /* right edge of Bob's thumb: 21.5 % of the banner, which is scaled to ~2150px wide (hero height ~810px) or to the screen width if larger, and cropped on the right */
    --bob-edge: calc(0.215 * max(100vw, 2150px));
  }
  /* text starts 50px right of Bob; the filter card takes all the space left after the text + logo row (~475px) */
  .hero-intro { padding-left: calc(var(--bob-edge) + 50px - var(--hero-pad, 40px) - 81px); }
  .hero-section .hero-layout { grid-template-columns: minmax(300px, 1fr) clamp(500px, calc(100vw - var(--hero-pad, 40px) - var(--bob-edge) - 50px - 475px), 820px); }
}
/* between 1400 and 1699px there is not enough room for six logos on one line next to Bob: let them wrap neatly */
@media (min-width: 1400px) and (max-width: 1699px) {
  .hero-quick { flex-wrap: wrap; }
}

/* ==========================================================================
   1.8.57 - Hero filter card wider towards the LEFT
   The card is right-aligned (justify-self: end), so adding width makes it grow leftwards
   while the right edge stays where it is. The text + logo column gives up the same space.
   Tune ONLY --hero-card-extra (1.8.57: 90px / 130px) to make it wider / narrower (0px = old 1.8.56 size).
   ========================================================================== */
@media (min-width: 1400px) {
  .hero-section { --hero-card-extra: 90px; }
  .hero-section .hero-layout {
    grid-template-columns: minmax(300px, 1fr) clamp(
      calc(500px + var(--hero-card-extra)),
      calc(100vw - var(--hero-pad, 40px) - var(--bob-edge) - 50px - 475px + var(--hero-card-extra)),
      calc(820px + var(--hero-card-extra))
    );
  }
}
@media (min-width: 1700px) {
  .hero-section { --hero-card-extra: 130px; }
}

/* Jantes tab: the 5 fields (Diamètre / Largeur / Entraxe / Déport / Alésage) sit on ONE straight line.
   Labels never wrap ("ENTRAXE (PCD)" used to wrap and push its select down); selects are bottom-aligned as a safety net. */
.dimensions-row--rim { grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; gap: 12px; }
.dimensions-row--rim .field-group { justify-content: flex-end; min-width: 0; }
.dimensions-row--rim .field-label { white-space: nowrap; letter-spacing: .02em; margin-bottom: 0; }
@media (max-width: 1399px) { .dimensions-row--rim .field-label { font-size: .68rem; } }
@media (max-width: 639px) {
  .dimensions-row--rim { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dimensions-row--rim .field-label { white-space: normal; }
  .dimensions-row--rim .field-group:last-child { grid-column: 1 / -1; }
}

/* ==========================================================================
   1.8.59 - Saison row and Marque row share ONE column grid, so
   "TYPE DE PNEU" and the "Rechercher" button start at exactly the same x position
   (and "SAISON" / "MARQUE" end at the same x position on the left).
   ========================================================================== */
@media (min-width: 640px) {
  .options-season-row,
  .brand-search-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 40%);
    column-gap: 24px;
  }
  .options-season-row > .field-group:last-child { padding-left: 0; border-left: 0; }
}

/* ==========================================================================
   1.8.60 - "Type de pneu" boxes: full width of their column, left edge = label = Rechercher button,
   and the same total height as the Saison buttons (top and bottom edges on the same lines).
   ========================================================================== */
@media (min-width: 640px) {
  .search-form-body .options-season-row { align-items: stretch; }
  .search-form-body .options-season-row > .field-group { height: 100%; }
  .search-form-body .options-season-row .checkbox-group {
    display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr 1fr;
    gap: 10px; flex: 1 1 auto; align-items: stretch; justify-items: stretch;
    width: 100%; margin: 0; padding: 0;
  }
  .search-form-body .options-season-row .checkbox-label {
    width: 100%; margin: 0; min-height: 0; height: 100%;
    padding: 0 16px; justify-content: flex-start; box-sizing: border-box;
  }
}

/* ==========================================================================
   1.8.61 - "Renforcé" and "Run-flat" on ONE line: two boxes side by side (left / right),
   same height as the Saison buttons, spanning the full width of the Type de pneu column.
   ========================================================================== */
@media (min-width: 640px) {
  .search-form-body .options-season-row .checkbox-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 1fr;
    gap: 10px;
  }
  .search-form-body .options-season-row .checkbox-label {
    padding: 0 10px; gap: 8px; justify-content: center; white-space: nowrap;
  }
}

/* ==========================================================================
   1.8.62 - Like the client sample: "Renforcé" and "Run-flat" are plain checkboxes (no frame),
   on one line, left aligned under "TYPE DE PNEU" and centred vertically next to the Saison buttons.
   ========================================================================== */
@media (min-width: 640px) {
  .search-form-body .options-season-row .checkbox-group {
    display: flex; flex-direction: row; flex-wrap: nowrap;
    align-items: center; justify-content: flex-start;
    gap: 16px; width: 100%; padding: 0;
  }
  .search-form-body .options-season-row .checkbox-label,
  .search-form-body .options-season-row .checkbox-label:hover,
  .search-form-body .options-season-row .checkbox-label:has(input:checked) {
    width: auto; height: auto; flex: 0 0 auto; padding: 0; gap: 8px;
    border: 0; border-radius: 0; background: transparent; box-shadow: none;
    justify-content: flex-start; white-space: nowrap;
    font-size: .95rem; font-weight: 600; color: #1e293b;
  }
  .search-form-body .options-season-row .checkbox-label input { width: 20px; height: 20px; margin: 0; flex: 0 0 auto; }
}
@media (max-width: 639px) {
  .options-season-row .checkbox-group { gap: 16px; }
  .options-season-row .checkbox-label { flex: 0 0 auto; padding: 0; border: 0; background: transparent; }
}

/* ==========================================================================
   1.8.63 - Saison and Type de pneu on the SAME line, both ends aligned:
   left column (Saison) = same width as the Marque box, right column (Type de pneu) = same width as the
   Rechercher button. Renforcé sits at the left edge of that column, Run-flat at the far right edge of the card.
   ========================================================================== */
@media (min-width: 640px) {
  .search-form-body .options-season-row {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 40%) !important;
    column-gap: 24px; row-gap: 0;
  }
  .search-form-body .options-season-row > .field-group { height: 100%; }
  .search-form-body .season-btn-group { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .search-form-body .season-toggle-btn { min-height: 76px; }
  .search-form-body .options-season-row .checkbox-group {
    flex: 1 1 auto; width: 100%; margin: 0;
    justify-content: space-between; align-items: center;
  }
}

/* ==========================================================================
   1.8.65 - Saison / Type de pneu row cleaned up
   - Type de pneu: Renforcé and Run-flat sit in two equal halves of the column (Renforcé under the "TYPE DE PNEU"
     label / Rechercher left edge, Run-flat at the middle) instead of being pushed to opposite ends.
   - Both checkboxes are vertically centred on the Saison buttons.
   - Column widths are shared with the Marque / Rechercher row, so Type de pneu and Rechercher start at the same x.
   - Clear space between this row and the MARQUE label.
   ========================================================================== */
@media (min-width: 640px) {
  .search-form-body .options-season-row,
  .search-form-body .brand-search-row {
    grid-template-columns: minmax(0, 1fr) minmax(270px, 36%) !important;
    column-gap: 24px;
  }
  .search-form-body .options-season-row { margin-bottom: 26px; align-items: stretch; }
  .search-form-body .options-season-row .checkbox-group {
    display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr;
    align-items: center; justify-items: start; column-gap: 12px;
    width: 100%; flex: 1 1 auto; margin: 0; padding: 0;
  }
  .search-form-body .options-season-row .checkbox-label { white-space: nowrap; line-height: 1; }
  .search-form-body .options-season-row .checkbox-label input { margin: 0; }
}

/* ==========================================================================
   1.8.66 - Left side (SAISON) fixed: the Type de pneu column is only as wide as its two checkboxes (230 px),
   so the 4 season buttons get all the remaining width (bigger buttons, "4 saisons" no longer cramped).
   Renforcé / Run-flat stay on one line, left aligned under the TYPE DE PNEU label.
   The Marque / Rechercher row uses the same columns (Rechercher still starts at the same x as Type de pneu).
   ========================================================================== */
@media (min-width: 640px) {
  .search-form-body .options-season-row,
  .search-form-body .brand-search-row {
    grid-template-columns: minmax(0, 1fr) 230px !important;
    column-gap: 28px;
  }
  .search-form-body .season-btn-group { gap: 12px; }
  .search-form-body .season-toggle-btn { min-height: 80px; padding: 8px 4px !important; font-size: .86rem; }
  .search-form-body .options-season-row .checkbox-group {
    display: flex; grid-template-columns: none; justify-content: flex-start; align-items: center; gap: 26px;
  }
}
