@import url('https://fonts.googleapis.com/css2?family=Niconne&display=swap');

/* Reset utile pour éviter les débordements et avoir des tailles propres */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Corps de la page */
body {
  margin: 0;
  padding: 0;
  font-family: 'Niconne', cursive;
  background-color: #000; /* couleur de secours si l'image ne charge pas */
  color: #00ffff;

  background-image: url('images/fond.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Empêcher le scroll horizontal sur tout le site */
html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;   /* << important pour ton problème de scroll horizontal */
}

/* Main prend toute la hauteur dispo */
main {
  flex: 1;
}

/* --- Header --- */
.header-container {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 40px;
  padding: 20px 450px;
  flex-wrap: wrap;
}

.logo-img {
  height: 160px;
  width: auto;
}

.header-center {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo {
  font-size: 2.3em;
  font-weight: 400;
  margin: 0 0 30px 0;
  color: #fff;
  font-family: 'Niconne', cursive;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

.header-nav .nav-links {
  display: flex;
  gap: 60px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.header-nav .nav-links a {
  text-decoration: none;
  color: #00ffff;
  font-size: 1.6em;
  transition: color 0.3s;
  font-family: 'Niconne', cursive;
}

.header-nav .nav-links a:hover {
  color: #430257;
}

.nav-links a.active {
  color: rgb(211, 6, 247);
}

/* Bouton */
.btn {
  background-color: #00ffff;
  color: rgb(211, 6, 247);
  font-weight: bold;
  border: none;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
  margin-left: auto;
  margin-top: 5px;
  white-space: nowrap;
  width: 130px;
  text-align: center;
  display: inline-block;
}

.btn:hover {
  background-color: #00cccc;
}

/* Image agenda */
.agenda-image {
  flex: 1 1 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  margin: 20px auto;
}

.agenda-image img {
  max-width: 90%;
  max-height: 500px;
  object-fit: contain;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  border: 2px solid #00ffff;
}

/* Footer */
footer {
  background-color: transparent;
  color: white;
  padding: 30px 40px;
  font-family: 'Niconne', cursive;
  position: relative;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  text-align: center;
  flex-wrap: wrap;
}

.footer-container p {
  margin: 0 auto;
  font-size: 1.2rem;
  text-align: center;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

.footer-media {
  position: absolute;
  right: 40px;
  display: flex;
  gap: 20px;
}

.footer-media a {
  color: white;
  font-size: 2rem;
  transition: color 0.3s ease;
}

.footer-media a:hover {
  color: white;
}

/* === Accessibilité : amélioration de la lisibilité === */
body, h1, h2, h3, h4, h5, h6, p, a, li, span {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

strong, .logo, .about-text, .footer-container p {
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .header-container {
    padding: 20px 40px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .header-center {
    align-items: center;
  }

  .header-nav .nav-links {
    justify-content: center;
    flex-direction: row;
    gap: 20px;
  }

  .agenda-image {
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 10px;
  }

  .logo {
    font-size: 36px;
    text-align: center;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .about-container {
    flex-direction: column;
  }

  .about-image img {
    width: 250px;
    height: 250px;
  }

  .about-text, .about-bottom-text {
    font-size: 1.1rem;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .footer-media {
    position: static;
    justify-content: center;
    margin-top: 10px;
  }

  .agenda-image img {
    max-height: 300px;
  }

  .btn {
    width: 100%;
    max-width: 200px;
    margin: 10px auto;
  }
}
