/* -----------------------------
   Conteneur principal
------------------------------ */
.custom-flex-shrink-0 {
    flex-shrink: 0;
}
.custom-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* -----------------------------
   Navigation en onglets (haut de page)
------------------------------ */
.custom-nav-tabs {
    margin-bottom: 20px;
    background: rgb(119, 18, 64);
    padding: 0;
    border-radius: 5px 5px 0 0;
}
.custom-nav-tabs ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}
.custom-nav-tabs ul li {
    margin: 0;
}
.custom-nav-tabs ul li a {
    display: block;
    padding: 10px 15px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-right: 1px solid rgba(255,255,255,0.2);
}
.custom-nav-tabs ul li:last-child a {
    border-right: none;
}
.custom-nav-tabs ul li a:hover,
.custom-nav-tabs ul li.active a {
    background: rgb(119, 18, 64);
}

/* -----------------------------
   Section premium
------------------------------ */
.custom-section-premium {
    margin-bottom: 40px;
}
.custom-section-premium h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #007bff;
}

/* -----------------------------
   Présentation de la page
------------------------------ */
.page-intro {
    margin-bottom: 20px;
    padding: 15px;
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 5px;
}


/* -----------------------------
   Tabs internes (jockeys/entraineurs)
------------------------------ */
.tabs {
    margin-top: 20px;
}

/* Desktop/tablette → onglets scrollables + scrollbar visible */
.tabs .tab-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #ddd;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-gutter: stable both-edges;
}

/* WebKit scrollbar */
.tabs .tab-links::-webkit-scrollbar {
    height: 8px;
}
.tabs .tab-links::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
}
.tabs .tab-links::-webkit-scrollbar-track {
    background: transparent;
}

/* Firefox scrollbar */
.tabs .tab-links {
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.2) transparent;
}

.tabs .tab-links li {
    flex: 0 0 auto;
    margin: 0;
}
.tabs .tab-links li a {
    display: block;
    padding: 10px 15px;
    background: #f9f9f9;
    color: #333;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    margin-right: 2px;
    text-decoration: none;
}
.tabs .tab-links li.active a,
.tabs .tab-links li a:hover {
    background: #fff;
    color: #007bff;
    border-bottom: 1px solid #fff;
}

/* Contenu */
.tabs .tab-content > .tab {
    display: none;
    padding: 15px;
    border: 1px solid #ddd;
    background: #fff;
}
.tabs .tab-content > .tab.active {
    display: block;
}

/* Dropdown uniquement sur mobile */
.mobile-tabs {
    display: none;
}

@media (max-width: 600px) {
    .tabs .tab-links {
        display: none;
    }
    .mobile-tabs {
        display: block;
        width: 100%;
        padding: 10px;
        margin-bottom: 16px;
        font-size: 1rem;
        border: 1px solid #ddd;
        border-radius: 4px;
    }
}


/* -----------------------------
   Table responsive + DataTables
------------------------------ */
.custom-table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 20px;
    border: 1px solid #eee;
    border-radius: 5px;
    background: #fff;
}
table.dataTable {
    border-collapse: collapse;
    width: 100%;
    min-width: 800px; /* Eviter trop de compression */
}
table.dataTable thead th {
    background: #067a93;
    color: #fff;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 10px;
    text-align: left;
}
table.dataTable tbody td {
    padding: 8px;
    vertical-align: middle;
}
table.dataTable tbody tr:nth-child(even) {
    background: #f9f9f9;
}
table.dataTable tbody tr:nth-child(odd) {
    background: #fff;
}
table.dataTable tbody td a {
    color: #007bff;
    text-decoration: none;
}

/* Colonne de gauche figée */
.sticky-col-left {
    position: sticky;
    left: 0;
    z-index: 3;
    background: #fff;
}
table.dataTable thead th.sticky-col-left {
    background: #067a93;
    z-index: 4;
}

/* -----------------------------
   Alerte
------------------------------ */
.alert {
    background: #ffe6e6;
    border: 1px solid #fbb;
    color: #c00;
    padding: 10px;
    text-align: center;
    margin: 10px 0;
}


.date-picker-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.date-picker-block label {
    font-weight: 600;
    white-space: nowrap;
}

.date-selectors {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.date-option,
.datepicker-input {
    padding: 8px 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: border-color .2s, background-color .2s;
}

.date-option:hover,
.datepicker-input:hover {
    border-color: #067a93;
}

.date-option.active {
    background-color: #067a93;
    border-color: #067a93;
    color: #fff;
}

.datepicker-input {
    min-width: 140px;
    text-align: center;
}

/* Responsive — wrap sur petits écrans */
@media (max-width: 480px) {
    .date-picker-block {
        flex-direction: column;
        align-items: flex-start;
    }
    .date-selectors {
        width: 100%;
        justify-content: space-between;
    }
}


/* NAVIGATION PREMIUM */
.premium-nav-container {
    position: relative;
    background: #7B1840;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform .3s ease;
}
.premium-nav-container.hidden {
    transform: translateY(-100%);
}
.premium-nav-toggle {
    display: none;
    width: 100%;
    padding: 12px 20px;
    background: #7B1840;
    border: none;
    color: #fff;
    font-size: 1rem;
    text-align: left;
}
.premium-nav {
    display: flex;
    justify-content: center;
}
.premium-nav__list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}
.premium-nav__item {
    margin: 0;
}
.premium-nav__item a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    font-weight: 600;
    font-size:90%;
    color: #fff;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: border-color .25s;
}
.premium-nav__item.active a,
.premium-nav__item a:hover {
    border-color: #FFD700;
}
.premium-nav__item i { font-size: 1.1rem; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .premium-nav-toggle { display: block; }
    .premium-nav { display: none; }
    .premium-nav__list {
        flex-direction: column;
        background: #7B1840;
    }
    .premium-nav__item a { padding: 12px 16px; }
}
