/* =============================
   STYLE INDEX.PHP - GameLink
   Version responsive optimisée
   ============================= */

/* Fond sombre général */
body {
  background: #0f1115;
  color: #E7E9ED;
  font-family: system-ui, -apple-system, sans-serif;
  margin: 0;
  padding: 0;
}

/* Contenu principal */
main {
  margin: 0 auto;
  padding: 40px 80px;
}

/* ===== BANNIÈRE DE BIENVENUE ===== */
.welcome-banner {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 120px 80px;
  text-align: center;
}

.welcome-banner h1 {
  font-size: 64px;
  margin: 0 0 30px 0;
  font-weight: bold;
  line-height: 1.2;
}

.welcome-banner p {
  margin: 0 0 40px 0;
  font-size: 24px;
  opacity: 0.95;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-big {
  padding: 15px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s;
  display: inline-block;
}

.btn-primary {
  background: white;
  color: #667eea;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255,255,255,0.3);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: #667eea;
}

/* ===== SECTIONS ALTERNÉES ===== */
.feature-section {
  display: flex;
  align-items: center;
  gap: 50px;
  padding: 60px 80px;
  background: #0f1115;
}

/* Section paire (image à droite) */
.feature-section:nth-child(even) {
  flex-direction: row-reverse;
  background: #1a1e27;
}

/* Image de la bannière */
.feature-image {
  flex: 0.8;
  min-width: 250px;
  max-width: 500px;
}

.feature-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

/* Placeholder pour images temporaires */
.image-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  font-weight: bold;
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

/* Contenu texte */
.feature-content {
  flex: 1;
  min-width: 300px;
}

.feature-number {
  color: #6ea8ff;
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.feature-content h2 {
  font-size: 30px;
  margin: 0 0 15px 0;
  color: #E7E9ED;
  font-weight: bold;
  line-height: 1.3;
}

.feature-content p {
  font-size: 16px;
  line-height: 1.6;
  color: #cbd5f5;
  margin: 0 0 20px 0;
}

.feature-link {
  display: inline-block;
  color: #6ea8ff;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s;
}

.feature-link:hover {
  color: #5a90e0;
  transform: translateX(5px);
}

.feature-link::after {
  content: " →";
  transition: transform 0.3s;
}

.feature-link:hover::after {
  transform: translateX(5px);
}

/* ===== MESSAGES FLASH ===== */
.flash-message {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
}

.error-message {
  background: #ff6b6b;
  color: white;
  box-shadow: 0 4px 15px rgba(255,107,107,0.3);
}

.success-message {
  background: #51cf66;
  color: white;
  box-shadow: 0 4px 15px rgba(81,207,102,0.3);
}

/* ===== RESPONSIVE ===== */

/* Tablette (1024px et moins) */
@media (max-width: 1024px) {
  main {
    padding: 30px 40px;
  }

  .welcome-banner {
    padding: 100px 40px;
  }

  .welcome-banner h1 {
    font-size: 52px;
  }
  
  .welcome-banner p {
    font-size: 20px;
  }

  .feature-section {
    padding: 50px 40px;
    gap: 40px;
  }
  
  .feature-content h2 {
    font-size: 26px;
  }
  
  .feature-content p {
    font-size: 15px;
  }
}

/* Tablette portrait / Mobile paysage (768px et moins) */
@media (max-width: 768px) {
  main {
    padding: 20px;
  }
  
  .welcome-banner {
    padding: 80px 30px;
  }
  
  .welcome-banner h1 {
    font-size: 40px;
  }
  
  .welcome-banner p {
    font-size: 18px;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-big {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
  
  /* Sections en colonne */
  .feature-section,
  .feature-section:nth-child(even) {
    flex-direction: column;
    padding: 40px 20px;
    gap: 25px;
  }
  
  .feature-image {
    min-width: 100%;
    max-width: 100%;
  }
  
  .feature-content {
    text-align: center;
  }
  
  .feature-content h2 {
    font-size: 24px;
  }
  
  .feature-content p {
    font-size: 14px;
  }
  
  .feature-link {
    display: inline-block;
    margin-top: 10px;
  }
}

/* Mobile portrait (480px et moins) */
@media (max-width: 480px) {
  main {
    padding: 15px;
  }
  
  .welcome-banner {
    padding: 60px 20px;
  }
  
  .welcome-banner h1 {
    font-size: 32px;
  }
  
  .welcome-banner p {
    font-size: 16px;
    margin-bottom: 30px;
  }
  
  .btn-big {
    padding: 12px 30px;
    font-size: 14px;
  }
  
  .feature-section,
  .feature-section:nth-child(even) {
    padding: 30px 15px;
    gap: 20px;
  }
  
  .feature-number {
    font-size: 11px;
  }
  
  .feature-content h2 {
    font-size: 22px;
  }
  
  .feature-content p {
    font-size: 14px;
    line-height: 1.5;
  }
  
  .image-placeholder {
    font-size: 16px;
  }
  
  .flash-message {
    margin: 15px;
    padding: 15px;
    font-size: 14px;
  }
}

/* Très petit mobile (360px et moins) */
@media (max-width: 360px) {
  .welcome-banner h1 {
    font-size: 28px;
  }
  
  .welcome-banner p {
    font-size: 14px;
  }
  
  .btn-big {
    padding: 10px 25px;
    font-size: 13px;
  }
  
  .feature-content h2 {
    font-size: 20px;
  }
}