/* ============================================
   PARASATIVA - DESIGN SYSTEM (Luxury Natural)
   ============================================ */

:root {
    --sage: #4a7c59;
    --sage-dark: #2e5238;
    --sage-pale: #e8f0eb;
    --gold: #c9a96e;
    --ivory: #f5f0e8;
    --white: #ffffff;
    --charcoal: #1a1a1a;
    --muted: #6b6b6b;
    --shadow: 0 10px 30px rgba(0,0,0,0.05);
    --radius: 12px;
}


/* Grille de la page produit */
/* Grille de la page produit */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 colonne sur Mobile */
    gap: 30px;
    align-items: start;
    margin-bottom: 50px;
}

/* Ajustement de l'image pour le Mobile */
.product-detail-grid img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: var(--radius);
}

/* Ajustements pour PC (écrans larges) */
@media (min-width: 992px) {
    .product-detail-grid {
        grid-template-columns: 1fr 1fr; /* 2 colonnes sur PC */
        gap: 60px;
    }

    .product-detail-grid img {
        /* On limite la taille de l'image sur PC pour qu'elle ne soit pas géante */
        max-width: 450px; 
        width: auto; /* Permet à l'image de garder ses proportions réelles */
    }
}

/* On passe à 2 colonnes seulement sur grand écran */
@media (min-width: 992px) {
    .product-detail-grid {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
}

/* Ajustement de l'image pour qu'elle soit bien centrée et visible */
.product-detail-grid img {
    width: 100%;
    max-width: 500px; /* Évite que l'image devienne géante sur tablette */
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Conteneur principal flexible */
.container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Grille de produits responsive */
.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* 1 colonne sur mobile, 2 sur tablette, 4 sur ordi */
.product-card {
    flex: 1 1 100%; /* Mobile par défaut */
}

@media (min-width: 600px) {
    .product-card { flex: 1 1 45%; } /* Tablette */
}

@media (min-width: 1000px) {
    .product-card { flex: 1 1 22%; } /* Desktop */
}

/* Images qui ne dépassent jamais */
img {
    max-width: 100%;
    height: auto;
}
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--white);
    color: var(--charcoal);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER */
.main-header {
    background: var(--white);
    padding: 20px 0;
    border-bottom: 1px solid var(--ivory);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    color: var(--sage-dark);
}

.logo span { color: var(--gold); }

.nav-menu a {
    text-decoration: none;
    color: var(--charcoal);
    margin-left: 25px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover { color: var(--sage); }

/* HERO SECTION */
.hero {
    background: linear-gradient(135deg, var(--sage-pale) 0%, var(--ivory) 100%);
    padding: 100px 0;
    text-align: center;
    margin-bottom: 60px;
}

.hero h1 {
    font-size: 48px;
    color: var(--sage-dark);
    margin-bottom: 20px;
}

.btn-main {
    display: inline-block;
    background: var(--sage);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    transition: transform 0.3s, background 0.3s;
}

.btn-main:hover {
    background: var(--sage-dark);
    transform: translateY(-3px);
}

/* PRODUCTS GRID */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 10px auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* PRODUCT CARD */
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--ivory);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.product-img-box {
    height: 250px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img-box img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.product-content { padding: 20px; }

.product-brand {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 1px;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--sage-dark);
    margin: 10px 0;
}

.btn-add {
    display: block;
    text-align: center;
    padding: 10px;
    border: 1.5px solid var(--sage);
    color: var(--sage);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-add:hover {
    background: var(--sage);
    color: white;
}
