.cfp-archive-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
}

.cfp-archive-header {
    text-align: center;
    margin-bottom: 48px;
}

.cfp-archive-title {
    font-size: 42px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 16px 0;
}

.cfp-archive-description {
    font-size: 18px;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

.cfp-archive-filters {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.cfp-filters-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.cfp-filter-search form {
    display: flex;
    gap: 8px;
}

.cfp-filter-search input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 15px;
}

.cfp-filter-search button {
    padding: 12px 20px;
    background: #5d2a61;
    color: #fff;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}

.cfp-filter-category select,
.cfp-filter-modalite select,
.cfp-filter-sort select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 15px;
    background: #fff;
}

.cfp-results-count {
    color: #666;
    font-size: 14px;
}

.cfp-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.cfp-formation-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.cfp-formation-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.cfp-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.cfp-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.cfp-formation-card:hover .cfp-card-image img {
    transform: scale(1.1);
}

.cfp-card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(93, 42, 97, 0.95);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.cfp-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cfp-card-category {
    font-size: 12px;
    font-weight: 600;
    color: #e36b24;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.cfp-card-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.cfp-card-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.cfp-card-title a:hover {
    color: #5d2a61;
}

.cfp-card-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.cfp-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
}

.cfp-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #666;
}

.cfp-meta-item.cfp-meta-price {
    color: #5d2a61;
    font-weight: 600;
    font-size: 18px;
}

.cfp-meta-sub {
    font-size: 12px;
    color: #999;
}

.cfp-card-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #5d2a61 0%, #e36b24 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    justify-content: center;
    transition: opacity 0.3s;
}

.cfp-card-button:hover {
    opacity: 0.9;
}

.cfp-archive-pagination {
    display: flex;
    justify-content: center;
}

.cfp-archive-pagination .page-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.cfp-archive-pagination .page-numbers li {
    margin: 0;
}

.cfp-archive-pagination a,
.cfp-archive-pagination span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s;
}

.cfp-archive-pagination a:hover {
    border-color: #5d2a61;
    color: #5d2a61;
}

.cfp-archive-pagination .current {
    background: #5d2a61;
    color: #fff;
    border-color: #5d2a61;
}

.cfp-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
}

.cfp-no-results-icon {
    font-size: 80px;
    color: #ddd;
    margin-bottom: 24px;
}

.cfp-no-results h3 {
    font-size: 28px;
    color: #2c3e50;
    margin: 0 0 12px 0;
}

.cfp-no-results p {
    font-size: 16px;
    color: #666;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .cfp-filters-row {
        grid-template-columns: 1fr;
    }

    .cfp-archive-grid {
        grid-template-columns: 1fr;
    }
}
