.horaire-container {
    font-family: 'Poppins', sans-serif;
    color: #000;
    width: 100%;
    margin: 0 auto;
}

/* .horaire-container h1 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 30px;
    letter-spacing: -1px;
} */

.table-wrapper {
    overflow-x: auto;
}

.horaire-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    border: none !important
}

.horaire-table th {
    background-color: #000;
    color: #fff;
    padding: 15px 5px;
    font-size: 16px;
    font-weight: 700;
    border: 1px solid #00000000;
    text-align: center;
}



.horaire-table td {
    border: 1px solid #d1d1d1;
    padding: 20px 10px;
    text-align: center;
    font-size: 15px;
    line-height: 1.5;
}

.horaire-date {
    display: block;
    margin-bottom: 4px;
}

/* Coins arrondis */
.horaire-table thead tr th:first-child {
    border-radius: 12px 0 0 0;
}

.horaire-table thead tr th:last-child {
    border-radius: 0 12px 0 0;
}

.horaire-table tbody tr:last-child td:last-child {
    border-radius: 0 0 12px 0;
}

/* Coin inférieur gauche arrondi */
.horaire-table tbody tr:last-child td:first-child {
    border-radius: 0 0 0 12px;
}

.time-bold {
    font-weight: 700;
}

.ferme {
    color: #d32f2f;
    font-weight: 900;
    font-size: 14px;
    vertical-align: middle;
}

/* Variante mobile : jours à gauche */
.horaire-table-mobile {
    display: none;
}

.horaire-day-label {
    background-color: #000;
    color: #fff;
    font-weight: 700;
    text-align: left;
    padding-left: 12px;
    white-space: nowrap;
}

.horaire-day-header {
    background-color: transparent;
    border: none;
}

@media (max-width: 768px) {
    .horaire-table-desktop {
        display: none;
    }

    .horaire-table-mobile {
        display: table;
        width: 100%;
        table-layout: fixed;
        border-collapse: separate;
        border-spacing: 0;
        font-size: 13px; /* base text size for mobile cells */
        border-radius: 12px;
        overflow: hidden;
    }

   

    
    .horaire-table-mobile td {
        padding: 10px 6px;
        text-align: center;
        border: 1px solid #d1d1d1;
    }

    .horaire-table-mobile tr:first-child th.horaire-day-label {
        border-top-left-radius: 12px;
    }

    .horaire-table-mobile tr:first-child td:last-child {
        border-top-right-radius: 12px;
    }

    .horaire-table-mobile tr:last-child th.horaire-day-label {
        border-bottom-left-radius: 12px;
    }

    .horaire-table-mobile tr:last-child td:last-child {
        border-bottom-right-radius: 12px;
    }

    .horaire-date {
        margin-bottom: 2px;
        font-size: 12px;
    }

    .time-bold {
        font-size: 13px;
    }

    /* Only the weekday names (left column) are smaller on mobile */
    .horaire-day-label, .ferme {
        font-size: 12px !important;
    }
}
