@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* ===================== GLOBAL ===================== */
body {
    font-family: "Open Sans", sans-serif;
    font-style: normal;
}

h4 {
    color: #ffc83dab;
}

.card {
    cursor: pointer;
}

/*NEW CARESOUL STYLE - GOOD*/
 /* ===================== SECTION HERO ===================== */
.hero-section {
    padding: 20px 0;
}

/* ===================== TOP NAVIGATION CAROUSEL - BOUTONS DIGITAUX MODERNES ===================== */
.top-nav-carousel {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.top-nav-carousel::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 8s linear infinite;
}

@keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.top-nav-carousel h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.nav-carousel-wrapper {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.nav-carousel-track {
    display: flex;
    gap: 12px;
    animation: scrollNav 25s linear infinite;
    width: max-content;
    padding: 10px 0;
}

.nav-carousel-track:hover {
    animation-play-state: paused;
}

@keyframes scrollNav {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Boutons digitaux modernes avec effet néon */
.nav-btn {
    background: rgb(91 84 77);
    backdrop-filter: blur(10px);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.nav-btn:hover {
    background: #7451aa;
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3),
                0 0 20px rgba(255, 255, 255, 0.2);
    color: #fff;
}

.nav-btn:active {
    transform: translateY(-1px) scale(1.02);
}

/* ===================== MAIN CONTENT GRID ===================== */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================== LEFT CAROUSEL - DESIGN AMÉLIORÉ ===================== */
.left-carousel {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    position: relative;
    height: 500px;
}

.left-carousel .carousel-item {
    height: 500px;
    position: relative;
}

.left-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.65) saturate(1.1);
    transition: transform 0.8s ease;
}

.left-carousel .carousel-item.active img {
    animation: zoomIn 8s ease-out forwards;
}

@keyframes zoomIn {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.left-carousel .carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
    padding: 40px;
}

.left-carousel h1 {
    font-size: 2.6rem;
    font-weight: 600; /* plus léger */
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    margin-bottom: 15px;

}

.left-carousel p {
    font-size: 1.3rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    font-weight: 500;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.left-carousel:hover .carousel-control-prev,
.left-carousel:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(255,255,255,0.4);
}

/* ===================== RIGHT CAROUSEL - STYLE JOURNAL E-COMMERCE ===================== */
.right-carousel {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    height: 500px;
    display: flex;
    flex-direction: column;
}

.right-carousel-header {
    background: #7959af important!;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.right-carousel-header h5 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.right-carousel-body {
    flex: 1;
    overflow: hidden;
    position: relative;
    padding: 15px;
}

.nouveautes-track {
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: scrollVertical 30s linear infinite;
    pointer-events: auto;
}

.nouveautes-track:hover {
    animation-play-state: paused;
}

@keyframes scrollVertical {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

/* Style petites annonces journal */
.nouveaute-card {
    display: flex;
    gap: 12px;
    padding: 10px;
    background: transparent;
    border-radius: 12px;
    border: 5px solid white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;

}

.nouveaute-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s;
}

.nouveaute-card:hover::before {
    left: 100%;
}

.nouveaute-card:hover {
    transform: translateX(5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    border-left-width: 6px;
}

.nouveaute-img {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.nouveaute-card:hover .nouveaute-img {
    border-color: #667eea;
    transform: scale(1.05);
}

.nouveaute-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.badge-new {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 800;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(245, 87, 108, 0.3);
    margin-bottom: 5px;
}

.nouveaute-name {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    color: #2d3748;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.nouveaute-price {
    font-size: 1rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 2px;
}

.nouveaute-location {
    font-size: 0.8rem;
    color: #718096;
    font-weight: 500;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
    .left-carousel h1 {
        font-size: 2rem;
    }

    .left-carousel p {
        font-size: 1rem;
    }

    .left-carousel,
    .right-carousel {
        height: 400px;
    }

    .left-carousel .carousel-item {
        height: 400px;
    }

    .left-carousel .carousel-caption {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .nouveaute-card {
        gap: 6px;
        padding: 6px 8px;
        border-radius: 8px;
        border-left-width: 3px;
    }

    .nouveaute-img {
        width: 45px;
        height: 45px;
        border-radius: 6px;
    }

    .nouveaute-info {
        gap: 2px;
    }

    .badge-new {
        padding: 2px 6px;
        font-size: 0.55rem;
        margin-bottom: 2px;
    }

    .nouveaute-name {
        font-size: 0.75rem;
        font-weight: 600;
        -webkit-line-clamp: 1;
        line-height: 1.2;
        margin-bottom: 2px;
    }

    .nouveaute-price {
        font-size: 0.8rem;
        font-weight: 700;
        margin-bottom: 0;
    }

    .nouveaute-location {
        font-size: 0.65rem;
        line-height: 1.2;
    }

    .nouveautes-track {
        gap: 8px;
    }

    .right-carousel-body {
        padding: 10px;
    }

    .right-carousel-header {
        padding: 15px;
    }

    .right-carousel-header h5 {
        font-size: 1.1rem;
    }

    .left-carousel h1 {
        font-size: 1.5rem;
    }

    .left-carousel p {
        font-size: 0.9rem;
    }
}

/* ===================== EXTRAS ===================== */
.hero-section {
    position: relative;
    z-index: 1;
}

header,
.navbar {
    position: relative;
    z-index: 9999;
}

/* =========================================================
   HEADER NOUVEAUTÉS – STYLE JOURNAL (AJOUT)
   ========================================================= */

/* Desktop & global */
.right-carousel-header {
    padding: 8px 12px;
    background: #f5f6f8;           /* fond neutre journal */
    color: #222;
    border-bottom: 1px solid #e3e6eb;
}

.right-carousel-header h5 {
    font-size: .9rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: .3px;
    text-transform: uppercase;
}

/* Mobile : encore plus discret */
@media (max-width: 576px) {
    .right-carousel-header {
        padding: 6px 10px;
    }

    .right-carousel-header h5 {
        font-size: .75rem;
        font-weight: 600;
    }
}


/* ===================== BOUTONS ===================== */
.btn-custom {
    background: rgba(62,54,46,0.7);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-custom:hover {
    background: rgba(62,54,46,0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.btn-custom2 {
    background: #000;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-custom2:hover {
    background: rgba(62,54,46,0.9);
    transform: translateY(-2px);
}

/* ===================== FEATURES ===================== */
.features-section {
    background: #fff;
    padding: 40px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.feature-box {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    transition: 0.3s;
}

.feature-box:hover {
    transform: translateY(-3px);
}

.feature-icon {
    font-size: 2.5rem;
    color: #667eea;
}

.feature-text h6 {
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
}

.feature-text p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

/* ===================== TÉMOIGNAGES ===================== */
.testimonial-card {
    padding: 1rem;
    transition: transform 0.4s, box-shadow 0.4s;
    background-color: #fff;
    border-radius: 16px;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.testimonial-content h5 {
    font-size: 1rem;
}

.testimonial-content p {
    font-size: 0.95rem;
    color: #333;
}

.testimonial-content small {
    font-size: 0.8rem;
    color: #888;
}

/* Carousel indicators */
.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    background-color: #0d6efd;
    border-radius: 50%;
    opacity: 0.4;
    margin: 0 4px;
}

.carousel-indicators .active {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(0);
    background-size: 100%, 100%;
}

.testimonial-card {
    padding: 1rem;
    transition: 0.4s;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    background-color: #0d6efd;
    border-radius: 50%;
    opacity: 0.4;
    margin: 0 4px;
}

.carousel-indicators .active {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(0);
}

/* ===================== SECTION LATEST ===================== */
.section-latest {
    background-color: #fbfbfb;
}

.section-latest .card {
    overflow: hidden;
    position: relative;
}

.section-latest .card img {
    height: 160px;
    object-fit: cover;
}

.section-latest .card-body {
    padding: 10px;
}

/* ===================== VIDEO ICON ===================== */
.video-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10;
}

.video-icon:hover {
    background: #ff4444;
    transform: scale(1.15);
}

/* ================= HOT DEALS – FORCE JOURNAL ================= */

.hot-deals-section {
    margin-bottom: 50px;
}


.hot-deals-section .product-card {
    border-radius: 4px !important;
    border: 1px solid #ddd !important;
    box-shadow: none !important;
}


.hot-deals-section .product-image {
    height: 80px !important;
    max-height: 80px !important;
    overflow: hidden !important;
}

.hot-deals-section .product-image img {
    height: 80px !important;
    width: 100% !important;
    object-fit: cover !important;
}

.hot-deals-section .product-info {
    padding: 4px 6px !important;
}

.hot-deals-section .product-name {
    font-size: 16px !important;
    line-height: 1.1 !important;
    height: 22px !important;
    margin: 0 0 2px 0 !important;
    overflow: hidden !important;
}

.hot-deals-section .product-price {
    font-size: 15px !important;
    font-weight: 700 !important;
}



/* ===== ULTRA DENSE GRID ===== */
@media (min-width: 1200px) {
    .hot-deals-section .col-lg-2_4 {
        width: 12.5% !important; /* 8 par ligne */
    }
}

@media (min-width: 1200px) {
    .col-lg-2_4 {
        width: 16.666% !important;
    }
}


/* ===================== PRODUITS ===================== */
.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.product-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4444;
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.product-info {
    padding: 16px;
}

.product-name {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #667eea;
}

/* ===================== CATEGORY MINI JOURNAL – PRO ===================== */

.category-mini-card {
    display: block;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e2e2e2;
    box-shadow: none;
    transition: background 0.2s ease;
}

.category-mini-card:hover {
    background: #fafafa;
}

/* ===== Image ===== */
.category-mini-img {
    height: 90px; /* 🔥 MINI */
    overflow: hidden;
    background: #eee;
}

.category-mini-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Body ===== */
.category-mini-body {
    padding: 6px 8px;
}

/* ===== Badge ===== */
.category-badge {
    display: inline-block;
    background: #222;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

/* ===== Text ===== */
.category-mini-body p {
    font-size: 15px;
    line-height: 1.2;
    color: #333;
    margin: 0 0 4px 0;
}

/* ===== Link ===== */
.category-link {
    font-size: 14px;
    font-weight: 600;
    color: #0077cc;
    text-transform: uppercase;
}

/* ===== Desktop Density ===== */
@media (min-width: 992px) {
    .category-journal-grid .col-md-4 {
        width: 20%; /* 5 par ligne */
    }
}

@media (min-width: 992px) {
    .category-journal-grid {
        justify-content: center;
        gap: 12px;
    }

    .category-journal-grid > div {
        flex: 0 0 18%;
        max-width: 18%;
    }
}

.category-mini-img {
    height: 110px; /* avant 90px */
}

.category-mini-body {
    padding: 8px 12px; /* avant 6px 8px */
}


/* ===================== RESPONSIVE ===================== */
@media (min-width: 992px) {
    .col-lg-2_4 {
        width: 20%;
        flex: 0 0 20%;
    }
}

@media (max-width: 480px) {
    .section-latest .card img {
        height: 140px;
    }
}


/* ===== MINI JOURNAL TENDANCES ===== */
.trends-section {
    background: #f4f6fb;
    padding: 50px 0;
}

.trends-title {
    font-size: 1.9rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 35px;
    color: #222;
}

.trends-subtitle {
    font-size: 1.05rem;
    font-weight: 700;
    color: #555;
    margin: 30px 0 15px;
}

/* CARD MINI JOURNAL */
.trend-mini {
    display: flex;
    gap: 10px;
    background: #fff;
    border-radius: 10px;
    padding: 8px;
    align-items: center;
    box-shadow: 0 3px 10px rgba(0,0,0,.06);
    transition: .25s;
}

.trend-mini:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,.12);
}

.trend-mini img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

/* TEXTE */
.trend-mini-body {
    flex: 1;
}

.trend-mini-title {
    font-size: .85rem;
    font-weight: 600;
    color: #222;
    line-height: 1.2;
    margin-bottom: 4px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trend-mini-meta {
    font-size: .7rem;
    color: #777;
}

/* BADGE */
.trend-mini-badge {
    background: #ff4d4d;
    color: white;
    font-size: .65rem;
    padding: 3px 8px;
    border-radius: 12px;
    margin-top: 5px;
    display: inline-block;
}
