/* Cycles Blain — pages catégories de vélos 1.9.29 (1.9.27 + sans le texte d'introduction) (maquette validée le 3 nov. 2026)
   Plus de photo en haut (titre et texte gardés), grande barre Pierre-Louis, Électrique / Musculaire au centre,
   « Je veux être guidé », filtres en colonne sur le côté avec « Peu importe ». */

/* Haut de page du thème (module boncategorytext) : on garde le titre et le texte, sans la photo */
#text-category { margin: 0 auto; }
#text-category ul, #text-category .row { margin: 0 !important; padding: 0 !important; list-style: none; }
#text-category img, #text-category video, #text-category .text-category-video { display: none !important; }
#text-category .category-item { position: static !important; width: 100% !important; max-width: 1240px; margin: 0 auto !important; padding: 18px 24px 0 !important; opacity: 1 !important; visibility: visible !important; animation: none !important; transform: none !important; }
#text-category .text-category-infomation, #text-category .text-category-content { position: static !important; transform: none !important; width: auto !important; max-width: 820px; margin: 0 !important; padding: 0 !important; background: none !important; text-align: left !important; }
#text-category .category-name { margin: 0 0 8px !important; font-family: Montserrat, 'Helvetica Neue', Arial, sans-serif; font-size: clamp(28px, 3vw, 40px) !important; font-weight: 800 !important; line-height: 1.15; color: #1d1d1f !important; text-transform: none !important; }
/* 1.9.29 : le petit texte d'introduction est retiré (le grand texte de la catégorie reste en bas pour Google) */
#text-category p { display: none !important; }
#text-category .text-category-content > p { margin: 0 !important; font-family: Montserrat, 'Helvetica Neue', Arial, sans-serif; font-size: 17px !important; line-height: 1.5 !important; color: #4a5160 !important; }

/* Grande barre de recherche, dans un encadré bleu clair centré */
.cb-recherche-cat { gap: 22px; }
.cb-recherche-cat .cb-r-bloc { align-self: center; width: 100%; max-width: 1040px; box-sizing: border-box; padding: 26px 30px !important; border-radius: 26px; background: #eef3fb; display: flex; flex-direction: column; align-items: center; gap: 14px !important; }
.cb-recherche-cat .cb-r-invite { text-align: center !important; font-size: 24px; }
.cb-recherche-cat .cb-r-form { width: 100%; }
.cb-recherche-cat .cb-r-champ { border: 2.5px solid #0b5cad !important; background: #ffffff; box-shadow: 0 8px 22px rgba(11, 92, 173, .16); }
.cb-recherche-cat .cb-r-champ input { min-height: 68px; font-size: 18px; }
.cb-recherche-cat .cb-r-champ input::placeholder { color: #9aa3b0; opacity: 1; }
.cb-recherche-cat .cb-r-bouton { min-height: 72px; }
.cb-recherche-cat .cb-r-aide { justify-content: center; }
.cb-recherche-cat .cb-r-aide button { background: #ffffff; }

/* Électrique / Musculaire : deux boutons centrés */
.cb-c-moteurs { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.cb-c-moteur { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 230px; height: 58px; border: 2px solid #c9d1dd; border-radius: 30px; background: #ffffff; color: #1d1d1f; font: inherit; font-size: 17px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; cursor: pointer; transition: border-color .15s, background .15s; }
.cb-c-moteur svg { color: #0b5cad; }
.cb-c-moteur:hover { border-color: #0b5cad; }
.cb-c-moteur[aria-pressed="true"] { border-color: #0b5cad; background: #0b5cad; color: #ffffff; box-shadow: 0 6px 16px rgba(11, 92, 173, .25); }
.cb-c-moteur[aria-pressed="true"] svg { color: #ffffff; }
.cb-c-moteur[hidden] { display: none; }

/* Ligne au-dessus des vélos : guide et nombre à gauche, filtres et tri à droite */
.cb-c-ligne { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 0 !important; }
.cb-c-ligne-g, .cb-c-ligne-d { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cb-c-guide { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 22px; border: 2px dashed #9db6dd; border-radius: 25px; background: #eef3fb; color: #0b5cad; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; }
.cb-c-guide:hover, .cb-c-guide[aria-expanded="true"] { border-style: solid; border-color: #0b5cad; }
.cb-c-ligne .cb-r-compte strong { font-size: 20px; }
.cb-c-ligne .cb-r-ouvrir { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border: 1px solid #d6dde8; border-radius: 19px; background: #ffffff; color: #4a5160; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.cb-c-ligne .cb-r-tri select { height: 38px; border: 1px solid #d6dde8; border-radius: 19px; padding: 0 12px; font-size: 14px; font-weight: 600; color: #4a5160; background: #ffffff; }

/* Le guide : une question à la fois */
.cb-r-guide { align-self: center; width: 100%; max-width: 760px; box-sizing: border-box; padding: 18px 22px; border: 1.5px solid #9db6dd; border-radius: 20px; background: #f7f9fd; display: flex; flex-direction: column; gap: 12px; }
.cb-r-guide[hidden] { display: none; }
.cb-g-tete { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cb-g-titre { flex: 1 1 auto; font-size: 16px; font-weight: 800; color: #0b5cad; }
.cb-g-lien, .cb-g-fermer { border: 0; padding: 4px 6px; background: none; font: inherit; font-size: 13px; font-weight: 700; color: #4a5160; cursor: pointer; }
.cb-g-lien { text-decoration: underline; }
.cb-g-question { margin: 0; text-align: center; font-size: 20px; font-weight: 800; color: #1d1d1f; }
.cb-g-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.cb-g-opt { min-height: 46px; padding: 6px 10px; border: 2px solid #d6dde8; border-radius: 14px; background: #ffffff; color: #1d1d1f; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.cb-g-opt:hover { border-color: #0b5cad; color: #0b5cad; }
.cb-g-peu { border-style: dashed; border-color: #a9b4c4; background: transparent; color: #4a5160; }
.cb-g-fin { margin: 0; text-align: center; font-size: 16px; font-weight: 700; color: #1f6b3a; }

/* Vos choix : petites étiquettes */
.cb-c-choix { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cb-c-choix-titre { font-size: 13px; font-weight: 700; color: #4a5160; }
.cb-c-choix:has(.cb-r-cat[hidden]):has(.cb-r-actifs[hidden]):has(.cb-r-cat-remettre[hidden]) { display: none; }
.cb-recherche-cat .cb-r-actifs { display: contents; }
.cb-recherche-cat .cb-r-actifs[hidden] { display: none; }
.cb-recherche-cat .cb-r-actifs button, .cb-recherche-cat .cb-c-choix .cb-r-cat { height: 30px; padding: 0 12px; border: 1px solid #c3d1e8; border-radius: 15px; background: #ffffff; color: #0b5cad; font-size: 13px; font-weight: 700; }

/* Colonne de filtres */
.cb-c-cote { display: flex; flex-direction: column; }
.cb-c-tete { display: flex; align-items: center; gap: 10px; }
.cb-c-tete strong { flex: 1 1 auto; font-size: 18px; font-weight: 800; color: #1d1d1f; }
.cb-c-tete .cb-r-effacer { border: 0; padding: 4px; background: none; font: inherit; font-size: 13px; font-weight: 700; color: #4a5160; text-decoration: underline; cursor: pointer; }
.cb-c-tete .cb-r-fermer { width: 36px; height: 36px; border: 0; border-radius: 18px; background: #f1f3f6; font-size: 20px; line-height: 1; cursor: pointer; }
.cb-c-corps-filtres { display: flex; flex-direction: column; gap: 18px; }
.cb-c-groupe { display: flex; flex-direction: column; gap: 9px; }
.cb-c-groupe[hidden], .cb-r-plus-filtres[hidden] { display: none !important; }
.cb-c-titre { font-size: 12px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: #5a6170; }
.cb-c-puces { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.cb-c-puce, .cb-c-puces .cb-r-types button { height: 34px; padding: 0 13px; border: 1px solid #dde2ea; border-radius: 17px; background: #ffffff; color: #3a4150; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.cb-c-puce:hover { border-color: #0b5cad; }
.cb-c-puce[aria-pressed="true"], .cb-c-puces button[aria-pressed="true"] { border: 1.5px solid #0b5cad; background: #eef3fb; color: #0b5cad; font-weight: 800; }
.cb-c-puce[hidden] { display: none; }
.cb-c-champ { width: 86px; height: 34px; box-sizing: border-box; padding: 0 10px; border: 1px solid #dde2ea; border-radius: 17px; font: inherit; font-size: 13px; }
.cb-c-a { font-size: 13px; color: #5a6170; }
.cb-c-select { height: 38px; padding: 0 10px; border: 1px solid #dde2ea; border-radius: 12px; background: #ffffff; font: inherit; font-size: 14px; }
.cb-c-plus { display: flex; align-items: center; justify-content: center; gap: 6px; height: 42px; border: 1.5px solid #c3d1e8; border-radius: 21px; background: #ffffff; color: #0b5cad; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.cb-r-plus-filtres { display: flex; flex-direction: column; gap: 18px; }
.cb-c-pied { display: none; }

/* Ordinateur et tablette : vélos à gauche, filtres toujours visibles à droite */
/* 1.9.32 — les filtres restent fermés : ils s'ouvrent en colonne à droite seulement au clic sur « Filtres » (vélos toujours visibles) */
@media (min-width: 768px) {
  .cb-c-corps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
  .cb-c-corps:has(> .cb-c-cote:not([hidden])) { grid-template-columns: minmax(0, 1fr) 300px; }
  .cb-c-cote[hidden] { display: none !important; }
  .cb-c-cote:not([hidden]) { display: flex !important; position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow-y: auto; box-sizing: border-box; gap: 18px; padding: 20px; border: 1px solid #e3e8ef; border-radius: 22px; background: #f7f9fc; box-shadow: none; }
  .cb-recherche-cat .cb-r-voile { display: none !important; }
  .cb-c-ligne .cb-r-ouvrir[aria-expanded="true"] { border-color: #0b5cad; background: #eef3fb; color: #0b5cad; }
  .cb-recherche-cat .cb-r-grille { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cb-c-corps:has(> .cb-c-cote:not([hidden])) .cb-r-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 768px) and (max-width: 1100px) {
  .cb-c-corps:has(> .cb-c-cote:not([hidden])) { grid-template-columns: minmax(0, 1fr) 260px; }
  .cb-recherche-cat .cb-r-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cb-c-corps:has(> .cb-c-cote:not([hidden])) .cb-r-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Téléphone : les filtres s'ouvrent par le bas avec le bouton « Filtres » */
@media (max-width: 767px) {
  .cb-recherche-cat .cb-r-bloc { padding: 18px 14px !important; border-radius: 20px; }
  .cb-recherche-cat .cb-r-invite { font-size: 18px; }
  .cb-c-moteur { width: auto; flex: 1 1 0; height: 50px; font-size: 14px; }
  .cb-c-guide { height: 44px; padding: 0 16px; font-size: 15px; }
  .cb-c-ligne-d { width: 100%; justify-content: space-between; }
  .cb-c-cote .cb-c-tete { padding: 14px 18px; border-bottom: 1px solid #e3e8ef; }
  .cb-c-corps-filtres { padding: 16px 18px; overflow-y: auto; }
  .cb-c-pied { display: flex; padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #e3e8ef; }
  .cb-c-pied .cb-r-voir { flex: 1 1 auto; height: 48px; border: 0; border-radius: 24px; background: #0b5cad; color: #ffffff; font: inherit; font-size: 16px; font-weight: 800; }
  .cb-g-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Avec Pierre-Louis 2.0 : sa discussion prend toute la largeur de l’encadré */
.cb-recherche-cat .cb-r-bloc > .pl2b { align-self: stretch; width: 100%; }
