/**
 * Styles pour l'interface d'administration et gestion des joueurs
 *
 * Auteur : ChatGPT
 * Projet : Gestion des joueurs - Real Madrid
 * Version : 1.1
 */

/* =========================== */
/* Style des cartes des joueurs */
/* =========================== */

/* Conteneur principal des cartes des joueurs */
.joueurs-grid {
  display: flex;
  flex-wrap: wrap; /* Permet aux cartes de passer à la ligne si besoin */
  gap: 20px; /* Espacement entre les cartes */
  justify-content: center;
}

/* Style des cartes de joueurs */
.joueur-card {
  margin-top: 30px;
  width: 250px;
  background: white;
  border-radius: 10px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  padding: 15px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Image des joueurs */
.joueur-img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  border-radius: 8px;
}

/* Effet zoom au survol */
.joueur-card:hover {
  transform: scale(1.05);
  box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.2);
}

/* =========================== */
/* Carrousel des catégories */
/* =========================== */

#carrousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

/* Nom de la catégorie */
#categorie {
  font-size: 1.2em;
  font-weight: bold;
}

/* Boutons de navigation */
.nav-btn {
  background: none;
  border: none;
  font-size: 2em;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.nav-btn:hover {
  transform: scale(1.2);
}

/* =========================== */
/* Style global du site */
/* =========================== */

/* Appliquer la police à tout le site */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #f8f9fa;
}

/* Titre principal */
h1 {
  font-weight: 600;
  font-size: 2.5em;
  text-align: center;
  color: #222;
}

/* Titres des cartes */
.joueur-card h3 {
  font-weight: 600;
  font-size: 1.2em;
  margin-bottom: 5px;
}

/* Texte des cartes */
.joueur-card p {
  font-size: 0.9em;
  color: #555;
}

/* Effet de lissage pour un rendu plus propre */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =========================== */
/* Styles du header (en-tête) */
/* =========================== */

/* En-tête */
header {
  width: 100%;
  padding: 15px 30px;
  background-color: white;
  display: flex;
  justify-content: center;
  border-bottom: 2px solid #ddd;
}

/* Conteneur du header */
.header-container {
  width: 90%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  font-size: 1.8em;
  font-weight: bold;
  color: #222;
  margin: 0;
}

/* Navigation */
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-links .divider {
  color: #aaa;
  font-weight: normal;
  pointer-events: none;
  user-select: none;
}

/* Liens de navigation */
.nav-links li a {
  text-decoration: none;
  color: #333;
  font-size: 1em;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #007BFF;
}

/* Style spécifique pour le logo */
.logo a {
  text-decoration: none;
  color: #222;
  font-weight: bold;
  transition: color 0.3s ease;
}

/* =========================== */
/* Styles des fenêtres modales */
/* =========================== */

/* Style de la fenêtre pop-up */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Contenu de la fenêtre modale */
.modal-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  width: 300px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  animation: fadeIn 0.3s ease-in-out;
}

/* Bouton de fermeture */
.close-btn {
  float: right;
  font-size: 1.5em;
  cursor: pointer;
}

/* Champs de formulaire */
.modal-content input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

/* Bouton d'action */
.modal-content button {
  width: 100%;
  padding: 10px;
  background: #007BFF;
  border: none;
  color: white;
  font-size: 1em;
  cursor: pointer;
  border-radius: 5px;
}

.modal-content button:hover {
  background: #0056b3;
}

/* =========================== */
/* Style du modal commentaire */
/* =========================== */

#commentModal .modal-content {
  max-width: 400px;
  width: 90%;
}

#commentModal h2 {
  font-size: 1.4em;
  margin-bottom: 15px;
  font-weight: 600;
  color: #333;
}

#commentText {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  font-size: 15px;
  font-family: 'Poppins', sans-serif;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  resize: vertical;
  transition: border-color 0.3s ease;
}

#commentText:focus {
  border-color: #007BFF;
  outline: none;
}

#commentForm button {
  margin-top: 12px;
  background: #007BFF;
  border: none;
  color: white;
  padding: 12px;
  width: 100%;
  border-radius: 8px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

#commentForm button:hover {
  background: #0056b3;
}

/* =========================== */
/* Boutons personnalisés */
/* =========================== */

#boutonCommentaire{
  background-color: #007BFF;
  color: white;
  border: none;
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 5px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

#boutonCommentaire:hover {
  background-color: #0056b3;
  transform: scale(1.03);
}

/* =========================== */
/* Animations */
/* =========================== */

/* Animation d'apparition */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
