body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #fdfdfd;
  color: #333;
}
header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
  background-color: #ffffff;
  border-bottom: 1px solid #ddd;
}
header h1 {
  margin: 0;
  font-size: 1.8em;
  font-weight: bold;
  color: #3d458f;
}

.in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #3d458f;
  color: #fff;
}
.in h1 {
  color: #fdfdfd;
  margin: 0;
  font-size: 1.5em;
}
.in a {
  color: #fdfdfd;
  text-decoration: none;
}

main {
  padding: 30px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  
}

/*
* Pages d'identification
*/
.auth-container {
  max-width: 400px;
  width: 100%;
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}
.auth-container h2 {
  margin-bottom: 20px;
  font-size: 1.5em;
  color: #3d458f;
}
.auth-container form input, .auth-container form select {
  color: #333;
  width: 95%;
  padding: 10px;
  margin-bottom: 15px;
  margin-right: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1em;
}
.auth-container form button {
  width: 100%;
  padding: 10px;
  border: none;
  background-color: #3d458f;
  color: #fff;
  font-size: 1em;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.auth-container form button:hover {
  background-color: #3d458f;
}
.auth-container p {
  margin-top: 15px;
}
.auth-container a {
  color: #3d458f;
  text-decoration: none;
}
.auth-container a:hover {
  text-decoration: underline;
}

/*
* Landing page 1
*/
.welcome {
  text-align: center;
  margin: 30px 0;
}
.welcome h2 {
  margin: 0 0 10px;
  font-size: 2em;
  color: #3d458f;
}
.welcome p {
  font-size: 1.2em;
  color: #666;
}
.empty-state {
  text-align: center;
  padding: 50px 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 0 auto;
}
.empty-state p {
  margin-bottom: 20px;
  font-size: 1.1em;
}
.empty-state button {
  background-color: #3d458f;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 1em;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.empty-state button:hover {
  background-color: #3d458f;
}
#logo {
  width: 150px;
}

/*
* Landing page 2
*/
.landing-container {
  max-width: 600px;
  width: 100%;
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}
.landing-container h2 {
  margin-bottom: 20px;
  font-size: 1.5em;
  color: #3d458f;
}

.progression {
  text-align: center;
  margin-bottom: 30px;
}
.progression h2 {
  font-size: 1.8em;
  margin-bottom: 10px;
  color: #3d458f;
}
.progression .bar {
  background-color: #e4e4e4;
  border-radius: 10px;
  height: 20px;
  width: 80%;
  margin: 0 auto;
  overflow: hidden;
}
.progression .bar span {
  display: block;
  height: 100%;
  background-color: #f6a239;
  width: 50%; /* Exemple de progression */
}
.recent-activities, .stats {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}
.recent-activities h3, .stats h3 {
  margin-top: 0;
  color: #3e8ec7;
}
.activities-list {
  list-style: none;
  padding: 0;
}
.activities-list li {
  padding: 10px;
  border-bottom: 1px solid #eee;
}
.activities-list li:last-child {
  border-bottom: none;
}
.activities-list .score {
  float: right;
  color: #f6a239;
  font-weight: bold;
}
.objectives {
  text-align: center;
  margin-top: 30px;
}
.objectives p {
  font-size: 1.1em;
}
.objectives button {
  background-color: #8f51a2;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.objectives button:hover {
  background-color: #218838;
}
.stats {
  display: flex;
  justify-content: space-around;
}
.stats div {
  text-align: center;
}
.stats h4 {
  margin: 0;
  font-size: 1.5em;
  color: #3e8ec7;
}
.stats p {
  margin: 5px 0 0;
  color: #666;
}

/*
* Match
*/
.exercise-container {
  width: 100%;
  max-width: 600px;
  height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.drop-zone {
  display: flex;
  justify-content: space-between;
  padding: 20px;
}
.drop-zone div {
  flex: 1;
  height: 150px;
  margin: 0 10px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5em;
  font-weight: bold;
  color: #fff;
  text-transform: uppercase;
}
#masculin {
  background-color: #3e8ec7;
}
#feminin {
  background-color: #8f51a2;
}
#word-card {
  position: absolute;
  bottom: 10px;
  /*top: calc(100% - 10px - 50px);*/
  left: 50%;
  transform: translateX(-50%);
  background-color: #f6a239;
  color: #333;
  font-size: 2em;
  font-weight: bold;
  padding: 20px 30px;
  border-radius: 10px;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
  text-align: center;
}
.search-bar {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
}
.search-bar input {
  padding: 8px 12px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 250px;
}
.search-bar button {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 1em;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.search-bar button:hover {
  background-color: #0056b3;
}


/*
* Admin
*/
.admin-container {
  max-width: 1000px;
  width: 100%;
  background-color: #333;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: left;
  color: #f6a239;
  /* Flex direction par défaut pour aligner les éléments verticalement */
  display: flex;
  flex-direction: column;
  gap: 20px; /* Espacement entre les sections */
  flex-wrap: nowrap; /* Par défaut, mais pour être sûr */

}

.admin-container .columns {
  display: flex; /* Met les colonnes côte à côte */
  gap: 20px; /* Espacement entre les colonnes */
}

.admin-container .columns .column {
  flex: 1; /* Colonnes de largeur égale */
  padding: 10px;
  background-color: #444; /* Optionnel */
  border-radius: 5px;
  list-style-type: disc; /* Puce ronde */
}

.admin-container .other-content {
  padding: 10px;
  background-color: #555; /* Optionnel, pour distinguer */
  border-radius: 5px;
}

.column li{
  display: flex;
  justify-content: space-between; /* Maintient l'espacement entre le mot et le bouton */
  align-items: center; /* Centre les enfants verticalement */
  position: relative;
  padding-left: 20px; /* Espace pour la puce */

  /*list-style-position: inside; /* Place la puce à l'intérieur du conteneur flex */
}

.column li::before {
  content: "•"; /* Remplace la puce par un caractère personnalisé */
  position: absolute;
  left: 0;
  color: #f44336; /* Couleur de la puce */
  font-size: 20px; /* Taille de la puce */
  line-height: 1; /* Aligne la puce avec le texte */
}

.column li:hover {
  background-color: #555; /* Couleur de fond légèrement différente */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Accentuation de l'ombre */
  transform: scale(1.02); /* Légère mise en avant */
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}


.confirmation-box {
  display: none; /* Masquée par défaut */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  border: 2px solid #444;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  z-index: 1000;
}

.confirmation-box p {
  margin-bottom: 20px;
  font-size: 16px;
  font-weight: 600;
}

.confirmation-box button {
  padding: 10px 15px;
  margin-right: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.confirmation-box #confirm-delete {
  background-color: #f44336;
  color: #fff;
}

.confirmation-box #confirm-delete:hover {
  background-color: #d32f2f;
}

.confirmation-box #cancel-delete {
  background-color: #ccc;
}

.confirmation-box #cancel-delete:hover {
  background-color: #bbb;
}




.admin-container h2 {
  margin-bottom: 20px;
  font-size: 1.5em;
  color: #f6a239;
}

.admin-container p {
  margin-top: 15px;
}
.admin-container a {
  color: #f6a239;
  text-decoration: none;
}
.admin-container a:hover {
  text-decoration: underline;
}


/* Bouton Effacer */
a.delete-btn {
  text-decoration: none;
  background-color: #f44336; /* Rouge vif */
  color: #fff;
  padding: 1px 5px;
  margin-left: 20px;
  font-size: 10px;
  font-weight: 600;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.delete-btn:hover {
  background-color: #d32f2f; /* Rouge un peu plus sombre */
  transform: scale(1.05); /* Légère mise en avant au survol */
}

.delete-btn:active {
  background-color: #b71c1c; /* Rouge encore plus sombre au clic */
  transform: scale(0.95); /* Légère réduction au clic */
}


/* Style de base pour le tableau */
table {
  border-collapse: collapse; /* Fusionne les bordures pour un style net */
  width: 100%; /* Prend toute la largeur disponible */
  margin: 20px 0; /* Marge autour du tableau */
  font-size: 18px; /* Taille de police */
  text-align: left; /* Alignement du texte */
}

/* Bordures des cellules */
th, td {
  border: 1px solid #ddd; /* Bordure grise */
  padding: 8px; /* Espace entre le contenu et les bordures */
}

/* Alternance de couleur des lignes */
tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.05); /* Légère opacité pour les lignes paires */
}

/* Style pour l'en-tête */
th {
  background-color: #f2f2f2; /* Fond gris clair */
  color: #333; /* Texte gris foncé */
  padding-top: 12px; /* Marge intérieure supplémentaire */
  padding-bottom: 12px;
}