main{
    width: 100% !important;
    max-width: 100% !important;
}

.container-athle {
    display: grid;
    /* La ligne magique : crée autant de colonnes que possible avec un minimum de 150px de large */
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); 
    gap: 1.5rem;
    padding: 20px;

    width: 90%;       /* On utilise un peu plus de largeur d'écran (90% au lieu de 70%) */
    max-width: 1000px; /* On réduit un peu la largeur max pour un meilleur rendu visuel */
    margin: 0 auto;    /* centre la grille horizontalement */
    justify-content: center; /* Centre les éléments s'il reste de la place à la fin */
}

.section-content {
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    text-align: left;
    width: 100%;
    padding: 20px;
}

.course-card {
    border-radius: 10px;
    width:100%;
}

/* Carte */
.liste-athle {
    position: relative;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    background-size: cover;
    background-position: center;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}


/* Overlay sombre */
.liste-athle::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.75),
        rgba(0,0,0,0.2),
        rgba(0,0,0,0)
    );
}

/* Texte */
.liste-athle span {
    position: relative;
    color: white;
    font-size: 1.4rem;
    font-weight: bold;
    padding: 15px;
    z-index: 2;
}

/* Effet hover */
.liste-athle:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.cat-bandeau{


color:white;
font-size: 1rem;
margin-bottom: 5px;
font-weight:600;
padding:15px 20px;
margin-top:10px;
border-radius:8px;

}

.cat-f {
    background-color: #D982A6; 
}

.cat-h {
    background-color: orange;
    }

.cat-m {
    background-color: #888888;  
}

.table-course {
    font-size: 0.9rem;
    border-collapse: collapse;
    width: 100%;
}

.table-course th{

background:#f3f3f3;
text-align:left;
padding:10px;

}

.table-course td{

padding:10px;
border-bottom:1px solid #ddd;

}

.table-course tr:hover{

background:#f8f8f8;

}

/* Conteneur des boutons */
#filters {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-bottom: 20px;
}

/* Style de base des boutons */
#filters button {
padding: 10px 18px;
border: none;
border-radius: 999px; /* effet pill */
background: linear-gradient(135deg, #4facfe, #00f2fe);
color: white;
font-weight: 500;
font-size: 14px;
cursor: pointer;
transition: all 0.25s ease;
box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Hover */
#filters button:hover {
transform: translateY(-2px);
box-shadow: 0 6px 14px rgba(0,0,0,0.15);
filter: brightness(1.05);
}

/* Clic */
#filters button:active {
transform: translateY(0);
box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

/* Bouton actif */
#filters button.active {
background: linear-gradient(135deg, #43e97b, #38f9d7);
box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* Option : style "Tous" différent */
#filters button:first-child {
background: linear-gradient(135deg, #667eea, #764ba2);
}

.sport-content {
    display: none; /* Par défaut, toutes les sections sont cachées */
}