:root {
  --primary-color: #121212;
  --secondary-color: #1e88e5;
  --background-color: #1f1f1f;
  --text-color: #eee;
  --hover-color: #1565c0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: all 0.3s ease-in-out;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header, footer {
  background-color: var(--primary-color);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  position: sticky;
  z-index: 100;
}

header {
  top: 0;
}

footer {
  margin-top: auto;
}

.header1, .header2, .header3,
.footer1, .footer2, .footer3 {
  flex: 1;
  text-align: center;
}

#burger-toggle {
  display: none;
}

#burger-toggle:checked ~ header .burger-container {
  background: radial-gradient(circle,rgba(255, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 100%);
  border: 1px solid #ff0000;
}


.burger-container {
  width: 35px;
  height: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  padding: 5px;
  border-radius: 5px;
  background: var(--secondary-color); /* couleur de fond bleue */
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  margin-left: auto;
}

.burger-line {
  width: 100%;
  height: 3px;
  background-color: white; /* couleur des traits */
  border-radius: 2px;
}


.nav-menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 250px;
  height: 100%;
  background: linear-gradient(to bottom, #0d1b2a, #7a7a7a); /* dégradé bleu nuit -> gris métal */
  transition: right 0.3s ease-in-out;
  padding-top: 80px;
  z-index: 90;
}


.nav-menu ul {
  list-style: none;
}

.nav-menu ul li a {
  color: white;
  text-decoration: none;
  display: block;
  padding: 15px 20px;
  font-weight: 500;
}

.nav-menu ul li a:hover {
  background-color: var(--hover-color);
}

#burger-toggle:checked ~ .nav-menu {
  right: 0;
}

/* Burger animation */
#burger-toggle:checked ~ header .burger-container .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
#burger-toggle:checked ~ header .burger-container .burger-line:nth-child(2) {
  opacity: 0;
}
#burger-toggle:checked ~ header .burger-container .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

main {
  padding: 100px 20px 40px;
}

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

  .nav-menu {
    position: static;
    width: auto;
    height: auto;
    background: none;
    display: flex;
    align-items: center;
    padding: 0;
    box-shadow: none;
  }

  .nav-menu ul {
    display: flex;
    gap: 20px;
  }

  .nav-menu ul li a {
    padding: 10px;
    color: white;
  }

  #burger-toggle:checked ~ .nav-menu {
    right: auto;
  }
}
