/* ====================================================================
   CLAUDIA'S WEB GAME JAM - STYLE GLOBAL RÉTRO ARCADE
   Inspiré du logo : fond sombre, néons orange/cyan/magenta/jaune
   ==================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;500;600;700&family=Press+Start+2P&family=VT323&display=swap');

:root {
  --bg-dark: #0f1223;
  --bg-card: #151833;
  --bg-card-hover: #1c2042;
  --bg-header: #0f1223;
  
  --orange-claud: #ff9600;
  --cyan-ia: #00e5ff;
  --magenta-jam: #d827fc;
  --yellow-star: #ffd32a;
  
  --red-snes: #ff3838;
  --green-snes: #2ed573;
  --blue-snes: #18dcff;
  
  --text-main: #f1f2f6;
  --text-muted: #a4b0be;
  --border-color: #23274e;
  
  --font-retro: 'Press Start 2P', monospace;
  --font-sub: 'VT323', monospace;
  --font-body: 'Chakra Petch', sans-serif;
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

html {
  scroll-behavior: smooth;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(216, 39, 252, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(0, 229, 255, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(255, 150, 0, 0.06) 0%, transparent 50%);
  background-attachment: fixed;
}

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

/* ====================================================================
   ANIMATION D'ARRIÈRE-PLAN ULTRA-LÉGÈRE (COMPOSITEUR GPU)
   ==================================================================== */
.arena-bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -10;
  overflow: hidden;
}

/* Grille arène cybernétique qui dérive lentement vers le bas */
.arena-bg-grid {
  position: absolute;
  top: -60px;
  left: 0;
  width: 100%;
  height: calc(100% + 60px);
  background-image: 
    linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 39, 252, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: arenaGridDrift 24s linear infinite;
  will-change: transform;
}

@keyframes arenaGridDrift {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(0, 60px, 0); }
}

/* Lueurs d'ambiance diffuses avec pulsation douce */
.arena-bg-aurora {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 18% 25%, rgba(216, 39, 252, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 82% 65%, rgba(0, 229, 255, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(255, 150, 0, 0.05) 0%, transparent 45%);
  animation: arenaAuroraFloat 18s ease-in-out infinite alternate;
  will-change: opacity, transform;
}

@keyframes arenaAuroraFloat {
  0% {
    opacity: 0.7;
    transform: scale(1) translateY(0);
  }
  50% {
    opacity: 1;
    transform: scale(1.04) translateY(-8px);
  }
  100% {
    opacity: 0.7;
    transform: scale(1) translateY(0);
  }
}

/* ====================================================================
   EN-TÊTE / NAVIGATION
   ==================================================================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--border-color);
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  border: none;
  outline: none;
}

.brand-logo-img {
  height: 52px;
  width: auto;
  border: none;
  border-radius: 0;
  box-shadow: none;
  filter: none;
  display: block;
  transition: transform 0.25s ease;
}

.brand-logo-img:hover {
  transform: scale(1.05);
  filter: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  font-size: 20px;
  line-height: 1;
  color: var(--text-muted);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(23, 25, 51, 0.5);
  border: 1px solid var(--border-color);
  cursor: pointer;
}

.nav-link:hover {
  color: #fff;
  transform: translateY(-2px) scale(1.1);
  background: rgba(0, 229, 255, 0.15);
  border-color: var(--cyan-ia);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
}

.nav-link.active {
  color: #fff;
  background: rgba(0, 229, 255, 0.25);
  border-color: var(--cyan-ia);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.6), inset 0 0 8px rgba(0, 229, 255, 0.3);
  transform: scale(1.05);
}

/* Avatar dans le header qui mène au profil */
.header-avatar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-decoration: none;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.header-avatar-link:hover {
  transform: scale(1.12);
}

.header-avatar-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--cyan-ia);
  object-fit: cover;
  background: #090a18;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
  transition: all 0.2s ease;
}

.header-avatar-link:hover .header-avatar-img,
.header-avatar-link.active .header-avatar-img {
  border-color: var(--yellow-star);
  box-shadow: 0 0 18px rgba(255, 211, 42, 0.9), 0 0 6px var(--yellow-star);
}

.header-avatar-dot {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #0b0c16;
}

.header-avatar-dot.prod {
  background: var(--green-snes);
  box-shadow: 0 0 6px var(--green-snes);
}

.header-avatar-dot.wip {
  background: var(--orange-claud);
  box-shadow: 0 0 6px var(--orange-claud);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ====================================================================
   BOUTONS RÉTRO & CONTRÔLES
   ==================================================================== */
.retro-btn {
  font-family: var(--font-retro);
  font-size: 10px;
  padding: 10px 16px;
  border: 2px solid;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-transform: uppercase;
  transition: all 0.15s ease;
  user-select: none;
  position: relative;
  box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.8);
}

.retro-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px rgba(0, 0, 0, 0.8);
}

.btn-orange {
  background: var(--orange-claud);
  border-color: #ffa502;
  color: #0b0c16;
  font-weight: bold;
}
.btn-orange:hover {
  background: #ffa502;
  box-shadow: 0 0 15px rgba(255, 150, 0, 0.6), 3px 3px 0px rgba(0, 0, 0, 0.8);
}

.btn-cyan {
  background: transparent;
  border-color: var(--cyan-ia);
  color: var(--cyan-ia);
}
.btn-cyan:hover {
  background: rgba(0, 229, 255, 0.15);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.5), 3px 3px 0px rgba(0, 0, 0, 0.8);
}

.btn-magenta {
  background: var(--magenta-jam);
  border-color: #f368e0;
  color: #fff;
}
.btn-magenta:hover {
  background: #f368e0;
  box-shadow: 0 0 15px rgba(216, 39, 252, 0.6), 3px 3px 0px rgba(0, 0, 0, 0.8);
}

.btn-ghost {
  background: #171933;
  border-color: var(--border-color);
  color: var(--text-muted);
}
.btn-ghost:hover {
  color: #fff;
  border-color: #3b3f75;
}

.toggle-pill {
  font-family: var(--font-retro);
  font-size: 9px;
  padding: 6px 10px;
  border-radius: 4px;
  background: #171933;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
}

.toggle-pill.active {
  background: rgba(0, 229, 255, 0.2);
  border-color: var(--cyan-ia);
  color: var(--cyan-ia);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}

/* Bouton Officiel Google Easy Sign-In */
.google-styled-btn {
  background: #ffffff;
  color: #1f1f1f;
  border: 1px solid #dadce0;
  border-radius: 28px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  width: 100%;
}

.google-styled-btn:hover {
  background: #f8f9fa;
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
  transform: translateY(-1px);
}

.google-styled-btn:active {
  background: #eeeeee;
  transform: translateY(1px);
}

/* ====================================================================
   HERO BANNER AVEC TITRE RÉTRO & COMPTE À REBOURS
   ==================================================================== */
.hero-section {
  position: relative;
  padding: 50px 20px 30px;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
  scroll-margin-top: 85px;
}

/* Jumbotron Rétro inspiré du logo : ClaudIA's en gros + Web Game Jam en sous-titre */
.hero-jumbotron {
  margin-bottom: 24px;
}

.hero-jumbotron-title {
  font-family: var(--font-retro);
  font-size: clamp(34px, 7vw, 64px);
  line-height: 1.15;
  letter-spacing: -2px;
  text-transform: uppercase;
  margin: 0 0 10px 0;
}

.hero-jumbotron-title span.orange {
  color: var(--orange-claud);
  text-shadow: 
    0 0 20px rgba(255, 150, 0, 0.7),
    3px 3px 0 #000,
    5px 5px 0 #000;
}

.hero-jumbotron-title span.cyan {
  color: var(--cyan-ia);
  text-shadow: 
    0 0 20px rgba(0, 229, 255, 0.8),
    3px 3px 0 #000,
    5px 5px 0 #000;
}

.hero-jumbotron-subtitle {
  font-family: var(--font-retro);
  font-size: clamp(16px, 3.4vw, 30px);
  color: var(--magenta-jam);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 
    0 0 15px rgba(216, 39, 252, 0.8),
    0 0 35px rgba(216, 39, 252, 0.5),
    3px 3px 0 #000;
  display: block;
}

/* Ruban Thème Officiel mis en valeur */
.hero-theme-ribbon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 150, 0, 0.16) 0%, rgba(216, 39, 252, 0.22) 50%, rgba(0, 229, 255, 0.16) 100%);
  border: 2px solid var(--yellow-star);
  padding: 12px 28px;
  border-radius: 40px;
  box-shadow: 
    0 0 25px rgba(255, 211, 42, 0.35),
    inset 0 0 15px rgba(255, 211, 42, 0.15);
  margin-bottom: 28px;
  animation: themePulseGlow 3s ease-in-out infinite alternate;
}

.theme-badge-glow {
  font-family: var(--font-retro);
  font-size: clamp(11px, 2.2vw, 15px);
  color: #fff;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-shadow: 
    0 0 12px rgba(255, 211, 42, 0.9),
    2px 2px 0 rgba(0, 0, 0, 0.8);
}

@keyframes themePulseGlow {
  0% {
    box-shadow: 0 0 15px rgba(255, 211, 42, 0.25), inset 0 0 10px rgba(255, 211, 42, 0.1);
    transform: scale(1);
  }
  100% {
    box-shadow: 0 0 30px rgba(255, 211, 42, 0.55), inset 0 0 20px rgba(255, 211, 42, 0.25);
    transform: scale(1.02);
  }
}

/* COMPTE À REBOURS RÉTRO */
.retro-countdown-container {
  margin: 20px auto 30px;
  max-width: 640px;
  background: #111326;
  border: 3px solid #23274e;
  border-radius: var(--radius-md);
  padding: 18px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 15px rgba(0, 229, 255, 0.15);
}

.countdown-title {
  font-family: var(--font-retro);
  font-size: 10px;
  color: var(--cyan-ia);
  margin-bottom: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.countdown-digits-grid {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.countdown-box {
  background: #080914;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  min-width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.9);
}

.countdown-num {
  font-family: var(--font-retro);
  font-size: 26px;
  color: var(--yellow-star);
  text-shadow: 0 0 10px rgba(255, 211, 42, 0.7);
}

.countdown-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 4px;
  font-weight: 600;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

/* Compteurs de stats */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 10px auto 0;
  max-width: 900px;
}

.stat-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 160px;
}

.stat-number {
  font-family: var(--font-retro);
  font-size: 20px;
  color: var(--cyan-ia);
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 4px;
}

/* ====================================================================
   SECTION CATALOGUE DES JEUX & FILTRE LATÉRAL PAR HASHTAG
   ==================================================================== */
.section-container {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
  scroll-margin-top: 85px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 14px;
}

.section-title {
  font-family: var(--font-retro);
  font-size: 15px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: "▶";
  color: var(--orange-claud);
  font-size: 13px;
}

.header-right-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

/* Icône sur le côté pour filtrer les hashtags */
.btn-tag-filter {
  font-family: var(--font-retro);
  font-size: 9px;
  background: #171936;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--cyan-ia);
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.btn-tag-filter:hover {
  background: rgba(0, 229, 255, 0.15);
  border-color: var(--cyan-ia);
}

/* Petit panneau contextuel pour saisir un tag */
.tag-filter-popover {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: #151833;
  border: 2px solid var(--cyan-ia);
  border-radius: var(--radius-sm);
  padding: 8px;
  display: flex;
  gap: 6px;
  z-index: 100;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 229, 255, 0.3);
}

.tag-filter-input {
  background: #080914;
  border: 1px solid var(--border-color);
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 4px;
  width: 170px;
}
.tag-filter-input:focus {
  outline: none;
  border-color: var(--cyan-ia);
}

/* Pastilles des filtres actifs avec croix pour retirer */
.active-filters-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 24px;
}

.active-filter-chip {
  background: rgba(216, 39, 252, 0.18);
  border: 1px solid var(--magenta-jam);
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  animation: fadeInChip 0.2s ease;
}

.remove-chip-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  line-height: 1;
}
.remove-chip-btn:hover { color: #ff4757; }

/* Grille des cartes de jeux */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.game-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan-ia);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 229, 255, 0.2);
}

.game-card.status-wip {
  border-style: dashed;
  border-color: #d35400;
}

.card-banner-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* Ratio 16:9 */
  background: #090a18;
  overflow: hidden;
}

.card-banner-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.status-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: var(--font-retro);
  font-size: 8px;
  padding: 5px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.status-badge.prod {
  background: rgba(46, 213, 115, 0.95);
  color: #0b0c16;
  font-weight: bold;
}

.status-badge.wip {
  background: rgba(255, 159, 26, 0.95);
  color: #0b0c16;
  font-weight: bold;
}

.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.card-title {
  font-family: var(--font-retro);
  font-size: 13px;
  color: #fff;
  line-height: 1.4;
}

.card-tagline {
  font-size: 13px;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-hashtags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.card-hashtag-tag {
  font-size: 11px;
  color: var(--cyan-ia);
  background: rgba(0, 229, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}
.card-hashtag-tag:hover {
  background: rgba(0, 229, 255, 0.25);
  color: #fff;
}

.card-meta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Profil développeur cliquable */
.dev-info-link {
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s;
}
.dev-info-link:hover {
  transform: translateX(2px);
}
.dev-info-link:hover .dev-name {
  color: var(--cyan-ia);
  text-decoration: underline;
}

.dev-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
}

.dev-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
}

.card-score {
  font-family: var(--font-retro);
  font-size: 11px;
  color: var(--yellow-star);
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.card-actions .retro-btn {
  flex: 1;
}

/* ====================================================================
   PAGE DE PROFIL DÉVELOPPEUR
   ==================================================================== */
.profile-header-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.profile-avatar-wrapper {
  position: relative;
}

.profile-main-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid var(--cyan-ia);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
  object-fit: cover;
  background: #090a18;
}

.profile-info-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-name {
  font-family: var(--font-retro);
  font-size: 18px;
  color: #fff;
}

.profile-badges {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.badge {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
}
.badge-prod { background: rgba(46, 213, 115, 0.2); border: 1px solid var(--green-snes); color: var(--green-snes); }
.badge-wip { background: rgba(255, 159, 26, 0.2); border: 1px solid var(--orange-claud); color: var(--orange-claud); }
.badge-jam { background: rgba(216, 39, 252, 0.2); border: 1px solid var(--magenta-jam); color: #fff; }

.profile-bio {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 600px;
}

.profile-stats-row {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

.profile-stat-box {
  background: #0b0c18;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-family: var(--font-retro);
  font-size: 16px;
  color: var(--yellow-star);
}

.stat-desc {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ====================================================================
   MODALES (Notation, Participation, Auth, Profil)
   ==================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-window {
  background: var(--bg-card);
  border: 3px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 229, 255, 0.2);
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 2px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-family: var(--font-retro);
  font-size: 12px;
  color: var(--cyan-ia);
  display: flex;
  align-items: center;
  gap: 8px;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
}
.close-btn:hover { color: #ff4757; }

.modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-family: var(--font-retro);
  font-size: 10px;
  color: var(--text-main);
}

.form-label span.req { color: #ff4757; }
.form-label span.opt { color: var(--text-muted); font-size: 8px; }

.form-input, .form-textarea {
  background: #090a18;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--cyan-ia);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
}

.file-dropzone {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
  text-align: center;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.2);
  transition: all 0.2s;
}

.file-dropzone:hover, .file-dropzone.dragover {
  border-color: var(--orange-claud);
  background: rgba(255, 150, 0, 0.05);
}

.preview-banner {
  max-width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-top: 10px;
  display: none;
}

/* Modale de Notation (4 Critères) */
.criteria-card {
  background: #171936;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.crit-info {
  display: flex;
  flex-direction: column;
}

.crit-title {
  font-family: var(--font-retro);
  font-size: 11px;
  color: #fff;
}

.crit-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.star-rating-widget {
  display: flex;
  gap: 4px;
}

.star-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: #4b4b68;
  cursor: pointer;
  transition: transform 0.1s, color 0.1s;
}

.star-btn.active, .star-btn:hover {
  color: var(--yellow-star);
  transform: scale(1.15);
  text-shadow: 0 0 8px rgba(255, 211, 42, 0.7);
}

.global-score-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #090a18;
  border: 2px solid var(--yellow-star);
  border-radius: var(--radius-md);
  padding: 14px;
}

.global-score-num {
  font-family: var(--font-retro);
  font-size: 24px;
  color: var(--yellow-star);
  text-shadow: 0 0 12px rgba(255, 211, 42, 0.6);
}

/* Toasts */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100001;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #171936;
  border: 2px solid var(--cyan-ia);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  color: #fff;
  font-family: var(--font-retro);
  font-size: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7), 0 0 10px rgba(0, 229, 255, 0.4);
  animation: slideInToast 0.3s ease;
}

.toast.error {
  border-color: #ff4757;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7), 0 0 10px rgba(255, 71, 87, 0.4);
}

@keyframes slideInToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeInChip {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Footer */
.main-footer {
  border-top: 2px solid var(--border-color);
  padding: 24px 20px;
  text-align: center;
  margin-top: 60px;
  color: var(--text-muted);
  font-size: 12px;
}

.main-footer span.heart { color: #ff4757; }

/* Grille de sélection et impersonation de profils */
.dev-profiles-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 4px;
}

.dev-profiles-grid::-webkit-scrollbar {
  width: 6px;
}
.dev-profiles-grid::-webkit-scrollbar-thumb {
  background: var(--cyan-ia);
  border-radius: 3px;
}

.profile-select-card {
  background: #101228;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.profile-select-card:hover {
  border-color: var(--cyan-ia);
  background: rgba(0, 229, 255, 0.08);
  transform: translateX(4px);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.2);
}

.profile-select-card.active-user {
  border-color: var(--green-snes);
  background: rgba(46, 213, 115, 0.08);
}

.profile-select-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--cyan-ia);
  object-fit: cover;
  flex-shrink: 0;
}

.profile-select-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.profile-select-name {
  font-family: var(--font-retro);
  font-size: 11px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-select-name .current-tag {
  color: var(--green-snes);
  font-size: 8px;
}

.profile-select-meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  gap: 6px;
  align-items: center;
}

/* Label / Avertissement Fair-play pour le sélecteur de profils */
.impersonate-fairplay-warning {
  background: rgba(255, 211, 42, 0.08);
  border: 1px dashed var(--yellow-star);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.impersonate-fairplay-warning .warning-icon {
  font-size: 18px;
  line-height: 1.2;
  flex-shrink: 0;
}

.impersonate-fairplay-warning .warning-text {
  font-size: 11px;
  color: #fce7a1;
  line-height: 1.4;
}

.impersonate-fairplay-warning .warning-text strong {
  color: var(--yellow-star);
  font-family: var(--font-retro);
  font-size: 9px;
  display: block;
  margin-bottom: 3px;
  text-transform: uppercase;
}


