/* Variables globales */
:root {
  --main-color: #2e7d32; /* Vert M3'Info */
  --text-dark: #111;
  --text-light: #f0f0f0;
  --bg-light: #dddddd;
  --bg-dark: #333333;
  --card-light: #f8f8f8;
  --card-dark: #1e1e1e;
  --accent: #4caf50;
}

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

body.dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

/* En-tête */
.info-header {
  background-color: var(--main-color);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  flex-wrap: wrap;
}

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

.logo-container img {
  width: 50px;
  height: auto;
}

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

/* Navigation */
.nav-desktop ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.nav-desktop a:hover,
.nav-desktop a.active {
  text-decoration: underline;
}

/* Contenu principal */
.info-content {
  padding: 2rem;
  text-align: center;
}

.langage-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 2rem 0;
}

.langage-card {
  background-color: var(--card-light);
  padding: 1.5rem;
  width: 200px;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-decoration: none;
  color: var(--text-dark);
  transition: transform 0.3s, box-shadow 0.3s;
}

.langage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

body.dark .langage-card {
  background-color: var(--card-dark);
  color: var(--text-light);
}

.langage-card i {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.langage-card h3 {
  margin: 0.5rem 0;
}

.langage-card p {
  font-size: 0.9rem;
}

/* Navigation mobile */
.nav-mobile {
  display: none;
}

.nav-mobile a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: white;
  padding: 0.5rem;
  font-size: 0.8rem;
}

.nav-mobile span {
  display: block;
  font-size: 0.7rem;
}

.nav-mobile a.active {
  background-color: #2e7d32;
}

.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;
    }

    a.btn {
      display: inline-block;
      padding: 0.5rem;
      background: #2196f3;
      color: white;
      text-decoration: none;
      border-radius: 5px;
    }

    a.btn:hover {
      background: #1976d2;
    }

footer {
  padding: 1rem;
  text-align: center;
  background: #2e7d32;
  color: white;
}

footer a{
  text-decoration: none;
  color: white;
}

.navbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  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;
}

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

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

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

@media (min-width: 768px) {
  .navbar {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  #menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
    padding-left: 1rem;
  }

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

  .nav-mobile {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--main-color);
    border-top: 1px solid #333;
    z-index: 1000;
  }

  .info-content {
    padding-bottom: 4rem;
  }

  img{
    width: 100%;
  }
}
