/* ==========================================================================
   WooCommerce Archive/Shop Styling
   Extracted from woocommerce/archive-product.php
   ========================================================================== */

/* Formations Grid - Compact & Professional */
.formations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 320px));
    gap: 25px;
    margin: 40px 0;
    justify-content: center;
}

.formation-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
}

.formation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(158, 50, 53, 0.15);
}

.formation-card.featured-formation {
    border: 2px solid #102a43;
}

.formation-card.animated {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Badge */
.formation-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
}

.badge-popular, .badge-optional {
    background: linear-gradient(45deg, #102a43, #d4a012);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-optional {
    background: linear-gradient(45deg, #28a745, #34ce57);
}

/* Card Header - Compact */
.formation-card .card-header {
    padding: 25px 20px 15px 20px;
}

.formation-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.formation-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.formation-title a:hover {
    color: #102a43;
}

/* Card Content - Compact */
.formation-card .card-content {
    padding: 0 20px 15px 20px;
}

.formation-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    text-align: center;
}

.formation-features {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666;
    background: #f8f9fa;
    padding: 6px 10px;
    border-radius: 15px;
    flex: 1;
    min-width: 90px;
    justify-content: center;
}

.feature i {
    color: #102a43;
    font-size: 12px;
}

/* Card Footer - Compact */
.formation-card .card-footer {
    padding: 15px 20px 20px 20px;
    border-top: 1px solid #f0f0f0;
    background: #fafbfc;
}

.price-section {
    text-align: center;
    margin-bottom: 15px;
}

.formation-card .price {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #102a43;
    margin-bottom: 5px;
}

.price-note {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.action-buttons {
    text-align: center;
}

.formation-card .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.formation-card .btn-primary {
    background: linear-gradient(45deg, #102a43, #d4a012);
    color: white;
}

.formation-card .btn-primary:hover {
    background: linear-gradient(45deg, #0b1e33, #102a43);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .formations-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 30px 0;
    }
    
    .formation-features {
        flex-direction: column;
        gap: 6px;
    }
    
    .feature {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .formation-card .card-header,
    .formation-card .card-content,
    .formation-card .card-footer {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .formation-title {
        font-size: 16px;
    }
    
    .formation-card .price {
        font-size: 20px;
    }
}
