/* ============================================================
   PLAN B — Design System · Mobile-First · Dark Theme
   ============================================================ */

/* ————————————————————————————————————————
   1. VARIABLES
———————————————————————————————————————— */
:root {
  /* Couleurs principales */
  --gold:           #c9a227;
  --gold-light:     #e8c040;
  --gold-dark:      #a07d18;
  --purple:         #6c35de;
  --purple-dark:    #4a1fa8;
  --purple-light:   #9b6dff;
  --pink:           #e8407a;
  --green:          #27c96e;
  --red:            #e8404a;
  --blue:           #3b82f6;

  /* Fond dark */
  --bg:             #0a0a0f;
  --bg-card:        #13131e;
  --bg-elevated:    #1a1a2a;
  --bg-glass:       rgba(255,255,255,0.05);
  --bg-glass-hover: rgba(255,255,255,0.08);
  --border:         rgba(255,255,255,0.08);
  --border-gold:    rgba(201,162,39,0.35);

  /* Texte */
  --text:           #e8e8f5;
  --text-muted:     #8888aa;
  --text-faint:     #555570;

  /* Gradients */
  --grad-gold:   linear-gradient(135deg, var(--gold), var(--gold-dark));
  --grad-purple: linear-gradient(135deg, var(--purple), var(--purple-dark));
  --grad-hero:   linear-gradient(135deg, #1a0a3e 0%, #0a0a1e 50%, #1a0520 100%);

  /* Ombres */
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.4);
  --shadow-md:   0 4px 20px rgba(0,0,0,0.5);
  --shadow-gold: 0 4px 20px rgba(201,162,39,0.25);

  /* Rayons */
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-full: 9999px;

  /* Transitions */
  --t-fast:   0.15s ease;
  --t-normal: 0.25s ease;
  --t-slow:   0.4s ease;

  /* Espacements */
  --nav-top-h:    60px;
  --nav-bottom-h: 68px;
  --page-px:      16px;
  --page-max:     640px;
}

/* ————————————————————————————————————————
   2. RESET & BASE
———————————————————————————————————————— */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--gold-light); }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

ul, ol { list-style: none; }

/* ————————————————————————————————————————
   3. LAYOUT
———————————————————————————————————————— */
.main-content {
  padding-top: var(--nav-top-h);
  padding-bottom: var(--nav-bottom-h);
  min-height: 100vh;
}

.page-container {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 20px var(--page-px) 32px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--page-px);
}

.container-sm {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 var(--page-px);
}

/* ————————————————————————————————————————
   4. TOP NAV
———————————————————————————————————————— */
.top-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-top-h);
  background: rgba(10,10,15,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.top-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-px);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
}
.nav-brand:hover { color: var(--gold); }
.brand-icon { font-size: 1.1rem; }

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

/* Gemmes wallet */
.gems-wallet {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(201,162,39,0.12);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  padding: 5px 12px;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.875rem;
  transition: background var(--t-fast);
}
.gems-wallet:hover {
  background: rgba(201,162,39,0.22);
  color: var(--gold-light);
}
.gem-icon { font-size: 1rem; }

/* Notifications */
.notif-wrapper { position: relative; }

.notif-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 6px;
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: background var(--t-fast);
}
.notif-btn:hover { background: var(--bg-glass); }

.notif-badge {
  position: absolute;
  top: 0; right: 0;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

.notif-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 300px;
  max-height: 400px;
  overflow-y: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: none;
  z-index: 200;
}
.notif-dropdown.open { display: block; }

.notif-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--t-fast);
}
.notif-item:hover { background: var(--bg-glass); }
.notif-item:last-child { border-bottom: none; }
.notif-item.unread { border-left: 3px solid var(--gold); }
.notif-item strong { display: block; font-size: 0.875rem; }
.notif-item p { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }

/* Avatar nav */
.avatar-nav-link img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-gold);
}

/* ————————————————————————————————————————
   5. BOTTOM NAV
———————————————————————————————————————— */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--nav-bottom-h);
  background: rgba(10,10,15,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav-inner {
  display: flex;
  align-items: stretch;
  height: 100%;
}

.nav-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  padding: 8px 4px;
  transition: color var(--t-fast);
  position: relative;
}
.nav-tab:hover, .nav-tab.active {
  color: var(--gold);
}
.nav-tab.active::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 2px;
  background: var(--gold);
  border-radius: 0 0 4px 4px;
}
.nav-icon { font-size: 1.35rem; line-height: 1; }
.nav-label { font-size: 10px; }
.tab-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid currentColor;
}

/* ————————————————————————————————————————
   6. TYPOGRAPHIE
———————————————————————————————————————— */
h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); font-weight: 700; line-height: 1.2; }
h2 { font-size: clamp(1.3rem, 4vw, 1.7rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
h4 { font-size: 1rem;    font-weight: 700; }

.grad-text {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.serif { font-family: 'Playfair Display', serif; }

.text-muted  { color: var(--text-muted); }
.text-faint  { color: var(--text-faint); }
.text-gold   { color: var(--gold); }
.text-green  { color: var(--green); }
.text-red    { color: var(--red); }

.text-xs  { font-size: 0.75rem; }
.text-sm  { font-size: 0.875rem; }
.text-lg  { font-size: 1.125rem; }
.text-xl  { font-size: 1.25rem; }

.font-bold    { font-weight: 700; }
.font-semibold{ font-weight: 600; }

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

/* ————————————————————————————————————————
   7. BOUTONS
———————————————————————————————————————— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: all var(--t-fast);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.96); }

.btn-primary {
  background: var(--grad-gold);
  color: #0a0a0f;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #0a0a0f;
  box-shadow: var(--shadow-gold);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover {
  background: var(--bg-glass);
  color: var(--text);
}

.btn-danger {
  background: var(--red);
  color: #fff;
}

.btn-purple {
  background: var(--grad-purple);
  color: #fff;
}

.btn-sm  { padding: 7px 14px; font-size: 0.8rem; }
.btn-xs  { padding: 4px 10px; font-size: 0.75rem; }
.btn-lg  { padding: 14px 28px; font-size: 1rem; }
.btn-xl  { padding: 18px 36px; font-size: 1.1rem; }

.btn-block { width: 100%; }
.btn-round { border-radius: var(--radius-full); }

/* ————————————————————————————————————————
   8. CARTES
———————————————————————————————————————— */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.card-body { padding: 20px; }

.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.glass:hover { background: var(--bg-glass-hover); }

.border-gold { border-color: var(--border-gold) !important; }
.border-red  { border-color: rgba(232,64,74,0.4) !important; }

/* ————————————————————————————————————————
   9. FORMULAIRES
———————————————————————————————————————— */
.form-group { margin-bottom: 16px; }

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  appearance: none;
  -webkit-appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.15);
}
.form-control::placeholder { color: var(--text-faint); }

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

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238888aa' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

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

.form-hint {
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-top: 4px;
}

.input-prefix {
  display: flex;
  gap: 8px;
}
.input-prefix select {
  width: auto;
  min-width: 100px;
  flex-shrink: 0;
}
.input-prefix input { flex: 1; }

/* Checkbox / Radio */
input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  cursor: pointer;
  flex-shrink: 0;
}

/* ————————————————————————————————————————
   10. ALERTES
———————————————————————————————————————— */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.alert-success { background: rgba(39,201,110,0.12); border: 1px solid rgba(39,201,110,0.3); color: var(--green); }
.alert-error   { background: rgba(232,64,74,0.12);  border: 1px solid rgba(232,64,74,0.3);  color: var(--red); }
.alert-warning { background: rgba(251,191,36,0.12); border: 1px solid rgba(251,191,36,0.3); color: #fbbf24; }
.alert-info    { background: rgba(59,130,246,0.12); border: 1px solid rgba(59,130,246,0.3); color: var(--blue); }

/* ————————————————————————————————————————
   11. AVATARS
———————————————————————————————————————— */
.avatar-xs { width: 32px;  height: 32px;  border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar-sm { width: 44px;  height: 44px;  border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar-md { width: 64px;  height: 64px;  border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar-lg { width: 80px;  height: 80px;  border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar-xl { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

/* ————————————————————————————————————————
   12. BADGES & PILLS
———————————————————————————————————————— */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}
.badge-gold   { background: rgba(201,162,39,0.15); color: var(--gold); border: 1px solid var(--border-gold); }
.badge-green  { background: rgba(39,201,110,0.15); color: var(--green); }
.badge-red    { background: rgba(232,64,74,0.15);  color: var(--red); }
.badge-purple { background: rgba(108,53,222,0.2);  color: var(--purple-light); }

.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  margin-left: 4px;
}

/* ————————————————————————————————————————
   13. TOASTS
———————————————————————————————————————— */
.toast-container {
  position: fixed;
  bottom: calc(var(--nav-bottom-h) + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  width: calc(100% - 32px);
  max-width: 380px;
}

.toast {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  pointer-events: auto;
  animation: toastIn 0.3s ease forwards;
}
.toast.success { border-color: rgba(39,201,110,0.4); color: var(--green); }
.toast.error   { border-color: rgba(232,64,74,0.4);  color: var(--red); }
.toast.info    { border-color: var(--border-gold);   color: var(--gold); }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateY(-8px); }
}

/* ————————————————————————————————————————
   14. LANDING PAGE
———————————————————————————————————————— */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: var(--grad-hero);
  position: relative;
  overflow: hidden;
  padding: 80px var(--page-px) 40px;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(108,53,222,0.25), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(201,162,39,0.15), transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(201,162,39,0.15);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 8vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.stat-item { text-align: center; }
.stat-item strong { display: block; font-size: 1.5rem; font-weight: 700; color: var(--gold); }
.stat-item span   { font-size: 0.8rem; color: var(--text-muted); }

/* Features grid */
.features { padding: 60px 0; }
.section-title { font-family: 'Playfair Display', serif; margin-bottom: 32px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding: 0 var(--page-px);
}

.feature-card {
  padding: 24px;
  transition: transform var(--t-normal), box-shadow var(--t-normal);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon { font-size: 2rem; margin-bottom: 12px; }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p  { color: var(--text-muted); font-size: 0.9rem; }

/* CTA section */
.cta-section {
  padding: 60px var(--page-px);
  background: linear-gradient(135deg, rgba(108,53,222,0.1), rgba(201,162,39,0.1));
}

/* Footer */
.site-footer { padding: 32px var(--page-px); border-top: 1px solid var(--border); }

/* ————————————————————————————————————————
   15. DASHBOARD
———————————————————————————————————————— */
.welcome-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  gap: 12px;
}
.welcome-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.welcome-gems {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}

/* Stats rapides */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 14px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--t-fast), background var(--t-fast);
  position: relative;
  text-decoration: none;
  color: var(--text);
}
.stat-card:hover { border-color: var(--border-gold); background: var(--bg-elevated); color: var(--text); }
.stat-card .stat-icon { font-size: 1.3rem; }
.stat-card .stat-num  { font-size: 1.1rem; font-weight: 700; color: var(--gold); }
.stat-card .stat-label{ font-size: 0.7rem; color: var(--text-muted); }
.stat-card.has-badge .stat-icon::after {
  content: '';
  position: absolute;
  top: 8px; right: 8px;
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
}

/* Quick menu */
.quick-menu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.quick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 8px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}
.quick-btn span:first-child { font-size: 1.4rem; }

/* Profils suggestions */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.profiles-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.profiles-scroll::-webkit-scrollbar { display: none; }

.profile-card-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  width: 80px;
  text-decoration: none;
  color: var(--text);
}
.profile-mini-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  transition: border-color var(--t-fast);
}
.profile-card-mini:hover .profile-mini-avatar { border-color: var(--gold); }
.profile-mini-info { text-align: center; }
.profile-mini-info strong { display: block; font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 76px; }

/* Events mini */
.events-grid-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.event-card-mini {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
}
.event-mini-img {
  height: 90px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-elevated);
}
.event-mini-info {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* Activity feed */
.activity-feed { display: flex; flex-direction: column; gap: 2px; }
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  transition: background var(--t-fast);
}
.activity-item:hover { background: var(--bg-glass); }
.activity-item.unread { background: rgba(201,162,39,0.05); }
.activity-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.activity-body { flex: 1; min-width: 0; }

/* ————————————————————————————————————————
   16. SWIPE
———————————————————————————————————————— */
.swipe-container {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swipe-card {
  position: absolute;
  width: 100%;
  max-width: 380px;
  height: 500px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: grab;
  user-select: none;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, opacity 0.3s ease;
  touch-action: none;
}
.swipe-card.swiping-like {
  transform: translateX(120%) rotate(20deg);
  opacity: 0;
}
.swipe-card.swiping-nope {
  transform: translateX(-120%) rotate(-20deg);
  opacity: 0;
}
.swipe-card.swiping-super {
  transform: translateY(-100%) scale(0.9);
  opacity: 0;
}

.swipe-card-img {
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-elevated);
}

.swipe-card-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  padding: 24px;
}

.swipe-card-info h2 { color: #fff; margin-bottom: 4px; }
.swipe-card-info p  { color: rgba(255,255,255,0.8); }
.swipe-age { font-size: 1.1rem; font-weight: 400; margin-left: 4px; }

.swipe-card-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.swipe-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 2px solid;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--t-fast), background var(--t-fast);
}
.swipe-btn:hover { transform: scale(1.1); }
.swipe-btn:active { transform: scale(0.95); }
.swipe-btn.nope  { border-color: var(--red);   color: var(--red); }
.swipe-btn.like  { border-color: var(--green);  color: var(--green); width: 62px; height: 62px; font-size: 1.5rem; }
.swipe-btn.super { border-color: var(--gold);   color: var(--gold); }
.swipe-btn.info  { border-color: var(--blue);   color: var(--blue); }

/* Labels swipe */
.swipe-label {
  position: absolute;
  top: 28px;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 3px solid;
  opacity: 0;
  transform: rotate(-15deg);
  pointer-events: none;
}
.like-label { left: 20px;  color: var(--green); border-color: var(--green); transform: rotate(-15deg); }
.nope-label { right: 20px; color: var(--red);   border-color: var(--red);   transform: rotate(15deg); }

/* Matchs */
.matches-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.matches-scroll::-webkit-scrollbar { display: none; }
.match-bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--text);
}
.match-bubble img {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

/* Match overlay */
.match-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--page-px);
}
.match-content {
  text-align: center;
  padding: 40px 24px;
  max-width: 360px;
  width: 100%;
  animation: popIn 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.match-avatars { display: flex; justify-content: center; gap: -12px; }
.match-avatars img { width: 72px; height: 72px; border-radius: 50%; border: 3px solid var(--gold); margin: 0 -8px; }
.match-btns { display: flex; flex-direction: column; gap: 10px; }

@keyframes popIn {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* Empty swipe */
.swipe-empty { padding: 48px 24px; text-align: center; }
.swipe-hints { margin-top: 12px; }

/* ————————————————————————————————————————
   17. PROFIL
———————————————————————————————————————— */
.profile-hero { overflow: hidden; margin-bottom: 20px; }
.profile-cover {
  height: 120px;
  background: var(--grad-purple);
}
.profile-hero-body { padding: 16px; position: relative; }
.profile-avatar-wrap {
  position: relative;
  display: inline-block;
  margin-top: -50px;
  margin-bottom: 10px;
}
.profile-avatar-wrap img {
  width: 88px; height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-card);
}
.online-dot {
  position: absolute;
  bottom: 4px; right: 4px;
  width: 14px; height: 14px;
  background: var(--green);
  border-radius: 50%;
  border: 2px solid var(--bg-card);
}
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.humeur-tag {
  display: inline-block;
  background: rgba(201,162,39,0.1);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  margin-top: 6px;
}

/* Progress bar */
.progress-bar {
  height: 6px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--grad-gold);
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

/* Tabs */
.tabs-wrapper {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}
.tabs-wrapper::-webkit-scrollbar { display: none; }

.tab-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: color var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
}
.tab-btn.active, .tab-btn:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* Info chips */
.info-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Media grid */
.medias-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.media-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  cursor: pointer;
}
.media-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-normal);
}
.media-item:hover img { transform: scale(1.05); }

.media-add {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color var(--t-fast), color var(--t-fast);
}
.media-add:hover { border-color: var(--gold); color: var(--gold); }

/* Badges grid */
.badges-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 6px;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  transition: transform var(--t-fast);
}
.badge-item:hover { transform: scale(1.05); }
.badge-icon { font-size: 1.6rem; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox img { max-width: 95vw; max-height: 90vh; border-radius: var(--radius-md); }

/* Garden */
.garden-header { padding: 20px 0; }
.garden-section h4 { margin-bottom: 12px; color: var(--gold); }
.garden-field { margin-bottom: 10px; }
.garden-value {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  min-height: 38px;
  cursor: text;
  font-size: 0.9rem;
  transition: border-color var(--t-fast);
}
.garden-value:hover { border-color: var(--gold); }
.completion-bar-wrap { margin-bottom: 20px; }

/* ————————————————————————————————————————
   18. MESSAGERIE
———————————————————————————————————————— */
.chat-layout {
  display: flex;
  height: calc(100vh - var(--nav-top-h) - var(--nav-bottom-h));
  overflow: hidden;
}

.chat-sidebar {
  width: 300px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-sidebar-header {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.conv-list { overflow-y: auto; flex: 1; }
.conv-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--t-fast);
  text-decoration: none;
  color: var(--text);
  position: relative;
}
.conv-item:hover, .conv-item.active { background: var(--bg-glass); }
.conv-item.unread .conv-info strong { color: var(--gold); }
.conv-info { flex: 1; min-width: 0; }
.conv-preview {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 100%;
}
.badge-count {
  background: var(--gold);
  color: #000;
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.chat-header-actions { margin-left: auto; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.message {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 80%;
}
.message.mine { align-self: flex-end; flex-direction: row-reverse; }
.message.theirs { align-self: flex-start; }

.msg-bubble {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 10px 14px;
  font-size: 0.9rem;
  line-height: 1.5;
  position: relative;
  max-width: 100%;
  word-break: break-word;
}
.message.mine .msg-bubble {
  background: rgba(201,162,39,0.15);
  border-color: var(--border-gold);
}
.msg-time {
  display: block;
  font-size: 0.7rem;
  color: var(--text-faint);
  margin-top: 4px;
  text-align: right;
}

.chat-input-form {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.chat-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  padding: 40px;
}

/* Mobile: plein écran */
@media (max-width: 640px) {
  .chat-sidebar { width: 100%; border-right: none; }
  .chat-main    { display: none; }
  .chat-sidebar.hidden-mobile { display: none; }
  .chat-main.hidden-mobile    { display: none; }
  .chat-main:not(.hidden-mobile) { display: flex; width: 100%; }
  .mobile-back { display: inline-flex; }
}
@media (min-width: 641px) {
  .mobile-back { display: none; }
  .hidden-mobile { display: flex !important; }
}

/* ————————————————————————————————————————
   19. ÉVÉNEMENTS
———————————————————————————————————————— */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.event-card {
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  transition: transform var(--t-normal), box-shadow var(--t-normal);
}
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.event-card-img {
  height: 160px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-elevated);
}
.event-card-body { padding: 14px; }

.event-hero { overflow: hidden; }
.event-cover {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-elevated);
}
.event-hero-body { padding: 20px; }
.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.event-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.event-type-badge {
  display: inline-block;
  background: rgba(108,53,222,0.2);
  color: var(--purple-light);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.event-type-badge.sm { margin-bottom: 6px; }

/* Annonces flash */
.annonces-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.annonces-scroll::-webkit-scrollbar { display: none; }
.annonce-flash {
  flex-shrink: 0;
  width: 240px;
  padding: 14px;
}

/* Participants */
.participants-list { display: flex; flex-wrap: wrap; gap: -8px; }
.participant-bubble img { margin-left: -8px; border: 2px solid var(--bg-card); }

/* ————————————————————————————————————————
   20. STORE / BOUTIQUE
———————————————————————————————————————— */
.store-hero { padding: 32px 0; }

.packs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.pack-card {
  padding: 20px 16px;
  text-align: center;
  position: relative;
  transition: transform var(--t-normal);
}
.pack-card.popular { border-color: var(--border-gold); }
.pack-card:hover { transform: translateY(-4px); }
.pack-badge {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.pack-gems  { font-size: 1.4rem; font-weight: 700; color: var(--gold); }
.pack-bonus { color: var(--green); font-size: 0.8rem; }
.pack-price { font-size: 1.2rem; font-weight: 700; margin-top: 8px; }

.rewards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.reward-card {
  padding: 18px;
  text-align: center;
}
.reward-icon { font-size: 2rem; margin-bottom: 8px; }
.reward-price { color: var(--gold); font-weight: 700; margin-top: 8px; }

.transactions-list { display: flex; flex-direction: column; gap: 2px; }
.transaction-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
}
.transaction-item:hover { background: var(--bg-glass); }
.transaction-type { font-weight: 700; min-width: 70px; color: var(--gold); }

/* ————————————————————————————————————————
   21. JEU
———————————————————————————————————————— */
.game-header { padding: 20px 0; }
.game-arena {
  padding: 24px;
  text-align: center;
}
.game-players {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.player-bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.vs-badge {
  background: var(--grad-gold);
  color: #000;
  font-weight: 900;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
}
.level-badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(108,53,222,0.2);
  color: var(--purple-light);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 12px;
}
.question-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 16px;
}
.question-type {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.question-text { font-size: 1.05rem; line-height: 1.5; }

/* Game setup */
.levels-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.level-card {
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.level-card.active { border-color: var(--gold); }
.level-card:hover { transform: scale(1.02); }
.level-icon { font-size: 1.8rem; margin-bottom: 6px; }
.game-actions { display: flex; flex-direction: column; gap: 10px; align-items: center; }

.match-pick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--t-fast);
}
.match-pick.active { opacity: 1; }
.match-pick img { border: 2px solid var(--border); }
.match-pick.active img { border-color: var(--gold); }

/* ————————————————————————————————————————
   22. FORUM
———————————————————————————————————————— */
.forum-cat { overflow: hidden; }
.forum-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  cursor: pointer;
  user-select: none;
}
.forum-cat-header:hover { background: var(--bg-glass); }
.toggle-arrow { color: var(--text-muted); transition: transform var(--t-fast); }
.forum-cat-body { border-top: 1px solid var(--border); }

.forum-sujet-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  transition: background var(--t-fast);
}
.forum-sujet-item:hover { background: var(--bg-glass); }
.forum-sujet-item:last-child { border-bottom: none; }

.forum-reply {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-md);
}
.reply-body { flex: 1; }

/* ————————————————————————————————————————
   23. CARTE / MAP
———————————————————————————————————————— */
.map-filters {
  display: flex;
  gap: 8px;
}
.filter-chip {
  padding: 7px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--t-fast);
}
.filter-chip.active {
  background: rgba(201,162,39,0.15);
  border-color: var(--border-gold);
  color: var(--gold);
}

/* ————————————————————————————————————————
   24. CLUBS
———————————————————————————————————————— */
.clubs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.club-card { overflow: hidden; }
.club-logo {
  height: 120px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-elevated);
}
.club-info { padding: 14px; }

/* ————————————————————————————————————————
   25. MODAL
———————————————————————————————————————— */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
@media (min-width: 500px) {
  .modal-overlay { align-items: center; padding: var(--page-px); }
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}
@media (min-width: 500px) {
  .modal-box { border-radius: var(--radius-xl); }
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg-card);
  z-index: 1;
}

.modal-body { padding: 20px; }

.btn-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: color var(--t-fast);
}
.btn-close:hover { color: var(--text); }

/* ————————————————————————————————————————
   26. ADMIN
———————————————————————————————————————— */
.admin-layout {
  display: flex;
  min-height: 100vh;
}
.admin-sidebar {
  width: 240px;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  flex-shrink: 0;
  position: fixed;
  top: var(--nav-top-h);
  bottom: 0;
  overflow-y: auto;
  z-index: 50;
}
.admin-content {
  flex: 1;
  margin-left: 240px;
  padding: calc(var(--nav-top-h) + 20px) 24px 40px;
  min-height: 100vh;
}
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--t-fast);
  border-left: 3px solid transparent;
}
.admin-nav-item:hover, .admin-nav-item.active {
  color: var(--gold);
  background: var(--bg-glass);
  border-left-color: var(--gold);
}
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.kpi-card {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}
.kpi-value { font-size: 2rem; font-weight: 700; color: var(--gold); }
.kpi-label { color: var(--text-muted); font-size: 0.85rem; margin-top: 4px; }

/* Alert rouge admin */
.alert-rouge {
  animation: pulseRed 1s ease infinite;
}
@keyframes pulseRed {
  0%,100% { background: rgba(232,64,74,0.08); }
  50%      { background: rgba(232,64,74,0.2);  }
}

@media (max-width: 768px) {
  .admin-sidebar  { display: none; }
  .admin-content  { margin-left: 0; }
}

/* ————————————————————————————————————————
   27. PROFIL SEARCH / GRID
———————————————————————————————————————— */
.profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.profile-card {
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  transition: transform var(--t-normal);
}
.profile-card:hover { transform: translateY(-4px); }
.profile-card-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--bg-elevated);
}
.profile-card-body { padding: 10px; }

/* Recherche */
.search-form {
  padding: 20px;
  margin-bottom: 20px;
}

/* ————————————————————————————————————————
   28. AFTER DARK MODE
———————————————————————————————————————— */
body.after-dark-mode {
  --bg:        #06040f;
  --bg-card:   #0e0820;
  --bg-elevated: #160d2a;
  --border:    rgba(108,53,222,0.2);
  --border-gold: rgba(201,162,39,0.4);
}
body.after-dark-mode .top-nav {
  background: rgba(6,4,15,0.95);
  border-color: rgba(108,53,222,0.25);
}
.after-dark-panel {
  background: linear-gradient(135deg, rgba(6,4,15,0.5), rgba(108,53,222,0.05));
  border-radius: var(--radius-lg);
  padding: 16px;
}

/* ————————————————————————————————————————
   29. UTILITAIRES
———————————————————————————————————————— */
.d-flex     { display: flex; }
.d-block    { display: block; }
.d-none     { display: none; }
.d-grid     { display: grid; }

.align-center    { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.justify-end     { justify-content: flex-end; }

.flex-wrap  { flex-wrap: wrap; }
.flex-col   { flex-direction: column; }
.flex-1     { flex: 1; }

.gap-4  { gap: 4px; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

.mt-4   { margin-top: 4px; }
.mt-8   { margin-top: 8px; }
.mt-12  { margin-top: 12px; }
.mt-16  { margin-top: 16px; }
.mt-24  { margin-top: 24px; }
.mt-32  { margin-top: 32px; }
.mb-8   { margin-bottom: 8px; }
.mb-12  { margin-bottom: 12px; }
.mb-16  { margin-bottom: 16px; }
.mb-24  { margin-bottom: 24px; }
.mb-32  { margin-bottom: 32px; }

.py-16  { padding-top: 16px; padding-bottom: 16px; }
.py-32  { padding-top: 32px; padding-bottom: 32px; }
.py-48  { padding-top: 48px; padding-bottom: 48px; }
.p-12   { padding: 12px; }
.col-span-full { grid-column: 1 / -1; }

.divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

.opacity-70 { opacity: 0.7; }

/* Scrollbar globale */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Selection */
::selection { background: rgba(201,162,39,0.3); }