/* ============================================================
   HAUSTIN AWARDS 2026 — Prestige Noir & Or (Impeccable System)
   ============================================================ */

:root {
  /* Palette OKLCH — Obsidienne chaude & Or brossé */
  --bg-canvas: oklch(0.125 0.008 75);
  --bg-surface: oklch(0.162 0.009 75);
  --bg-surface-hover: oklch(0.195 0.012 76);
  --bg-elevated: oklch(0.215 0.013 76);
  --bg-input: oklch(0.135 0.008 75);

  --gold-deep: oklch(0.56 0.105 80);
  --gold-mid: oklch(0.73 0.12 83);
  --gold-bright: oklch(0.83 0.115 84);
  --gold-champagne: oklch(0.90 0.075 86);
  --gold-tint: oklch(0.73 0.12 83 / 0.11);
  --gold-tint-strong: oklch(0.73 0.12 83 / 0.2);

  --border-subtle: oklch(0.92 0.015 82 / 0.09);
  --border-gold: oklch(0.76 0.11 83 / 0.26);
  --border-gold-strong: oklch(0.84 0.11 84 / 0.62);

  /* Contrastes WCAG AA (>= 4.5:1 sur --bg-surface) */
  --text-ivory: oklch(0.955 0.012 82);
  --text-secondary: oklch(0.81 0.02 80);
  --text-muted: oklch(0.70 0.022 79);
  --text-ink: oklch(0.14 0.015 75);

  --emerald: oklch(0.76 0.13 158);
  --emerald-bg: oklch(0.76 0.13 158 / 0.13);
  --crimson: oklch(0.71 0.16 22);
  --crimson-bg: oklch(0.71 0.16 22 / 0.13);
  --amber: oklch(0.80 0.14 78);
  --amber-bg: oklch(0.80 0.14 78 / 0.13);

  /* Rythme spatial */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Profondeur directionnelle (jamais de halo plat à offset zéro) */
  --shadow-sm: 0 4px 14px -4px oklch(0.05 0.005 75 / 0.65);
  --shadow-md: 0 14px 34px -12px oklch(0.04 0.005 75 / 0.78), 0 2px 6px oklch(0.04 0.005 75 / 0.45);
  --shadow-lg: 0 28px 64px -18px oklch(0.03 0.005 75 / 0.88), 0 4px 12px oklch(0.04 0.005 75 / 0.5);

  --font-display: 'Cinzel', Georgia, 'Times New Roman', serif;
  --font-editorial: 'Cormorant Garamond', Georgia, serif;
  --font-ui: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 200ms var(--ease-out);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

/* Surfaces navigateur harmonisées à la palette */
::selection {
  background: var(--gold-mid);
  color: var(--text-ink);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-canvas);
}

::-webkit-scrollbar-thumb {
  background: oklch(0.32 0.025 78);
  border-radius: var(--radius-pill);
  border: 2px solid var(--bg-canvas);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-deep);
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg-canvas);
  color: var(--text-ivory);
  font-family: var(--font-ui);
  font-size: 0.96rem;
  line-height: 1.58;
  caret-color: var(--gold-bright);
  text-underline-offset: 0.22em;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 400;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--gold-bright);
  color: var(--text-ink);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  left: 16px;
}

.ambient-spotlight {
  position: fixed;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: min(980px, 125vw);
  height: 440px;
  background: radial-gradient(ellipse at center, oklch(0.75 0.11 83 / 0.10) 0%, oklch(0.75 0.11 83 / 0.02) 48%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.tabular,
.kpi-value,
.leader-score,
.progress-meta strong,
.award-step-label {
  font-variant-numeric: tabular-nums;
}

.svg-icon {
  display: inline-block;
  vertical-align: -0.15em;
  flex-shrink: 0;
}

/* ================= HEADER ================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(0.125 0.008 75 / 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  padding: 4px 0;
  cursor: pointer;
  color: inherit;
  text-align: left;
  transition: opacity var(--transition);
}

.brand-mark:hover {
  opacity: 0.86;
}

.brand-crest {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-gold);
  background: var(--bg-surface);
  color: var(--gold-bright);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-champagne);
}

.brand-year {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--gold-mid);
  font-variant-numeric: tabular-nums;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
}

.mode-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.mode-pill.online {
  border-color: oklch(0.76 0.13 158 / 0.35);
  color: var(--emerald);
  background: var(--emerald-bg);
}

.mode-pill.online .dot {
  background: var(--emerald);
}

.mode-pill.local {
  border-color: oklch(0.80 0.14 78 / 0.35);
  color: var(--amber);
  background: var(--amber-bg);
}

.mode-pill.local .dot {
  background: var(--amber);
}

/* ================= MAIN & FOOTER ================= */

.app-main {
  position: relative;
  z-index: 2;
  flex: 1;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: var(--space-7) 24px var(--space-8);
}

.site-footer {
  position: relative;
  z-index: 2;
  padding: 20px 24px 36px;
  text-align: center;
}

.footer-divider {
  max-width: 180px;
  height: 1px;
  margin: 0 auto 16px;
  background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
}

.footer-text {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ================= BUTTONS ================= */

button {
  font-family: var(--font-ui);
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--gold-champagne);
  background: linear-gradient(180deg, var(--gold-champagne) 0%, var(--gold-mid) 100%);
  color: var(--text-ink);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), filter var(--transition), box-shadow var(--transition);
}

.btn-gold:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: var(--shadow-md);
}

.btn-gold:active:not(:disabled) {
  transform: translateY(0);
}

.btn-gold:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-ghost-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-gold);
  background: var(--gold-tint);
  color: var(--gold-champagne);
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.btn-ghost-gold:hover:not(:disabled) {
  background: var(--gold-tint-strong);
  border-color: var(--border-gold-strong);
}

.btn-subtle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.86rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn-subtle:hover:not(:disabled) {
  background: var(--bg-surface-hover);
  border-color: var(--border-gold);
  color: var(--text-ivory);
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid oklch(0.71 0.16 22 / 0.38);
  background: var(--crimson-bg);
  color: oklch(0.84 0.11 22);
  font-weight: 600;
  font-size: 0.84rem;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.btn-danger:hover:not(:disabled) {
  background: oklch(0.71 0.16 22 / 0.24);
  border-color: oklch(0.71 0.16 22 / 0.65);
}

.btn-sm {
  min-height: 36px;
  padding: 6px 14px;
  font-size: 0.82rem;
}

.btn-xs {
  min-height: 32px;
  padding: 5px 11px;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.icon-btn:hover:not(:disabled) {
  border-color: var(--border-gold);
  color: var(--gold-champagne);
  background: var(--gold-tint);
}

.icon-btn.danger:hover:not(:disabled) {
  border-color: oklch(0.71 0.16 22 / 0.55);
  color: var(--crimson);
  background: var(--crimson-bg);
}

.icon-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ================= HERO & HEADINGS ================= */

.hero-section {
  text-align: center;
  max-width: 68ch;
  margin: 0 auto var(--space-7);
}

.hero-emblem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid var(--border-gold);
  background: var(--bg-surface);
  color: var(--gold-bright);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-5);
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.8vw, 3.45rem);
  letter-spacing: 0.06em;
  line-height: 1.12;
  color: var(--gold-champagne);
  text-wrap: balance;
}

.hero-subtitle {
  margin: 14px auto 0;
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: clamp(1.18rem, 2.2vw, 1.4rem);
  line-height: 1.45;
  color: var(--text-secondary);
  max-width: 56ch;
  text-wrap: pretty;
}

.hero-meta-strip {
  margin: var(--space-5) auto 0;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.hero-meta-strip strong {
  color: var(--gold-champagne);
  font-weight: 600;
}

.hero-meta-sep {
  color: var(--border-gold-strong);
  user-select: none;
}

/* ================= SURFACES ================= */

.luxury-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: var(--space-5);
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.28rem;
  letter-spacing: 0.04em;
  color: var(--gold-champagne);
  text-wrap: balance;
}

.section-desc {
  margin: 6px 0 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 65ch;
}

/* ================= SEARCH ================= */

.search-box {
  position: relative;
  min-width: 220px;
  flex: 0 1 290px;
}

.search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-mid);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  min-height: 42px;
  padding: 9px 14px 9px 40px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-gold);
  background: var(--bg-input);
  color: var(--text-ivory);
  font-size: 0.88rem;
  transition: border-color var(--transition);
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-box input:focus {
  border-color: var(--gold-bright);
  outline: none;
}

/* ================= PROFILE SELECTION ================= */

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

.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-canvas);
  cursor: pointer;
  color: inherit;
  width: 100%;
  transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.profile-card:hover:not(:disabled) {
  transform: translateY(-3px);
  border-color: var(--border-gold-strong);
  background: var(--bg-surface-hover);
  box-shadow: var(--shadow-sm);
}

.profile-card.already-voted {
  opacity: 0.62;
  border-color: oklch(0.76 0.13 158 / 0.28);
  cursor: default;
}

.profile-card.already-voted:hover {
  transform: none;
  box-shadow: none;
}

.avatar-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-mid);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  color: var(--gold-champagne);
  margin-bottom: 14px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.avatar-circle.sm {
  width: 38px;
  height: 38px;
  font-size: 0.82rem;
  margin-bottom: 0;
}

.avatar-circle.md {
  width: 48px;
  height: 48px;
  font-size: 0.98rem;
  margin-bottom: 0;
}

.avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-ivory);
  margin: 0;
}

.profile-role {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 4px 0 0;
  min-height: 1.25em;
}

.profile-status {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 600;
}

.profile-status.ready {
  background: var(--gold-tint);
  color: var(--gold-champagne);
  border: 1px solid var(--border-gold);
}

.profile-status.voted {
  background: var(--emerald-bg);
  color: var(--emerald);
  border: 1px solid oklch(0.76 0.13 158 / 0.32);
}

/* ================= VOTING BOOTH ================= */

.booth-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  margin-bottom: var(--space-5);
}

.voter-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.voter-identity-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.voter-identity-name {
  font-weight: 600;
  color: var(--gold-champagne);
  font-size: 0.96rem;
}

.progress-wrap {
  flex: 1 1 220px;
  max-width: 340px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 7px;
}

.progress-meta strong {
  color: var(--gold-champagne);
}

.progress-track {
  width: 100%;
  height: 6px;
  border-radius: var(--radius-pill);
  background: oklch(0.95 0.01 82 / 0.08);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--gold-bright);
  transition: width 320ms var(--ease-out);
}

.award-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: var(--space-6);
}

.award-dot {
  min-height: 34px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: all var(--transition);
}

.award-dot:hover {
  border-color: var(--border-gold);
  color: var(--text-ivory);
}

.award-dot.answered {
  border-color: var(--border-gold);
  color: var(--gold-champagne);
  background: var(--gold-tint);
}

.award-dot.active {
  border-color: var(--gold-champagne);
  background: var(--gold-bright);
  color: var(--text-ink);
}

.award-stage {
  text-align: center;
  max-width: 64ch;
  margin: var(--space-4) auto var(--space-6);
}

.award-medallion {
  width: 68px;
  height: 68px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 1px solid var(--border-gold);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  box-shadow: var(--shadow-md);
}

.award-step-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-mid);
  margin-bottom: 8px;
}

.award-stage-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  letter-spacing: 0.03em;
  line-height: 1.18;
  color: var(--gold-champagne);
  text-wrap: balance;
}

.award-stage-desc {
  margin: 10px auto 0;
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 1.24rem;
  color: var(--text-secondary);
  text-wrap: pretty;
}

.nominees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 12px;
  margin-bottom: var(--space-6);
}

.nominee-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
  transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.nominee-card:hover:not(:disabled) {
  border-color: var(--border-gold-strong);
  transform: translateY(-2px);
  background: var(--bg-surface-hover);
  box-shadow: var(--shadow-sm);
}

.nominee-card.selected {
  border-color: var(--gold-champagne);
  background: oklch(0.24 0.035 80);
  box-shadow: var(--shadow-md);
}

.nominee-card.is-self {
  opacity: 0.48;
  cursor: not-allowed;
  border-style: dashed;
}

.nominee-info {
  flex: 1;
  min-width: 0;
}

.nominee-name {
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--text-ivory);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nominee-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nominee-self-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  font-size: 0.74rem;
  color: var(--amber);
}

.nominee-check {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: transparent;
  transition: all var(--transition);
}

.nominee-card.selected .nominee-check {
  background: var(--gold-bright);
  border-color: var(--gold-champagne);
  color: var(--text-ink);
}

.booth-footer {
  position: sticky;
  bottom: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-gold);
  background: oklch(0.14 0.01 75 / 0.94);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
}

/* ================= REVIEW & SEALED BALLOT ================= */

.review-card {
  max-width: 760px;
  margin: 0 auto;
}

.review-list {
  display: flex;
  flex-direction: column;
  margin: var(--space-5) 0;
  border-top: 1px solid var(--border-subtle);
}

.review-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--border-subtle);
}

.review-award {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.review-award-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.review-award-title {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.review-nominee-name {
  font-family: var(--font-display);
  font-size: 1.04rem;
  color: var(--gold-champagne);
  font-weight: 600;
}

.privacy-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gold);
  background: var(--gold-tint);
  color: var(--text-secondary);
  font-size: 0.86rem;
  margin-bottom: var(--space-5);
}

.privacy-banner .svg-icon {
  color: var(--gold-bright);
  margin-top: 2px;
}

.sealed-screen {
  max-width: 580px;
  margin: 24px auto;
  text-align: center;
  padding: 48px 32px;
  animation: sealReveal 420ms var(--ease-out) both;
}

.wax-seal {
  width: 84px;
  height: 84px;
  margin: 0 auto var(--space-5);
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-champagne) 0%, var(--gold-mid) 100%);
  color: var(--text-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

/* ================= FORMS & ADMIN LOGIN ================= */

.admin-login-wrap {
  max-width: 440px;
  margin: 36px auto;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-gold);
  background: var(--bg-input);
  color: var(--text-ivory);
  font-family: var(--font-ui);
  font-size: 0.92rem;
  transition: border-color var(--transition);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  resize: vertical;
  min-height: 92px;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--gold-bright);
  outline: none;
}

.input-with-action {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-action .form-input {
  padding-right: 44px;
}

.input-eye-btn {
  position: absolute;
  right: 6px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.input-eye-btn:hover {
  color: var(--gold-champagne);
}

.demo-hint {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid oklch(0.80 0.14 78 / 0.35);
  background: var(--amber-bg);
  color: var(--gold-champagne);
  font-size: 0.84rem;
  line-height: 1.5;
}

.demo-hint code {
  background: oklch(0.08 0.01 75 / 0.65);
  padding: 2px 7px;
  border-radius: 5px;
  color: var(--text-ivory);
  font-weight: 600;
}

/* ================= ADMIN DASHBOARD (Operate Mode) ================= */

.admin-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: var(--space-5);
}

.admin-title-block h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.65rem;
  letter-spacing: 0.04em;
  color: var(--gold-champagne);
}

.admin-title-block p {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* Bandeau KPI architectural (sans grille de cartes répétitives) */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  margin-bottom: var(--space-5);
  overflow: hidden;
}

.kpi-cell {
  padding: 18px 22px;
  border-right: 1px solid var(--border-subtle);
}

.kpi-cell:last-child {
  border-right: none;
}

.kpi-label {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.kpi-value {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold-champagne);
  line-height: 1.15;
}

.kpi-sub {
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--space-6);
}

.admin-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  margin-bottom: -1px;
  transition: color var(--transition), border-color var(--transition);
}

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

.admin-tab.active {
  color: var(--gold-champagne);
  border-bottom-color: var(--gold-bright);
}

.sub-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.sub-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all var(--transition);
}

.sub-tab.active {
  background: var(--gold-tint-strong);
  color: var(--gold-champagne);
}

/* ================= ADMIN RESULTS ================= */

.results-header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: var(--space-5);
}

.results-award-card {
  margin-bottom: 20px;
  padding: 24px 26px;
}

.results-award-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.results-award-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.results-award-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-gold);
  background: var(--bg-canvas);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.results-award-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.14rem;
  color: var(--gold-champagne);
}

.results-award-desc {
  margin: 2px 0 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.winner-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--gold-tint);
  border: 1px solid var(--border-gold-strong);
  color: var(--gold-champagne);
  font-size: 0.84rem;
  font-weight: 600;
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.leader-row {
  padding: 13px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-canvas);
}

.leader-row.rank-1 {
  border-color: var(--border-gold-strong);
  background: oklch(0.18 0.022 80);
}

.leader-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

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

.rank-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  flex-shrink: 0;
}

.rank-badge.r1 {
  background: var(--gold-bright);
  color: var(--text-ink);
}

.rank-badge.r2 {
  background: oklch(0.82 0.01 250);
  color: var(--text-ink);
}

.rank-badge.r3 {
  background: oklch(0.68 0.09 55);
  color: var(--text-ink);
}

.leader-name {
  font-weight: 600;
  color: var(--text-ivory);
}

.leader-score {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold-champagne);
  white-space: nowrap;
}

.leader-bar-track {
  width: 100%;
  height: 6px;
  border-radius: var(--radius-pill);
  background: oklch(0.95 0.01 82 / 0.07);
  overflow: hidden;
}

.leader-bar-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--gold-mid);
}

.leader-row.rank-1 .leader-bar-fill {
  background: var(--gold-bright);
}

.voters-chips {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.voters-chips-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-right: 4px;
}

.voter-chip {
  font-size: 0.76rem;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

/* ================= TABLES (sans double bordure imbriquée) ================= */

.table-scroll {
  width: 100%;
  overflow-x: auto;
  border-top: 1px solid var(--border-subtle);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.data-table th,
.data-table td {
  padding: 13px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.data-table th {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  background: oklch(0.14 0.008 75);
  white-space: nowrap;
}

.data-table tbody tr:hover {
  background: oklch(0.95 0.01 82 / 0.03);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
}

.status-badge.done {
  background: var(--emerald-bg);
  color: var(--emerald);
}

.status-badge.pending {
  background: var(--bg-elevated);
  color: var(--text-muted);
}

/* ================= ADMIN LAYOUTS ================= */

.admin-split {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 24px;
  align-items: start;
}

.icon-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.icon-option {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-canvas);
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.icon-option:hover {
  border-color: var(--border-gold);
}

.icon-option.active {
  border-color: var(--gold-champagne);
  background: var(--gold-tint-strong);
}

.award-admin-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-subtle);
}

.award-admin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--border-subtle);
}

.award-admin-item:last-child {
  border-bottom: none;
}

.award-admin-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.award-admin-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 20px;
}

.toggle-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-canvas);
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  transition: 220ms var(--ease-out);
  border-radius: var(--radius-pill);
}

.slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-ivory);
  transition: 220ms var(--ease-out);
  border-radius: 50%;
}

.switch input:checked + .slider {
  background: var(--gold-bright);
  border-color: var(--gold-champagne);
}

.switch input:checked + .slider::before {
  transform: translateX(22px);
  background-color: var(--text-ink);
}

.switch input:focus-visible + .slider {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

/* ================= EMPTY STATES ================= */

.empty-state {
  text-align: center;
  padding: 44px 24px;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-gold);
  background: var(--bg-canvas);
}

.empty-state-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--border-gold);
  background: var(--bg-surface);
  color: var(--gold-bright);
  margin-bottom: 14px;
}

.empty-state h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  color: var(--gold-champagne);
}

.empty-state p {
  margin: 0 auto 18px;
  max-width: 50ch;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* ================= MODAL ================= */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: oklch(0.06 0.005 75 / 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.hidden {
  display: none;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-gold-strong);
  border-radius: var(--radius-lg);
  padding: 30px 26px 24px;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--gold-champagne);
  background: var(--bg-surface-hover);
}

.modal-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.32rem;
  color: var(--gold-champagne);
}

.modal-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

/* ================= TOASTS & LOADING ================= */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gold);
  background: var(--bg-elevated);
  color: var(--text-ivory);
  font-size: 0.88rem;
  box-shadow: var(--shadow-md);
}

.toast.success {
  border-color: oklch(0.76 0.13 158 / 0.55);
}

.toast.error {
  border-color: oklch(0.71 0.16 22 / 0.55);
  color: oklch(0.92 0.06 22);
}

.loading-screen {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.gold-spinner {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2.5px solid var(--gold-tint-strong);
  border-top-color: var(--gold-champagne);
  animation: spin 800ms linear infinite;
}

.loading-text {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-secondary);
}

/* ================= UTILITIES & MOTION ================= */

.hidden { display: none !important; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-gold { color: var(--gold-champagne); }

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes sealReveal {
  from {
    opacity: 0.01;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ================= RESPONSIVE ================= */

@media (max-width: 920px) {
  .admin-split {
    grid-template-columns: 1fr;
  }
  .kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kpi-cell {
    border-bottom: 1px solid var(--border-subtle);
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding: 10px 16px;
  }
  .mode-pill {
    display: none;
  }
  .app-main {
    padding: 28px 16px 64px;
  }
  .luxury-card {
    padding: 20px 16px;
  }
  .kpi-strip {
    grid-template-columns: 1fr;
  }
  .kpi-cell {
    border-right: none;
  }
  .booth-footer {
    border-radius: var(--radius-md);
    padding: 12px 14px;
    flex-wrap: wrap;
  }
  .profiles-grid,
  .nominees-grid {
    grid-template-columns: 1fr;
  }
  .review-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .toast-container {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
}

/* ================= PRINT (Palmarès) ================= */

@media print {
  body {
    background: #ffffff !important;
    color: #111111 !important;
  }
  .ambient-spotlight, .site-header, .site-footer, .admin-tabs,
  .admin-toolbar, .results-header-bar button, .sub-tabs, .toast-container {
    display: none !important;
  }
  .luxury-card, .results-award-card, .leader-row, .kpi-strip {
    background: #ffffff !important;
    color: #111111 !important;
    border: 1px solid #cccccc !important;
    box-shadow: none !important;
    break-inside: avoid;
  }
  .results-award-title, .leader-name, .leader-score, .winner-pill, .kpi-value {
    color: #111111 !important;
  }
}
