/* Styles de base pour le wrapper de la campagne */
.wpcf-campaign-wrapper {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Layout principal de la campagne */
.wpcf-campaign__container {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 30px;
}

/* En-tête de la campagne */
.wpcf-campaign__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.wpcf-campaign__header-main {
    flex: 1;
}

.wpcf-campaign__title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.wpcf-campaign__association {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.wpcf-campaign__share {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wpcf-campaign__share-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f5f5f5;
    border-radius: 50%;
    color: #333;
    transition: all 0.3s ease;
}

.wpcf-campaign__share-link:hover {
    background: #e0e0e0;
}

/* Contenu principal */
.wpcf-campaign__content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.wpcf-campaign__media {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.wpcf-campaign__image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Barre latérale */
.wpcf-campaign__sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wpcf-campaign__progress {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.wpcf-campaign__progress-amount {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.wpcf-campaign__current-amount {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.wpcf-campaign__goal-amount {
    font-size: 16px;
    color: #666;
    align-self: flex-end;
}

.wpcf-campaign__progress-bar {
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    margin-bottom: 15px;
    overflow: hidden;
}

.wpcf-campaign__progress-fill {
    height: 100%;
    background: #4CAF50;
    border-radius: 5px;
    transition: width 0.3s ease;
}

.wpcf-campaign__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    text-align: center;
    margin-top: 20px;
}

.wpcf-campaign__stats > div {
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 15px 10px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.wpcf-campaign__stats > div span:first-child {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.wpcf-campaign__stats > div span:last-child {
    font-size: 14px;
    color: #666;
}

/* Actions de la campagne */
.wpcf-campaign__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.wpcf-button, 
.wpcf-campaign__select-button,
.wpcf-campaign__member-button,
.wpcf-campaign__login-button {
    display: inline-block;
    padding: 12px 20px;
    background: #4CAF50;
    color: white !important;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.wpcf-button:hover,
.wpcf-campaign__select-button:hover,
.wpcf-campaign__member-button:hover,
.wpcf-campaign__login-button:hover {
    background: #388E3C;
    color: white !important;
}

.wpcf-campaign__status {
    padding: 15px 20px;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
}

.wpcf-campaign__status--selected {
    background: #E8F5E9;
    color: #388E3C;
}

.wpcf-campaign__status--ended {
    background: #FFEBEE;
    color: #D32F2F;
}

/* Association info */
.wpcf-campaign__association-info {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.wpcf-campaign__association-info-title {
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
}

.wpcf-campaign__association-details {
    display: flex;
    gap: 15px;
}

.wpcf-campaign__association-logo {
    flex: 0 0 80px;
}

.wpcf-campaign__association-logo img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.wpcf-campaign__association-content {
    flex: 1;
}

.wpcf-campaign__association-name {
    margin-bottom: 5px;
    font-size: 16px;
    color: #333;
}

.wpcf-campaign__association-description {
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

/* Onglets */
.wpcf-campaign__tabs {
    margin-top: 40px;
    margin-bottom: 40px;
}

.wpcf-campaign__tabs-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #eee;
}

.wpcf-campaign__tabs-nav-item {
    margin-right: 5px;
    margin-bottom: 0;
}

.wpcf-campaign__tabs-nav-link {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #666;
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
}

.wpcf-campaign__tabs-nav-item--active .wpcf-campaign__tabs-nav-link {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #e0e0e0;
    border-bottom-color: #f5f5f5;
    margin-bottom: -1px;
}

.wpcf-campaign__tab-content {
    display: none;
    padding: 20px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 4px 4px;
}

.wpcf-campaign__tab-content--active {
    display: block;
}

/* Mises à jour */
.wpcf-campaign__update {
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.wpcf-campaign__update:last-child {
    border-bottom: none;
}

.wpcf-campaign__update-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.wpcf-campaign__update-title {
    font-size: 18px;
    margin: 0;
    color: #333;
}

.wpcf-campaign__update-date {
    font-size: 14px;
    color: #666;
}

.wpcf-campaign__no-updates {
    font-style: italic;
    color: #666;
    text-align: center;
    padding: 20px 0;
}

/* Campagnes similaires */
.wpcf-campaign__related {
    margin-top: 60px;
}

.wpcf-campaign__related-title {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.wpcf-campaign__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Styles pour les cartes de campagne */
.wpcf-campaign-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.wpcf-campaign-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.wpcf-campaign-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none !important;
    color: inherit !important;
}

/* État initial des images en chargement paresseux */
img.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wpcf-campaign-card__image {
    background-color: #f5f5f5;
    position: relative;
    height: 200px;
    overflow: hidden;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Arrêter l'animation une fois l'image chargée */
.wpcf-campaign-card__image img:not(.lazy-load) + .wpcf-campaign-card__image::before {
    animation: none;
    display: none;
}

/* Animation de pulsation pour indiquer le chargement */
.wpcf-campaign-card__image::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: shimmer 1.5s infinite;
    z-index: 1;
}

.wpcf-campaign-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wpcf-campaign-card:hover .wpcf-campaign-card__image img {
    transform: scale(1.05);
}

.wpcf-campaign-card__content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wpcf-campaign-card__title {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.3;
}

.wpcf-campaign-card__association {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.wpcf-campaign-card__excerpt {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
    flex: 1;
}

.wpcf-campaign-card__excerpt p {
    margin-bottom: 0;
}

.wpcf-campaign-card__progress {
    margin-top: 15px;
}

.wpcf-campaign-card__progress-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 10px;
    overflow: hidden;
}

.wpcf-campaign-card__progress-fill {
    height: 100%;
    background: #4CAF50;
    border-radius: 4px;
}

.wpcf-campaign-card__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    text-align: center;
    font-size: 12px;
}

.wpcf-campaign-card__stats > div {
    display: flex;
    flex-direction: column;
}

.wpcf-campaign-card__stats > div span:first-child {
    font-weight: bold;
    color: #333;
}

.wpcf-campaign-card__stats > div span:last-child {
    color: #666;
}

.wpcf-campaign-card__time--ended {
    color: #d32f2f;
}

/* Styles pour la page archive des campagnes */
.wpcf-campaign-archive {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.wpcf-campaign-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.wpcf-campaign-filters__group {
    flex: 1;
    min-width: 200px;
}

.wpcf-campaign-filters__label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.wpcf-campaign-filters__select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

.wpcf-campaign__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.wpcf-campaign__pagination {
    margin: 30px 0;
    text-align: center;
}

.wpcf-campaign__pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 3px;
    border-radius: 4px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
}

.wpcf-campaign__pagination .page-numbers.current {
    background: #4CAF50;
    color: white;
}

.wpcf-campaign__no-results {
    text-align: center;
    padding: 50px 0;
    font-size: 18px;
    color: #666;
}

/* Styles pour l'onglet Campagnes du tableau de bord */
.wpcf-dashboard__card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    padding: 20px;
    margin-bottom: 20px;
}

.wpcf-dashboard__card-title {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #333;
}

.wpcf-campaign {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.wpcf-campaign__info {
    display: flex;
    margin-bottom: 15px;
}

.wpcf-campaign__thumbnail {
    flex: 0 0 100px;
    margin-right: 15px;
}

.wpcf-campaign__thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.wpcf-campaign__content {
    flex: 1;
}

.wpcf-campaign__title {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.wpcf-campaign__meta {
    font-size: 14px;
    color: #666;
}

.wpcf-campaign__selection-date {
    display: block;
    margin-bottom: 10px;
}

.wpcf-campaign__auto-badge {
    display: inline-block;
    background: #f1f8e9;
    color: #689f38;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 8px;
}

/* Modale de sélection de campagne */
.wpcf-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpcf-modal__content {
    width: 90%;
    max-width: 1000px;
    max-height: 80vh;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.wpcf-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.wpcf-modal__title {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.wpcf-modal__close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.wpcf-modal__close:hover {
    background-color: #e9ecef;
    color: #333;
}

.wpcf-modal__body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.wpcf-modal__filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.wpcf-modal__filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.wpcf-modal__filter-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.wpcf-modal__filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

.wpcf-modal__campaigns-container {
    position: relative;
}

.wpcf-modal__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #666;
}

.wpcf-loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.wpcf-modal__campaigns-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.wpcf-campaign-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    background: white;
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
}

.wpcf-campaign-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.wpcf-campaign-item__header {
    margin-bottom: 10px;
}

.wpcf-campaign-item__title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.wpcf-campaign-item__category {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.wpcf-campaign-item__content {
    margin-bottom: 15px;
}

.wpcf-campaign-item__description {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wpcf-campaign-item__progress {
    margin-top: 10px;
}

.wpcf-campaign-item__progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.wpcf-campaign-item__progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    transition: width 0.3s ease;
}

.wpcf-campaign-item__progress-text {
    font-size: 12px;
    color: #666;
    text-align: center;
}

.wpcf-campaign-item__actions {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.wpcf-campaign-item__select {
    flex: 1;
    padding: 8px 16px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.wpcf-campaign-item__select:hover {
    background: #005a87;
}

.wpcf-modal__footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.wpcf-modal__cancel {
    padding: 8px 16px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.wpcf-modal__cancel:hover {
    background: #5a6268;
}

.wpcf-empty {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

.wpcf-error {
    text-align: center;
    padding: 20px;
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin: 10px 0;
}

/* Responsive design pour le modal */
@media (max-width: 768px) {
    .wpcf-modal__content {
        width: 95%;
        max-height: 90vh;
    }
    
    .wpcf-modal__filters {
        flex-direction: column;
        gap: 10px;
    }
    
    .wpcf-modal__campaigns-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .wpcf-campaign-item__actions {
        flex-direction: column;
        gap: 8px;
    }
}

/* Styles pour la galerie de campagne */
.wpcf-campaign__gallery {
    margin-top: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.wpcf-campaign__gallery-title {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #333;
}

.wpcf-campaign__gallery-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wpcf-campaign__gallery-main {
    width: 100%;
}

.wpcf-campaign__gallery-featured {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpcf-campaign__gallery-featured-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.wpcf-campaign__gallery-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.wpcf-campaign__gallery-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpcf-campaign__gallery-thumbnail.active {
    border-color: #4CAF50;
}

.wpcf-campaign__gallery-thumbnail:hover {
    border-color: #ddd;
}

.wpcf-campaign__gallery-thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Styles pour les écrans plus grands */
@media screen and (min-width: 768px) {
    .wpcf-campaign__gallery-featured {
        height: 400px;
    }
}

/* Responsive pour les mobiles */
@media screen and (max-width: 767px) {
    .wpcf-campaign__gallery-thumbnails {
        justify-content: center;
    }
    
    .wpcf-campaign__gallery-thumbnail {
        width: 60px;
        height: 60px;
    }
}

/* Animation pour le changement d'image */
.wpcf-campaign__gallery-featured-image {
    transition: opacity 0.3s ease;
}

.wpcf-campaign__subscription-notice {
    background-color: #f4f4f4;
    border-left: 4px solid #4CAF50;
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.wpcf-campaign__subscription-alert {
    width: 100%;
    margin-bottom: 10px;
}

.wpcf-campaign__subscription-alert a.wpcf-button {
    display: inline-block;
    background-color: #4CAF50;
    color: white !important;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    margin-top: 5px;
    border: none;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}

.wpcf-campaign__subscription-alert a.wpcf-button:hover {
    background-color: #45a049;
}

.wpcf-campaign__subscription-warning {
    color: #666;
    font-size: 0.9em;
    width: 100%;
    text-align: left;
}

.wpcf-campaign__subscription-warning p {
    margin: 5px 0;
    line-height: 1.5;
}

/* Améliorations d'accessibilité pour les campagnes */

/* Améliorer le contraste des textes */
.wpcf-campaign-card__title {
    color: #333333;
    font-size: 1.2rem;
    font-weight: 600;
}

.wpcf-campaign-card__association {
    color: #555555;
}

.wpcf-campaign-card__excerpt {
    color: #444444;
    line-height: 1.5;
}

/* Focus visible pour la navigation au clavier */
.wpcf-campaign-card__link:focus {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}

.wpcf-campaign-filter:focus {
    border-color: #4CAF50;
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}

/* Améliorer les états de hover */
.wpcf-campaign-card:hover,
.wpcf-campaign-card:focus-within {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Améliorer la lisibilité des indicateurs de progression */
.wpcf-campaign-card__progress-bar {
    border-radius: 4px;
    height: 10px;
    background-color: #e9e9e9;
    overflow: hidden;
}

.wpcf-campaign-card__progress-fill {
    background: linear-gradient(to right, #4CAF50, #388E3C);
}

.wpcf-campaign-card__stats {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #555555;
}

.wpcf-campaign-card__stats > div span:first-child {
    font-weight: 700;
    color: #333333;
}

/* Améliorer les états focus des filtres */
.wpcf-campaign-filter:focus-visible {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.25);
}

/* Améliorer l'accessibilité de la pagination */
.wpcf-campaigns-pagination a:focus {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}

/* Améliorer les états actifs des boutons */
.wpcf-campaign-error__retry:focus {
    outline: 2px solid #388E3C;
    outline-offset: 2px;
}

/* Améliorations pour les lecteurs d'écran */
.wpcf-campaign-card__progress {
    position: relative;
}

.wpcf-campaign-card__progress-info {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Support écran de haute densité */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .wpcf-campaign-card__title {
        font-weight: 500; /* Légèrement plus fin pour les écrans haute résolution */
    }
}

/* Améliorer la navigation au clavier */
.wpcf-campaign-card {
    position: relative;
}

.wpcf-campaign-card__link {
    position: static;
}

.wpcf-campaign-card__link:before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
}

/* Gestion de l'orientation du périphérique */
@media screen and (orientation: portrait) {
    .wpcf-campaigns-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media screen and (orientation: landscape) {
    .wpcf-campaigns-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

/* Améliorations pour le mode sombre */
@media (prefers-color-scheme: dark) {
    .wpcf-campaign-card {
        background-color: #2d2d2d;
        border-color: #444;
    }
    
    .wpcf-campaign-card__title {
        color: #f0f0f0;
    }
    
    .wpcf-campaign-card__excerpt {
        color: #d0d0d0;
    }
    
    .wpcf-campaign-card__association {
        color: #c0c0c0;
    }
    
    .wpcf-campaign-filters {
        background-color: #2d2d2d;
        border-color: #444;
    }
    
    .wpcf-campaign-filter {
        background-color: #333;
        color: #f0f0f0;
        border-color: #555;
    }
    
    .wpcf-campaign-card__progress-bar {
        background-color: #444;
    }
    
    .wpcf-campaign-card__stats > div span:first-child {
        color: #f0f0f0;
    }
    
    .wpcf-campaign-card__stats > div span:last-child {
        color: #c0c0c0;
    }
    
    .wpcf-campaigns-pagination a {
        background-color: #333;
        color: #f0f0f0;
    }
    
    .wpcf-campaigns-pagination span.current {
        background-color: #4CAF50;
        color: #f0f0f0;
    }
}

/* Support pour les préférences de réduction de mouvement */
@media (prefers-reduced-motion: reduce) {
    img.lazy-load {
        transition: none;
    }
    
    .wpcf-campaign-card__image::before {
        animation: none;
    }
    
    .wpcf-campaign-card {
        transition: box-shadow 0.1s ease;
    }
    
    .wpcf-campaign-card__image img {
        transition: none;
    }
    
    .wpcf-campaign-card:hover .wpcf-campaign-card__image img {
        transform: none;
    }
    
    @keyframes fadeInUp {
        from {
            opacity: 0.8;
        }
        to {
            opacity: 1;
        }
    }
}

/* Meilleure adaptation aux écrans de petite taille */
@media screen and (max-width: 480px) {
    .wpcf-campaign-card__stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .wpcf-campaign-card__time {
        grid-column: span 2;
        margin-top: 8px;
    }
    
    .wpcf-campaign-filters {
        padding: 10px;
    }
    
    .wpcf-campaign-filters__group {
        margin-bottom: 10px;
    }
    
    .wpcf-campaigns-pagination a,
    .wpcf-campaigns-pagination span {
        min-width: 30px;
        height: 30px;
        padding: 0 8px;
        font-size: 14px;
    }
}

/* Meilleur support pour grandes tailles d'écran */
@media screen and (min-width: 1400px) {
    .wpcf-campaigns-shortcode-container {
        max-width: 1400px;
    }
    
    .wpcf-campaign-card__title {
        font-size: 1.25rem;
    }
    
    .wpcf-campaign-card__excerpt {
        font-size: 1rem;
    }
}

/* Ajout d'attributs ARIA pour améliorer l'accessibilité */
.wpcf-campaign-card__progress-bar {
    /* Ces styles seront ajoutés via JavaScript */
    position: relative;
}

.wpcf-loading-overlay {
    /* Amélioration de l'accessibilité de l'overlay de chargement */
    z-index: 1000;
    color: #333;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .wpcf-campaign__subscription-notice {
        padding: 10px;
    }

    .wpcf-campaign__subscription-alert a.wpcf-button {
        width: 100%;
        text-align: center;
    }
}

/* Animation légère */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.wpcf-campaign__subscription-notice {
    animation: fadeIn 0.5s ease-out;
}

@media (max-width: 991px) {
    .wpcf-campaign__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .wpcf-campaign__grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive */
@media (max-width: 767px) {
    .wpcf-campaign-card__stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .wpcf-campaign-card__time {
        grid-column: span 2;
    }
}

/* Responsive */
@media (max-width: 991px) {
    .wpcf-campaign__content {
        grid-template-columns: 1fr;
    }
    
    .wpcf-campaign__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .wpcf-campaign__header {
        flex-direction: column;
    }
    
    .wpcf-campaign__share {
        margin-top: 15px;
    }
    
    .wpcf-campaign__stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .wpcf-campaign__time {
        grid-column: span 2;
    }
    
    .wpcf-campaign__grid {
        grid-template-columns: 1fr;
    }
    
    .wpcf-campaign__association-details {
        flex-direction: column;
    }
    
    .wpcf-campaign__association-logo {
        margin-bottom: 15px;
    }
}