/* ==========================================================================
   DESIGN TOKENS & RESET
   ========================================================================== */
:root {
  --bg-main: #060911;
  --bg-navbar: #090d18;
  --bg-card: #0d121f;
  --bg-input: #0a0e1a;
  --border-color: #1a233a;
  --border-focus: #38bdf8;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-gold: #f59e0b;
  --accent-green: #10b981;
  --accent-blue: #38bdf8;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-box: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  --font-base: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

[data-theme="light"] {
  --bg-main: #f8fafc;
  --bg-navbar: #ffffff;
  --bg-card: #ffffff;
  --bg-input: #f1f5f9;
  --border-color: #e2e8f0;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   MENU FLOTTANT LATÉRAL GAUCHE (« REPÈRES »)
   ========================================================================== */
.side-nav-dock {
  position: fixed;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 99;
  background: rgba(8, 12, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 20px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
  border-radius: 36px;
  padding: 18px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 58px;
}

[data-theme="light"] .side-nav-dock {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.side-dock-title {
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
  user-select: none;
}

.side-dock-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.side-dock-btn svg {
  width: 17px;
  height: 17px;
  transition: transform 0.25s ease;
}

.side-dock-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.side-dock-btn:hover svg {
  transform: scale(1.15);
}

.side-dock-btn.active {
  background: #ff9800;
  color: #060911;
  border: 2px solid #ffffff;
  box-shadow: 0 0 18px rgba(255, 152, 0, 0.55), 0 0 6px rgba(255, 255, 255, 0.5);
}

.side-dock-btn.active svg {
  stroke: #060911;
  stroke-width: 2.4;
}

.side-dock-btn.accent-gold { color: #f59e0b; }
.side-dock-btn.accent-blue { color: #38bdf8; }
.side-dock-btn.accent-purple { color: #c084fc; }

.side-dock-divider {
  width: 24px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 2px 0;
}

.side-dock-btn .side-tooltip {
  position: absolute;
  left: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  background: #0d1424;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.side-dock-btn .side-tooltip::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-right-color: #0d1424;
}

.side-dock-btn:hover .side-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 1400px) {
  .side-nav-dock {
    display: none;
  }
}

/* ==========================================================================
   NAVBAR & RECHERCHE GLOBALE
   ========================================================================== */
.navbar-wrapper {
  background-color: var(--bg-navbar);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-full);
}

.brand-logo-fallback {
  background: #ffffff;
  color: #090d18;
  font-weight: 800;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 4px;
}

.brand-logo-fallback .dot { color: var(--accent-green); font-size: 16px; }
.brand-titles { display: flex; flex-direction: column; }
.brand-name { font-size: 15px; font-weight: 800; color: var(--text-primary); line-height: 1.1; }
.brand-sub { font-size: 9px; color: var(--accent-blue); font-weight: 700; letter-spacing: 0.5px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(10, 14, 26, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 5px 6px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-links:hover {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45), 0 0 16px rgba(56, 189, 248, 0.15);
}

[data-theme="light"] .nav-links {
  background: #f1f5f9;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.nav-btn {
  position: relative;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  white-space: nowrap;
}

.nav-btn svg {
  width: 15px;
  height: 15px;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-btn:hover:not(.active) {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.nav-btn:hover:not(.active) svg {
  transform: scale(1.15) rotate(-4deg);
}

.nav-btn.active {
  background: #ffffff;
  color: #090d18;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.nav-btn.active svg {
  stroke: #090d18;
}

.nav-btn.active:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.25);
}

.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-search-wrapper { position: relative; }

.nav-search-box {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  gap: 8px;
  width: 190px;
  transition: width 0.2s, border-color 0.2s;
}

.nav-search-box:focus-within {
  width: 240px;
  border-color: var(--border-focus);
}

.nav-search-box svg { width: 14px; height: 14px; color: var(--text-muted); }
.nav-search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 12.5px;
  width: 100%;
}

.nav-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-box);
  max-height: 380px;
  overflow-y: auto;
  display: none;
  z-index: 1000;
}

.nav-search-dropdown.active { display: block; }

.search-result-group {
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-input);
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s;
}

.search-result-item:hover { background: rgba(255, 255, 255, 0.05); }

.search-result-thumb {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  object-fit: cover;
}

.search-result-info { display: flex; flex-direction: column; flex: 1; overflow: hidden; }
.search-result-title { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result-meta { font-size: 11px; color: var(--text-muted); }

.icon-action-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  cursor: pointer;
  flex-shrink: 0;
}

.icon-action-btn svg { width: 16px; height: 16px; }

.btn-login-header {
  background: #ffffff;
  color: #090d18;
  border: none;
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
}

/* ==========================================================================
   ESPACEMENT ENTRE LES SOUS-SECTIONS DE LA PAGE
   ========================================================================= */
.home-section {
  scroll-margin-top: 110px;
  margin-bottom: 80px;
}

.home-section:last-of-type {
  margin-bottom: 40px;
}

/* ==========================================================================
   AGENDA DES SORTIES (TIMELINE & CARTES)
   ========================================================================== */
.agenda-timeline-grid {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.agenda-month-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.agenda-month-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--border-color);
}

.agenda-month-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent-gold);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.agenda-month-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-input);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.agenda-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
}

.agenda-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  gap: 16px;
  padding: 14px;
  transition: transform 0.2s, border-color 0.2s;
}

.agenda-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-focus);
}

.agenda-card-thumb {
  width: 105px;
  height: 125px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  background: #111827;
}

.agenda-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agenda-card-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
}

.agenda-card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.agenda-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  width: fit-content;
}

.btn-delete-agenda {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  border-radius: var(--radius-sm);
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
  flex-shrink: 0;
}

.btn-delete-agenda svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

.btn-delete-agenda:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
  transform: scale(1.08);
}

.agenda-card-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agenda-card-studio {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 8px;
}

.agenda-card-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.agenda-card-platforms {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.agenda-plat-pill {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
}

/* ==========================================================================
   ACTUALITÉS & ARTICLES (CORRECTIONS OVERFLOW & TYPOGRAPHIE)
   ========================================================================== */
.actu-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.actu-article-container {
  max-width: 860px;
  margin: 0 auto;
}

.actu-lead-box {
  border-left: 3.5px solid var(--accent-gold);
  padding: 18px 22px;
  background: var(--bg-input);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 28px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.actu-content-body {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-secondary);
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-line;
  margin-bottom: 36px;
}

.actu-content-body p {
  margin-bottom: 18px;
}

.user-comment-text {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-line;
}

/* ==========================================================================
   SONDAGE HEBDOMADAIRE, NAVIGATION & ACTIONS RÉDACTION
   ========================================================================== */
.poll-section {
  background: linear-gradient(180deg, rgba(13, 18, 31, 0.9) 0%, rgba(8, 12, 22, 0.95) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-box);
}

.poll-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.poll-title-wrap h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 8px 0 4px;
}

.poll-subtitle {
  font-size: 13.5px;
  color: var(--text-secondary);
}

.poll-actions-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.poll-nav-arrows {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 4px 6px;
  border-radius: var(--radius-full);
  height: 38px;
}

.poll-nav-arrow-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}

.poll-nav-arrow-btn svg { width: 16px; height: 16px; }

.poll-nav-arrow-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-gold);
}

.poll-nav-arrow-btn:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

.poll-current-week-pill {
  background: var(--accent-gold);
  color: #090d18;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  user-select: none;
  display: flex;
  align-items: center;
  height: 28px;
}

.poll-admin-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.poll-admin-sub-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-poll-edit,
.btn-poll-delete {
  border: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 0 12px;
  height: 38px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.15s, opacity 0.2s, background 0.2s;
  white-space: nowrap;
}

.btn-poll-edit svg,
.btn-poll-delete svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.btn-poll-edit {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--accent-gold);
}

.btn-poll-delete {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

.btn-poll-edit:hover { background: rgba(245, 158, 11, 0.22); transform: translateY(-1px); }
.btn-poll-delete:hover { background: rgba(239, 68, 68, 0.22); transform: translateY(-1px); }

.btn-new-poll-trigger {
  background: var(--accent-gold);
  color: #090d18;
  border: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 0 14px;
  height: 38px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn-new-poll-trigger:hover { opacity: 0.9; transform: translateY(-1px); }

.poll-layout-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
}

.poll-question-card { margin-bottom: 18px; }

.poll-question-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-blue);
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 6px;
}

.poll-question-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}

.poll-options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.poll-option-item {
  position: relative;
  background: var(--bg-input);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.15s;
}

.poll-option-item:hover {
  border-color: var(--border-focus);
  transform: translateY(-2px);
}

.poll-option-item.voted {
  border-color: var(--accent-gold);
  cursor: default;
  transform: none;
}

.poll-option-progress {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background: rgba(56, 189, 248, 0.12);
  pointer-events: none;
  transition: width 0.4s ease;
  z-index: 1;
}

.poll-option-item.voted .poll-option-progress {
  background: rgba(245, 158, 11, 0.18);
}

.poll-option-content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.poll-option-text { display: flex; flex-direction: column; gap: 2px; }
.poll-option-title { font-size: 14.5px; font-weight: 800; color: var(--text-primary); }
.poll-option-desc { font-size: 12px; color: var(--text-muted); }

.poll-option-stat { text-align: right; flex-shrink: 0; }
.poll-option-pct { font-size: 20px; font-weight: 900; color: var(--text-primary); line-height: 1; }
.poll-option-count { font-size: 11px; color: var(--text-muted); font-weight: 700; }

.poll-sidebar-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.poll-sidebar-box {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.poll-sidebar-heading {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-gold);
  letter-spacing: 0.5px;
}

.poll-sidebar-quote {
  font-size: 13px;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.6;
  border-left: 2px solid var(--accent-gold);
  padding-left: 10px;
}

.poll-sidebar-author {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-primary);
}

.poll-sidebar-author small {
  display: block;
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.community-reactions-box {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
}

.reactions-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.reactions-buttons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.reaction-pill-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  color: inherit;
}

.reaction-pill-btn:hover {
  border-color: var(--border-focus);
  background: rgba(56, 189, 248, 0.05);
  transform: translateY(-2px);
}

.reaction-pill-btn.active {
  background: rgba(245, 158, 11, 0.12);
  border-color: var(--accent-gold);
}

.reaction-emoji { font-size: 22px; margin-bottom: 4px; }
.reaction-count { font-size: 15px; font-weight: 900; color: var(--text-primary); margin-bottom: 2px; }
.reaction-label { font-size: 9.5px; font-weight: 800; color: var(--text-muted); letter-spacing: 0.5px; }

.poll-status-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   PROFIL JOUEUR & SYSTÈME DE SUCCÈS
   ========================================================================== */
.user-profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-hero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.profile-main-info {
  display: flex;
  align-items: center;
  gap: 18px;
}

.profile-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.profile-avatar-huge {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #060911;
  font-size: 32px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  user-select: none;
}

.profile-avatar-huge.redac {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-color: rgba(245, 158, 11, 0.4);
}

.profile-avatar-level-pill {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: #090d18;
  border: 2px solid var(--accent-gold);
  color: var(--accent-gold);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.profile-user-titles {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-username-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-username-text {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.profile-rank-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-blue);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.profile-rank-badge.gold {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
  border-color: rgba(245, 158, 11, 0.35);
}

.profile-meta-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-bio-box {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  font-style: italic;
  position: relative;
}

.profile-platforms-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-platform-tag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Barre de progression XP */
.profile-xp-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

.profile-xp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.profile-xp-title {
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-xp-val {
  color: var(--accent-gold);
  font-weight: 800;
}

.profile-xp-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.profile-xp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-gold) 0%, #10b981 100%);
  border-radius: var(--radius-full);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

/* Grille de stats rapides */
.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.profile-stat-box {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: transform 0.2s, border-color 0.2s;
}

.profile-stat-box:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.3);
}

.profile-stat-icon {
  font-size: 18px;
  margin-bottom: 2px;
}

.profile-stat-num {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.profile-stat-label {
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Navigation des onglets */
.profile-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.profile-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  padding: 10px 14px;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.profile-tab-btn:hover {
  color: var(--text-primary);
}

.profile-tab-btn.active {
  color: var(--text-primary);
}

.profile-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gold);
}

.tab-badge-count {
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 7px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  color: var(--text-secondary);
}

.profile-tab-btn.active .tab-badge-count {
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-gold);
}

/* Grille des succès */
.achievements-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.achievements-counter-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
}

.achievements-pills-filter {
  display: flex;
  gap: 6px;
}

.filter-pill-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-pill-btn.active {
  background: var(--accent-gold);
  color: #060911;
  border-color: var(--accent-gold);
  font-weight: 700;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.achievement-card {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  transition: all 0.25s ease;
}

.achievement-card.unlocked {
  background: linear-gradient(135deg, rgba(13, 18, 31, 0.95) 0%, rgba(20, 29, 48, 0.9) 100%);
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.achievement-card.tier-platinum.unlocked {
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.25);
}

.achievement-card.tier-gold.unlocked {
  border-color: rgba(245, 158, 11, 0.5);
}

.achievement-card.tier-silver.unlocked {
  border-color: rgba(148, 163, 184, 0.4);
}

.achievement-card.locked {
  opacity: 0.65;
  filter: grayscale(0.7);
}

.achievement-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  position: relative;
}

.achievement-card.unlocked .achievement-icon-wrap {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
}

.achievement-card.locked .achievement-icon-wrap::after {
  content: '🔒';
  position: absolute;
  bottom: -4px;
  right: -4px;
  font-size: 11px;
}

.achievement-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.achievement-header-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.achievement-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.achievement-xp-badge {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.12);
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.achievement-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.achievement-status-tag {
  font-size: 11px;
  font-weight: 700;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.achievement-status-tag.done {
  color: var(--accent-green);
}

.achievement-status-tag.todo {
  color: var(--text-muted);
}

/* Formulaire d'édition de profil */
.profile-edit-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.avatar-selector-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.avatar-option-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  font-size: 24px;
  padding: 8px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-option-btn:hover {
  transform: scale(1.08);
  border-color: var(--border-focus);
}

.avatar-option-btn.active {
  border-color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.15);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.platforms-checkbox-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.platform-check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.platform-check-label:hover {
  border-color: var(--text-muted);
}

.platform-check-label input:checked + span {
  color: var(--accent-gold);
  font-weight: 700;
}

/* Toast de succès déverrouillé */
.achievement-toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.achievement-toast {
  background: rgba(9, 13, 24, 0.95);
  border: 1px solid var(--accent-gold);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 158, 11, 0.3);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 300px;
  max-width: 380px;
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: auto;
}

.achievement-toast.show {
  transform: translateX(0);
  opacity: 1;
}

.achievement-toast-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  animation: toastIconPop 0.6s ease-out;
}

@keyframes toastIconPop {
  0% { transform: scale(0.5) rotate(-15deg); }
  60% { transform: scale(1.2) rotate(10deg); }
  100% { transform: scale(1) rotate(0); }
}

.achievement-toast-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.achievement-toast-badge {
  font-size: 10px;
  font-weight: 800;
  color: var(--accent-gold);
  letter-spacing: 0.8px;
}

.achievement-toast-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.achievement-toast-xp {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-green);
}

@media (max-width: 640px) {
  .profile-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .achievements-grid {
    grid-template-columns: 1fr;
  }
  .avatar-selector-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .platforms-checkbox-group {
    grid-template-columns: 1fr;
  }
  .profile-hero-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

.vote-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; }

.btn-vote {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}

.btn-vote:hover { color: var(--text-primary); border-color: var(--accent-gold); }
.btn-vote.active {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}
.btn-vote.active.vote-dislike {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.25);
}

.btn-wishlist {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  width: 100%;
  justify-content: center;
  margin-top: 10px;
}

.btn-wishlist.active {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #ef4444;
}

/* ==========================================================================
   ENCART INVITATION CONNEXION
   ========================================================================== */
.auth-prompt-card {
  background: linear-gradient(135deg, rgba(13, 18, 31, 0.95) 0%, rgba(10, 14, 26, 0.95) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.auth-prompt-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-gold) 0%, var(--accent-green) 100%);
}

.auth-prompt-icon {
  font-size: 32px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-prompt-body { flex: 1; }
.auth-prompt-body h4 { font-size: 15px; font-weight: 800; color: var(--text-primary); margin-bottom: 4px; }
.auth-prompt-body p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin: 0; }

.btn-auth-prompt {
  background: #ffffff;
  color: #090d18;
  border: none;
  font-family: var(--font-base);
  font-size: 13px;
  font-weight: 800;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
}

.btn-auth-prompt svg { width: 15px; height: 15px; transition: transform 0.15s; }
.btn-auth-prompt:hover { background: #f8fafc; transform: translateY(-2px); box-shadow: 0 4px 14px rgba(255, 255, 255, 0.15); }
.btn-auth-prompt:hover svg { transform: translateX(3px); }

/* ==========================================================================
   STRUCTURE GLOBALE & CATALOGUES
   ========================================================================== */
.main-content {
  padding: 36px 0 80px;
  flex: 1;
}

.page-headline { margin-bottom: 24px; }
.page-title { font-size: 28px; font-weight: 800; margin-bottom: 4px; }
.page-subtitle { font-size: 13.5px; color: var(--text-secondary); }

.badge-pill {
  display: inline-block;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

.section-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.section-title-left { display: flex; align-items: center; gap: 12px; }
.icon-tag {
  font-size: 20px;
  background: rgba(16, 185, 129, 0.15);
  padding: 8px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-heading { font-size: 20px; font-weight: 800; }
.section-subheading { font-size: 12.5px; color: var(--text-muted); }
.link-btn {
  background: transparent;
  border: none;
  color: var(--accent-green);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.grid-2-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.actu-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  gap: 16px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, border-color 0.2s;
}

.actu-card:hover { transform: translateY(-2px); border-color: var(--border-focus); }
.actu-thumb {
  width: 100px;
  height: 90px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #1e293b;
  flex-shrink: 0;
}

.actu-thumb img { width: 100%; height: 100%; object-fit: cover; }
.actu-body { display: flex; flex-direction: column; justify-content: center; flex: 1; min-width: 0; }
.actu-meta { font-size: 11px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.badge-mini {
  background: rgba(30, 41, 59, 0.8);
  font-size: 9.5px;
  font-weight: 800;
  color: var(--text-secondary);
  padding: 2px 6px;
  border-radius: 4px;
}

.actu-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero-feature {
  position: relative;
  background: linear-gradient(135deg, #0b1120 0%, #080d19 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  overflow: hidden;
}

.hero-feature-content { max-width: 650px; }
.hero-tags { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }

.badge-highlight {
  background: #d97706;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.badge-plat {
  background: rgba(30, 41, 59, 0.8);
  font-size: 11px;
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.hero-title { font-size: 36px; font-weight: 800; margin-bottom: 14px; }
.hero-quote {
  font-size: 14px;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 24px;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  padding-left: 12px;
}

.hero-scores-row { display: flex; gap: 20px; margin-bottom: 24px; }
.score-badge-card { display: flex; align-items: center; gap: 10px; }

.score-num {
  font-size: 22px;
  font-weight: 900;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  color: #090d18;
}

.score-num.gold { background: var(--accent-gold); }
.score-num.green { background: var(--accent-green); color: #fff; }
.score-meta-label { font-size: 10px; font-weight: 800; color: var(--text-muted); }
.score-meta-value { font-size: 14px; font-weight: 800; }

.filter-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.filter-top-row {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 14px;
}

.search-input-box {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 7px 14px;
  gap: 8px;
  width: 100%;
}

.search-input-box svg { width: 15px; height: 15px; color: var(--text-muted); flex-shrink: 0; }
.search-input-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 13px;
  width: 100%;
}

.custom-select {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding: 10px 14px;
  font-weight: 600;
  outline: none;
}

.filter-tags-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.filter-label { font-size: 11px; font-weight: 800; color: var(--text-muted); width: 90px; }
.tags-list { display: flex; gap: 8px; flex-wrap: wrap; }

.tag-btn {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.tag-btn.active { background: #ffffff; color: #090d18; font-weight: 700; }
.tag-btn.active-green { background: var(--accent-green); color: #ffffff; font-weight: 700; }
.tag-btn.active-gold { background: var(--accent-gold); color: #090d18; font-weight: 700; }

.filter-bottom-actions {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 12px;
}

.btn-text {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.btn-text:hover { color: var(--text-primary); }
.count-indicator { font-size: 12.5px; font-weight: 800; color: var(--text-muted); margin-bottom: 16px; }

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}

.game-card:hover { transform: translateY(-4px); border-color: var(--border-focus); }
.game-card-media { position: relative; height: 180px; background: #111827; }
.game-card-media img { width: 100%; height: 100%; object-fit: cover; }

.game-card-badges {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.score-pill-mini {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.score-pill-mini.gold { background: var(--accent-gold); color: #090d18; }
.score-pill-mini.green { background: var(--accent-green); color: #fff; }

.game-card-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.game-card-title { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.game-card-quote { font-size: 12.5px; color: var(--text-secondary); margin-bottom: 14px; flex: 1; }

.featured-chronique-banner {
  position: relative;
  height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin-bottom: 30px;
  display: flex;
  align-items: flex-end;
  padding: 30px;
}

.banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6, 9, 17, 0.95) 0%, rgba(6, 9, 17, 0.3) 100%); }
.banner-content { position: relative; z-index: 2; max-width: 700px; }
.banner-title { font-size: 26px; font-weight: 800; margin: 10px 0 6px; }
.banner-desc { font-size: 14px; color: var(--text-secondary); }

.chroniques-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.palmares-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; gap: 16px; }
.segmented-control { display: flex; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-full); padding: 4px; }
.seg-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
}
.seg-btn.active { background: #ffffff; color: #090d18; }

.btn-back {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-back:hover { color: var(--text-primary); border-color: var(--border-focus); }

.detail-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-box);
}

.detail-hero-banner { position: relative; height: 380px; background: #111827; }
.detail-hero-banner img { width: 100%; height: 100%; object-fit: cover; }
.detail-hero-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg-card) 0%, rgba(6, 9, 17, 0.4) 60%, transparent 100%); }
.detail-hero-text { position: absolute; bottom: 30px; left: 30px; right: 30px; z-index: 2; }
.detail-title { font-size: 34px; font-weight: 800; margin: 10px 0 6px; overflow-wrap: anywhere; word-break: break-word; }
.detail-meta-info { font-size: 13px; color: var(--text-muted); }

.detail-body { padding: 36px 30px; display: grid; grid-template-columns: 1fr 300px; gap: 40px; }
.detail-main-text { font-size: 15px; line-height: 1.8; color: var(--text-secondary); min-width: 0; }

.detail-quote-box {
  border-left: 3px solid var(--accent-gold);
  padding: 16px 20px;
  background: var(--bg-input);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 24px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-section { margin-bottom: 28px; }
.article-section h3 { font-size: 19px; font-weight: 800; margin-bottom: 10px; color: var(--text-primary); }
.article-section p { font-size: 14.5px; line-height: 1.75; color: var(--text-secondary); overflow-wrap: anywhere; word-break: break-word; }

.pros-cons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 32px 0; }
.pros-card, .cons-card { padding: 18px 20px; border-radius: var(--radius-md); border: 1px solid var(--border-color); }
.pros-card { background: rgba(16, 185, 129, 0.05); border-color: rgba(16, 185, 129, 0.3); }
.cons-card { background: rgba(239, 68, 68, 0.05); border-color: rgba(239, 68, 68, 0.3); }
.pros-card h4 { font-size: 14px; font-weight: 800; margin-bottom: 12px; color: var(--accent-green); }
.cons-card h4 { font-size: 14px; font-weight: 800; margin-bottom: 12px; color: #ef4444; }

.pros-card ul, .cons-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.pros-card li::before { content: "✔ "; color: var(--accent-green); font-weight: 800; }
.cons-card li::before { content: "✖ "; color: #ef4444; font-weight: 800; }
.pros-card li, .cons-card li { font-size: 13px; color: var(--text-secondary); }

.detail-sidebar { display: flex; flex-direction: column; gap: 20px; }
.detail-verdict-card { background: var(--bg-input); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 24px; text-align: center; }
.verdict-score-huge { font-size: 52px; font-weight: 900; color: var(--accent-gold); line-height: 1; margin: 8px 0; }
.verdict-score-huge.green { color: var(--accent-green); }
.verdict-score-huge small { font-size: 20px; color: var(--text-muted); }
.verdict-label { font-size: 11px; font-weight: 800; color: var(--text-muted); letter-spacing: 0.5px; }

.score-progress-bar { width: 100%; height: 6px; background: var(--bg-card); border-radius: var(--radius-full); margin: 10px 0 8px; overflow: hidden; }
.score-progress-fill { height: 100%; border-radius: var(--radius-full); }
.score-progress-fill.gold { background: var(--accent-gold); }
.score-progress-fill.green { background: var(--accent-green); }
.verdict-rank-txt { font-size: 11.5px; color: var(--text-muted); font-weight: 600; }

.detail-info-list { background: var(--bg-input); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 20px; list-style: none; }
.detail-info-list li { display: flex; justify-content: space-between; padding: 8px 0; font-size: 12.5px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.detail-info-list li:last-child { border-bottom: none; }
.info-label { color: var(--text-muted); font-weight: 600; }
.info-value { color: var(--text-primary); font-weight: 700; }

.redac-article-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-edit-article, .btn-delete-article {
  border: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-edit-article { background: var(--accent-gold); color: #090d18; }
.btn-delete-article { background: rgba(239, 68, 68, 0.2); border: 1px solid #ef4444; color: #ef4444; }

.community-reviews-section { border-top: 1px solid var(--border-color); padding-top: 30px; margin-top: 30px; }
.reviews-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }

/* ==========================================================================
   COMPOSITEUR DE VERDICT JOUEUR AMÉLIORÉ
   ========================================================================== */
.game-review-composer-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.95) 0%, rgba(9, 13, 24, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  margin-bottom: 28px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(56, 189, 248, 0.06);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.game-review-composer-card:focus-within {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 35px rgba(56, 189, 248, 0.12);
}

.composer-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.composer-author-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.composer-avatar-mini {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.15);
  border: 2px solid rgba(56, 189, 248, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.2);
}

.composer-avatar-mini.redac {
  border-color: var(--accent-gold);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.25);
}

.composer-meta-titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.composer-user-headline {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.composer-subtitle {
  font-size: 11.5px;
  color: var(--text-muted);
}

.composer-xp-incentive {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--accent-gold);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
}

/* SECTION SÉLECTEUR DE NOTE INTERACTIF */
.composer-score-section {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.composer-score-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.composer-score-prompt {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

.composer-verdict-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 800;
  transition: all 0.2s;
}

.composer-score-pills-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
}

.score-dial-btn {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
  height: 42px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  position: relative;
}

.score-dial-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.score-dial-btn.active {
  color: #fff;
  transform: translateY(-2px) scale(1.05);
}

.score-dial-btn.active.tier-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-color: #fbbf24;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}
.score-dial-btn.active.tier-green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #34d399;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}
.score-dial-btn.active.tier-blue {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  border-color: #38bdf8;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
}
.score-dial-btn.active.tier-yellow {
  background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
  border-color: #fde047;
  box-shadow: 0 4px 15px rgba(234, 179, 8, 0.4);
}
.score-dial-btn.active.tier-orange {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  border-color: #fb923c;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}
.score-dial-btn.active.tier-red {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  border-color: #f87171;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

/* INPUTS ET TEXTAREA DU COMPOSITEUR */
.composer-headline-input {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
}

.composer-headline-input:focus {
  border-color: var(--accent-blue);
}

.composer-pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.composer-pro-box, .composer-con-box {
  position: relative;
  display: flex;
  align-items: center;
}

.composer-pro-box input, .composer-con-box input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 9px 12px 9px 34px;
  font-size: 12px;
  color: var(--text-primary);
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}

.composer-pro-box input:focus { border-color: var(--accent-green); }
.composer-con-box input:focus { border-color: #ef4444; }

.composer-icon-indicator {
  position: absolute;
  left: 12px;
  font-size: 13px;
  pointer-events: none;
}

.composer-textarea-wrap {
  position: relative;
}

.composer-textarea-wrap textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px 28px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.55;
  resize: vertical;
  min-height: 95px;
  outline: none;
  transition: border-color 0.2s;
}

.composer-textarea-wrap textarea:focus {
  border-color: var(--accent-blue);
}

.composer-char-count {
  position: absolute;
  right: 12px;
  bottom: 8px;
  font-size: 10.5px;
  color: var(--text-muted);
  pointer-events: none;
}

.composer-footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.composer-helper-tips {
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-publish-verdict {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: 1px solid rgba(52, 211, 153, 0.4);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  transition: all 0.2s ease;
}

.btn-publish-verdict:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}

.btn-delete-verdict {
  background: transparent;
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.35);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-delete-verdict:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: #ef4444;
}

/* RENDU ENRICHI D'UN AVIS DANS LA LISTE */
.user-review-headline {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 6px 0 4px;
}

.user-review-highlights-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}

.review-highlight-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.review-highlight-tag.pro {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

.review-highlight-tag.con {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

@media (max-width: 640px) {
  .composer-score-pills-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .composer-pros-cons-grid {
    grid-template-columns: 1fr;
  }
  .composer-footer-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-publish-verdict {
    width: 100%;
    justify-content: center;
  }
}

/* BANNIÈRE AVIS UNIQUE PAR JOUEUR */
.user-already-reviewed-card {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08) 0%, rgba(16, 185, 129, 0.08) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.already-reviewed-badge-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 680px;
}

.already-reviewed-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.18);
  border: 1.5px solid #10b981;
  color: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

.already-reviewed-texts {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.already-reviewed-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.already-reviewed-score-pill {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 800;
}

.already-reviewed-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.already-reviewed-btns {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-edit-existing-review {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-edit-existing-review:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: #38bdf8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.25);
}

.btn-cancel-composer {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cancel-composer:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
}

/* Citations et cartes d'avis / commentaires */
.already-reviewed-quote {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  font-style: italic;
  border-left: 3px solid var(--accent-gold);
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  max-width: 100%;
  word-break: break-word;
  line-height: 1.5;
}

/* Styles pour formulaires de commentaires et soumission */
.btn-submit-review {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: 1px solid rgba(52, 211, 153, 0.4);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  transition: all 0.2s ease;
}

.btn-submit-review:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}

.add-review-form textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.55;
  resize: vertical;
  min-height: 95px;
  outline: none;
  transition: border-color 0.2s;
}

.add-review-form textarea:focus {
  border-color: var(--accent-blue);
}

.current-reviewer-tag {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.user-review-item { background: var(--bg-input); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 12px; }
.user-review-item.my-review-highlight {
  border-color: rgba(245, 158, 11, 0.45);
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.05) 0%, rgba(15, 23, 42, 0.85) 100%);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.08);
}
.user-review-head { 
  display: flex; 
  justify-content: space-between; 
  align-items: center;
  margin-bottom: 8px; 
}
.user-score-badge { color: var(--accent-gold); font-weight: 800; font-size: 12px; }
.user-date-text { font-size: 10.5px; color: var(--text-muted); }

.comment-author-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 3px 10px 3px 4px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
  user-select: none;
}

.comment-author-badge:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(245, 158, 11, 0.4);
  transform: translateY(-1px);
}

.comment-avatar-mini {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #060911;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.comment-avatar-mini.redac {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-color: rgba(245, 158, 11, 0.5);
}

.comment-author-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.comment-author-badge:hover .comment-author-name {
  color: var(--accent-gold);
}

/* ==========================================================================
   MINI PROFIL MODAL / POP-IN
   ========================================================================== */
.modal-card.mini-profile-card {
  max-width: 460px;
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65), 0 0 25px rgba(245, 158, 11, 0.15);
  animation: miniProfileIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

@keyframes miniProfileIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.mini-profile-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.mini-profile-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.mini-profile-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #060911;
  font-size: 28px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.mini-profile-avatar.redac {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-color: rgba(245, 158, 11, 0.5);
}

.mini-profile-level-badge {
  position: absolute;
  bottom: -3px;
  right: -3px;
  background: #090d18;
  border: 2px solid var(--accent-gold);
  color: var(--accent-gold);
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

.mini-profile-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mini-profile-username {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.mini-profile-rank-line {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.mini-profile-rank-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent-gold);
}

.mini-profile-role-tag {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-blue);
  border: 1px solid rgba(56, 189, 248, 0.3);
  text-transform: uppercase;
}

.mini-profile-role-tag.redac {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
  border-color: rgba(245, 158, 11, 0.35);
}

.mini-profile-bio {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
  font-style: italic;
  margin-bottom: 14px;
}

.mini-profile-tags-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.mini-profile-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.mini-profile-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.mini-profile-stat-box {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mini-profile-stat-val {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}

.mini-profile-stat-lbl {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.mini-profile-trophies-wrap {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 14px;
}

.mini-profile-trophies-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.mini-profile-trophies-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mini-profile-trophy-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 4px 9px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
}

.user-logged-badge { display: flex; align-items: center; gap: 8px; background: var(--bg-card); border: 1px solid var(--border-color); padding: 6px 12px; border-radius: var(--radius-full); }
.user-avatar-dot { width: 8px; height: 8px; background: var(--accent-green); border-radius: 50%; }
.user-avatar-dot.redac-dot { background: var(--accent-gold); }
.user-name { font-size: 13px; font-weight: 700; color: var(--text-primary); display: flex; align-items: center; cursor: pointer; white-space: nowrap; }
.badge-role-redac { background: var(--accent-gold); color: #090d18; font-size: 9px; font-weight: 900; padding: 1px 5px; border-radius: 3px; margin-left: 6px; }

.btn-logout { background: transparent; border: none; color: var(--text-muted); cursor: pointer; font-size: 12px; margin-left: 4px; }
.btn-logout:hover { color: #ef4444; }

.auth-toggle-tabs { display: flex; border-bottom: 1px solid var(--border-color); margin-bottom: 18px; gap: 16px; }
.auth-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 0;
  cursor: pointer;
  position: relative;
}
.auth-tab-btn.active { color: var(--text-primary); }
.auth-tab-btn.active::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--accent-green); }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.8);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-backdrop.active { display: flex; }

.modal-card { 
  background: var(--bg-card); 
  border: 1px solid var(--border-color); 
  border-radius: var(--radius-lg); 
  width: 100%; 
  max-width: 440px; 
  padding: 28px; 
  position: relative; 
  max-height: 90vh; 
  overflow-y: auto; 
}
.modal-card-large { max-width: 820px; }
.modal-close-btn { position: absolute; top: 16px; right: 16px; background: transparent; border: none; color: var(--text-muted); font-size: 18px; cursor: pointer; padding: 4px; }
.modal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.modal-icon { font-size: 24px; background: var(--bg-input); padding: 8px; border-radius: var(--radius-md); flex-shrink: 0; }
.modal-title { font-size: 18px; font-weight: 800; }
.modal-sub { font-size: 12px; color: var(--text-muted); }

.role-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: var(--bg-input); border: 1px solid var(--border-color); padding: 4px; border-radius: var(--radius-md); margin: 18px 0; }
.role-btn { background: transparent; border: none; color: var(--text-secondary); font-size: 12px; font-weight: 700; padding: 8px; border-radius: var(--radius-sm); cursor: pointer; }
.role-btn.active { background: rgba(255, 255, 255, 0.1); color: #ffffff; }

.modal-form { display: flex; flex-direction: column; gap: 14px; }
.input-group { display: flex; flex-direction: column; gap: 6px; }
.input-group label { font-size: 12px; font-weight: 700; color: var(--text-secondary); }

.input-group input, .input-group textarea, .input-group select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: var(--font-base);
  font-size: 13.5px;
  outline: none;
}
.input-group input:focus, .input-group textarea:focus, .input-group select:focus { border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15); }
.input-group textarea { line-height: 1.6; resize: vertical; min-height: 90px; }

.btn-submit {
  background: #ffffff;
  color: #090d18;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-family: var(--font-base);
  padding: 12px;
  cursor: pointer;
  margin-top: 6px;
}

/* ==========================================================================
   MODAL DE CONNEXION / CRÉATION DE COMPTE AMÉLIORÉE
   ========================================================================== */
.modal-card.auth-modal-card {
  max-width: 480px;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(56, 189, 248, 0.1);
  position: relative;
}

.auth-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.auth-brand-logo {
  width: 34px;
  height: auto;
}

.auth-tabs-segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 4px;
  margin: 18px 0;
}

.auth-segmented-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.auth-segmented-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.auth-role-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.auth-role-card-item {
  background: var(--bg-input);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.2s;
  text-align: left;
}

.auth-role-card-item:hover {
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.auth-role-card-item.active {
  border-color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.08);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

.auth-role-card-title {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.auth-role-card-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
}

.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  left: 12px;
  font-size: 15px;
  color: var(--text-muted);
  pointer-events: none;
}

.auth-input-wrapper input {
  padding-left: 38px !important;
  padding-right: 40px !important;
}

.auth-pwd-toggle-btn {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  transition: color 0.2s;
}

.auth-pwd-toggle-btn:hover {
  color: var(--text-primary);
}

.auth-feedback-banner {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 12px;
  display: none;
}

.auth-feedback-banner.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #fca5a5;
}

.auth-feedback-banner.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #86efac;
}

.auth-perks-box {
  background: rgba(245, 158, 11, 0.07);
  border: 1px dashed rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.auth-perk-item {
  font-size: 11.5px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}


/* ==========================================================================
   SUCCÈS SECRETS STYLING
   ========================================================================== */
.achievement-card.secret-locked {
  background: linear-gradient(135deg, rgba(20, 15, 38, 0.95) 0%, rgba(10, 8, 22, 0.95) 100%);
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.1);
  opacity: 0.85;
}

.achievement-card.secret-locked .achievement-icon-wrap {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.4);
  color: #c084fc;
}

.achievement-card.secret-locked .achievement-xp-badge {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
}

.achievement-card.secret-unlocked {
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
  position: relative;
}

.badge-secret-unlocked {
  font-size: 9.5px;
  font-weight: 800;
  color: #d8b4fe;
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.4);
  padding: 2px 6px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* Grille pour le choix de publication (4 types) */
.choice-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 12px 0 6px;
}

.choice-card-btn {
  background: var(--bg-input);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  color: inherit;
}

.choice-card-btn:hover {
  border-color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.05);
  transform: translateY(-2px);
}

.choice-icon { font-size: 28px; margin-bottom: 8px; }
.choice-title { font-size: 15px; font-weight: 800; color: var(--text-primary); margin-bottom: 4px; }
.choice-desc { font-size: 11.5px; color: var(--text-secondary); line-height: 1.4; }

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

.checkbox-platforms-row { display: flex; gap: 16px; background: var(--bg-input); border: 1px solid var(--border-color); padding: 10px 14px; border-radius: var(--radius-md); flex-wrap: wrap; }
.checkbox-plat-label { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-primary); cursor: pointer; }
.checkbox-plat-label input { accent-color: var(--accent-gold); }

.btn-create-test-trigger {
  background: var(--accent-gold);
  color: #090d18;
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* ==========================================================================
   PIED DE PAGE (FOOTER)
   ========================================================================== */
.footer-wrapper {
  background-color: var(--bg-navbar);
  border-top: 1px solid var(--border-color);
  margin-top: auto;
  color: var(--text-secondary);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 56px 20px 44px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}

.footer-brand-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.footer-brand-sub {
  font-size: 9.5px;
  color: var(--accent-blue);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.footer-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 380px;
}

.footer-col-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s, transform 0.15s;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--accent-gold);
  transform: translateX(3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px 0;
  font-size: 12px;
  color: var(--text-muted);
}

[data-theme="light"] .footer-bottom {
  border-top-color: var(--border-color);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-tagline {
  font-weight: 600;
  color: var(--text-muted);
}

/* ==========================================================================
   OPTIMISATIONS RESPONSIVE TABLETTES (769px à 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  .container {
    padding: 0 16px;
  }

  .nav-btn {
    padding: 6px 12px;
    font-size: 12.5px;
  }

  .poll-layout-grid {
    grid-template-columns: 1fr;
  }

  .poll-sidebar-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .chroniques-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .agenda-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .choice-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-body {
    grid-template-columns: 1fr 260px;
    gap: 24px;
    padding: 24px 20px;
  }

  .footer-content {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 28px;
  }
}

/* ==========================================================================
   OPTIMISATIONS RESPONSIVE SMARTPHONES & PETITES TABLETTES (< 860px)
   ========================================================================== */
@media (max-width: 860px) {
  body {
    padding-bottom: 64px;
  }

  .navbar {
    height: 60px;
  }

  .nav-links {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: rgba(9, 13, 24, 0.96);
    border-radius: 0;
    border-top: 1px solid var(--border-color);
    border-bottom: none;
    border-left: none;
    border-right: none;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0;
    margin: 0;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.4);
    z-index: 999;
  }

  [data-theme="light"] .nav-links {
    background: rgba(255, 255, 255, 0.96);
    border-top-color: var(--border-color);
  }

  .nav-btn {
    flex-direction: column;
    gap: 2px;
    padding: 6px 10px;
    font-size: 10px;
    border-radius: 0;
    color: var(--text-muted);
  }

  .nav-btn.active {
    background: transparent;
    color: var(--accent-gold);
    box-shadow: none;
  }

  .nav-btn.active svg {
    stroke: var(--accent-gold);
  }

  .nav-btn svg {
    width: 18px;
    height: 18px;
  }

  .nav-search-box {
    width: 140px;
    padding: 5px 10px;
  }

  .nav-search-box:focus-within {
    width: 180px;
  }

  .nav-search-dropdown {
    width: 290px;
    right: -40px;
  }

  .poll-top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .poll-actions-bar {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .poll-nav-arrows {
    width: 100%;
    justify-content: space-between;
  }

  .poll-admin-controls {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .btn-new-poll-trigger,
  .poll-admin-sub-actions {
    width: 100%;
  }

  .btn-poll-edit,
  .btn-poll-delete {
    flex: 1;
  }

  .poll-sidebar-stack {
    grid-template-columns: 1fr;
  }

  .grid-2-cols,
  .chroniques-grid,
  .detail-body,
  .filter-top-row {
    grid-template-columns: 1fr;
  }

  .agenda-cards-grid {
    grid-template-columns: 1fr;
  }

  .detail-sidebar {
    order: -1;
  }

  .choice-cards-grid {
    grid-template-columns: 1fr 1fr;
  }

  .featured-chronique-banner {
    height: auto;
    min-height: 240px;
    padding: 20px;
  }

  .banner-title {
    font-size: 20px;
  }

  .hero-feature {
    padding: 24px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-scores-row {
    flex-wrap: wrap;
    gap: 12px;
  }
}

/* ==========================================================================
   OPTIMISATIONS MOBILE ÉTROIT (< 576px)
   ========================================================================== */
@media (max-width: 576px) {
  .brand-sub {
    display: none;
  }

  .nav-brand {
    gap: 8px;
  }

  .brand-logo-img {
    height: 32px;
  }

  .brand-name {
    font-size: 13px;
  }

  .nav-search-box {
    width: 110px;
  }

  .nav-search-box:focus-within {
    width: 150px;
  }

  .btn-create-test-trigger {
    display: none !important;
  }

  .btn-login-header {
    padding: 6px 10px;
    font-size: 12px;
  }

  .page-title {
    font-size: 22px;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .actu-card {
    flex-direction: column;
    padding: 12px;
  }

  .actu-thumb {
    width: 100%;
    height: 140px;
  }

  .agenda-card {
    flex-direction: column;
  }

  .agenda-card-thumb {
    width: 100%;
    height: 140px;
  }

  .detail-hero-banner {
    height: 220px;
  }

  .detail-hero-text {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .detail-title {
    font-size: 22px;
  }

  .pros-cons-grid,
  .form-grid-2,
  .form-grid-3,
  .add-review-form .form-row {
    grid-template-columns: 1fr;
  }

  .choice-cards-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    padding: 36px 16px 24px;
    gap: 28px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .reactions-buttons-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .reaction-pill-btn {
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    padding: 8px;
  }

  .reaction-emoji {
    margin-bottom: 0;
    font-size: 18px;
  }

  .palmares-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .segmented-control {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .seg-btn {
    flex: 1;
    text-align: center;
  }

  .auth-prompt-card {
    flex-direction: column;
    text-align: center;
    padding: 20px 16px;
  }

  .btn-auth-prompt {
    width: 100%;
    justify-content: center;
  }

  .modal-card {
    padding: 20px 16px;
  }
}

/* ==========================================================================
   PAGE DÉVELOPPEMENT EN COURS
   ========================================================================== */
.dev-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-main);
  position: relative;
  overflow-x: hidden;
}

.dev-ambient-glow {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, rgba(56, 189, 248, 0.05) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

.dev-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

.dev-card {
  max-width: 680px;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(16px);
  position: relative;
  animation: devFadeIn 0.8s ease-out;
}

@keyframes devFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dev-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
}

.dev-logo-img {
  width: 90px;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(245, 158, 11, 0.35));
}

.dev-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--accent-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.dev-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-gold);
  box-shadow: 0 0 10px var(--accent-gold);
  animation: devPulseAnim 1.8s infinite ease-in-out;
}

@keyframes devPulseAnim {
  0%, 100% {
    transform: scale(0.9);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
    box-shadow: 0 0 16px var(--accent-gold);
  }
}

.dev-title {
  font-size: clamp(2rem, 5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.2;
}

.dev-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.dev-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 36px;
  text-align: left;
}

.dev-module {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dev-module-icon {
  font-size: 20px;
}

.dev-module-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.dev-module-status {
  font-size: 11px;
  color: var(--accent-blue);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.dev-module-status.done {
  color: var(--accent-green);
}

.dev-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.dev-preview-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.dev-preview-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-color: var(--text-muted);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .dev-card {
    padding: 32px 20px;
  }
  .dev-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}