body {
  font-family: Arial, sans-serif;
  max-width: 700px;
  margin: 40px auto;
  text-align: center;
  padding: 0 10px;
  box-sizing: border-box;
}

header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-bottom: 30px;
  border-bottom: 2px solid #4bc0c0;
  padding-bottom: 12px;
}

#logo-container {
  max-width: 220px;      /* largeur max du logo */
  width: 40vw;           /* proportionnelle à l'écran */
  min-width: 120px;      /* ne pas descendre trop petit */
  animation: brillance 3s linear infinite;
}

#logo-container img {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes brillance {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.6);
  }
}

#titre-menu {
  text-align: center;
}

#titre-menu h1 {
  margin: 0;
  font-size: 2.2rem;
  color: #333;
  font-weight: 900;
}

nav ul#menu {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
  display: flex;
  gap: 18px;
}

nav ul#menu li a {
  text-decoration: none;
  color: #4bc0c0;
  font-weight: bold;
  font-size: 1.2rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

nav ul#menu li a:hover,
nav ul#menu li a.active {
  border-bottom: 2px solid #369a9a;
}

/* Animation fade-in progressive */
.fade-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Date + Boutons */
#date-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  gap: 10px;
  flex-wrap: wrap;
}

#date-container input[type="date"] {
  font-size: 1.2em;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  max-width: 200px;
  width: 100%;
  box-sizing: border-box;
  flex-grow: 1;
}

button {
  background-color: #4bc0c0;
  border: none;
  color: white;
  padding: 8px 18px;
  font-size: 1.1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #369a9a;
}

#variation {
  font-size: 1.3rem;
  margin-bottom: 20px;
  font-weight: bold;
}

/* Tableau transactions */
table#transactions {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
}

table#transactions th,
table#transactions td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: center;
  font-size: 1rem;
}

table#transactions th {
  background-color: #4bc0c0;
  color: white;
}

/* Pagination */
#pagination {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

#pagination button {
  padding: 6px 15px;
  font-size: 1rem;
}

#pagination button:disabled {
  background-color: #aaa;
  cursor: default;
  color: #666;
}

/* ===== AJOUT : Responsive pour mobile ===== */
@media (max-width: 600px) {
  header {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  #titre-menu {
    text-align: center;
  }

  nav ul#menu {
    flex-wrap: wrap;
    justify-content: center;
  }

  #logo-container {
    width: 50vw; /* un peu plus petit sur mobile */
    max-width: 180px;
  }
}
main {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* ratio 16:9 */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  width: 560px;
  margin-top: 20px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
