/**
 * ÉduJeux - Feuille de style principale
 *
 * @package ÉduJeux
 * @version 1.0
 * Charte graphique complète avec couleurs, typographies et animations
 */

/* ============================================================
   VARIABLES CSS
   ============================================================ */
:root {
  --primary: #6C5CE7;
  --primary-light: #A29BFE;
  --secondary: #00CEC9;
  --accent-orange: #FF6B35;
  --accent-pink: #FD79A8;
  --accent-yellow: #FDCB6E;
  --accent-green: #00B894;
  --accent-blue: #0984E3;
  --bg-cream: #FFFDF7;
  --bg-soft: #F8F6FF;
  --text-dark: #2D3436;
  --text-mid: #636E72;
  --white: #FFFFFF;
  --shadow-soft: 0 4px 20px rgba(108, 92, 231, 0.12);
  --shadow-card: 0 8px 32px rgba(108, 92, 231, 0.1);
  --shadow-hover: 0 12px 40px rgba(108, 92, 231, 0.2);
  --radius: 20px;
  --radius-sm: 12px;
  --danger: #FF6B6B;
  --success: #00B894;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg-cream);
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Fredoka', sans-serif;
  color: var(--text-dark);
  line-height: 1.2;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-light);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.main-content {
  flex: 1;
  padding: 2rem 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 16px;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #7E6EF2);
  color: var(--white);
  box-shadow: 0 6px 24px rgba(108, 92, 231, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(108, 92, 231, 0.45);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border-color: rgba(108, 92, 231, 0.2);
  box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.15rem;
}

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  margin: 1rem 0;
}

.alert-success {
  background-color: rgba(0, 184, 148, 0.1);
  color: var(--success);
  border-left: 4px solid var(--success);
}

.alert-error {
  background-color: rgba(255, 107, 107, 0.1);
  color: var(--danger);
  border-left: 4px solid var(--danger);
}

.alert-warning {
  background-color: rgba(253, 203, 110, 0.15);
  color: #E17055;
  border-left: 4px solid var(--accent-yellow);
}

.alert-info {
  background-color: rgba(108, 92, 231, 0.1);
  color: var(--primary);
  border-left: 4px solid var(--primary);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 253, 247, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 2px solid rgba(108, 92, 231, 0.08);
  padding: 0 1.5rem;
  transition: box-shadow 0.3s;
  height: 70px;
  display: flex;
  align-items: center;
}

.navbar.scrolled {
  box-shadow: var(--shadow-soft);
}

.nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
}

.navbar .logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--accent-pink));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--white);
  box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
  transform: rotate(-5deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-mid);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  transition: all 0.25s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: rgba(108, 92, 231, 0.08);
}

.nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-light)) !important;
  color: var(--white) !important;
  padding: 0.6rem 1.4rem !important;
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.nav-cta:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4) !important;
  background: rgba(0, 0, 0, 0) !important;
}

/* Menu mobile */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  position: relative;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
  position: absolute;
  left: 6px;
  transition: all 0.3s;
}

.menu-toggle span:nth-child(1) { top: 9px; }
.menu-toggle span:nth-child(2) { top: 17px; }
.menu-toggle span:nth-child(3) { top: 25px; }

.menu-toggle.active span:nth-child(1) {
  top: 17px;
  transform: rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  top: 17px;
  transform: rotate(-45deg);
}

/* ============================================================
   BACKGROUND SHAPES (Animated)
   ============================================================ */
.bg-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-shapes span {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  animation: floatShape 20s infinite ease-in-out;
}

.bg-shapes span:nth-child(1) {
  width: 300px;
  height: 300px;
  background: var(--primary);
  top: 10%;
  left: -5%;
  animation-delay: 0s;
}

.bg-shapes span:nth-child(2) {
  width: 200px;
  height: 200px;
  background: var(--accent-orange);
  top: 60%;
  right: -3%;
  animation-delay: -5s;
}

.bg-shapes span:nth-child(3) {
  width: 250px;
  height: 250px;
  background: var(--secondary);
  bottom: 5%;
  left: 30%;
  animation-delay: -10s;
}

.bg-shapes span:nth-child(4) {
  width: 180px;
  height: 180px;
  background: var(--accent-pink);
  top: 30%;
  right: 20%;
  animation-delay: -15s;
}

@keyframes floatShape {
  0%, 100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  33% {
    transform: translateY(-30px) rotate(5deg) scale(1.05);
  }
  66% {
    transform: translateY(20px) rotate(-3deg) scale(0.95);
  }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  z-index: 1;
  padding: 140px 1.5rem 80px;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.1), rgba(253, 121, 168, 0.1));
  border: 2px solid rgba(108, 92, 231, 0.15);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

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

.hero p {
  font-size: 1.15rem;
  color: var(--text-mid);
  max-width: 560px;
  margin: 0 auto 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero illustration */
.hero-illustration {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.hero-card {
  width: 140px;
  height: 160px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s;
  cursor: default;
}

.hero-card:hover {
  transform: translateY(-8px) rotate(2deg);
}

.hero-card:nth-child(odd):hover {
  transform: translateY(-8px) rotate(-2deg);
}

.hero-card .icon {
  font-size: 2.4rem;
}

.hero-card:nth-child(1) {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  transform: rotate(-3deg);
}

.hero-card:nth-child(2) {
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-yellow));
  transform: rotate(2deg);
}

.hero-card:nth-child(3) {
  background: linear-gradient(135deg, var(--secondary), var(--accent-green));
  transform: rotate(-1deg);
}

.hero-card:nth-child(4) {
  background: linear-gradient(135deg, var(--accent-pink), #E84393);
  transform: rotate(3deg);
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto 3.75rem;
  padding: 0 1.5rem;
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 2px solid rgba(108, 92, 231, 0.06);
  overflow: hidden;
}

.stat-item {
  padding: 1.75rem 1.25rem;
  text-align: center;
  border-right: 2px solid rgba(108, 92, 231, 0.06);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-mid);
  font-weight: 600;
  margin-top: 0.25rem;
}

/* ============================================================
   SECTION TITLES
   ============================================================ */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title .tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-orange);
  margin-bottom: 0.625rem;
}

.section-title h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}

/* ============================================================
   CATEGORIES GRID
   ============================================================ */
.categories {
  position: relative;
  z-index: 1;
  padding: 3.75rem 1.5rem 5rem;
}

.categories-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.cat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  border: 2px solid transparent;
  transition: all 0.35s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.cat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 20px 20px 0 0;
  transition: height 0.3s;
}

.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.cat-card:hover::before {
  height: 6px;
}

.cat-card:nth-child(1)::before {
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.cat-card:nth-child(2)::before {
  background: linear-gradient(90deg, var(--accent-orange), var(--accent-yellow));
}

.cat-card:nth-child(3)::before {
  background: linear-gradient(90deg, var(--secondary), var(--accent-green));
}

.cat-card:nth-child(4)::before {
  background: linear-gradient(90deg, var(--accent-pink), #E84393);
}

.cat-card:nth-child(5)::before {
  background: linear-gradient(90deg, var(--accent-blue), #74B9FF);
}

.cat-card:nth-child(6)::before {
  background: linear-gradient(90deg, var(--accent-yellow), var(--accent-orange));
}

.cat-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.cat-card:nth-child(1) .cat-icon {
  background: rgba(108, 92, 231, 0.1);
}

.cat-card:nth-child(2) .cat-icon {
  background: rgba(255, 107, 53, 0.1);
}

.cat-card:nth-child(3) .cat-icon {
  background: rgba(0, 206, 201, 0.1);
}

.cat-card:nth-child(4) .cat-icon {
  background: rgba(253, 121, 168, 0.1);
}

.cat-card:nth-child(5) .cat-icon {
  background: rgba(9, 132, 227, 0.1);
}

.cat-card:nth-child(6) .cat-icon {
  background: rgba(253, 203, 110, 0.15);
}

.cat-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.cat-card p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.5;
}

.cat-count {
  display: inline-block;
  margin-top: 0.875rem;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(108, 92, 231, 0.08);
}

/* ============================================================
   GAMES GRID
   ============================================================ */
.games-section {
  position: relative;
  z-index: 1;
  padding: 3.75rem 1.5rem 5rem;
  background: var(--bg-soft);
}

.games-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.game-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all 0.35s;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.game-thumb {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
}

.game-card:nth-child(1) .game-thumb {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.game-card:nth-child(2) .game-thumb {
  background: linear-gradient(135deg, var(--secondary), var(--accent-green));
}

.game-card:nth-child(3) .game-thumb {
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-yellow));
}

.game-card:nth-child(4) .game-thumb {
  background: linear-gradient(135deg, var(--accent-pink), #E84393);
}

.game-card:nth-child(5) .game-thumb {
  background: linear-gradient(135deg, var(--accent-blue), #74B9FF);
}

.game-card:nth-child(6) .game-thumb {
  background: linear-gradient(135deg, var(--accent-green), #55EFC4);
}

.game-thumb .play-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  border: 2px solid rgba(255, 255, 255, 0.4);
  transition: all 0.3s;
}

.game-card:hover .play-btn {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

.game-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
}

.badge-new {
  background: var(--accent-green);
}

.badge-hot {
  background: var(--accent-orange);
}

.badge-top {
  background: var(--primary);
}

.game-info {
  padding: 1.25rem;
}

.game-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.375rem;
  color: var(--text-dark);
}

.game-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-mid);
  font-weight: 600;
}

.game-meta .age {
  background: rgba(108, 92, 231, 0.08);
  padding: 3px 10px;
  border-radius: 8px;
  color: var(--primary);
}

.game-stars {
  color: var(--accent-yellow);
  letter-spacing: 2px;
}

/* ============================================================
   AGE FILTERS
   ============================================================ */
.age-filters {
  max-width: 1100px;
  margin: 0 auto 2.25rem;
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
  justify-content: center;
}

.age-btn {
  padding: 0.625rem 1.375rem;
  border-radius: 50px;
  border: 2px solid rgba(108, 92, 231, 0.15);
  background: var(--white);
  font-family: 'Fredoka', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.25s;
}

.age-btn:hover,
.age-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  position: relative;
  z-index: 1;
  padding: 3.75rem 1.5rem 5rem;
  background: var(--bg-soft);
}

.testimonials-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
}

.testimonial-card .stars {
  color: var(--accent-yellow);
  font-size: 1rem;
  margin-bottom: 0.875rem;
}

.testimonial-card p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 1.125rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--white);
  font-weight: 700;
}

.testimonial-card:nth-child(1) .testimonial-avatar {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.testimonial-card:nth-child(2) .testimonial-avatar {
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-yellow));
}

.testimonial-card:nth-child(3) .testimonial-avatar {
  background: linear-gradient(135deg, var(--secondary), var(--accent-green));
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.9rem;
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--text-mid);
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  position: relative;
  z-index: 1;
  padding: 5rem 1.5rem;
  text-align: center;
}

.cta-box {
  max-width: 700px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--primary), #7E6EF2, var(--accent-pink));
  border-radius: 28px;
  padding: 3.5rem 2.5rem;
  color: var(--white);
  box-shadow: 0 16px 60px rgba(108, 92, 231, 0.35);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.cta-box::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.cta-box h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.875rem;
  position: relative;
  z-index: 1;
}

.cta-box p {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 1.75rem;
  position: relative;
  z-index: 1;
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  padding: 14px 36px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 1;
}

.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.2);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  z-index: 1;
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 3.75rem 1.5rem 1.875rem;
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 0.875rem;
}

.footer-brand .logo-icon {
  box-shadow: none;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1.125rem;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 0.625rem;
}

.footer ul a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.25s;
}

.footer ul a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.25s;
}

.footer-social a:hover {
  background: var(--primary);
  color: var(--white);
}

/* Footer Columns */
.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col-brand {
  gap: 1rem;
}

.footer-logo-icon {
  font-size: 1.5rem;
}

.footer-logo-text {
  color: var(--white);
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.8;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

/* Footer Stats */
.footer-stats {
  background: rgba(255, 255, 255, 0.03);
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-stats-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-stat {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-stat-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

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

.footer-stat-value {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
}

.footer-stat-label {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Footer Bottom */
.footer-bottom-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.heart {
  color: #e74c3c;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.25s;
}

.footer-bottom-links a:hover {
  color: var(--white);
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background-color: var(--white);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  padding: 1rem 0;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.cookie-banner-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.cookie-banner-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
}

.cookie-banner-icon {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
}

.cookie-banner-text {
  flex: 1;
}

.cookie-banner-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.cookie-banner-message {
  font-size: 0.9375rem;
  color: var(--text-mid);
  line-height: 1.5;
  margin: 0;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.cookie-banner-link {
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.cookie-banner-link:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

.cookie-banner-btn {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cookie-banner-decline {
  background-color: rgba(108, 92, 231, 0.08);
  color: var(--text-mid);
}

.cookie-banner-decline:hover {
  background-color: rgba(108, 92, 231, 0.15);
  color: var(--text-dark);
}

.cookie-banner-accept {
  background-color: var(--primary);
  color: var(--white);
}

.cookie-banner-accept:hover {
  background-color: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(108, 92, 231, 0.3);
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .cookie-banner-container {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .cookie-banner-content {
    gap: 0.75rem;
  }

  .cookie-banner-icon {
    font-size: 1.5rem;
  }

  .cookie-banner-title {
    font-size: 1rem;
  }

  .cookie-banner-message {
    font-size: 0.875rem;
  }

  .cookie-banner-actions {
    flex-direction: column;
    width: 100%;
  }

  .cookie-banner-link {
    order: 3;
    text-align: center;
  }

  .cookie-banner-btn {
    width: 100%;
  }

  .cookie-banner-accept {
    order: 1;
  }

  .cookie-banner-decline {
    order: 2;
  }
}

/* Cookie banner hidden state */
.cookie-banner.hidden {
  display: none;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.form-label .required {
  color: var(--danger);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(108, 92, 231, 0.15);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: 'Nunito', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-mid);
}

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

.form-help {
  font-size: 0.875rem;
  color: var(--text-mid);
  margin-top: 0.375rem;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.form-error {
  color: var(--danger);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* Scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .footer-stats-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-stat {
    justify-content: center;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.25rem;
    gap: 0.25rem;
    box-shadow: var(--shadow-card);
    transform: translateY(-120%);
    transition: transform 0.35s ease;
    border-radius: 0 0 var(--radius) var(--radius);
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-links a {
    padding: 0.75rem 1rem;
    width: 100%;
    text-align: center;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    padding: 120px 1.25rem 3.75rem;
  }

  .hero-card {
    width: 120px;
    height: 140px;
  }

  .hero-card .icon {
    font-size: 2rem;
  }

  .stat-item {
    padding: 1.25rem 0.75rem;
  }

  .stat-number {
    font-size: 1.4rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .cat-card {
    padding: 1.5rem 1rem;
  }

  .games-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .cta-box {
    padding: 2.5rem 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

@media (max-width: 480px) {
  .categories-grid {
    grid-template-columns: 1fr;
  }

  .hero-illustration {
    gap: 0.75rem;
  }

  .hero-card {
    width: 100px;
    height: 120px;
    font-size: 0.8rem;
  }

  .hero-card .icon {
    font-size: 1.6rem;
  }

  .age-filters {
    gap: 0.5rem;
  }

  .age-btn {
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .btn {
    padding: 0.625rem 1.25rem;
  }
}

/* ============================================================
   NEW NAVBAR STYLES (v2.0)
   ============================================================ */
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--accent-pink));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-text {
  background: none;
  color: var(--text-mid);
  padding: 0.5rem 1rem;
  font-weight: 600;
}

.btn-text:hover {
  color: var(--primary);
  background: rgba(108, 92, 231, 0.08);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  position: relative;
  z-index: 1001;
}

.hamburger {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  position: absolute;
  left: 5px;
  transition: all 0.3s;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.mobile-toggle.active .hamburger {
  background: transparent;
}

.mobile-toggle.active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.mobile-toggle.active .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: 100%;
  background: var(--white);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.mobile-menu.active .mobile-menu-content {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 2px solid rgba(108, 92, 231, 0.08);
}

.mobile-menu-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

.mobile-menu-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-mid);
}

.mobile-menu-content > div {
  padding: 1.5rem;
  overflow-y: auto;
}

.mobile-menu-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  border-radius: 12px;
  margin-bottom: 0.5rem;
  transition: all 0.2s;
}

.mobile-menu-item:hover {
  background: rgba(108, 92, 231, 0.08);
  color: var(--primary);
}

.mobile-menu-divider {
  height: 2px;
  background: rgba(108, 92, 231, 0.08);
  margin: 1rem 0;
}

.mobile-menu-user {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(108, 92, 231, 0.05);
  border-radius: 12px;
  margin-bottom: 1rem;
}

.mobile-menu-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.mobile-menu-user-name {
  font-weight: 700;
  color: var(--text-dark);
}

.mobile-menu-user-role {
  font-size: 0.85rem;
  color: var(--text-mid);
}

.mobile-menu-item-admin {
  color: var(--accent-orange) !important;
}

.mobile-menu-item-logout {
  color: var(--danger) !important;
}

.mobile-menu-cta {
  width: 100%;
  justify-content: center;
  margin-top: 1rem;
}

/* User Dropdown */
.user-menu {
  position: relative;
}

.user-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(108, 92, 231, 0.08);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-dark);
  transition: all 0.2s;
}

.user-btn:hover {
  background: rgba(108, 92, 231, 0.15);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.user-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 280px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s;
  overflow: hidden;
}

.user-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(108, 92, 231, 0.05);
}

.user-dropdown-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.user-dropdown-info {
  flex: 1;
  overflow: hidden;
}

.user-dropdown-name {
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-dropdown-role {
  font-size: 0.85rem;
  color: var(--text-mid);
}

.user-dropdown-divider {
  height: 1px;
  background: rgba(108, 92, 231, 0.1);
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}

.user-dropdown-item:hover {
  background: rgba(108, 92, 231, 0.08);
}

.user-dropdown-item-admin {
  color: var(--accent-orange);
}

.user-dropdown-item-logout {
  color: var(--danger);
}

/* ============================================================
   HERO STYLES (v2.0)
   ============================================================ */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  animation: floatShape 20s infinite ease-in-out;
}

.hero-shape-1 {
  width: 250px;
  height: 250px;
  background: var(--primary);
  top: -50px;
  left: -50px;
  animation-delay: 0s;
}

.hero-shape-2 {
  width: 180px;
  height: 180px;
  background: var(--accent-orange);
  bottom: 20%;
  right: 10%;
  animation-delay: -7s;
}

.hero-shape-3 {
  width: 150px;
  height: 150px;
  background: var(--secondary);
  top: 40%;
  left: 20%;
  animation-delay: -14s;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text {
  animation: fadeInDown 0.8s ease;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-mid);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  transition: all 0.3s;
}

.hero-card-1 { transform: translateX(30px) rotate(2deg); }
.hero-card-2 { transform: translateX(15px) rotate(-1deg); }
.hero-card-3 { transform: translateX(0) rotate(1deg); }

.hero-card:hover {
  transform: translateX(0) rotate(0) translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.hero-card-icon {
  font-size: 2rem;
}

.hero-card-title {
  font-weight: 700;
  color: var(--text-dark);
}

.hero-card-emoji {
  font-size: 1.5rem;
}

/* ============================================================
   STATS BAR (v2.0)
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon {
  font-size: 2rem;
}

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

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

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

/* ============================================================
   CATEGORIES SECTION (v2.0)
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-mid);
  font-size: 1.1rem;
}

.categories-section {
  padding: 4rem 0;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.category-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  border: 2px solid transparent;
  transition: all 0.3s;
  text-decoration: none;
  display: block;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.category-card-bg {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.category-card-maths .category-card-bg { background: rgba(108, 92, 231, 0.1); }
.category-card-francais .category-card-bg { background: rgba(255, 107, 53, 0.1); }
.category-card-sciences .category-card-bg { background: rgba(0, 206, 201, 0.1); }
.category-card-geo .category-card-bg { background: rgba(253, 203, 110, 0.15); }
.category-card-histoire .category-card-bg { background: rgba(253, 121, 168, 0.1); }
.category-card-langues .category-card-bg { background: rgba(9, 132, 227, 0.1); }

.category-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.category-card-count {
  color: var(--text-mid);
  font-size: 0.9rem;
}

/* ============================================================
   GAMES SECTION (v2.0)
   ============================================================ */
.games-section {
  padding: 4rem 0;
  background: var(--bg-soft);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.games-cta {
  text-align: center;
  margin-top: 3rem;
}

.game-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.game-card-content {
  padding: 1.25rem;
}

.game-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.game-description {
  color: var(--text-mid);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.game-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.game-age {
  background: rgba(108, 92, 231, 0.1);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.game-category {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-mid);
  font-size: 0.9rem;
}

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

.game-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--accent-yellow);
}

.star-icon {
  font-size: 1rem;
}

.game-reviews {
  font-size: 0.85rem;
  color: var(--text-mid);
}

.game-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

/* ============================================================
   AGE SECTION (v2.0)
   ============================================================ */
.age-section {
  padding: 4rem 0;
}

.age-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.age-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s;
  text-decoration: none;
  display: block;
}

.age-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.age-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

.age-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.age-description {
  color: var(--text-mid);
  margin-bottom: 1rem;
}

.age-count {
  display: inline-block;
  background: rgba(108, 92, 231, 0.1);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
}

/* ============================================================
   TESTIMONIALS (v2.0)
   ============================================================ */
.testimonials-section {
  padding: 4rem 0;
  background: var(--bg-soft);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

.testimonial-rating {
  margin-bottom: 1rem;
}

.star {
  color: var(--accent-yellow);
  font-size: 1.2rem;
}

.testimonial-text {
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(108, 92, 231, 0.1);
}

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

.testimonial-name {
  font-weight: 700;
  color: var(--text-dark);
}

.testimonial-role {
  font-size: 0.9rem;
  color: var(--text-mid);
}

/* ============================================================
   PAGE HEADER (v2.0)
   ============================================================ */
.page-header {
  padding: 3rem 0 2rem;
}

.page-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  margin-bottom: 0.5rem;
}

.page-emoji {
  font-size: 2.5rem;
}

.page-subtitle {
  text-align: center;
  color: var(--text-mid);
  font-size: 1.1rem;
}

/* ============================================================
   FILTER SECTION (v2.0)
   ============================================================ */
.filter-section {
  padding: 2rem 0;
  background: var(--bg-soft);
}

.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.filter-label {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.filter-options {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 0.625rem 1.25rem;
  border-radius: 50px;
  border: 2px solid rgba(108, 92, 231, 0.15);
  background: var(--white);
  color: var(--text-mid);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-size: 0.9rem;
}

.filter-chip:hover,
.filter-chip.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.filter-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-search {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--white);
  border: 2px solid rgba(108, 92, 231, 0.15);
  border-radius: 50px;
  padding: 0.625rem 1.25rem;
  flex: 1;
  min-width: 250px;
}

.filter-search svg {
  color: var(--text-mid);
  flex-shrink: 0;
}

.search-input {
  border: none;
  background: none;
  outline: none;
  flex: 1;
  font-size: 0.95rem;
  font-family: inherit;
}

.filter-select {
  padding: 0.625rem 2.5rem 0.625rem 1rem;
  border: 2px solid rgba(108, 92, 231, 0.15);
  border-radius: 50px;
  background: var(--white);
  color: var(--text-dark);
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.results-count {
  text-align: center;
  color: var(--text-mid);
  font-size: 0.95rem;
}

.games-catalogue {
  padding: 2rem 0 4rem;
}

.games-grid-large {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.no-results {
  text-align: center;
  padding: 4rem 2rem;
}

.no-results-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 1rem;
}

.no-results-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.no-results-text {
  color: var(--text-mid);
  margin-bottom: 2rem;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.pagination-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border: 2px solid rgba(108, 92, 231, 0.15);
  border-radius: 10px;
  background: var(--white);
  color: var(--text-dark);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.pagination-link:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.pagination-link.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.pagination-pages {
  display: flex;
  gap: 0.5rem;
}

.pagination-ellipsis {
  padding: 0.625rem 1rem;
  color: var(--text-mid);
}

/* ============================================================
   GAME PAGE STYLES (v2.0)
   ============================================================ */
.game-header-section {
  padding: 3rem 0;
  color: var(--white);
}

.game-header-content {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.game-emoji-large {
  font-size: 5rem;
  animation: bounce 2s infinite;
}

.game-header-info {
  flex: 1;
}

.game-category-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  margin-bottom: 1rem;
}

.game-header-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.game-header-description {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.game-header-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.game-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.game-stat-icon {
  font-size: 1.25rem;
}

.game-content-section {
  padding: 3rem 0;
}

.game-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
}

.game-main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.game-container {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

.game-start-screen {
  text-align: center;
}

.game-start-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.game-start-description {
  color: var(--text-mid);
  margin-bottom: 1.5rem;
}

.game-area {
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

#game-canvas {
  width: 100%;
  height: auto;
  background: var(--white);
  border-radius: 8px;
}

.game-instructions {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.game-instructions-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.game-instructions-content {
  color: var(--text-mid);
  line-height: 1.7;
}

.game-reviews-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.game-reviews-count {
  font-size: 0.9rem;
  color: var(--text-mid);
  font-weight: 400;
}

.review-form-container {
  background: rgba(108, 92, 231, 0.05);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.review-form-title {
  font-weight: 700;
  margin-bottom: 1rem;
}

.review-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-rating {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.review-stars {
  display: flex;
  gap: 0.25rem;
}

.review-stars input {
  display: none;
}

.star-label {
  font-size: 1.5rem;
  color: rgba(108, 92, 231, 0.3);
  cursor: pointer;
  transition: color 0.2s;
}

.star-label:hover,
.review-stars input:checked + .star-label {
  color: var(--accent-yellow);
}

.review-comment {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.review-comment-textarea {
  padding: 0.75rem;
  border: 2px solid rgba(108, 92, 231, 0.15);
  border-radius: 8px;
  font-family: inherit;
  resize: vertical;
}

.review-done {
  padding: 1rem;
  background: rgba(0, 184, 148, 0.1);
  border-radius: 8px;
  color: var(--success);
  margin-bottom: 1.5rem;
}

.review-login {
  padding: 1rem;
  background: rgba(108, 92, 231, 0.05);
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.reviews-empty {
  text-align: center;
  color: var(--text-mid);
  padding: 2rem;
}

.review-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  box-shadow: var(--shadow-soft);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.review-author {
  display: flex;
  gap: 0.75rem;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(108, 92, 231, 0.1);
}

.review-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.review-author-info {
  display: flex;
  flex-direction: column;
}

.review-name {
  font-weight: 700;
  color: var(--text-dark);
}

.review-date {
  font-size: 0.85rem;
  color: var(--text-mid);
}

.review-rating {
  color: var(--accent-yellow);
}

.review-comment {
  color: var(--text-mid);
  line-height: 1.6;
}

/* Game Sidebar */
.game-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.sidebar-card-title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.game-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.game-info-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.game-info-label {
  color: var(--text-mid);
}

.game-info-value {
  font-weight: 600;
  color: var(--text-dark);
}

.sidebar-empty {
  text-align: center;
  color: var(--text-mid);
  padding: 1rem;
}

.leaderboard {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.leaderboard-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 8px;
  background: rgba(108, 92, 231, 0.05);
}

.leaderboard-item.top {
  background: rgba(253, 203, 110, 0.15);
}

.leaderboard-item.current {
  border: 2px solid var(--primary);
}

.leaderboard-rank {
  width: 32px;
  text-align: center;
  font-weight: 700;
  color: var(--text-mid);
}

.leaderboard-item.top .leaderboard-rank {
  font-size: 1.2rem;
}

.leaderboard-player {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.leaderboard-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(108, 92, 231, 0.1);
  font-size: 0.9rem;
}

.leaderboard-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.leaderboard-username {
  font-weight: 600;
  color: var(--text-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-score {
  font-weight: 700;
  color: var(--primary);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* Similar Games */
.similar-games-section {
  padding: 3rem 0 4rem;
  background: var(--bg-soft);
}

.section-emoji {
  font-size: 1.5rem;
}

/* ============================================================
   ERROR SECTION
   ============================================================ */
.error-section {
  padding: 6rem 1.5rem;
  text-align: center;
}

.error-content {
  max-width: 500px;
  margin: 0 auto;
}

.error-emoji {
  font-size: 5rem;
  display: block;
  margin-bottom: 1.5rem;
}

.error-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.error-description {
  color: var(--text-mid);
  margin-bottom: 2rem;
}

/* ============================================================
   ALERT CLOSE BUTTON
   ============================================================ */
.alert {
  position: relative;
}

.alert-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: inherit;
  opacity: 0.6;
}

.alert-close:hover {
  opacity: 1;
}

/* ============================================================
   NO SCROLL CLASS
   ============================================================ */
.no-scroll {
  overflow: hidden;
}

/* ============================================================
   RESPONSIVE ADDITIONS
   ============================================================ */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-cards {
    flex-direction: row;
    justify-content: center;
  }

  .hero-card-1,
  .hero-card-2,
  .hero-card-3 {
    transform: none;
  }

  .games-grid-large {
    grid-template-columns: repeat(3, 1fr);
  }

  .game-layout {
    grid-template-columns: 1fr;
  }

  .game-sidebar {
    order: 2;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }

  .nav-links {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .games-grid {
    grid-template-columns: 1fr 1fr;
  }

  .games-grid-large {
    grid-template-columns: repeat(2, 1fr);
  }

  .age-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .game-header-content {
    flex-direction: column;
    text-align: center;
  }

  .game-header-stats {
    justify-content: center;
  }

  .filter-bar {
    gap: 1rem;
  }

  .filter-actions {
    flex-direction: column;
  }

  .filter-search {
    min-width: 100%;
  }

  .filter-group {
    align-items: flex-start;
  }

  .filter-options {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }
}

@media (max-width: 480px) {
  .games-grid,
  .games-grid-large {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   AUTH PAGES (inscription, connexion)
   ============================================================ */

.auth-page {
  display: flex;
  justify-content: center;
  padding: 3rem 0;
  min-height: calc(100vh - 400px);
}

.auth-card {
  width: 100%;
  max-width: 500px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-card);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  color: var(--text-mid);
  font-size: 1rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.auth-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(108, 92, 231, 0.1);
}

.auth-footer p {
  color: var(--text-mid);
  margin-bottom: 0.5rem;
}

.auth-footer a {
  color: var(--primary);
  font-weight: 600;
}

/* Form Elements */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid rgba(108, 92, 231, 0.15);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.form-input.is-invalid {
  border-color: var(--danger);
}

.form-select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid rgba(108, 92, 231, 0.15);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
}

.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid rgba(108, 92, 231, 0.15);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
  min-height: 100px;
}

.form-help {
  color: var(--text-mid);
  font-size: 0.85rem;
}

.form-error {
  color: var(--danger);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.required {
  color: var(--danger);
}

/* Input Group */
.input-group {
  display: flex;
  align-items: center;
}

.input-group .form-input {
  flex: 1;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-group-btn {
  padding: 0.875rem 1rem;
  background: rgba(108, 92, 231, 0.1);
  border: 2px solid rgba(108, 92, 231, 0.15);
  border-left: none;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.input-group-btn:hover {
  background: rgba(108, 92, 231, 0.15);
}

.eye-icon {
  font-size: 1.1rem;
}

/* Checkbox */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-dark);
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
}

/* Role Selection */
.role-selection {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.role-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1rem;
  background: rgba(108, 92, 231, 0.05);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.role-option:hover {
  background: rgba(108, 92, 231, 0.1);
}

.role-option.is-selected {
  background: rgba(108, 92, 231, 0.1);
  border-color: var(--primary);
}

.role-option input[type="radio"] {
  display: none;
}

.role-icon {
  font-size: 2rem;
}

.role-label {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.9rem;
}

/* Password Strength */
.password-strength {
  margin-top: 0.75rem;
}

.password-strength-bar {
  height: 4px;
  background: rgba(108, 92, 231, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.password-strength-text {
  font-size: 0.8rem;
  color: var(--text-mid);
  margin-top: 0.25rem;
}

/* Username Availability */
.username-availability {
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

.username-availability.available {
  color: var(--success);
}

.username-availability.unavailable {
  color: var(--danger);
}

/* Buttons */
.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes floatShape {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(30px, -30px) rotate(90deg);
  }
  50% {
    transform: translate(-20px, 20px) rotate(180deg);
  }
  75% {
    transform: translate(20px, 10px) rotate(270deg);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Alert Styles */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.alert-success {
  background: rgba(0, 184, 148, 0.1);
  color: #00B894;
  border: 1px solid rgba(0, 184, 148, 0.3);
}

.alert-error {
  background: rgba(231, 76, 60, 0.1);
  color: #E74C3C;
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.alert-info {
  background: rgba(9, 132, 227, 0.1);
  color: #0984E3;
  border: 1px solid rgba(9, 132, 227, 0.3);
}

.alert-warning {
  background: rgba(253, 203, 110, 0.1);
  color: #FDCB6E;
  border: 1px solid rgba(253, 203, 110, 0.3);
}

/* Profil Page */
.profil-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.profil-avatar-container {
  position: relative;
  display: inline-block;
}

.profil-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid white;
  object-fit: cover;
}

.profil-pseudo {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 1rem;
}

.profil-role {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Stats Cards */
.stats-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.stat-card-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-card-label {
  color: var(--text-mid);
  font-size: 0.9rem;
}

/* Badges Grid */
.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 1rem;
}

.badge-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.badge-item-locked {
  opacity: 0.5;
  filter: grayscale(1);
}

.badge-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.badge-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* Progress Bar */
.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(108, 92, 231, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent-pink));
  border-radius: 10px;
  transition: width 0.3s ease;
}

/* Profil Nav Tabs */
.profil-nav {
  display: flex;
  gap: 1rem;
  border-bottom: 2px solid rgba(108, 92, 231, 0.1);
  margin-bottom: 2rem;
}

.profil-nav-tab {
  padding: 0.75rem 1.5rem;
  color: var(--text-mid);
  font-weight: 600;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}

.profil-nav-tab:hover,
.profil-nav-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-state-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 1rem;
}

.empty-state-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.empty-state-text {
  color: var(--text-mid);
}

/* Responsive for Auth Pages */
@media (max-width: 768px) {
  .auth-page {
    padding: 2rem 0;
  }

  .auth-card {
    padding: 2rem 1.5rem;
  }

  .role-selection {
    grid-template-columns: 1fr;
  }

  .profil-stats {
    grid-template-columns: 1fr;
  }
}
