:root {
  --main-color: #007bff;    /* Bleu principal */
  --music-color: #111;      /* Noir */
  --info-color: #28a745;    /* Vert */
  --etude-color: #ffb700;   /* Or */
  --jeux-color: #dc3545;    /* Rouge */

  --text-color: #000;
  --bg-color: #fff;
}

body.dark {
  --text-color: #f0f0f0;
  --bg-color: #121212;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background 0.3s, color 0.3s;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: var(--main-color);
  color: white;
  flex-wrap: wrap;
}

header h1 {
  margin-left: 10px;
}

/* LOGO */
.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.logo-container img {
  width: 50px; /* Réduction de la taille */
  height: auto;
}

/* NAVIGATION */
.navbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: var(--main-color);
  color: white;
  text-align: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

/* BOUTON DARK MODE */
#theme-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.navbar a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.navbar a:hover {
  text-decoration: underline;
}

#theme-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.services {
  padding: 2rem;
  text-align: center;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.card {
  background-color: #f8f9fa;
  color: #000;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  width: 200px;
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
}

.card img {
  width: 80px;
  height: 80px;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

body.dark .card {
  background-color: #1e1e1e;
  color: white;
}

.card:nth-child(1) { border-top: 4px solid var(--music-color); }
.card:nth-child(2) { border-top: 4px solid var(--info-color); }
.card:nth-child(3) { border-top: 4px solid var(--etude-color); }
.card:nth-child(4) { border-top: 4px solid var(--jeux-color); }

footer {
  padding: 1rem;
  text-align: center;
  background: var(--main-color);
  color: white;
}

footer .socials a {
  margin: 0 10px;
  color: white;
  text-decoration: none;
}

footer .socials a:hover {
  text-decoration: underline;
}

#menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
}

p a {
  color: gold;
}

.cookie-banner {
      display: none;
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background: #1e1e1e;
      color: #fff;
      padding: 1rem;
      text-align: center;
      z-index: 1000;
      font-size: 0.95rem;
      justify-content: center;
      align-items: center;
      gap: 1rem;
      flex-wrap: wrap;
    }

    .cookie-banner.show {
      display: flex;
    }

    #accept-cookies {
      background: #4caf50;
      color: white;
      border: none;
      padding: 0.5rem 1rem;
      cursor: pointer;
      border-radius: 5px;
    }

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .cards {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 90%;
  }

  .logo-container h1 {
    font-size: 1.5rem;
  }

  .logo-container img {
    width: 40px;
  }

  #menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--main-color);
    margin-top: 1rem;
    padding-left: 1rem;
  }

  .nav-links.show {
    display: flex;
  }
}
