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

/* Header */
header {
  background: #1f1f1f;
  color: white;
  padding: 1rem;
  border-bottom: 1px solid #ddd;
}

nav {
  max-width: 960px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
}

/* Ajout display inline-block pour bien gérer hover/transform */
nav a {
  color: white;
  text-decoration: none;
  display: inline-block;
  letter-spacing: 0.03em;
  transition: transform 0.2s ease, color 0.1s ease;
}

/* margin-left uniquement sur les liens sauf le premier dans la 2e div */
nav div:last-child a:not(:first-child) {
  margin-left: 1rem;
}

/* Animation pour tous les liens sauf ceux avec .no-animation */
nav a:hover:not(.no-animation) {
  transform: scale(0.95);
}

nav a:active:not(.no-animation) {
  color: #cccccc;
  transform: scale(0.92);
}

/* Désactiver animation pour Tristan Arbona */
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;
  border-bottom: 1px solid #ddd;
}

.container::after {
  content: "";
  display: block;
  height: 4rem;
}

h1, h2 {
  color: #222;
  margin-bottom: 1rem;
}

/* Boutons */
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);
}

/* Accueil */
.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;
  border-top: 1px solid #ddd;
}

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

/* Responsive */
@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;
}
