/* ==========================================================================
   VANELLII - Base Styling & Design Tokens (base.css)
   ========================================================================== */

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

/* Design Tokens / CSS Variables */
:root {
    /* Color Palette */
    --color-cream: #FAF7F2;       /* Fond principal, chaud et lumineux */
    --color-beige: #F3EFE9;       /* Fond secondaire pour alternance */
    --color-sand: #E8DDD3;        /* Éléments neutres clairs, bordures */
    --color-sand-dark: #C4B5A5;   /* Bordures plus prononcées, ombres */
    --color-anthracite: #1C1C1C;  /* Texte principal, éléments sombres */
    --color-charcoal: #3D3D3D;    /* Texte secondaire */
    --color-gold: #C5A45A;        /* Accent principal (luxe, CTA) */
    --color-gold-light: #D4B76A;  /* Hover d'accent */
    --color-gold-dark: #A68B3E;   /* Focus/Active d'accent */
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-error: #B22222;
    --color-success: #2E8B57;

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-accent: 'Cormorant Garamond', serif;

    /* Spacing Scale */
    --space-2xs: 4px;
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;
    --space-5xl: 128px;

    /* Borders & Radius */
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 8px;
    --border-thin: 1px solid var(--color-sand);
    --border-gold: 1px solid var(--color-gold);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(28, 28, 28, 0.05);
    --shadow-md: 0 8px 24px rgba(28, 28, 28, 0.08);
    --shadow-lg: 0 16px 40px rgba(28, 28, 28, 0.12);
    --shadow-gold: 0 8px 20px rgba(197, 164, 90, 0.15);

    /* Header & Navbar */
    --header-height: 90px;
    
    /* Animation System */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.2s ease;
}

/* CSS Reset & General Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
}

body {
    background-color: var(--color-cream);
    color: var(--color-anthracite);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    overflow-x: hidden;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-cream);
}

::-webkit-scrollbar-thumb {
    background: var(--color-sand-dark);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold);
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.25;
    color: var(--color-anthracite);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

h3 {
    font-size: clamp(1.4rem, 2vw, 1.8rem);
}

p {
    font-weight: 300;
    color: var(--color-charcoal);
}

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

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

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

ul, ol {
    list-style: none;
}

/* Custom Cursor (Optional premium micro-interaction) */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 1px solid var(--color-gold);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s, height 0.3s, background-color 0.3s;
    mix-blend-mode: difference;
    display: none; /* Enabled via JS on desktop */
}

.custom-cursor.hovered {
    width: 40px;
    height: 40px;
    background-color: rgba(197, 164, 90, 0.1);
    border-color: var(--color-gold-light);
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-2xl);
    }
}

.section {
    padding: var(--space-4xl) 0;
    position: relative;
}

@media (max-width: 768px) {
    .section {
        padding: var(--space-2xl) 0;
    }
}

/* Alignments & Grids */
.flex {
    display: flex;
}

.grid {
    display: grid;
}

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

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

/* Reveal on Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.215, 0.61, 0.355, 1), 
                transform 1.2s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 1s cubic-bezier(0.215, 0.61, 0.355, 1), 
                transform 1.2s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 1s cubic-bezier(0.215, 0.61, 0.355, 1), 
                transform 1.2s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 1s cubic-bezier(0.215, 0.61, 0.355, 1), 
                transform 1.2s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.active.reveal,
.active.reveal-left,
.active.reveal-right,
.active.reveal-scale {
    opacity: 1;
    transform: translate(0) scale(1);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }
