/* --- Base & Fond général --- */
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #0d0d0d, #1e1e1e);
    color: #ffffff;
    font-family: Arial, sans-serif;
}

/* --- Liens & Navigation --- */
a {
    color: #FF8C00;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    color: #FFD700;
    text-decoration: underline;
}

/* --- En-tête --- */
header {
    background-color: #000;
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.4);
}

header h1 {
    color: #FFD700;
    margin: 0 0 0.5rem 0;
}

nav a {
    margin: 0 1rem;
}

/* --- Contenu principal --- */
main {
    padding: 2rem;
    max-width: 1100px;
    margin: auto;
}

/* --- Tableaux --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    background-color: #1a1a1a;
    border: 1px solid #444;
    box-shadow: 0 0 8px #000;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #333;
}

th {
    background-color: #2a2a2a;
    color: #FFD700;
    font-weight: bold;
}

td {
    color: #ffffff;
}

/* --- Formulaires --- */
form {
    margin: 2rem 0;
}

input, select, button {
    padding: 0.5rem;
    border: none;
    border-radius: 5px;
    margin-right: 1rem;
}

input[type="text"], input[type="month"], select {
    width: 300px;
    background-color: #2c2c2c;
    color: #fff;
}

button {
    background-color: #FF8C00;
    color: black;
    font-weight: bold;
    cursor: pointer;
}

button:hover {
    background-color: #e07b00;
}

form.form-inline select {
    margin-right: 10px;

/* --- Dashboard Cards --- */
.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.card {
    background-color: #1e1e1e;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.5);
    color: #FFD700;
    text-align: center;
}

.card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.card p {
    font-size: 2rem;
    color: #ffffff;
}

/* --- Chart.js Container --- */
.chart-container {
    background-color: #1e1e1e;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 0 10px #FF8C00;
    margin-top: 3rem;
}

.chart-title {
    text-align: center;
    color: #FFD700;
    margin-bottom: 1rem;
}

.filter-buttons {
    text-align: center;
    margin-bottom: 1rem;
}

.filter-buttons a {
    margin: 0 10px;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    background-color: #FF8C00;
    color: #1e1e1e;
    font-weight: bold;
}

.filter-buttons a.active {
    background-color: #FFD700;
    color: #000;
}

/* --- Filtres texte --- */
input[type="text"]#filtre-eleves,
input[type="text"]#filtre-classes,
input[type="text"]#filtre-presences,
input[type="text"]#filtre-cotisations {
    margin-bottom: 1rem;
    display: block;
}

/* --- Élève Card (optionnel) --- */
.eleve-card {
    background-color: #1e1e1e;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 0 10px #FF8C00;
    margin-bottom: 1rem;
}

.eleve-card h3 {
    color: #FFD700;
}

.eleve-card p {
    color: #ffffff;
}

/* --- Classe Container (optionnel) --- */
.classe-container {
    background-color: #1e1e1e;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 0 10px #FF8C00;
    margin-bottom: 2rem;
}

.classe-container h3 {
    color: #FFD700;
}

.classe-container ul {
    list-style: none;
    padding: 0;
}

.classe-container li {
    display: flex;
    justify-content: space-between;
    color: #ffffff;
    padding: 0.4rem 0;
}

/* --- Boutons spéciaux --- */
.btn-delete {
    background-color: #FF8C00;
    color: black;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
}

.btn-delete:hover {
    background-color: #e07b00;
}
.paye {
    background-color: #228B22; /* vert foncé */
    color: white;
    text-align: center;
    font-weight: bold;
}
.non-paye {
    background-color: #B22222; /* rouge foncé */
    color: white;
    text-align: center;
    font-weight: bold;
}
.success {
    color: #28a745;
    font-weight: bold;
    margin-bottom: 10px;
}
.dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: #1c1c1c;
  border: 1px solid #444;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(255,140,0,0.2);
  color: #fff;
  text-align: center;
}

.card h2 {
  margin-bottom: 0.5rem;
  color: #ffa500;
}

.card p {
  margin: 0.5rem 0 1.5rem;
  color: #ccc;
}

.card .btn {
  background: #ffa500;
  color: #000;
  padding: 0.5rem 1rem;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
}

.card .btn:hover {
  background: #ff7f00;
}

/* -------- Responsive mobile -------- */
@media screen and (max-width: 768px) {
    body {
        padding: 10px;
        font-size: 16px;
    }

    header h1 {
        font-size: 20px;
    }

    nav {
        flex-direction: column;
        gap: 8px;
    }

    table {
        width: 100%;
        border-collapse: collapse;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    table th, table td {
        padding: 8px;
        font-size: 14px;
    }

    .card {
        padding: 10px;
        margin: 10px 0;
    }

    .btn-mail, .btn-delete {
        font-size: 14px;
        padding: 5px 10px;
    }

    img {
        max-width: 100%;
        height: auto;
    }
}

