/* Cycles Blain — pages VTC électrique (catégorie 27) et VTC (catégorie 16), cbvitrine 2.3.3 — maquette validée le 27 nov. 2026.
   Charte v1.1 : couleurs des tokens seulement (noir, blanc, fonds, gris, tomette pour le seul bouton principal), Inter Tight + Inter.
   Chargée seulement sur ces pages, quand leur case est cochée ou en aperçu (?cbv_on=1).
   La liste des vélos, les filtres et Pierre-Louis gardent leur style : on ne fait que le bandeau du haut et les blocs du bas. */

body.cbvt-on #wrapper { background-color: var(--cb-fond, #FBFBFA) !important; }

/* ---------- Bandeau : grande photo, carte blanche à gauche (comme la page Gravel) ---------- */
body.cbvt-on #cb-recherche .cb-r-bloc { min-height: 480px; padding: 56px 0 46px !important; justify-content: flex-start; }
body.cbvt-on #cb-recherche .cb-r-bloc::before {
  background-color: var(--cb-gris, #E4E4E2);
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 110px), rgba(0, 0, 0, .35) calc(100% - 40px), transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 110px), rgba(0, 0, 0, .35) calc(100% - 40px), transparent 100%);
}
body.cbvt-on .cbvt-carte {
  align-self: flex-start; box-sizing: border-box; width: min(520px, 100%); margin: 0 0 34px;
  display: flex; flex-direction: column; gap: 14px;
  padding: 28px 32px; border-radius: var(--cb-rayon-bouton, 8px); background: var(--cb-blanc, #FFFFFF);
  box-shadow: var(--cb-ombre-panneau, 0 24px 48px rgba(17, 17, 17, .14));
  font-family: var(--cb-police-texte, Inter, Arial, sans-serif); text-align: left; color: var(--cb-noir, #111111);
}
body.cbvt-on .cbvt-ariane ol { display: flex; flex-wrap: wrap; gap: 0 6px; margin: 0; padding: 0; list-style: none; font-size: 13px; line-height: 1.4; color: var(--cb-texte-3, #5C5C5C); }
body.cbvt-on .cbvt-ariane li + li::before { content: "›"; margin-right: 6px; }
body.cbvt-on .cbvt-ariane a { color: var(--cb-texte-3, #5C5C5C); text-decoration: none; }
body.cbvt-on .cbvt-ariane a:hover { color: var(--cb-tomette, #B5523B); text-decoration: underline; }
body.cbvt-on .cbvt-h1 {
  margin: 0; padding: 0; font-family: var(--cb-police-titre, 'Inter Tight', Arial, sans-serif); font-size: 44px; font-weight: 500; line-height: 1.05;
  letter-spacing: -.02em; text-transform: none; color: var(--cb-noir, #111111);
}
body.cbvt-on .cbvt-intro { margin: 0; font-size: 16px; line-height: 1.6; color: var(--cb-texte-2, #3A3A3A); }

/* ---------- Blocs sous les vélos ---------- */
.cbvt { font-family: var(--cb-police-texte, Inter, Arial, sans-serif); font-size: 16px; line-height: 1.6; color: var(--cb-noir, #111111); margin: 48px 0 48px; display: flex; flex-direction: column; gap: 96px; }
.cbvt *, .cbvt *::before, .cbvt *::after { box-sizing: border-box; }
.cbvt p, .cbvt h2, .cbvt figure { margin: 0; }
.cbvt .cbvt-h2 { font-family: var(--cb-police-titre, 'Inter Tight', Arial, sans-serif); font-size: 32px; font-weight: 500; line-height: 1.1; letter-spacing: -.02em; text-transform: none; color: var(--cb-noir, #111111); margin: 0 0 8px; }
.cbvt a { color: var(--cb-noir, #111111); }
.cbvt a:hover { color: var(--cb-tomette, #B5523B); }

/* Bien choisir : questions à gauche, photo à droite */
.cbvt-choisir { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.cbvt-faq { flex: 3 1 560px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cbvt-q { border-bottom: 1px solid var(--cb-filet, #DADAD7); padding: 18px 0; }
.cbvt-q:last-child { border-bottom: 0; }
.cbvt-q summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; cursor: pointer; list-style: none; font-family: var(--cb-police-titre, 'Inter Tight', Arial, sans-serif); font-size: 19px; font-weight: 500; line-height: 1.3; color: var(--cb-noir, #111111); }
.cbvt-q summary::-webkit-details-marker { display: none; }
.cbvt-q summary:focus-visible { outline: 2px solid var(--cb-noir, #111111); outline-offset: 2px; }
.cbvt-plus { position: relative; flex: 0 0 24px; width: 24px; height: 24px; transition: transform .2s var(--cb-anim, ease); }
.cbvt-plus::before, .cbvt-plus::after { content: ""; position: absolute; top: 50%; left: 50%; width: 14px; height: 1.6px; margin: -.8px 0 0 -7px; background: var(--cb-noir, #111111); }
.cbvt-plus::after { transform: rotate(90deg); }
.cbvt-q[open] .cbvt-plus { transform: rotate(45deg); }
.cbvt .cbvt-r { margin: 8px 0 0; max-width: 760px; font-size: 16px; line-height: 1.6; color: var(--cb-texte-2, #3A3A3A); }
.cbvt-r a { text-decoration: underline; text-underline-offset: 2px; }
.cbvt-photo { flex: 2 1 360px; display: flex; flex-direction: column; gap: 10px; }
.cbvt-photo img { display: block; width: 100%; height: 460px; object-fit: cover; border-radius: var(--cb-rayon-photo, 4px); }
.cbvt-photo figcaption { font-size: 14px; color: var(--cb-texte-3, #5C5C5C); }

/* Aller plus loin : 3 liens, le premier avec photo, les autres avec une icône au trait */
.cbvt-loin { display: flex; flex-direction: column; gap: 20px; }
.cbvt .cbvt-loin .cbvt-h2 { font-size: 28px; margin: 0; }
.cbvt-loin-grille { display: flex; flex-wrap: wrap; gap: 32px; }
.cbvt a.cbvt-lien { flex: 1 1 320px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--cb-noir, #111111); }
.cbvt a.cbvt-lien-trait { gap: 10px; padding-top: 20px; border-top: 1px solid var(--cb-filet, #DADAD7); }
.cbvt-lien-img { display: block; overflow: hidden; height: 200px; border-radius: var(--cb-rayon-photo, 4px); background: var(--cb-gris, #E4E4E2); }
.cbvt-lien-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--cb-anim, ease); }
.cbvt a.cbvt-lien:hover .cbvt-lien-img img { transform: scale(1.04); }
.cbvt-icone { display: block; color: var(--cb-noir, #111111); line-height: 0; }
.cbvt-petit { font-size: 13px; font-weight: 500; color: var(--cb-texte-3, #5C5C5C); }
.cbvt-lien-titre { font-family: var(--cb-police-titre, 'Inter Tight', Arial, sans-serif); font-size: 20px; font-weight: 500; line-height: 1.25; letter-spacing: -.01em; }
.cbvt a.cbvt-lien:hover .cbvt-lien-titre { text-decoration: underline; text-underline-offset: 3px; }
.cbvt-lien-texte { font-size: 15px; color: var(--cb-texte-2, #3A3A3A); }

/* Magasins */
.cbvt-mag { display: flex; flex-direction: column; gap: 24px; padding: 32px; border-radius: var(--cb-rayon-bouton, 8px); background: var(--cb-blanc, #FFFFFF); }
.cbvt-mag-tete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.cbvt-mag-titres { display: flex; flex-direction: column; gap: 6px; }
.cbvt .cbvt-mag .cbvt-h2 { font-size: 28px; margin: 0; }
.cbvt .cbvt-mag-titres p { font-size: 16px; line-height: 1.5; color: var(--cb-texte-2, #3A3A3A); }
.cbvt .cbvt-xavier { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.4; color: var(--cb-texte-2, #3A3A3A); }
.cbvt-xavier img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.cbvt-xavier strong { font-weight: 500; color: var(--cb-noir, #111111); }
.cbvt-mag-liste { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cbvt a.cbvt-mag-carte { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--cb-noir, #111111); }
.cbvt-mag-img { display: block; overflow: hidden; height: 190px; border-radius: var(--cb-rayon-photo, 4px); background: var(--cb-gris, #E4E4E2); }
.cbvt-mag-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--cb-anim, ease); }
.cbvt a.cbvt-mag-carte:hover .cbvt-mag-img img { transform: scale(1.04); }
.cbvt-mag-nom { font-family: var(--cb-police-titre, 'Inter Tight', Arial, sans-serif); font-size: 18px; font-weight: 500; }
.cbvt a.cbvt-bouton {
  align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; padding: 12px 22px;
  border-radius: var(--cb-rayon-bouton, 8px); background: var(--cb-tomette, #B5523B); color: var(--cb-blanc, #FFFFFF);
  font-weight: 500; text-decoration: none; transition: background .2s, transform .2s;
}
.cbvt a.cbvt-bouton:hover { background: var(--cb-tomette-survol, #9A4532); color: var(--cb-blanc, #FFFFFF); transform: translateY(-1px); }

/* ---------- Tablette ---------- */
@media (max-width: 991px) {
  .cbvt { gap: 64px; }
  .cbvt-photo img { height: 320px; }
}

/* ---------- Téléphone : petit bandeau, les vélos arrivent vite ---------- */
@media (max-width: 767px) {
  body.cbvt-on #cb-recherche .cb-r-bloc { min-height: 0; padding: 14px 0 6px !important; }
  body.cbvt-on #cb-recherche .cb-r-bloc::before {
    height: 190px;
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 36px), transparent 100%);
            mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 36px), transparent 100%);
  }
  body.cbvt-on .cbvt-carte { width: auto; max-width: 92%; margin: 0 0 28px; gap: 6px; padding: 14px 16px; box-shadow: var(--cb-ombre-flottant, 0 24px 48px rgba(17, 17, 17, .08)); }
  body.cbvt-on .cbvt-ariane { display: none; }
  body.cbvt-on .cbvt-h1 { font-size: 28px; }
  body.cbvt-on .cbvt-intro { font-size: 14px; line-height: 1.45; }

  .cbvt { margin-top: 24px; gap: 56px; }
  .cbvt .cbvt-h2 { font-size: 26px; }
  .cbvt .cbvt-loin .cbvt-h2, .cbvt .cbvt-mag .cbvt-h2 { font-size: 24px; }
  .cbvt-choisir { gap: 24px; }
  .cbvt-faq { flex-basis: 100%; }
  .cbvt-q { padding: 12px 0; }
  .cbvt-q summary { font-size: 17px; }
  .cbvt .cbvt-r, .cbvt .cbvt-mag-titres p { font-size: 15px; }
  .cbvt-photo { flex-basis: 100%; }
  .cbvt-photo img { height: 220px; }
  .cbvt-loin-grille { gap: 24px; }
  .cbvt a.cbvt-lien { flex-basis: 100%; }
  .cbvt-lien-img { height: 180px; }
  .cbvt-mag { padding: 20px 16px; gap: 18px; }
  .cbvt-mag-liste { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 6px; }
  .cbvt-mag-liste::-webkit-scrollbar { display: none; }
  .cbvt a.cbvt-mag-carte { flex: 0 0 76%; scroll-snap-align: start; }
  .cbvt-mag-img { height: 150px; }
  .cbvt a.cbvt-bouton { align-self: stretch; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .cbvt-plus, .cbvt-lien-img img, .cbvt-mag-img img, .cbvt a.cbvt-bouton { transition: none; }
}
