/* Custom Styles for Holistique Mag */

:root {
    --midnight-blue: #062e69;
    --deep-blue: #2c3e50;
    --accent-gold: #d4af37;
    --accent-coral: #ff6b6b;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
}

/* Hero Carousel Styles */
.hero-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 450px;           /* ✅ impose la hauteur exacte */
    min-height: 450px;
    margin-bottom: 0;
}

/* ✅ Force toutes les couches internes d'Owl à s'étirer */
.hero-carousel .owl-carousel,
.hero-carousel .owl-stage-outer,
.hero-carousel .owl-stage,
.hero-carousel .owl-item,
.hero-slide {
    height: 100% !important;
    min-height: 450px !important;
}

.hero-slide {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: stretch; /* ✅ permet au contenu interne de s'étirer */
}

.hero-slide .product__item__pic {
    flex: 1;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat;
}

/* ✅ Version mobile : on laisse la hauteur auto, plus naturelle */
@media (max-width: 991px) {
    .hero-carousel {
        height: auto;
        min-height: 450px;
        margin-bottom: 40px;
    }

    .hero-carousel .owl-carousel,
    .hero-carousel .owl-stage-outer,
    .hero-carousel .owl-stage,
    .hero-carousel .owl-item,
    .hero-slide,
    .hero-slide .product__item__pic {
        height: auto !important;
        min-height: 450px !important;
    }
}


.hero-slide .product__item__pic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(6, 46, 105, 0.9) 0%, rgba(6, 46, 105, 0.3) 60%, transparent 100%);
    z-index: 1;
}

.hero-slide .product__item__pic h3 {
    position: relative;
    z-index: 2;
    color: var(--accent-gold);
}

.hero-slide .product__item__pic p {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.hero-slide .product__item__pic h3 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-slide .product__item__pic p {
    font-size: 18px;
    line-height: 1.6;
    max-width: 800px;
    opacity: 0.95;
}

/* Owl Carousel Navigation */
.hero-carousel .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    z-index: 10;
}

/* Owl Carousel Dots */
.hero-carousel .owl-dots {
    position: absolute;
    bottom: 30px;
    left: 11.5%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.hero-carousel .owl-dots .owl-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: all 0.3s;
}

.hero-carousel .owl-dots .owl-dot.active {
    background: var(--accent-gold);
    width: 30px;
    border-radius: 6px;
}



/* Magazine Card Styles - Horizontal Layout */

.hero-carousel .owl-nav button {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.20) !important;
    backdrop-filter: blur(10px);
    border-radius: 50%;
    color: var(--white) !important;
    font-size: 24px !important;
    transition: all 0.3s;
    border: none;
}

.hero-carousel .owl-nav button:hover {
    background: var(--accent-gold) !important;
    color: var(--midnight-blue) !important;
    transform: scale(1.1);
}

.hero-carousel .owl-nav .owl-prev {
    left: 30px;
}

.hero-carousel .owl-nav .owl-next {
    right: 30px;
}

/* Filter Controls */
.filter__controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    list-style: none;
    padding: 0;
}

.filter__controls li {
    background: var(--light-gray);
    color: var(--text-dark);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.filter__controls li:hover,
.filter__controls li.active {
    background: var(--midnight-blue);
    color: var(--white);
}

/* Header Improvements */
.header {
    background: var(--white) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header__logo h4 {
    color: var(--midnight-blue) !important;
    font-weight: 700;
    font-size: 28px;
}

.header__menu ul li a {
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.header__menu ul li a:hover,
.header__menu ul li.active a {
    color: var(--accent-gold);
}

/* Footer Improvements */
.footer {
    background: var(--midnight-blue) !important;
    color: var(--white);
    padding: 40px 0 20px;
}

.footer__nav ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s;
}

.footer__nav ul li a:hover {
    color: var(--accent-gold);
}

.page-up a {
    background: var(--accent-gold);
    color: var(--midnight-blue);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.page-up a:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .product__item {
        flex-direction: column;
        height: auto;
    }
    
    .product__item .product__item__pic {
        width: 100%;
        height: 250px;
    }
    
    .hero-slide {
        height: 400px;
    }
    
    .hero-slide .product__item__pic h3 {
        font-size: 32px;
    }
    
    .hero-slide .product__item__pic p {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .hero-slide {
        height: 350px;
    }
    
    .hero-slide .product__item__pic {
        padding: 25px;
    }
    
    .hero-slide .product__item__pic h3 {
        font-size: 24px;
    }
    
    .hero-slide .product__item__pic p {
        font-size: 14px;
    }
    
    .hero-carousel .owl-nav button {
        width: 40px;
        height: 40px;
        font-size: 20px !important;
    }
    
    .hero-carousel .owl-nav .owl-prev {
        left: 15px;
    }
    
    .hero-carousel .owl-nav .owl-next {
        right: 15px;
    }
}