/* Parité H/F — pleine largeur, sans effectifs (ratio seul). */

.rdv-parity {
  --rdv-parity-bar-h: 0.55rem;
  --rdv-parity-ink: #1e293b;
  --rdv-parity-muted: rgba(15, 23, 42, 0.55);
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0.45rem 0 0.2rem;
  padding: 0.55rem 0.7rem 0.5rem;
  box-sizing: border-box;
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(255, 247, 240, 0.95) 0%, rgba(254, 240, 230, 0.88) 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 22px -16px rgba(15, 23, 42, 0.18);
  pointer-events: none;
  user-select: none;
}

.rdv-parity--compact {
  --rdv-parity-bar-h: 0.48rem;
  margin: 0.4rem 0 0.15rem;
  padding: 0.48rem 0.6rem 0.42rem;
  border-radius: 12px;
  box-shadow: 0 4px 14px -10px rgba(15, 23, 42, 0.2);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 241, 246, 0.95) 100%);
  border-color: rgba(255, 46, 121, 0.18);
}

.rdv-parity--hero {
  --rdv-parity-bar-h: 0.68rem;
  margin: 0.7rem 0 0.4rem;
  padding: 0.7rem 0.85rem 0.62rem;
  border-radius: 16px;
}

.rdv-parity--balanced {
  border-color: rgba(255, 46, 121, 0.22);
  box-shadow: 0 10px 26px -16px rgba(255, 46, 121, 0.28);
}

.rdv-parity__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.42rem;
  min-width: 0;
}

.rdv-parity--compact .rdv-parity__top {
  margin-bottom: 0.28rem;
}

.rdv-parity__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 46, 121, 0.1);
  border: 1px solid rgba(255, 46, 121, 0.26);
  color: #be185d;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.2;
  flex-shrink: 0;
}

.rdv-parity--compact .rdv-parity__eyebrow {
  font-size: 0.52rem;
  padding: 0.08rem 0.36rem;
  letter-spacing: 0.08em;
}

.rdv-parity__status {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--rdv-parity-ink);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rdv-parity--compact .rdv-parity__status {
  font-size: 0.66rem;
}

/* Fiche événement : pleine largeur du header (hors chip date) */
.ed-header > .rdv-parity,
.ed-header--lead > .rdv-parity {
  align-self: stretch;
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  margin-top: 0.55rem;
  margin-bottom: 0.15rem;
}

.ed-meta,
.ed-meta--lead {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.rdv-parity--balanced .rdv-parity__status {
  color: #be185d;
}

.rdv-parity__bar {
  position: relative;
  display: flex;
  width: 100%;
  height: var(--rdv-parity-bar-h);
  border-radius: 999px;
  overflow: visible;
  background: rgba(15, 23, 42, 0.06);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
}

.rdv-parity__seg {
  display: block;
  height: 100%;
  min-width: 0;
  transition: width 0.35s ease;
}

.rdv-parity__seg--h {
  background: linear-gradient(90deg, #94a3b8 0%, #64748b 100%);
  border-radius: 999px 0 0 999px;
}

.rdv-parity__seg--f {
  background: linear-gradient(90deg, #ff6b9e 0%, #ff2e79 100%);
  border-radius: 0 999px 999px 0;
}

.rdv-parity__mid {
  position: absolute;
  top: -2px;
  bottom: -2px;
  left: 50%;
  width: 1.5px;
  margin-left: -0.75px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
  z-index: 2;
  border-radius: 1px;
  opacity: 0.9;
}

.rdv-parity__marker {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 0;
  height: 0;
  transform: translate(-50%, -50%);
}

.rdv-parity__marker-dot {
  display: block;
  width: calc(var(--rdv-parity-bar-h) + 0.55rem);
  height: calc(var(--rdv-parity-bar-h) + 0.55rem);
  margin-left: calc((var(--rdv-parity-bar-h) + 0.55rem) / -2);
  margin-top: calc((var(--rdv-parity-bar-h) + 0.55rem) / -2);
  border-radius: 50%;
  background: #fff;
  border: 2px solid #ff2e79;
  box-shadow:
    0 0 0 3px rgba(255, 46, 121, 0.14),
    0 4px 10px -2px rgba(15, 23, 42, 0.22);
  box-sizing: border-box;
}

.rdv-parity--compact .rdv-parity__marker-dot {
  width: calc(var(--rdv-parity-bar-h) + 0.42rem);
  height: calc(var(--rdv-parity-bar-h) + 0.42rem);
  margin-left: calc((var(--rdv-parity-bar-h) + 0.42rem) / -2);
  margin-top: calc((var(--rdv-parity-bar-h) + 0.42rem) / -2);
  border-width: 1.5px;
  box-shadow:
    0 0 0 2px rgba(255, 46, 121, 0.12),
    0 2px 6px -1px rgba(15, 23, 42, 0.18);
}

.rdv-parity--balanced .rdv-parity__marker-dot {
  border-color: #ff2e79;
  background: linear-gradient(145deg, #fff 35%, #ffe4ef 100%);
}

.rdv-parity__legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.rdv-parity--compact .rdv-parity__legend {
  margin-top: 0.28rem;
}

.rdv-parity__leg {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--rdv-parity-muted);
  line-height: 1;
}

.rdv-parity--compact .rdv-parity__leg {
  font-size: 0.6rem;
  gap: 0.2rem;
}

.rdv-parity__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.rdv-parity--compact .rdv-parity__dot {
  width: 0.36rem;
  height: 0.36rem;
}

.rdv-parity__leg--h .rdv-parity__dot {
  background: #64748b;
}

.rdv-parity__leg--f .rdv-parity__dot {
  background: #ff2e79;
}

.rdv-parity__leg-k {
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--rdv-parity-ink);
}

.event-mini__body > .rdv-parity {
  pointer-events: none;
  align-self: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  flex-shrink: 0;
}

.event-card .rdv-parity,
.event-card .content > .rdv-parity,
.vp-event-info > .rdv-parity {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin-top: 0.4rem;
  margin-bottom: 0.15rem;
}

.admin-parity-slot .rdv-parity {
  width: 100%;
}
