/* --- CONFIGURATION GÉNÉRALE --- */
:root {
    --black: #0a0a0a;
    --white: #ffffff;
    --gray: #1a1a1a;
    --light-gray: #888888;
    --accent: #ff4d4d; /* Pour les ruptures de stock */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica', Arial, sans-serif;
}

body.dark-theme {
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
}

/* --- NAVIGATION --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(10, 10, 10, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--gray);
}

.navbar a {
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

/* --- GRILLE DE PRODUITS (LA SOLUTION) --- */
.shop-container {
    padding: 120px 5% 50px;
}

.section-title {
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 5px;
    margin: 40px 0;
    text-transform: uppercase;
}

.products-grid {
    display: grid;
    /* PC : 3 colonnes strictement */
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
    margin-bottom: 60px;
}

/* --- CARTE PRODUIT --- */
.product-card {
    background: transparent;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Force toutes les images à avoir le même ratio (ex: 4/5) */
.product-image-container {
    width: 100%;
    aspect-ratio: 4 / 5; 
    background-color: var(--gray);
    overflow: hidden;
    margin-bottom: 15px;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Coupe l'image proprement sans la déformer */
    cursor: pointer;
    transition: 0.5s;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-info {
    text-align: center;
}

.product-info h3 {
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 8px;
    height: 40px; /* Force la hauteur pour aligner les prix si le titre est long */
    display: flex;
    align-items: center;
    justify-content: center;
}

.price {
    font-weight: bold;
    color: var(--white);
    margin-bottom: 15px;
}

.btn-details {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: white;
    border: 1px solid white;
    cursor: pointer;
    font-size: 0.7rem;
    letter-spacing: 2px;
    transition: 0.3s;
}

.btn-details:hover {
    background: white;
    color: black;
}

/* --- ÉTAT RUPTURE DE STOCK --- */
.out-of-stock-card {
    position: relative;
    opacity: 0.7;
}

.oos-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent);
    color: white;
    padding: 5px 10px;
    font-size: 0.6rem;
    z-index: 10;
    letter-spacing: 1px;
}

/* --- RESPONSIVE : MOBILE --- */
@media (max-width: 768px) {
    .products-grid {
        /* Mobile : 2 colonnes strictement */
        grid-template-columns: repeat(2, 1fr);
        gap: 15px; /* Moins d'espace sur mobile */
    }

    .shop-container {
        padding-top: 100px;
    }

    .product-info h3 {
        font-size: 0.75rem;
        height: 35px;
    }
}

/* --- FOOTER --- */
.main-footer {
    border-top: 1px solid var(--gray);
    padding: 50px 5% 20px;
    background: #050505;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-logo img {
    width: 100px;
}

.footer-column h3 {
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: var(--light-gray);
}

.footer-column a {
    display: block;
    color: white;
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 0.8rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    font-size: 0.6rem;
    color: var(--light-gray);
    letter-spacing: 2px;
}
.dropcap::first-letter {
    font-size: 3.5rem;
    float: left;
    margin-right: 10px;
    color: #fff;
    font-weight: bold;
    line-height: 1;
}

.heritage-wrapper {
    padding: 100px 5% 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.heritage-header {
    text-align: center;
    margin-bottom: 60px;
}

.brand-sub {
    letter-spacing: 5px;
    font-size: 0.8rem;
    opacity: 0.7;
}

.elegant-line {
    width: 50px;
    height: 1px;
    background: #fff;
    margin: 20px auto;
}
/* --- PAGE DÉTAIL PRODUIT --- */
.detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Image à gauche, Texte à droite */
    gap: 50px;
    padding: 120px 5% 50px;
    max-width: 1300px;
    margin: 0 auto;
    min-height: 80vh;
}

/* Zone Images */
.product-images-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 100px; /* L'image reste fixe quand on scroll sur PC */
}

.main-view-container {
    width: 100%;
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.main-view-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Sélecteur de vue (Front/Back) */
.view-selector {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.thumb-btn {
    width: 70px;
    height: 70px;
    border: 1px solid #333;
    background: #000;
    cursor: pointer;
    overflow: hidden;
    padding: 0;
    transition: 0.3s;
}

.thumb-btn.active {
    border-color: #fff;
}

.thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.thumb-btn.active img {
    opacity: 1;
}

/* Infos Produit */
.product-details-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-details-info h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.detail-price {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 30px;
    font-weight: 300;
}

/* Sélecteur de Tailles */
.size-selection {
    margin-bottom: 40px;
}

.size-selection p {
    font-size: 0.8rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.size-options {
    display: flex;
    gap: 10px;
}

.size-btn {
    width: 45px;
    height: 45px;
    border: 1px solid #333;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.3s;
}

.size-btn:hover {
    border-color: #666;
}

.size-btn.selected {
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* Boutons d'Action */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-add-cart {
    background: #fff;
    color: #000;
    border: none;
    padding: 18px;
    font-weight: bold;
    cursor: pointer;
    letter-spacing: 2px;
    transition: 0.3s;
}

.btn-add-cart:hover {
    background: #ccc;
}

.btn-add-cart:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 900px) {
    .detail-container {
        grid-template-columns: 1fr; /* On passe sur une seule colonne */
        padding-top: 80px;
    }

    .product-images-view {
        position: relative;
        top: 0;
    }

    .product-details-info h1 {
        font-size: 1.8rem;
    }
}
.contact-simple-wrapper {
    padding: 150px 5% 100px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-links-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 50px;
}

.contact-card-simple {
    padding: 30px;
    border: 1px solid #222;
    transition: 0.3s;
}

.contact-card-simple:hover {
    border-color: #fff;
}

.contact-card-simple h3 {
    font-size: 0.9rem;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.contact-card-simple p {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-bottom: 20px;
}

.link-btn {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid #fff;
    padding-bottom: 5px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: 0.3s;
}

.link-btn:hover {
    opacity: 0.7;
    padding-left: 10px;
}
/* --- STRUCTURE HÉRITAGE --- */
.heritage-wrapper {
    padding: 120px 5% 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.heritage-grid {
    display: flex;
    flex-direction: column; /* Par défaut : tout l'un sous l'autre (Mobile) */
    gap: 60px;
    align-items: center;
}

.heritage-text-section {
    width: 100%;
    max-width: 600px;
    text-align: center; /* Centré sur mobile pour plus d'élégance */
}

.heritage-text-section h2 {
    font-size: 1.8rem;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.heritage-text-section p {
    line-height: 1.8;
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 20px;
}

/* Image Heritage */
.heritage-image-section {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 4 / 5; /* Format portrait élégant */
    overflow: hidden;
}

.heritage-image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%); /* Touche artistique */
}

/* --- VERSION ORDINATEUR (PC) --- */
@media (min-width: 1024px) {
    .heritage-grid {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Deux colonnes sur PC */
        gap: 100px;
        align-items: center;
    }

    .heritage-text-section {
        text-align: left; /* Aligné à gauche sur PC */
    }

    /* On fait en sorte que l'image soit au milieu ou à droite selon le bloc */
    .heritage-image-section {
        grid-column: 2;
        grid-row: 1 / 3; /* L'image prend de la hauteur sur PC */
    }
}

/* Effet Dropcap (La première lettre) */
.dropcap::first-letter {
    font-size: 4rem;
    float: left;
    margin-right: 15px;
    color: #fff;
    font-family: serif; /* Style luxueux */
    line-height: 0.8;
}
/* --- SECTION IMAGE HÉRITAGE --- */
.heritage-image-section {
    width: 100%;
    max-width: 500px; /* Largeur max sur PC */
    margin: 0 auto;
    overflow: hidden;
    border-radius: 4px; /* Optionnel : un léger arrondi pour le style */
}

.heritage-image-section img {
    width: 100%;
    height: auto; /* Laisse l'image garder ses proportions */
    display: block;
    object-fit: cover;
}

/* --- CORRECTIF MOBILE SPÉCIFIQUE --- */
@media (max-width: 768px) {
    .heritage-image-section {
        max-width: 90%; /* On laisse un peu de marge sur les côtés */
        max-height: 400px; /* LIMITE LA HAUTEUR sur mobile pour ne pas tout envahir */
    }
    
    .heritage-image-section img {
        height: 400px; /* On force une hauteur raisonnable */
        object-fit: cover; /* L'image est recadrée proprement au lieu d'être écrasée */
    }

    .heritage-grid {
        gap: 30px; /* On réduit l'espace entre texte et image sur mobile */
    }
}
/* --- FOOTER GLOBAL --- */
.main-footer {
    background-color: #000;
    padding: 60px 5% 30px;
    border-top: 1px solid #1a1a1a;
    color: #fff;
}

.footer-content {
    display: flex; /* Active l'alignement horizontal */
    justify-content:间-between; /* Espace le logo des liens */
    align-items: flex-start;
    flex-wrap: wrap; /* Permet de passer à la ligne si pas assez de place */
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

/* Zone Logo à gauche */
.footer-logo {
    flex: 1; /* Prend l'espace nécessaire */
    min-width: 150px;
}

.footer-logo img {
    width: 80px;
    filter: brightness(0.9);
}

/* Zone des colonnes de liens */
.footer-links {
    display: flex; /* Aligne les colonnes SHOP, MAISON, RÉSEAUX entre elles */
    gap: 60px; /* Espace entre chaque colonne */
    flex: 2;
    justify-content: flex-end; /* Aligne les liens à droite sur PC */
}

.footer-column h3 {
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: #fff;
    text-transform: uppercase;
}

.footer-column a {
    display: block; /* Un lien par ligne dans la colonne */
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 10px;
    transition: 0.3s;
}

.footer-column a:hover {
    color: #fff;
    padding-left: 5px;
}

/* Ligne du bas (Copyright) */
.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #1a1a1a;
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: #444;
}

/* --- ADAPTATION MOBILE --- */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column; /* On repasse en vertical sur mobile */
        align-items: center;
        text-align: center;
    }

    .footer-links {
        flex-direction: column; /* Les colonnes SHOP/RESEAUX l'une sous l'autre */
        gap: 30px;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .footer-logo {
        margin-bottom: 20px;
    }
}
