/* Reset de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #f4f4f4;
  color: #333;
}

/* ----- HEADER ----- */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #2c3e50;
  color: #fff;
  padding: 20px 40px;
  flex-wrap: wrap;
  width: 100%;
}

.logo {
  height: 60px;
  width: auto;
}

.header-center {
  text-align: center;
  flex-grow: 1;
}

.header-center h1 {
  font-size: 28px;
  margin-bottom: 10px;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 0;
  margin-top: 10px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

nav ul li a:hover {
  text-decoration: none;
  color: #1abc9c
}

.login-button a {
  color: #fff;
  background-color: #1abc9c;
  padding: 8px 15px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}

.login-button a:hover {
  background-color: #16a085;
}

/* ----- SECTIONS ----- */

section {
  padding: 40px 20px;
  max-width: 1000px;
  margin: auto;
  background-color: #fff;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

h2 {
  color: #2c3e50;
  margin-bottom: 15px;
}

ul {
  padding-left: 20px;
}

ul li {
  margin-bottom: 10px;
}

/* ----- FOOTER ----- */

footer {
  background-color: #2c3e50;
  color: #fff;
  text-align: center;
  padding: 15px 0;
  position: relative;
  bottom: 0;
  width: 100%;
}

/* ----- FORMULAIRES ----- */

form {
  max-width: 600px;
  margin: auto;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

input, textarea, button {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  font-size: 16px;
}

button {
  background-color: #2c3e50;
  color: white;
  border: none;
  cursor: pointer;
  margin-top: 10px;
}

button:hover {
  background-color: #1a242f;
}

/* ----- RESPONSIVE ----- */

@media (max-width: 768px) {
  .header-container {
    grid-template-columns: 1fr;
    text-align: center;
    row-gap: 15px;
  }

  .logo-container,
  .login-button {
    justify-content: center;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
  }
}


/* Animation fade + slide */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Applique aux sections */
section {
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
  animation-delay: 0.2s;
}


button,
.login-button a,
nav ul li a {
  transition: all 0.3s ease;
}

/* Déjà existant dans ton code, mais améliorable */
button:hover,
.login-button a:hover {
  transform: scale(1.05);
  background-color: #16a085;
}


nav ul li {
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

/* Délai progressif sur chaque lien */
nav ul li:nth-child(1) { animation-delay: 0.2s; }
nav ul li:nth-child(2) { animation-delay: 0.3s; }
nav ul li:nth-child(3) { animation-delay: 0.4s; }
nav ul li:nth-child(4) { animation-delay: 0.5s; }
nav ul li:nth-child(5) { animation-delay: 0.6s; }


nav ul li a {
  position: relative;
  padding-bottom: 4px;
}

nav ul li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: #1abc9c;
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}


.auth-buttons {
  display: flex;
  gap: 10px;
}

.auth-buttons .btn {
  color: #fff;
  background-color: #1abc9c;
  padding: 8px 15px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.auth-buttons .btn:hover {
  background-color: #16a085;
}


.btn-link {
  display: inline-block;
  background-color: #2c3e50;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s, transform 0.2s;
}

.btn-link:hover {
  background-color: #34495e;
  transform: translateY(-2px);
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  padding: 20px;
}

.gallery img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.gallery img:hover {
  transform: scale(1.05);
}

#lightbox {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

#lightbox img {
  max-width: 80%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
  transform: scale(0.9);
  transition: transform 0.3s;
}

#lightbox.show img {
  transform: scale(1);
}

#close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  user-select: none;
}

