/* =============================================
   THEME & BASE STYLES
   ============================================= */

:root {
    /* Colors - Dark Theme (default) */
    --bg: #14100c;
    --surface: #1f1811;
    --surface-2: #2a2117;
    --gold: #c9971f;
    --gold-light: #e8c468;
    --amber: #d97706;
    --amber-light: #f5a742;
    --cream: #f3ede0;
    --cream-dim: #cdc4b0;
    
    /* Typography */
    --font-display: 'Fraunces', serif;
    --font-body: 'Inter', sans-serif;
}

/* Light Theme */
.light {
    --bg: #ffffff;
    --surface: #f8f5f0;
    --surface-2: #f0e8e0;
    --cream: #1a1a1a;
    --cream-dim: #5a5a5a;
    --gold: #b8860b;
    --gold-light: #daa520;
    --amber: #cc7700;
    --amber-light: #e69500;
}

/* =============================================
   BASE RESET & TYPOGRAPHY
   ============================================= */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: var(--bg);
    color: var(--cream);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
.font-display {
    font-family: var(--font-display);
}

.font-body {
    font-family: var(--font-body);
}

/* Text colors */
.text-cream {
    color: var(--cream);
}

.text-cream-dim {
    color: var(--cream-dim);
}

.text-gold {
    color: var(--gold);
}

.text-gold-light {
    color: var(--gold-light);
}

.text-amber {
    color: var(--amber);
}

.text-amber-light {
    color: var(--amber-light);
}

/* Background colors */
.bg-bg {
    background: var(--bg);
}

.bg-surface {
    background: var(--surface);
}

.bg-surface-2 {
    background: var(--surface-2);
}

.bg-gold {
    background: var(--gold);
}

.bg-gold-light {
    background: var(--gold-light);
}

/* Text balance (for headings) */
.text-balance {
    text-wrap: balance;
}

/* =============================================
   BORDERS
   ============================================= */

.border-surface-2 {
    border-color: rgba(42, 33, 23, 0.8);
}

.border-surface-2\/80 {
    border-color: rgba(42, 33, 23, 0.8);
}

.border-gold {
    border-color: var(--gold);
}

.border-gold\/50 {
    border-color: rgba(201, 151, 31, 0.5);
}

.border-gold\/60 {
    border-color: rgba(201, 151, 31, 0.6);
}

.border-gold\/40 {
    border-color: rgba(201, 151, 31, 0.4);
}

.border-dashed {
    border-style: dashed;
}

/* =============================================
   BUTTONS
   ============================================= */

.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
}

.btn:active {
    transform: scale(0.98);
}

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

.btn-primary:hover {
    transform: scale(1.03);
    background: var(--gold-light);
}

.btn-secondary {
    border: 1px solid rgba(201, 151, 31, 0.6);
    color: var(--gold-light);
    background: transparent;
}

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

/* =============================================
   CARDS & CONTAINERS
   ============================================= */

.card {
    background: var(--surface);
    border: 1px solid var(--surface-2);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: border-color 0.2s ease;
}

.card:hover {
    border-color: rgba(201, 151, 31, 0.5);
}

/* =============================================
   PRODUCT CARDS
   ============================================= */

.product-card {
    background: var(--surface);
    border: 1px solid var(--surface-2);
    border-radius: 1rem;
    transition: border-color 0.2s ease;
    overflow: hidden;
}

.product-card:hover {
    border-color: rgba(201, 151, 31, 0.5);
}

.product-card-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem;
    text-align: left;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 1.125rem;
    color: var(--cream);
    transition: color 0.2s ease;
}

.product-card-toggle:hover {
    color: var(--gold-light);
}

.product-card-toggle:focus {
    outline: none;
}

.product-card-chevron {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--gold);
    transition: transform 0.2s ease;
}

.product-card-chevron svg {
    width: 100%;
    height: 100%;
}

.product-card-content {
    padding: 0 1.5rem 1.5rem;
    display: none;
}

.product-card-content p {
    margin-top: 0.75rem;
    text-align: center;
    font-size: 0.875rem;
    line-height: 1.75;
    color: var(--cream-dim);
}

/* Product card info badges */
.product-card-info {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.product-card-info span {
    font-size: 0.75rem;
    color: rgba(205, 196, 176, 0.7);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: var(--surface-2);
}

/* Style spécifique pour le poids (1 ligne, centré verticalement) */
.product-card-info .product-weight {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Style spécifique pour le DLC (2 lignes) */
.product-card-info .product-dlc {
    white-space: pre-line;
    text-align: center;
    min-width: 80px;
    flex-shrink: 0;
}

/* Style spécifique pour le gen_code (largeur réduite, centré) */
.product-card-info .product-gencod {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    text-align: center;
}

/* =============================================
   FORMS
   ============================================= */

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--cream-dim);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.625rem 1rem;
    border: 1px solid var(--surface-2);
    border-radius: 0.5rem;
    background: var(--bg);
    color: var(--cream);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--cream-dim);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* =============================================
   SECTIONS & LAYOUT
   ============================================= */

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.max-w-6xl {
    max-width: 72rem;
}

.max-w-7xl {
    max-width: 80rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-xl {
    max-width: 36rem;
}

.max-w-lg {
    max-width: 32rem;
}

.max-w-md {
    max-width: 28rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.py-24 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.py-14 {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.py-5 {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.px-6 py-2 {
    padding: 0.5rem 1.5rem;
}

.px-7 py-3 {
    padding: 0.75rem 1.75rem;
}

.mt-20 {
    margin-top: 5rem;
}

.mt-16 {
    margin-top: 4rem;
}

.mt-14 {
    margin-top: 3.5rem;
}

.mt-12 {
    margin-top: 3rem;
}

.mt-10 {
    margin-top: 2.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 0.75rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mb-20 {
    margin-bottom: 5rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mb-10 {
    margin-bottom: 2.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

/* =============================================
   GRID & FLEX UTILITIES
   ============================================= */

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

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

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-10 {
    gap: 2.5rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-5 {
    gap: 1.25rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-2 {
    gap: 0.5rem;
}

/* Grid */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.items-start {
    align-items: start;
}

/* =============================================
   RESPONSIVE BREAKPOINTS
   ============================================= */

@media (min-width: 640px) {
    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sm\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .sm\:flex {
        display: flex;
    }
    
    .sm\:flex-row {
        flex-direction: row;
    }
    
    .sm\:items-center {
        align-items: center;
    }
    
    .sm\:justify-between {
        justify-content: space-between;
    }
    
    .sm\:hidden {
        display: none;
    }
    
    .sm\:block {
        display: block;
    }
    
    .sm\:text-5xl {
        font-size: 3.5rem;
    }
    
    .sm\:text-4xl {
        font-size: 2.5rem;
    }
    
    .sm\:text-3xl {
        font-size: 1.875rem;
    }
    
    .sm\:text-2xl {
        font-size: 1.5rem;
    }
    
    .sm\:text-xl {
        font-size: 1.25rem;
    }
    
    .sm\:h-20 {
        height: 5rem;
    }
    
    .sm\:w-20 {
        width: 5rem;
    }
    
    .sm\:py-32 {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .lg\:flex-row {
        flex-direction: row;
    }
    
    .lg\:order-2 {
        order: 2;
    }
    
    .lg\:order-1 {
        order: 1;
    }
}

/* Hide by default on mobile */
.sm\:hidden {
    display: none;
}

/* =============================================
   HEADER SPECIFIC
   ============================================= */

.backdrop-blur-sm {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.backdrop-blur {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.bg-bg\/90 {
    background: rgba(20, 16, 12, 0.9);
}

/* Dropdown */
#products-dropdown {
    display: none;
}

#products-dropdown-container:hover #products-dropdown {
    display: block;
}

/* Mobile menu */
#mobile-menu {
    display: none;
}

#mobile-menu.active {
    display: flex;
}

/* =============================================
   UTILITY CLASSES
   ============================================= */

.text-sm {
    font-size: 0.875rem;
}

.text-base {
    font-size: 1rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-5xl {
    font-size: 3rem;
}

.text-7xl {
    font-size: 4.5rem;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

.font-bold {
    font-weight: 700;
}

.tracking-tight {
    letter-spacing: -0.025em;
}

.tracking-[0.2em] {
    letter-spacing: 0.2em;
}

.tracking-[0.35em] {
    letter-spacing: 0.35em;
}

.uppercase {
    text-transform: uppercase;
}

.leading-relaxed {
    line-height: 1.75;
}

.leading-[1.05] {
    line-height: 1.05;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.w-full {
    width: 100%;
}

.w-auto {
    width: auto;
}

.h-full {
    height: 100%;
}

.h-16 {
    height: 4rem;
}

.h-4 {
    height: 1rem;
}

.h-5 {
    height: 1.25rem;
}

.w-4 {
    width: 1rem;
}

.w-5 {
    width: 1.25rem;
}

.w-6 {
    width: 1.5rem;
}

.h-6 {
    height: 1.5rem;
}

.object-contain {
    object-fit: contain;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-full {
    border-radius: 9999px;
}

.absolute {
    position: absolute;
}

.relative {
    position: relative;
}

.fixed {
    position: fixed;
}

.top-0 {
    top: 0;
}

.right-0 {
    right: 0;
}

.left-0 {
    left: 0;
}

.bottom-0 {
    bottom: 0;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.top-full {
    top: 100%;
}

.left-1\/2 {
    left: 50%;
}

.-translate-x-1\/2 {
    transform: translateX(-50%);
}

.rotate-180 {
    transform: rotate(180deg);
}

.rotate-0 {
    transform: rotate(0deg);
}

.opacity-[0.07] {
    opacity: 0.07;
}

.opacity-0 {
    opacity: 0;
}

.opacity-100 {
    opacity: 1;
}

.pointer-events-none {
    pointer-events: none;
}

.overflow-hidden {
    overflow: hidden;
}

.overflow-x-auto {
    overflow-x: auto;
}

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

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

.hidden {
    display: none;
}

/* =============================================
   TIMELINE SPECIFIC
   ============================================= */

.snap-x {
    scroll-snap-type: x mandatory;
}

.snap-start {
    scroll-snap-align: start;
}

.min-w-\[260px\] {
    min-width: 260px;
}

/* =============================================
   ALERT/MESSAGE STYLES
   ============================================= */

.alert {
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: rgba(34, 197, 94, 0.9);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: rgba(239, 68, 68, 0.9);
}

/* =============================================
   IFRAME STYLES
   ============================================= */

iframe {
    border: none;
}

/* =============================================
   PRINT STYLES
   ============================================= */

@media print {
    .no-print {
        display: none;
    }
}
