/* ----- RESET ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ----- GLOBAL ----- */
body {
    font-family: Arial, sans-serif;
    background: #f4f6f9;
    color: #333;
    padding-bottom: 40px;
}

h1, h2, h3 {
    margin-bottom: 15px;
    color: #1a3d7c;
}

a {
    color: #1a3d7c;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ----- NAVBAR ----- */
.navbar {
    background: #1a3d7c;
    padding: 12px 20px;
    margin-bottom: 25px;
}

.navbar a {
    color: white;
    margin-right: 20px;
    font-weight: bold;
}

.navbar a:hover {
    text-decoration: underline;
}

/* ----- CONTAINER ----- */
.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

/* ----- TABLE ----- */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.table th {
    background: #1a3d7c;
    color: white;
    padding: 10px;
    text-align: left;
}

.table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.table tr:hover {
    background: #f0f4ff;
}

/* ----- BUTTONS ----- */
.btn {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    margin-right: 5px;
}

.btn-primary {
    background: #1a3d7c;
    color: white;
}

.btn-primary:hover {
    background: #16346a;
}

.btn-success {
    background: #2e8b57;
    color: white;
}

.btn-success:hover {
    background: #256f46;
}

.btn-danger {
    background: #b22222;
    color: white;
}

.btn-danger:hover {
    background: #8b1a1a;
}

/* ----- CARD ----- */
.card {
    background: white;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* ----- BADGES ----- */
.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: white;
}

.badge-green {
    background: #2e8b57;
}

.badge-red {
    background: #b22222;
}

/* ----- FORMS ----- */
form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

form input, form select {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border-radius: 4px;
    border: 1px solid #ccc;
}
/* ----- GRID MENU ----- */
.grid-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.menu-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform .15s, box-shadow .15s;
    display: block;
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.menu-icon {
    margin-bottom: 10px;
}

.menu-title {
    font-size: 18px;
    font-weight: bold;
    color: #1a3d7c;
    margin-bottom: 5px;
}

.menu-desc {
    font-size: 14px;
    color: #555;
}
.alert-error {
    background: #ffdddd;
    border-left: 6px solid #d00;
    padding: 12px;
    margin-bottom: 15px;
    font-weight: bold;
    color: #900;
}
.alert-success {
    background: #ddffdd;
    border-left: 6px solid #090;
    padding: 12px;
    margin-bottom: 15px;
    font-weight: bold;
    color: #060;
}
.flatpickr-small {
    width: 130px;
}
.date-wrapper {
    position: relative;
    display: inline-block;
}

.date-wrapper input {
    padding-right: 30px; /* espace pour l’icône */
    width: 100px; /* tu peux ajuster */
}

.calendar-icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    opacity: 0.7;
}

.calendar-icon:hover {
    opacity: 1;
}
.seances-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.seance-card {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.seance-header {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: #2c3e50;
}

.seance-info {
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.seance-info strong {
    color: #34495e;
}

.seance-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 12px;
    border-radius: 6px;
    text-align: center;
    flex: 1;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn.disabled {
    opacity: 0.6;
    pointer-events: none;
}
.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 6px;
    color: white;
}

.badge-restant {
    background-color: #28a745; /* vert */
}

.badge-critique {
    background-color: #ffc107; /* jaune */
    color: #000;
}
.badge-complet {
    background-color: #dc3545;
    color: white;
    padding: 6px 10px;
    font-size: 0.85rem;
    font-weight: bold;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.badge-complet::before {
    content: "⛔";
    font-size: 1rem;
}

/* ============================
   RESPONSIVE POUR /user
   ============================ */
@media (max-width: 600px) {

    /* Navbar verticale */
    .navbar {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }

    .navbar a {
        margin: 6px 0;
        font-size: 16px;
    }

    /* Conteneur plus confortable */
    .container {
        width: 95%;
        padding: 0 5px;
    }

    /* Cartes plus compactes */
    .card {
        padding: 15px;
        margin-bottom: 20px;
    }

    /* Boutons plein largeur */
    .btn {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
        font-size: 16px;
        padding: 10px;
    }

    /* Tableaux scrollables */
    .table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* Titres plus lisibles */
    h1, h2, h3 {
        font-size: 20px;
    }
    form select {
        width: 100%;
        padding: 10px;
        font-size: 16px;
    }

}