/* cbvitrine 2.4.10 — RÉACTIVITÉ : pulse et barre (étape 2), fond flouté (étape 3), élastique (étape 4), header qui s’efface sur téléphone (étape 5), ajout au panier visible (étape 6).
   Tout est posé PAR-DESSUS la page (position fixe, aucun clic intercepté) : aucun style du thème n'est modifié. */
#cb-fx{position:fixed;inset:0;pointer-events:none;z-index:2147483000;overflow:hidden}
#cb-fx .cb-rp{position:fixed;overflow:hidden;pointer-events:none}
#cb-fx .cb-rp i{position:absolute;border-radius:50%;background:currentColor;opacity:.16;transform:scale(0);animation:cb-rp .45s cubic-bezier(.2,.7,.3,1) forwards}
@keyframes cb-rp{to{transform:scale(1);opacity:0}}
/* Barre tomette de 3 px, seulement si la page suivante tarde plus de 400 ms */
#cb-load{position:fixed;top:0;left:0;height:3px;width:0;background:#B5523B;z-index:2147483001;opacity:0;pointer-events:none;transition:width 2s cubic-bezier(.1,.6,.2,1),opacity .2s}
#cb-load.cb-on{opacity:1;width:85%}
#cb-load.cb-fin{width:100%;opacity:0;transition:width .15s,opacity .25s .15s}
@media print{#cb-fx,#cb-load{display:none!important}}
@media (prefers-reduced-motion:reduce){#cb-fx{display:none!important}#cb-load,#cb-load.cb-on{transition:opacity .2s}}

/* ---------- C. FOND FLOUTÉ derrière les fenêtres (étape 3) ----------
   Une seule règle commune sur les fonds qui existent déjà : la fenêtre elle-même reste nette.
   Pas touchés : Cofidis (paiement), calendrier de l'Avent (déjà flouté), Pierre-Louis et panneaux plein écran (rien derrière). */
html.cb-reactif .cbn-fond,                                   /* lploa : Une question / Négocier */
html.cb-reactif .js-product-images-modal,               /* thème : galerie photo de la fiche */
html.cb-reactif body > .modal-backdrop.show,                 /* thème : « produit ajouté », aperçu rapide */
html.cb-reactif .cb-r-voile,                                 /* cbavailability : filtres (téléphone) */
html.cb-reactif .cb-guide-fond,                              /* cbavailability : guide des tailles */
html.cb-reactif .cbb-voile,                                  /* cbavailability : menu Besoins */
html.cb-reactif .cba-actu-fenetre,                           /* cbvitrine : fenêtre « Tout savoir » */
html.cb-reactif .cbv-fm-fond,                                /* cbvitrine : Partager */
html.cb-reactif .cbr-voile,                                  /* cbrecherches : alerte vélo recherché */
html.cb-reactif #__abconsent-cmp .sd-cmp-MtHO2 {             /* Sirdata : bandeau cookies */
  background-color: rgba(17,17,17,.28) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  backdrop-filter: blur(8px) !important;
}
/* Bootstrap met le fond à opacité 0,5 : on garde la couleur ci-dessus telle quelle */
html.cb-reactif body > .modal-backdrop.show { opacity: 1 !important; }
/* cbvitrine : panneaux du header sur ordinateur (le voile est dans le header, sous ses panneaux) */
html.cb-reactif:not(#cbz):not(#cby) body .cbd-voile {
  background: rgba(17,17,17,.28) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  backdrop-filter: blur(8px) !important;
}
/* cbvitrine : fenêtres de l'accueil (styles d'origine en !important très précis) */
html.cb-reactif:not(#cbz):not(#cby) body .cbda-fenetre {
  background: rgba(17,17,17,.28) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  backdrop-filter: blur(8px) !important;
}
/* Téléphones d'entrée de gamme : flou plus léger, moins coûteux */
@media (max-width: 600px) and (max-resolution: 2dppx) {
  html.cb-reactif .cbn-fond, html.cb-reactif .js-product-images-modal, html.cb-reactif body > .modal-backdrop.show,
  html.cb-reactif .cb-r-voile, html.cb-reactif .cb-guide-fond, html.cb-reactif .cbb-voile, html.cb-reactif .cba-actu-fenetre,
  html.cb-reactif .cbv-fm-fond, html.cb-reactif .cbr-voile, html.cb-reactif #__abconsent-cmp .sd-cmp-MtHO2,
  html.cb-reactif:not(#cbz):not(#cby) body .cbd-voile, html.cb-reactif:not(#cbz):not(#cby) body .cbda-fenetre {
    -webkit-backdrop-filter: blur(4px) !important; backdrop-filter: blur(4px) !important;
  }
}
/* Navigateur sans flou : le voile reste un peu plus foncé pour que la fenêtre se détache */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  html.cb-reactif .cbn-fond, html.cb-reactif .js-product-images-modal, html.cb-reactif body > .modal-backdrop.show,
  html.cb-reactif .cb-r-voile, html.cb-reactif .cb-guide-fond, html.cb-reactif .cbb-voile, html.cb-reactif .cba-actu-fenetre,
  html.cb-reactif .cbv-fm-fond, html.cb-reactif .cbr-voile {
    background-color: rgba(17,17,17,.45) !important;
  }
}

/* ---------- B. ÉLASTIQUE des listes internes (étape 4) ----------
   Le JS n'écrit qu'une variable (--cb-el) sur la liste ; ses enfants glissent avec la propriété « translate »
   (distincte de « transform » : les transformations du thème restent intactes). */
.cbda-bande,.cbda-onglets,.cbva-liste,.pl2b-choix,.cbd-m-rubriques,.cbd-t-liens,.cb-el-x{overscroll-behavior-x:none}
.cb-el-y{overscroll-behavior-y:none}
.cb-el-x>*{translate:var(--cb-el,0px) 0}
.cb-el-y>*{translate:0 var(--cb-el,0px)}
.cb-el-retour>*{transition:translate .45s cubic-bezier(.2,1.35,.4,1)}
@media (prefers-reduced-motion:reduce){.cb-el-x>*,.cb-el-y>*{translate:none!important}}

/* ---------- G. HEADER QUI S'EFFACE — téléphone et tablette seulement (étape 5) ----------
   Le header (#cbd, cbvitrine) glisse par « translate » : la page ne bouge pas. Sur ordinateur : rien ne change. */
@media (max-width: 999.98px) {
  html.cb-reactif:not(#cbz):not(#cby) body #cbd { transition: translate .25s cubic-bezier(.2,.8,.3,1) !important; }
  html.cb-reactif.cb-hd-cache:not(#cbz):not(#cby) body #cbd { translate: 0 calc(-100% - 12px) !important; }
  /* Les liens vers une ancre (#section) ne tombent pas sous le header */
  html.cb-reactif { scroll-padding-top: var(--cb-hd-h, 0px); }
}
@media (max-width: 999.98px) and (prefers-reduced-motion: reduce) {
  html.cb-reactif:not(#cbz):not(#cby) body #cbd { transition: none !important; }
}

/* ---------- H. AJOUT AU PANIER VISIBLE (étape 6) : copie de la photo qui vole vers l'icône panier ---------- */
#cb-fx .cb-vol{position:fixed;object-fit:cover;border-radius:8px;box-shadow:0 6px 18px rgba(17,17,17,.18);transform-origin:50% 50%;will-change:transform,opacity;pointer-events:none}

/* ---------- E. PASSAGE GLISSÉ entre les pages (étape 7, version allégée 2.4.7, zoom fluide 2.4.8) ----------
   Ne joue que sur les pages qui le déclarent (style du <head> posé par cbvitrine). Seule la photo du vélo glisse (0,25 s) ;
   la page elle-même change d'un coup (pas de fondu : plus léger pour le téléphone). */
::view-transition-group(root),::view-transition-old(root),::view-transition-new(root){animation:none}
::view-transition-group(*.cb-photo){animation:none;transform-origin:0 0}   /* 2.4.8 : le mouvement est joué en transform par vt-2.4.8.js (fluide) */
::view-transition-old(*.cb-photo),::view-transition-new(*.cb-photo){height:100%;object-fit:cover;overflow:clip;animation-duration:.25s}
/* 2.4.10 : vers une fiche, le cadre gris de la carte glisse jusqu'au cadre de la fiche, tenu au format 4/3 dès l'arrivée ;
   l'image de départ reste entière (pas de fondu vers un cadre encore vide), puis la photo de la carte sert de relais
   jusqu'à ce que la grande photo soit posée (classe retirée ensuite : la fiche redevient exactement comme avant). */
html.cb-vt-fiche::view-transition-old(*.cb-photo){animation:none}
html.cb-vt-fiche::view-transition-new(*.cb-photo){animation:none;opacity:0}
html.cb-vt-fiche #product .images-container .product-cover{aspect-ratio:4/3;background:#ece8e1;position:relative;overflow:hidden;isolation:isolate}
.cb-vt-relais{position:absolute;z-index:0;object-fit:fill;mix-blend-mode:multiply;pointer-events:none;margin:0;max-width:none;max-height:none;transform-origin:0 0}
