/* CSS pour la page des produits EDD - Version finale */

/* Container général */
.edd-blocks__downloads {
    max-width: 1200px; /* Largeur pour 4 colonnes */
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 colonnes exactement égales */
    gap: 30px;
    justify-items: center; /* Centre chaque carte */
}

/* Chaque produit */
.edd-blocks__download {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 2px solid #f0f2f5;
    transition: all 0.3s ease;
}

.edd-blocks__download:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

/* Image produit */
.edd-blocks__download-image {
    max-width: 200px;
    height: auto;
    border-radius: 12px;
    margin: 0 auto 20px auto;
    display: block;
}

/* Card de pricing personnalisée */
.pricing-card-custom {
    text-align: center;
    padding: 20px 0;
}

/* En-tête avec hauteur fixe pour alignement */
.pricing-header {
    height: 120px; /* Hauteur fixe pour tous les headers */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.pricing-header h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.pricing-header p {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin: 0 0 25px 0;
}

/* Section prix */
.pricing-price {
    background: linear-gradient(135deg, #f8fbff, #e3f2fd);
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
    border: 2px solid #bbdefb;
}

.pricing-price .amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: #667eea;
    display: block;
    line-height: 1;
}

.pricing-price .period {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-left: 5px;
}

.pricing-price .commitment {
    font-size: 0.9rem;
    color: #95a5a6;
    margin-top: 8px;
    font-style: italic;
}

/* Liste des fonctionnalités */
.pricing-features {
    text-align: left;
    margin: 25px 0;
}

.feature {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f8f9fa;
}

.feature:last-child {
    border-bottom: none;
}

.feature .check {
    color: #27ae60;
    font-weight: bold;
    background: #e8f5e8;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.feature span:last-child {
    color: #34495e;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Footer avec bouton */
.edd-blocks__download-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #f0f2f5;
}

/* Styles des boutons */
.edd-blocks__buy-button .edd-submit,
.edd-blocks__buy-button .button {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: white !important;
    border: none !important;
    padding: 14px 28px !important;
    border-radius: 10px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.3) !important;
    text-decoration: none !important;
    min-width: 180px !important;
}

.edd-blocks__buy-button .edd-submit:hover,
.edd-blocks__buy-button .button:hover {
    background: linear-gradient(135deg, #5a67d8, #667eea) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 22px rgba(102, 126, 234, 0.4) !important;
}

/* Bouton gratuit (différent) */
.edd-free-download {
    background: linear-gradient(135deg, #27ae60, #2ecc71) !important;
    box-shadow: 0 6px 18px rgba(39, 174, 96, 0.3) !important;
}

.edd-free-download:hover {
    background: linear-gradient(135deg, #229954, #27ae60) !important;
    box-shadow: 0 8px 22px rgba(39, 174, 96, 0.4) !important;
}

/* Animation au chargement */
.edd-blocks__download {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.edd-blocks__download:nth-child(1) {
    animation-delay: 0.1s;
}

.edd-blocks__download:nth-child(2) {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Style spécial pour le titre de la page */
.page-header .entry-title {
    text-align: center;
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

/* Effet sur le container principal */
.page-content {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 1100px) {
    .edd-blocks__downloads {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .edd-blocks__downloads {
        grid-template-columns: 1fr;
        padding: 15px;
        gap: 20px;
        max-width: 400px;
    }
    
    .edd-blocks__download {
        padding: 25px 20px;
    }
    
    .pricing-header {
        height: auto; /* Hauteur flexible sur mobile */
        min-height: 80px;
    }
    
    .pricing-header h3 {
        font-size: 1.8rem;
    }
    
    .pricing-price .amount {
        font-size: 2.2rem;
    }
    
    .edd-blocks__buy-button .edd-submit,
    .edd-blocks__buy-button .button {
        width: 100% !important;
        min-width: auto !important;
    }
}