/* === STYLE DES FILTRES === */
.filtre-cours {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: flex-start;
}
.filtre-cours label {
    font-weight: bold;
    width: 60px;
}
.filtre-cours input[type="date"],
.filtre-cours select {
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 160px;
    box-sizing: border-box;
}
.filtre-cours button {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    min-width: 140px;
}
.filtre-cours button[type="button"] { /* Boutons de navigation de date */
    min-width: 0;
    border-radius: 4px;
}
.filtre-cours button[type="submit"] { /* Bouton Filter */
    border-radius: 4px;
}

/* === TABLEAU DESKTOP === */
table.table-cours {
    width: 100%;
    border-collapse: collapse;
}
table.table-cours th,
table.table-cours td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}
table.table-cours th {
    background-color: #262626;
}
table.table-cours td .complet {
    color: red;
    font-weight: bold;
    font-style: italic;
}

/* === FORMULAIRE DE RÉSERVATION === */
form.reservation-form {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
form.reservation-form input[type="text"] {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    flex-grow: 1;
    min-width: 150px;
    box-sizing: border-box;
}
form.reservation-form button {
    padding: 10px 20px;
    min-width: 140px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}


/* === NAVIGATION PAR DATE === */
.date-navigation {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* === VUE MOBILE : CARTES === */
@media (max-width: 600px) {
    .filtre-cours {
        flex-direction: column;
        align-items: stretch;
    }
    .filtre-cours label {
        min-width: auto;
        margin-bottom: 4px;
    }
    .filtre-cours input[type="date"],
    .filtre-cours select,
    .filtre-cours button {
        width: 100%;
        min-width: auto;
        font-size: 1.2rem;
        padding: 12px 15px;
    }
    .filtre-cours button[type="button"] {
        width: auto;
        font-size: 1.2rem;
    }
    .filtre-cours button[type="submit"] { /* Bouton Filter */
        width: auto;
        font-size: 1.2rem;
    }

    /* Formulaire responsive */
    form.reservation-form {
        flex-direction: column;
        align-items: stretch;
    }
    form.reservation-form input[type="text"],
    form.reservation-form button {
        width: 100%;
        min-width: auto;
        font-size: 1.2rem;
        padding: 12px 15px;
    }

    /* Cartes de cours */
    .cours-card {
        border: 1px solid #ddd;
        padding: 15px;
        margin-bottom: 15px;
        border-radius: 6px;
        background: #262626;
    }
    .cours-card h3 {
        margin-top: 0;
        margin-bottom: 8px;
    }
    .cours-card p {
        margin: 5px 0;
    }
    .cours-card .complet {
        color: red;
        font-weight: bold;
        font-style: italic;
    }

    /* Masquer le tableau sur mobile */
    table.table-cours {
        display: none !important;
    }
}

/* === CACHER LES CARTES SUR DESKTOP === */
@media (min-width: 601px) {
    .cours-card {
        display: none !important;
    }
}