/***************************************************
 * HEADER CAMPUSQCM — ULTRA PREMIUM FIXED
 ***************************************************/

.cq-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  height: 88px;
  display: flex;
  align-items: center;

  background: linear-gradient(
    180deg,
    rgba(15,17,26,0.92),
    rgba(15,17,26,0.85)
  );

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border-bottom: 1px solid rgba(148,163,184,0.25);
  box-shadow:
    0 8px 24px rgba(0,0,0,0.35),
    inset 0 -1px 0 rgba(255,255,255,0.04);
}

/* Conteneur centré */
.cq-header__inner {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

/***************************************************
 * BRAND
 ***************************************************/
.cq-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.cq-brand__mark {
  width: 14px;
  height: 14px;
  transform: rotate(45deg);
  border-radius: 3px;

  background: linear-gradient(
    135deg,
    var(--qcm-accent),
    #00ffaa
  );

  box-shadow:
    0 0 10px var(--qcm-accent-soft),
    0 0 20px rgba(0,255,170,0.35);
}

.cq-brand__text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/***************************************************
 * NAVIGATION
 ***************************************************/
.cq-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.cq-link {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: #cbd5f5;
  opacity: 0.9;
}

.cq-link:hover {
  opacity: 1;
}

.cq-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: var(--qcm-accent);
  transition: width 0.2s ease;
}

.cq-link:hover::after {
  width: 100%;
}

/* CTA */
.cq-link--cta {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--qcm-accent);
  color: #fff !important;
  box-shadow: 0 0 0 0 var(--qcm-accent-soft);
  animation: cq-cta-pulse 2.8s infinite;
}

.cq-link--cta::after {
  display: none;
}

/***************************************************
 * ACTIONS DROITE
 ***************************************************/
.cq-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cq-iconbtn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,0.3);
  background: rgba(15,23,42,0.65);
  color: #e5e7eb;
  cursor: pointer;
  font-size: 16px;
}

.cq-iconbtn:hover {
  background: rgba(148,163,184,0.15);
}

/* Bouton mode */
.cq-pill {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.35);
  background: rgba(15,23,42,0.65);
  font-size: 13px;
  font-weight: 600;
  color: #e5e7eb;
  cursor: pointer;
}

.cq-pill:hover {
  background: rgba(148,163,184,0.15);
}

/***************************************************
 * POPUP THEME
 ***************************************************/
.cq-popup {
  position: fixed;
  inset: 0;
  z-index: 2000;
}

.cq-hidden {
  display: none;
}

.cq-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.cq-popup__panel {
  position: relative;
  max-width: 420px;
  margin: 12vh auto;
  padding: 18px;
  border-radius: 18px;

  background: linear-gradient(
    180deg,
    rgba(15,17,26,0.98),
    rgba(2,6,23,0.98)
  );

  border: 1px solid rgba(148,163,184,0.35);
  box-shadow: 0 25px 60px rgba(0,0,0,0.6);
}

.cq-popup__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.cq-popup__head h2 {
  font-size: 18px;
  margin: 0;
}

.cq-popup__section {
  margin-top: 16px;
}

.cq-popup__section h3 {
  font-size: 14px;
  margin-bottom: 8px;
  opacity: 0.85;
}

/***************************************************
 * SWATCHES
 ***************************************************/
.cq-swatches {
  display: flex;
  gap: 10px;
}

.cq-swatch {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
}

.cq-swatch.is-active {
  border-color: #fff;
  box-shadow: 0 0 0 3px var(--qcm-accent-soft);
}

.cq-swatch[data-accent="violet"] { background:#7c3aed; }
.cq-swatch[data-accent="blue"]   { background:#3b82f6; }
.cq-swatch[data-accent="green"]  { background:#22c55e; }
.cq-swatch[data-accent="red"]    { background:#ef4444; }

/***************************************************
 * SEGMENT MODE
 ***************************************************/
.cq-seg {
  display: flex;
  gap: 8px;
}

.cq-seg__btn {
  flex: 1;
  padding: 8px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.3);
  background: rgba(15,23,42,0.6);
  color: #e5e7eb;
  cursor: pointer;
  font-size: 13px;
}

.cq-seg__btn.is-active {
  background: var(--qcm-accent);
  border-color: transparent;
}

/***************************************************
 * FOOT
 ***************************************************/
.cq-popup__foot {
  margin-top: 18px;
  text-align: right;
}

.cq-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  background: var(--qcm-accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

/***************************************************
 * UTIL
 ***************************************************/
.cq-noscroll {
  overflow: hidden;
}

/***************************************************
 * ANIMATIONS
 ***************************************************/
@keyframes cq-cta-pulse {
  0%   { box-shadow: 0 0 0 0 var(--qcm-accent-soft); }
  70%  { box-shadow: 0 0 0 12px rgba(0,0,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); }
}
