* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: "poppins";
  src: url(Poppins-ExtraLight.ttf);
}

body {
  font-family: "poppins", sans-serif;
  color: white;
  background: url("/images/bg-icnd6.jpg") no-repeat center center/cover;
  height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: black; /* Couleur par défaut */
}

.bodybg::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: url("/images/bg-icnd5.jpg") no-repeat center center;
  background-size: cover;
  transform-origin: center;
  transition: transform 0s linear;
}

.bodybg::before {
  transform: var(--transform, none);
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.5);
}

#logo a {
  text-decoration: none;
  color: inherit;
  font-size: 1.3rem;
}

#logo img {
  width: 50px;
  height: 60px;
  vertical-align: middle;
}

/* Menu burger */
.burger {
  display: none; /* Masqué par défaut */
  flex-direction: column;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 3px 0;
  transition: all 0.3s;
}

/* Navigation */
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav ul.desktop {
  display: flex;
}

nav ul.mobile {
  display: none;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.9);
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  height: calc(100vh - 60px);
  z-index: 10;
  padding: 20px;
  gap: 40px;
  justify-content: center;
  align-items: center;
}

nav ul.mobile.active {
  display: flex;
}

nav a {
  text-decoration: none;
  color: white;
  font-weight: bold;
}

nav a.button {
  padding: 10px 15px;
  border: 2px solid white;
  border-radius: 8px;
  text-transform: uppercase;
  font-weight: bold;
  transition: background 0.3s, color 0.3s;
}

nav a.button:hover {
  background-color: #ffffff00;
  color: #ff4a4a;
}

/* Main content */
main {
  border: solid 1px #8d8d8d;
  border-radius: 5px;
  margin: 30px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.7);
}

main h1 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

main p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Footer */
footer {
  padding: 10px 30px;
  background: rgba(0, 0, 0, 0.863);
  text-align: center;
}

footer #logo img {
  width: 30px;
  height: 40px;
}

footer p {
  font-size: 0.9rem;
  margin: 5px 0;
}

footer #mentions a {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
}

/* Responsive design */
@media screen and (max-width: 768px) {
  /* Afficher le menu burger en mode mobile */
  .burger {
    display: flex;
  }

  /* Masquer la navigation desktop en mode mobile */
  nav ul.desktop {
    display: none;
  }

  /* Ajuster le contenu principal pour les petits écrans */
  main {
    margin: 15px;
    padding: 15px;
  }

  main h1 {
    font-size: 1.3rem;
  }

  main p {
    font-size: 1rem;
  }
}

@media screen and (max-width: 480px) {
  /* Ajuster les styles pour les très petits écrans */
  header {
    padding: 10px 15px;
  }

  main {
    margin: 10px;
    padding: 10px;
  }

  main h1 {
    font-size: 1.2rem;
  }

  main p {
    font-size: 0.9rem;
  }

  footer {
    padding: 10px 15px;
  }
}

h2 a:visited {
  color: inherit;
  text-decoration: none;
}
