/* Reset des marges et overflow */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

/* Ajustement du canvas pour occuper tout l'écran */
canvas {
  display: block;
  filter: opacity(70%);
  z-index: 0;
  width: 100%;
  height: 100vh;
}

header {
  width: 100%;
  max-width: 1200px;
  z-index: 2;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(
    0,
    0,
    0,
    0.8
  ); /* Fond semi-transparent pour l'en-tête */
}

/* Centrage du titre */
header h1 {
  margin: 0;
  padding-bottom: 10px;
  text-align: center;
  color: #fff;
}

.navbar-nav {
  width: 100%;
  display: flex;
  justify-content: space-around;
}

.navbar-nav .nav-item .nav-link_accueil,
.navbar-nav .nav-item .nav-link_listing,
.navbar-nav .nav-item .nav-link_recherche,
.navbar-nav .nav-item .nav-link_administration {
  background-color: #392e41; /* Couleur de fond pour les liens */
  border-radius: 50px;
  padding: 8px 15px;
  color: white !important;
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.navbar-nav .nav-item .nav-link_accueil:hover,
.navbar-nav .nav-item .nav-link_listing:hover,
.navbar-nav .nav-item .nav-link_recherche:hover,
.navbar-nav .nav-item .nav-link_administration:hover {
  color: #fff !important;
  background-color: #9e829a !important; /* Couleur de survol */
}

.texte p {
  display: inline-flex;
  background-color: rgba(116, 116, 116, 0.8); /* Fond semi-transparent */
  width: 800px;
  align-items: center;
  justify-content: center; /* Centre le contenu à l'intérieur du paragraphe */
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* Ombre pour un effet de profondeur */
}

.texte {
  text-align: center;
}

.texte h1 {
  display: inline-flex;
  background-color: #747474;
  color: white;
  width: 800px;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  padding: 10px;
}

.texte p {
  display: inline-flex;
  background-color: #747474;
  color: white;
  width: 800px;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  padding: 10px;
}

/*Listing*/

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.rotating {
  animation: rotate 10s linear infinite; /* Rotation continue */
}

.container {
  display: grid;
  justify-content: center;
  background-color: #545151;
  border-radius: 20px;
  grid-template-columns: repeat(3, 1fr); /* 3 colonnes égales */
  gap: 10px; /* Espacement entre les articles */
  justify-content: center;
  padding: 10px;
}

article {
  width: 300px; /* Taille uniforme */
  display: flex;
  flex-direction: column; /* Empile l'image et le texte */
  align-items: center;
  background-color: #747474; /* Fond du bloc */
  padding: 10px;
  border-radius: 20px;
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

article:hover {
  filter: brightness(1.2); /* Légère augmentation de la luminosité */
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.25);
}

article img {
  width: 200px;
}

.image-container {
  width: 200px; /* Taille fixe pour toutes les images */
  height: 200px; /* Taille fixe pour assurer l'uniformité */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 10px;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Remplit sans déformer */
}

article p {
  color: #ffffff;
  text-align: center;
  margin: 5px 0;
  padding: 5px;
}

/*recherche*/

.recherche {
  display: flex;
  background-color: #747474;
  width: 800px;
  justify-content: center;
}

section {
  color: #ffff;
}

section h1 {
  color: #ffff;
}

section p {
  color: #ffff;
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: rgba(116, 116, 116, 0.8);
  border-radius: 8px;
  overflow: hidden;
  margin: 20px 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

tr {
  transition: background-color 0.3s ease;
}

tr:nth-child(even) {
  background-color: rgba(158, 130, 154, 0.2);
}

tr:hover {
  background-color: rgba(57, 46, 65, 0.3);
}

th {
  background-color: #392e41;
  color: white;
  padding: 12px;
  text-align: left;
  font-weight: bold;
  text-transform: uppercase;
}

td {
  padding: 10px;
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Ajustement du footer pour s'assurer qu'il reste au-dessus du fond */
footer {
  display: flex;
  justify-content: center;
  width: 1200px;
  max-width: 1200px;
  margin: 0 auto;
  color: white;
  border-radius: 20px 20px 0 0;
  text-align: center;
  padding: 10px;
  z-index: 2; /* S'assurer que le footer est au-dessus du fond */
  bottom: 0;
}

footer p {
  display: flex;
  justify-content: center;
}

/* ===== FOND AVEC PARTICULES ===== */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100vh;
  z-index: -1; /* Fond derrière tout le contenu */
  top: 0;
  left: 0;
  background: #000;
}

/* ===== MEDIA QUERIES ===== */

/* Pour les smartphones (jusqu'à 576px) */
@media (max-width: 576px) {
  header,
  footer {
    width: 100%;
    border-radius: 0;
  }

  nav ul {
    flex-direction: column; /* Empile les liens */
    gap: 10px;
    padding: 10px 0;
  }

  nav ul li a {
    width: 80%;
    text-align: center;
  }
}

/* Pour les écrans plus grands (au-delà de 576px) */
@media (max-width: 900px) {
  .container {
    grid-template-columns: 1fr; /* 1 colonne sur tablettes et mobiles */
  }
}

@media (max-width: 576px) {
  .container {
    grid-template-columns: 1fr; /* Toujours une seule colonne */
  }
}
.navbar-nav .nav-link {
  color: white !important;
  font-weight: bold;
  text-transform: uppercase;
}

.navbar-nav .nav-link:hover {
  color: #e6e6e6 !important;
}
