/*
 * ILÉRAMI - Design System Global
 * Version : 2.0 (Avril 2026)
 * Palette : Naturel / Organique / Luxe
 */

/* --- 1. IMPORTS & VARIABLES --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&family=Playfair+Display:wght@700;800;900&display=swap');

:root {
    /* Couleurs principales */
    --color-primary: #2D5A27;
    --color-secondary: #7A9E7E;
    --color-accent: #C8A951;
    --color-bg: #F9F6F0;
    --color-text: #2C1A0E;
    --color-white: #FFFFFF;
    --color-gray: #E2E8F0;
    --color-success: #25D366;
    
    /* Typographie */
    --font-title: 'Playfair Display', serif;
    --font-body: 'DM Sans', sans-serif;
    
    /* Éléments UI */
    --shadow-card: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-hover: 0 10px 40px rgba(0,0,0,0.12);
    --radius-card: 16px;
    --radius-btn: 50px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Container sizes */
    --container-max: 1280px;
}

/* --- 2. RESET & BASE --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 800;
    line-height: 1.2;
    margin-top: 0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* --- 3. UTILITAIRES --- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.grid { display: grid; gap: 20px; }

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
}

/* --- 4. COMPOSANTS --- */

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: var(--radius-btn);
    font-weight: 700;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    gap: 10px;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: #244820;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(45, 90, 39, 0.2);
}

.btn-accent {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.btn-accent:hover {
    background-color: #b09447;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

/* Badges */
.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-new { background-color: var(--color-accent); color: white; }
.badge-stock { background-color: var(--color-secondary); color: white; }

/* Product Cards */
.product-card {
    background: var(--color-white);
    border-radius: var(--radius-card);
    padding: 20px;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.product-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: calc(var(--radius-card) - 4px);
    margin-bottom: 1.5rem;
}

.product-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.product-price {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1.1rem;
}

/* --- 5. HEADER & NAV --- */
header {
    background-color: rgba(249, 246, 240, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    padding: 15px 0;
}

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

.nav-logo {
    font-family: var(--font-title);
    font-size: 1.8rem;
    color: var(--color-primary);
}

.nav-menu {
    display: none;
    gap: 30px;
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
        align-items: center;
    }
    .nav-menu ul {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 30px;
        list-style: none;
        padding: 0;
        margin: 0;
    }
}

.nav-link {
    font-weight: 500;
    color: var(--color-text);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-primary);
}

/* --- 6. ANIMATIONS --- */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--color-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    z-index: 999;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    animation: pulse-whatsapp 2s infinite;
}

@keyframes pulse-whatsapp {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --- 7. FOOTER --- */
footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 80px 0 40px;
    width: 100%;
}

footer .container {
    width: 90%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 60px;
    width: 100%;
}

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid .footer-col:nth-child(3) { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
    .footer-grid { grid-template-columns: 1.5fr 1fr 1.5fr; }
    .footer-grid .footer-col:nth-child(3) { grid-column: auto; }
}

.footer-title {
    font-family: var(--font-title);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-accent);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--color-accent);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* --- 8. TRUST BANNER --- */
.trust-banner {
    background-color: var(--color-secondary);
    padding: 40px 0;
    color: white;
}

.trust-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
}

@media (min-width: 480px) {
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
    .trust-grid { grid-template-columns: repeat(4, 1fr); }
}

.trust-item i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* --- 9. RESPONSIVE --- */
@media (max-width: 767px) {
    .section-title { font-size: 1.8rem; }
    .section { padding: 40px 0; }
    .whatsapp-float { bottom: 20px; right: 20px; width: 50px; height: 50px; font-size: 24px; }
}

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1280px) {
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
