/* Cycles Blain — « −10 % sur les accessoires avec un vélo » (cbvitrine 2.2.0b)
   Maquette validée le 23/11/2026 (fiche vélo et panier, ordinateur et téléphone). Charte v1.1 : couleurs et polices des tokens uniquement.
   Les noms de classes n'emploient pas le mot « remise » : un style du site colore tout ce qui s'appelle ainsi. */

/* ---------- étiquette tomette ---------- */
.cbva-etq { display: inline-block; flex: 0 0 auto; font-family: var(--cb-police-texte, "Inter", system-ui, sans-serif); font-weight: 500; font-size: 12px; line-height: 1; background: var(--cb-tomette, #B5523B); color: var(--cb-blanc, #FFFFFF); border-radius: var(--cb-rayon-etiquette, 6px); padding: 6px 9px; white-space: nowrap; }

/* ---------- liens ---------- */
html body .cbva-lien { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-family: var(--cb-police-texte, "Inter", system-ui, sans-serif); font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--cb-noir, #111111); text-decoration: underline; text-underline-offset: 3px; }
html body .cbva-lien:hover, html body .cbva-lien:focus-visible { color: var(--cb-tomette, #B5523B); }
.cbva-lien svg { flex: 0 0 auto; }
.cbva-tel { display: none; }

/* ============================================================ FICHE VÉLO */

/* ---------- encart sous « Ajouter au panier » ---------- */
html body a.cbva-offre { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; padding: 12px 16px; background: var(--cb-fond, #FBFBFA); border: 1px solid var(--cb-filet, #DADAD7); border-radius: var(--cb-rayon-bouton, 8px); text-decoration: none; color: var(--cb-noir, #111111); font-family: var(--cb-police-texte, "Inter", system-ui, sans-serif); font-size: 14px; line-height: 1.4; transition: border-color .2s ease; }
html body a.cbva-offre:hover, html body a.cbva-offre:focus-visible { border-color: var(--cb-noir, #111111); color: var(--cb-noir, #111111); }
.cbva-offre-txt { flex: 1 1 auto; }
.cbva-offre svg { flex: 0 0 auto; }

/* ---------- bande « Pour partir rouler. » ---------- */
.cbva-bande { clear: both; margin: 48px 0; padding: 96px 0; background: var(--cb-fond, #FBFBFA); box-shadow: 0 0 0 100vmax var(--cb-fond, #FBFBFA); clip-path: inset(0 -100vmax); font-family: var(--cb-police-texte, "Inter", system-ui, sans-serif); font-size: 16px; line-height: 1.6; color: var(--cb-noir, #111111); scroll-margin-top: 96px; }
.cbva-bande-in { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px; }
.cbva-col { min-width: 0; }
.cbva-intro { flex: 1 1 260px; max-width: 340px; display: flex; flex-direction: column; gap: 16px; }
html body .cbva-titre { margin: 0; padding: 0; font-family: var(--cb-police-titre, "Inter Tight", system-ui, sans-serif); font-weight: 500; font-size: 32px; line-height: 1.05; letter-spacing: -0.035em; color: var(--cb-noir, #111111); text-transform: none; }
html body .cbva-accroche { margin: 0; font-size: 16px; line-height: 1.6; color: var(--cb-texte-2, #3A3A3A); }
html body .cbva-avantage { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.4; color: var(--cb-noir, #111111); }
html body .cbva-vendeurs { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 1.4; color: var(--cb-texte-3, #5C5C5C); }
.cbva-vendeurs svg { flex: 0 0 auto; }

/* casque */
.cbva-casque { flex: 1 1 300px; max-width: 420px; display: flex; flex-direction: column; gap: 10px; }
.cbva-casque-haut, .cbva-casque-infos { display: flex; flex-direction: column; gap: 10px; }
html body a.cbva-photo { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cb-fond-produit, #F3F3F1); border-radius: var(--cb-rayon-photo, 4px); }
.cbva-photo img { width: 80%; height: 80%; object-fit: contain; mix-blend-mode: multiply; }
.cbva-type { position: absolute; z-index: 1; top: 12px; left: 12px; background: var(--cb-blanc, #FFFFFF); color: var(--cb-noir, #111111); border: 1px solid var(--cb-filet, #DADAD7); font-size: 12px; font-weight: 500; line-height: 1; padding: 6px 9px; border-radius: var(--cb-rayon-etiquette, 6px); }
.cbva-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; line-height: 1.4; }
.cbva-marque { font-size: 12px; color: var(--cb-texte-3, #5C5C5C); }
.cbva-marque-type { display: none; }
.cbva-stock { display: flex; align-items: center; gap: 6px; font-weight: 500; color: var(--cb-noir, #111111); }
.cbva-stock i { width: 6px; height: 6px; border-radius: var(--cb-rayon-rond, 999px); background: var(--cb-tomette, #B5523B); }
html body a.cbva-nom { font-family: var(--cb-police-titre, "Inter Tight", system-ui, sans-serif); font-weight: 500; font-size: 20px; line-height: 1.15; letter-spacing: -0.02em; color: var(--cb-noir, #111111); text-decoration: none; }
html body a.cbva-nom:hover, html body a.cbva-item-nom:hover { color: var(--cb-tomette, #B5523B); }
.cbva-prix { display: flex; align-items: baseline; gap: 10px; }
.cbva-prix b { font-family: var(--cb-police-titre, "Inter Tight", system-ui, sans-serif); font-weight: 500; font-size: 22px; line-height: 1.1; letter-spacing: -0.02em; color: var(--cb-noir, #111111); }
.cbva-prix s { font-size: 14px; color: var(--cb-texte-3, #5C5C5C); }
.cbva-prix-promo b { color: var(--cb-tomette, #B5523B); }

/* tailles en puces */
.cbva-tailles { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.cbva-tailles-lib { font-size: 13px; color: var(--cb-texte-3, #5C5C5C); margin-right: 4px; }
html body button.cbva-puce { min-width: 44px; height: 44px; margin: 0; padding: 0 10px; border-radius: var(--cb-rayon-etiquette, 6px); border: 1px solid var(--cb-filet, #DADAD7); background: var(--cb-blanc, #FFFFFF); color: var(--cb-noir, #111111); font-family: var(--cb-police-texte, "Inter", system-ui, sans-serif); font-weight: 500; font-size: 14px; line-height: 1; cursor: pointer; box-shadow: none; transition: background .2s ease, color .2s ease, border-color .2s ease; }
html body button.cbva-puce:hover { border-color: var(--cb-noir, #111111); }
html body button.cbva-puce[aria-pressed="true"] { background: var(--cb-noir, #111111); color: var(--cb-blanc, #FFFFFF); border-color: var(--cb-noir, #111111); }
html body button.cbva-puce:disabled { background: var(--cb-fond-2, #F5F5F3); color: var(--cb-texte-3, #5C5C5C); border-color: var(--cb-gris, #E4E4E2); cursor: not-allowed; }
html body a.cbva-guide { margin-left: 4px; font-size: 13px; color: var(--cb-noir, #111111); text-decoration: underline; text-underline-offset: 3px; }
html body a.cbva-guide:hover { color: var(--cb-tomette, #B5523B); }

/* boutons */
html body button.cbva-btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; margin: 0; padding: 0 20px; border: 1px solid var(--cb-noir, #111111); border-radius: var(--cb-rayon-bouton, 8px); font-family: var(--cb-police-texte, "Inter", system-ui, sans-serif); font-weight: 500; font-size: 15px; line-height: 1; text-transform: none; letter-spacing: 0; cursor: pointer; box-shadow: none; transition: background .2s ease, color .2s ease, border-color .2s ease; }
html body button.cbva-btn-casque { margin-top: 8px; background: var(--cb-noir, #111111); color: var(--cb-blanc, #FFFFFF); }
html body button.cbva-btn-casque:hover { background: var(--cb-tomette, #B5523B); border-color: var(--cb-tomette, #B5523B); color: var(--cb-blanc, #FFFFFF); }
html body button.cbva-btn-casque[aria-pressed="true"] { background: var(--cb-blanc, #FFFFFF); color: var(--cb-noir, #111111); border-color: var(--cb-noir, #111111); }
.cbva-i-coche, [aria-pressed="true"] > .cbva-i-plus { display: none; }
[aria-pressed="true"] > .cbva-i-coche { display: block; }
html body [data-cbva-ajout][aria-busy="true"] { opacity: .55; pointer-events: none; }

/* Baouw */
.cbva-baouw { flex: 1 1 300px; display: flex; flex-direction: column; }
html body .cbva-sur { margin: 0 0 8px; font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--cb-texte-3, #5C5C5C); }
.cbva-item { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--cb-filet, #DADAD7); }
html body a.cbva-vignette { flex: 0 0 88px; width: 88px; height: 66px; display: flex; align-items: center; justify-content: center; background: var(--cb-fond-produit, #F3F3F1); border-radius: var(--cb-rayon-photo, 4px); overflow: hidden; }
.cbva-vignette img { max-width: 88%; max-height: 88%; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; }
.cbva-item-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
html body a.cbva-item-nom { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 500; font-size: 15px; line-height: 1.35; color: var(--cb-noir, #111111); text-decoration: none; }
.cbva-item-usage { font-size: 13px; color: var(--cb-texte-3, #5C5C5C); }
.cbva-item-bas { flex: 0 0 auto; display: flex; align-items: center; gap: 16px; }
.cbva-item-prix { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; white-space: nowrap; }
.cbva-item-prix b { font-family: var(--cb-police-titre, "Inter Tight", system-ui, sans-serif); font-weight: 500; font-size: 18px; letter-spacing: -0.02em; color: var(--cb-noir, #111111); }
.cbva-item-prix.cbva-prix-promo b { color: var(--cb-tomette, #B5523B); }
.cbva-item-prix s { font-size: 12px; color: var(--cb-texte-3, #5C5C5C); }
html body button.cbva-plus { flex: 0 0 44px; width: 44px; height: 44px; margin: 0; padding: 0; display: flex; align-items: center; justify-content: center; border: 1px solid var(--cb-noir, #111111); border-radius: var(--cb-rayon-bouton, 8px); background: var(--cb-blanc, #FFFFFF); color: var(--cb-noir, #111111); cursor: pointer; box-shadow: none; transition: background .2s ease, color .2s ease; }
html body button.cbva-plus:hover { background: var(--cb-fond-2, #F5F5F3); }
html body button.cbva-plus[aria-pressed="true"] { background: var(--cb-noir, #111111); color: var(--cb-blanc, #FFFFFF); }
.cbva-liens-bas { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; border-top: 1px solid var(--cb-filet, #DADAD7); }
html body .cbva-lien-tel { display: none; }
html body .cbva-message { margin: 16px 0 0; padding: 10px 12px; border: 1px solid var(--cb-tomette, #B5523B); border-radius: var(--cb-rayon-bouton, 8px); background: var(--cb-blanc, #FFFFFF); color: var(--cb-noir, #111111); font-size: 13px; line-height: 1.4; }
.cbva-message[hidden], .cbva-encart[hidden], .cbva-note[hidden], .cbva-carte[hidden] { display: none !important; }

/* ============================================================ PANIER */

/* ---------- ligne d'accessoire remisée ---------- */
body#cart .cart-item.cbva-ligne .product-line-info.product-price .product-discount { gap: 8px 12px; align-items: baseline; }
body#cart .cart-item.cbva-ligne .product-line-info.product-price .price,
body#cart .cart-item.cbva-ligne .product-line-info.product-price .current-price { font-family: var(--cb-police-titre, "Inter Tight", system-ui, sans-serif) !important; font-weight: 500 !important; font-size: 20px !important; letter-spacing: -0.02em; color: var(--cb-tomette, #B5523B) !important; }
body#cart .cart-item.cbva-ligne .regular-price { font-family: var(--cb-police-texte, "Inter", system-ui, sans-serif); font-size: 13px !important; color: var(--cb-texte-3, #5C5C5C) !important; text-decoration: line-through; }
body#cart .cart-item.cbva-ligne .product-discount > .discount { display: none !important; }   /* remplacée par l'étiquette tomette */
body#cart .cart-item .cbva-etq-ligne { display: table; margin: 6px 0 2px; }

/* ---------- récapitulatif ---------- */
body#cart .cart-grid-right .cart-summary-line.cbva-total .label,
body#cart .cart-grid-right .cart-summary-line.cbva-total .value,
body#checkout .cart-summary-line.cbva-total .label,
body#checkout .cart-summary-line.cbva-total .value { color: var(--cb-tomette, #B5523B) !important; }
body#cart .cart-grid-right .cart-summary-line.cbva-total .value,
body#checkout .cart-summary-line.cbva-total .value { font-weight: 500 !important; white-space: nowrap; }
html body#cart #main .cbva-cache, html body#checkout .cbva-cache { display: none !important; }
body#cart .promo-name .cbva-bon a[data-link-action="remove-voucher"],
body#checkout .promo-name .cbva-bon a[data-link-action="remove-voucher"] { display: none !important; }   /* la remise automatique ne se retire pas à la main */

/* ---------- encart sous les produits ---------- */
.cbva-encart { clear: both; margin: 32px 0 0; padding: 28px; display: flex; flex-direction: column; gap: 24px; background: var(--cb-fond, #FBFBFA); border-radius: var(--cb-rayon-bouton, 8px); font-family: var(--cb-police-texte, "Inter", system-ui, sans-serif); font-size: 15px; line-height: 1.5; color: var(--cb-noir, #111111); text-align: left; }
.cbva-encart-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px 24px; }
.cbva-encart-txt { flex: 1 1 380px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
html body .cbva-encart-titre { margin: 0; padding: 0; font-family: var(--cb-police-titre, "Inter Tight", system-ui, sans-serif); font-weight: 500; font-size: 26px; line-height: 1.1; letter-spacing: -0.03em; color: var(--cb-noir, #111111); text-transform: none; text-align: left; }
html body .cbva-encart-phrase { margin: 0; font-size: 15px; line-height: 1.5; color: var(--cb-texte-2, #3A3A3A); }
html body button.cbva-pas { margin: 0; padding: 8px 0; border: 0; background: none; box-shadow: none; font-family: var(--cb-police-texte, "Inter", system-ui, sans-serif); font-size: 13px; line-height: 1.4; color: var(--cb-texte-3, #5C5C5C); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
html body button.cbva-pas:hover { color: var(--cb-tomette, #B5523B); }
html body button.cbva-pas-tel { display: none; }
.cbva-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 20px; align-items: start; }
.cbva-carte { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cbva-carte-txt { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.cbva-carte .cbva-prix { gap: 8px; }
.cbva-carte .cbva-prix b { font-size: 18px; }
.cbva-carte .cbva-prix s { font-size: 13px; }
.cbva-carte .cbva-tailles { gap: 6px; margin: 0; }
html body button.cbva-btn-contour { height: 44px; padding: 0 16px; font-size: 14px; background: var(--cb-blanc, #FFFFFF); color: var(--cb-noir, #111111); }
html body button.cbva-btn-contour:hover { background: var(--cb-fond-2, #F5F5F3); }
html body button.cbva-btn-contour[aria-pressed="true"] { background: var(--cb-noir, #111111); color: var(--cb-blanc, #FFFFFF); }
.cbva-btn-contour > .cbva-i-plus { display: none; }
.cbva-encart-bas { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
html body .cbva-note { clear: both; margin: 24px 0 0; font-family: var(--cb-police-texte, "Inter", system-ui, sans-serif); font-size: 13px; line-height: 1.5; color: var(--cb-texte-3, #5C5C5C); text-align: left; }
html body .cbva-note button.cbva-pas { padding: 0; }

/* ============================================================ TÉLÉPHONE */
@media (max-width: 767px) {
  .cbva-ordi { display: none; }
  .cbva-tel { display: inline; }

  /* fiche vélo */
  html body a.cbva-offre { gap: 10px; padding: 10px 14px; font-size: 13px; line-height: 1.35; }
  .cbva-offre .cbva-etq, .cbva-intro .cbva-etq { padding: 5px 8px; }
  .cbva-bande { margin: 24px 0; padding: 40px 0 44px; font-size: 15px; line-height: 1.5; scroll-margin-top: 72px; }
  .cbva-bande-in { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 16px; }
  .cbva-intro { flex: 0 0 auto; max-width: none; gap: 8px; }
  html body .cbva-titre { font-size: 26px; line-height: 1.1; }
  html body .cbva-accroche { font-size: 15px; line-height: 1.5; }
  html body .cbva-avantage { gap: 8px; font-size: 13px; }
  html body .cbva-vendeurs { display: none; }
  html body .cbva-bande:not(.cbva-sans-baouw) .cbva-lien-accessoires { display: none; }
  .cbva-casque { flex: 0 0 auto; max-width: none; gap: 16px; }
  .cbva-casque-haut { flex-direction: row; align-items: center; gap: 16px; }
  html body .cbva-casque a.cbva-photo { flex: 0 0 140px; width: 140px; height: 105px; aspect-ratio: auto; }
  .cbva-casque-infos { flex: 1 1 auto; min-width: 0; gap: 2px; }
  .cbva-type { display: none; }
  .cbva-marque-type { display: inline; }
  .cbva-meta { display: contents; }
  .cbva-stock { order: 9; gap: 5px; margin-top: 2px; font-size: 12px; }
  html body a.cbva-nom { font-size: 18px; }
  .cbva-casque .cbva-prix { gap: 8px; margin-top: 2px; }
  .cbva-casque .cbva-prix b { font-size: 20px; }
  .cbva-casque .cbva-prix s { font-size: 13px; }
  .cbva-casque .cbva-tailles { margin: 0; }
  .cbva-tailles-lib { display: none; }
  html body a.cbva-guide { margin-left: auto; }
  html body button.cbva-btn-casque { margin-top: 0; }
  html body .cbva-sur { margin: 16px 0 0; }
  .cbva-liste { display: flex; gap: 12px; margin: 8px -15px 0; padding: 0 15px 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; scroll-padding-inline: 15px; }
  .cbva-item { flex: 0 0 140px; flex-direction: column; align-items: stretch; gap: 6px; padding: 0; border: 0; scroll-snap-align: start; }
  html body a.cbva-vignette { flex: 0 0 auto; width: auto; height: 105px; }
  html body a.cbva-item-nom { font-size: 14px; line-height: 1.3; }
  .cbva-baouw .cbva-item-usage { display: none; }
  .cbva-item-txt { flex: 1 1 auto; }
  .cbva-item-bas { justify-content: space-between; gap: 8px; }
  .cbva-item-prix { align-items: flex-start; }
  .cbva-item-prix b { font-size: 17px; }
  .cbva-liens-bas { margin-top: 4px; padding-top: 12px; border-top: 0; }
  html body .cbva-lien-tel { display: inline-flex; }

  /* panier */
  .cbva-encart { margin-top: 20px; padding: 20px; gap: 4px; }
  .cbva-encart-txt { flex: 1 1 100%; gap: 0; }
  html body .cbva-encart-titre { margin: 8px 0 0; font-size: 20px; line-height: 1.2; }
  html body .cbva-encart-phrase { margin: 4px 0 8px; font-size: 14px; }
  html body .cbva-encart-tete > button.cbva-pas { display: none; }
  html body button.cbva-pas-tel { display: inline-block; }
  .cbva-grille { display: flex; flex-direction: column; gap: 0; border-bottom: 1px solid var(--cb-filet, #DADAD7); }
  .cbva-carte { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 0; border-top: 1px solid var(--cb-filet, #DADAD7); }
  html body .cbva-carte a.cbva-photo { flex: 0 0 64px; width: 64px; height: 48px; aspect-ratio: auto; }
  .cbva-carte-txt { flex: 1 1 0; }
  .cbva-carte .cbva-marque, .cbva-carte .cbva-item-usage { display: none; }
  .cbva-carte a.cbva-item-nom { font-size: 14px; line-height: 1.3; }
  .cbva-carte .cbva-prix { flex-direction: column; align-items: flex-end; gap: 0; line-height: 1.2; white-space: nowrap; }
  .cbva-carte .cbva-prix b { font-size: 16px; }
  .cbva-carte .cbva-prix s { font-size: 12px; }
  .cbva-carte .cbva-tailles { order: 9; flex: 1 1 100%; }
  html body button.cbva-btn-contour { flex: 0 0 44px; width: 44px; padding: 0; }
  .cbva-btn-contour [data-cbva-libelle] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cbva-btn-contour > .cbva-i-plus { display: block; }
  .cbva-btn-contour[aria-pressed="true"] > .cbva-i-plus { display: none; }
  .cbva-encart-bas { margin-top: 8px; }
  html body .cbva-encart-bas .cbva-lien { font-size: 14px; }
  body#cart .cart-item.cbva-ligne .product-line-info.product-price .price { font-size: 18px !important; }
}

@media (prefers-reduced-motion: reduce) {
  html body a.cbva-offre, html body button.cbva-btn, html body button.cbva-puce, html body button.cbva-plus { transition: none; }
}
