.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.promo-item {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.promo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.promo-image-container {
    position: relative;
    overflow: hidden;
    /* Définir une hauteur fixe pour créer un carré */
    width: 100%;
    padding-bottom: 100%; /* Ratio 1:1 pour un carré */
    background-color: #f5f5f5;
}

.promo-image-container a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.promo-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recadrer l'image pour remplir le conteneur carré */
    transition: transform 0.4s ease;
}

.promo-item:hover .promo-image {
    transform: scale(1.1);
}

.promo-content {
    padding: 18px;
}

.promo-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.promo-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.promo-title a:hover {
    color: #cc0000;
}

.promo-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.promo-dates {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: rgba(204, 0, 0, 0.85);
    color: white;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Badges pour indiquer des promotions spéciales */
.promo-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #ff9800;
    color: white;
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: bold;
    z-index: 1;
    text-transform: uppercase;
}

/* Badge d'expiration pour les promotions expirées */
.promo-expired-badge {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.promo-expired-badge span {
    background-color: #cc0000;
    color: white;
    padding: 8px 16px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    transform: rotate(-15deg);
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

/* Opacité réduite pour les promotions expirées */
.promo-item.expired {
    opacity: 0.8;
}

.promo-item.expired .promo-image {
    filter: grayscale(30%);
}

/* Styles pour le slider */
.promo-slider {
    position: relative;
    overflow: hidden;
    padding-bottom: 40px;
}

.promo-slider .swiper-slide {
    height: auto;
}

.promo-slider .swiper-button-next,
.promo-slider .swiper-button-prev {
    color: #333;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 25px;
    border-radius: 50%;
    --swiper-navigation-size: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    /* Centrer verticalement les flèches au milieu des vignettes */
    top: calc(50% - 30px); /* 30px = moitié de la hauteur des flèches avec leur padding */
    margin-top: 0;
    transform: translateY(-50%);
}

.promo-slider .swiper-button-next:hover,
.promo-slider .swiper-button-prev:hover {
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.promo-slider .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: #ccc;
    opacity: 0.5;
}

.promo-slider .swiper-pagination-bullet-active {
    background-color: #cc0000;
    opacity: 1;
}

/* Animation d'entrée pour les vignettes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.promo-item {
    animation: fadeInUp 0.5s ease forwards;
}

/* Responsive */
@media (max-width: 992px) {
    .promo-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .promo-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }
    
    .promo-content {
        padding: 15px;
    }
    
    .promo-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Styles pour la page de détail des promotions */
.promo-hero-section {
    position: relative;
    background-color: #222;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    margin-bottom: 50px;
    padding: 80px 20px 40px;
    background-size: cover;
    background-position: center;
}

.promo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.promo-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.promo-hero-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.promo-hero-dates {
    display: inline-block;
    background-color: rgba(204, 0, 0, 0.85);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.promo-hero-expired {
    display: inline-block;
    background-color: #222;
    color: white;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    margin-top: 15px;
    border: 2px solid rgba(204, 0, 0, 0.85);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.promo-single-wrapper {
    padding: 0 20px 60px;
}

/* Style pour quand il n'y a pas de bannière hero */
.promo-single-wrapper.no-hero {
    padding-top: 80px; /* Ajouter plus d'espace en haut quand il n'y a pas de bannière */
}

.promo-single-container {
    max-width: 1200px;
    margin: 0 auto;
}

.promo-single-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}

.promo-single-image-container {
    position: relative;
}

.promo-single-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.promo-single-content {
    display: flex;
    flex-direction: column;
}

.promo-single-content-dates {
    display: inline-block;
    background-color: rgba(204, 0, 0, 0.85);
    color: white;
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    align-self: flex-start;
}

.promo-single-content-title {
    font-size: 26px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px;
    line-height: 1.3;
}

/* Titre plus grand lorsqu'il n'y a pas de bannière hero */
.no-hero .promo-single-content-title {
    font-size: 32px;
    margin-bottom: 25px;
}

.promo-single-description {
    margin-bottom: 30px;
    color: #444;
    font-size: 16px;
    line-height: 1.6;
}

.promo-single-description p {
    margin-bottom: 15px;
}

.promo-social-sharing {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.promo-share-label {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    color: #333;
}

.promo-share-buttons {
    display: flex;
    gap: 12px;
}

.promo-social-sharing a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: #333;
    transition: all 0.3s ease;
}

.promo-social-sharing a:hover {
    background-color: #cc0000;
    color: white;
}

/* Responsive styles for single promotion page */
@media (max-width: 992px) {
    .promo-hero-title {
        font-size: 36px;
    }
    
    .promo-single-content-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .promo-hero-section {
        min-height: 300px;
        padding: 60px 20px 30px;
    }
    
    .promo-hero-title {
        font-size: 28px;
    }
    
    .promo-hero-dates {
        font-size: 14px;
    }
    
    .promo-single-content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .promo-single-image-container {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .promo-hero-section {
        min-height: 250px;
        padding: 50px 15px 25px;
    }
    
    .promo-hero-title {
        font-size: 24px;
    }
    
    .promo-share-buttons {
        flex-wrap: wrap;
    }
} 