/**
 * 8Jours - Base CSS
 * Système utilitaire complet (remplace Tailwind CDN)
 *
 * @package HuitJours
 * @version 3.0.0
 */

/* ============================================
   @FONT-FACE — Self-hosted
   ============================================ */

/* 1. TITRES — Space Grotesk (300-700) */
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/space-grotesk-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/space-grotesk-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 2. CORPS — Plus Jakarta Sans (400-700) */
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/plus-jakarta-sans-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 3. DONNEES — DM Mono (300-500) */
@font-face {
    font-family: 'DM Mono';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/dm-mono-300-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'DM Mono';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/dm-mono-300-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'DM Mono';
    font-style: normal;
    font-weight: 400 500;
    font-display: swap;
    src: url('../fonts/dm-mono-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'DM Mono';
    font-style: normal;
    font-weight: 400 500;
    font-display: swap;
    src: url('../fonts/dm-mono-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Gold */
    --gold: #C9962C;
    --gold-soft: #D5B86A;
    --gold-light: #F4EBD6;
    /* Dark */
    --charcoal: #0C0A08;
    --dark-surface: #141210;
    /* Texte sur dark */
    --text-light: #F0EDE8;
    --text-secondary: #9A9088;
    --text-muted: #6B6360;
    /* Fond clair */
    --ivory: #FDFBF8;
    --smoke: #F5F3F0;
    --cream: #F4EBD6;
    /* Texte sur clair */
    --graphite: #1C1916;
    --graphite-secondary: #70685E;
    --graphite-muted: #A8A098;
    /* Bordures */
    --border: #E8E2DA;
}

/* ============================================
   PREFLIGHT (Tailwind-equivalent reset)
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border-width: 0;
    border-style: solid;
    border-color: currentColor;
}

html {
    scroll-behavior: smooth;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
}

.scroll-smooth { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--graphite);
    background: var(--ivory);
    font-size: 15px;
    line-height: 1.65;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.antialiased {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--charcoal);
    letter-spacing: -0.03em;
    line-height: 1.15;
    font-weight: 300;
    font-size: inherit;
}

a {
    color: inherit;
    text-decoration: inherit;
}

b, strong {
    font-weight: bolder;
}

button, input, optgroup, select, textarea {
    font-family: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    font-size: 100%;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
}

button, [type='button'], [type='reset'], [type='submit'] {
    -webkit-appearance: button;
    background-color: transparent;
    background-image: none;
    cursor: pointer;
}

img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
}

img, video {
    max-width: 100%;
    height: auto;
}

[hidden] { display: none; }

summary { display: list-item; cursor: pointer; }

ul, ol { list-style: none; }

table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
}

hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
}

textarea { resize: vertical; }

input::placeholder, textarea::placeholder {
    opacity: 1;
    color: #9ca3af;
}

::file-selector-button {
    font: inherit;
}

::-webkit-search-decoration {
    -webkit-appearance: none;
}

/* ============================================
   DISPLAY & VISIBILITY
   ============================================ */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }
.invisible { visibility: hidden; }
.visible { visibility: visible; }
.list-none { list-style: none; }

/* ============================================
   POSITIONING
   ============================================ */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.top-4 { top: 1rem; }
.top-6 { top: 1.5rem; }
.top-8 { top: 2rem; }
.top-10 { top: 2.5rem; }
.top-12 { top: 3rem; }
.top-20 { top: 5rem; }
.top-full { top: 100%; }
.bottom-0 { bottom: 0; }
.bottom-1 { bottom: 0.25rem; }
.bottom-4 { bottom: 1rem; }
.bottom-8 { bottom: 2rem; }
.bottom-10 { bottom: 2.5rem; }
.left-0 { left: 0; }
.left-4 { left: 1rem; }
.left-8 { left: 2rem; }
.left-10 { left: 2.5rem; }
.left-1\/4 { left: 25%; }
.right-0 { right: 0; }
.right-4 { right: 1rem; }
.right-6 { right: 1.5rem; }
.right-10 { right: 2.5rem; }
.right-1\/4 { right: 25%; }
.z-0 { z-index: 0; }
.-z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* ============================================
   OVERFLOW
   ============================================ */
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.overflow-x-auto { overflow-x: auto; }

/* ============================================
   FLEXBOX
   ============================================ */
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.flex-grow { flex-grow: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.shrink-0 { flex-shrink: 0; }

/* ============================================
   GRID
   ============================================ */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

/* ============================================
   GAP
   ============================================ */
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }
.gap-x-8 { column-gap: 2rem; }
.gap-y-12 { row-gap: 3rem; }

/* ============================================
   SPACE (children margins)
   ============================================ */
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-y-10 > * + * { margin-top: 2.5rem; }
.space-y-12 > * + * { margin-top: 3rem; }
.-space-x-2 > * + * { margin-left: -0.5rem; }

/* ============================================
   PADDING
   ============================================ */
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.py-32 { padding-top: 8rem; padding-bottom: 8rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-8 { padding-top: 2rem; }
.pt-10 { padding-top: 2.5rem; }
.pt-12 { padding-top: 3rem; }
.pt-20 { padding-top: 5rem; }
.pt-24 { padding-top: 6rem; }
.pt-32 { padding-top: 8rem; }
.pb-1 { padding-bottom: 0.25rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pb-12 { padding-bottom: 3rem; }
.pb-20 { padding-bottom: 5rem; }
.pb-32 { padding-bottom: 8rem; }
.pl-4 { padding-left: 1rem; }
.pl-6 { padding-left: 1.5rem; }
.pr-2 { padding-right: 0.5rem; }

/* ============================================
   MARGIN
   ============================================ */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-20 { margin-top: 5rem; }
.mt-auto { margin-top: auto; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-20 { margin-bottom: 5rem; }
.ml-1 { margin-left: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }

/* Negative margins */
.-mt-10 { margin-top: -2.5rem; }
.-mr-10 { margin-right: -2.5rem; }
.-inset-4 { top: -1rem; right: -1rem; bottom: -1rem; left: -1rem; }
.-left-6 { left: -1.5rem; }
.-top-7 { top: -1.75rem; }
.-bottom-6 { bottom: -1.5rem; }

/* ============================================
   WIDTH & HEIGHT
   ============================================ */
.w-0\.5 { width: 0.125rem; }
.w-3 { width: 0.75rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-7 { width: 1.75rem; }
.w-8 { width: 2rem; }
.w-9 { width: 2.25rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-32 { width: 8rem; }
.w-80 { width: 20rem; }
.w-96 { width: 24rem; }
.w-auto { width: auto; }
.w-full { width: 100%; }
.w-max { width: max-content; }
.w-\[600px\] { width: 600px; }

.h-0\.5 { height: 0.125rem; }
.h-3 { height: 0.75rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-7 { height: 1.75rem; }
.h-8 { height: 2rem; }
.h-9 { height: 2.25rem; }
.h-10 { height: 2.5rem; }
.h-11 { height: 2.75rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-32 { height: 8rem; }
.h-48 { height: 12rem; }
.h-64 { height: 16rem; }
.h-80 { height: 20rem; }
.h-96 { height: 24rem; }
.h-auto { height: auto; }
.h-full { height: 100%; }
.h-\[600px\] { height: 600px; }

.min-h-screen { min-height: 100vh; }
.min-h-\[700px\] { min-height: 700px; }
.min-h-\[75vh\] { min-height: 75vh; }
.min-h-\[90vh\] { min-height: 90vh; }
.min-w-\[260px\] { min-width: 260px; }

.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-lg { max-width: 32rem; }
.max-w-md { max-width: 28rem; }
.max-w-none { max-width: none; }

.aspect-\[4\/3\] { aspect-ratio: 4/3; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
.font-display { font-family: 'Space Grotesk', sans-serif; letter-spacing: -0.03em; }
.font-heading { font-family: 'Space Grotesk', sans-serif; letter-spacing: -0.03em; }
.font-body { font-family: 'Plus Jakarta Sans', sans-serif; }
.font-data { font-family: 'DM Mono', monospace; }
.font-mono { font-family: 'DM Mono', monospace; }

.text-\[10px\] { font-size: 10px; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 2.5rem; line-height: 1.1; }
.text-6xl { font-size: 3rem; line-height: 1.1; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.italic { font-style: italic; }

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.uppercase { text-transform: uppercase; }
.whitespace-nowrap { white-space: nowrap; }

.leading-none { line-height: 1; }
.leading-\[1\.05\] { line-height: 1.05; }
.leading-\[1\.1\] { line-height: 1.1; }
.leading-\[1\.15\] { line-height: 1.15; }
.leading-snug { line-height: 1.375; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.tracking-\[0\.2em\] { letter-spacing: 0.2em; }
.tracking-\[0\.25em\] { letter-spacing: 0.25em; }
.tracking-\[0\.3em\] { letter-spacing: 0.3em; }
.tracking-\[0\.35em\] { letter-spacing: 0.35em; }
.tracking-\[0\.4em\] { letter-spacing: 0.4em; }

.text-balance { text-wrap: balance; }

.line-clamp-3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* ============================================
   COLORS
   ============================================ */
.text-charcoal { color: var(--charcoal); }
.text-graphite { color: var(--graphite); }
.text-graphite-secondary { color: var(--graphite-secondary); }
.text-graphite-muted { color: var(--graphite-muted); }
.text-gold { color: var(--gold); }
.text-white { color: #fff; }
.text-brand-graphite { color: var(--graphite); }

/* Text opacity variants */
.text-charcoal\/10 { color: rgba(12, 10, 8, 0.1); }
.text-charcoal\/30 { color: rgba(12, 10, 8, 0.3); }
.text-charcoal\/70 { color: rgba(12, 10, 8, 0.7); }
.text-graphite\/40 { color: rgba(28, 25, 22, 0.4); }
.text-graphite\/50 { color: rgba(28, 25, 22, 0.5); }
.text-graphite\/60 { color: rgba(28, 25, 22, 0.6); }
.text-graphite\/70 { color: rgba(28, 25, 22, 0.7); }
.text-graphite\/80 { color: rgba(28, 25, 22, 0.8); }
.text-brand-graphite\/60 { color: rgba(28, 25, 22, 0.6); }
.text-brand-graphite\/70 { color: rgba(28, 25, 22, 0.7); }
.text-gold\/30 { color: rgba(201, 150, 44, 0.3); }
.text-gold\/40 { color: rgba(201, 150, 44, 0.4); }
.text-gold\/50 { color: rgba(201, 150, 44, 0.5); }
.text-white\/60 { color: rgba(255, 255, 255, 0.6); }
.text-white\/70 { color: rgba(255, 255, 255, 0.7); }
.text-white\/80 { color: rgba(255, 255, 255, 0.8); }
.text-white\/90 { color: rgba(255, 255, 255, 0.9); }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-green-500 { color: #22c55e; }
.text-green-600 { color: #16a34a; }
.text-red-500 { color: #ef4444; }

/* Background colors */
.bg-white { background-color: var(--ivory); }
.bg-charcoal { background-color: var(--charcoal); }
.bg-graphite { background-color: var(--graphite); }
.bg-dark-surface { background-color: var(--dark-surface); }
.bg-ivory { background-color: var(--ivory); }
.bg-smoke { background-color: var(--smoke); }
.bg-smoke-alt { background-color: var(--smoke); }
.bg-gold { background-color: var(--gold); }
.bg-gold-soft { background-color: var(--gold-soft); }
.bg-cream { background-color: var(--cream); }

/* Background opacity variants */
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }
.bg-white\/50 { background-color: rgba(255, 255, 255, 0.5); }
.bg-white\/80 { background-color: rgba(255, 255, 255, 0.8); }
.bg-white\/90 { background-color: rgba(255, 255, 255, 0.9); }
.bg-white\/95 { background-color: rgba(255, 255, 255, 0.95); }
.bg-charcoal\/5 { background-color: rgba(12, 10, 8, 0.05); }
.bg-charcoal\/10 { background-color: rgba(12, 10, 8, 0.1); }
.bg-ivory\/80 { background-color: rgba(255, 255, 255, 0.8); }
.bg-smoke\/30 { background-color: rgba(245, 243, 240, 0.3); }
.bg-smoke\/50 { background-color: rgba(245, 243, 240, 0.5); }
.bg-gold\/5 { background-color: rgba(201, 150, 44, 0.05); }
.bg-gold\/10 { background-color: rgba(201, 150, 44, 0.1); }
.bg-gold\/15 { background-color: rgba(201, 150, 44, 0.15); }
.bg-gold\/20 { background-color: rgba(201, 150, 44, 0.2); }
.bg-gold\/30 { background-color: rgba(201, 150, 44, 0.3); }
.bg-gold-soft\/30 { background-color: rgba(213, 184, 106, 0.3); }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-gray-300 { background-color: #d1d5db; }
.bg-gray-400 { background-color: #9ca3af; }
.bg-green-50 { background-color: #f0fdf4; }
.bg-green-100 { background-color: #dcfce7; }
.bg-red-50 { background-color: #fef2f2; }

/* ============================================
   GRADIENTS
   ============================================ */
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }
.bg-gradient-to-t { background-image: linear-gradient(to top, var(--tw-gradient-stops)); }

.from-charcoal { --tw-gradient-from: #0a0a0a; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(12,10,8,0)); }
.from-gold { --tw-gradient-from: var(--gold); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(201,150,44,0)); }
.from-cream { --tw-gradient-from: var(--cream); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(255,245,217,0)); }
.from-cream\/20 { --tw-gradient-from: rgba(255, 245, 217, 0.2); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(255,245,217,0)); }
.from-gold\/5 { --tw-gradient-from: rgba(201, 150, 44, 0.05); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(201,150,44,0)); }
.from-transparent { --tw-gradient-from: transparent; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.from-white { --tw-gradient-from: #fff; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(255,255,255,0)); }

.via-gold\/30 { --tw-gradient-stops: var(--tw-gradient-from), rgba(201, 150, 44, 0.3), var(--tw-gradient-to, rgba(201,150,44,0)); }
.via-transparent { --tw-gradient-stops: var(--tw-gradient-from), transparent, var(--tw-gradient-to, transparent); }

.to-charcoal\/50 { --tw-gradient-to: rgba(12, 10, 8, 0.5); }
.to-gold-soft { --tw-gradient-to: var(--gold-soft); }
.to-cream\/10 { --tw-gradient-to: rgba(255, 245, 217, 0.1); }
.to-cream\/20 { --tw-gradient-to: rgba(255, 245, 217, 0.2); }
.to-gold\/10 { --tw-gradient-to: rgba(201, 150, 44, 0.1); }
.to-gold-soft { --tw-gradient-to: var(--gold-soft); }
.to-gold-soft\/20 { --tw-gradient-to: rgba(213, 184, 106, 0.2); }
.to-ivory { --tw-gradient-to: var(--ivory); }
.to-transparent { --tw-gradient-to: transparent; }
.to-white { --tw-gradient-to: #fff; }

/* ============================================
   BORDERS
   ============================================ */
.border { border-width: 1px; border-style: solid; }
.border-2 { border-width: 2px; border-style: solid; }
.border-4 { border-width: 4px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-l-4 { border-left-width: 4px; border-left-style: solid; }

.border-transparent { border-color: transparent; }
.border-white { border-color: #fff; }
.border-charcoal { border-color: var(--charcoal); }
.border-charcoal\/5 { border-color: rgba(12, 10, 8, 0.05); }
.border-charcoal\/20 { border-color: rgba(12, 10, 8, 0.2); }
.border-black\/5 { border-color: rgba(0, 0, 0, 0.05); }
.border-white\/5 { border-color: rgba(255, 255, 255, 0.05); }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.2); }
.border-white\/50 { border-color: rgba(255, 255, 255, 0.5); }
.border-gray-100 { border-color: var(--border); }
.border-charcoal\/10 { border-color: rgba(12, 10, 8, 0.1); }
.border-gold { border-color: var(--gold); }
.border-gold\/20 { border-color: rgba(201, 150, 44, 0.2); }
.border-gold\/30 { border-color: rgba(201, 150, 44, 0.3); }
.border-green-200 { border-color: #bbf7d0; }
.border-red-100 { border-color: #fee2e2; }
.border-red-200 { border-color: #fecaca; }
.border-fog { border-color: rgba(0, 0, 0, 0.05); }
.border-warm { border-color: var(--border); }

.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-\[2rem\] { border-radius: 2rem; }
.rounded-\[2\.5rem\] { border-radius: 2.5rem; }
.rounded-\[3rem\] { border-radius: 3rem; }
.rounded-full { border-radius: 9999px; }

/* ============================================
   SHADOWS
   ============================================ */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.shadow-charcoal\/5 { box-shadow: 0 4px 6px -1px rgba(12, 10, 8, 0.05); }
.shadow-charcoal\/20 { box-shadow: 0 4px 6px -1px rgba(12, 10, 8, 0.2); }
.shadow-gold\/10 { box-shadow: 0 4px 15px rgba(201, 150, 44, 0.1); }
.shadow-gold\/20 { box-shadow: 0 4px 15px rgba(201, 150, 44, 0.2); }
.shadow-gold\/30 { box-shadow: 0 4px 15px rgba(201, 150, 44, 0.3); }
.shadow-glow-gold { box-shadow: 0 0 20px rgba(201,150,44,0.3); }
.shadow-subtle { box-shadow: 0 2px 10px rgba(0,0,0,0.03); }

/* ============================================
   EFFECTS & FILTERS
   ============================================ */
.opacity-0 { opacity: 0; }
.opacity-10 { opacity: 0.1; }
.opacity-20 { opacity: 0.2; }
.opacity-50 { opacity: 0.5; }
.opacity-60 { opacity: 0.6; }
.opacity-75 { opacity: 0.75; }
.opacity-3 { opacity: 0.03; }
.pointer-events-none { pointer-events: none; }

.backdrop-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.backdrop-blur-xl { backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }

.blur-2xl { filter: blur(40px); }
.blur-3xl { filter: blur(64px); }
.blur-\[120px\] { filter: blur(120px); }
.filter { filter: var(--tw-filter); }

.object-contain { object-fit: contain; }
.cursor-default { cursor: default; }
.cursor-pointer { cursor: pointer; }

/* ============================================
   TRANSITIONS
   ============================================ */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}
.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 200ms;
}
.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}
.transition-opacity {
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.ease-out { transition-timing-function: cubic-bezier(0, 0, 0.2, 1); }

/* ============================================
   TRANSFORMS
   ============================================ */
.transform { transform: var(--tw-transform); }
.translate-x-full { transform: translateX(100%); }
.translate-x-0 { transform: translateX(0); }
.translate-x-1\/2 { transform: translateX(50%); }
.-translate-y-1\/2 { transform: translateY(-50%); }
.translate-y-2 { transform: translateY(0.5rem); }
.scale-105 { transform: scale(1.05); }
.scale-x-0 { transform: scaleX(0); }
.origin-left { transform-origin: left; }

/* ============================================
   PSEUDO-CLASS: before
   ============================================ */
.before\:absolute::before { position: absolute; content: ''; }
.before\:inset-0::before { top: 0; right: 0; bottom: 0; left: 0; }

/* ============================================
   HOVER STATES
   ============================================ */
.hover\:text-gold:hover { color: var(--gold); }
.hover\:text-charcoal:hover { color: var(--charcoal); }
.hover\:text-white:hover { color: #fff; }
.hover\:text-charcoal:hover { color: var(--charcoal); }
.hover\:text-gold:hover { color: var(--gold); }
.hover\:text-white:hover { color: #fff; }
.hover\:text-brand-gold:hover { color: var(--gold); }

.hover\:bg-gold:hover { background-color: var(--gold); }
.hover\:bg-gold\/5:hover { background-color: rgba(201, 150, 44, 0.05); }
.hover\:bg-smoke\/50:hover { background-color: rgba(245, 243, 240, 0.5); }
.hover\:bg-smoke\/80:hover { background-color: rgba(245, 243, 240, 0.8); }
.hover\:bg-white:hover { background-color: #fff; }

.hover\:border-gold:hover { border-color: var(--gold); }
.hover\:border-gold\/20:hover { border-color: rgba(201, 150, 44, 0.2); }
.hover\:border-gold\/30:hover { border-color: rgba(201, 150, 44, 0.3); }

.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); }
.hover\:shadow-2xl:hover { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.hover\:shadow-gold\/10:hover { box-shadow: 0 4px 15px rgba(201, 150, 44, 0.1); }
.hover\:shadow-gold\/20:hover { box-shadow: 0 4px 15px rgba(201, 150, 44, 0.2); }
.hover\:shadow-gold\/30:hover { box-shadow: 0 4px 15px rgba(201, 150, 44, 0.3); }
.hover\:shadow-glow-white:hover { box-shadow: 0 0 30px rgba(255,255,255,0.4); }

.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:-translate-y-1:hover { transform: translateY(-0.25rem); }
.hover\:-translate-y-2:hover { transform: translateY(-0.5rem); }

/* ============================================
   GROUP HOVER STATES
   ============================================ */
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }
.group:hover .group-hover\:scale-x-100 { transform: scaleX(1); }
.group:hover .group-hover\:text-gold { color: var(--gold); }
.group:hover .group-hover\:text-brand-gold { color: var(--gold); }
.group:hover .group-hover\:text-white { color: #fff; }
.group:hover .group-hover\:text-gold\/50 { color: rgba(201, 150, 44, 0.5); }
.group:hover .group-hover\:bg-gold { background-color: var(--gold); }
.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:opacity-30 { opacity: 0.3; }
.group:hover .group-hover\:translate-x-1 { transform: translateX(0.25rem); }
.group:hover .group-hover\:-translate-x-1 { transform: translateX(-0.25rem); }
.group:hover .group-hover\:gap-2 { gap: 0.5rem; }
.group:hover .group-hover\:from-gold\/10 { --tw-gradient-from: rgba(201, 150, 44, 0.1); }
.group:hover .group-hover\:to-gold-soft\/30 { --tw-gradient-to: rgba(213, 184, 106, 0.3); }

/* Named group hover */
.group\/menu:hover .group-hover\/menu\:opacity-100 { opacity: 1; }
.group\/menu:hover .group-hover\/menu\:visible { visibility: visible; }
.group\/menu:hover .group-hover\/menu\:translate-y-0 { transform: translateY(0); }
.group\/menu:hover .group-hover\/menu\:rotate-180 { transform: rotate(180deg); }
.group\/item:hover .group-hover\/item\:text-gold { color: var(--gold); }

/* ============================================
   FOCUS STATES
   ============================================ */
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:border-gold:focus { border-color: var(--gold); }

/* ============================================
   OPEN STATE (details/summary)
   ============================================ */
.open\:border-gold\/30[open] { border-color: rgba(201, 150, 44, 0.3); }
.group-open\:rotate-45 { /* handled by parent open state */ }
details[open] .group-open\:rotate-45 { transform: rotate(45deg); }

/* ============================================
   PLACEHOLDER
   ============================================ */
.placeholder-white\/40::placeholder { color: rgba(255, 255, 255, 0.4); }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
@keyframes ping {
    75%, 100% { transform: scale(2); opacity: 0; }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.animate-ping { animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite; }
.animate-fade-up { animation: fadeUp 0.8s cubic-bezier(0.19, 1, 0.22, 1) forwards; }

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

/* Reveal on scroll */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE — SM (640px)
   ============================================ */
@media (min-width: 640px) {
    .sm\:flex-row { flex-direction: row; }
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}

/* ============================================
   RESPONSIVE — MD (768px)
   ============================================ */
@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:hidden { display: none; }
    .md\:block { display: block; }
    .md\:inline-flex { display: inline-flex; }
    .md\:flex-row { flex-direction: row; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:text-left { text-align: left; }
    .md\:text-xl { font-size: 1.25rem; }
    .md\:text-2xl { font-size: 1.5rem; }
    .md\:text-3xl { font-size: 1.875rem; }
    .md\:text-4xl { font-size: 2.25rem; }
    .md\:text-5xl { font-size: 2.5rem; }
    .md\:text-6xl { font-size: 3rem; }
    .md\:text-7xl { font-size: 3.5rem; }
    .md\:py-32 { padding-top: 8rem; padding-bottom: 8rem; }
    .md\:p-10 { padding: 2.5rem; }
    .md\:p-12 { padding: 3rem; }
    .md\:p-14 { padding: 3.5rem; }
}

/* ============================================
   RESPONSIVE — LG (1024px)
   ============================================ */
@media (min-width: 1024px) {
    .lg\:flex { display: flex; }
    .lg\:hidden { display: none; }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:text-left { text-align: left; }
    .lg\:text-8xl { font-size: 4rem; }
    .lg\:gap-16 { gap: 4rem; }
    .lg\:gap-24 { gap: 6rem; }
    .lg\:order-1 { order: 1; }
    .lg\:order-2 { order: 2; }
    .lg\:mx-0 { margin-left: 0; margin-right: 0; }
    .lg\:justify-start { justify-content: flex-start; }
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}

/* ============================================
   PROSE (rich content areas)
   ============================================ */
.prose {
    max-width: 65ch;
    color: var(--graphite);
    line-height: 1.75;
}
.prose p { margin-bottom: 1.25rem; }
.prose strong { font-weight: 600; color: var(--charcoal); }
.prose a { color: var(--gold); text-decoration: underline; }
.prose a:hover { color: var(--gold-soft); }
.prose h2 { font-size: 1.5rem; font-weight: 700; margin-top: 2rem; margin-bottom: 1rem; color: var(--charcoal); }
.prose h3 { font-size: 1.25rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.75rem; color: var(--charcoal); }
.prose ul { margin-bottom: 1.25rem; padding-left: 1.5rem; list-style-type: disc; }
.prose ol { margin-bottom: 1.25rem; padding-left: 1.5rem; list-style-type: decimal; }
.prose li { margin-bottom: 0.5rem; }
.prose h1 { font-size: 2.25rem; font-weight: 800; margin-top: 0; margin-bottom: 1rem; color: var(--charcoal); }
.prose blockquote { padding-left: 1rem; border-left: 4px solid var(--gold); font-style: italic; }
.prose img { border-radius: 0.5rem; }
.prose-lg { font-size: 1.125rem; line-height: 1.75; }

/* Prose modifiers */
.prose-invert { color: rgba(255, 255, 255, 0.8); }
.prose-invert strong { color: #fff; }
.prose-invert h2, .prose-invert h3, .prose-invert h4 { color: #fff; }
.prose-slate { color: #475569; }
.prose-a\:text-gold a { color: var(--gold); }
.prose-a\:no-underline a { text-decoration: none; }
.prose-headings\:font-bold h1, .prose-headings\:font-bold h2, .prose-headings\:font-bold h3, .prose-headings\:font-bold h4 { font-weight: 700; }
.prose-headings\:text-charcoal h1, .prose-headings\:text-charcoal h2, .prose-headings\:text-charcoal h3, .prose-headings\:text-charcoal h4 { color: var(--charcoal); }
.prose-strong\:text-charcoal strong { color: var(--charcoal); }
.prose-blockquote\:border-l-gold blockquote { border-left-color: var(--gold); }
.prose-blockquote\:bg-gold\/5 blockquote { background-color: rgba(201, 150, 44, 0.05); }
.prose-blockquote\:py-4 blockquote { padding-top: 1rem; padding-bottom: 1rem; }

/* ============================================
   BACKGROUND PATTERNS
   ============================================ */
.bg-texture-cubes {
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAARklEQVQYV2P8/5/BgYGB4T8DA4MjAwMDEwMDgwsDA8P/////M/z//98BiP8zMDD8BxIgGiQHkmcCmQCSA8kzgdSB5JkAAN01FQkTCELTAAAAAElFTkSuQmCC');
}
.bg-texture-stardust {
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAMElEQVQYV2N89+7dfwYGBkYGBoYfDAyM/xkYGP4zMDL+Z2Bg/A8kQOL/GRgY/wMAiDkQCTFPn5QAAAAASUVORK5CYII=');
}
.bg-noise {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
}
