/* --- 1. CONFIGURATION GÉNÉRALE --- */
:root {
    --primary-color: #ffcc00; 
    --dark-color: #1a1a1a;
    --light-bg: #f4f4f4;
    --white: #ffffff;
    --text-main: #333;
    --whatsapp-color: #25D366;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--light-bg);
    color: var(--text-main);
    overflow-x: hidden;
}

/* --- 2. BANDEAU DÉFILANT --- */
.ticker-wrap {
    width: 100%; overflow: hidden; background: var(--dark-color);
    padding: 12px 0; border-top: 1px solid var(--primary-color);
}
.ticker { display: flex; white-space: nowrap; animation: ticker 25s linear infinite; }
.ticker-item { color: var(--white); font-weight: bold; font-size: 0.9rem; padding-right: 50px; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- 3. NAVIGATION --- */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 5%; background: var(--dark-color); color: var(--white);
    position: sticky; top: 0; z-index: 1000; box-shadow: var(--shadow);
}
.logo { display: flex; align-items: center; font-size: 1.4rem; font-weight: 800; }
.logo span { color: var(--primary-color); }
.cart-status { position: relative; cursor: pointer; font-size: 1.4rem; }
#cart-count {
    position: absolute; top: -8px; right: -10px;
    background: var(--primary-color); color: var(--dark-color);
    font-size: 0.75rem; font-weight: bold; min-width: 20px;
    height: 20px; display: flex; align-items: center; justify-content: center; border-radius: 50%;
}

/* --- 4. SLIDER D'ACCUEIL --- */
.slider-container { 
    position: relative; 
    height: 65vh; 
    width: 100%; 
    overflow: hidden; 
    background-color: #000; /* Le noir est ici, on va le couvrir */
}

.slide {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    opacity: 0; 
    z-index: 1; /* Reste en dessous */
    transition: opacity 1.5s ease-in-out; /* Un fondu plus lent pour cacher le noir */
    
    /* REGLAGES D'IMAGE */
    background-size: cover !important; 
    background-position: center center; 
    background-repeat: no-repeat; 
    
    display: flex; 
    align-items: center; 
    justify-content: center;
}

/* L'IMAGE QUI S'AFFICHE */
.slide.active { 
    opacity: 1 !important; 
    z-index: 2; /* Passe au-dessus de tout */
}

.slide-content { 
    text-align: center; 
    color: #ffffff; 
    z-index: 10; 
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5); /* Pour mieux lire le texte */
}
/* --- 5. FILTRES & RECHERCHE --- */
.shop-controls { padding: 30px 5% 10px; background: var(--white); }
.search-container { position: relative; max-width: 500px; margin: 0 auto 20px; }
.search-container input { width: 100%; padding: 12px 40px 12px 15px; border: 1px solid #ddd; border-radius: 25px; outline: none; }
.filter-bar { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.filter-btn { padding: 8px 20px; border: none; background: #eee; border-radius: 20px; cursor: pointer; font-weight: 600; transition: 0.3s; }
.filter-btn.active { background: var(--primary-color); color: var(--dark-color); }

/* --- 6. GRILLE DE PRODUITS (STABILISÉE) --- */
.container { padding: 40px 5%; }
.section-title { text-align: center; margin-bottom: 40px; font-size: 2rem; font-weight: 800; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--white); 
    padding: 12px; 
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); 
    display: flex;
    flex-direction: column;
    height: 450px; 
    transition: transform 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* On le met à l'extérieur pour qu'il soit bien reconnu */
.category-tag {
    font-size: 0.7rem;
    background: #f1f1f1;
    padding: 3px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    color: #888;
    display: inline-block; /* Pour qu'il respecte bien les marges */
    margin-bottom: 5px;
}

.product-media { 
    width: 100%; 
    height: 220px !important; 
    aspect-ratio: 1 / 1; 
    object-fit: contain; 
    background: #f8f8f8; 
    border-radius: 10px;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.product-info { flex-grow: 1; display: flex; flex-direction: column; justify-content: flex-start; }
.product-info h3 { 
    font-size: 1rem; 
    line-height: 1.2;
    height: 40px; 
    overflow: hidden; 
    margin-bottom: 5px; 
    color: var(--dark-color); 
}

.price { color: #e67e22; font-size: 1.2rem; font-weight: 800; margin: 5px 0; }

.btn-buy {
    width: 100%; padding: 12px; background: var(--dark-color); color: white;
    border: none; border-radius: 8px; cursor: pointer; font-weight: bold;
    margin-top: auto;
}

/* --- 7. SERVICES & VIDEOS --- */
.services-section-visual { 
    padding: 100px 5%; border-top: 3px solid var(--primary-color);
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), 
                url('https://images.pexels.com/photos/1036936/pexels-photo-1036936.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1') center/cover fixed;
}
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.service-card {
    background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(15px);
    padding: 40px 25px; border-radius: 25px; text-align: center; color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-section { padding: 80px 5%; background: var(--white); }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.video-container { position: relative; padding-bottom: 56.25%; height: 0; border-radius: 20px; overflow: hidden; }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* --- 8. DEMANDER UN DEVIS (FORMSPREE INTEGRATION) --- */
.devis-section { padding: 60px 5%; background: #fff; }
.devis-box {
    background: #f9f9f9;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto;
}
.devis-box form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.devis-box input, 
.devis-box textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}
.devis-box input:focus, 
.devis-box textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(255, 204, 0, 0.3);
}
.devis-box textarea { resize: none; }

/* --- 9. MODALE & PANIER --- */
.modal { display: none; position: fixed; z-index: 3000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); overflow-y: auto; }
.modal-content { background: var(--white); margin: 5% auto; padding: 30px; border-radius: 20px; width: 90%; max-width: 600px; position: relative; }
.close-modal { position: absolute; right: 20px; top: 15px; font-size: 35px; cursor: pointer; }

.cart-sidebar {
    position: fixed; right: -100%; top: 0; width: 380px; height: 100%;
    background: var(--white); z-index: 2000; transition: 0.4s;
    display: flex; flex-direction: column; padding: 25px;
}
.cart-sidebar.active { right: 0; }

/* --- 10. FOOTER & WHATSAPP --- */
.footer { background: var(--dark-color); color: var(--white); padding: 60px 5% 30px; }
.wa-btn {
    display: inline-block; font-weight: 700; background: var(--dark-color);
    color: var(--white); padding: 10px 20px; border-radius: 25px;
    border: 2px solid var(--primary-color); animation: pulse-wa 2s infinite; margin-top: 10px;
}
@keyframes pulse-wa { 0% { box-shadow: 0 0 0 0 rgba(255, 204, 0, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(255, 204, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 204, 0, 0); } }

/* --- 11. RESPONSIVE MOBILE --- */
@media (max-width: 600px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-card { height: 380px; padding: 10px; }
    .product-media { height: 160px !important; min-height: 160px; }
    .product-info h3 { font-size: 0.85rem; height: 35px; }
    .price { font-size: 1.1rem; }
    .cart-sidebar { width: 100%; }
    .devis-box { padding: 25px 15px; }
}

/* --- 12. DESIGN DES ONGLETS JUMIA --- */
.product-tabs { display: flex; border-bottom: 2px solid #eee; margin-top: 15px; gap: 10px; overflow-x: auto; }
.tab-btn { padding: 10px 15px; cursor: pointer; border: none; background: none; font-weight: bold; color: #888; font-size: 0.85rem; white-space: nowrap; transition: 0.3s; }
.tab-btn.active { color: var(--primary-color); border-bottom: 3px solid var(--primary-color); }
.tab-content { display: none; padding: 15px 0; font-size: 0.95rem; line-height: 1.5; animation: fadeIn 0.4s ease; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.sale-popup {
    position: fixed;
    bottom: 20px;
    left: -400px; /* Caché par défaut à gauche */
    background: white;
    padding: 10px 15px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 5000;
    transition: 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 5px solid #ffcc00;
    min-width: 250px;
}

.sale-popup.show {
    left: 20px; /* Apparaît à l'écran */
}

.notif-img img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.notif-text p {
    margin: 0;
    font-size: 0.85rem;
    font-weight: bold;
}

.notif-text span {
    display: block;
    font-size: 0.8rem;
    color: #555;
}

.notif-text small {
    color: #999;
    font-size: 0.7rem;
}
.video-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.video-card {
    background: white;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 15px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-card h3 {
    font-size: 1.1rem;
    color: var(--dark-color);
}
.promo-banner {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
    color: white;
    overflow: hidden; /* Cache le texte qui dépasse */
    padding: 10px 0;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 1000;
    white-space: nowrap; /* Empêche le texte de revenir à la ligne */
}

.moving-text {
    display: inline-block;
    padding-left: 100%; /* Démarre hors de l'écran */
    animation: marquee 15s linear infinite; /* 15 secondes pour traverser */
}

@keyframes marquee {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}
/* Style de la Section Conseils */
.advice-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.advice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.advice-card {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    text-align: center;
    border-top: 5px solid #ccc; /* Bordure par défaut */
}

.advice-card:hover {
    transform: translateY(-10px);
}

.advice-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* Couleurs spécifiques par catégorie pour rassurer l'œil */
.agri-border { border-top-color: #27ae60; } /* Vert Agriculture */
.bible-border { border-top-color: #2980b9; } /* Bleu Spiritualité */
.tech-border { border-top-color: #f39c12; } /* Orange Tech */

.advice-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #333;
}

.advice-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    display: inline-block;
    color: #e74c3c;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
}

.read-more:hover {
    border-bottom: 2px solid #e74c3c;
}
.btn-load {
    background-color: #2c3e50;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    border: 2px solid #2c3e50;
}

.btn-load:hover {
    background-color: white;
    color: #2c3e50;
}
.quick-nav {
    position: fixed;
    bottom: 30px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

.quick-nav button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background-color: #e74c3c; /* Ton rouge Wazu */
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-nav button:hover {
    transform: scale(1.1);
    background-color: #333;
}

/* On cache le bouton "Remonter" au début, il apparaîtra au défilement */
#backToTop {
    opacity: 0;
    visibility: hidden;
}
.search-container {
    max-width: 600px;
    margin: 0 auto 30px auto;
    position: relative;
    padding: 0 15px;
}

#wazu-search {
    width: 100%;
    padding: 15px 25px;
    padding-right: 50px;
    border: 2px solid #eee;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

#wazu-search:focus {
    border-color: #e74c3c;
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.2);
}

.search-icon {
    position: absolute;
    right: 35px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #999;
}
.about-section {
    padding: 60px 20px;
    background: #f9f9f9;
}

.about-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.about-content {
    flex: 1;
    min-width: 300px;
}

.about-content h2 {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-features {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.about-features li {
    margin-bottom: 10px;
    font-weight: bold;
}

/* Style du Slider */
.about-slider {
    flex: 1;
    min-width: 300px;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.slide {
    display: none;
    position: relative;
}

.slide.active {
    display: block;
    animation: fadeIn 0.8s ease;
}

.slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 5px 15px;
    border-radius: 5px;
}

/* Boutons Navigation */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
    transition: 0.3s;
}

.prev { left: 10px; }
.next { right: 10px; }

.prev:hover, .next:hover { background: #fff; color: orange; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.config-section {
    padding: 80px 5%;
    background: #ffffff;
    color: #333;
}

.config-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.config-text {
    flex: 1;
    min-width: 350px;
}

.config-text h2 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 25px;
}

.config-item {
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 4px solid orange; /* Couleur Wazu */
}

.btn-config {
    margin-top: 20px;
    padding: 12px 30px;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-config:hover { background: orange; }

/* --- Slider Styling --- */
.config-slider {
    flex: 1;
    min-width: 350px;
    position: relative;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.config-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.config-slide.active { opacity: 1; }

.config-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.config-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: orange;
    color: white;
    padding: 8px 15px;
    font-size: 0.9rem;
    border-radius: 20px;
    font-weight: bold;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active { background: white; width: 25px; border-radius: 10px; }
.auth-section {
    padding: 60px 5%;
    background: #f4f4f4;
}

.auth-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.newsletter-box, .login-box {
    flex: 1;
    min-width: 300px;
}

.auth-divider {
    font-weight: bold;
    color: #ccc;
    font-size: 1.2rem;
}

h2 { color: #2c3e50; margin-bottom: 15px; }

input {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
}

.btn-sub {
    width: 100%;
    padding: 12px;
    background: orange;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

.btn-sub:hover, .btn-login:hover { opacity: 0.9; transform: translateY(-2px); }

.forgot-pass {
    display: block;
    margin-top: 10px;
    font-size: 0.8rem;
    color: #666;
    text-decoration: none;
}

/* Version Mobile */
@media (max-width: 768px) {
    .auth-container { flex-direction: column; text-align: center; }
    .auth-divider { margin: 20px 0; }
    @keyframes wazuFade {
    0% { opacity: 1; }
    45% { opacity: 1; }
    55% { opacity: 0; }
    95% { opacity: 0; }
    100% { opacity: 1; }
}
}