﻿/* ============================================================
   iRevenge — Base CSS
   Variables globales, reset, typographie, utilitaires
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  /* Couleurs de titres */
  --titre-rouge:  #e74c3c;
  --titre-violet: #9b59b6;
  --titre-vert:   #2ecc71;

  /* Fonds */
  --bg:          #080808;
  --bg-2:        #111111;
  --bg-card:     #161616;
  --bg-modal:    rgba(8, 8, 8, 0.94);
  --bg-overlay:  rgba(0, 0, 0, 0.7);

  /* Accent rouge / bordeaux */
  --accent:       #c0392b;
  --accent-dark:  #7b241c;
  --accent-hover: #e74c3c;
  --accent-glow:  rgba(192, 57, 43, 0.35);
  --accent-sub:   rgba(192, 57, 43, 0.12);

  /* Texte */
  --text:        #eeeeee;
  --text-muted:  #ffffff;
  --text-dim:    #444444;

  /* Bordures */
  --border:       rgba(192, 57, 43, 0.2);
  --border-hover: rgba(192, 57, 43, 0.5);
  --border-sub:   rgba(255, 255, 255, 0.06);

  /* Statuts */
  --success: #27ae60;
  --warning: #e67e22;
  --danger:  #e74c3c;
  --info:    #2980b9;

  /* Layout */
  --header-h:  68px;
  --max-w:     1200px;
  --radius:    10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --gap:       20px;

  /* Transitions */
  --t: 0.2s ease;

  /* Typographie */
  --font:       'Poppins', sans-serif;
  --font-title: 'Cinzel', serif;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, video { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ── Base ───────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: var(--header-h);
}

main, .page-content {
  flex: 1;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 30px var(--gap);
}

/* ── Typographie ────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

.page-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-family: var(--font-title);
  color: var(--text);
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 14px;
}
.page-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 60px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--accent-dark); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── Messages ───────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 0.9rem;
  font-weight: 500;
}
.alert-success { background: rgba(39,174,96,0.15); border: 1px solid var(--success); color: #6edc9e; }
.alert-error   { background: rgba(231,76,60,0.15);  border: 1px solid var(--danger);  color: #f08070; }
.alert-warning { background: rgba(230,126,34,0.15); border: 1px solid var(--warning); color: #f0b870; }
.alert-info    { background: rgba(41,128,185,0.15); border: 1px solid var(--info);    color: #70b0f0; }

/* ── Utilitaires ────────────────────────────────────────────── */
.hidden  { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.mt-1  { margin-top: 8px; }
.mt-2  { margin-top: 16px; }
.mt-3  { margin-top: 24px; }
.mb-1  { margin-bottom: 8px; }
.mb-2  { margin-bottom: 16px; }
.mb-3  { margin-bottom: 24px; }

/* ── Grilles simples ────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.flex   { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }

/* ── Pagination ─────────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 40px 0;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px; height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-sub);
  color: var(--text-muted);
  font-weight: 500;
  transition: var(--t);
}
.pagination a:hover, .pagination a.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ── Badge / Tag ────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.badge-accent  { background: var(--accent-sub); border: 1px solid var(--border); color: var(--accent-hover); }
.badge-success { background: rgba(39,174,96,0.15); color: var(--success); }
.badge-warning { background: rgba(230,126,34,0.15); color: var(--warning); }

/* ── Séparateur ─────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border-sub);
  margin: 24px 0;
}
.divider-accent {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 24px 0;
}

/* ── Badge zone réservée admin/staff ───────────────────────── */
.admin-zone-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 7px; margin-bottom: 18px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.3px;
  background: rgba(192,57,43,0.12); border: 1px solid rgba(192,57,43,0.35);
  color: #e74c3c;
}
.admin-zone-badge--staff {
  background: rgba(192,57,43,0.12); border-color: rgba(192,57,43,0.35);
  color: #e74c3c;
}

/* ── Animations globales ────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInFast {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.animate-fade { animation: fadeIn 0.35s ease; }

/* ── Avatar animated ring ──────────────────────────────────── */
@keyframes rotateBorder {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.avatar-ring {
  display: inline-flex;
  padding: 2px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c0392b, #e74c3c, #7b0000, #c0392b);
  background-size: 300% 300%;
  animation: rotateBorder 4s linear infinite;
  flex-shrink: 0;
}
.avatar-ring img {
  border-radius: 50%;
  border: 2px solid var(--bg);
  display: block;
}

/* ── Responsive helpers ─────────────────────────────────────── */

