/* =============================================================================
   Banner MaQuickPage — TOP RIBBON + BOTTOM BAR + PILL collapsed
   ============================================================================= */

/* ── TOP RIBBON ──────────────────────────────────────────────────────────── */
#mqs-ribbon {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 36px;
  z-index: 2147483645;
  background: #0E1014;
  color: #E8E8EC;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  font-size: 12.5px;
  letter-spacing: .005em;
  display: flex; align-items: center;
  animation: mqsRibbonIn .35s cubic-bezier(.2,.7,.2,1);
}
@keyframes mqsRibbonIn {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}
.mqs-ribbon-inner {
  width: 100%; height: 100%;
  padding: 0 18px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.mqs-ribbon-left {
  display: flex; align-items: center; gap: 12px;
  min-width: 0;
}
.mqs-ribbon-chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 20px; padding: 0 8px;
  background: #D4FF3A;
  color: #0E1014;
  border-radius: 4px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px; font-weight: 600;
  letter-spacing: .08em;
  flex-shrink: 0;
}
.mqs-ribbon-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  animation: mqsDot 1.8s infinite;
}
@keyframes mqsDot {
  0%   { box-shadow: 0 0 0 0   currentColor; opacity: 1;  }
  70%  { box-shadow: 0 0 0 5px transparent;  opacity: .6; }
  100% { box-shadow: 0 0 0 0   transparent;  opacity: 1;  }
}
.mqs-ribbon-text {
  opacity: .85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mqs-ribbon-text b { font-weight: 600; opacity: 1; }
.mqs-ribbon-text--sm {
  opacity: .45;
  font-size: 11.5px;
}
@media (max-width: 900px) { .mqs-ribbon-text--sm { display: none; } }
@media (max-width: 640px) {
  .mqs-ribbon-text:not(.mqs-ribbon-text--sm) { font-size: 11.5px; }
}

.mqs-ribbon-cta {
  appearance: none; border: 0; background: transparent;
  font: inherit; font-weight: 600; font-size: 12.5px;
  color: #D4FF3A;
  display: inline-flex; align-items: center; cursor: pointer;
  padding: 6px 2px;
  flex-shrink: 0;
}
.mqs-ribbon-cta:hover { opacity: .85; }
.mqs-ribbon-cta svg { margin-left: 6px; }

/* ── BOTTOM BAR ──────────────────────────────────────────────────────────── */
#mqs-bar-wrap {
  position: fixed;
  left: 50%; bottom: 20px;
  transform: translateX(-50%);
  z-index: 2147483644;
  animation: mqsBarRise .35s cubic-bezier(.2,.7,.2,1);
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
}
@keyframes mqsBarRise {
  from { opacity: 0; transform: translate(-50%, 16px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
.mqs-bar {
  position: relative;
  width: min(760px, calc(100vw - 40px));
  background: #fff;
  color: #111;
  border-radius: 14px;
  box-shadow:
    0 1px 0 rgba(255,255,255,.9) inset,
    0 20px 60px -10px rgba(0,0,0,.45),
    0 8px 24px -8px rgba(0,0,0,.3);
  padding: 14px 16px 14px 18px;
}
.mqs-bar--pulse {
  animation: mqsBarPulse 1.2s cubic-bezier(.2,.7,.2,1);
}
@keyframes mqsBarPulse {
  0%   { box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 20px 60px -10px rgba(0,0,0,.45), 0 0 0 0   rgba(212,255,58,.55); }
  40%  { box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 20px 60px -10px rgba(0,0,0,.45), 0 0 0 14px rgba(212,255,58,0);  }
  100% { box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 20px 60px -10px rgba(0,0,0,.45), 0 0 0 0   rgba(212,255,58,0);   }
}
.mqs-bar-min {
  position: absolute; top: 8px; right: 10px;
  appearance: none; border: 0; background: transparent;
  width: 22px; height: 22px; border-radius: 6px;
  color: rgba(0,0,0,.4); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.mqs-bar-min:hover { background: rgba(0,0,0,.06); color: rgba(0,0,0,.7); }

.mqs-bar-inner {
  display: flex; align-items: center; gap: 14px;
}
.mqs-bar-avatars {
  display: flex; align-items: center;
  flex: 0 0 auto;
}
.mqs-ava {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid #fff;
  background-size: cover; background-position: center;
  margin-right: -8px;
}
.mqs-ava--1 { background: linear-gradient(135deg, #f3a683, #e17055); }
.mqs-ava--2 { background: linear-gradient(135deg, #a29bfe, #6c5ce7); }
.mqs-ava--3 { background: linear-gradient(135deg, #55efc4, #00b894); }
.mqs-ava--n {
  width: 30px; height: 30px; border-radius: 50%;
  background: #0E1014; color: #D4FF3A;
  border: 2px solid #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; letter-spacing: .02em;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  margin-right: 0;
}

.mqs-bar-copy {
  flex: 1 1 auto; min-width: 0; line-height: 1.35;
}
.mqs-bar-copy-1 {
  font-size: 14.5px; font-weight: 500;
  color: #0E1014;
}
.mqs-bar-copy-1 b { font-weight: 700; }
.mqs-bar-copy-2 {
  margin-top: 4px;
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px;
  color: rgba(0,0,0,.55);
}
.mqs-price-chip {
  display: inline-flex; align-items: center;
  background: #0E1014; color: #D4FF3A;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px; font-weight: 600;
  padding: 2px 7px; border-radius: 5px;
  letter-spacing: .01em;
}
.mqs-bar-sub { color: rgba(0,0,0,.55); }

.mqs-bar-cta {
  appearance: none; border: 0; cursor: pointer;
  background: #0E1014; color: #fff;
  font: inherit; font-weight: 600; font-size: 14px;
  padding: 13px 18px;
  border-radius: 10px;
  flex: 0 0 auto;
  transition: transform .15s ease, background .15s ease;
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 2px 6px rgba(0,0,0,.25);
  white-space: nowrap;
}
.mqs-bar-cta:hover { background: #1a1d23; transform: translateY(-1px); }
.mqs-bar-cta:active { transform: translateY(0); }

/* ── MINIMIZED PILL ──────────────────────────────────────────────────────── */
#mqs-pill-wrap {
  position: fixed;
  left: 50%; bottom: 24px;
  transform: translateX(-50%);
  z-index: 2147483644;
  animation: mqsPillIn .3s cubic-bezier(.2,.7,.2,1);
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
}
@keyframes mqsPillIn {
  from { opacity: 0; transform: translate(-50%, 12px) scale(.96); }
  to   { opacity: 1; transform: translate(-50%, 0) scale(1); }
}
.mqs-pill {
  appearance: none; border: 0; cursor: pointer;
  background: #0E1014; color: #fff;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 9px 9px 9px 14px;
  border-radius: 999px;
  font: inherit;
  box-shadow:
    0 1px 0 rgba(255,255,255,.08) inset,
    0 18px 40px -8px rgba(0,0,0,.55),
    0 6px 18px -6px rgba(0,0,0,.4);
  transition: transform .15s ease;
}
.mqs-pill:hover { transform: translateY(-1px); }
.mqs-pill-price {
  background: #D4FF3A; color: #0E1014;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px; font-weight: 700;
  padding: 4px 8px; border-radius: 999px;
  letter-spacing: .01em;
}
.mqs-pill-label { font-size: 13.5px; font-weight: 600; }
.mqs-pill-expand {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
  margin-left: 2px;
  cursor: pointer;
}
.mqs-pill-expand:hover { background: rgba(255,255,255,.15); color: #fff; }

/* ── Bar responsive ───────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .mqs-bar {
    width: calc(100vw - 24px);
    padding: 12px 14px;
  }
  .mqs-bar-avatars { display: none; }
  .mqs-bar-copy-1 { font-size: 13px; }
  .mqs-bar-copy-2 { font-size: 11.5px; }
  .mqs-bar-cta { padding: 11px 14px; font-size: 13px; }
}

/* ── Ajustements pour les sites coiffeur (navbar fixée en haut) ─────────── */
/* Le ribbon prend la place 36px en haut : on pousse la navbar existante. */
body:has(#mqs-ribbon) .navbar { top: 36px !important; }
