/* styles.css */
body {
  background-color: #111827;
  color: #ffffff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
}

header {
  background-color: #1f2937;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

header h1 {
  color: #6366f1;
  font-size: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 40px;
  width: auto;
  margin-right: 0.5rem;
}

.logo span {
  color: #6366f1;
  font-size: 1.8rem;
  font-weight: bold;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.1rem;
}

nav a:hover {
  color: #a5b4fc;
}

.hero {
  position: relative;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.6; /* Assombrit un peu pour mieux lire le texte */
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-content h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

#intro {
  opacity: 0.9; /* Assombrit un peu pour mieux lire le texte */
  border-radius: 30px;

}
#intro h2 {
  opacity: 1; /* Assombrit un peu pour mieux lire le texte */

}
#intro p {
  opacity: 1; /* Assombrit un peu pour mieux lire le texte */

}
.hero h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  background-color: #6366f1;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: bold;
}

.btn:hover {
  background-color: #4f46e5;
}

.section {
  padding: 6rem 2rem;
  text-align: center;
  background-color: #1f2937;
}

.section:nth-of-type(even) {
  background-color: #111827;
}

.section h3 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #6366f1;
}

.games {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .games {
    grid-template-columns: repeat(3, 1fr);
  }
}

.game-card {
  background-color: #374151;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.6);
}

footer {
  text-align: center;
  padding: 1.5rem;
  background-color: #0f172a;
  color: #9ca3af;
  font-size: 0.9rem;
}

:target {
  scroll-margin-top: 100px;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


.newsletter-container {
  border: 1px solid #1976ff;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px;
  background-color: #0d0f17;
  max-width: 900px;
  margin: auto;
}

.newsletter-text {
  max-width: 55%;
}

.newsletter-text h2 {
  font-size: 28px;
  margin: 0 0 10px;
  line-height: 1.2;
}

.newsletter-text h2 span {
  color: #1976ff;
}

.newsletter-text p {
  font-size: 15px;
  color: #d1d1d1;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 280px;
}

.newsletter-form input[type="email"] {
  padding: 12px 15px;
  border-radius: 8px;
  border: none;
  outline: none;
  font-size: 14px;
}

.newsletter-form button {
  background: linear-gradient(90deg, #1976ff 0%, #005eff 100%);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s;
}

.newsletter-form button:hover {
  background: linear-gradient(90deg, #005eff 0%, #0040d6 100%);
}

.newsletter-form button::after {
  content: ' ➔';
}

@media (max-width: 768px) {
  .newsletter-container {
    flex-direction: column;
    text-align: center;
  }

  .newsletter-text {
    max-width: 100%;
    margin-bottom: 20px;
  }

  .newsletter-form {
    width: 100%;
  }
}
