/* Règle globale pour les marges */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Base (Cible HTML et BODY) */
html, body {
  font-family: 'Alata', sans-serif;
  background: #fefaf5;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

/* Header */
header {
  background: #1f1f1f;
  color: white;
  /* MODIFIÉ : 1rem en haut/bas, 2rem sur les côtés */
  padding: 1rem 2rem;
  border-bottom: 1px solid #ddd;
}

nav {
  /* MODIFIÉ : max-width et margin:auto sont supprimés pour la pleine largeur */
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
}

/* ... (tout le reste de votre nav est correct) ... */
nav a {
  color: white;
  text-decoration: none;
  display: inline-block;
  letter-spacing: 0.03em;
  transition: transform 0.2s ease, color 0.1s ease;
}
nav div:last-child a:not(:first-child) {
  margin-left: 1rem;
}
nav a:hover:not(.no-animation) {
  transform: scale(0.95);
}
nav a:active:not(.no-animation) {
  color: #cccccc;
  transform: scale(0.92);
}
nav a.no-animation:hover,
nav a.no-animation:active {
  transform: none !important;
  color: white !important;
}

/* Contenu */
.container {
  max-width: 960px;
  margin: 2rem auto;
  padding: 1rem;
  flex: 1; /* Clé N°1: Pousse le footer vers le bas */
  border-bottom: 1px solid #ddd;
}

/* ... (tout le reste du contenu est correct) ... */
.container::after {
  content: "";
  display: block;
  height: 4rem;
}
h1, h2 {
  color: #222;
  margin-bottom: 1rem;
}
a.button {
  display: inline-block;
  margin-top: 1rem;
  background: #1f1f1f;
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 6px;
  transition: transform 0.2s ease, background 0.1s ease;
}
a.button:hover {
  transform: scale(0.95);
}
a.button:active {
  background: #444;
  transform: scale(0.92);
}
.main-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}
.main-content img {
  max-width: 100%;
  width: 300px;
  height: auto;
  border-radius: 8px;
}
.description {
  flex: 1;
  min-width: 250px;
}

/* Footer */
footer {
  background: #1f1f1f;
  color: white;
  padding: 1.5rem 1rem;
  text-align: center;
  margin-top: auto; /* Clé N°2: Colle-le en bas (fonctionnera maintenant) */
  border-top: 1px solid #ddd;
}

/* ... (le reste du footer est correct) ... */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.footer-links a {
  color: white;
  text-decoration: none;
  transition: transform 0.2s ease, color 0.1s ease;
}
.footer-links a:hover {
  transform: scale(0.95);
}
.footer-links a:active {
  color: #cccccc;
  transform: scale(0.92);
}
.small-text {
  color: #1f1f1f;
  font-size: 0.8rem;
}

/* ... (le responsive est correct) ... */
@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
    align-items: center;
  }
  nav {
    flex-direction: column;
    align-items: center;
  }
  nav div:last-child a {
    margin: 0.5rem;
  }
  .footer-links {
    flex-direction: column;
  }
}

/* Masquage d'éléments */
.masque {
  display: none !important;
}
