/* Cycles Blain — page « Trouver mon vélo » et pages catégories de vélos (v1.5.0) */
.cb-recherche { --b: #0b5cad; --bf: #0b3f75; --e: #0f1720; --t: #2b3442; --g: #5a6474; --l: #e3e7ee; --f: #f3f5f8; font-family: Montserrat, 'Helvetica Neue', Arial, sans-serif; color: var(--t); max-width: 1280px; margin: 0 auto 60px; display: flex; flex-direction: column; gap: 14px; }
.cb-r-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cb-recherche button:focus-visible, .cb-recherche select:focus-visible, .cb-recherche input:focus-visible { outline: 2px solid var(--b); outline-offset: 2px; }

/* Recherche */
.cb-r-bloc { display: flex; flex-direction: column; gap: 12px; padding: 8px 0 4px; }
.cb-r-titre { margin: 0; font-size: 26px; font-weight: 800; color: var(--e); text-transform: none; line-height: 1.2; }
.cb-r-form { display: flex; gap: 10px; }
.cb-r-champ { flex: 1 1 auto; display: flex; align-items: center; gap: 10px; background: #fff; border: 2px solid #b9cfe8; border-radius: 14px; padding: 0 14px; color: var(--b); }
.cb-r-champ:focus-within { border-color: var(--b); box-shadow: 0 0 0 3px rgba(11, 92, 173, .14); }
.cb-r-champ input { flex: 1 1 auto; min-width: 0; min-height: 54px; border: 0; outline: none !important; background: transparent; font: inherit; font-size: 16px; color: var(--e); }
.cb-r-champ input::placeholder { color: #8a93a2; }
.cb-r-bouton { min-height: 58px; padding: 0 28px; border: 0; border-radius: 14px; background: var(--b); color: #fff; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; }
.cb-r-bouton:hover { background: var(--bf); }
.cb-r-aide { margin: 0; font-size: 13px; color: var(--g); }
.cb-r-aide button { border: 0; padding: 0; background: none; font: inherit; color: var(--bf); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

/* Barre : types + bouton Filtres */
.cb-r-barre { display: flex; align-items: center; gap: 10px; }
.cb-r-types { display: flex; flex-wrap: wrap; gap: 8px; }
.cb-r-types-barre { flex: 1 1 auto; }
.cb-r-types button, .cb-r-dispo button { border-radius: 999px; padding: 8px 15px; border: 1px solid #c9d1dc; background: #fff; color: var(--e); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.cb-r-types button:hover, .cb-r-dispo button:hover { border-color: var(--e); }
.cb-r-types button[aria-pressed="true"], .cb-r-dispo button[aria-pressed="true"] { background: var(--e); border-color: var(--e); color: #fff; }
.cb-r-ouvrir { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 8px 16px; border: 1px solid var(--e); background: #fff; color: var(--e); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.cb-r-ouvrir[aria-expanded="true"] { background: var(--f); }
.cb-r-nb { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--b); color: #fff; font-size: 12px; }
.cb-r-nb[hidden] { display: none; }

/* Filtres actifs (téléphone) */
.cb-r-actifs { display: none; }
.cb-r-actifs button { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 6px 10px; background: #e8f1fb; color: var(--bf); font: inherit; font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.cb-r-actifs button::after { content: "×"; font-size: 16px; line-height: 1; }

/* Panneau des filtres : déroulant sous la barre sur ordinateur */
.cb-r-voile { display: none; }
.cb-r-panneau { border: 1px solid var(--l); border-radius: 16px; background: #fff; padding: 18px 20px; box-shadow: 0 10px 30px rgba(15, 23, 32, .07); }
.cb-r-panneau[hidden] { display: none; }
.cb-r-p-tete { display: none; }
.cb-r-p-corps { display: flex; flex-wrap: wrap; gap: 18px 28px; }
.cb-r-g-types { display: none; }
.cb-r-groupe { display: flex; flex-direction: column; gap: 8px; }
.cb-r-g-titre { margin: 0; font-size: 13px; font-weight: 700; color: var(--g); }
.cb-r-segment { display: inline-flex; background: var(--f); border-radius: 999px; padding: 4px; }
.cb-r-segment button { border: 0; border-radius: 999px; padding: 7px 14px; background: transparent; color: var(--t); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.cb-r-segment button[aria-pressed="true"] { background: var(--e); color: #fff; }
.cb-r-dispo { display: flex; gap: 8px; }
.cb-r-saisie { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--g); }
.cb-r-saisie input { width: 92px; min-height: 40px; padding: 6px 10px; border: 1px solid #c9d1dc; border-radius: 10px; font: inherit; font-size: 15px; font-weight: 700; color: var(--e); }
.cb-r-groupe select { min-height: 40px; min-width: 190px; padding: 6px 10px; border: 1px solid #c9d1dc; border-radius: 10px; background: #fff; font: inherit; font-size: 14px; font-weight: 700; color: var(--e); }
.cb-r-p-pied { display: flex; justify-content: flex-end; align-items: center; gap: 16px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--l); }
.cb-r-effacer { border: 0; background: none; padding: 0; font: inherit; font-size: 14px; font-weight: 700; color: var(--g); text-decoration: underline; cursor: pointer; }
.cb-r-voir { min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--b); color: #fff; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }

/* Résultats */
.cb-r-entete { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 4px; font-size: 15px; }
.cb-r-entete strong { font-size: 18px; color: var(--e); }
.cb-r-tri { margin: 0; }
.cb-r-tri select { border: 1px solid #c9d1dc; border-radius: 999px; padding: 6px 12px; background: #fff; font: inherit; font-size: 14px; font-weight: 700; color: var(--e); }
.cb-r-avis { padding: 10px 14px; border-radius: 12px; background: #fff8e6; color: #5c4600; font-size: 14px; }
.cb-r-avis[hidden] { display: none; }
.cb-r-grille { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.cb-r-carte { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid var(--l); border-radius: 16px; background: #fff; color: var(--e); text-decoration: none; transition: box-shadow .15s, border-color .15s; }
.cb-r-carte:hover { border-color: #9fc1e6; box-shadow: 0 8px 24px rgba(15, 23, 32, .08); text-decoration: none; color: var(--e); }
.cb-r-visuel { position: relative; height: 190px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 12px; background: #fff; }
.cb-r-visuel img { width: 100%; height: 100%; object-fit: contain; }
.cb-r-badge { position: absolute; left: 8px; top: 8px; font-size: 11px; font-weight: 800; padding: 5px 9px; border-radius: 999px; }
.cb-r-badge.stock { background: #e7f6ec; color: #145c2e; }
.cb-r-badge.arrivage { background: #e8f1fb; color: #0b3f75; }
.cb-r-remise { position: absolute; right: 8px; top: 8px; font-size: 12px; font-weight: 800; padding: 5px 9px; border-radius: 999px; background: #c62828; color: #fff; }
.cb-r-marque { font-size: 11px; font-weight: 800; letter-spacing: .5px; color: var(--g); }
.cb-r-nom { font-size: 15px; font-weight: 800; line-height: 1.25; }
.cb-r-bref { font-size: 12px; color: var(--g); }
.cb-r-prix { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.cb-r-prix strong { font-size: 18px; font-weight: 800; color: var(--b); }
.cb-r-carte.promo .cb-r-prix strong { color: #c62828; }
.cb-r-prix s { font-size: 13px; color: #6b7686; }
.cb-r-cofidis { font-size: 12px; font-weight: 700; color: #8a5a00; }
.cb-r-tailles { display: flex; flex-wrap: wrap; gap: 4px; }
.cb-r-tailles span { font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 6px; border: 1px solid #c9d1dc; }
.cb-r-plus { align-self: center; min-height: 48px; padding: 0 24px; border: 2px solid var(--b); border-radius: 999px; background: #fff; color: var(--b); font: inherit; font-weight: 800; cursor: pointer; }
.cb-r-plus[hidden] { display: none; }
@media (max-width: 991px) { .cb-r-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Téléphone : recherche, un bouton Filtres, puis les vélos */
@media (max-width: 767px) {
  .cb-recherche { gap: 10px; }
  .cb-r-bloc { gap: 8px; padding-top: 0; }
  .cb-r-titre { font-size: 20px; }
  .cb-r-form { gap: 8px; }
  .cb-r-champ { border-radius: 12px; padding: 0 10px; }
  .cb-r-champ input { min-height: 48px; }
  .cb-r-bouton { min-height: 52px; padding: 0 16px; border-radius: 12px; font-size: 15px; }
  .cb-r-aide { font-size: 12px; }
  .cb-r-types-barre { display: none; }
  .cb-r-barre { justify-content: flex-start; }
  .cb-r-ouvrir { padding: 9px 16px; }
  .cb-r-actifs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .cb-r-actifs[hidden] { display: none; }
  .cb-r-voile { display: block; position: fixed; inset: 0; z-index: 9998; background: rgba(15, 23, 32, .45); }
  .cb-r-voile[hidden] { display: none; }
  .cb-r-panneau { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999; max-height: 85vh; display: flex; flex-direction: column; padding: 0; border: 0; border-radius: 18px 18px 0 0; box-shadow: 0 -8px 30px rgba(15, 23, 32, .2); }
  .cb-r-panneau[hidden] { display: none; }
  .cb-r-p-tete { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--l); font-size: 17px; color: var(--e); }
  .cb-r-fermer { border: 0; background: none; font-size: 28px; line-height: 1; color: var(--e); cursor: pointer; padding: 0 4px; }
  .cb-r-p-corps { flex-direction: column; flex-wrap: nowrap; gap: 20px; padding: 16px 18px; overflow-y: auto; }
  .cb-r-g-types { display: flex; }
  .cb-r-groupe select { width: 100%; }
  .cb-r-p-pied { margin: 0; padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px)); justify-content: space-between; }
  .cb-r-voir { flex: 1 1 auto; max-width: 240px; }
  .cb-r-entete strong { font-size: 16px; }
  .cb-r-tri select { font-size: 13px; padding: 5px 10px; }
  .cb-r-grille { gap: 10px; }
  .cb-r-visuel { height: 130px; }
  .cb-r-nom { font-size: 13px; }
}
body.cb-r-bloque { overflow: hidden; }

/* v1.5.0 — pages catégories de vélos */
.cb-recherche [hidden] { display: none !important; }
.cb-categorie { max-width: 1280px; margin: 0 auto; }
.cb-recherche-cat .cb-r-bloc { padding-top: 4px; }
.cb-recherche-cat .cb-r-titre { font-size: 28px; }
.cb-r-avis .cb-r-lien { margin-left: 4px; font-weight: 700; color: #0b3f75; text-decoration: underline; }
.cb-r-description { max-width: 900px; margin: 8px auto 60px; padding-top: 24px; border-top: 1px solid #e3e7ee; font-size: 14px; line-height: 1.6; color: #4a5565; }
.cb-r-description h2, .cb-r-description h3 { font-size: 18px; color: #0f1720; text-transform: none; }
@media (max-width: 767px) {
  .cb-recherche-cat .cb-r-titre { font-size: 21px; }
  .cb-r-description { margin-bottom: 40px; font-size: 13px; }
}

/* v1.6.0 — moteur et batterie, équipements, IA */
.cb-r-selects { display: flex; flex-wrap: wrap; gap: 8px; }
.cb-r-selects select { min-height: 40px; padding: 6px 10px; border: 1px solid #c9d1dc; border-radius: 10px; background: #fff; font: inherit; font-size: 14px; font-weight: 700; color: #0f1720; }
.cb-r-equip { flex-wrap: wrap; }
.cb-r-tech { font-size: 12px; font-weight: 700; color: #0b3f75; }
.cb-r-ia { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: #eef5fd; color: #0b3f75; font-size: 14px; font-weight: 600; }
.cb-r-ia-point { width: 10px; height: 10px; border-radius: 50%; background: #0b5cad; animation: cb-r-pulse 1s ease-in-out infinite; }
@keyframes cb-r-pulse { 0%, 100% { opacity: .3; transform: scale(.8); } 50% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .cb-r-ia-point { animation: none; } }
.cb-r-conseil { margin: 0; padding: 10px 14px; border-radius: 12px; background: #f3f5f8; color: #4a5565; font-size: 13px; }
@media (max-width: 767px) { .cb-r-selects select { flex: 1 1 100%; } }

/* v1.9.5 : liste des vélos envoyée dans la page (Google, et affichage le temps que la recherche se charge) */
.cb-r-grille > .cb-r-seo { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid #e3e7ee; border-radius: 14px; background: #ffffff; color: #0f1720; text-decoration: none; }
.cb-r-grille > .cb-r-seo:hover { border-color: #0b5cad; }
.cb-r-grille > .cb-r-seo img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; }
.cb-r-seo-nom { font-size: 15px; font-weight: 700; line-height: 1.3; }
.cb-r-seo-prix { font-size: 15px; font-weight: 800; color: #0b5cad; }

/* ===== 1.9.8 — vélos reconditionnés dans la liste ===== */
.cb-r-carte.occasion { border: 2px solid #e8c45c; background: #fffaf0; }
.cb-r-carte.occasion:hover { border-color: #d9ad2f; }
.cb-r-carte.occasion .cb-r-badge.stock { background: #ffffff; color: #6b4a00; }
.cb-r-occ { position: absolute; right: 8px; top: 8px; padding: 5px 9px; border-radius: 999px; background: #fdf0c4; color: #6b4a00; font-size: 11px; font-weight: 800; }
.cb-r-neuf { display: block; width: 100%; font-size: 12px; font-weight: 600; color: #6b5a2e; }
.cb-r-neuf s { color: inherit; }

/* ===== 1.9.10 — pages catégories : le bandeau du thème suffit ; juste dessous, la grande recherche ===== */
.cb-categorie { display: flex; flex-direction: column; gap: 18px; padding-top: 8px; }
/* Occasions : la garantie, en une ligne discrète */
.cb-occ-garantie { display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 16px; border-radius: 14px; background: #eef7f1; color: #145c2e; font-family: Montserrat, 'Helvetica Neue', Arial, sans-serif; font-size: 14px; line-height: 1.5; }
.cb-occ-garantie svg { flex: 0 0 auto; }
.cb-occ-garantie strong { font-weight: 800; }

/* Grande recherche, juste sous le haut de page */
.cb-recherche-cat .cb-r-bloc { gap: 10px; padding: 0; }
.cb-r-invite { display: block; width: 100%; text-align: left !important; margin: 0; font-size: 20px; font-weight: 800; color: #0f1720; }
.cb-recherche-cat .cb-r-champ { border-width: 2px; border-color: #9fc1e6; border-radius: 18px; padding: 0 18px; }
.cb-recherche-cat .cb-r-champ input { min-height: 64px; font-size: 18px; }
.cb-recherche-cat .cb-r-bouton { min-height: 68px; padding: 0 34px; border-radius: 18px; font-size: 17px; }
.cb-r-aide { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cb-r-aide-titre { font-size: 13px; color: var(--g); }
.cb-r-aide button { padding: 6px 12px; border: 1px solid #d7e3f1; border-radius: 999px; background: #f5f9fe; color: var(--bf); font-size: 13px; font-weight: 600; text-decoration: none; }
.cb-r-aide button:hover { border-color: var(--b); background: #eaf2fb; }

/* Filtres discrets : une rangée légère, le reste dans « Plus de filtres » */
.cb-r-barre { align-items: flex-start; }
.cb-r-rapides { flex: 1 1 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.cb-r-rapides .cb-r-types-barre { flex: 0 1 auto; display: contents; }
.cb-r-rapides .cb-r-types button, .cb-r-rapide { padding: 6px 13px; border: 1px solid #dfe3ea; border-radius: 999px; background: #ffffff; color: #3a4452; font: inherit; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.cb-r-rapides .cb-r-types button:hover, .cb-r-rapide:hover { border-color: #9aa4b2; color: #0f1720; }
.cb-r-rapides .cb-r-types button[aria-pressed="true"], .cb-r-rapide[aria-pressed="true"] { background: #0f1720; border-color: #0f1720; color: #ffffff; }
.cb-r-rapides .cb-r-types button[hidden], .cb-r-rapide[hidden] { display: none; }
.cb-r-cat { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 13px; border: 0; border-radius: 999px; background: #e8f1fb; color: #0b3f75; font: inherit; font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.cb-r-cat::after { content: "×"; font-size: 17px; line-height: 1; }
.cb-r-cat:hover { background: #d7e7f8; }
.cb-categorie-occasions .cb-r-cat { background: #fdf0c4; color: #6b4a00; }
.cb-r-cat-remettre { padding: 6px 13px; border: 1px dashed #9fc1e6; border-radius: 999px; background: #ffffff; color: #0b3f75; font: inherit; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.cb-r-ouvrir { padding: 6px 14px; border-color: #c9d1dc; font-size: 13px; font-weight: 700; }
.cb-r-avis button.cb-r-lien { border: 0; padding: 0; background: none; font: inherit; font-weight: 700; color: #0b3f75; text-decoration: underline; cursor: pointer; }

@media (max-width: 767px) {
  .cb-categorie { gap: 14px; }
  .cb-occ-garantie { align-items: flex-start; padding: 10px 12px; font-size: 13px; }
  .cb-recherche-cat { margin-top: 0; }
  .cb-r-invite { font-size: 17px; }
  .cb-recherche-cat .cb-r-form { flex-direction: column; }
  .cb-recherche-cat .cb-r-champ { border-radius: 14px; padding: 0 12px; }
  .cb-recherche-cat .cb-r-champ input { min-height: 54px; font-size: 16px; }
  .cb-recherche-cat .cb-r-bouton { min-height: 52px; border-radius: 14px; font-size: 16px; }
  .cb-r-aide { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .cb-r-aide button { white-space: nowrap; font-size: 12px; }
  .cb-r-barre { flex-direction: column; align-items: stretch; gap: 8px; }
  .cb-r-rapides { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .cb-r-rapides::-webkit-scrollbar, .cb-r-aide::-webkit-scrollbar { display: none; }
  .cb-r-ouvrir { align-self: flex-start; }
  .cb-r-rapides .cb-r-types-barre { display: none; }
}

/* ===== 1.9.12 — cartes harmonisées avec les vignettes du thème ===== */
.cb-r-visuel { border-radius: 14px; }
.cb-r-carte.occasion { border: 3px solid #f2c94c; border-radius: 20px; background: #ffffff; }
.cb-r-carte.occasion:hover { border-color: #e0b52c; }
.cb-r-occ { left: 0; right: auto; top: 0; padding: 6px 11px; border-radius: 0 0 12px 0; background: #f2c94c; color: #3d2b00; }
.cb-r-carte.occasion .cb-r-badge { top: auto; bottom: 8px; }
