/* ==========================================================================
   AgriVirtuel Événements — Pure @ag/design-system (OLED #000, zero blur)
   ========================================================================== */

:root {
  --ev-bg: var(--ds-bg, #000000);
  --ev-surface-1: var(--ds-surface-1, #0b0e14);
  --ev-surface-2: var(--ds-surface-2, #121722);
  --ev-surface-3: var(--ds-surface-3, #182030);
  --ev-border: var(--ds-border, rgba(255, 255, 255, 0.09));
  --ev-border-strong: rgba(255, 255, 255, 0.16);
  --ev-text: var(--ds-text, #f2f5fc);
  --ev-muted: var(--ds-text-muted, #9aa6bf);
  --ev-indigo: #7b7ef2;
  --ev-blue: #4a9be8;
  --ev-teal: #14d8c8;
  --ev-gold: #f5b942;
  --ev-danger: #f25f6d;
  --ev-success: #22d39b;
  --ev-grad: linear-gradient(135deg, #7b7ef2 0%, #4a9be8 52%, #14d8c8 100%);
  --ev-radius: 18px;
  --ev-radius-sm: 12px;
}

.ev-body {
  margin: 0;
  background: var(--ev-bg);
  color: var(--ev-text);
  min-height: 100dvh;
  overflow-x: hidden;
}

/* ─── Shell & Navigation ─────────────────────────────────────────────────── */

.ev-shell {
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
  min-height: 100dvh;
  background: var(--ev-bg);
}

.ev-rail {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 14px;
  background: var(--ev-surface-1);
  border-inline-end: 1px solid var(--ev-border);
  overflow-y: auto;
}

.ev-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px;
  text-decoration: none;
  color: inherit;
  border-radius: var(--ev-radius-sm);
}

.ev-brand__logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--ev-surface-2);
  border: 1px solid var(--ev-border);
  display: grid;
  place-items: center;
  padding: 5px;
  flex: none;
}

.ev-brand__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.ev-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.ev-brand__title {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.ev-brand__sub {
  font-size: 0.76rem;
  color: var(--ev-teal);
  font-weight: 600;
}

.ev-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.ev-nav__label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ev-muted);
  padding: 12px 10px 4px;
}

.ev-nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--ev-muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  text-align: start;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.ev-nav-item:hover {
  background: var(--ev-surface-2);
  color: var(--ev-text);
}

.ev-nav-item[aria-current="page"] {
  background: rgba(123, 126, 242, 0.14);
  border-color: rgba(123, 126, 242, 0.32);
  color: var(--ev-text);
}

.ev-nav-item[aria-current="page"] .ds-icon {
  color: var(--ev-teal);
}

.ev-nav-badge {
  margin-inline-start: auto;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--ev-surface-3);
  color: var(--ev-text);
}

.ev-nav-badge--live {
  background: rgba(242, 95, 109, 0.2);
  color: #ff808c;
  border: 1px solid rgba(242, 95, 109, 0.45);
}

.ev-nav-badge--accent {
  background: rgba(20, 216, 200, 0.16);
  color: var(--ev-teal);
}

.ev-nav-badge--soon {
  background: rgba(245, 185, 66, 0.14);
  color: var(--ev-gold);
}

.ev-rail-footer {
  padding-top: 12px;
  border-top: 1px solid var(--ev-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ev-user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--ev-surface-2);
  border: 1px solid var(--ev-border);
}

.ev-user-pill__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--ev-surface-3);
  flex: none;
}

.ev-user-pill__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ev-user-pill__name {
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ev-user-pill__farm {
  font-size: 0.74rem;
  color: var(--ev-teal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ev-login-btn {
  width: 100%;
  justify-content: center;
}

/* ─── Workspace & Topbar ─────────────────────────────────────────────────── */

.ev-workspace {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ev-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: var(--ev-bg);
  border-bottom: 1px solid var(--ev-border);
}

.ev-topbar__left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ev-mobile-brand {
  display: none;
  width: 36px;
  height: 36px;
  padding: 5px;
  border-radius: 10px;
  background: var(--ev-surface-2);
  border: 1px solid var(--ev-border);
  flex: none;
}

.ev-mobile-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ev-topbar__headings {
  min-width: 0;
}

.ev-topbar__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ev-topbar__sub {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: var(--ev-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ev-topbar__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.ev-topbar-user {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ev-surface-2);
  border: 1px solid var(--ev-border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ev-text);
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ev-topbar-user .ds-icon {
  color: var(--ev-teal);
}

.ev-audio-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(242, 95, 109, 0.16);
  border: 1px solid rgba(242, 95, 109, 0.45);
  color: #ff9aa3;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.ev-main {
  width: 100%;
  max-width: 1220px;
  margin-inline: auto;
  padding: 24px;
  flex: 1;
}

.ev-view {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ─── Composants communs ─────────────────────────────────────────────────── */

.ev-panel {
  background: var(--ev-surface-1);
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ev-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ev-panel__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
}

.ev-panel__sub {
  margin: 4px 0 0;
  font-size: 0.84rem;
  color: var(--ev-muted);
  line-height: 1.45;
}

.ev-section-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ev-section-title {
  margin: 4px 0 0;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ev-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  background: var(--ev-surface-2);
  border: 1px solid var(--ev-border);
  color: var(--ev-muted);
  white-space: nowrap;
}

.ev-pill--teal {
  background: rgba(20, 216, 200, 0.14);
  border-color: rgba(20, 216, 200, 0.35);
  color: var(--ev-teal);
}

.ev-pill--live {
  background: rgba(242, 95, 109, 0.18);
  border-color: rgba(242, 95, 109, 0.5);
  color: #ff8793;
}

.ev-pill--soon {
  background: rgba(245, 185, 66, 0.14);
  border-color: rgba(245, 185, 66, 0.4);
  color: var(--ev-gold);
}

.ev-pill--indigo {
  background: rgba(123, 126, 242, 0.16);
  border-color: rgba(123, 126, 242, 0.4);
  color: #a7a9ff;
}

.ev-offline-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--ev-radius-sm);
  background: rgba(242, 95, 109, 0.12);
  border: 1px solid rgba(242, 95, 109, 0.35);
  color: var(--ev-text);
}

.ev-offline-banner .ds-icon {
  color: var(--ev-danger);
  flex: none;
}

.ev-offline-banner p {
  margin: 4px 0 0;
  font-size: 0.84rem;
  color: var(--ev-muted);
}

.ev-offline-banner button {
  margin-inline-start: auto;
  flex: none;
}

.ev-auth-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: var(--ev-radius-sm);
  background: var(--ev-surface-2);
  border: 1px solid var(--ev-border);
  font-size: 0.86rem;
  color: var(--ev-muted);
}

.ev-auth-notice .ds-icon {
  color: var(--ev-indigo);
}

.ev-auth-notice a {
  margin-inline-start: auto;
}

.ev-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ev-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--ev-radius-sm);
  background: var(--ev-surface-2);
  border: 1px solid var(--ev-border);
  font-size: 0.86rem;
}

.ev-list-empty {
  padding: 16px;
  border-radius: var(--ev-radius-sm);
  background: var(--ev-surface-2);
  border: 1px dashed var(--ev-border);
  color: var(--ev-muted);
  font-size: 0.84rem;
  text-align: center;
}

/* ─── Vue Hub ────────────────────────────────────────────────────────────── */

.ev-hero {
  background: var(--ev-surface-1);
  border: 1px solid var(--ev-border);
  border-radius: 22px;
  padding: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.ev-hero__copy {
  max-width: 640px;
}

.ev-hero__title {
  margin: 6px 0 8px;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.ev-hero__desc {
  margin: 0;
  color: var(--ev-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.ev-hero__status {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ev-status-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--ev-surface-2);
  border: 1px solid var(--ev-border);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ev-muted);
}

.ev-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ev-muted);
}

.ev-status-dot[data-state="ok"] .ev-dot {
  background: var(--ev-success);
}

.ev-status-dot[data-state="down"] .ev-dot {
  background: var(--ev-danger);
}

.ev-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ev-hub-card {
  background: var(--ev-surface-1);
  border: 1px solid var(--ev-border);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.ev-hub-card:hover {
  border-color: var(--ev-border-strong);
  transform: translateY(-2px);
}

.ev-hub-card--soon {
  border-style: dashed;
  border-color: rgba(245, 185, 66, 0.32);
}

.ev-hub-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ev-hub-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
}

.ev-hub-card__icon--teal {
  background: rgba(20, 216, 200, 0.14);
  color: var(--ev-teal);
}

.ev-hub-card__icon--blue {
  background: rgba(74, 155, 232, 0.16);
  color: var(--ev-blue);
}

.ev-hub-card__icon--indigo {
  background: rgba(123, 126, 242, 0.16);
  color: var(--ev-indigo);
}

.ev-hub-card__icon--gold {
  background: rgba(245, 185, 66, 0.15);
  color: var(--ev-gold);
}

.ev-hub-card__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
}

.ev-hub-card__desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ev-muted);
  line-height: 1.48;
  flex: 1;
}

.ev-hub-card__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ev-metric {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--ev-surface-2);
  border: 1px solid var(--ev-border);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ev-metric__label {
  font-size: 0.72rem;
  color: var(--ev-muted);
  font-weight: 600;
}

.ev-metric__value {
  font-size: 0.96rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ev-metric__value--accent {
  color: var(--ev-teal);
}

.ev-hub-card__cta {
  width: 100%;
  justify-content: space-between;
}

/* ─── Vue Loto ───────────────────────────────────────────────────────────── */

.ev-loto-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
  gap: 18px;
  align-items: start;
}

.ev-loto-primary,
.ev-loto-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ev-jackpot-card {
  background: var(--ev-surface-1);
  border: 1px solid rgba(20, 216, 200, 0.28);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ev-jackpot-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ev-jackpot-card__title {
  margin: 4px 0 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.ev-jackpot-amount {
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  background: var(--ev-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.08;
}

.ev-jackpot-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 0.82rem;
  color: var(--ev-muted);
}

.ev-jackpot-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ev-quota-pill {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--ev-surface-2);
  border: 1px solid var(--ev-border);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--ev-teal);
}

.ev-loto-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ev-loto-ball {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  border: 1px solid var(--ev-border-strong);
  background: var(--ev-surface-2);
  color: var(--ev-text);
  font: inherit;
  font-size: 1.55rem;
  font-weight: 800;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.14s ease, border-color 0.14s ease, background-color 0.14s ease;
  touch-action: manipulation;
}

.ev-loto-ball:hover:not(:disabled) {
  border-color: var(--ev-teal);
  transform: translateY(-2px);
}

.ev-loto-ball[aria-pressed="true"] {
  background: var(--ev-grad);
  border-color: transparent;
  color: #03070c;
  transform: scale(1.03);
}

.ev-loto-ball:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ev-loto-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 6px;
  border-top: 1px solid var(--ev-border);
}

.ev-selected-preview {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ev-muted);
}

.ev-loto-btns {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ev-ticket-balls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ev-mini-ball {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(20, 216, 200, 0.16);
  border: 1px solid rgba(20, 216, 200, 0.4);
  color: var(--ev-teal);
  font-size: 0.82rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

/* ─── Vue Enchères ───────────────────────────────────────────────────────── */

.ev-live-stage {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  gap: 20px;
  background: var(--ev-surface-1);
  border: 1px solid rgba(74, 155, 232, 0.35);
  border-radius: 22px;
  padding: 20px;
}

.ev-live-stage__media {
  position: relative;
  border-radius: 16px;
  background: var(--ev-surface-2);
  border: 1px solid var(--ev-border);
  overflow: hidden;
  min-height: 260px;
  display: grid;
  place-items: center;
}

.ev-live-stage__media img {
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
}

.ev-live-placeholder {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: var(--ev-surface-3);
  color: var(--ev-blue);
}

.ev-live-placeholder .ds-icon {
  font-size: 36px;
}

.ev-live-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(242, 95, 109, 0.92);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.ev-live-tag--secret {
  background: #7b7ef2;
}

.ev-live-stage__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ev-live-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ev-live-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
}

.ev-live-desc {
  margin: 6px 0 0;
  font-size: 0.88rem;
  color: var(--ev-muted);
  line-height: 1.45;
}

.ev-countdown-box {
  padding: 8px 14px;
  border-radius: 14px;
  background: var(--ev-surface-2);
  border: 1px solid var(--ev-border);
  text-align: center;
  min-width: 92px;
  flex: none;
}

.ev-countdown-box--urgent {
  border-color: var(--ev-danger);
  background: rgba(242, 95, 109, 0.15);
}

.ev-countdown-box__label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--ev-muted);
  font-weight: 700;
}

.ev-countdown-box__time {
  font-size: 1.35rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.ev-live-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ev-stat-tile {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--ev-surface-2);
  border: 1px solid var(--ev-border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ev-stat-tile__label {
  font-size: 0.75rem;
  color: var(--ev-muted);
  font-weight: 600;
}

.ev-stat-tile__value {
  font-size: 1.15rem;
  font-weight: 800;
}

.ev-stat-tile__value--accent {
  color: var(--ev-teal);
}

.ev-secret-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(123, 126, 242, 0.14);
  border: 1px solid rgba(123, 126, 242, 0.35);
  font-size: 0.85rem;
  color: #d6d8ff;
}

.ev-bid-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ev-quick-bids {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ev-bid-input-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

/* Validation moderne (:user-invalid + hint au-dessus du champ) */
.ev-field {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ev-field__label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ev-text);
}

.ev-field__hint {
  font-size: 0.76rem;
  color: var(--ev-muted);
}

.ev-input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--ev-border-strong);
  background: var(--ev-surface-2);
  color: var(--ev-text);
  font: inherit;
  font-size: 0.96rem;
  font-weight: 700;
  outline: none;
  transition: border-color 0.15s ease;
}

.ev-input:focus {
  border-color: var(--ev-teal);
}

.ev-input:is(:user-invalid, .user-invalid-fallback) {
  border-color: var(--ev-danger);
  background: rgba(242, 95, 109, 0.08);
}

.ev-field__error {
  display: none;
  font-size: 0.78rem;
  color: #ff8c97;
  font-weight: 600;
}

.ev-input:is(:user-invalid, .user-invalid-fallback) + .ev-field__error {
  display: block;
}

.ev-bid-submit {
  height: 45px;
  padding-inline: 20px;
}

.ev-sub-heading {
  margin: 4px 0 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ev-muted);
}

.ev-empty-stage {
  background: var(--ev-surface-1);
  border: 1px dashed var(--ev-border-strong);
  border-radius: 20px;
  padding: 36px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.ev-empty-stage__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--ev-surface-2);
  color: var(--ev-blue);
  display: grid;
  place-items: center;
}

.ev-empty-stage h3 {
  margin: 0;
  font-size: 1.08rem;
}

.ev-empty-stage p {
  margin: 0;
  max-width: 480px;
  color: var(--ev-muted);
  font-size: 0.88rem;
}

/* ─── Onglets in-page accessibles (guide tabs) ───────────────────────────── */

.ev-tabs-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ev-tablist {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  border-bottom: 1px solid var(--ev-border);
  scrollbar-width: none;
}

.ev-tablist::-webkit-scrollbar {
  display: none;
}

.ev-tab {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border: 0;
  background: transparent;
  color: var(--ev-muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.ev-tab:hover {
  color: var(--ev-text);
}

.ev-tab[aria-selected="true"] {
  color: var(--ev-text);
}

.ev-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  inset: auto 8px 0;
  border-block-end: 3px solid var(--ev-teal);
}

.ev-tab__count {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--ev-surface-2);
  color: var(--ev-muted);
}

.ev-lots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.ev-lot-card {
  background: var(--ev-surface-1);
  border: 1px solid var(--ev-border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ev-lot-card__img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: var(--ev-surface-2);
  display: block;
}

.ev-lot-card__placeholder {
  width: 100%;
  height: 150px;
  background: var(--ev-surface-2);
  display: grid;
  place-items: center;
  color: var(--ev-muted);
}

.ev-lot-card__body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.ev-lot-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.ev-lot-card__title {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 700;
}

.ev-lot-card__desc {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ev-muted);
  line-height: 1.4;
  flex: 1;
}

.ev-lot-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--ev-border);
  font-size: 0.84rem;
}

/* ─── Vue Roue de la Fortune ─────────────────────────────────────────────── */

.ev-test-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(123, 126, 242, 0.14);
  border: 1px solid rgba(123, 126, 242, 0.35);
  font-size: 0.86rem;
}

.ev-test-banner button {
  margin-inline-start: auto;
}

.ev-wheel-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 20px;
  align-items: start;
}

.ev-wheel-stage {
  background: var(--ev-surface-1);
  border: 1px solid var(--ev-border);
  border-radius: 22px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.ev-wheel-status-bar {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--ev-surface-2);
  border: 1px solid var(--ev-border);
  font-size: 0.84rem;
  color: var(--ev-muted);
}

.ev-wheel-frame {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}

#wheel-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.ev-wheel-pointer {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%) rotate(var(--needle-deg, 0deg));
  transform-origin: 50% 0;
  width: 0;
  height: 0;
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
  border-top: 26px solid var(--ev-teal);
  z-index: 4;
  transition: transform 0.08s ease;
}

.ev-wheel-hub-btn {
  position: absolute;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 3px solid var(--ev-bg);
  background: var(--ev-grad);
  color: #03070c;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  z-index: 5;
  transition: transform 0.14s ease, opacity 0.14s ease;
  touch-action: manipulation;
}

.ev-wheel-hub-btn:hover:not(:disabled) {
  transform: scale(1.06);
}

.ev-wheel-hub-btn:disabled {
  background: var(--ev-surface-3);
  color: var(--ev-muted);
  cursor: not-allowed;
}

.ev-wheel-footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.ev-wheel-quota {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ev-text);
}

.ev-wheel-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ev-prizes-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
  padding-inline-end: 4px;
}

.ev-prize-item {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--ev-surface-2);
  border: 1px solid var(--ev-border);
  border-inline-start: 3px solid var(--ev-muted);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ev-prize-item[data-type="GRAAL"] { border-inline-start-color: var(--ev-gold); }
.ev-prize-item[data-type="BONUS"] { border-inline-start-color: var(--ev-teal); }
.ev-prize-item[data-type="REPLAY"],
.ev-prize-item[data-type="DOUBLE_REPLAY"] { border-inline-start-color: var(--ev-indigo); }
.ev-prize-item[data-type="MALUS"] { border-inline-start-color: var(--ev-danger); }

.ev-prize-item__label {
  font-size: 0.84rem;
  font-weight: 800;
}

.ev-prize-item__desc {
  font-size: 0.75rem;
  color: var(--ev-muted);
  line-height: 1.35;
}

/* ─── Vue Farm & Style (Coming Soon) ─────────────────────────────────────── */

.ev-soon-hero {
  background: var(--ev-surface-1);
  border: 1px dashed rgba(245, 185, 66, 0.35);
  border-radius: 22px;
  padding: 36px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.ev-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(245, 185, 66, 0.14);
  border: 1px solid rgba(245, 185, 66, 0.42);
  color: var(--ev-gold);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.ev-soon-title {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.ev-soon-desc {
  margin: 0;
  max-width: 600px;
  color: var(--ev-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.ev-soon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* ─── Dialogue natif résultat Roue (conforme guide dialog) ───────────────── */

.ev-dialog {
  padding: 0;
  border: 1px solid var(--ev-border-strong);
  border-radius: 22px;
  background: var(--ev-surface-1);
  color: var(--ev-text);
  width: min(92vw, 440px);
  max-width: 440px;
}

.ev-dialog:modal {
  overscroll-behavior: contain;
}

.ev-dialog::backdrop {
  background: rgba(0, 0, 0, 0.8);
  overflow: hidden;
  overscroll-behavior: contain;
}

.ev-dialog__frame {
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.ev-dialog__icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--ev-surface-2);
  border: 1px solid var(--ev-border);
  display: grid;
  place-items: center;
  font-size: 2rem;
}

.ev-dialog__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
}

.ev-dialog__desc {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ev-muted);
  line-height: 1.5;
}

.ev-dialog__meta {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ev-teal);
  font-weight: 700;
}

.ev-dialog__actions {
  margin-top: 8px;
  width: 100%;
  display: flex;
  justify-content: center;
}

/* ─── Bottom Navigation Mobile ───────────────────────────────────────────── */

.ev-bottom-nav {
  display: none;
}

/* ─── Visually Hidden (accessible announcer) ─────────────────────────────── */

.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

/* ─── Responsive Tablette & Mobile ───────────────────────────────────────── */

@media (max-width: 1024px) {
  .ev-loto-layout,
  .ev-live-stage,
  .ev-wheel-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .ev-soon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .ev-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .ev-rail {
    display: none;
  }

  .ev-mobile-brand {
    display: grid;
    place-items: center;
  }

  .ev-topbar {
    padding: 12px 16px;
  }

  .ev-topbar__sub {
    display: none;
  }

  .ev-main {
    padding: 16px 14px calc(86px + env(safe-area-inset-bottom, 0px));
  }

  .ev-hub-grid,
  .ev-soon-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ev-bottom-nav {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
    background: var(--ev-surface-1);
    border-top: 1px solid var(--ev-border);
  }

  .ev-bnav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 4px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--ev-muted);
    font: inherit;
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
    touch-action: manipulation;
  }

  .ev-bnav-item[aria-current="page"] {
    color: var(--ev-teal);
    background: rgba(20, 216, 200, 0.1);
  }

  .ev-bnav-dot {
    position: absolute;
    top: 5px;
    right: 18%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ev-danger);
  }
}

@media (max-width: 480px) {
  .ev-loto-grid {
    gap: 8px;
  }

  .ev-loto-ball {
    font-size: 1.25rem;
    border-radius: 12px;
  }

  .ev-live-stats,
  .ev-hub-card__metrics {
    grid-template-columns: minmax(0, 1fr);
  }
}
