.cpp-articles-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
}

.cpp-article-item {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 8px;
    background: #fafafa;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.cpp-thumb {
    width: 100%;
    max-width: 350px; /* Vous pouvez ajuster cette valeur */
    aspect-ratio: 4 / 3; /* Ou 1 / 1 pour carré, ou 16 / 9 pour large */
    overflow: hidden;
    border-radius: 5px !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cpp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    border-radius: 5px !important;
    display: block;
}


.cpp-content {
    flex: 1;
}

.cpp-title {
    margin: 0 0 10px;
    font-size: 20px;
    margin-top: 20px;
}

.cpp-title a {
    color: #333;
    text-decoration: none !important;
}

.cpp-title a:hover {
    color: #0073aa;
}

.cpp-excerpt {
    color: #555;
    font-size: 15px;
}

/*FILTRE*/

.cpp-meta {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.cpp-meta-item {
    display: flex;
    align-items: center;
}

.cpp-meta-label {
    font-weight: bold;
    margin-right: 5px;
}

.cpp-meta-value {
    color: #555;
}

/*FILTRE RECHERCHE*/

/* Filtres */
.cpp-filter-group input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 5px;
}

.cpp-filters {
    background: #f5f5f5;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 5px;
}

.cpp-filter-group {
    margin-bottom: 15px;
}

.cpp-filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.cpp-filter-group select,
.cpp-filter-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.cpp-price-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cpp-price-range input {
    flex: 1;
}

.cpp-price-range span {
    color: #666;
}

/* BOUTON FILTRER */
.cpp-filter-button,
.cpp-reset-button {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.cpp-filter-button {
    background-color: #0073aa;
    color: white;
    margin-right: 10px;
}

.cpp-reset-button {
    background-color: #ddd;
    color: #333;
}

.cpp-filter-button:hover {
    background-color: #005d8c;
}

.cpp-reset-button:hover {
    background-color: #ccc;
    color: black;
}

/* Loading */
.cpp-loading {
    text-align: center;
    padding: 20px;
    font-style: italic;
    color: #666;
}

/* No results */
.cpp-no-results {
    text-align: center;
    padding: 30px;
    font-size: 1.1em;
    color: #666;
}


/* Animation de chargement */
.cpp-loading {
    text-align: center;
    padding: 30px;
    font-style: italic;
    color: #666;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Transition fluide pour les résultats */
.cpp-articles-list {
    transition: opacity 0.3s ease;
}

.cpp-articles-list.loading {
    opacity: 0.6;
}


/*PAGINATION________________*/
.cpp-pagination {
    margin: 20px 0;
    text-align: center;
}

.cpp-pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    border: 1px solid #ddd;
    text-decoration: none !important;
    color: white;
    transition: all 0.3s;
}

.cpp-pagination .page-numbers.current {
    background-color: #0073aa;
    color: white;
    border-color: #0073aa;
}

.cpp-pagination .page-numbers:hover:not(.current) {
    background-color: #0073aa;
}

.cpp-pagination .page-numbers.dots {
    border: none;
    padding-left: 0;
    padding-right: 0;
}

/* Style pour le bouton de retour */
.cpp-back-to-pagination {
    text-align: center;
    margin: 20px 0;
}

.cpp-back-button {
    padding: 10px 20px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cpp-back-button:hover {
    background-color: #005177;
}


/* OUI NON */
.cpp-filter-seul-ligne {
    display: flex;
    padding: 10px 0;
}

.cpp-filter-group-nv {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 15px;
    position: relative;
    text-align: center;
}

.cpp-filter-group-nv:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background-color: #ccc;
}

.cpp-filter-group-nv label {
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

.cpp-filter-group-nv .radio-option {
    display: flex;
    align-items: center;
    margin: 4px 0;
    font-size: 14px;
}

.cpp-filter-group-nv .radio-option input[type="radio"] {
    margin-right: 6px;
}
