:root {
  --movember-blue: #00529B;
  --movember-blue-hover: #003E78;
  --movember-blue-light: #E0F2FE;
  --movember-blue-accent: #0284C7;
  --burgundy: #7A1C24;
  --burgundy-hover: #5E141B;
  --burgundy-light: #FEE2E2;
  --black: #0B0F19;
  --charcoal: #1E293B;
  --slate: #475569;
  --muted: #64748B;
  --border: #E2E8F0;
  --surface: #F8FAFC;
  --white: #FFFFFF;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(11, 15, 25, 0.06);
  --shadow-md: 0 10px 25px -5px rgba(11, 15, 25, 0.08), 0 8px 10px -6px rgba(11, 15, 25, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(11, 15, 25, 0.16);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--surface);
  color: var(--black);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hidden {
  display: none !important;
}

/* Barre supérieure Bordeaux & Noir */
.top-ribbon {
  background: linear-gradient(90deg, var(--black) 0%, var(--burgundy) 50%, var(--movember-blue) 100%);
  color: var(--white);
  font-size: 13px;
  padding: 8px 0;
}

.top-ribbon-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ribbon-badge {
  background: rgba(255, 255, 255, 0.16);
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.ribbon-link {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.ribbon-link:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Navigation */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.navbar-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--black);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.03em;
  color: var(--black);
}

.brand-subtitle {
  font-size: 12px;
  color: var(--burgundy);
  font-weight: 700;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-user-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-pill {
  background: var(--movember-blue-light);
  color: var(--movember-blue);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-sm {
  padding: 7px 13px;
  font-size: 13px;
}

.btn-lg {
  padding: 12px 22px;
  font-size: 15px;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: var(--movember-blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--movember-blue-hover);
}

.btn-burgundy {
  background: var(--burgundy);
  color: var(--white);
}

.btn-burgundy:hover {
  background: var(--burgundy-hover);
}

.btn-outline-dark {
  background: var(--white);
  color: var(--black);
  border-color: var(--border);
}

.btn-outline-dark:hover {
  border-color: var(--black);
  background: var(--surface);
}

.btn-ghost {
  background: transparent;
  color: var(--slate);
}

.btn-ghost:hover {
  background: #F1F5F9;
  color: var(--black);
}

/* Hero Section */
.hero {
  background: var(--black);
  color: var(--white);
  padding: 48px 0;
  border-bottom: 4px solid var(--burgundy);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(0, 82, 155, 0.45) 0%, rgba(122, 28, 36, 0.2) 50%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 36px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #EF4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.25);
}

.hero h1 {
  font-size: 36px;
  line-height: 1.15;
  font-weight: 900;
  margin-bottom: 14px;
}

.text-accent-blue {
  color: #38BDF8;
}

.hero-lead {
  color: #CBD5E1;
  font-size: 16px;
  max-width: 600px;
  margin-bottom: 24px;
}

.hero-rules-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rule-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: #E2E8F0;
}

.rule-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--burgundy);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.hero-stats-card {
  background: linear-gradient(145deg, #131B2E 0%, #0F172A 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.stat-highlight {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94A3B8;
  font-weight: 700;
}

.stat-value {
  display: block;
  font-size: 40px;
  font-weight: 900;
  color: var(--white);
  margin: 4px 0;
}

.stat-note {
  font-size: 12px;
  color: #38BDF8;
}

.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-value-sm {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--white);
  margin-top: 2px;
}

/* Panneau Admin */
.admin-section {
  padding: 28px 0 8px;
}

.admin-card {
  background: var(--white);
  border: 2px solid var(--movember-blue);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--burgundy);
  text-transform: uppercase;
}

.admin-unlock-box {
  background: var(--surface);
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.admin-unlock-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  max-width: 440px;
}

.admin-form h3 {
  font-size: 17px;
  margin-bottom: 16px;
  color: var(--movember-blue);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 16px;
}

.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.field-hint {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--black);
  background: var(--white);
}

.input:focus {
  outline: none;
  border-color: var(--movember-blue);
  box-shadow: 0 0 0 3px rgba(0, 82, 155, 0.15);
}

.textarea {
  resize: vertical;
}

.photo-upload-grid {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 16px;
  align-items: center;
}

.photo-preview-box {
  width: 150px;
  height: 150px;
  border: 2px dashed #CBD5E1;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--surface);
  font-size: 12px;
  color: var(--muted);
}

.photo-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Catalogue */
.main-catalog {
  padding: 32px 0 64px;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.catalog-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tab-btn {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--slate);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 15px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tab-btn.active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.catalog-search {
  min-width: 260px;
}

.toast-banner {
  background: var(--movember-blue);
  color: var(--white);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
}

/* Grille de cartes maillots */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.product-media {
  position: relative;
  height: 260px;
  background: var(--black);
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-size {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(11, 15, 25, 0.85);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

.badge-status {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.status-active {
  background: var(--burgundy);
  color: var(--white);
}

.status-upcoming {
  background: var(--movember-blue);
  color: var(--white);
}

.status-ended {
  background: #334155;
  color: #E2E8F0;
}

.badge-leader-user {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: rgba(0, 82, 155, 0.94);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.badge-outbid-user {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: rgba(122, 28, 36, 0.95);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.product-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 6px;
}

.product-desc {
  font-size: 13.5px;
  color: var(--slate);
  margin-bottom: 16px;
  flex: 1;
}

.product-auction-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 14px;
}

.auction-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.price-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
}

.price-main {
  font-size: 26px;
  font-weight: 900;
  color: var(--movember-blue);
}

.auction-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 12px;
  color: var(--slate);
  border-top: 1px solid var(--border);
  padding-top: 8px;
}

.product-dates {
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 14px;
}

.product-actions {
  display: flex;
  gap: 8px;
}

.product-admin-bar {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

/* Modales */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 15, 25, 0.65);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 100;
}

.modal-card {
  background: var(--white);
  width: 100%;
  max-width: 540px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

.modal-sm {
  max-width: 440px;
}

.modal-lg {
  max-width: 740px;
}

.modal-header {
  background: var(--black);
  color: var(--white);
  padding: 18px 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 3px solid var(--burgundy);
}

.modal-badge {
  display: inline-block;
  background: var(--movember-blue);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 800;
}

.modal-close {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 20px;
  cursor: pointer;
}

.modal-body {
  padding: 22px;
  overflow-y: auto;
}

.modal-desc {
  font-size: 14px;
  color: var(--slate);
  margin-bottom: 16px;
}

.bid-summary-box {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 16px;
}

.bid-summary-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.bid-summary-price {
  font-size: 24px;
  font-weight: 900;
  color: var(--movember-blue);
}

.bid-summary-sub {
  font-size: 16px;
  font-weight: 800;
  color: var(--black);
}

.leader-notice {
  background: var(--movember-blue-light);
  color: var(--movember-blue);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

.form-label-lg {
  display: block;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 4px;
}

.bid-explanation {
  font-size: 13px;
  color: var(--slate);
  margin-bottom: 14px;
}

.quick-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.chip-step {
  background: var(--surface);
  border: 1px solid #CBD5E1;
  color: var(--black);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.chip-step:hover,
.chip-step.active {
  background: var(--movember-blue);
  color: var(--white);
  border-color: var(--movember-blue);
}

.stepper-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.btn-stepper {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  border: 1px solid #CBD5E1;
  background: var(--surface);
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
}

.btn-stepper:hover {
  background: #E2E8F0;
}

.stepper-value-wrap {
  position: relative;
  flex: 1;
}

.input-bid-amount {
  font-size: 22px;
  font-weight: 900;
  text-align: center;
  height: 46px;
  padding-right: 32px;
}

.currency-suffix {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 800;
  color: var(--muted);
}

.email-guarantee-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #F1F5F9;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: var(--charcoal);
  margin-bottom: 16px;
}

.error-box {
  background: var(--burgundy-light);
  color: var(--burgundy);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

.demo-otp-banner {
  background: #FEF3C7;
  border: 1px solid #F59E0B;
  color: #92400E;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 14px;
}

.input-otp {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 8px;
  text-align: center;
}

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

/* Historique et Emails */
.history-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.emails-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.email-log-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.email-log-header {
  background: var(--surface);
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
}

.email-log-body {
  padding: 14px;
  background: var(--white);
}

/* Footer */
.footer {
  background: var(--black);
  color: #94A3B8;
  padding: 28px 0;
  font-size: 13px;
  border-top: 3px solid var(--movember-blue);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand strong {
  color: var(--white);
  display: block;
  margin-bottom: 4px;
}

.footer-colors {
  display: flex;
  gap: 8px;
}

.swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.swatch-blue { background: var(--movember-blue); }
.swatch-burgundy { background: var(--burgundy); }
.swatch-black { background: var(--black); }
.swatch-white { background: var(--white); }

@media (max-width: 860px) {
  .hero-grid,
  .form-grid-2,
  .form-grid-4,
  .photo-upload-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 28px;
  }
}
