/* ============================================================
   CAVA — Design System
   DA : Core Atelier Pilates × Univers du Vin
   Fonts : Cormorant Garant (display) + Montserrat (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garant:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Montserrat:wght@300;400;500;600;700&display=swap');

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

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --color-bg: #080808;
  --color-surface: #0f0f0f;
  --color-surface-2: #141414;
  --color-surface-3: #1a1a1a;
  --color-border: rgba(255, 255, 255, .055);
  --color-border-gold: rgba(201, 169, 110, .18);

  --color-text-primary: #f5efe6;
  --color-text-secondary: rgba(245, 239, 230, .55);
  --color-text-muted: rgba(245, 239, 230, .3);

  --color-gold: #C9A96E;
  --color-gold-light: #e2c99a;
  --color-bordeaux: #7B1D3A;
  --color-bordeaux-dark: #3a0d1c;
  --color-bordeaux-light: #a83255;

  --color-success: #4caf7d;
  --color-success-bg: rgba(76, 175, 125, .08);
  --color-error: #e55353;
  --color-error-bg: rgba(229, 83, 83, .08);
  --color-warning: #e8a838;
  --color-warning-bg: rgba(232, 168, 56, .08);
  --color-info: #5b8dee;
  --color-info-bg: rgba(91, 141, 238, .08);

  --font-display: 'Cormorant Garant', Georgia, serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --r: 3px;
  --r-lg: 6px;
  --r-pill: 9999px;
}

/* ── BASE ───────────────────────────────────────────────── */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: var(--font-body);
}

img {
  max-width: 100%;
}

/* ── LAYOUT ─────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-md {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-sm {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 2rem;
}

main {
  flex: 1;
  padding-top: 100px;
  padding-bottom: 5rem;
}

/* ── HEADER ─────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(8, 8, 8, .92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--color-border-gold);
  transition: all .3s var(--ease);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: .9rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-bordeaux-dark), var(--color-bordeaux));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-gold);
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--color-text-primary);
}

.logo-text span {
  color: var(--color-gold);
}

.site-header .nav-links {
  display: flex;
  align-items: center;
  gap: .3rem;
  flex: 1;
  list-style: none;
}

.site-header .nav-links a {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  padding: .55rem 1rem;
  border-radius: var(--r-pill);
  transition: color .25s, background .25s;
  white-space: nowrap;
}

.site-header .nav-links a:hover,
.site-header .nav-links a.active {
  color: var(--color-gold);
  background: rgba(201, 169, 110, .07);
}

.user-badge {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-left: auto;
  flex-shrink: 0;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-bordeaux-dark), var(--color-bordeaux));
  border: 1px solid var(--color-border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 500;
  color: var(--color-gold);
  flex-shrink: 0;
}

.user-name {
  font-size: .78rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.user-role {
  font-size: .64rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-gold);
  display: block;
}

.btn-logout {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  padding: .5rem 1.1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--r-pill);
  transition: border-color .25s, color .25s, background .25s;
  white-space: nowrap;
  text-decoration: none;
}

.btn-logout:hover {
  border-color: var(--color-error);
  color: var(--color-error);
  background: rgba(229, 83, 83, .06);
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  padding: .5rem .8rem;
  border-radius: var(--r);
  font-size: 1rem;
  margin-left: auto;
}

/* ── DASHBOARD HERO ─────────────────────────────────────── */
.dash-hero {
  background: linear-gradient(135deg, #0d0608 0%, #1c0a16 45%, #0d0608 100%);
  border-bottom: 1px solid var(--color-border-gold);
  position: relative;
  overflow: hidden;
  padding: 4rem 0 3.5rem;
}

.dash-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 120% at 85% 50%, rgba(201, 169, 110, .07) 0%, transparent 65%),
    radial-gradient(ellipse 40% 80% at 15% 50%, rgba(123, 29, 58, .08) 0%, transparent 60%);
  pointer-events: none;
}

.dash-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold-light), transparent);
  opacity: .3;
}

.dash-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.dash-hero-text {
  flex: 1;
}

.dash-hero-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1rem;
}

.dash-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 300;
  line-height: 1.08;
  color: var(--color-text-primary);
  margin-bottom: .8rem;
}

.dash-hero-title em {
  font-style: italic;
  color: var(--color-gold-light);
}

.dash-hero-sub {
  font-size: .85rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 480px;
}

.dash-hero-stats {
  display: flex;
  gap: 1.2rem;
  flex-shrink: 0;
}

.dh-stat {
  text-align: center;
  padding: 1.4rem 1.8rem;
  background: rgba(255, 255, 255, .025);
  border: 1px solid var(--color-border);
  border-radius: var(--r-card);
  min-width: 110px;
  transition: border-color .3s var(--ease);
}

.dh-stat:hover {
  border-color: var(--color-border-gold);
}

.dh-stat-val {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--color-gold);
  line-height: 1;
}

.dh-stat-lbl {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-text-muted);
  margin-top: 6px;
}

/* pages with dash-hero: remove main padding-top since hero handles it */
body.has-dash-hero main {
  padding-top: 0;
}

.dash-hero {
  padding-top: calc(100px + 2.5rem);
}

@media (max-width: 768px) {
  .dash-hero-inner {
    flex-direction: column;
    gap: 2rem;
  }

  .dash-hero-stats {
    gap: .8rem;
  }

  .dh-stat {
    padding: 1rem 1.2rem;
    min-width: 90px;
  }

  .dh-stat-val {
    font-size: 1.6rem;
  }
}

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 1.8rem 2.5rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--color-gold);
}

.footer-tagline {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.footer-copy {
  font-size: .72rem;
  color: rgba(245, 239, 230, .18);
}

/* ── PAGE HEADERS ───────────────────────────────────────── */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 2.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--color-text-primary);
  margin-bottom: .5rem;
}

.page-title em {
  font-style: italic;
  color: var(--color-gold-light);
}

.page-subtitle {
  font-size: .85rem;
  font-weight: 300;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.page-eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-gold);
  margin-bottom: .5rem;
}

/* ── CARDS ──────────────────────────────────────────────── */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
  padding: 2rem;
}

/* ── STATS ──────────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  margin-bottom: 3rem;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.stat-card {
  background: var(--color-surface);
  padding: 2rem 1.8rem;
  text-align: center;
  transition: background .2s;
}

.stat-card:hover {
  background: var(--color-surface-2);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--color-gold-light);
  line-height: 1;
  margin-bottom: .5rem;
}

.stat-label {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ── DASHBOARD GRID ─────────────────────────────────────── */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 2rem;
}

.dashboard-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  padding: 2.2rem 1.5rem;
  background: var(--color-surface);
  text-decoration: none;
  transition: background .25s var(--ease), transform .25s var(--ease);
  text-align: center;
}

.dashboard-card:hover {
  background: var(--color-surface-3);
  transform: translateY(-2px);
}

.card-icon {
  font-size: 1.8rem;
  line-height: 1;
  filter: grayscale(20%);
}

.card-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  line-height: 1.3;
  transition: color .25s;
}

.dashboard-card:hover .card-label {
  color: var(--color-gold);
}

/* ── PRODUCT GRID ───────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card-product {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s;
}

.card-product:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
}

.card-image-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--ease);
}

.card-product:hover .card-image {
  transform: scale(1.04);
}

.card-body {
  padding: 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.product-category {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.product-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--color-text-primary);
  line-height: 1.2;
}

.product-desc {
  font-size: .8rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
  flex: 1;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  display: -webkit-box;
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-gold-light);
  margin-right: .5rem;
}

.product-price-old {
  font-size: .85rem;
  color: var(--color-text-muted);
  text-decoration: line-through;
}

/* ── PROGRESS BAR ───────────────────────────────────────── */
.progress-bar {
  height: 3px;
  background: rgba(255, 255, 255, .06);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-bordeaux), var(--color-gold));
  border-radius: 2px;
  transition: width 1s var(--ease);
}

.progress-fill.complete {
  background: linear-gradient(90deg, var(--color-gold), #e2c99a);
}

.prevente-info {
  background: var(--color-surface-2);
  border-radius: var(--r);
  padding: .9rem 1rem;
  margin-top: auto;
}

.prevente-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
  gap: .5rem;
}

.prevente-info-row .label {
  color: var(--color-text-muted);
}

.prevente-info-row .value {
  color: var(--color-text-primary);
  font-weight: 500;
}

/* ── DATA TABLE ─────────────────────────────────────────── */
.table-container {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead tr {
  border-bottom: 1px solid var(--color-border);
}

.data-table th {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 1rem 1.4rem;
  text-align: left;
  white-space: nowrap;
  background: var(--color-surface-2);
}

.data-table td {
  padding: 1rem 1.4rem;
  font-size: .85rem;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

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

.data-table tbody tr {
  transition: background .2s;
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, .018);
}

/* ── BADGES ─────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: .28rem .8rem;
  border-radius: var(--r-pill);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-gold {
  background: rgba(201, 169, 110, .12);
  color: var(--color-gold);
  border: 1px solid rgba(201, 169, 110, .2);
}

.badge-success {
  background: rgba(76, 175, 125, .1);
  color: var(--color-success);
  border: 1px solid rgba(76, 175, 125, .2);
}

.badge-error {
  background: rgba(229, 83, 83, .1);
  color: var(--color-error);
  border: 1px solid rgba(229, 83, 83, .2);
}

.badge-warning {
  background: rgba(232, 168, 56, .1);
  color: var(--color-warning);
  border: 1px solid rgba(232, 168, 56, .2);
}

.badge-info {
  background: rgba(91, 141, 238, .1);
  color: var(--color-info);
  border: 1px solid rgba(91, 141, 238, .2);
}

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: .7rem 1.6rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .3s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-text-primary);
  color: var(--color-bg);
  border-color: var(--color-text-primary);
}

.btn-primary:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-bg);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(201, 169, 110, .25);
}

.btn-bordeaux {
  background: var(--color-bordeaux);
  color: var(--color-text-primary);
  border-color: var(--color-bordeaux);
}

.btn-bordeaux:hover {
  background: var(--color-bordeaux-light);
  border-color: var(--color-bordeaux-light);
  transform: translateY(-1px);
}

.btn-secondary,
.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
  border-color: var(--color-border);
}

.btn-secondary:hover,
.btn-ghost:hover {
  border-color: var(--color-border-gold);
  color: var(--color-gold);
}

.btn-danger {
  background: transparent;
  color: var(--color-error);
  border-color: rgba(229, 83, 83, .3);
}

.btn-danger:hover {
  background: rgba(229, 83, 83, .08);
  border-color: var(--color-error);
  transform: translateY(-1px);
}

.btn-sm {
  padding: .45rem 1rem;
  font-size: .62rem;
}

.btn-lg {
  padding: .95rem 2rem;
  font-size: .78rem;
}

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

/* disabled */
.btn:disabled,
.btn[disabled] {
  opacity: .35;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── FORMS ──────────────────────────────────────────────── */
.form-group {
  margin-bottom: 1.4rem;
}

.form-label {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: .55rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--r);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: .88rem;
  padding: .8rem 1rem;
  transition: border-color .25s, background .25s;
  outline: none;
  appearance: none;
}

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

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-border-gold);
  background: rgba(201, 169, 110, .04);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23C9A96E' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-select option {
  background: var(--color-surface-2);
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}

.form-file {
  padding: .65rem .9rem;
  cursor: pointer;
  color: var(--color-text-muted);
}

.form-file::-webkit-file-upload-button {
  background: var(--color-surface-3);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .4rem .9rem;
  border-radius: var(--r-pill);
  cursor: pointer;
  margin-right: .8rem;
  transition: border-color .25s;
}

.form-file::-webkit-file-upload-button:hover {
  border-color: var(--color-border-gold);
}

.form-hint {
  display: block;
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 6px;
  line-height: 1.5;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ── AUTH ───────────────────────────────────────────────── */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--color-bg);
  position: relative;
}

.auth-container::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(123, 29, 58, .12) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(201, 169, 110, .06) 0%, transparent 60%);
  pointer-events: none;
}

.auth-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-gold);
  border-radius: var(--r-lg);
  padding: 2.8rem;
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
}

.auth-logo {
  text-align: center;
  margin-bottom: 2.5rem;
}

.auth-logo h1 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 400;
  letter-spacing: .08em;
  color: var(--color-text-primary);
  margin-bottom: .4rem;
}

.auth-logo h1 span {
  color: var(--color-gold);
}

.auth-logo p {
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Tab switch */
.tab-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--r-pill);
  padding: 3px;
  margin-bottom: 2rem;
}

.tab-switch button {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .7rem 1rem;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background .25s, color .25s;
}

.tab-switch button.active {
  background: var(--color-bordeaux);
  color: var(--color-text-primary);
}

.tab-switch button:not(.active):hover {
  color: var(--color-gold);
}

/* ── EMPTY STATE ────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--color-text-muted);
}

.empty-icon {
  font-size: 3.5rem;
  margin-bottom: 1.2rem;
  display: block;
}

.empty-state h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-text-secondary);
  margin-bottom: .5rem;
}

.empty-state p {
  font-size: .85rem;
}

/* ── TOAST ──────────────────────────────────────────────── */
.toast {
  position: fixed;
  top: 90px;
  right: 1.5rem;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .9rem 1.4rem;
  border-radius: var(--r-lg);
  font-size: .82rem;
  font-weight: 500;
  max-width: 380px;
  animation: toastIn .4s var(--spring) forwards;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .4);
}

.toast-success {
  background: var(--color-surface-2);
  border: 1px solid rgba(76, 175, 125, .3);
  color: var(--color-success);
}

.toast-error {
  background: var(--color-surface-2);
  border: 1px solid rgba(229, 83, 83, .3);
  color: var(--color-error);
}

.toast-close {
  background: none;
  border: none;
  color: inherit;
  opacity: .5;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0;
  line-height: 1;
  margin-left: auto;
  transition: opacity .2s;
}

.toast-close:hover {
  opacity: 1;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: none;
  }

  to {
    opacity: 0;
    transform: translateX(20px);
  }
}


/* ── MISC ───────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--color-border);
  margin: 1.5rem 0;
}

.text-center {
  text-align: center;
}

.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Alert blocks */
.alert {
  padding: .9rem 1.2rem;
  border-radius: var(--r);
  font-size: .82rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  text-align: center;
}

.alert-success {
  background: var(--color-success-bg);
  border: 1px solid rgba(76, 175, 125, .25);
  color: var(--color-success);
}

.alert-error {
  background: var(--color-error-bg);
  border: 1px solid rgba(229, 83, 83, .25);
  color: var(--color-error);
}

.alert-warning {
  background: var(--color-warning-bg);
  border: 1px solid rgba(232, 168, 56, .25);
  color: var(--color-warning);
}

/* ── COOKIE BANNER ──────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: calc(100% - 3rem);
  max-width: 860px;
  background: rgba(18, 10, 14, .97);
  border: 1px solid rgba(201, 169, 110, .25);
  border-radius: 14px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, .6);
  transition: opacity .35s ease, transform .35s ease;
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.2rem 1.6rem;
  flex-wrap: wrap;
}

.cookie-banner-text {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

.cookie-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: .1rem;
}

.cookie-title {
  font-size: .78rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: .3rem;
  letter-spacing: .04em;
}

.cookie-desc {
  font-size: .72rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

.cookie-link {
  color: var(--color-gold);
  margin-left: .4rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: .8rem;
  flex-shrink: 0;
}

.cookie-btn-accept {
  background: var(--color-gold);
  color: #080808;
  border: none;
  border-radius: var(--r-pill);
  padding: .5rem 1.4rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity .2s;
}

.cookie-btn-accept:hover {
  opacity: .85;
}

.cookie-btn-more {
  font-size: .68rem;
  color: var(--color-text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s;
}

.cookie-btn-more:hover {
  color: var(--color-gold);
}

@media (max-width: 580px) {
  .cookie-banner-inner {
    flex-direction: column;
    gap: 1rem;
  }

  .cookie-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* ── ANIMATIONS ─────────────────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.animate-fade-up {
  animation: fadeUp .6s var(--ease) forwards;
}

.stagger>* {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp .5s var(--ease) forwards;
}

.stagger>*:nth-child(1) {
  animation-delay: .05s;
}

.stagger>*:nth-child(2) {
  animation-delay: .10s;
}

.stagger>*:nth-child(3) {
  animation-delay: .15s;
}

.stagger>*:nth-child(4) {
  animation-delay: .20s;
}

.stagger>*:nth-child(5) {
  animation-delay: .25s;
}

.stagger>*:nth-child(6) {
  animation-delay: .30s;
}

.stagger>*:nth-child(7) {
  animation-delay: .35s;
}

.stagger>*:nth-child(8) {
  animation-delay: .40s;
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width:1024px) {
  .page-title {
    font-size: 1.8rem;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .header-inner {
    padding: .9rem 1.5rem;
    gap: 1rem;
  }
}

@media (max-width:768px) {
  main {
    padding-top: 80px;
  }

  .container,
  .container-md,
  .container-sm {
    padding: 0 1.2rem;
  }

  .site-header .nav-links {
    display: none;
    flex-direction: column;
    gap: .2rem;
  }

  .site-header .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(8, 8, 8, .98);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem;
  }

  .mobile-toggle {
    display: flex;
  }

  .user-badge .user-info {
    display: none !important;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .auth-card {
    padding: 2rem 1.5rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .data-table {
    font-size: .78rem;
  }
}

@media (max-width:480px) {
  .stats-row {
    grid-template-columns: 1fr;
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   NOTIFICATION BELL
   ============================================================ */
.notif-bell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  color: var(--color-text-muted);
  transition: color .2s, background .2s;
  text-decoration: none;
  flex-shrink: 0;
}
.notif-bell:hover {
  color: var(--color-gold);
  background: rgba(212,175,55,.08);
}
.notif-badge {
  position: absolute;
  top: .1rem;
  right: .1rem;
  background: var(--color-error, #d4374a);
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 20px;
  min-width: 1.1rem;
  text-align: center;
}

/* ============================================================
   ANNONCE BANNER
   ============================================================ */
.annonce-banner {
  background: linear-gradient(90deg, rgba(212,175,55,.12), rgba(212,175,55,.06));
  border-bottom: 1px solid rgba(212,175,55,.25);
  transition: opacity .2s;
}
.annonce-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: .65rem 1.5rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.annonce-icon { font-size: 1rem; flex-shrink: 0; }
.annonce-text {
  flex: 1;
  font-size: .8rem;
  color: var(--color-text-muted);
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.annonce-text strong {
  color: var(--color-gold);
  font-weight: 600;
}
.annonce-close {
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: .2rem .4rem;
  border-radius: 4px;
  transition: color .2s, background .2s;
}
.annonce-close:hover { color: #fff; background: rgba(255,255,255,.08); }

/* ============================================================
   NOTIFICATIONS PAGE
   ============================================================ */
.notif-list { display: flex; flex-direction: column; gap: .6rem; }
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color .2s;
}
.notif-item.unread {
  border-left: 3px solid var(--color-gold);
  background: rgba(212,175,55,.04);
}
.notif-dot {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: .35rem;
}
.notif-dot.info    { background: #60a5fa; }
.notif-dot.success { background: var(--color-success, #10b981); }
.notif-dot.warning { background: #f59e0b; }
.notif-dot.error   { background: var(--color-error, #d4374a); }
.notif-dot.read    { background: var(--color-border); }
.notif-body { flex: 1; }
.notif-msg  { font-size: .88rem; color: var(--color-text); line-height: 1.5; }
.notif-time { font-size: .72rem; color: var(--color-text-muted); margin-top: .25rem; }

/* ============================================================
   FILTRES / RECHERCHE (produits)
   ============================================================ */
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.2rem 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.filters-bar input,
.filters-bar select {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  border-radius: var(--radius-sm);
  padding: .5rem .85rem;
  font-size: .82rem;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
}
.filters-bar input:focus,
.filters-bar select:focus { border-color: var(--color-gold); }
.filters-bar input { flex: 1; min-width: 180px; }
.filters-reset {
  font-size: .78rem;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: .5rem .75rem;
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.filters-reset:hover { color: var(--color-gold); background: rgba(212,175,55,.06); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .4rem;
  margin-top: 3rem;
}
.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: var(--radius-sm);
  font-size: .82rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.pagination a {
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}
.pagination a:hover { background: rgba(212,175,55,.1); color: var(--color-gold); border-color: rgba(212,175,55,.3); }
.pagination span.current {
  background: var(--color-gold);
  color: var(--color-bg);
  font-weight: 700;
}
.pagination span.dots { color: var(--color-text-muted); border: none; }

/* ============================================================
   CONFIRMATION PAGE
   ============================================================ */
.confirm-wrap {
  max-width: 520px;
  margin: 5rem auto;
  text-align: center;
  padding: 0 1.5rem;
}
.confirm-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  display: block;
}
.confirm-title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-text);
  margin-bottom: .75rem;
}
.confirm-sub {
  color: var(--color-text-muted);
  font-size: .9rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.confirm-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: left;
  margin-bottom: 2rem;
}
.confirm-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .6rem 0;
  font-size: .85rem;
  border-bottom: 1px solid var(--color-border);
}
.confirm-row:last-child { border-bottom: none; }
.confirm-row .label { color: var(--color-text-muted); }
.confirm-row .value { font-weight: 600; color: var(--color-text); }

/* ============================================================
   MOT DE PASSE OUBLIÉ
   ============================================================ */
.forgot-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.forgot-card {
  width: 100%;
  max-width: 420px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl, 16px);
  padding: 2.5rem 2rem;
}
.forgot-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 1.5rem;
  letter-spacing: .04em;
}
.forgot-logo span { color: var(--color-gold); }
.forgot-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: .4rem;
}
.forgot-sub {
  font-size: .8rem;
  color: var(--color-text-muted);
  margin-bottom: 1.8rem;
  line-height: 1.6;
}
.forgot-field { margin-bottom: 1.1rem; }
.forgot-field label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: .4rem;
}
.forgot-field input {
  width: 100%;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  padding: .75rem 1rem;
  font-size: .88rem;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
  transition: border-color .2s;
}
.forgot-field input:focus { border-color: var(--color-gold); }
.forgot-submit {
  width: 100%;
  padding: .85rem;
  background: var(--color-gold);
  color: var(--color-bg);
  border: none;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .05em;
  cursor: pointer;
  margin-top: .5rem;
  transition: opacity .2s;
}
.forgot-submit:hover { opacity: .88; }
.forgot-back {
  display: block;
  text-align: center;
  margin-top: 1.2rem;
  font-size: .8rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color .2s;
}
.forgot-back:hover { color: var(--color-gold); }

/* ============================================================
   ANNONCES & LOGS (gestionnaire)
   ============================================================ */
.log-table-wrap { overflow-x: auto; }
.log-action {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.log-action.participation { background: rgba(16,185,129,.12); color: #10b981; }
.log-action.signalement   { background: rgba(245,158,11,.12); color: #f59e0b; }
.log-action.litige        { background: rgba(212,55,74,.12);  color: #d4374a; }
.log-action.reset_password{ background: rgba(96,165,250,.12); color: #60a5fa; }
.log-action.connexion     { background: rgba(212,175,55,.12); color: var(--color-gold); }
