/* ===== DESIGN SYSTEM APPLE-LIKE ===== */

:root {
    /* Couleurs LUMIRÉ */
    --color-beige: #F5EDE3;
    --color-rose: #E8C4B8;
    --color-or: #C9A96E;
    --color-blanc: #FAFAF8;

    /* Neutres */
    --color-text: #1d1d1d;
    --color-text-light: #6f6f6f;
    --color-divider: #e5e5ea;
    --color-bg: #ffffff;

    /* Typo */
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Espacements */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;

    /* Z-index */
    --z-dropdown: 100;
    --z-modal: 200;
    --z-header: 50;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    margin-top: 64px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
}

a {
    color: var(--color-text);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.7;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(250, 250, 248, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-divider);
    z-index: var(--z-header);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.navbar {
    padding: var(--spacing-md) 0;
}

.header.hidden {
    transform: translateY(-100%);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 2px;
    color: var(--color-text);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-2xl);
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-light);
    transition: color 0.2s ease;
}

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

.nav-actions {
    display: flex;
    gap: var(--spacing-lg);
}

.cart-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text);
    padding: var(--spacing-xs);
    transition: opacity 0.2s ease;
}

.cart-btn:hover {
    opacity: 0.7;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text);
    padding: var(--spacing-xs);
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--color-or);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
}

/* Hero Section */
.hero {
    width: 100%;
    background-color: #E8C4B8;
    padding: var(--spacing-3xl) var(--spacing-lg);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-content-inner {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    align-items: center;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 140px;
    font-weight: 400;
    line-height: 1.05;
    color: var(--color-text);
    text-align: center;
}

.text-italic {
    font-style: italic;
}

.hero-subtitle {
    font-size: 16px;
    color: #1d1d1d;
    max-width: 600px;
    line-height: 1.8;
    text-align: center;
    margin: 0 auto;
}

.hero-image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--color-beige), var(--color-rose));
    border-radius: 12px;
}

/* Products Section */
.products-section {
    max-width: 1200px;
    margin: var(--spacing-3xl) auto;
    padding: var(--spacing-3xl) var(--spacing-lg);
    text-align: center;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 42px;
    font-weight: 400;
    margin-bottom: var(--spacing-md);
}

.section-subtitle {
    font-size: 16px;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-3xl);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-2xl);
}

.product-card {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
}

.product-image {
    width: 100%;
    aspect-ratio: 1;
    background-color: var(--color-beige);
    border-radius: 8px;
    object-fit: cover;
}

.product-name {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 400;
    text-align: left;
}

.product-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    text-align: left;
}

.product-button {
    background-color: var(--color-or);
    color: white;
    border: none;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.product-button:hover:not(:disabled):not(.disabled) {
    opacity: 0.9;
}

.product-button:disabled,
.product-button.disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Benefits Section */
.benefits-section {
    background-color: var(--color-blanc);
    padding: var(--spacing-3xl) var(--spacing-lg);
    margin: var(--spacing-3xl) 0;
}

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

.benefit-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
}

.benefit-icon {
    font-size: 32px;
    color: var(--color-or);
}

.benefit-item h3 {
    font-family: var(--font-serif);
    font-size: 20px;
}

.benefit-item p {
    color: var(--color-text-light);
    font-size: 14px;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background-color: var(--color-or);
    color: white;
    padding: var(--spacing-md) var(--spacing-2xl);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: opacity 0.2s ease;
}

.cta-button:hover {
    opacity: 0.9;
}

/* Cart Drawer */
.cart-drawer {
    position: fixed;
    right: 0;
    top: 0;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--color-bg);
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
    z-index: var(--z-modal);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--color-divider);
}

.cart-header h2 {
    font-family: var(--font-serif);
    font-size: 24px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--color-text);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-lg);
}

.cart-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--color-divider);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background-color: var(--color-beige);
    border-radius: 6px;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.cart-item-name {
    font-weight: 500;
    font-size: 14px;
}

.cart-item-price {
    font-weight: 600;
    color: var(--color-or);
}

.cart-item-qty {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
    font-size: 14px;
}

.qty-btn {
    background-color: var(--color-divider);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    color: var(--color-text);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-count {
    min-width: 28px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}

.remove-btn {
    background: none;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
    font-size: 12px;
    text-decoration: underline;
}

.cart-footer {
    border-top: 1px solid var(--color-divider);
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
}

.checkout-button {
    background-color: var(--color-or);
    color: white;
    border: none;
    padding: var(--spacing-md);
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.checkout-button:hover:not(:disabled) {
    opacity: 0.9;
}

.checkout-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: calc(var(--z-modal) - 1);
    display: none;
}

.cart-overlay.open {
    display: block;
}

/* Footer */
.footer {
    background-color: #D4B5A0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: var(--spacing-3xl) var(--spacing-lg);
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-2xl);
    text-align: center;
}

.footer-section h4 {
    font-family: var(--font-serif);
    font-size: 16px;
    margin-bottom: var(--spacing-md);
    color: #1d1d1d;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.footer-section a {
    font-size: 14px;
    color: #3d3d3d;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: #1d1d1d;
}

.footer-section p {
    font-size: 12px;
    color: #3d3d3d;
    font-weight: 500;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-hero-main {
    display: block;
    animation: fadeUp 0.8s ease-out;
}

.text-hero-main:nth-child(2) {
    animation-delay: 0.1s;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: -100px;
    right: 20px;
    background-color: var(--color-text);
    color: white;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: calc(var(--z-modal) + 1);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: 14px;
    font-weight: 500;
    max-width: 300px;
    transition: bottom 0.3s ease;
}

.toast.show {
    bottom: 24px;
}

.toast-icon {
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.toast-success {
    background-color: #4CAF50;
}

.toast-error {
    background-color: #f44336;
}
