/* GLOBAL FILTER CONTAINER */
.adclp-course-filters {
    max-width: 1200px;
    margin-bottom: 30px;
}

/* GRID */
.adclp-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

/* CARD */
.adclp-course-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    transition: all 0.25s ease;
    max-width: 360px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin: 0 auto;
}

#adclp-courses-container {
    background: #f8f8f8; /* fond léger pour toute la grille */
    padding: 20px;
    border-radius: 12px;
}

/* LINK */
.adclp-course-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* IMAGE */
.adclp-course-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

/* CONTENT */
.adclp-course-item h3 {
    font-size: 16px;
    padding: 14px 16px;
    margin: 0;
    line-height: 1.4;
}

/* HOVER */
.adclp-course-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-color: #c00;
}



/* FILTER BOX */
.adclp-filter-box {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
    background: #fafafa;
}

/* === BARRE GLOBALE QUI ENCADRE TOUS LES FILTRES === */
.adclp-filters-bar {
    background: #fff0f0; /* rouge pastel très léger */
    padding: 20px 25px;
    border-radius: 16px;
    border: 1px solid #f0d0d0; /* bordure douce */
    max-width: 1200px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    gap: 12px; /* espace entre les lignes */
}

/* === LIGNE DE FILTRE === */
.adclp-filter-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 10px;
}

/* Texte du label à gauche */
.adclp-filter-label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    min-width: 110px;
    text-transform: uppercase;
}

/* Groupe de boutons */
.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* BOUTONS déjà existants restent inchangés */

/* Responsive */
@media (max-width: 768px) {
    .adclp-filter-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .adclp-filter-label {
        min-width: auto;
        margin-bottom: 6px;
    }
}


/* BUTTON */
.adclp-filter {
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid #ccc;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* HOVER */
.adclp-filter:hover {
    border-color: #c00;
    color: #c00;
}

/* ACTIVE */
.adclp-filter.active {
    background: #c00;
    color: #fff;
    border-color: #c00;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

/* ALL BUTTON (OPTIONAL DIFFERENT STYLE) */
.adclp-filter[data-term="all"] {
    font-weight: 600;
}

/* MOBILE */
@media(max-width:768px){
    .adclp-filter {
        font-size: 13px;
        padding: 7px 12px;
    }
}

.adclp-filter-label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    min-width: 110px;
    text-transform: uppercase;
}

.adclp-course-item {
    position: relative;
    overflow: hidden;
}

.adclp-course-item {
    position: relative;
    overflow: hidden;
}

.adclp-course-item {
    position: relative;
    overflow: hidden;
}

.adclp-course-item {
    position: relative;
    overflow: hidden;
}

.adclp-course-item {
    position: relative;
    overflow: hidden;
}

/* Bandeau diagonal avec texte centré le long du diagonal */
.adclp-course-badge {
    position: absolute;
    top: 15px;          /* décalage depuis le haut */
    left: -50px;        /* ajusté pour centrer le texte sur la diagonale */
    width: 160px;       /* plus long pour que texte soit centré horizontalement */
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    transform: rotate(-45deg);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    white-space: nowrap;
    border-radius: 2px;
    padding: 0 10px;     /* petit padding horizontal */
}
.adclp-course-badge.premium {
    background: #f1c40f;
    color: #000;
}
.adclp-course-badge.free {
    background: #28a745;
    color: #fff;
}

