/* ==============================================================================
   DESIGN SYSTEM HAUTE JOAILLERIE - L'ÉCRIN PRÉCIEUX
   Typographies : Cormorant Garamond (Luxe Serif) & Plus Jakarta Sans (Interface)
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    /* Palette Or & Métaux Précieux */
    --gold-primary: #D4AF37;
    --gold-hover: #C59F27;
    --gold-light: #FBF8EE;
    --gold-border: rgba(212, 175, 55, 0.28);
    --gold-glow: rgba(212, 175, 55, 0.20);
    --gold-gradient: linear-gradient(135deg, #F3D998 0%, #D4AF37 50%, #AA7C11 100%);
    
    --rose-gold: #B76E79;
    --rose-gold-light: #FDF4F5;
    
    --silver-primary: #9CA3AF;
    --silver-light: #F3F4F6;

    /* Surfaces & Neutres */
    --bg-page: #FAF9F6;        /* Ivoire doux soyeux */
    --bg-surface: #FFFFFF;     /* Blanc pur */
    --bg-surface-alt: #F4F2EC;
    --bg-glass: rgba(255, 255, 255, 0.85);

    /* Textes & Contrastes */
    --text-main: #18181B;      /* Noir velours */
    --text-muted: #71717A;     /* Gris doux */
    --text-light: #A1A1AA;
    --border-color: #E4E4E7;
    --border-subtle: #F0EDE5;

    /* Statuts & Accents */
    --emerald-success: #059669;
    --emerald-bg: #ECFDF5;
    --ruby-alert: #DC2626;
    --ruby-bg: #FEF2F2;

    /* Ombres Volumétriques */
    --shadow-sm: 0 2px 8px rgba(24, 24, 27, 0.04);
    --shadow-md: 0 8px 24px rgba(24, 24, 27, 0.06);
    --shadow-lg: 0 16px 40px rgba(24, 24, 27, 0.09);
    --shadow-gold: 0 8px 25px rgba(212, 175, 55, 0.22);

    /* Rayons */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* Typographies */
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset de base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, .serif-title {
    font-family: var(--font-serif);
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

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

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

/* Conteneur fluide */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* En-tête / Barre d'annonce supérieure */
.top-bar {
    background: var(--text-main);
    color: #F4E8C1;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    padding: 8px 16px;
    font-weight: 500;
}

.top-bar strong {
    color: #FFF;
    text-decoration: underline;
}

/* Header principal */
.main-header {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all var(--transition-fast);
}

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

.brand-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.brand-logo .logo-title {
    font-family: var(--font-serif);
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-main);
    line-height: 1;
}

.brand-logo .logo-sub {
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-primary);
    font-weight: 600;
    margin-top: 3px;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-link {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 8px 0;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold-gradient);
    border-radius: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* Bouton Panier interactif */
.cart-trigger-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    transition: background var(--transition-fast);
}

.cart-trigger-btn:hover {
    background: var(--bg-surface-alt);
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--gold-gradient);
    color: #141416;
    font-size: 0.72rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.4);
}

/* Boutons stylisés */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--gold-gradient);
    color: #141416;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-gold);
    transition: all var(--transition-smooth);
    letter-spacing: 0.02em;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(212, 175, 55, 0.35);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--bg-surface);
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 13px 26px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-secondary:hover {
    background: var(--bg-surface-alt);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

/* Badges Joaillerie */
.badge-gold {
    background: var(--gold-light);
    color: #8C6A12;
    border: 1px solid var(--gold-border);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.badge-stock-in {
    background: var(--emerald-bg);
    color: var(--emerald-success);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--radius-full);
}

.badge-stock-low {
    background: var(--ruby-bg);
    color: var(--ruby-alert);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--radius-full);
}

/* Pied de page de luxe */
.main-footer {
    background: var(--text-main);
    color: #A1A1AA;
    padding: 80px 0 30px;
    margin-top: 100px;
    border-top: 1px solid #27272A;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-brand .logo-title {
    color: #FFF;
    font-size: 1.9rem;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-col h4 {
    color: #FFF;
    font-size: 1.15rem;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a:hover {
    color: var(--gold-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #27272A;
    padding-top: 25px;
    font-size: 0.82rem;
}

/* Animations clés */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .header-content {
        height: 70px;
    }
    .nav-links {
        display: none;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}
