@import url('https://fonts.googleapis.com/css2?family=Clash+Display:wght@400;500;600;700&family=Cabinet+Grotesk:wght@300;400;500;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

:root {
  --bg: #080810;
  --surface: #111118;
  --surface2: #1a1a24;
  --border: #ffffff0f;
  --accent: #7c6dfa;
  --accent2: #fa6d8f;
  --accent3: #6dfabc;
  --text: #f0f0f8;
  --text-muted: #666680;
  --radius: 16px;
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
  --glow: 0 0 40px rgba(124,109,250,0.15);
}

[data-theme="light"] {
  --bg: #f5f5ff;
  --surface: #ffffff;
  --surface2: #eeeef8;
  --border: #0000001a;
  --text: #111118;
  --text-muted: #666680;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
}

/* ── PROGRESS BAR ── */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  z-index: 9999;
  width: 0%;
  transition: width 0.1s;
}

/* ── NAV ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(8,8,16,0.85);
  backdrop-filter: blur(20px);
  z-index: 100;
}

[data-theme="light"] nav { background: rgba(245,245,255,0.85); }

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
}

.nav-links { display: flex; gap: 0.75rem; align-items: center; }
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }

.theme-toggle {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all var(--transition);
}
.theme-toggle:hover { border-color: var(--accent); transform: rotate(20deg); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.3rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(124,109,250,0.4); }

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

.btn-danger {
  background: transparent;
  color: #ff6464;
  border: 1px solid rgba(255,100,100,0.2);
}
.btn-danger:hover { background: rgba(255,100,100,0.1); }

.btn-success {
  background: transparent;
  color: var(--accent3);
  border: 1px solid rgba(109,250,188,0.2);
}
.btn-success:hover { background: rgba(109,250,188,0.1); }

.btn-sm { padding: 0.35rem 0.9rem; font-size: 0.8rem; }

/* ── HERO ── */
.hero {
  padding: 5rem 2rem 3rem;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.hero-bg {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(124,109,250,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
}

.hero h1 .grad {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 500px;
  margin-bottom: 2.5rem;
}

/* ── STATS ── */
.stats-bar {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label { color: var(--text-muted); font-size: 0.85rem; }

/* ── SEARCH ── */
.search-section {
  max-width: 1000px;
  margin: 0 auto 2rem;
  padding: 0 2rem;
}

.search-bar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.search-bar input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.9rem 1.5rem;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: all var(--transition);
}
.search-bar input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124,109,250,0.1);
}
.search-bar input::placeholder { color: var(--text-muted); }

.tags-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.tag {
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  font-family: 'DM Sans', sans-serif;
}
.tag:hover, .tag.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(124,109,250,0.08);
}

/* ── GRID ── */
.metiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.25rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem 2rem;
}

/* ── SKELETON ── */
.skeleton {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  overflow: hidden;
  position: relative;
}
.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
  animation: shimmer 1.5s infinite;
}
.skeleton-line {
  height: 14px;
  background: var(--surface2);
  border-radius: 4px;
  margin-bottom: 10px;
}
.skeleton-line.wide { width: 70%; }
.skeleton-line.short { width: 40%; }
.skeleton-title { height: 22px; background: var(--surface2); border-radius: 4px; margin-bottom: 14px; width: 60%; }

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ── CARD ── */
.metier-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.5s forwards;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.metier-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,109,250,0.05), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.metier-card:hover::before { opacity: 1; }
.metier-card:hover {
  border-color: rgba(124,109,250,0.3);
  transform: translateY(-4px);
  box-shadow: var(--glow);
}

.card-nouveau {
  position: absolute;
  top: 1rem; right: 1rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metier-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  padding-right: 3rem;
}

.metier-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.card-tag {
  padding: 0.2rem 0.7rem;
  background: rgba(124,109,250,0.1);
  color: var(--accent);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* ── DETAIL PAGE ── */
.detail-hero {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
}

.detail-hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.detail-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }

.detail-description {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem 2.5rem;
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.9;
  white-space: pre-line;
}

.photos-grid {
  max-width: 860px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}
.photos-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: transform var(--transition);
}
.photos-grid img:hover { transform: scale(1.02); }

/* ── FORUM ── */
.forum-section {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

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

.forum-header h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.username-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.username-banner input {
  flex: 1;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.5rem 1rem;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  outline: none;
}

.username-banner input:focus { border-color: var(--accent); }

.forum-compose {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 2rem;
}

.forum-compose textarea {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  resize: vertical;
  min-height: 100px;
  outline: none;
  margin-bottom: 0.75rem;
  transition: border-color var(--transition);
}
.forum-compose textarea:focus { border-color: var(--accent); }
.forum-compose textarea::placeholder { color: var(--text-muted); }

.forum-compose-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ── MESSAGES REDDIT STYLE ── */
.forum-thread { display: flex; flex-direction: column; gap: 1rem; }

.forum-message {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color var(--transition);
}
.forum-message:hover { border-color: rgba(124,109,250,0.2); }

.forum-message.reply {
  margin-left: 2rem;
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface2);
}

.msg-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.msg-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.msg-author { font-weight: 600; font-size: 0.9rem; }
.msg-date { color: var(--text-muted); font-size: 0.8rem; margin-left: auto; }

.msg-content {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.msg-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.reaction-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.25rem 0.7rem;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: all var(--transition);
  font-family: 'DM Sans', sans-serif;
  display: flex; align-items: center; gap: 0.3rem;
}
.reaction-btn:hover { border-color: var(--accent); color: var(--accent); transform: scale(1.05); }
.reaction-btn.reacted { border-color: var(--accent); color: var(--accent); background: rgba(124,109,250,0.1); }

.reply-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: all var(--transition);
}
.reply-btn:hover { color: var(--accent); background: rgba(124,109,250,0.08); }

.reply-form {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  display: none;
}
.reply-form.open { display: block; }
.reply-form textarea {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  resize: vertical;
  min-height: 80px;
  outline: none;
  margin-bottom: 0.5rem;
}
.reply-form textarea:focus { border-color: var(--accent); }
.reply-form textarea::placeholder { color: var(--text-muted); }

.replies { margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.75rem; }

/* ── FORMS ── */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
label { font-size: 0.85rem; font-weight: 500; color: var(--text-muted); }

input, textarea, select {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition);
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124,109,250,0.1);
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
textarea { resize: vertical; min-height: 120px; }
select option { background: var(--surface2); }

/* ── PAGE PROPOSER ── */
.page-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.page-container h1 {
  font-family: 'Syne', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.page-container .subtitle { color: var(--text-muted); margin-bottom: 2rem; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ── CONFETTI ── */
.confetti-piece {
  position: fixed;
  width: 10px; height: 10px;
  top: -10px;
  border-radius: 2px;
  animation: confettiFall linear forwards;
  z-index: 9999;
  pointer-events: none;
}

@keyframes confettiFall {
  to { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* ── ADMIN ── */
.admin-layout { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: 230px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 1.5rem 1rem;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.admin-sidebar h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  padding: 0 0.5rem;
}

.sidebar-nav { display: flex; flex-direction: column; gap: 0.25rem; flex: 1; }

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition);
}
.sidebar-nav a:hover, .sidebar-nav a.active {
  background: rgba(124,109,250,0.1);
  color: var(--accent);
}

.badge-count {
  margin-left: auto;
  background: var(--accent2);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 100px;
}

.admin-main { flex: 1; padding: 2rem; overflow-x: auto; }

.admin-main h1 {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.admin-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.admin-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.admin-table tr:hover td { background: var(--surface2); }

.badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-publie { background: rgba(109,250,188,0.15); color: #6dfabc; }
.badge-cache { background: rgba(250,109,143,0.15); color: #fa6d8f; }
.badge-attente { background: rgba(250,200,109,0.15); color: #fac86d; }
.badge-bloque { background: rgba(255,80,80,0.15); color: #ff5050; }

.admin-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

/* ── LOGIN ── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(124,109,250,0.1) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  position: relative;
}

.login-card h1 {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.login-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 2rem; }
.login-form { display: flex; flex-direction: column; gap: 1rem; }

/* ── EMPTY ── */
.empty { text-align: center; padding: 4rem 2rem; color: var(--text-muted); }
.empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty h3 { font-family: 'Syne', sans-serif; font-weight: 700; margin-bottom: 0.5rem; color: var(--text); }

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 2rem; right: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  font-size: 0.9rem;
  z-index: 1000;
  animation: slideIn 0.3s ease;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  max-width: 320px;
}
.toast.success { border-color: rgba(109,250,188,0.3); color: #6dfabc; }
.toast.error { border-color: rgba(250,109,143,0.3); color: #fa6d8f; }
.toast.info { border-color: rgba(124,109,250,0.3); color: var(--accent); }

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

/* ── BACK LINK ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  transition: color var(--transition);
}
.back-link:hover { color: var(--accent); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  margin-top: 4rem;
  text-align: center;
}

.footer-logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

footer p { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.5rem; }
footer a { color: var(--text-muted); text-decoration: none; transition: color var(--transition); }
footer a:hover { color: var(--accent); }

.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* ── EASTER EGG MATRIX ── */
.matrix-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9998;
  display: none;
  overflow: hidden;
}
.matrix-overlay canvas { display: block; }

/* ── KONAMI ── */
.konami-overlay {
  position: fixed;
  inset: 0;
  z-index: 9997;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.9);
  display: none;
  flex-direction: column;
  gap: 1rem;
}
.konami-overlay h2 {
  font-family: 'Syne', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: pulse 0.5s infinite alternate;
}
@keyframes pulse { from { transform: scale(1); } to { transform: scale(1.05); } }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: relative; }
  .metiers-grid { grid-template-columns: 1fr; }
  .stats-bar { gap: 1.5rem; }
  .forum-message.reply { margin-left: 1rem; }
}