/* ============================================
   MIEL & HARMONIE - STYLES PRINCIPAUX
   Système e-commerce premium
   ============================================ */

/* Reset & Variables */
:root {
    --gold-primary: #D4AF37;
    --gold-bright: #FDB913;
    --green-forest: #2D5016;
    --green-dark: #1A3A1A;
    --cream-white: #FFFEF0;
    --soft-black: #1A1A1A;
    --orange-warm: #FF8C42;
    --orange-light: #FFB347;
    --light-gray: #F5F5F5;
    --medium-gray: #CCCCCC;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--soft-black);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Navigation */
nav {
    background: rgba(255, 254, 240, 0.98);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--gold-primary);
    font-weight: 900;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--soft-black);
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

nav a:hover {
    color: var(--gold-primary);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-primary);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.btn-contact, .btn-auth {
    background: var(--orange-warm);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-weight: 600;
    display: inline-block;
}

.btn-contact:hover, .btn-auth:hover {
    background: var(--gold-primary);
    color: var(--soft-black);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 140, 66, 0.3);
}

/* Boutons utilisateur connecté */
.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-name {
    color: var(--green-forest);
    font-weight: 600;
}

.btn-logout {
    background: var(--green-forest);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--green-forest) 0%, var(--green-dark) 50%, var(--gold-primary) 100%);
    color: white;
    padding: 120px 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><circle cx="100" cy="100" r="80" fill="rgba(255,255,255,0.03)"/><circle cx="1100" cy="500" r="120" fill="rgba(255,255,255,0.03)"/><circle cx="600" cy="300" r="100" fill="rgba(255,255,255,0.02)"/></svg>');
    background-attachment: fixed;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: fadeInUp 1s ease;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 900;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.btn-primary {
    background: var(--orange-warm);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: all 0.4s ease;
    border: 2px solid var(--orange-warm);
    margin: 0 1rem;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover {
    background: white;
    color: var(--orange-warm);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 140, 66, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: all 0.4s ease;
    border: 2px solid white;
    margin: 0 1rem;
    cursor: pointer;
    font-size: 1rem;
}

.btn-secondary:hover {
    background: white;
    color: var(--green-forest);
    transform: translateY(-5px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Produits */
.products {
    padding: 80px 2rem;
    background: var(--cream-white);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    text-align: center;
    color: var(--green-forest);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-primary), var(--orange-warm));
    margin: 1rem auto 0;
    border-radius: 2px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    cursor: pointer;
    border-top: 4px solid var(--gold-primary);
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.2);
    border-top-color: var(--orange-warm);
}

.product-image {
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    overflow: hidden;
    position: relative;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.product-image::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    animation: shimmer 3s infinite;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    color: var(--green-forest);
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
}

.product-info p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.product-price {
    color: var(--gold-primary);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.btn-add {
    background: var(--green-forest);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-add:hover {
    background: var(--gold-primary);
    color: var(--soft-black);
}

/* Footer */
footer {
    background: var(--soft-black);
    color: white;
    padding: 2rem;
    text-align: center;
    opacity: 0.9;
}

footer a {
    color: var(--gold-primary);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Utilitaires */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-3 { margin-bottom: 3rem; }

/* Responsive */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .btn-primary, .btn-secondary {
        margin: 0.5rem;
        padding: 0.8rem 1.5rem;
    }
}

/* Messages d'alerte */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Loading spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Cache par défaut */
.hidden {
    display: none !important;
}