:root {
    --bg-color: #F2F1ED;
    --gold: #C5A059;
    --black: #1A1A1B;
    --ocre: #A04022;
    --text-dark: #121212;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
}/* --- CONFIGURATION NAVBAR --- */
.navbar {
    position: fixed; /* Reste en haut au scroll */
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(242, 241, 237, 0.9); /* Même beige que ton fond avec transparence */
    backdrop-filter: blur(10px); /* Effet de flou moderne */
    border-bottom: 1px solid rgba(26, 26, 27, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO */
.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--black);
}

.logo span {
    color: var(--ocre); /* Rappel de la couleur du texte 'AFRICAIN' */
    font-weight: 300;
    margin-left: 5px;
}

/* LIENS */
.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--black);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--gold);
    transition: 0.3s;
}

.nav-links a:hover::after, 
.nav-links a.active::after {
    width: 100%;
}

/* BOUTONS ET ICONES */
.nav-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--black);
    font-weight: 700;
}

.cart-btn {
    border: 1px solid var(--black);
    padding: 8px 15px;
    font-size: 0.75rem;
    transition: 0.3s;
}

.cart-btn:hover {
    background: var(--black);
    color: white;
}

/* Ajustement pour le header pour ne pas qu'il passe sous la nav */
.main-header {
    padding-top: 80px;
}

.main-header {
height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 0 8%;
}

.container {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

/* --- TEXTE --- */
.hero-text {
    flex: 1;
}

.tag {
    display: inline-block;
    background: #E8E5DF;
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
}

h1 {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 15px;
}

.accent {
    color: var(--ocre);
}

p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 40px;
}

.btn-primary {
    background: var(--black);
    color: white;
    border: none;
    padding: 15px 30px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary:hover {
    background: var(--ocre);
}

/* --- VISUEL --- */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.mask-container {
    position: relative;
    width: 350px;
    height: 450px;
}

.image-wrapper {
    position: relative;
    z-index: 5;
    background: white;
    padding: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.image-wrapper img {
    width: 100%;
    display: block;
}

/* --- CADRES --- */
.frame {
    position: absolute;
    border: 2px solid;
    z-index: 1;
}

.gold-frame {
    width: 100%;
    height: 100%;
    border-color: var(--gold);
    top: -20px;
    left: -20px;
    transform: rotate(-5deg);
}

.black-frame {
    width: 110%;
    height: 110%;
    border-color: var(--black);
    top: -15px;
    right: -30px;
    opacity: 0.3;
    transform: rotate(10deg);
}

/* --- DECORATIONS --- */
.geo-decor {
    position: absolute;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0.2;
    z-index: 1;
}

.circle-top {
    width: 150px;
    height: 150px;
    top: 5%;
    right: 40%;
}

.circle-middle {
    width: 300px;
    height: 300px;
    bottom: -50px;
    right: 25%;
    background: linear-gradient(to top, var(--gold), transparent);
}

.corner-line {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 1px solid var(--black);
    opacity: 0.2;
}

.top-left { top: -100px; left: -100px; transform: rotate(45deg); }
.bottom-right { bottom: -100px; right: -100px; transform: rotate(45deg); }

.magazine-grid {
    padding:0px 5%;
    background-color: var(--bg-color);
    position: relative;
}

.grid-header h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 60px;
    letter-spacing: -1px;
}

.grid-header span {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    color: var(--ocre);
}

/* Le Container Grid */
.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 40px;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

/* Style des Cartes */
.product-card {
    position: relative;
    background: white;
    padding: 15px;
    transition: transform 0.4s ease;
    z-index: 2;
}

.product-card img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(0.2);
    transition: 0.4s;
}

.product-card:hover {
    transform: translateY(-10px);
    z-index: 10;
}

.product-card:hover img {
    filter: grayscale(0);
}

/* Cadres Autour des Produits */
.frame {
    position: absolute;
    inset: -10px;
    border: 1px solid;
    z-index: -1;
    pointer-events: none;
}

.frame.gold { border-color: var(--gold); border-width: 2px; }
.frame.black { border-color: var(--black); opacity: 0.3; transform: rotate(-3deg); }

/* Positionnement Spécifique (Effet Magazine) */
.central {
    grid-column: 2 / 4;
    grid-row: 1 / 3;
    padding: 30px;
}

.p1 { grid-column: 1; grid-row: 1; margin-top: 50px; }
.p2 { grid-column: 4; grid-row: 1; transform: scale(0.9); }
.p3 { grid-column: 4; grid-row: 2; margin-top: -14px; }

/* Info Text */
.product-info {
    margin-top: 15px;
    text-align: center;
}

.product-info h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 700;
}

.price {
    color: var(--ocre);
    font-weight: bold;
    font-size: 0.8rem;
}

/* Points de décoration stylés */
.dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--gold);
    border-radius: 50%;
    z-index: 1;
}

.d1 { top: 20%; left: 5%; }
.d2 { bottom: 10%; right: 15%; }
.p4 {
    grid-column: 1;
    grid-row: 2;
   margin-top: -6px;
}
/* --- RESPONSIVE DESIGN --- */

/* Tablettes et petits ordinateurs */
@media (max-width: 1024px) {
    h1 {
        font-size: 3.5rem;
    }

    .grid-container {
        grid-template-columns: repeat(2, 1fr); /* Passe en 2 colonnes */
        gap: 30px;
    }

    .central {
        grid-column: span 2; /* Prend toute la largeur sur tablette */
        grid-row: auto;
    }

    .p1, .p2, .p3, .p4 {
        grid-column: auto;
        grid-row: auto;
        margin-top: 0; /* On annule les décalages pour la clarté */
        transform: none;
    }
}

/* Mobiles (Smartphones) */
@media (max-width: 768px) {
    .navbar {
        height: 60px;
    }

    .nav-links {
        display: none; /* Cache les liens (prévoir un menu burger plus tard) */
    }

    .main-header {
        height: auto;
        padding: 100px 5% 50px 5%;
        flex-direction: column; /* Texte au dessus de l'image */
        text-align: center;
    }

    .container {
        flex-direction: column;
    }

    h1 {
        font-size: 2.5rem;
        margin-top: 20px;
    }

    .hero-visual {
        margin-top: 50px;
        width: 100%;
    }

    .mask-container {
        width: 280px; /* Plus petit sur mobile */
        height: 380px;
        margin: 0 auto;
    }

    /* Grille Magazine en une seule colonne */
    .grid-container {
        grid-template-columns: 1fr; 
        gap: 50px;
    }

    .central {
        grid-column: 1;
    }

    .grid-header h2 {
        font-size: 1.8rem;
        text-align: center;
    }

    /* On cache les petites décos qui encombrent l'écran mobile */
    .dot, .corner-line, .circle-top {
        display: none;
    }
}

.product-detail {
    padding: 150px 5% 100px;
    background-color: #cfbb95;
    min-height: 100vh;
}

.detail-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    max-width: 1300px;
    margin: 0 auto;
}

/* --- GALERIE --- */
.product-gallery {
    position: sticky;
    top: 120px;
}

.main-image {
    position: relative;
    background: #fff;
    padding: 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.main-image img {
    width: 100%;
    display: block;
    transition: 0.5s ease;
}

.frame-decor {
    position: absolute;
    inset: 20px;
    border: 1px solid var(--gold);
    pointer-events: none;
    opacity: 0.5;
}

.thumbnails {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    background: #fff;
    padding: 5px;
    border: 2px solid transparent;
    transition: 0.3s;
}

.thumb.active { border-color: var(--ocre); }

/* --- INFOS --- */
.breadcrumb {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--ocre);
    margin-bottom: 20px;
}

.product-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 30px;
}

.product-title span {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--black);
}

.stock-status {
    padding: 5px 12px;
    border: 1px solid var(--black);
    font-size: 0.7rem;
    text-transform: uppercase;
}

.product-description h3 {
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.product-description p {
    line-height: 1.8;
    color: #444;
    margin-bottom: 40px;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 30px;
    margin-bottom: 50px;
}

.spec-item { font-size: 0.9rem; }

/* BOUTONS */
.action-buttons {
    display: flex;
    gap: 15px;
}

.btn-buy {
    flex: 1;
    background: var(--black);
    color: white;
    border: none;
    padding: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn-buy:hover { background: var(--ocre); }

.btn-wish {
    width: 60px;
    background: white;
    border: 1px solid var(--black);
    cursor: pointer;
    font-size: 1.2rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .detail-container { grid-template-columns: 1fr; }
    .product-gallery { position: relative; top: 0; }
    .product-title { font-size: 2.5rem; }
}

.btn-whatsapp {
    flex: 1;
    background: #25D366; /* Vert WhatsApp */
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 2px;
}

.btn-whatsapp:hover {
    background: #128C7E; /* Vert plus sombre au survol */
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp svg {
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1));
}

/* On garde le bouton Wish tel quel ou on l'adapte */
.btn-wish {
    width: 65px;
    background: transparent;
    border: 1px solid var(--black);
    color: var(--black);
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn-wish:hover {
    background: var(--black);
    color: white;
}

.collection-page {
    padding: 150px 8% 100px;
    background-color: #cfbb95;
}

.collection-intro {
    text-align: center;
    margin-bottom: 60px;
}

.collection-intro h1 {
    font-size: 3.5rem;
    font-weight: 900;
}

.collection-intro span {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    color: var(--ocre);
}

/* BARRE DE FILTRES */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 80px;
}

.filter-btn {
    background: transparent;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    cursor: pointer;
    padding: 10px 20px;
    transition: 0.3s;
    border-bottom: 2px solid transparent;
}

.filter-btn.active, .filter-btn:hover {
    color: var(--ocre);
    border-bottom: 2px solid var(--ocre);
}

/* GRILLE DE PRODUITS */
.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 50px;
}

.product-item {
    background: transparent;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}

.product-frame {
    position: relative;
    background: #fff;
    padding: 20px;
    overflow: hidden;
    box-shadow: 15px 15px 40px rgba(0,0,0,0.05);
}

.product-frame img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    transition: transform 0.6s ease;
}

/* OVERLAY AU HOVER */
.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 27, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.4s;
}

.product-item:hover .product-overlay {
    opacity: 1;
}

.product-item:hover .product-frame img {
    transform: scale(1.05);
}

.view-btn {
    color: white;
    text-decoration: none;
    border: 1px solid white;
    padding: 12px 25px;
    font-size: 0.8rem;
    font-weight: 700;
    transition: 0.3s;
}

.view-btn:hover {
    background: white;
    color: var(--black);
}

/* DETAILS SOUS L'IMAGE */
.product-details {
    margin-top: 20px;
    text-align: center;
}

.product-details h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.product-price {
    font-size: 0.9rem;
    color: var(--ocre);
    font-weight: 900;
}



/* État final quand le produit devient visible */
.product-item.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

.product-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.product-item.reveal-active {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================================
   RESPONSIVE GLOBAL OPTIMISÉ
   ============================================================ */

/* --- 1. NAVBAR MOBILE --- */
@media (max-width: 992px) {
    .nav-links {
        display: none; /* Cache les liens sur tablette/mobile pour un menu burger propre */
    }
    
    .nav-container {
        width: 95%;
    }

    .logo {
        font-size: 1.2rem;
    }

    .cart-btn span {
        display: none; /* Cache "(0)" pour gagner de la place */
    }
}

/* --- 2. HERO SECTION (HAUT DE PAGE) --- */
@media (max-width: 1024px) {
    .main-header {
        height: auto;
        padding: 120px 5% 60px;
        flex-direction: column;
        text-align: center;
    }

    .container {
        flex-direction: column;
        gap: 50px;
    }

    h1 {
        font-size: 3.2rem;
        letter-spacing: -1px;
    }

    .mask-container {
        width: 300px;
        height: 400px;
    }

    /* Désactivation des rotations de cadres trop agressives sur tablette */
    .gold-frame, .black-frame {
        transform: rotate(0);
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.4rem;
    }
    
    p {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .mask-container {
        width: 260px;
        height: 340px;
    }
}

/* --- 3. GRILLE MAGAZINE (ACCUEIL) --- */
@media (max-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur tablette */
        gap: 25px;
    }

    .central {
        grid-column: span 2;
        padding: 20px;
    }

    /* On réinitialise les décalages "Magazine" pour la clarté */
    .p1, .p2, .p3, .p4 {
        grid-column: auto;
        grid-row: auto;
        margin-top: 0;
        transform: none;
    }
}

@media (max-width: 768px) {
    .grid-header h2 {
        font-size: 1.8rem;
        margin-bottom: 40px;
        text-align: center;
    }

    .grid-container {
        grid-template-columns: 1fr; /* 1 seule colonne sur mobile */
    }

    .central {
        grid-column: 1;
    }

    /* On cache les éléments décoratifs qui polluent le scroll mobile */
    .dot, .geo-decor, .corner-line, .frame.black {
        display: none;
    }
}

/* --- 4. PAGE DÉTAIL PRODUIT --- */
@media (max-width: 900px) {
    .product-detail {
        padding: 100px 5% 50px;
    }

    .detail-container {
        grid-template-columns: 1fr; /* Image au dessus du texte */
        gap: 40px;
    }

    .product-gallery {
        position: relative;
        top: 0;
    }

    .product-title {
        font-size: 2.2rem;
        text-align: center;
    }

    .product-meta {
        justify-content: center;
        flex-wrap: wrap;
    }

    .action-buttons {
        flex-direction: column; /* Boutons l'un sur l'autre */
    }

    .btn-wish {
        width: 100%;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .main-image {
        padding: 20px;
    }
    
    .specs-grid {
        grid-template-columns: 1fr; /* Specs en liste simple */
    }
}

/* --- 5. PAGE COLLECTION --- */
@media (max-width: 1024px) {
    .collection-page {
        padding: 120px 5% 60px;
    }

    .collection-intro h1 {
        font-size: 2.8rem;
    }

    .filter-bar {
        overflow-x: auto; /* Permet de swiper les filtres sur mobile */
        justify-content: flex-start;
        padding-bottom: 15px;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 768px) {
    .product-list {
        grid-template-columns: 1fr; /* Un seul produit par ligne pour l'impact visuel */
        gap: 30px;
    }

    .product-frame img {
        height: 350px;
    }

    /* Sur mobile, on affiche un peu l'overlay ou on le remplace par un clic direct */
    .product-overlay {
        display: none; /* L'effet hover est difficile sur mobile */
    }
    
    /* On rend le bouton voir plus toujours accessible ou on rend l'image cliquable */
}

/* --- 6. FIX GÉNÉRAL POUR LES IMAGES --- */
img {
    max-width: 100%;
    height: auto;
}