/* Styles pour la page équipe */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 20px;
  margin: 40px auto;
  max-width: 1200px;
  margin-left: 320px; /* Ajouté pour laisser de l'espace à gauche */
  margin-right: 320px; /* Ajouté pour laisser de l'espace à droite */
}

/* Styles améliorés pour les cartes */
.team-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

/* Styles améliorés pour les avatars */
.team-avatar {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Styles améliorés pour les informations */
.team-info {
  padding: 15px;
  text-align: center;
}
.team-name {
  font-size: 1.2em;
  font-weight: bold;
  color: #333;
}
.team-role {
  font-size: 1em;
  color: #777;
}

/* Styles pour le header de recherche */
.search-header {
  background-color: #003366;
  padding: 20px;
  text-align: center;
}
.search-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.search-input {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  width: 300px;
}
.search-btn {
  background-color: #0066cc;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
}
.search-btn:hover {
  background-color: #005bb5;
}

/* Styles pour le footer */
.footer {
  background-color: #f9f9f9;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #ddd;
}
.footer-select {
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
}
.footer-page-btn {
  background-color: #0066cc;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  margin: 0 4px;
}
.footer-page-btn.active {
  background-color: #005bb5;
}
.footer-page-btn:hover {
  background-color: #005bb5;
}

/* Styles pour la section des détails */
.details-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 350px;
  height: 100%;
  background: linear-gradient(135deg, #f9f9f9, #e0e0e0);
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  overflow-y: auto;
  display: none;
  transition: transform 0.3s ease-in-out;
}
.details-panel.show {
  transform: translateX(0);
}
.details-panel .close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  position: absolute;
  top: 10px;
  left: 10px;
  color: #333;
}
.details-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin-bottom: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.details-content h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #004080;
}
.details-content p {
  margin: 5px 0;
  color: #333;
  font-size: 1rem;
}
.details-content .social-media a {
  margin-right: 10px;
  text-decoration: none;
  color: #0066cc;
  font-size: 1.2rem;
}
.details-content .social-media a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
  .search-header {
    padding: 10px;
  }
  .search-input {
    width: 100%;
  }
  .footer {
    flex-direction: column;
    text-align: center;
  }
  .footer-pagination {
    margin-top: 10px;
  }
}
