.bande-annonce {
    background-color: #32404E;
    color: white;
    text-align: center;
    padding: 0.7rem 1rem;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid #1B2631;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

:root {
    font-family: Inter, sans-serif;
    /* fix for Chrome */
    font-feature-settings: 'liga' 1, 'calt' 1;
    --pink: oklch(0.656 0.241 354.308)
}

@supports (font-variation-settings: normal) {
    :root {
        font-family: InterVariable, sans-serif;
    }
}

html {
    display: flex;
    justify-content: center;
    color: white;
}

body {
    padding-top: 3rem;
    background-color: #1B2631;
    width: 60rem;
    font-size: 0.8rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;

}

input {
    color: white;
    border: 0;
    border-radius: 1rem;
    display: block;
    margin-inline: auto;
    padding: 1rem;
    margin-top: 1rem;
    width: 18rem;
    background-color: #32404E;
}

input:focus {
    outline: 0.2rem solid var(--pink);
}

a {
    color: white;
    text-decoration: none;
}

th {
    /* Screen reader only */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

table {
    border: 0;
    border-spacing: 0 1rem;
    border-collapse: separate;
}

tr>*:first-child {
    border-radius: 1rem 0 0 1rem;
}

tr>*:last-child {
    border-radius: 0 1rem 1rem 0;
}

tr {
    background-color: #32404E;
    color: white;
}

td {
    padding: 1rem;
}

table,
tbody,
tr {
    width: 100%;
}

button {
    border: 0;
    color: white;
    border-radius: 0.5rem;
    padding: 0.5rem;
    font-size: 1rem;
    background-color: var(--pink);
    cursor: pointer;
}

button:hover {
    background-color: oklch(0.525 0.223 3.958);
}

footer {
    text-align: center;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* max 3 colonnes, adaptatif */
    gap: 1.5rem; /* moins d'espace pour éviter le chevauchement */
    justify-content: center;
    margin: 3rem auto;
    padding: 0 1rem;
    max-width: 1000px; /* réduit pour rester lisible à 3 colonnes */
    box-sizing: border-box;
}

.categories ul {
    list-style: none;
    padding: 1.5rem;
    background-color: #32404E;
    color: white;
    border-radius: 12px;
    width: 100%;
    font-size: 1rem;
    line-height: 1.6rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

.categories h3 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: #ff3cac;
    font-weight: bold;
}

.categories ul li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.3rem 0;
    gap: 0.5rem;
    word-break: break-word;
}

.numero {
    width: 2.4rem;
    text-align: right;
    font-weight: bold;
    color: #ff3cac;
    flex-shrink: 0;
}

.nom {
    flex: 1;
    padding-right: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.legende-horizontale {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem auto 0;
    padding: 1rem 1.5rem;
    background-color: #2c3742;
    border-radius: 12px;
    max-width: 900px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    font-size: 0.9rem;
    color: white;
}

.legende-horizontale .badge {
    font-size: 0.65rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-weight: 600;
    display: inline-block;
    white-space: nowrap;
}

.legende-label {
    margin-right: 1.2rem;
    font-size: 0.85rem;
    color: #ccc;
}


.badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.25rem 0.42rem; /* plus large pour un effet pilule */
    border-radius: 999px; /* coins ultra arrondis */
    color: white;
    background-color: gray; /* par défaut */
    white-space: nowrap;
    display: inline-block;
    margin-left: 0.5rem;
}

.badge-light {
    background-color: rgb(189, 187, 183);
}

.badge-betv {
    background-color: #1d1d1d;
}

.badge-familyfun {
    background-color: #f7ba13;
}

.badge-discovermore {
    background-color: #56da4a;
}

.badge-voosport {
    background-color: #ee6ad1;
}

.badge-voosportworld {
    background-color: #f10da5;
}

.badge-elevensport {
    background-color: #387fdb;
}

.badge-classex {
    background-color: #e92525;
}

.badge-manx {
    background-color: #25fff4;
}

.filter-option {
    cursor: pointer;
    margin-right: 10px;
}
.filter-option.active {
    font-weight: bold;
}

.categories li {
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.categories li.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}