/* ============================================
   BIEUSSON FESTIVAL — Design System
   Identité visuelle officielle du bandeau Bieusson :
   dégradé vert forêt → orange ambré, défenses d'ivoire,
   or / sable, crème ivoire.
   ============================================ */

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

/* --- CSS Variables --- */
:root {
    /* ===== Palette officielle Bieusson Festival ===== */
    /* Verts (terre / nature / Tonkpi) */
    --bieusson-green-900: #14261D;   /* fond très sombre (footer, overlays) */
    --bieusson-green-700: #1B4332;   /* vert profond principal */
    --bieusson-green-500: #2D6A4F;   /* vert moyen, hover, liens */
    --bieusson-green-300: #74A78E;   /* vert clair, badges secondaires */

    /* Oranges / Ors (soleil, énergie, fête, artisanat) */
    --bieusson-orange-700: #C2650A;  /* orange foncé, hover CTA */
    --bieusson-orange-500: #EF7D1A;  /* orange signature (CTA principal) */
    --bieusson-orange-300: #F5A855;  /* orange clair, accents */
    --bieusson-gold-400: #E8C896;    /* or / sable, labels premium */

    /* Neutres chauds */
    --bieusson-cream-100: #F5E9D3;   /* fond clair alternatif, cartes */
    --bieusson-ivory-50: #FBF7EF;    /* fond section claire */
    --bieusson-black-ink: #1A1A15;   /* texte sur fond clair */
    --bieusson-white: #FFFFFF;

    /* Dégradé signature (bandeau officiel) */
    --bieusson-gradient-hero: linear-gradient(135deg, #1B4332 0%, #2D6A4F 35%, #6B6B3A 60%, #D97706 100%);
    --bieusson-gradient-cta: linear-gradient(135deg, #EF7D1A 0%, #D97706 55%, #C2650A 100%);
    --bieusson-gradient-gold: linear-gradient(135deg, #F5A855 0%, #E8C896 60%, #D97706 100%);
    --bieusson-gradient-day: linear-gradient(135deg, #F5A855 0%, #E8C896 100%);

    /* Alias génériques (rétro-compatibilité de tout le code) */
    --primary: var(--bieusson-orange-500);      /* CTA principal, accents forts */
    --primary-dark: var(--bieusson-orange-700);
    --primary-light: var(--bieusson-orange-300);
    --secondary: var(--bieusson-green-500);     /* liens, hover */
    --secondary-dark: var(--bieusson-green-700);
    --secondary-light: var(--bieusson-green-300);
    --accent: var(--bieusson-gold-400);         /* or / sable premium */
    --accent-dark: #D97706;
    --dark: var(--bieusson-green-900);          /* footer, overlays profonds */
    --dark-light: var(--bieusson-green-700);
    --dark-medium: var(--bieusson-green-500);
    --light: var(--bieusson-ivory-50);          /* fond clair ivoire */
    --white: var(--bieusson-white);
    --gray: #8A7D68;                            /* gris-brun chaud */
    --gray-light: #F0E6D6;
    --gray-dark: #5C5344;
    --danger: #D64545;
    --danger-dark: #B33838;
    --success: var(--bieusson-green-500);
    --warning: var(--bieusson-orange-500);
    --info: #D97706;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;   /* titres élégants */
    --font-kicker: 'Oswald', 'Inter', sans-serif;          /* labels, nav, dates */

    /* Font sizes */
    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-md: 1.125rem;
    --fs-lg: 1.25rem;
    --fs-xl: 1.5rem;
    --fs-2xl: 1.875rem;
    --fs-3xl: 2.25rem;
    --fs-4xl: 3rem;
    --fs-5xl: 3.75rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.2);
    --shadow-primary: 0 4px 20px rgba(239,125,26,0.32);
    --shadow-gold: 0 6px 24px rgba(232,200,150,0.28);

    /* Border radius */
    --radius-sm: 4px;
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: all 0.15s ease;
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;

    /* Z-index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-toast: 600;

    /* Layout */
    --container-max: 1200px;
    --container-narrow: 800px;
    --nav-height: 70px;
}

/* --- Dark Mode (optional) --- */
[data-theme="dark"] {
    --light: var(--bieusson-green-900);
    --white: var(--bieusson-green-700);
    --gray-light: var(--bieusson-green-500);
    --dark: var(--bieusson-cream-100);
    --dark-light: var(--bieusson-ivory-50);
    --dark-medium: var(--bieusson-gold-400);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

a:hover {
    color: var(--primary-dark);
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--bieusson-green-700);
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }
h6 { font-size: var(--fs-md); }

p {
    margin-bottom: var(--space-4);
    color: var(--gray-dark);
}

/* --- Utility Classes --- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.container-narrow {
    max-width: var(--container-narrow);
}

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

.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-accent { color: var(--accent); }
.text-dark { color: var(--dark); }
.text-gray { color: var(--gray); }
.text-white { color: var(--white); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }

.bg-primary { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }
.bg-dark { background-color: var(--dark); }
.bg-light { background-color: var(--light); }
.bg-white { background-color: var(--white); }

.font-display { font-family: var(--font-display); }
.font-primary { font-family: var(--font-primary); }
.font-kicker { font-family: var(--font-kicker); }

.fw-300 { font-weight: 300; }
.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.pt-4 { padding-top: var(--space-4); }
.pt-8 { padding-top: var(--space-8); }
.pb-4 { padding-bottom: var(--space-4); }
.pb-8 { padding-bottom: var(--space-8); }

.d-flex { display: flex; }
.d-grid { display: grid; }
.d-block { display: block; }
.d-none { display: none; }
.d-inline-flex { display: inline-flex; }

.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

.w-full { width: 100%; }
.h-full { height: 100%; }

.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.absolute { position: absolute; }

.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

.shadow { box-shadow: var(--shadow); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* --- Section Spacing --- */
.section {
    padding: var(--space-16) 0;
}

.section-sm {
    padding: var(--space-8) 0;
}

.section-lg {
    padding: var(--space-24) 0;
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.section-header h2 {
    margin-bottom: var(--space-4);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: var(--radius-full);
}

.section-header p {
    font-size: var(--fs-lg);
    color: var(--gray);
    max-width: 600px;
    margin: var(--space-6) auto 0;
}

/* --- Selection Styling --- */
::selection {
    background-color: var(--primary);
    color: var(--white);
}

/* --- Focus Styles (Accessibility) --- */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--gray-light);
}

::-webkit-scrollbar-thumb {
    background: var(--bieusson-green-300);
    border-radius: var(--radius-full);
}

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

/* --- Skip Link (Accessibility) --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-4);
    background: var(--primary);
    color: var(--white);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius);
    z-index: var(--z-toast);
    font-weight: 600;
}

.skip-link:focus {
    top: var(--space-4);
}

/* --- Icônes SVG (remplacement des émojis) --- */
.emoji-svg {
    width: 1em;
    height: 1em;
    display: inline-block;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: -0.15em;
}
