* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}

body {
  position: relative;
  background: rgb(0, 0, 0);
  overflow-x: hidden;
  z-index: 0;
}

footer {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  font-size: 16px;
  width: 100%;
  position: relative;
}

footer p {
  margin: 5px 0;
}

footer nav ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
}

footer nav ul li {
  display: inline;
  margin: 0 10px;
}

footer nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease-in-out;
}

footer nav ul li a:hover {
  color: #ffcc00;
}

.text-box {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 20px;
  border-radius: 10px;
  max-width: 80%;
  margin: 20px auto;
  text-align: center;
}

.page-title {
  font-size: 3rem;
  color: white;
  text-align: center;
  margin-bottom: 20px;
}

.background-slider {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.background-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: blur(6px) brightness(0.5);
  opacity: 0;
  animation: slideBackground 32s infinite;
}

@keyframes slideBackground {
  0% { opacity: 0; }
  10% { opacity: 1; }
  40% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 0; }
}


main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

header {
  background: rgba(0, 0, 0, 0.9); /* Fond noir avec un peu de transparence */
  color: white;
  padding: 15px 0;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
}

table {
  width: 90%;
  margin: 20px auto;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  overflow: hidden;
}

/* En-tête du tableau */
thead {
  background: #333;
  color: #fff;
  font-weight: bold;
}

/* Lignes du tableau */
th, td {
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

/* Lignes impaires pour un effet zébré */
tbody tr:nth-child(odd) {
  background: #f2f2f2;
}

/* Effet au survol */
tbody tr:hover {
  background: #ddd;
  transition: 0.3s;
}

/* --- RESPONSIVE --- */
@media screen and (max-width: 768px) {
  table {
      font-size: 14px;
  }

  th, td {
      padding: 8px;
  }
}

/* --- STYLE DATATABLES --- */
.dataTables_wrapper {
  padding: 10px;
}

.dataTables_filter input {
  border: 2px solid #333;
  padding: 5px;
  border-radius: 4px;
}

.dataTables_length select {
  border: 2px solid #333;
  padding: 5px;
  border-radius: 4px;
}

.dataTables_paginate {
  margin-top: 10px;
}

/* Barre de navigation */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Logo */
.logo a {
  font-size: 22px;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  color: white;
  transition: color 0.3s;
}

.logo a:hover {
  color: #ffcc00;
}

/* Menu */
.menu {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
}

/* Liens du menu */
.menu li {
  display: inline;
}

.menu a {
  text-decoration: none;
  color: white;
  font-size: 16px;
  font-weight: bold;
  transition: color 0.3s, transform 0.3s;
}

.menu a:hover {
  color: #ffcc00;
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
      flex-direction: column;
      text-align: center;
  }
  
  .menu {
      flex-direction: column;
      gap: 10px;
      margin-top: 10px;
  }
}

.hero {
  background: url('hero-race-car.jpg') no-repeat center center/cover;
  color: white;
  text-align: center;
  padding: 5rem 2rem;
}

.hero-text {
  max-width: 600px;
  margin: 0 auto;
}

.content-section {
  display: flex;
  gap: 2rem;
  padding: 2rem;
}

.stats-section {
  background-color: white;
  padding: 2rem;
  text-align: center;
}

.stats-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.stat-card {
  background-color: #eee;
  padding: 1rem;
  border-radius: 8px;
}

.gallery-section {
  background-color: #fff;
  padding: 2rem;
  text-align: center;
}

.gallery-title {
  font-size: 3rem;
  color: white;
  text-align: center;
  margin-bottom: 20px;
}

.upload-form {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0px 4px 10px rgba(255, 0, 0, 0.5);
}

.upload-form label,
.upload-form input {
  font-size: 1.2rem;
}

.upload-button {
  background: #ff0000;
  color: white;
  padding: 10px 15px;
  border: none;
  cursor: pointer;
}

.upload-button:hover {
  background: #cc0000;
  transform: scale(1.1);
}

.gallery-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.gallery-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.gallery-item {
  background: #222;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(255, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
  transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.2);
  filter: brightness(1.5);
}

.gallery-item:hover {
  transform: scale(1.1);
  box-shadow: 0px 6px 15px rgba(255, 0, 0, 0.7);
}

.gallery-container img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.gallery-container img:hover {
  transform: scale(1.2);
  filter: brightness(1.2);
}

.error-message {
  color: #ff4444;
  text-align: center;
}

.success-message {
  color: #44ff44;
  text-align: center;
}

/* PARTENAIRES PAGE STYLES */
.partenaires-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.partenaires-page h1 {
  text-align: center;
  color: #dddddd;
  margin-bottom: 2rem;
  font-size: 2.5rem;
}

.partenaires-page h2 {
  color: #e70505;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.8rem;
  border-bottom: 2px solid #e70505;
  padding-bottom: 0.5rem;
}

.groupe-presentation {
  background-color: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.membres-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 2rem;
}

.membre {
  width: calc(33.333% - 2rem);
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.membre:hover {
  transform: translateY(-5px);
}

.membre img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.membre-info {
  padding: 1rem;
  text-align: center;
}

.membre h3 {
  margin-bottom: 1rem;
  color: #333;
}

.documents-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-primary {
  color: #fff;
  background-color: #e70505;
}

.btn-secondary {
  color: #e70505;
  background-color: #fff;
  border: 2px solid #e70505;
}

.btn-primary:hover, .btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  background-color: #770202;
}

.btn-secondary:hover {
  color: #fff;
  background-color: #e70505;
}
