/**
 * Styles pour la page Promotions - Nature Solution
 * @package NatureSolution
 */

/* ============================================
   VARIABLES CSS POUR LA PAGE PROMOTIONS
   ============================================ */
:root {
    --promotion-primary: #8BC34A;
    --promotion-secondary: #689F38;
    --promotion-accent: #E53935;
    --promotion-warning: #FF9800;
    --promotion-success: #4CAF50;
    --promotion-dark: #2E2E2E;
    --promotion-light: #F5F5F5;
    --promotion-white: #FFFFFF;
    --promotion-overlay: rgba(0, 0, 0, 0.7);
    --promotion-shadow: 0 8px 32px rgba(139, 195, 74, 0.2);
    --promotion-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --promotion-border-radius: 12px;
}

/* ============================================
   CONTENEUR PRINCIPAL
   ============================================ */
.naturesolution-promotions-page {
    overflow-x: hidden;
}

/* ============================================
   HERO SECTION PROMOTIONS
   ============================================ */
.promotions-hero-section {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--promotion-primary) 0%, var(--promotion-secondary) 100%);
    overflow: hidden;
}

.promotions-hero-section .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.promotions-hero-section .hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promotions-hero-section .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(139, 195, 74, 0.8) 0%,
        rgba(104, 159, 56, 0.9) 50%,
        rgba(46, 46, 46, 0.7) 100%);
    z-index: 2;
}

.promotions-hero-section .hero-content {
    position: relative;
    z-index: 3;
    padding: 4rem 0;
    width: 100%;
}

.promotions-hero-section .hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--promotion-white);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.promotions-hero-section .hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.promotions-hero-section .hero-badge {
    margin-bottom: 2rem;
}

.promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--promotion-warning);
    color: var(--promotion-white);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 16px rgba(255, 152, 0, 0.3);
}

.promo-badge svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   SECTION GRID PROMOTIONS
   ============================================ */
.promotions-grid-section {
    padding: 5rem 0;
    background: var(--promotion-white);
}

.promotions-grid-section .section-header {
    margin-bottom: 4rem;
}

.promotions-grid-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--promotion-dark);
    margin-bottom: 1rem;
}

.promotions-grid-section .section-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Conteneur carrousel */
.promotions-carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto 4rem;
    overflow: hidden;
    border-radius: var(--promotion-border-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Carrousel wrapper */
.promotions-carousel {
    position: relative;
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Slide individuel */
.promotion-slide {
    min-width: 100%;
    position: relative;
    background: var(--promotion-white);
    cursor: pointer;
}

/* Image de promotion */
.promotion-image-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background: var(--promotion-light);
}

.promotion-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--promotion-transition);
    background: var(--promotion-white);
}

.promotion-slide:hover .promotion-image {
    transform: scale(1.02);
}

/* Overlay avec informations */
.promotion-content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 3rem 2rem 2rem;
    color: var(--promotion-white);
}

.promotion-overlay-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--promotion-white);
}

.promotion-overlay-description {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* Bouton promotion en bas */
.promotion-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--promotion-primary);
    color: var(--promotion-white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--promotion-transition);
    box-shadow: 0 4px 20px rgba(139, 195, 74, 0.3);
    border: none;
    cursor: pointer;
}

.promotion-btn:hover {
    background: var(--promotion-secondary);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(139, 195, 74, 0.4);
    color: var(--promotion-white);
    text-decoration: none;
}

.promotion-btn .btn-icon {
    width: 16px;
    height: 16px;
    transition: var(--promotion-transition);
}

.promotion-btn:hover .btn-icon {
    transform: translateX(4px);
}

/* Navigation carrousel */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--promotion-transition);
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-nav:hover {
    background: var(--promotion-white);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.carousel-nav.prev {
    left: 20px;
}

.carousel-nav.next {
    right: 20px;
}

.carousel-nav svg {
    width: 20px;
    height: 20px;
    color: var(--promotion-dark);
}

/* Indicateurs (dots) */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(139, 195, 74, 0.3);
    cursor: pointer;
    transition: var(--promotion-transition);
    border: none;
}

.carousel-dot.active,
.carousel-dot:hover {
    background: var(--promotion-primary);
    transform: scale(1.2);
}

/* Lightbox fullscreen */
.promotion-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.promotion-lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: var(--promotion-white);
    border-radius: var(--promotion-border-radius);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-image {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox-info {
    padding: 2rem;
    text-align: center;
}

.lightbox-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--promotion-dark);
    margin-bottom: 0.5rem;
}

.lightbox-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--promotion-dark);
    transition: var(--promotion-transition);
}

.lightbox-close:hover {
    background: var(--promotion-white);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--promotion-transition);
    z-index: 10;
}

.lightbox-nav:hover {
    background: var(--promotion-white);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

.lightbox-nav svg {
    width: 24px;
    height: 24px;
    color: var(--promotion-dark);
}

/* ============================================
   MESSAGE AUCUNE PROMOTION
   ============================================ */
.no-promotions-message {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.no-promotions-icon {
    margin-bottom: 2rem;
    opacity: 0.5;
}

.no-promotions-icon svg {
    width: 80px;
    height: 80px;
    color: var(--promotion-primary);
}

.no-promotions-message h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--promotion-dark);
}

.no-promotions-message p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   SECTION CTA PROMOTIONS
   ============================================ */
.promotions-cta {
    padding: 3rem 2rem;
    background: var(--promotion-light);
    border-radius: var(--promotion-border-radius);
    margin: 2rem 0;
}

.promotions-cta h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--promotion-dark);
    margin-bottom: 1rem;
}

.promotions-cta p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-outline {
    color: var(--promotion-dark);
    border-color: var(--promotion-dark);
}

.cta-buttons .btn-outline:hover {
    background: var(--promotion-dark);
    color: var(--promotion-white);
}

/* ============================================
   SECTION NEWSLETTER PROMOTIONS
   ============================================ */
.promotions-newsletter-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--promotion-primary) 0%, var(--promotion-secondary) 100%);
    color: var(--promotion-white);
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.newsletter-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--promotion-white);
}

.newsletter-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
}

/* Formulaire newsletter simple */
.simple-newsletter-form {
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form .form-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.newsletter-form input[type="email"] {
    flex: 1;
    min-width: 200px;
    padding: 0.875rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    background: var(--promotion-white);
    color: var(--promotion-dark);
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.newsletter-form .btn {
    white-space: nowrap;
    background: var(--promotion-white);
    color: var(--promotion-primary);
    border: none;
}

.newsletter-form .btn:hover {
    background: var(--promotion-light);
    color: var(--promotion-secondary);
}

/* ============================================
   SCROLL INDICATOR
   ============================================ */
.promotions-hero-section .scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-down {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--promotion-white);
    text-decoration: none;
    transition: var(--promotion-transition);
    opacity: 0.8;
}

.scroll-down:hover {
    opacity: 1;
    transform: translateY(-3px);
    color: var(--promotion-white);
    text-decoration: none;
}

.scroll-text {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-up[data-delay="200"] { animation-delay: 0.2s; }
.fade-in-up[data-delay="400"] { animation-delay: 0.4s; }
.fade-in-up[data-delay="600"] { animation-delay: 0.6s; }
.fade-in-up[data-delay="800"] { animation-delay: 0.8s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablettes */
@media (max-width: 768px) {
    .promotions-hero-section .hero-title {
        font-size: 2.5rem;
    }

    .promotions-hero-section .hero-subtitle {
        font-size: 1.1rem;
    }

    .promotion-image-wrapper {
        height: 500px;
    }

    .promotions-grid-section .section-title {
        font-size: 2rem;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
    }

    .carousel-nav.prev {
        left: 10px;
    }

    .carousel-nav.next {
        right: 10px;
    }

    .carousel-nav svg {
        width: 18px;
        height: 18px;
    }

    .promotion-content-overlay {
        padding: 2rem 1.5rem 1.5rem;
    }

    .promotion-overlay-title {
        font-size: 1.5rem;
    }

    .lightbox-content {
        margin: 1rem;
        max-width: calc(100vw - 2rem);
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
    }

    .lightbox-nav.prev {
        left: 10px;
    }

    .lightbox-nav.next {
        right: 10px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .newsletter-form .form-group {
        flex-direction: column;
    }

    .newsletter-form input[type="email"] {
        min-width: auto;
    }
}

/* Mobiles */
@media (max-width: 480px) {
    .promotions-hero-section {
        min-height: 50vh;
    }

    .promotions-hero-section .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .promotions-hero-section .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .promotion-image-wrapper {
        height: 400px;
    }

    .promotions-grid-section {
        padding: 3rem 0;
    }

    .promotions-grid-section .section-title {
        font-size: 1.75rem;
    }

    .promotion-content-overlay {
        padding: 1.5rem 1rem 1rem;
    }

    .promotion-overlay-title {
        font-size: 1.25rem;
    }

    .promotion-overlay-description {
        font-size: 0.9rem;
    }

    .promotion-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .carousel-nav {
        width: 35px;
        height: 35px;
    }

    .carousel-nav svg {
        width: 16px;
        height: 16px;
    }

    .carousel-dot {
        width: 10px;
        height: 10px;
    }

    .lightbox-content {
        margin: 0.5rem;
        max-width: calc(100vw - 1rem);
    }

    .lightbox-info {
        padding: 1.5rem;
    }

    .lightbox-close {
        width: 35px;
        height: 35px;
        top: 10px;
        right: 10px;
        font-size: 18px;
    }

    .lightbox-nav {
        width: 35px;
        height: 35px;
    }

    .lightbox-nav svg {
        width: 20px;
        height: 20px;
    }

    .promotions-cta {
        padding: 2rem 1rem;
        margin: 1rem 0;
    }

    .newsletter-title {
        font-size: 1.5rem;
    }

    .newsletter-description {
        font-size: 1rem;
    }
}

/* Mode sombre (optionnel) */
@media (prefers-color-scheme: dark) {
    .promotions-grid-section {
        background: #1a1a1a;
    }

    .promotions-grid-section .section-title {
        color: var(--promotion-white);
    }

    .promotions-grid-section .section-description {
        color: #ccc;
    }

    .promotion-card {
        background: #2a2a2a;
        box-shadow: 0 4px 20px rgba(255, 255, 255, 0.05);
    }

    .promotion-info {
        background: #2a2a2a;
    }

    .promotion-title {
        color: var(--promotion-white);
    }

    .promotion-description {
        color: #ccc;
    }
}