/* Cycles Blain — 1.9.75 : pages de besoin accessoires (maquette « Me protéger » / « Casques » validée le 20/11/2026).
   Bandeau photo + recherche, boutons de sous-catégories avec picto, barre de filtres, marque sur les cartes. Police : Montserrat (celle du site). */
.cbb { --cbb-noir: #1E1E1E; --cbb-bleu: #0F4C9C; --cbb-trait: #E7E1D8; --cbb-ligne: #EEEAE4; --cbb-beige: #F6EFE4; --cbb-brun: #8A4B22; --cbb-gris: #555555; gap: 20px; }

/* ===== Bandeau photo ===== */
.cbb .cbb-hero { position: relative; height: 250px; border-radius: 24px; overflow: hidden; background-color: #3A2A1E;
  background-image: var(--cbb-pc); background-position: var(--cbb-pos, center 50%); background-size: var(--cbb-taille, cover); background-repeat: no-repeat; }
.cbb .cbb-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 14, 10, .55) 0%, rgba(20, 14, 10, .10) 45%, rgba(20, 14, 10, .30) 100%); }
.cbb .cbb-hero-in { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; padding: 30px 40px 28px; }
.cbb .cbb-hero-txt { display: flex; flex-direction: column; gap: 4px; }
.cb-acc.cbb .cbb-hero .cbb-titre { margin: 0; font: 800 52px/1.05 Montserrat, "Helvetica Neue", Arial, sans-serif; color: #FFFFFF; letter-spacing: -0.5px; text-transform: none; text-shadow: 0 1px 12px rgba(20, 14, 10, .25); }
.cbb .cbb-phrase { margin: 0; font: 600 17px/1.35 Montserrat, "Helvetica Neue", Arial, sans-serif; color: #F5EEE6; }
.cbb .cbb-cherche { display: flex; gap: 10px; width: 100%; max-width: 520px; margin: 0; }
.cbb .cbb-champ { flex: 1 1 auto; min-width: 0; height: 60px; display: flex; align-items: center; gap: 12px; padding: 0 18px; border-radius: 16px; background: #FFFFFF;
  box-shadow: 0 6px 20px rgba(58, 36, 22, .18); color: #1C56AE; }
.cbb .cbb-champ:focus-within { box-shadow: 0 6px 20px rgba(58, 36, 22, .18), 0 0 0 3px rgba(255, 255, 255, .7); }
.cbb .cbb-champ svg { flex: none; }
.cbb .cbb-champ input { flex: 1 1 auto; min-width: 0; height: 100%; padding: 0; margin: 0; border: 0; outline: 0; background: transparent; box-shadow: none;
  font: 500 16px Montserrat, "Helvetica Neue", Arial, sans-serif; color: var(--cbb-noir); -webkit-appearance: none; appearance: none; }
.cbb .cbb-champ input::placeholder { color: #8d8780; opacity: 1; }
.cbb .cbb-champ input::-webkit-search-cancel-button { -webkit-appearance: none; }
.cbb .cbb-bouton { flex: none; height: 60px; padding: 0 30px; border: 0; border-radius: 16px; background: var(--cbb-bleu); color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(58, 36, 22, .18); font: 700 16px Montserrat, "Helvetica Neue", Arial, sans-serif; cursor: pointer; }
.cbb .cbb-bouton:hover { background: #0A3570; }
.cbb .cbb-bouton:focus-visible, .cbb .cbb-cat:focus-visible, .cbb .cbb-f:focus-visible, .cbb .cbb-voir:focus-visible { outline: 3px solid #1C56AE; outline-offset: 2px; }

/* ===== Boutons de sous-catégories (une seule ligne) ===== */
.cbb .cbb-cats { display: flex; flex-wrap: nowrap; gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.cbb .cbb-cats::-webkit-scrollbar { display: none; }
.cbb .cbb-cat { flex: none; display: inline-flex; align-items: center; gap: 10px; min-height: 58px; padding: 8px 16px 8px 8px; border-radius: 16px; border: 1.5px solid var(--cbb-trait);
  background: #FFFFFF; color: var(--cbb-noir); font: 700 16px Montserrat, "Helvetica Neue", Arial, sans-serif; white-space: nowrap; text-decoration: none; transition: border-color .15s, background .15s; }
.cbb .cbb-cat:not(:has(.cbb-picto)) { padding-left: 18px; padding-right: 18px; }
.cbb .cbb-cat:hover { border-color: #cfc5b8; color: var(--cbb-noir); text-decoration: none; }
.cbb .cbb-picto { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--cbb-beige); color: var(--cbb-brun); display: flex; align-items: center; justify-content: center; }
.cbb .cbb-picto svg { width: 22px; height: 22px; }
.cbb .cbb-picto svg * { stroke: currentColor; }
.cbb .cbb-cat.actif, .cbb .cbb-cat.actif:hover { border-color: var(--cbb-noir); background: var(--cbb-noir); color: #FFFFFF; }
.cbb .cbb-cat.actif .cbb-picto { background: rgba(255, 255, 255, .14); color: #FFFFFF; }

/* ===== Barre de filtres ===== */
.cbb .cbb-filtres { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--cbb-ligne); border-bottom: 1px solid var(--cbb-ligne); flex-wrap: wrap; }
.cbb .cbb-f-gauche, .cbb .cbb-f-droite { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cbb .cbb-f-droite { gap: 14px; }
.cbb .cbb-f { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--cbb-trait); background: #FFFFFF; color: var(--cbb-noir);
  font: 600 14px Montserrat, "Helvetica Neue", Arial, sans-serif; white-space: nowrap; cursor: pointer; }
.cbb .cbb-f:hover { border-color: #cfc5b8; }
.cbb .cbb-f.actif, .cbb .cbb-f-marque { border: 2px solid var(--cbb-noir); padding: 0 13.5px; }
.cbb .cbb-f-marque { font-weight: 800; }
.cbb .cbb-f[aria-expanded="true"] { background: #FBF8F3; }
.cbb .cbb-v { font-size: 12px; line-height: 1; }
.cbb .cbb-pastille { padding: 2px 8px; border-radius: 999px; background: var(--cbb-beige); color: #6B3A1A; font: 800 12px Montserrat, "Helvetica Neue", Arial, sans-serif; }
.cbb .cbb-f-marque .cbb-pastille { text-transform: uppercase; letter-spacing: .5px; }
.cbb .cbb-nb { font: 600 14px Montserrat, "Helvetica Neue", Arial, sans-serif; color: var(--cbb-gris); white-space: nowrap; }
.cbb .cbb-effacer { border: 0; background: none; padding: 0 4px; color: var(--cbb-bleu); font: 600 13px Montserrat, "Helvetica Neue", Arial, sans-serif; text-decoration: underline; cursor: pointer; white-space: nowrap; }

/* Fenêtres des filtres */
.cbb .cbb-pop { position: absolute; top: 56px; left: 0; z-index: 30; width: 340px; max-width: calc(100vw - 32px); padding: 18px; border-radius: 18px; background: #FFFFFF; border: 1.5px solid #EDE6DC;
  box-shadow: 0 16px 40px rgba(58, 36, 22, .16); display: flex; flex-direction: column; gap: 14px; font-family: Montserrat, "Helvetica Neue", Arial, sans-serif; }
.cbb .cbb-pop[hidden] { display: none; }
.cbb .cbb-pop-marque { width: 480px; }
.cbb .cbb-pop-tete { display: none; align-items: center; justify-content: space-between; }
.cbb .cbb-pop-tete strong { font-size: 17px; font-weight: 800; }
.cbb .cbb-fermer { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #F3EFE9; color: var(--cbb-noir); font-size: 22px; line-height: 1; cursor: pointer; }
.cbb .cbb-marques { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-height: 340px; overflow-y: auto; padding: 2px; }
.cbb .cbb-marque-choix { width: 100%; height: 60px; display: flex; align-items: center; justify-content: center; padding: 0 10px; border-radius: 14px; border: 1.5px solid var(--cbb-trait); background: #FFFFFF;
  color: #111111; font: 800 15px Montserrat, "Helvetica Neue", Arial, sans-serif; letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer; overflow: hidden; }
.cbb .cbb-marque-choix span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cbb .cbb-marque-choix img { display: block; height: 24px; width: auto; max-width: 100%; object-fit: contain; }
.cbb .cbb-marque-choix:hover { border-color: #cfc5b8; }
.cbb .cbb-marque-choix[aria-pressed="true"] { border: 2px solid var(--cbb-noir); padding: 0 9.5px; box-shadow: inset 0 0 0 1px var(--cbb-noir); }
.cbb .cbb-pop-pied { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cbb .cbb-pop-pied > span { font: 600 13px Montserrat, "Helvetica Neue", Arial, sans-serif; color: var(--cbb-gris); }
.cbb .cbb-voir { flex: none; height: 40px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--cbb-noir); color: #FFFFFF; font: 700 14px Montserrat, "Helvetica Neue", Arial, sans-serif; cursor: pointer; white-space: nowrap; }
.cbb .cbb-voir:hover { background: #000000; }
.cbb .cbb-tailles { display: flex; flex-wrap: wrap; gap: 8px; max-height: 300px; overflow-y: auto; padding: 2px; }
.cbb .cbb-taille-choix { min-width: 52px; height: 44px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--cbb-trait); background: #FFFFFF; color: var(--cbb-noir); font: 700 14px Montserrat, "Helvetica Neue", Arial, sans-serif; cursor: pointer; }
.cbb .cbb-taille-choix[aria-pressed="true"] { border: 2px solid var(--cbb-noir); padding: 0 13.5px; }
.cbb .cbb-prix { display: flex; gap: 12px; }
.cbb .cbb-prix label { flex: 1 1 0; display: flex; align-items: center; gap: 8px; margin: 0; font: 600 14px Montserrat, "Helvetica Neue", Arial, sans-serif; color: var(--cbb-gris); }
.cbb .cbb-prix input { width: 100%; min-width: 0; height: 44px; padding: 0 12px; border: 1.5px solid var(--cbb-trait); border-radius: 12px; background: #FFFFFF; font: 600 15px Montserrat, "Helvetica Neue", Arial, sans-serif; color: var(--cbb-noir); box-shadow: none; }
.cbb .cbb-prix input:focus { outline: 0; border-color: var(--cbb-noir); }
.cbb .cbb-dispo { display: flex; align-items: center; gap: 10px; margin: 0; font: 700 15px Montserrat, "Helvetica Neue", Arial, sans-serif; color: var(--cbb-noir); cursor: pointer; }
.cbb .cbb-dispo input { width: 20px; height: 20px; accent-color: var(--cbb-noir); margin: 0; }
.cbb .cbb-dispo small { font-weight: 600; color: var(--cbb-gris); }
.cbb .cbb-pop-tri { width: 240px; gap: 4px; padding: 10px; }
.cbb .cbb-tri { display: block; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: none; text-align: left; font: 600 14px Montserrat, "Helvetica Neue", Arial, sans-serif; color: var(--cbb-noir); cursor: pointer; }
.cbb .cbb-tri:hover { background: #F6F2EC; }
.cbb .cbb-tri.actif { font-weight: 800; background: var(--cbb-beige); }
.cbb-voile { position: fixed; inset: 0; z-index: 1040; background: rgba(20, 14, 10, .35); }
.cbb-voile[hidden] { display: none; }

/* ===== Cartes : la marque au-dessus du nom ===== */
.cb-acc .cbb-marque { margin-bottom: -6px; font: 800 11px/1.2 Montserrat, "Helvetica Neue", Arial, sans-serif; letter-spacing: 1.2px; text-transform: uppercase; color: #6B5A4A; }

/* ===== Téléphone ===== */
@media (max-width: 767px) {
  .cbb { gap: 16px; }
  .cbb .cbb-hero { height: 190px; border-radius: 20px; background-image: var(--cbb-tel); background-position: var(--cbb-pos-tel, center 50%); background-size: var(--cbb-taille-tel, cover); }
  .cbb .cbb-hero-in { padding: 18px 16px 16px; }
  .cb-acc.cbb .cbb-hero .cbb-titre { font-size: 32px; }
  .cbb .cbb-phrase { font-size: 13px; }
  .cb-acc.cbb .cbb-cherche { flex-direction: row; max-width: none; gap: 8px; }
  .cbb .cbb-champ { height: 50px; padding: 0 14px; gap: 10px; }
  .cbb .cbb-champ input { font-size: 16px; }   /* 16 px : pas de zoom automatique sur iPhone */
  .cbb .cbb-bouton { height: 50px; padding: 0 16px; }
  .cbb .cbb-cats { gap: 10px; margin: 0 -12px; padding: 2px 12px 4px; }
  .cbb .cbb-cat { min-height: 48px; padding: 6px 14px 6px 6px; font-size: 14px; }
  .cbb .cbb-picto { width: 34px; height: 34px; }
  .cbb .cbb-picto svg { width: 20px; height: 20px; }
  .cbb .cbb-filtres { flex-wrap: nowrap; justify-content: flex-start; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -12px; padding: 10px 12px; border-top: 0; }
  .cbb .cbb-filtres::-webkit-scrollbar { display: none; }
  .cbb .cbb-f-gauche, .cbb .cbb-f-droite { flex-wrap: nowrap; gap: 8px; }
  .cbb .cbb-nb, .cbb .cbb-tri-val { display: none; }
  .cbb .cbb-pop, .cbb .cbb-pop-marque, .cbb .cbb-pop-tri { position: fixed; top: auto; left: 0 !important; right: 0; bottom: 0; z-index: 1050; width: auto; max-width: none; max-height: 80vh; overflow-y: auto;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; border: 0; }
  .cbb .cbb-pop-tete { display: flex; }
  .cbb .cbb-marques { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 50vh; }
  .cbb .cbb-voir { height: 48px; padding: 0 22px; font-size: 15px; }
}
