/* Cycles Blain — COURS-ANNONCE (cbvitrine 2.2.1, 23/11/2026) : annonce du prochain cours de mécanique.
   Maquette validée le 23/11/2026, charte v1.1 : couleurs = tokens (--cb-…), Inter uniquement.
   Les deux seules teintes écrites en chiffres sont la tomette (181,82,59 = --cb-tomette) et le noir (17,17,17 = --cb-noir)
   en version transparente, pour le halo du point et le fond de la capsule sur la photo.
   1. le point qui clignote   2. la capsule (accueil, sombre)   3. la capsule claire (page RDV atelier)
   4. la 2e ligne du panneau « Prendre rendez-vous »   5. téléphone   6. animations coupées si le visiteur le demande */

/* ---------- 1. Le point tomette qui clignote (1,3 s : opacité 1 → 0,3 + halo) ---------- */
@keyframes cb-cours-pouls{0%{opacity:1;box-shadow:0 0 0 0 rgba(181,82,59,.95)}50%{opacity:.3;box-shadow:0 0 0 10px rgba(181,82,59,0)}100%{opacity:1;box-shadow:0 0 0 0 rgba(181,82,59,0)}}
@keyframes cb-cours-entree{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
html:not(#cbz):not(#cby) body .cb-cours-point{display:inline-block !important;flex:none !important;width:10px !important;height:10px !important;margin:0 !important;border-radius:50% !important;background:var(--cb-tomette) !important;animation:cb-cours-pouls 1.3s ease-in-out infinite !important}

/* ---------- 2. La capsule de l'accueil, sous « Par exemple : … » ---------- */
html:not(#cbz):not(#cby) body .cb-cours{display:inline-flex !important;align-items:center !important;gap:12px !important;max-width:100% !important;box-sizing:border-box !important;margin:0 !important;border-radius:var(--cb-rayon-rond) !important;font-family:var(--cb-police-texte) !important;font-weight:400 !important;font-size:14px !important;line-height:1.3 !important;letter-spacing:0 !important;text-transform:none !important;text-decoration:none !important}
html:not(#cbz):not(#cby) body .cb-cours[hidden]{display:none !important}
html:not(#cbz):not(#cby) body .cb-cours svg{flex:none !important;display:block !important}
html:not(#cbz):not(#cby) body .cb-cours-quoi{min-width:0 !important}
html:not(#cbz):not(#cby) body .cb-cours span{line-height:1.3 !important;margin:0 !important;padding:0 !important}
html:not(#cbz):not(#cby) body .cb-cours-sombre{align-self:flex-start !important;margin-top:6px !important;padding:4px 4px 4px 16px !important;border:1px solid rgba(255,255,255,.2) !important;background:rgba(17,17,17,.55) !important;-webkit-backdrop-filter:blur(8px) !important;backdrop-filter:blur(8px) !important;color:var(--cb-blanc) !important;animation:cb-cours-entree .5s .4s ease-out both !important}
/* accueil sans photo de fond : fond noir plein, pour que le texte blanc reste lisible */
html:not(#cbz):not(#cby) body .cbda-haut:not(.cbda-haut-photo) .cb-cours-sombre{background:var(--cb-noir) !important;border-color:var(--cb-noir) !important}
html:not(#cbz):not(#cby) body .cb-cours-txt{display:inline-flex !important;align-items:center !important;gap:10px !important;min-width:0 !important}
html:not(#cbz):not(#cby) body .cb-cours-sombre .cb-cours-quand{color:rgba(255,255,255,.8) !important}
html:not(#cbz):not(#cby) body .cb-cours-fin{display:inline-flex !important;align-items:center !important;gap:4px !important;flex:none !important}
html:not(#cbz):not(#cby) body .cb-cours .cb-cours-lien{font-family:var(--cb-police-texte) !important;font-weight:500 !important;font-size:14px !important;text-decoration:underline !important;text-underline-offset:3px !important;white-space:nowrap !important}
html:not(#cbz):not(#cby) body .cb-cours-sombre a.cb-cours-lien,html:not(#cbz):not(#cby) body .cb-cours-sombre a.cb-cours-lien:visited,html:not(#cbz):not(#cby) body .cb-cours-sombre a.cb-cours-lien:hover{color:var(--cb-blanc) !important}
html:not(#cbz):not(#cby) body .cb-cours-sombre a.cb-cours-lien:hover{text-decoration-thickness:2px !important}
html:not(#cbz):not(#cby) body .cb-cours-x{display:inline-flex !important;align-items:center !important;justify-content:center !important;flex:none !important;width:32px !important;height:32px !important;min-width:0 !important;margin:0 !important;padding:0 !important;border:0 !important;border-radius:50% !important;background:transparent !important;background-image:none !important;box-shadow:none !important;color:rgba(255,255,255,.75) !important;cursor:pointer !important;transition:color .2s ease,background-color .2s ease !important}
html:not(#cbz):not(#cby) body .cb-cours-x:hover{color:var(--cb-blanc) !important;background:rgba(255,255,255,.14) !important}
html:not(#cbz):not(#cby) body .cb-cours a:focus-visible,html:not(#cbz):not(#cby) body .cb-cours-x:focus-visible,html:not(#cbz):not(#cby) body a.cb-cours:focus-visible{outline:2px solid var(--cb-tomette) !important;outline-offset:2px !important}

/* ---------- 3. La capsule claire de la page RDV atelier, à droite du titre ---------- */
html:not(#cbz):not(#cby) body a.cb-cours-clair,html:not(#cbz):not(#cby) body a.cb-cours-clair:visited{gap:10px !important;padding:8px 14px !important;border:1px solid var(--cb-filet) !important;background:var(--cb-blanc) !important;color:var(--cb-noir) !important;transition:border-color .2s ease !important}
html:not(#cbz):not(#cby) body a.cb-cours-clair:hover{border-color:var(--cb-noir) !important;color:var(--cb-noir) !important}
html:not(#cbz):not(#cby) body .cb-cours-clair .cb-cours-quand{color:var(--cb-texte-2) !important}
html:not(#cbz):not(#cby) body a.cb-cours-clair:hover .cb-cours-lien{color:var(--cb-tomette-survol) !important}

/* ---------- 4. Panneau « Prendre rendez-vous » : 2e ligne sous « Cours de mécanique » ---------- */
html:not(#cbz):not(#cby) body .cbd-liste-deux{display:flex !important;flex-direction:column !important;gap:2px !important;min-width:0 !important}
html:not(#cbz):not(#cby) body .cbd-liste-sous{display:inline-flex !important;align-items:center !important;gap:8px !important;font-family:var(--cb-police-texte) !important;font-weight:400 !important;font-size:13px !important;line-height:1.35 !important;letter-spacing:0 !important;color:var(--cb-tomette-survol) !important}
html:not(#cbz):not(#cby) body .cbd-liste-sous[hidden]{display:none !important}
html:not(#cbz):not(#cby) body .cbd-liste-sous .cb-cours-point{width:7px !important;height:7px !important}

/* ---------- 5. Téléphone : même capsule, sur toute la largeur, sur deux lignes, croix de 44 px ---------- */
@media (max-width:991px){
  html:not(#cbz):not(#cby) body .cb-cours-sombre{display:flex !important;align-self:stretch !important;justify-content:space-between !important;width:100% !important;margin-top:2px !important;padding:4px 4px 4px 14px !important;gap:8px !important}
  html:not(#cbz):not(#cby) body .cb-cours-sombre .cb-cours-quand{display:block !important}
  html:not(#cbz):not(#cby) body .cb-cours-sombre .cb-cours-sep,html:not(#cbz):not(#cby) body .cb-cours-long{display:none !important}
  html:not(#cbz):not(#cby) body .cb-cours-fin{gap:0 !important}
  html:not(#cbz):not(#cby) body .cb-cours-sombre a.cb-cours-lien{display:inline-flex !important;align-items:center !important;min-height:44px !important;padding:0 6px !important}
  html:not(#cbz):not(#cby) body .cb-cours-x{width:44px !important;height:44px !important}
}
@media (max-width:640px){
  html:not(#cbz):not(#cby) body a.cb-cours-clair{display:flex !important;width:100% !important;min-height:44px !important;padding:6px 14px !important}
  html:not(#cbz):not(#cby) body .cb-cours-clair .cb-cours-quoi{flex:1 1 auto !important}
  html:not(#cbz):not(#cby) body .cb-cours-clair .cb-cours-quand{display:block !important}
  html:not(#cbz):not(#cby) body .cb-cours-clair .cb-cours-sep{display:none !important}
}
@media (max-width:380px){
  html:not(#cbz):not(#cby) body .cb-cours-sombre .cb-cours-txt > svg,html:not(#cbz):not(#cby) body .cb-cours-clair > svg{display:none !important}
}

/* ---------- 6. Le visiteur a demandé moins d'animations : le point ne clignote plus, la capsule n'arrive plus en glissant ---------- */
@media (prefers-reduced-motion:reduce){
  html:not(#cbz):not(#cby) body .cb-cours-point,html:not(#cbz):not(#cby) body .cb-cours-sombre{animation:none !important}
}
