/* Styles pour les cartes de promotion */
.promotion-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.promotion-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #eaeaea;
}

.promotion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.promotion-header {
    position: relative;
    background: linear-gradient(135deg, #3f51b5, #5c6bc0);
    color: white;
    padding: 20px;
}

.promotion-header h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    padding-right: 60px;
    line-height: 1.4;
}

.promotion-discount {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    color: #3f51b5;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.promotion-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.promotion-description {
    color: #555;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.6;
    flex-grow: 1;
}

.promotion-details {
    margin-top: auto;
    margin-bottom: 18px;
}

.promotion-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.promotion-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    background: #f0f0f0;
    color: #555;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.promotion-badge.discount {
    background-color: #E8EAF6;
    color: #3949AB;
}

.promotion-badge.period {
    background-color: #E1F5FE;
    color: #0277BD;
}

.promotion-badge.days {
    background-color: #E0F2F1;
    color: #00796B;
}

.promotion-dates {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    background: #f8f9fa;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid #eee;
}

.promotion-dates i {
    color: #3f51b5;
    margin-right: 10px;
}

.promotion-button {
    display: block;
    width: 100%;
    background: #3f51b5;
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.promotion-button:hover {
    background: #303f9f;
    color: white;
    text-decoration: none !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.view-all-promos {
    display: inline-block;
    text-align: center;
    color: white;
    font-weight: 500;
    font-size: 14px;
    padding: 12px 24px;
    text-decoration: none !important;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin: 15px 0;
    background: #3f51b5;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.view-all-promos:hover {
    background: #303f9f;
    text-decoration: none !important;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Styles responsifs */
@media (max-width: 768px) {
    .promotion-cards {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 15px;
    }
    
    .promotion-header h2 {
        font-size: 16px;
    }
    
    .promotion-discount {
        font-size: 12px;
        padding: 4px 8px;
    }
}
