/* Assure que html et body occupent toute la hauteur de la fenêtre */
html, body {
  height: 100%;
  margin: 0;
}

/* Transforme body en flex container vertical */
body {
  display: flex;
  flex-direction: column;
}

/* Le main doit s’étendre pour pousser le footer en bas */
main {
  flex: 1;
}



/* Header & Navigation */
header,
footer {
  background: #333;
  color: #fff;
}
header .container,
footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo a {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}
nav li a {
  color: #fff;
  padding: 0.5rem;
}
nav li a:hover {
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
}
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #fff;
}

/* Responsive Navigation */
@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    background: #444;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    padding: 1rem;
  }
  nav ul.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
}
