/* ======= Styles de base ======= */

body {
  font-family: Poppins, sans-serif;
  padding: 0;
  margin: 0;
  background-color: #212121;
  color: #DDDDDD;
}

/* Titres */

h1, h2 {
  position: relative;
  display: inline-block;
  color: #fff;
  margin-bottom: 25px;
}

h1::after, h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 4px;
  background-color: #0077CC;
  border-radius: 2px;
}

h3 {
  font-size: 18px;
  font-weight: 600;
  padding-left: 12px;
  border-left: 4px solid #FF00FF;
  color: #fff;
  margin-top: 20px;
  margin-bottom: 15px;
}

/* Liens */

a {
  color: #FF00FF;
  text-decoration: none;
  font-weight: bold;
}

a:hover {
  color: #0077cc;
  text-decoration: none;
}

/* ======= Formulaires ======= */

select {
  padding: 2px 8px;
  font-size: 16px;
  background-color: #111;
  color: #DDDDDD;
  border: 1px solid #DDDDDD;
  border-radius: 4px;
  appearance: none;
  cursor: pointer;
}

select:hover {
  border-color: #FF00FF;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input, textarea {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

button {
  padding: 10px;
  background-color: #0077cc;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background-color: #005fa3;
}

.success {
  color: green;
  text-align: center;
  margin-top: 20px;
}

/* ====== Tableaux de données - DataTable ====== */

table.dataTable {
  width: 100%;
}

table.dataTable th, table.dataTable td {
  text-align: center !important;
  border: 1px solid #DDDDDD;
}

table.dataTable a {
  color: #FF00FF !important;
  text-decoration: none;
  font-weight: 500;
}

table.dataTable thead th {
  border-bottom: 1px solid #DDDDDD !important;
}

table.dataTable a:hover {
  color: #0077cc !important;
  text-decoration: none;
}

.dataTables_filter {
  text-align: left !important;
  margin-bottom: 10px;
}

/* ======== Tableaux Top Hall of Fame/Shame ======== */

.top-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 1rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.top-table th, .top-table td {
  border: 1px solid #ccc;
  padding: 12px 16px;
  text-align: center;
}

.top-table th {
  color: white;
  font-weight: bold;
}

/* ==== Header / Footer ==== */

header {
  color: white;
  background-color: #0077cc;
  padding: 1rem 2rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
}

.logo img {
  height: 40px;
  margin-right: 0.5rem;
  transition: all 0.2s ease-in-out;
}

.logo img:hover {
  filter: drop-shadow(0 0 4px #ff00ff)
          drop-shadow(0 0 8px #ff00ff)
          drop-shadow(0 0 12px #ff00ff);
}

.logo-text {
  transition: all 0.2s ease-in-out;
}

.logo-text:hover {
  text-shadow:
    0 0 4px #ff00ff,
    0 0 8px #ff00ff,
    0 0 12px #ff00ff;
}


/* Navigation */

header ul,
footer ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

header a,
footer a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease-in-out;
}

header a:hover,
footer a:hover {
  color: white;
  text-shadow:
    0 0 4px #ff00ff,
    0 0 8px #ff00ff,
    0 0 12px #ff00ff;
}

/* ======== Containers ======== */

.container,
.container2,
.container3,
.container4 {
  text-align: center;
  margin: auto;
}

.container { max-width: 600px; }
.container2 { /* largeur auto */ }
.container3 { max-width: 1500px; }
.container4 { max-width: 800px; }

/* ====== Footer ====== */

.footer-bar {
  background-color: #0077cc;
  color: white;
  font-size: 14px;
  padding: 10px 0;
  margin-top: 40px;
}

.footer-container {
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 20px;
}

/* ============ Admin et Stats ============= */

.login-container {
  max-width: 400px;
  margin: 4rem auto;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  background: inherit;
}

.login-container h1,
.login-container h2 {
  text-align: center;
}

.login-container label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
}

.login-container input {
  width: 100%;
  padding: 10px;
  margin: 6px 0 10px 0;
  box-sizing: border-box;
}

.login-container button {
  width: 100%;
  padding: 10px;
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
  margin-top: 10px;
}

.login-error {
  color: red;
  text-align: center;
  margin-bottom: 1rem;
}

.msg {
  color: green;
  margin-bottom: 1rem;
}

.bar {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.actions a {
  margin-right: 10px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ====== Stats vue autres pages ====== */

.stats { max-width: 800px; margin: auto; }

.stat { margin-bottom: 15px; }

.statb { margin-bottom: 15px; }

/* ====== Glossaire ====== */

.glossaire-list {
  margin: 2rem 0;
}

.glossaire-item {
  padding: 1rem 0;
  border-bottom: 1px solid #ddd;
}

.glossaire-item strong {
  color: #0077cc;
  text-align: left;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.5rem;
  padding-left: 8px;
  border-left: 3px solid #ff00ff;
}

.glossaire-item p {
  text-align: justify;
  margin: 0;
  line-height: 1.5;
}

.message {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-top: 10px;
  margin-bottom: 15px;
  text-decoration: underline;
  text-decoration-color: #FF00FF;
  text-decoration-thickness: 2px;
}



