:root {
  --primary: #e63946;
  --secondary: #f77f00;
  --dark: #1a1a1a;
  --light: #f5f5f5;
  --brown-hover: #8B4513;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Poppins', sans-serif;
  background-color: var(--dark);
  color: white;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  z-index: 0;
}

/* Image de fond floue */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('images/futsal-terrain.jpg') center center/cover no-repeat;
  filter: blur(8px) brightness(0.6);
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
  z-index: -1;
}

/* Header */
header {
  background-color: var(--dark);
  color: var(--secondary);
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  position: relative;
  z-index: 1;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.logo {
  height: 50px;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.logo:hover {
  transform: scale(1.1);
}

header h1 {
  margin: 0;
  font-size: 28px;
}

nav {
  margin-top: 15px;
  text-align: center;
}
nav a {
  color: var(--light);
  text-decoration: none;
  margin: 0 15px;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 20px;
  transition: background-color 0.3s, transform 0.2s;
  display: inline-block;
}
nav a:hover,
nav a.active {
  background-color: var(--secondary);
  color: black;
  transform: translateY(-2px);
}

/* Main */
main {
  flex: 1;
  padding: 40px 20px;
  max-width: 1000px;
  margin: auto;
  position: relative;
  z-index: 1;
  width: 100%;
  box-sizing: border-box;
}

/* Titres */
h2 {
  color: white;
  text-align: center;
  font-size: 32px;
  margin-bottom: 20px;
}

/* Textes */
section p, ul {
  color: #e0e0e0;
  font-size: 16px;
  text-align: center;
  margin-bottom: 20px;
}

/* Détails */
.details {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  font-size: 16px;
  color: #ccc;
}
.details li {
  margin: 8px 0;
}

/* Boutons */
.btn-group {
  margin-top: 30px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn {
  background-color: var(--secondary);
  color: #000;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s, transform 0.2s;
  min-width: 120px;
  text-align: center;
  box-sizing: border-box;
}
.btn:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-3px);
}

/* Iframe */
.iframe-wrapper iframe {
  width: 100%;
  height: 600px;
  border: none;
  margin-top: 20px;
  border-radius: 10px;
}

/* Slogan */
.slogan {
  font-style: italic;
  font-size: 18px;
  color: #fff;
  text-align: center;
  margin-top: 40px;
}

/* Footer toujours en bas */
footer {
  text-align: center;
  padding: 20px;
  background-color: #111;
  color: #999;
  font-size: 14px;
  position: relative;
  bottom: 0;
  width: 100%;
  z-index: 1;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

/* Zoom sur .card ou .bloc uniquement */
.card, .bloc, .btn, .accordion {
  transition: transform 0.3s ease;
}
.card:hover, .bloc:hover, .btn:hover, .accordion:hover {
  transform: scale(1.03);
}

/* Accordéon */
.accordion {
  background-color: var(--secondary);
  color: black;
  cursor: pointer;
  padding: 15px 20px;
  width: 100%;
  text-align: left;
  font-size: 18px;
  font-weight: 600;
  border: none;
  outline: none;
  border-radius: 10px;
  margin-bottom: 10px;
  user-select: none;
}
.accordion:hover {
  background-color: var(--brown-hover);
  color: white;
}
.panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  background-color: #2b2b2b;
  border-radius: 0 0 10px 10px;
  margin-bottom: 20px;
  padding: 0 20px;
}
.panel.open {
  padding: 15px 20px;
  max-height: 500px;
}
.panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.panel li {
  padding: 8px 0;
  border-bottom: 1px solid #444;
  color: #ddd;
}

/* Compte à rebours */
#countdown {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin: 30px 0;
  color: var(--secondary);
  text-shadow: 0 0 5px rgba(247, 127, 0, 0.7);
}

/* Responsive */
@media (max-width: 768px) {
  nav a {
    display: inline-block;
    margin: 10px 5px;
  }

  .iframe-wrapper iframe {
    height: 700px;
    width: 100%;
    max-width: 100%;
  }

  .header-container {
    flex-direction: column;
  }

  .logo {
    height: 40px;
  }
}
.gallery {
  display: flex;
  flex-wrap: wrap; /* Permet aux images de se répartir sur plusieurs lignes si nécessaire */
  justify-content: center; /* Centre les images horizontalement */
  align-items: center; /* Centre les images verticalement */
  gap: 10px; /* Espace entre les images */
}

.gallery img {
  width: 100%; /* Permet aux images de s'adapter à la largeur de leur conteneur */
  height: auto; /* Maintient les proportions de l'image */
  max-width: 400px; /* Limite la taille maximale des images */
  object-fit: cover; /* Recadre les images si nécessaire sans déformation */
  border-radius: 5px; /* Coins arrondis */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Ombre légère */
  transition: transform 0.5s ease; /* Transition pour l'effet de zoom */
  display: inline-block; /* Permet de mieux gérer l'alignement */
}

.gallery img:hover {
  transform: scale(1.05); /* Effet de zoom au survol */
}

.btn-gallery {
  display: inline-block;
  background-color: #f77f00; /* Couleur  */
  color: white;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-gallery:hover {
  background-color: #8B4513; /* Couleur plus foncée au survol */
}
