body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #e0e0e0;
}

header {
    background-color: rgba(22, 33, 62, 0.8); /* Semi-transparent pour voir l'arrière-plan */
    color: #ffffff;
    text-align: center;
    padding: 2rem;
    border-bottom: 2px solid #0f3460;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

header p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

main {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

section {
    margin-bottom: 2rem;
    background-color: rgba(15, 52, 96, 0.9); /* Semi-transparent */
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

h2 {
    color: #e94560;
    margin-top: 0;
}

ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

button {
    background-color: #e94560;
    color: #000000cc;
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1rem;
}

button:hover {
    background-color: #ff7a7a;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: rgb(22 33 62 / 20%); /* Semi-transparent */
    color: #e8e8e8;
    border-top: 2px solid #646e7b;
}

#slideshow-races, #slideshow-classes {
    text-align: center;
    margin: 10rem 10;
    position: relative;
}

#slide-races, #slide-classes {
    max-width: 80%;
    height: auto;
    cursor: pointer;
    border-radius: 10px;
}

button#prev-races, button#next-races, button#prev-classes, button#next-classes {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #000000;
    border: none;
    padding: 3rem;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 25%;
}

button#prev-races, button#prev-classes {
    left: 10px;
}

button#next-races, button#next-classes {
    right: 10px;
}

button#prev-races:hover, button#next-races:hover, button#prev-classes:hover, button#next-classes:hover {
    background-color: rgb(164 225 140 / 44%);
}

/* Effet zoom au survol du logo */
.site-logo {
  transition: transform 0.25s ease, filter 0.25s ease;
  will-change: transform;
}

.site-logo:hover,
.site-logo:focus {
  transform: scale(1.05);
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.45));
  outline: none;
}

/* Menu centré sous le logo (horizontal) */
header {
    background-color: rgb(22 33 62 / 50%);
    color: #ffffff;
    text-align: center;
    padding: 2rem;
    border-bottom: 2px solid #0f3460;
}

#menu {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1rem auto;
  padding: 0;
  background: transparent;
  width: 100%;
}

#menu ul {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  justify-content: center;
}

#menu li { margin: 0; }

#menu a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background .15s ease, transform .12s ease;
}

#menu a:hover, #menu a:focus {
  background: rgba(233,69,96,0.2);
  transform: translateY(-2px);
  outline: none;
}

/* Responsive mobile - textes et espacements */
@media (max-width: 768px) {
  header {
    padding: 1rem;
  }

  header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
  }

  header p {
    font-size: 1rem;
    max-width: 100%;
  }

  main {
    padding: 1rem;
    max-width: 100%;
  }

  section {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  #menu ul {
    gap: 1rem;
    flex-direction: column;
  }

  #menu a {
    font-size: 1rem;
    padding: 0.4rem 0.8rem;
  }

  /* Images responsives */
  img {
    max-width: 100%;
    height: auto;
  }

  /* Boutons plus gros au toucher */
  button {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    min-height: 44px;
  }

  /* Diaporama adapté mobile */
  #slide-races, #slide-classes {
    max-width: 90%;
  }

  button#prev-races, button#next-races, 
  button#prev-classes, button#next-classes {
    padding: 0.75rem;
    font-size: 1.5rem;
  }
}

/* Ultra petit écrans (< 480px) */
@media (max-width: 480px) {
  header h1 {
    font-size: 1.4rem;
  }

  header p {
    font-size: 0.95rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  ul {
    padding-left: 1rem;
  }

  li {
    margin-bottom: 0.3rem;
  }
}
