:root {
  --red: #C8102E;        /* rouge LEMIEUX (logo) */
  --charcoal: #1B1B1B;   /* charcoal LEMIEUX (logo) */
  --grey: #787878;       /* gris LEMIEUX (logo) */
  --green: #8DBE4F;      /* vert du réseau LEMIEUX (Éco-Métaux Rive-Nord) */
  --white: #FFFFFF;
  --bg-soft: #F6F6F4;    /* fond clair chaud */
  --line: #E4E2DE;       /* bordures */
}
@font-face { font-family: 'Satoshi'; font-weight: 400; font-style: normal; font-display: swap;
  src: url('../assets/fonts/sat-400.woff2') format('woff2'); }
@font-face { font-family: 'Satoshi'; font-weight: 500; font-style: normal; font-display: swap;
  src: url('../assets/fonts/sat-500.woff2') format('woff2'); }
@font-face { font-family: 'Satoshi'; font-weight: 700; font-style: normal; font-display: swap;
  src: url('../assets/fonts/sat-700.woff2') format('woff2'); }
@font-face { font-family: 'Satoshi'; font-weight: 900; font-style: normal; font-display: swap;
  src: url('../assets/fonts/sat-900.woff2') format('woff2'); }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Satoshi', system-ui, sans-serif; color: var(--charcoal); background: var(--white);
       -webkit-font-smoothing: antialiased; letter-spacing: .01em; }

/* ---------- Nav ---------- */
/* ── EN-TÊTE 2 RANGÉES (calqué sur partsavatar.ca) ─────────────────────────
   rangée 1 `.nav`      : logo | barre de recherche | hamburger (mobile)
   rangée 2 `#nav-menu` : menu principal SOUS la recherche.
   `position: sticky` vit sur `.site-header` : les DEUX rangées restent collées. */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--charcoal); }
.nav { display: flex; align-items: center; gap: 18px; padding: 12px 32px 10px;
       border-bottom: 3px solid var(--red); }

/* Barre de recherche du haut : tout l'espace libre entre logo et droite,
   plafond 620px pour ne pas devenir un bandeau pleine largeur. */
.nav-search { display: flex; align-items: stretch; flex: 1 1 auto; max-width: 620px;
              margin: 0 auto; min-width: 0; }
.nav-search input { flex: 1 1 auto; min-width: 0; font: inherit; font-size: .95rem;
  padding: 11px 16px; border: 0; border-radius: 8px 0 0 8px; background: #fff;
  color: #1b1b1b; }
.nav-search input::placeholder { color: #8a8a8a; }
.nav-search input:focus { outline: 3px solid rgba(200,16,46,.55); outline-offset: -3px; }
.nav-search-btn { display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border: 0; border-radius: 0 8px 8px 0; padding: 0 18px; background: var(--red);
  color: #fff; font: inherit; font-weight: 700; white-space: nowrap; }
.nav-search-btn:hover { filter: brightness(1.08); }
.brand { display: flex; align-items: center; }
.brand-logo { height: 52px; width: auto; display: block; }
.nav a { color: #fff; text-decoration: none; margin-left: 22px; font-size: .95rem; opacity: .9; }
.nav a:hover { color: #ff8fa0; }

/* RANGÉE 2 — FOND BLANC (Nick : « ranger 2 with white background »).
   Liens foncés sur blanc : le menu se lit comme une barre de catégories, pas
   comme un bandeau publicitaire. */
#nav-menu { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 0;
            padding: 16px 32px; background: #fff;
            border-bottom: 1px solid var(--line); }
#nav-menu a { color: var(--charcoal); text-decoration: none; font-size: .95rem;
  margin-left: 0; padding: 2px 0; font-weight: 600; letter-spacing: .01em;
  transition: color .15s; }
#nav-menu a:hover { color: var(--red); }
/* Séparateurs verticaux 1px entre les liens (rangée 2). Pseudo-élément centré :
   n'ajoute aucune hauteur à la barre, le trait est un simple filet gris. */
#nav-menu > a:not(.btn) { padding: 2px 16px; position: relative;
  box-shadow: inset 0 -2px 0 transparent; }
#nav-menu > a:not(.btn) + a:not(.btn)::before,
#nav-menu .btn::before { content: ""; position: absolute; top: 50%;
  transform: translateY(-50%); width: 1px; background: rgba(27,27,27,.22); }
#nav-menu > a:not(.btn) + a:not(.btn)::before { left: 0; height: 16px; }
/* ...et le même filet, un peu plus haut, entre le dernier lien et le bouton rouge. */
#nav-menu .btn::before { left: -22px; height: 22px; background: rgba(27,27,27,.18); }
/* Soulignement rouge au survol, sans décaler la ligne (box-shadow inset). */
#nav-menu > a:not(.btn):hover,
#nav-menu > a:not(.btn):focus-visible { box-shadow: inset 0 -2px 0 var(--red); }
/* CTA aligné sur la ligne de texte, plus compact que le .btn global. */
#nav-menu .btn { margin-left: auto; align-self: center; padding: 9px 20px;
  font-size: .92rem; line-height: 1.2; position: relative; }
/* La bascule de langue de la rangée 2 n'existe QUE dans le menu mobile. */
#nav-menu .menu-lang { display: none; }
/* Bascule de langue sur fond BLANC (rangée 2). */
#nav-menu .lang-switch { margin-left: 18px; border-color: rgba(27,27,27,.28); }
#nav-menu .lang-switch button { color: var(--charcoal); }
#nav-menu .lang-switch button:hover { background: rgba(27,27,27,.08); }
#nav-menu .lang-switch button.active { background: var(--red); color: #fff; }

/* ---------- SOUS-MENU « Contact » (rangée 2) — ajout 2026-10-07 ----------
   Le libellé Contact devient un PARENT : au survol (desktop) ou au focus
   clavier, deux enfants se déploient dessous : À propos · FAQ.
   Aucun JS : :hover + :focus-within. En mobile le sous-menu est déplié en
   clair dans le panneau hamburger (voir @media max-width:820px). */
.nav-sub { position: relative; display: inline-flex; }
.nav-sub > a { display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 16px !important; }
/* Filet vertical 1px conservé devant Contact (l'ancien sélecteur
   `a + a::before` ne matche plus : le parent est devenu un <div>). */
#nav-menu > a:not(.btn) + .nav-sub::before { content: ""; position: absolute;
  top: 50%; transform: translateY(-50%); left: 0; width: 1px; height: 16px;
  background: rgba(27,27,27,.22); }
/* Petit chevron ▾ : signale que ça se déploie. */
.nav-sub .caret { font-size: .62rem; line-height: 1; opacity: .55; }
.nav-sub:hover > a, .nav-sub:focus-within > a { color: var(--red);
  box-shadow: inset 0 -2px 0 var(--red); }
.nav-sub:hover .caret, .nav-sub:focus-within .caret { opacity: 1; }
/* Pont invisible au-dessus du panneau : sans lui, le survol se coupe dans
   l'écart et le sous-menu se referme avant qu'on l'atteigne. */
.nav-sub::after { content: ""; position: absolute; left: 0; right: 0;
  top: 100%; height: 10px; }
.nav-sub-menu { position: absolute; top: calc(100% + 8px); left: 8px;
  min-width: 186px; display: none; flex-direction: column; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 14px 30px rgba(0,0,0,.18); z-index: 80; }
.nav-sub:hover .nav-sub-menu, .nav-sub:focus-within .nav-sub-menu { display: flex; }
.nav-sub-menu a { padding: 9px 14px !important; border-radius: 7px;
  white-space: nowrap; }
.nav-sub-menu a:hover, .nav-sub-menu a:focus-visible { background: var(--bg-soft);
  box-shadow: none !important; }
/* Actions de la RANGÉE 1 : chat · langue · compte · panier · hamburger.
   Poussées à droite ; la recherche prend l'espace libre. */
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: 0 0 auto; }
/* Bouton-icône de la barre : lisible sur charcoal, discret sur blanc. */
.nav-ico { display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  background: transparent; border: 1px solid rgba(255,255,255,.28); border-radius: 8px;
  color: #fff; font: inherit; font-size: .88rem; font-weight: 600; padding: 8px 12px;
  text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
.nav-ico:hover { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.5); }
.nav-ico:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.lang-switch { margin-left: 0; }

.btn { background: var(--red); color: #fff !important; padding: 10px 22px; border-radius: 30px;
       font-weight: 700; border: none; cursor: pointer; transition: background .15s; }
.btn:hover { background: #a00d25; }

/* ---------- Bascule de langue FR | EN ---------- */
.lang-switch { display: inline-flex; align-items: center; margin-left: 18px; border: 1px solid rgba(255,255,255,.35);
               border-radius: 20px; overflow: hidden; }
.lang-switch button { background: transparent; border: none; color: #fff; font-family: inherit; font-size: .78rem;
               font-weight: 700; letter-spacing: .06em; padding: 5px 11px; cursor: pointer; line-height: 1.4;
               transition: background .15s, color .15s; }
.lang-switch button:hover { background: rgba(255,255,255,.14); }
.lang-switch button.active { background: var(--red); color: #fff; }
@media (max-width: 820px) { .lang-switch { margin-left: 8px; } .lang-switch button { padding: 4px 9px; font-size: .74rem; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 84px 24px 64px; text-align: center; overflow: hidden;
        background: linear-gradient(rgba(10,10,10,.62), rgba(10,10,10,.62)), url("../assets/hero-bg-pexels.jpg") center/cover no-repeat;
        border-bottom: 3px solid var(--red); color: #fff; }
.hero h1, .hero p, .hero-search, .hero-tags { position: relative; z-index: 1; }
.hero h1 { font-size: 2.7rem; color: #fff; margin-bottom: 12px; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: #ff4d63; }
.hero p { max-width: 640px; margin: 0 auto 30px; font-size: 1.15rem; color: #c9c9c9; }
.hero-search { display: flex; gap: 10px; justify-content: center; max-width: 1040px; margin: 0 auto; flex-wrap: wrap; }
.hero-select { padding: 14px 16px; border-radius: 30px; border: 2px solid rgba(255,255,255,.25);
       font-size: 1rem; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; min-width: 130px;
       appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='white' stroke-width='2' fill='none'/></svg>");
       background-repeat: no-repeat; background-position: right 16px center; padding-right: 36px; }
.hero-select option { color: var(--charcoal); background: #fff; }
.hero-select:focus { outline: none; border-color: var(--red); }
.hero-search input { flex: 1; min-width: 200px; padding: 15px 20px; border-radius: 30px; border: 2px solid rgba(255,255,255,.25);
       font-size: 1rem; background: rgba(255,255,255,.12); color: #fff; }
.hero-search input::placeholder { color: #b5b5b5; }
.hero-search input:focus { outline: none; border-color: var(--red); background: rgba(255,255,255,.18); }
/* Champ « ou tapez : … » — ajouté à côté des menus, les menus restent intacts */
#hero-q { flex: 1 1 150px; min-width: 150px; }
.hero-hint { position: relative; z-index: 1; max-width: 1040px; margin: 12px auto 0; min-height: 18px;
             font-size: .88rem; color: #ffd0d8; }
.hero-hint.warn { color: #ffb3bf; }
.hero-hint.ok { color: #b9e6c6; }
.btn.big { background: var(--red); color: #fff !important; padding: 14px 34px; font-size: 1.05rem; }
.hero-tags { margin-top: 24px; }
.tag { display: inline-block; background: #fff; border: 1px solid var(--line); color: var(--charcoal);
       font-size: .85rem; padding: 5px 14px; border-radius: 20px; margin: 4px; }
.tag b { color: #ff4d63; }

/* ---------- Sections ---------- */
.container { max-width: 1080px; margin: 0 auto; padding: 60px 24px; }
h1.page-h1, h2 { color: var(--charcoal); margin-bottom: 20px; padding-bottom: 12px; font-size: 1.7rem; letter-spacing: -.015em; display: flex; align-items: center; gap: 10px; position: relative; }
.h2-ico { width: 26px; height: 26px; color: var(--red); flex-shrink: 0; }
h1.page-h1::after, h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 3px; background: var(--red); }
.sub { color: var(--grey); margin-bottom: 20px; }
.filters { display: flex; gap: 14px; align-items: center; margin-bottom: 22px; }
.filters select { padding: 10px 14px; border-radius: 8px; border: 1px solid var(--line); font-size: .95rem; background: #fff; }
.dim { color: var(--grey); font-size: .9rem; }

/* ---------- Temps 2 : page de résultats (comme la boutique LEMIEUX) ---------- */
.no-search-card { grid-column: 1 / -1; }
.vehicle-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
               background: var(--charcoal); color: #fff; border-radius: 12px; padding: 16px 22px; margin-bottom: 22px; }
.vehicle-bar .vb-label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #b0b0b0; }
.vehicle-bar .vb-left b { font-size: 1.15rem; }
.vehicle-bar .vb-num { font-size: .88rem; color: #d0d0d0; }
.vehicle-bar .vb-num b { color: #fff; letter-spacing: .04em; }
.vb-new { background: transparent; border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 20px;
          padding: 8px 16px; font-size: .85rem; cursor: pointer; }
.vb-new:hover { background: var(--red); border-color: var(--red); }

.addpart { border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin-bottom: 22px; background: #fff; }
.addpart-title { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--charcoal);
                 margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--red); display: inline-block; }
.addpart-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.ap-select { flex: 1 1 220px; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line);
             font-size: .95rem; background: #fff; }
.ap-btn { padding: 12px 28px; }

.res-filters { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.rf { display: flex; flex-direction: column; gap: 4px; font-size: .78rem; text-transform: uppercase;
      letter-spacing: .05em; color: var(--grey); }
.rf select { padding: 9px 12px; border-radius: 8px; border: 1px solid var(--line); font-size: .92rem; background: #fff; }
.rf-count { margin-left: auto; font-weight: 600; color: var(--charcoal); }

/* ---------- Illustrations des panneaux vendre / demande ---------- */
.sell-intro { display: grid; grid-template-columns: 1fr minmax(0, 44%); gap: 30px;
              align-items: center; margin: 4px 0 30px; }
.sell-intro .sub { margin: 0; max-width: none; }
.sell-figure { margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 14px;
               background: #fff; box-shadow: 0 1px 3px rgba(16,24,40,.05); }
.sell-art { display: block; width: 100%; max-width: 100%; height: auto; margin: 0; }
.fam-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
             gap: 10px; margin: 0 0 26px; }
.fam-item { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px;
            border: 1px solid var(--line); border-radius: 10px; background: #fff; text-align: center; }
.fam-item img { width: 40px; height: 40px; object-fit: contain; }
.fam-item span { font-size: .8rem; color: var(--grey); line-height: 1.25; }

/* ---------- Demande : 2 colonnes (icônes | formulaire) ---------- */
.dem-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px; align-items: start; }
.dem-cols .fam-strip { margin-bottom: 0; }
.dem-cols form { max-width: none; width: 100%; }
.dem-cols #req-status { grid-column: 1 / -1; }
@media (max-width: 860px) {
  .dem-cols { grid-template-columns: 1fr; gap: 24px; }
  .dem-cols .fam-strip { margin-bottom: 6px; }
}

@media (max-width: 860px) {
  .sell-intro { grid-template-columns: 1fr; gap: 18px; margin-bottom: 24px; }
  .sell-figure { padding: 12px; }
}
@media (max-width: 640px) {
  .sell-intro { margin-bottom: 20px; }
  .fam-strip { grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 8px; }
  .fam-item { padding: 10px 6px; }
  .fam-item img { width: 32px; height: 32px; }
  .fam-item span { font-size: .72rem; }
}

.cat-panel { margin-bottom: 26px; }
.cat-head { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--grey); margin-bottom: 12px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.cat-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line);
            border-radius: 10px; background: #fff; text-decoration: none; color: var(--charcoal);
            font-size: .92rem; transition: border-color .15s, transform .15s; }
.cat-item:hover { border-color: var(--red); transform: translateY(-1px); }
.cat-item.active { border-color: var(--red); background: #fff5f6; font-weight: 600; }
.cat-item img { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }
.cat-toggle { display: none; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card { border: 1px solid var(--line); border-radius: 12px; padding: 20px; background: #fff;
       box-shadow: 0 4px 14px rgba(27,27,27,.05); display: flex; flex-direction: column;
       transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(27,27,27,.1); }
/* Attente de recherche : l'inventaire du réseau peut prendre ~2-4 s. Sans
   indicateur, un écran figé se lit comme « ça ne marche pas » (retour client). */
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: flex; align-items: center; gap: 12px; }
.loading .spin { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--red); animation: spin .8s linear infinite; }
.loading .load-txt { min-width: 0; }
.loading .load-txt h3 { margin-bottom: 2px; }
.loading .load-txt p { color: var(--grey); font-size: .9rem; }
@media (prefers-reduced-motion: reduce) { .loading .spin { animation-duration: 2.4s; } }
.card h3 { color: var(--charcoal); font-size: 1.05rem; margin-bottom: 6px; }
/* Carte « Notre réseau » avec logo d'enseigne : le logo remplace le h3 */
.card-logo { align-items: center; text-align: center; }
.reseau-logo { max-height: 62px; max-width: 100%; width: auto; object-fit: contain; margin-bottom: 12px; }
/* Notre réseau : bannière unique du réseau (remplace la grille de 5 logos) */
.reseau-banner { margin: 0; }
.reseau-banner img { display: block; width: 100%; height: auto; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 22px rgba(16,24,40,.08); }
@media (max-width: 720px) { .reseau-banner img { border-radius: 10px; } }
.card .sku { font-size: .75rem; color: var(--grey); letter-spacing: 1px; }
/* Parc & Inventaire — cartes véhicules en direct de Progi */
.parc-card { padding: 0 0 18px; overflow: hidden; }
.parc-card > *:not(.parc-thumb) { padding-left: 18px; padding-right: 18px; }
.parc-thumb { width: 100%; height: 168px; object-fit: cover; display: block;
       background: var(--bg-soft); margin-bottom: 12px; }
.parc-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
       gap: 6px; margin-top: 10px; }
.parc-gallery img { width: 100%; height: 62px; object-fit: cover; border-radius: 6px;
       border: 1px solid var(--line); }
/* Parc — vitrine de pièces sans prix : BOÎTES HORIZONTALES, pas un tableau.
   Nick 2026-10-03. Elles s'enroulent sur plusieurs lignes si l'écran est
   étroit ; sur desktop on en voit 4-5 de front, ce qui est le but. */
.parts-strip { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }
.part-box { position: relative; flex: 1 1 200px; max-width: 260px; min-width: 0;
       border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: 12px;
       padding: 16px 16px 14px; background: #fff; display: flex; flex-direction: column;
       box-shadow: 0 4px 14px rgba(27,27,27,.05); transition: transform .15s, box-shadow .15s; }
.part-box:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(27,27,27,.1); }
.part-box .pb-tag { align-self: flex-start; font-size: .68rem; font-weight: 700; letter-spacing: .5px;
       text-transform: uppercase; color: var(--red); background: rgba(200,16,46,.08);
       border-radius: 999px; padding: 3px 9px; margin-bottom: 10px; }
.part-box .pb-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.part-box .pb-ico { flex: 0 0 auto; width: 40px; height: 40px; display: block;
       background: var(--bg-soft); border-radius: 10px; padding: 5px; box-sizing: border-box; }
.part-box .pb-ico img { width: 100%; height: 100%; object-fit: contain; display: block; }
.part-box .pb-head .pb-name { margin-bottom: 0; }
.part-box .pb-name { font-size: 1rem; line-height: 1.25; color: var(--charcoal);
       margin-bottom: 6px; overflow-wrap: anywhere; }
.part-box .pb-veh { font-size: .85rem; font-weight: 600; color: var(--charcoal); margin-bottom: 4px; }
.part-box .pb-sku { font-size: .75rem; color: var(--grey); letter-spacing: .4px; margin-bottom: 10px; }
.part-box .pb-actions { margin-top: auto; display: flex; align-items: center; gap: 8px; }
.part-box .pb-actions .pb-call { flex: 1 1 auto; text-align: center; text-decoration: none;
       font-size: .85rem; font-weight: 700; color: #fff; background: var(--red);
       border-radius: 8px; padding: 9px 10px; }
.part-box .pb-actions .pb-call:hover { background: #a50d26; }
@media (max-width: 560px) {
  /* Nick 2026-10-03 : on garde des BOÎTES HORIZONTALES sur téléphone aussi
     (2 de front) — l'empilement pleine largeur cassait la lecture « rangée ». */
  .parts-strip { gap: 10px; }
  .part-box { flex: 1 1 calc(50% - 5px); max-width: none; padding: 12px 12px 10px; }
  .part-box .pb-name { font-size: .9rem; }
  .part-box .pb-actions .pb-call { font-size: .78rem; padding: 8px 6px; }
}
.vp-list { margin-top: 10px; }
.vp-row { border-top: 1px dashed var(--line); padding-top: 6px; }
.vp-row:first-child { border-top: none; }
.card .meta { font-size: .85rem; color: var(--grey); margin: 6px 0; }
.card .price { font-size: 1.25rem; font-weight: 800; color: var(--red); margin-top: auto; }
.card .price.demand { color: var(--charcoal); }
.card button { margin-top: 12px; background: var(--charcoal); color: #fff; border: none; padding: 9px 14px;
       border-radius: 8px; cursor: pointer; font-size: .9rem; transition: background .15s; }
/* « Vendez votre auto » — estimation + actions */
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.btn.ghost { background: #fff; color: var(--charcoal) !important; border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--bg-soft); }
.sell-estimate { background: var(--bg-soft); border: 1px solid var(--line); border-left: 4px solid var(--green, #8DBE4F);
       border-radius: 10px; padding: 14px 18px; margin: 6px 0 2px; }
.sell-estimate .amount { font-size: 1.5rem; font-weight: 800; color: var(--charcoal); }
.sell-estimate .verdict { font-size: .9rem; font-weight: 700; margin-top: 6px; padding: 4px 8px; border-radius: 6px; display: inline-block; }
.sell-estimate .verdict.v-bonne_affaire { color: #0f7b3d; background: rgba(15,123,61,.12); }
.sell-estimate .verdict.v-ferraille { color: #b23b2e; background: rgba(178,59,46,.12); }
.sell-estimate .note { font-size: .85rem; color: var(--grey); margin-top: 4px; }
.sell-estimate.hidden { display: none; }
.card button:hover { background: var(--red); }
section.alt { background: var(--bg-soft); }
form { max-width: 720px; }
.form-row { display: flex; gap: 12px; margin-bottom: 12px; }
.form-row input, form textarea { flex: 1; padding: 12px 16px; border-radius: 8px; border: 1px solid var(--line);
       font-size: .95rem; background: #fff; }
.form-row input:focus, form textarea:focus { outline: none; border-color: var(--red); }
form textarea { width: 100%; margin-bottom: 12px; }
footer { background: var(--charcoal); color: #cfcfcf; border-top: 3px solid var(--red); }
.footer-grid { max-width: 1080px; margin: 0 auto; padding: 56px 24px 40px; display: grid;
       grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 40px; text-align: left; }
.footer-col h4 { color: #fff; font-size: .95rem; letter-spacing: 1.5px; text-transform: uppercase;
       margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 2px; background: var(--red); }
.footer-col p { font-size: .88rem; line-height: 1.65; color: #b5b5b5; }
.footer-brand { font-weight: 800; font-size: 1.2rem; color: #fff; margin-bottom: 14px; letter-spacing: .5px; }
.footer-brand span { font-weight: 400; font-size: .75rem; opacity: .7; letter-spacing: 1.5px; display: block; margin-top: 2px; }
.footer-badges { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.badge { border: 1px solid #3a3a3a; color: #cfcfcf; font-size: .7rem; padding: 4px 10px; border-radius: 20px; letter-spacing: .5px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: #b5b5b5; text-decoration: none; font-size: .88rem; transition: color .15s, padding-left .15s; }
.footer-col ul a:hover { color: #fff; padding-left: 4px; }
.footer-col ul.contact li { color: #b5b5b5; font-size: .88rem; line-height: 1.5; }
.footer-col ul.contact a { color: #b5b5b5; }
.footer-col ul.contact a:hover { color: #ff8fa0; padding-left: 0; }
.social-row { display: flex; gap: 10px; }
.social-row a { width: 38px; height: 38px; border-radius: 50%; background: #2a2a2a; display: flex;
       align-items: center; justify-content: center; transition: background .15s, transform .15s; }
.social-row a:hover { background: var(--red); transform: translateY(-2px); }
.social-row svg { width: 18px; height: 18px; fill: #fff; }
.footer-note { margin-top: 16px; font-size: .8rem; color: #8a8a8a; line-height: 1.6; }
.footer-bottom { border-top: 1px solid #2e2e2e; padding: 18px 24px; display: flex; justify-content: space-between;
       align-items: center; flex-wrap: wrap; gap: 8px; font-size: .78rem; color: #8a8a8a; max-width: 1080px; margin: 0 auto; }
.footer-bottom a { color: #8a8a8a; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
.footer-powered b { color: var(--red); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; text-align: center; } }
#req-status { margin-top: 12px; font-weight: 700; }
@media (max-width: 640px) { .form-row { flex-direction: column; } .hero-search { flex-direction: column; }
  /* En colonne, flex-basis s'applique à la HAUTEUR : sans ça #hero-q ferait 200px de haut.
     On re-cible #hero-q — un ID bat une classe, donc `.hero-search > *` ne suffit pas. */
  .hero-search > * { width: 100%; }
  #hero-q { flex: 0 0 auto; min-width: 0; } }

/* ---------- Nav responsive (logo officiel 4:1 = plus large -> menu wrappe sans regle) ---------- */
/* Le logo officiel fait 210px de large a 52px de haut (vs 130px pour l'ancien) : sans ça le
   menu passe de 1 a 4 liens sur 2 lignes et le header triple de hauteur sur mobile. */
@media (max-width: 820px) {
  /* Rangée 1 en 2 lignes : logo + hamburger, puis la RECHERCHE pleine largeur. */
  .nav { flex-wrap: wrap; padding: 12px 18px; row-gap: 10px; }
  .brand-logo { height: 40px; }
  .nav-search { order: 3; flex: 1 0 100%; max-width: none; margin: 0; }
  .btn { padding: 8px 16px; font-size: .85rem; }
  #nav-menu a { font-size: .85rem; }
}
@media (max-width: 560px) {
  /* La bascule FR|EN reste accessible dans le menu hamburger. */
  .nav-actions > .lang-switch { display: none; }
  /* ...et c'est celle du menu déroulant qui prend le relais, sinon plus
     aucune bascule de langue n'est atteignable au doigt. */
  #nav-menu .menu-lang { display: inline-flex; margin: 10px 0 2px; }
  /* NE PAS remettre `flex-direction: column` : la marque et le hamburger
     tiennent sur une ligne. La colonne était un vestige d'avant le
     hamburger (elle gonflait le header et faisait chevaucher les liens). */
  .nav { flex-direction: row; align-items: center; justify-content: space-between; }
  .brand-logo { height: 38px; }
  .nav-search-btn .ns-label { display: none; }
}

/* ---------- Motion (ajout 2026-09-24) ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes countPulse { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }

/* Entrée hero au chargement (stagger léger) */
.hero h1 { animation: fadeUp .7s cubic-bezier(.16,1,.3,1) .05s both; }
.hero p { animation: fadeUp .7s cubic-bezier(.16,1,.3,1) .18s both; }
.hero-search { animation: fadeUp .7s cubic-bezier(.16,1,.3,1) .32s both; }
.hero-tags { animation: fadeUp .7s cubic-bezier(.16,1,.3,1) .46s both; }

/* Sections en scroll-reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s cubic-bezier(.16,1,.3,1); }
.reveal.visible { opacity: 1; transform: none; }

/* Compteurs animés */
.stat { display: inline-block; font-variant-numeric: tabular-nums; }
.stat.counting { animation: countPulse .5s ease; }

/* Cards: entrée + hover plus affirmé */
.grid .card { transition: transform .2s cubic-bezier(.16,1,.3,1), box-shadow .2s ease; }
.grid .card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(27,27,27,.14); }
#voice-btn { transition: transform .2s cubic-bezier(.16,1,.3,1), box-shadow .2s ease; }

@media (prefers-reduced-motion: reduce) {
  .hero h1, .hero p, .hero-search, .hero-tags, .reveal { animation: none !important; opacity: 1 !important; transform: none !important; transition: none !important; }
  .stat.counting { animation: none; }
}

/* ---------- Vitrine « Parcourir par catégorie » (disposition modèle PartsAvatar) ---------- */
.showcase { background: var(--white); }
.showcase .container { padding-top: 56px; padding-bottom: 56px; }

/* Barre de valeur (réassurance) — 4 blocs égaux, comme la barre du bas chez PartsAvatar */
.value-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 28px; }
.vb-item { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px;
           padding: 14px 16px; font-size: .84rem; color: var(--grey); line-height: 1.35; }
.vb-item b { display: block; color: var(--charcoal); font-size: .95rem; margin-bottom: 2px; }

/* Onglets de familles de pièces */
.sc-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.sc-tab { font-family: inherit; background: #fff; border: 1px solid var(--line); color: var(--charcoal);
          border-radius: 30px; padding: 9px 18px; font-size: .9rem; cursor: pointer;
          transition: background .15s, border-color .15s, color .15s; }
.sc-tab:hover { border-color: var(--red); color: var(--red); }
.sc-tab.active { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }

/* Grille de cartes catégories */
.sc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 14px; }
.sc-card { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
           border: 1px solid var(--line); border-radius: 12px; padding: 22px 14px; background: #fff;
           text-decoration: none; color: var(--charcoal);
           transition: transform .18s cubic-bezier(.16,1,.3,1), box-shadow .18s, border-color .18s; }
.sc-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(27,27,27,.12); border-color: var(--red); }
.sc-card.active { border-color: var(--red); background: #fff5f6; box-shadow: 0 0 0 3px rgba(200,16,46,.12); }
.sc-ico { width: 88px; height: 88px; border-radius: 16px; background: var(--bg-soft);
          display: flex; align-items: center; justify-content: center; flex-shrink: 0;
          transition: background .18s; }
.sc-card:hover .sc-ico { background: #fff5f6; }
.sc-ico img { width: 54px; height: 44px; object-fit: contain; }
.sc-name { font-weight: 600; font-size: .95rem; line-height: 1.25; }
.sc-count { font-size: .78rem; color: var(--grey); }
.sc-empty { color: var(--grey); font-size: .9rem; grid-column: 1 / -1; }

/* Cible de la vitrine : on fait clignoter les sélecteurs du hero si aucun véhicule n'est choisi */
.sc-flash { border-color: var(--red) !important; box-shadow: 0 0 0 4px rgba(200,16,46,.20) !important;
            animation: scPulse .5s ease 2; }
@keyframes scPulse { 0%,100% { transform: none; } 50% { transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .sc-flash { animation: none; } }

@media (max-width: 900px) { .value-bar { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .sc-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .sc-card { padding: 16px 8px; }
  .sc-ico { width: 70px; height: 70px; }
  .sc-ico img { width: 44px; height: 36px; }
  .sc-name { font-size: .82rem; }
  .sc-tabs { gap: 6px; }
  .sc-tab { padding: 7px 14px; font-size: .82rem; }
}

/* ── APPLICATIONS (variantes ProgiCom) ───────────────────────────────────
   Le pas intermédiaire du site de référence : la liste des variantes d'une
   pièce (moteur / émissions) AVANT les résultats. Une variante sans stock
   reste visible (badge « 0 en stock ») — sinon le client lit « inventaire
   vide ». */
.apps-box { margin: 18px 0 8px; }
.apps-h { margin: 0 0 6px; font-size: 1.05rem; }
.apps-sub { margin: 0 0 12px; color: var(--muted, #666); font-size: .92rem; max-width: 60ch; }
.apps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.app-item { display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 9px 12px; border: 1px solid var(--line, #e4e2de);
  border-radius: 8px; background: #fff; font-size: .93rem; }
.app-item.in { border-color: #C8102E33; }
.app-desc { flex: 1 1 auto; min-width: 0; }
.app-badge { flex: 0 0 auto; font-size: .78rem; font-weight: 600; padding: 3px 9px;
  border-radius: 999px; background: #f0f0f0; color: #777; white-space: nowrap; }
.app-badge.ok { background: #C8102E; color: #fff; }

/* ── TABLEAU DES STOCKS (étape 5 du site de référence) ───────────────────
   Colonnes : Qual. | Année | Prix | Stock | Détails | Disponibilité.
   Remplace les cartes : le client lit un tableau, comme sur la boutique. */
.tbl-wrap { overflow-x: auto; margin-top: 10px; }
table.stocks { width: 100%; border-collapse: collapse; background: #fff; font-size: .93rem; }
table.stocks th, table.stocks td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line, #e4e2de); }
table.stocks th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: #666; background: #fafafa; }
table.stocks tr:hover td { background: #fcfcfc; }
table.stocks .c-p { font-weight: 700; color: #C8102E; }
table.stocks .c-s { font-family: ui-monospace, monospace; font-size: .86rem; }
.avail { font-size: .82rem; font-weight: 600; }
.avail.in { color: #1a7f37; }
.avail.wait { color: #8a6d00; }
.call { color: #666; font-weight: 600; }
.det-btn { border: 1px solid var(--line, #e4e2de); background: #fff; border-radius: 6px; padding: 3px 9px; cursor: pointer; font-size: 1rem; }
.det-btn:hover { border-color: #C8102E; }
.det-off { color: #bbb; }

/* ── APPLICATIONS CLIQUABLES ────────────────────────────────────────────── */
.app-btn { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.app-item { transition: border-color .15s; }
.app-item:hover { border-color: #C8102E; }

/* ── MODALE PHOTOS (Détails -> véhicule de provenance) ──────────────────── */
.photo-modal { position: fixed; inset: 0; background: rgba(10,10,10,.72); z-index: 9999;
  display: flex; align-items: center; justify-content: center; padding: 20px; }
.pm-box { background: #fff; border-radius: 12px; max-width: 1000px; width: 100%;
  max-height: 88vh; overflow-y: auto; padding: 22px; position: relative; }
.pm-close { position: absolute; top: 10px; right: 14px; border: 0; background: none;
  font-size: 1.8rem; line-height: 1; cursor: pointer; color: #444; }
.pm-title { margin: 0 0 4px; font-size: 1.1rem; }
.pm-sub { margin: 0 0 14px; color: #666; font-size: .9rem; }
.pm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.pm-item img { width: 100%; height: 140px; object-fit: cover; border-radius: 8px; display: block; }
.pm-item:hover img { outline: 2px solid #C8102E; }
@media (max-width: 560px) { .pm-grid { grid-template-columns: repeat(2, 1fr); } .pm-item img { height: 110px; } }

/* Deux boutons dans la colonne Détails (fiche info + caméra), comme la référence. */
.c-d { white-space: nowrap; }
.c-d .det-btn + .det-btn { margin-left: 6px; }
table.det-tbl { width: 100%; border-collapse: collapse; margin: 4px 0 14px; }
table.det-tbl th { text-align: left; width: 42%; padding: 7px 10px; color: #666;
  font-weight: 600; font-size: .86rem; border-bottom: 1px solid #eee; vertical-align: top; }
table.det-tbl td { padding: 7px 10px; border-bottom: 1px solid #eee; }
.det-more { border: 1px solid var(--line, #e4e2de); background: #fff; border-radius: 8px;
  padding: 9px 16px; cursor: pointer; font: inherit; font-weight: 600; }
.det-more:hover { border-color: #C8102E; color: #C8102E; }

/* ── PANIER + PAIEMENT EN LIGNE ─────────────────────────────────────────── */
.cart-btn { border: 1px solid rgba(255,255,255,.28); background: #fff; border-radius: 8px;
  padding: 8px 14px; cursor: pointer; font: inherit; font-weight: 600; margin-left: 0;
  color: var(--charcoal); white-space: nowrap; }
.cart-btn:hover { border-color: #C8102E; color: #C8102E; }
.cart-btn b { background: #C8102E; color: #fff; border-radius: 999px; padding: 1px 7px;
  font-size: .8rem; margin-left: 2px; }
table.stocks .c-b { text-align: center; }
.buy-btn { border: 1px solid var(--line, #e4e2de); background: #fff; border-radius: 6px;
  padding: 4px 9px; cursor: pointer; font-size: 1rem; }
.buy-btn:hover { border-color: #1a7f37; background: #f4fff7; }
.buy-off { color: #bbb; }
table.cart-tbl { width: 100%; border-collapse: collapse; margin: 6px 0 14px; }
table.cart-tbl th { text-align: left; font-size: .78rem; text-transform: uppercase;
  color: #666; border-bottom: 1px solid #eee; padding: 8px 6px; }
table.cart-tbl td { padding: 9px 6px; border-bottom: 1px solid #eee; vertical-align: middle; }
table.cart-tbl .ctr { text-align: center; white-space: nowrap; }
table.cart-tbl .rt { text-align: right; white-space: nowrap; }
.qty-btn { border: 1px solid var(--line, #e4e2de); background: #fff; border-radius: 5px;
  width: 26px; height: 26px; cursor: pointer; font-size: .95rem; line-height: 1; }
.qty-btn:hover { border-color: #C8102E; }
.rm-btn { border: 0; background: none; color: #999; cursor: pointer; font-size: 1rem; }
.rm-btn:hover { color: #C8102E; }
.cart-tot { display: flex; justify-content: space-between; padding: 5px 2px; font-size: .95rem; }
.cart-tot.big { font-size: 1.15rem; border-top: 2px solid #222; margin-top: 6px; padding-top: 10px; }
.pay-form { display: grid; gap: 8px; margin-top: 16px; }
.pay-form input { padding: 10px 12px; border: 1px solid var(--line, #e4e2de); border-radius: 8px; font: inherit; }
.pay-form input:focus { outline: 2px solid #C8102E; outline-offset: 1px; }
.pay-form .btn { justify-self: start; }
@media (max-width: 620px) { .cart-btn span { display: none; } }

/* ── MON COMPTE : plus de modal — « Mon compte » est un lien vers le portail
   client Progi (progi.autolemieux.com), ouvert dans un nouvel onglet. ─────── */

/* ── CHAMPS TAPABLES du hero (au-dessus des menus déroulants) ───────────── */
.hero-typing { position: relative; z-index: 1; display: flex; gap: 10px;
  justify-content: center; max-width: 1040px; margin: 0 auto 10px; flex-wrap: wrap; }
.hero-typing input { flex: 1 1 200px; min-width: 160px; padding: 15px 20px;
  border-radius: 30px; border: 2px solid rgba(255,255,255,.25); font-size: 1rem;
  background: rgba(255,255,255,.12); color: #fff; }
.hero-typing input::placeholder { color: #b5b5b5; }
.hero-typing input:focus { outline: none; border-color: var(--red); background: rgba(255,255,255,.18); }
.hero-or { position: relative; z-index: 1; text-align: center; color: #9a9a9a;
  font-size: .82rem; margin: 0 0 12px; letter-spacing: .02em; }
@media (max-width: 640px) { .hero-typing { flex-direction: column; } .hero-typing input { width: 100%; } }

/* ── Hero : UNE SEULE rangée de champs (taper OU choisir), plus de doublon ── */
/* Les menus d'origine restent dans le DOM (logique interne) mais invisibles. */
.hero-menus-hidden { display: none !important; }
/* Les règles .hero-typing / .hero-or ne s'appliquent plus (éléments retirés). */
.hero-search input { flex: 1 1 190px; min-width: 170px; }
@media (max-width: 640px) { .hero-search input { flex: 0 0 auto; min-width: 0; } }

/* ══════════════════════════════════════════════════════════════════════════
   MENU LATÉRAL « Parcourir par catégorie » (catégories -> sous-catégories)
   ══════════════════════════════════════════════════════════════════════════ */
.cat-layout { display: grid; grid-template-columns: 300px 1fr; gap: 26px;
  align-items: start; }
.showcase-main { min-width: 0; }

.catmenu { border: 1px solid var(--line); border-radius: 14px; background: #fff;
  overflow: hidden; position: sticky; top: 100px; }
/* VIGNETTE VÉHICULE (coin supérieur GAUCHE du menu latéral, façon PartsAvatar).
   Silhouette vectorielle + logo de marque local ; masquée tant qu'aucun
   véhicule n'est enregistré (`hidden` posé dans index.html). */
.cm-veh { display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); background: #fff; }
.cm-veh[hidden] { display: none; }
.cm-veh-pic { position: relative; width: 62px; height: 40px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-soft); border-radius: 9px; color: var(--red); }
.cm-veh-car { width: 46px; height: 30px; display: block; }
.cm-veh-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  max-width: 54px; max-height: 30px; width: auto; height: auto; object-fit: contain; }
.cm-veh-logo[hidden] { display: none; }
.cm-veh-txt { min-width: 0; display: flex; flex-direction: column; }
.cm-veh-txt b { font-size: .92rem; line-height: 1.2; color: var(--charcoal);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-veh-txt small { font-size: .74rem; color: var(--grey); letter-spacing: .01em; }
.cm-head { display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line);
  background: var(--bg-soft); }
.cm-title { font-weight: 700; font-size: .95rem; letter-spacing: .01em; }
.cm-all { font-family: inherit; font-size: .76rem; color: var(--red);
  background: none; border: 1px solid currentColor; border-radius: 20px;
  padding: 4px 11px; cursor: pointer; white-space: nowrap; }
.cm-all:hover { background: var(--red); color: #fff; }

.cm-list { max-height: 560px; overflow-y: auto; padding: 6px; }
.cm-cat { border-bottom: 1px solid #f0f0f0; }
.cm-cat:last-child { border-bottom: none; }
.cm-cat-btn { width: 100%; display: flex; align-items: center; gap: 10px;
  font-family: inherit; font-size: .88rem; text-align: left; color: var(--charcoal);
  background: none; border: 0; padding: 11px 10px; cursor: pointer;
  border-radius: 9px; transition: background .15s, color .15s; }
.cm-cat-btn:hover { background: var(--bg-soft); color: var(--red); }
.cm-cat.open > .cm-cat-btn { background: #fff5f6; color: var(--red); font-weight: 600; }
.cm-ico { width: 30px; height: 30px; flex-shrink: 0; display: flex;
  align-items: center; justify-content: center; background: var(--bg-soft);
  border-radius: 8px; }
.cm-ico img { width: 22px; height: 18px; object-fit: contain; }
.cm-cat-name { flex: 1; line-height: 1.25; }
.cm-count { font-size: .72rem; color: var(--grey); background: var(--bg-soft);
  border-radius: 10px; padding: 2px 7px; }
.cm-chev { font-size: .8rem; color: var(--grey); width: 12px; text-align: center; }

.cm-subs { list-style: none; margin: 0 0 6px; padding: 0 0 0 8px; }
.cm-sub { width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 8px; font-family: inherit; font-size: .8rem; text-align: left; cursor: pointer;
  color: #4a4a4a; background: none; border: 0; border-left: 2px solid var(--line);
  padding: 7px 10px; border-radius: 0 7px 7px 0; transition: background .15s, color .15s, border-color .15s; }
.cm-sub:hover:not(:disabled) { background: #fff5f6; color: var(--red); border-left-color: var(--red); }
.cm-sub:disabled { opacity: .45; cursor: not-allowed; }
.cm-sub-name { line-height: 1.25; }
.cm-sub-go { color: var(--grey); }
.cm-empty { padding: 14px; color: var(--grey); font-size: .85rem; }

@media (max-width: 900px) {
  .cat-layout { grid-template-columns: 1fr; gap: 16px; }
  .catmenu { position: static; }
  .cm-list { max-height: 320px; }
}
/* Mobile : le menu passe AU-DESSUS du contenu. La vignette véhicule reste la
   première chose vue (même coin haut-gauche qu'en desktop). */
@media (max-width: 560px) {
  .cm-veh { padding: 11px 14px; gap: 10px; }
  .cm-veh-pic { width: 54px; height: 36px; }
  .cm-veh-car { width: 40px; height: 26px; }
  .cm-veh-txt b { font-size: .88rem; }
}

/* ── ANCRAGE : le header est sticky (87px) — sans marge, chaque ancre
   s'ouvrait CACHÉE sous le header. Mesuré : top=-0.0px pour les 5 liens. ── */
html { scroll-padding-top: 118px; }
section[id], [id="catalogue"] { scroll-margin-top: 118px; }

/* ── Colonne de CONTENU à droite du menu latéral ────────────────────────── */
/* Le panneau collé au menu : plus de .container imbriqué (il ajoutait 60px
   de padding et centrait le contenu — d'où la colonne droite vide). */
.cat-content { min-width: 0; }
.cat-pane { animation: none; }
.cat-layout { align-items: start; }
/* Sur grand écran : le menu reste visible pendant qu'on lit les résultats. */
@media (min-width: 901px) {
  .catmenu { max-height: calc(100vh - 120px); }
  .cm-list { max-height: calc(100vh - 200px); }
}

/* ── Logo = lien vers l'accueil ─────────────────────────────────────────── */
/* Il est maintenant un <a> : on neutralise le style générique des liens du
   header (.nav a) et on ajoute un retour visuel au survol. */
.brand { display: flex; align-items: center; text-decoration: none !important;
  margin: 0 !important; opacity: 1 !important; cursor: pointer; border-radius: 6px;
  transition: opacity .15s; }
.brand:hover { opacity: .82 !important; }
.brand:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }

/* ── FIL D'ÉTAPES (dummy proof) ──────────────────────────────────────────
   Le client voit en permanence où il est et ce qui vient. Une étape active
   (rouge), les précédentes cochées, les suivantes grisées. */
.flow-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px;
  margin: 0 0 18px; padding: 12px 16px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; font-size: .9rem; }
.flow-steps li { display: flex; align-items: center; gap: 8px; color: #9a9a9a; }
.flow-steps li b { display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%; background: #eee; color: #777;
  font-size: .82rem; font-weight: 700; flex: 0 0 auto; }
.flow-steps li.active { color: #1B1B1B; font-weight: 700; }
.flow-steps li.active b { background: #C8102E; color: #fff; }
.flow-steps li.done { color: #555; }
.flow-steps li.done b { background: #C8102E22; color: #C8102E; }
.flow-steps li.done b::after { content: "✓"; position: absolute; }
.flow-steps li.done b { color: transparent; position: relative; }
.flow-steps li.done b::after { color: #C8102E; font-size: .8rem;
  left: 50%; top: 50%; transform: translate(-50%,-50%); }

/* Consigne de l'étape en cours — grosse, impossible à rater. */
.flow-hint { margin: 0 0 14px; padding: 11px 15px; background: #FFF4F6;
  border-left: 4px solid #C8102E; border-radius: 6px; color: #1B1B1B;
  font-size: 1rem; font-weight: 600; }

/* Variante choisie, rappelée au-dessus des prix. */
.variant-pick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 0 0 14px; padding: 11px 15px; background: #F2FBF4;
  border-left: 4px solid #1E9E52; border-radius: 6px; font-size: .98rem; }
.vp-check { color: #1E9E52; font-weight: 700; }
.vp-change { background: none; border: 1px solid #1E9E52; color: #1E9E52;
  border-radius: 6px; padding: 3px 12px; font: inherit; font-size: .86rem; cursor: pointer; }
.vp-change:hover { background: #1E9E52; color: #fff; }

@media (max-width: 640px) {
  .flow-steps { gap: 6px 12px; padding: 10px 12px; font-size: .82rem; }
  .flow-steps li b { width: 21px; height: 21px; font-size: .75rem; }
}

.variant-empty { margin: 8px 0 14px; color: #8a1c2c; font-size: .93rem; }
.vp-change-cta { background: #C8102E !important; color: #fff !important;
  border-color: #C8102E !important; font-weight: 600; padding: 6px 16px !important; }
.vp-change-cta:hover { background: #a00d24 !important; }

/* ── HAMBURGER MOBILE ─────────────────────────────────────────────────────
   Desktop : bouton caché, menu en ligne (inchangé).
   Mobile ≤820px : bouton visible, menu replié en panneau déroulant plein
   largeur. Sans ça les 5 liens s'empilaient (172px de header) et se
   chevauchaient — mesuré à 390px. */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer;
  padding: 8px; margin-left: auto; border-radius: 8px; flex: 0 0 auto; }
.nav-toggle:hover { background: rgba(255,255,255,.10); }
.nav-toggle:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.nt-bar { display: block; width: 26px; height: 3px; background: #fff;
  border-radius: 2px; margin: 5px 0; transition: transform .2s, opacity .2s; }
/* Croix quand le menu est ouvert. */
.nav-toggle.open .nt-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open .nt-bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .nt-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 820px) {
  /* `flex-direction: row` est OBLIGATOIRE : une règle héritée `max-width: 560px`
     mettait le header en colonne et le gonflait à 110px. Avec le hamburger, la
     marque et le bouton tiennent sur UNE ligne (~66px). */
  .nav { flex-wrap: wrap; flex-direction: row; align-items: center;
         justify-content: space-between; padding: 12px 18px; row-gap: 10px; }
  .nav-toggle { display: block; order: 2; }
  /* Menu replié par défaut : masqué tant que .open n'est pas posé sur le
     header. `#nav-menu` est FRÈRE de `.nav` (rangée 2) — on le positionne
     donc sous les DEUX rangées via le header. */
  .site-header { position: sticky; }
  #nav-menu { display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--charcoal, #111); flex-direction: column; align-items: flex-start;
    gap: 2px; padding: 10px 18px 18px; box-shadow: 0 12px 24px rgba(0,0,0,.28);
    border-top: 3px solid var(--red); z-index: 60; }
  .site-header.open #nav-menu { display: flex; }
  #nav-menu > a { margin: 0; padding: 11px 0; width: 100%; font-size: .98rem;
    border-bottom: 1px solid rgba(255,255,255,.10); }
  #nav-menu > a.btn { border-bottom: 0; margin: 12px 0 0; width: auto; padding: 10px 20px; }
  /* Séparateurs verticaux de la rangée 2 : sans objet dans le panneau déroulant
     (liens empilés en colonne) — on les coupe et on rend l'écart au lien. */
  #nav-menu > a:not(.btn) { padding: 11px 0; }
  #nav-menu > a:not(.btn) + a:not(.btn)::before,
  #nav-menu .btn::before { display: none; }
  /* Sous-menu Contact : dans le panneau, il est DÉPLIÉ en clair (pas de survol
     au doigt) et légèrement indenté sous son parent. */
  .nav-sub { display: block; width: 100%; }
  .nav-sub > a { padding: 11px 0 !important; width: 100%;
    border-bottom: 1px solid rgba(255,255,255,.10); }
  .nav-sub::before, .nav-sub::after { display: none; }
  .nav-sub-menu { position: static; display: flex; min-width: 0; margin: 0;
    padding: 0 0 0 14px; background: transparent; border: 0; box-shadow: none; }
  .nav-sub-menu a { padding: 9px 0 !important; width: 100%; border-radius: 0;
    font-size: .92rem; opacity: .92 !important;
    border-bottom: 1px solid rgba(255,255,255,.06); }
  /* Le panneau mobile garde le fond charcoal (contraste plein écran) même si
     la barre rangée 2 est blanche sur desktop. */
  #nav-menu { background: var(--charcoal, #111); }
  #nav-menu a { color: #fff; }
  #nav-menu .lang-switch { color: #fff; border-color: rgba(255,255,255,.35); }
  #nav-menu .lang-switch button { color: #fff; }
  /* Rangée 1 en mobile : icônes compactes, libellés masqués (6 boutons à 390px
     = illisible). Le hamburger ferme la marche. */
  .nav-actions { gap: 6px; }
  .nav-ico { padding: 8px 10px; }
  .nav-ico .ni-label { display: none; }
  .cart-btn { padding: 8px 10px; }
}

/* Écrans étroits (≤560px) : logo + les 4 actions + hamburger doivent tenir sur
   UNE seule ligne. Mesuré SANS ce tassement : 402px de contenu dans 390px de
   fenêtre -> passage à 3 lignes et header de 173px. Réductions : logo 34px,
   paddings et écarts resserrés. La recherche reste pleine largeur en dessous. */
@media (max-width: 560px) {
  .nav { padding: 10px 14px; row-gap: 8px; }
  .brand-logo { height: 34px; }
  .nav-actions { gap: 3px; }
  .nav-ico { padding: 7px 8px; }
  .cart-btn { padding: 7px 8px; }
  .nav-toggle { padding: 6px; }
}


/* ── Les plus vendus (Top Selling) — classement par ventes réelles ───────── */
.top-list { list-style: none; margin: 0; padding: 0; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.top-item { display: flex; align-items: center; gap: 14px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
  transition: transform .2s cubic-bezier(.16,1,.3,1), box-shadow .2s ease; }
.top-item:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(27,27,27,.12); }
.top-rank { flex: 0 0 40px; height: 40px; border-radius: 50%; background: var(--charcoal);
  color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; }
.top-item:first-child .top-rank { background: var(--red); }
.top-body { flex: 1; min-width: 0; }
.top-name { font-weight: 700; color: var(--charcoal); font-size: .98rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-meta { font-size: .82rem; color: var(--grey); margin-top: 2px; }
.top-count { flex: 0 0 auto; text-align: right; }
.top-count b { display: block; font-size: 1.35rem; font-weight: 800; color: var(--red); line-height: 1; }
.top-count span { font-size: .72rem; color: var(--grey); letter-spacing: .3px; }
@media (max-width: 640px) { .top-list { grid-template-columns: 1fr; } }
.top-popular-head { margin: 30px 0 14px; font-size: 1rem; font-weight: 700;
  color: var(--charcoal); text-transform: uppercase; letter-spacing: .6px; }

/* ── PIÈCES D'UN VÉHICULE DU PARC (fiche) ─────────────────────────────────
   Le client vend des pièces : la fiche d'un véhicule du yard liste ses pièces.
   Réutilise le tableau .stocks, donc une seule présentation sur tout le site. */
.vp-parts { margin-top: 14px; }
.vp-parts-h { margin: 12px 0 6px; font-size: .95rem; }
.vp-parts .tbl-wrap table.stocks th, .vp-parts .tbl-wrap table.stocks td { padding: 8px 10px; }
.vp-parts-note { margin-top: 6px; font-size: .78rem; }


/* ── VUE ÉCLATÉE CLIQUABLE (option A) ─────────────────────────────────────
   Le client clique la ZONE du véhicule et la famille de pièces s'ouvre.
   Tout est vectoriel (SVG inline) : rien à télécharger, net sur mobile.
   Couleurs : rouge LEMIEUX pour l'actif, charcoal pour le dessin. */
.exploded { margin: 0 0 30px; padding: 18px 20px 16px; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 14px; }
/* `hidden` doit battre l'affichage flex/interne de la carte. */
.exploded[hidden] { display: none !important; }

/* Bouton d'aide : ouvre/ferme la carte « Repérez la zone sur le véhicule ».
   Toujours visible — c'est le seul moyen d'ouvrir l'aide. */
.ex-toggle-row { margin: 0 0 18px; }
.ex-toggle { display: inline-flex; align-items: center; gap: 9px; font-family: inherit;
  font-size: .92rem; font-weight: 600; color: var(--charcoal); cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-radius: 30px; padding: 9px 18px;
  transition: border-color .15s, color .15s, background .15s; }
.ex-toggle:hover { border-color: var(--red); color: var(--red); }
.ex-toggle:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.ex-toggle-ico { display: inline-flex; align-items: center; justify-content: center;
  width: 21px; height: 21px; border-radius: 50%; background: var(--red); color: #fff;
  font-size: .8rem; font-weight: 700; flex: 0 0 auto; }
.ex-toggle.open { border-color: var(--red); color: var(--red); background: #fff5f6; }
.exploded-head h3 { margin: 0 0 4px; font-size: 1.05rem; color: var(--charcoal); }
.exploded-head p { margin: 0 0 12px; color: var(--grey); font-size: .9rem; }
.ex-wrap { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(230px, 1fr);
  gap: 18px; align-items: center; }
.ex-svg { width: 100%; height: auto; display: block; overflow: visible; }
.ex-shadow { fill: rgba(27,27,27,.10); }
.ex-body { fill: #E9E7E3; stroke: var(--charcoal); stroke-width: 3; stroke-linejoin: round; }
.ex-glass { fill: #CFD6DC; stroke: var(--charcoal); stroke-width: 3; }
.ex-rack { fill: var(--charcoal); opacity: .55; }
.ex-wheel { fill: #4A4A4A; }
.ex-hub { fill: #B9B9B9; stroke: var(--charcoal); stroke-width: 2; }

/* Pastille numérotée : zone cliquable. */
.ex-zone { cursor: pointer; outline: none; }
.ex-ring { fill: rgba(200,16,46,.13); transition: fill .16s, r .16s; }
.ex-dot { fill: var(--red); stroke: #fff; stroke-width: 3; transition: transform .16s; }
.ex-num { fill: #fff; font-size: 21px; font-weight: 700; text-anchor: middle;
  pointer-events: none; font-family: inherit; }
.ex-zone:hover .ex-ring, .ex-zone.hot .ex-ring, .ex-zone:focus-visible .ex-ring { fill: rgba(200,16,46,.28); }
.ex-zone:hover .ex-dot, .ex-zone.hot .ex-dot { transform: scale(1.14); transform-box: fill-box; transform-origin: center; }
.ex-zone.active .ex-ring { fill: rgba(200,16,46,.30); }
.ex-zone.active .ex-dot { stroke: var(--charcoal); }

/* Légende : la même liste que les 15 familles, cliquable. */
.ex-chips { display: flex; flex-wrap: wrap; gap: 6px; align-content: center; }
.ex-chip { display: inline-flex; align-items: center; gap: 7px; font-family: inherit;
  font-size: .8rem; text-align: left; color: var(--charcoal); cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-radius: 30px; padding: 6px 12px;
  transition: border-color .15s, color .15s, background .15s; }
.ex-chip b { display: inline-flex; align-items: center; justify-content: center;
  width: 19px; height: 19px; border-radius: 50%; background: var(--red); color: #fff;
  font-size: .7rem; flex: 0 0 auto; }
.ex-chip:hover, .ex-chip.hot { border-color: var(--red); color: var(--red); }
.ex-chip.active { background: #fff5f6; border-color: var(--red); color: var(--red); font-weight: 600; }
.ex-hint { margin: 12px 0 0; color: var(--grey); font-size: .82rem; }

@media (max-width: 900px) {
  .ex-wrap { grid-template-columns: 1fr; gap: 12px; }
  .ex-chips { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .exploded { padding: 14px 12px; }
  .ex-chip { font-size: .75rem; padding: 5px 10px; }
  .ex-chip span { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}


/* ---------- Vendez votre auto : bloc photos/vidéo (à gauche du formulaire) ---------- */
.sell-cols { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
             gap: 20px; align-items: start; }
.sell-cols #sell-form { max-width: none; width: 100%; }
.sell-cols .sell-media { margin-top: 0; }
.sell-cols .sell-media-btns .cam-btn { flex: 1 1 100%; }
.sell-media { margin-top: 18px; padding: 14px; border: 1px dashed var(--line);
              border-radius: 12px; background: var(--bg-soft); }
.sell-media-h { margin: 0 0 10px; font-weight: 600; font-size: .95rem; }
.sell-media-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.sell-media-btns .cam-btn { flex: 1 1 auto; justify-content: center; text-align: center;
                            white-space: normal; cursor: pointer; }
.sell-media-preview { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.sell-media-preview figure { margin: 0; width: 92px; }
.sell-media-preview img, .sell-media-preview video { width: 92px; height: 92px;
              object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.sell-media-preview figcaption { font-size: .7rem; color: var(--grey); text-align: center; margin-top: 3px; }
@media (max-width: 860px) {
  .sell-cols { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 560px) {
  .sell-media { padding: 12px 10px; }
  .sell-media-btns { flex-direction: column; }
  .sell-media-btns .cam-btn { width: 100%; flex: 0 0 auto; }
  .sell-media-preview figure { width: 76px; }
  .sell-media-preview img, .sell-media-preview video { width: 76px; height: 76px; }
}

/* ---------- Photo du VIN : bouton collé au champ VIN ---------- */
.vin-row { align-items: stretch; }
.vin-cam-btn { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
               white-space: nowrap; margin: 0; cursor: pointer; }
.vin-scan { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.vin-scan[hidden] { display: none; }
.vin-scan img { width: 130px; height: 96px; object-fit: cover; border-radius: 8px;
                border: 1px solid var(--line); display: block; background: var(--bg-soft); }
.vin-scan .vin-scan-note { font-size: .8rem; color: var(--grey); }
@media (max-width: 640px) {
  /* .form-row passe en colonne : flex:1 donnerait une HAUTEUR nulle au champ (meme piege que #hero-q) */
  .vin-row input { flex: 0 0 auto; }
  .vin-cam-btn { width: 100%; }
}

/* Très étroits (≤400px, petits Android) : mesuré à 360px, logo 137px + actions
   187px = 370px > 360px -> le groupe passait à la ligne. On rogne encore pour
   que logo + 4 actions + hamburger tiennent sur une seule ligne. */
@media (max-width: 400px) {
  .nav { padding: 10px 12px; }
  .brand-logo { height: 28px; }
  .nav-actions { gap: 2px; }
  .nav-ico, .cart-btn { padding: 6px 7px; }
  .nav-toggle { padding: 5px; }
}


/* ══════════════════════════════════════════════════════════════════════════
   HERO v2 — disposition type partsavatar.ca
   Gauche : carte blanche « Sélectionnez votre véhicule » (champs empilés)
   Droite : visuel promo (titre rouge + CTA)
   Dessous : barre de valeur 4 colonnes + tags
   Les anciens styles .hero-* restent au-dessus (éléments supprimés = inertes).
   ══════════════════════════════════════════════════════════════════════════ */
.hero { padding: 0; text-align: left; }

/* — Espace de 10px en BAS du hero (Nick) : enfant direct de <section class="hero">,
     juste après .hero-grid — le fond (photo) du hero reste visible, comme en haut. — */
.hero-space-under { height: 10px; background: transparent; }

/* — Bande valeur + tags, SOUS le hero (Nick : hors du hero, pas dedans) — */
.hero-strip { position: relative; color: var(--charcoal); overflow: hidden;
  background: var(--bg-soft); }

.hero-grid { display: grid; grid-template-columns: 380px 1fr; align-items: stretch;
  max-width: 1180px; margin: 0 auto; padding: 34px 24px 34px; gap: 0; }

/* — Carte véhicule (blanche, à gauche) — */
.hero-card { background: #fff; color: var(--charcoal); border-radius: 14px 0 0 14px;
  padding: 26px 24px; box-shadow: 0 14px 40px rgba(0,0,0,.22); position: relative; z-index: 2; }
.hero .hero-card-kicker { font-size: .72rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--red); font-weight: 800; margin-bottom: 6px; }
.hero-card-title { font-size: 1.32rem; line-height: 1.2; color: var(--charcoal); margin-bottom: 6px; }
.hero .hero-card-sub { font-size: .88rem; color: var(--grey); margin: 0 0 18px; max-width: none; text-align: left; }

.hero .hero-search { display: flex; flex-direction: column; gap: 10px; max-width: none;
  margin: 0; animation: none; }
.hero .hero-search input { flex: 0 0 auto; min-width: 0; width: 100%;
  padding: 13px 16px; border-radius: 8px; border: 1.5px solid var(--line);
  background: var(--bg-soft); color: var(--charcoal); font-size: .95rem; }
.hero .hero-search input::placeholder { color: #8a8a8a; }
.hero .hero-search input:focus { outline: none; border-color: var(--red);
  background: #fff; box-shadow: 0 0 0 3px rgba(200,16,46,.12); }
.hero .hero-search .btn.big { width: 100%; border-radius: 8px; margin-top: 4px; }
.hero .hero-hint { color: #a00d25; margin: 10px 0 0; max-width: none; text-align: left; }
.hero .hero-hint.ok { color: #1a7f45; }

/* — Visuel promo (droite) — */
.hero-media { position: relative; border-radius: 0 14px 14px 0; overflow: hidden;
  background: linear-gradient(120deg, #14181d 0%, #232a33 55%, #2c343d 100%); }
/* — 4 photos en fondu (parc, disque, alternateur, amortisseur).
     Le TEXTE promo reste celui d'origine, inchangé, par-dessus. — */
.hero-slide { position: absolute; inset: 0; z-index: 0;
  background-position: center; background-size: cover; background-repeat: no-repeat;
  opacity: 0; animation: heroSlide 24s ease-in-out infinite; }
.hero-slide:nth-child(1) { background-image: url("../assets/hero-slide-1.jpg"); }
.hero-slide:nth-child(2) { background-image: url("../assets/hero-slide-2.jpg"); animation-delay: 6s; }
.hero-slide:nth-child(3) { background-image: url("../assets/hero-slide-3.jpg"); animation-delay: 12s; }
.hero-slide:nth-child(4) { background-image: url("../assets/hero-slide-4.jpg"); animation-delay: 18s; }
@keyframes heroSlide {
  0%   { opacity: 0; }
  3%   { opacity: 1; }
  22%  { opacity: 1; }
  27%  { opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { animation: none; }
  .hero-slide:nth-child(1) { opacity: 1; }
}
.hero-media::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(10,10,10,.88) 0%, rgba(10,10,10,.62) 42%, rgba(10,10,10,.26) 100%); }
.hero-promo { position: relative; z-index: 2; padding: 40px 40px 34px; max-width: 620px;
  display: flex; flex-direction: column; justify-content: center; min-height: 300px; height: 100%; }
.hero-promo-tag { display: inline-block; align-self: flex-start; background: var(--red); color: #fff;
  font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 20px; margin-bottom: 16px; }
.hero-promo h1 { font-size: 2.35rem; color: #fff; margin-bottom: 12px; letter-spacing: -.02em;
  text-align: left; animation: none; }
.hero-promo h1 em { font-style: normal; color: #ff4d63; }
.hero .hero-sub { font-size: 1.02rem; color: #cdd3da; margin: 0 0 22px; max-width: 460px; text-align: left; animation: none; }
.hero-cta { display: inline-block; align-self: flex-start; background: var(--red); color: #fff !important;
  font-weight: 700; padding: 13px 30px; border-radius: 8px; text-decoration: none;
  transition: background .15s, transform .15s; }
.hero-cta:hover { background: #a00d25; transform: translateY(-1px); }

/* — Barre de valeur — */
.hero-value { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  max-width: 1180px; margin: 26px auto 0; padding: 0 24px;
  border-top: 1px solid var(--line); }
.hv-item { display: flex; flex-direction: column; padding: 20px 18px; color: var(--grey);
  border-right: 1px solid var(--line); }
.hv-item:last-child { border-right: 0; }
.hv-ico { font-size: 1.25rem; line-height: 1; margin-bottom: 8px; }
.hv-item b { font-size: .98rem; color: var(--charcoal); margin-bottom: 2px; }
.hv-item span:not(.hv-ico) { font-size: .84rem; color: #6a6a6a; }

/* — Tags (téléphones + réseau) — SOUS le bouton « Explorer le catalogue » (Nick)
     Espace sous le CTA : 10px EXACT (Nick) — ne pas changer cette valeur. — */
.hero-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  align-self: flex-start; margin: 10px 0 0; padding: 0; max-width: none; text-align: left;
  position: relative; z-index: 2; animation: none; }
.hero .tag { background: #fff; border: 1px solid var(--line); color: var(--charcoal);
  margin: 0; text-decoration: none; }
.hero .tag b { color: #ff4d63; }
a.hero-tags .tag, a.tag[href^="tel:"] { cursor: pointer; }
.hero .tag:hover { border-color: var(--red); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding: 26px 24px 26px; }
  .hero-card { border-radius: 14px 14px 0 0; }
  .hero-media { border-radius: 0 0 14px 14px; }
  .hero-promo { padding: 30px 24px; min-height: 0; }
  .hero-promo h1 { font-size: 1.85rem; }
  .hero-value { grid-template-columns: repeat(2, 1fr); }
  .hv-item:nth-child(2) { border-right: 0; }
  .hv-item:nth-child(1), .hv-item:nth-child(2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .hero-grid { padding: 20px 14px 20px; }
  .hero-card { padding: 22px 18px; }
  .hero-promo { padding: 26px 18px; }
  .hero-promo h1 { font-size: 1.6rem; }
  .hero-value { grid-template-columns: 1fr; padding: 0 14px; }
  .hv-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .hv-item:last-child { border-bottom: 0; }
  .hero-tags { margin-top: 10px; }
}


/* ---------- FAQ + carte du réseau (côte à côte) ---------- */
.faq-map { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
           gap: 26px; align-items: stretch; margin-top: 26px; }
.faq-col { display: flex; flex-direction: column; gap: 10px; min-height: 0; }

/* Visuel de recyclage : comble le reste de la colonne FAQ (fin du trou blanc desktop) */
.faq-art { position: relative; flex: 1 1 190px; min-height: 190px; margin: 0;
           border-radius: 12px; overflow: hidden; background: var(--bg-soft); }
.faq-art img { position: absolute; inset: 0; width: 100%; height: 100%;
               object-fit: cover; object-position: center 42%; display: block; }

.faq-item { border: 1px solid var(--line); border-radius: 12px; background: #fff;
            padding: 0 18px; transition: box-shadow .18s ease, border-color .18s ease; }
.faq-item:hover { border-color: #cfd5de; box-shadow: 0 6px 18px rgba(16,24,40,.07); }
.faq-item summary { cursor: pointer; list-style: none; padding: 15px 0; font-weight: 500;
                    color: var(--charcoal); font-size: .97rem; line-height: 1.4;
                    display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: 0 0 auto; font-size: 1.25rem; font-weight: 400;
                           color: var(--red); line-height: 1; transition: transform .2s ease; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item[open] summary { padding-bottom: 8px; }
.faq-item p { margin: 0 0 15px; color: var(--grey); font-size: .9rem; line-height: 1.62; }

.map-col { display: flex; flex-direction: column; }
.map-col h3 { color: var(--charcoal); font-size: 1.05rem; margin-bottom: 4px; }
.map-col .sub { margin-bottom: 12px; }
#reseau-map { width: 100%; height: 340px; border: 1px solid var(--line); border-radius: 12px;
              background: var(--bg-soft); position: relative; z-index: 0; }
.map-list { list-style: none; margin: 14px 0 0; padding: 0;
            display: flex; flex-direction: column; gap: 8px; }
.map-list-item { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line);
                 border-radius: 10px; padding: 10px 12px; background: #fff; }
.map-list-btn { flex: 1 1 auto; min-width: 0; text-align: left; background: none; border: 0;
                cursor: pointer; display: flex; flex-direction: column; gap: 2px; font: inherit; padding: 0; }
.map-list-btn b { color: var(--charcoal); font-size: .9rem; }
.map-list-addr { color: var(--grey); font-size: .78rem; line-height: 1.4; }
.map-list-route { flex: 0 0 auto; font-size: .78rem; font-weight: 600; color: var(--red);
                  text-decoration: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.map-list-route:hover { border-color: var(--red); }
.map-pop { display: flex; flex-direction: column; gap: 3px; min-width: 175px; }
.map-pop b { color: var(--charcoal); font-size: .9rem; }
.map-pop-addr { color: var(--grey); font-size: .78rem; line-height: 1.4; }
.map-pop-link { margin-top: 5px; font-size: .78rem; font-weight: 600; color: var(--red); }
.leaflet-container { font-family: inherit; }

@media (max-width: 900px) { .faq-map { grid-template-columns: 1fr; gap: 30px; } }
@media (max-width: 560px) {
  #reseau-map { height: 270px; }
  .map-list-item { flex-wrap: wrap; }
  .map-list-route { width: 100%; text-align: center; }
}

/* ---------- Pages À propos / Contact / Politique ---------- */
.legal { max-width: 860px; }
.legal h1.page-h1, .legal h2 { margin-bottom: 10px; }
.legal h3 { margin: 26px 0 8px; color: var(--charcoal); }
.legal p { line-height: 1.72; margin-bottom: 12px; }
.legal ul { margin: 0 0 14px 20px; line-height: 1.7; }
.legal a { color: var(--red); }
.legal .btn { margin-top: 14px; }

/* ══════════════════════════════════════════════════════════════════════════
   MÉGA-MENU « Catalogue » (rangée 2) — ajout 2026-10-07
   Le libellé Catalogue devient un PARENT : au survol (desktop) un panneau
   pleine largeur se déploie sous le header — les 15 catégories à GAUCHE, les
   sous-catégories de la catégorie active à DROITE (modèle PartsAvatar).
   Aucune liste en dur : tout vient de /catalog/categories (js/nav-mega.js).
   ══════════════════════════════════════════════════════════════════════════ */
/* `position: static` est OBLIGATOIRE : le panneau doit se résoudre contre le
   header (sticky = positionné), pas contre ce wrapper, pour s'étendre sous les
   DEUX rangées. Le filet vertical de la rangée 2 est donc porté par le lien. */
.nav-mega { position: static; display: inline-flex; align-items: center; }
.nav-mega > a { position: relative; display: inline-flex; align-items: center;
  gap: 6px; padding: 2px 16px !important;
  box-shadow: inset 0 -2px 0 transparent; }
/* Pont invisible sous le libellé : la souris qui descend vers le panneau
   traverse cet écart de ~23 px sans jamais « sortir » du menu. Sans lui, le
   menu se refermait avant d'atteindre la première catégorie. */
.nav-mega > a::after { content: ""; position: absolute; left: 0; right: 0;
  top: 100%; height: 26px; }
.nav-mega .caret { font-size: .62rem; line-height: 1; opacity: .55; }
#nav-menu .nav-mega:hover > a,
#nav-menu .nav-mega:focus-within > a,
.site-header.nmm-open .nav-mega > a { color: var(--red);
  box-shadow: inset 0 -2px 0 var(--red); }
.nav-mega:hover .caret, .nav-mega:focus-within .caret,
.site-header.nmm-open .nav-mega .caret { opacity: 1; }
/* Le parent est devenu un <div> : les filets `a + a::before` ne matchent plus
   le lien SUIVANT. On rétablit le sien (celui d'avant n'existe pas : Catalogue
   est le premier lien de la rangée). */
#nav-menu > .nav-mega + a:not(.btn)::before { content: ""; position: absolute;
  top: 50%; transform: translateY(-50%); left: 0; width: 1px; height: 16px;
  background: rgba(27,27,27,.22); }

/* Le panneau : pleine largeur, collé sous le header (les DEUX rangées). */
.nmm-panel { display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-top: 3px solid var(--red);
  border-bottom: 1px solid var(--line); box-shadow: 0 18px 34px rgba(0,0,0,.16);
  z-index: 70; max-height: calc(100vh - 130px); overflow-y: auto; }
.site-header.nmm-open .nmm-panel { display: block; }
.nmm-inner { display: grid; grid-template-columns: minmax(270px, 380px) 1fr; }

/* Volet GAUCHE : les catégories (icône + nom + compte). */
.nmm-cats { border-right: 1px solid var(--line); padding: 10px; }
.nmm-cat { border-bottom: 1px solid #f2f2f2; }
.nmm-cat:last-child { border-bottom: 0; }
.nmm-cat-btn { width: 100%; display: flex; align-items: center; gap: 10px;
  font-family: inherit; font-size: .9rem; text-align: left; color: var(--charcoal);
  background: none; border: 0; padding: 10px; border-radius: 9px; cursor: pointer;
  transition: background .15s, color .15s; }
.nmm-cat-btn:hover, .nmm-cat.open > .nmm-cat-btn { background: #fff5f6; color: var(--red); }
.nmm-cat.open > .nmm-cat-btn { font-weight: 600; }
.nmm-cat-name { flex: 1; line-height: 1.25; }
.nmm-empty { padding: 14px; color: var(--grey); font-size: .85rem; }

/* En desktop, la liste vit dans le volet DROIT (le JS y déplace l'UL active) :
   la copie restée dans l'accordéon gauche ne doit donc JAMAIS s'afficher. */
.nmm-cat > .nmm-sub { display: none; }

/* Volet DROIT : les sous-catégories de la catégorie active, en colonnes. */
.nmm-subs { padding: 14px 18px 18px; min-width: 0; }
.nmm-subs-h { margin: 0 0 10px; font-weight: 700; font-size: .95rem; color: var(--charcoal); }
.nmm-subs-h small { color: var(--grey); font-weight: 600; }
.nmm-sub { list-style: none; margin: 0; padding: 0; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 18px; }
.nmm-sub-btn { width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 8px; font-family: inherit; font-size: .86rem; text-align: left; color: #4a4a4a;
  background: none; border: 0; padding: 7px 9px; border-radius: 7px; cursor: pointer;
  transition: background .15s, color .15s; }
.nmm-sub-btn:hover:not(:disabled) { background: #fff5f6; color: var(--red); }
.nmm-sub-btn:disabled { opacity: .45; cursor: not-allowed; }

/* ≤820px : le panneau vit dans le menu hamburger. Le volet DROIT n'existe pas
   (pas de survol au doigt) : chaque catégorie déplie elle-même ses
   sous-catégories — accordéon, un tap pour ouvrir, un tap pour refermer. */
@media (max-width: 820px) {
  .nav-mega { display: block; width: 100%; }
  .nav-mega > a { padding: 11px 0 !important; width: 100%;
    border-bottom: 1px solid rgba(255,255,255,.10); }
  #nav-menu > .nav-mega + a:not(.btn)::before { display: none; }
  /* Replié par défaut : au doigt, un sous-menu qui s'ouvre au survol n'existe
     pas. Le tap sur Catalogue (caret ▾) déplie (.nav-mega.open). */
  .nmm-panel { display: none; position: static; border: 0; box-shadow: none;
    background: transparent; max-height: none; overflow: visible; padding: 0; }
  .nav-mega.open > .nmm-panel { display: block; }
  .nmm-inner { display: block; }
  .nmm-cats { border: 0; padding: 0; }
  .nmm-subs { display: none; }
  .nmm-cat { border-bottom: 1px solid rgba(255,255,255,.06); }
  .nmm-cat-btn { color: #fff; padding: 9px 0; }
  .nav-mega > a .caret { opacity: 1; }
  .nmm-cat-btn:hover, .nmm-cat.open > .nmm-cat-btn { background: transparent; color: #fff; }
  .nmm-cat > .nmm-sub { display: none; padding: 0 0 6px 6px; }
  .nmm-cat.open > .nmm-sub { display: block; }
  .nmm-sub { display: block; }
  .nmm-sub-btn { color: #fff; opacity: .92; padding: 8px 0; }
  .nmm-sub-btn:hover:not(:disabled) { background: transparent; color: var(--red); }
  .nmm-empty { color: #fff; }
}
