/* Démonstration CSB Motion — bandeau, mission guidée, accueil (signature violette CSB) */
.csbd-bar, .csbd-panel, .csbd-welcome, .csbd-toast, .qov-csb { --cv: #7b4dff; --cv2: #5b34c7; --cvl: #b9a2ff; font-family: "Inter", system-ui, sans-serif; }
.csbd-bar {
  position: fixed; left: 18px; bottom: 18px; z-index: 9990; display: flex; align-items: center; gap: 8px;
  padding: 7px 7px 7px 14px; border-radius: 999px; background: rgba(12, 11, 18, .82);
  border: 1px solid rgba(185, 162, 255, .28); box-shadow: 0 18px 50px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .03) inset;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #f4f5f7; font-size: 13px;
}
.csbd-brand { display: flex; align-items: center; gap: 8px; color: #f4f5f7; text-decoration: none; padding-right: 4px; }
.csbd-brand b { font-weight: 700; letter-spacing: .02em; }
.csbd-tag { color: #a9a3b8; font-size: 12px; }
.csbd-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cv, #7b4dff); box-shadow: 0 0 12px #7b4dff; display: inline-block; }
.csbd-mission-btn, .csbd-cta {
  border: 0; cursor: pointer; border-radius: 999px; padding: 9px 14px; font: inherit; font-weight: 700; font-size: 13px; text-decoration: none; white-space: nowrap;
}
.csbd-mission-btn { background: rgba(255, 255, 255, .08); color: #f4f5f7; display: flex; align-items: center; gap: 8px; }
.csbd-mission-btn:hover { background: rgba(255, 255, 255, .14); }
.csbd-prog { font-size: 11px; padding: 2px 7px; border-radius: 999px; background: rgba(123, 77, 255, .25); color: #d8ccff; }
.csbd-cta { background: linear-gradient(135deg, #7b4dff, #5b34c7); color: #fff; box-shadow: 0 8px 24px rgba(91, 52, 199, .45); }
.csbd-cta:hover { filter: brightness(1.08); }
.csbd-panel {
  position: fixed; left: 18px; bottom: 82px; z-index: 9991; width: min(380px, calc(100vw - 36px));
  padding: 22px 22px 18px; border-radius: 20px; color: #f4f5f7;
  background: linear-gradient(180deg, rgba(24, 20, 36, .96), rgba(12, 11, 18, .97)); border: 1px solid rgba(185, 162, 255, .25);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.csbd-bar.csbd-pulse { animation: csbdPulse .6s ease; }
.csbd-step { max-width: 230px; overflow: hidden; text-overflow: ellipsis; }
@keyframes csbdPulse { 0% { transform: scale(1); } 40% { transform: scale(1.02); box-shadow: 0 0 0 4px rgba(123, 77, 255, .35), 0 30px 80px rgba(0, 0, 0, .55); } 100% { transform: scale(1); } }
.csbd-x { position: absolute; top: 10px; right: 12px; background: none; border: 0; color: #a9a3b8; font-size: 22px; cursor: pointer; line-height: 1; }
.csbd-eyebrow { display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #b9a2ff; font-weight: 700; margin-bottom: 8px; }
.csbd-panel h3 { color: #fff; font-size: 18px; line-height: 1.25; margin: 0 0 12px; font-weight: 800; letter-spacing: -.01em; }
.csbd-panel p { color: #c9c4d6; font-size: 13.5px; line-height: 1.5; margin: 0 0 14px; }
.csbd-bar-prog { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-bottom: 14px; }
.csbd-bar-prog i { display: block; height: 100%; background: linear-gradient(90deg, #7b4dff, #b9a2ff); transition: width .5s ease; }
.csbd-panel ol { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.csbd-panel li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .05); color: #9a95a8; font-size: 14px; }
.csbd-panel li b { display: block; font-weight: 700; }
.csbd-panel li em { display: block; font-style: normal; color: #c9c4d6; font-size: 12.5px; margin-top: 3px; line-height: 1.4; }
.csbd-panel li.cur { border-color: rgba(123, 77, 255, .5); background: rgba(123, 77, 255, .1); color: #f4f5f7; }
.csbd-panel li.ok { color: #f4f5f7; }
.csbd-n { flex: 0 0 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: rgba(255, 255, 255, .08); }
.csbd-panel li.ok .csbd-n { background: #2fbf71; color: #fff; }
.csbd-panel li.cur .csbd-n { background: #7b4dff; color: #fff; }
.csbd-note { font-size: 11.5px !important; color: #7f7a8e !important; margin: 0 !important; }
.csbd-big {
  display: block; width: 100%; text-align: center; border: 0; cursor: pointer; text-decoration: none; font: inherit; font-weight: 800; font-size: 15px;
  padding: 15px 18px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #7b4dff, #5b34c7); box-shadow: 0 12px 34px rgba(91, 52, 199, .5); margin-bottom: 10px;
}
.csbd-big:hover { filter: brightness(1.08); }
.csbd-link { display: block; width: 100%; text-align: center; background: none; border: 0; cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 600; color: #c9c4d6; padding: 8px; text-decoration: none; }
.csbd-link:hover { color: #fff; }
/* accueil */
.csbd-welcome { position: fixed; inset: 0; z-index: 9995; display: grid; place-items: center; overflow-y: auto; padding: 20px; background: rgba(5, 5, 8, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s ease; }
.csbd-welcome.in { opacity: 1; }
.csbd-card {
  width: min(560px, 100%); padding: 34px 32px 26px; border-radius: 24px; color: #f4f5f7;
  background: radial-gradient(120% 80% at 50% -10%, rgba(123, 77, 255, .28), rgba(16, 14, 24, .98) 55%); border: 1px solid rgba(185, 162, 255, .3);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6); transform: translateY(14px); transition: transform .45s cubic-bezier(.16, 1, .3, 1);
}
.csbd-welcome.in .csbd-card { transform: none; }
.csbd-card h2 { color: #fff; font-size: clamp(26px, 4.6vw, 36px); line-height: 1.08; margin: 6px 0 14px; font-weight: 800; letter-spacing: -.02em; }
.csbd-card h2 em { font-style: normal; color: #b9a2ff; }
.csbd-card p { color: #c9c4d6; font-size: 15px; line-height: 1.55; margin: 0 0 16px; }
.csbd-mission-preview { display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); margin-bottom: 20px; font-size: 14px; }
.csbd-mission-preview span { color: #a9a3b8; font-size: 13px; }
.csbd-legal { font-size: 12px !important; color: #7f7a8e !important; text-align: center; margin: 6px 0 0 !important; }
/* numéros fictifs */
.csbd-toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); z-index: 9996; max-width: min(460px, 90vw); padding: 12px 18px; border-radius: 14px; background: rgba(20, 18, 30, .96); border: 1px solid rgba(185, 162, 255, .3); color: #f4f5f7; font-size: 13.5px; line-height: 1.45; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.csbd-toast.show { opacity: 1; transform: translate(-50%, 0); }
/* confirmation de demande : appel à l'action CSB */
.qov-csb { display: grid; gap: 6px; margin: 16px 0 6px; padding: 16px 18px; border-radius: 14px; text-align: left; background: linear-gradient(135deg, rgba(123, 77, 255, .16), rgba(91, 52, 199, .08)); border: 1px solid rgba(123, 77, 255, .4); }
.qov-csb b { font-size: 15px; color: #fff; }
.qov-csb span { color: #c9c4d6; font-size: 13.5px; }
.qov-csb-btn { justify-self: start; margin-top: 6px; padding: 11px 18px; border-radius: 999px; background: linear-gradient(135deg, #7b4dff, #5b34c7); color: #fff !important; font-weight: 800; text-decoration: none; font-size: 14px; }
@media (max-width: 640px) {
  .csbd-bar { left: 10px; right: 10px; bottom: 10px; justify-content: space-between; padding-left: 12px; }
  .csbd-tag { display: none; }
  .csbd-brand b { display: none; }
  .csbd-step { max-width: 46vw; }
  .csbd-panel { left: 10px; right: 10px; width: auto; bottom: 70px; }
  .csbd-card { padding: 24px 20px 18px; margin: auto 0; }
  .csbd-welcome { place-items: start center; padding: 14px 12px; }
  .csbd-card h2 { font-size: 26px; }
  .csbd-card p { font-size: 14px; }
}
/* message d'arrivée */
.csbd-hint { position: fixed; left: 50%; top: 18px; z-index: 9996; transform: translate(-50%, -14px); opacity: 0; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 11px 20px; border-radius: 16px; background: rgba(12, 11, 18, .88); border: 1px solid rgba(185, 162, 255, .3); color: #f4f5f7; font-family: "Inter", system-ui, sans-serif; text-align: center;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 18px 50px rgba(0, 0, 0, .4); transition: opacity .5s ease, transform .6s cubic-bezier(.16, 1, .3, 1); pointer-events: none; max-width: 92vw; }
.csbd-hint.in { opacity: 1; transform: translate(-50%, 0); }
.csbd-hint b { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #b9a2ff; }
.csbd-hint span { font-size: 13.5px; color: #e4e1ee; }
/* bouton de retour vers le site CSB Motion : bien visible, arrondi, premium */
.csbd-back { display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px 10px 12px; border-radius: 999px; text-decoration: none; white-space: nowrap;
  background: #f2ecfb; color: #171320; font: 600 13.5px/1 "Inter", system-ui, sans-serif; letter-spacing: .01em;
  box-shadow: 0 10px 30px -10px rgba(123, 77, 255, .55), 0 0 0 1px rgba(255, 255, 255, .6) inset; transition: transform .25s, background .25s, color .25s, box-shadow .25s; }
.csbd-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.csbd-back b { font-weight: 800; }
.csbd-back:hover { background: #7b4dff; color: #fff; transform: translateY(-1px); box-shadow: 0 14px 36px -10px rgba(123, 77, 255, .8); }
.csbd-back:hover svg { transform: translateX(-3px); }
.csbd-bar { padding: 6px 6px 6px 6px; gap: 10px; }
.csbd-bar .csbd-tag { display: inline-flex; align-items: center; gap: 8px; padding: 0 4px; }
@media (max-width: 640px) {
  .csbd-bar .csbd-tag { display: none; }
  .csbd-back { padding: 10px 14px 10px 10px; font-size: 13px; }
  .csbd-cta { padding: 10px 14px; font-size: 12.5px; }
}

/* barre de démonstration : jamais plus large que l'écran ; libellés courts sur téléphone */
.csbd-bar { max-width: calc(100vw - 36px); box-sizing: border-box; }
.csbd-back i { font-style: normal; }
.csbd-short { display: none; }
@media (max-width: 640px) {
  .csbd-bar { max-width: none; }
  .csbd-bar > * { min-width: 0; }
  .csbd-long { display: none; }
  .csbd-short { display: inline; }
  .csbd-back, .csbd-cta { font-size: 14px; padding: 12px 16px 12px 12px; }
  .csbd-cta { padding: 12px 18px; }
}
/* message d'arrivée : en bas, au-dessus de la barre — ne recouvre jamais l'en-tête du site */
.csbd-hint { top: auto; bottom: 86px; transform: translate(-50%, 14px); }
.csbd-hint.in { transform: translate(-50%, 0); }
@media (max-width: 640px) { .csbd-hint { bottom: 80px; width: max-content; max-width: calc(100vw - 32px); } .csbd-hint span { font-size: 14px; } }
