/**
 * BASE STYLES - LA BELLE BRETAGNE
 * Reset, variables CSS et styles de base
 */

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

/* ===== VARIABLES CSS ===== */
:root {
    /* Palette Bretagne Moderne */
    --primary: #1e40af;          /* Bleu océan profond */
    --primary-light: #3b82f6;    /* Bleu océan clair */
    --primary-dark: #1e3a8a;     /* Bleu marine */
    --secondary: #f0f9ff;        /* Bleu très clair */
    --accent: #06b6d4;           /* Cyan/turquoise */
    --accent-warm: #f59e0b;      /* Ambre/or breton */
    --text-primary: #1e293b;     /* Gris ardoise foncé */
    --text-secondary: #475569;   /* Gris ardoise */
    --text-muted: #64748b;       /* Gris moyen */
    --surface: #ffffff;
    --surface-elevated: #fafafa;
    --surface-card: #ffffff;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --success: #059669;          /* Vert émeraude */
    --warning: #d97706;          /* Orange chaleureux */
    --danger: #dc2626;           /* Rouge */
    
    /* Couleurs thématiques Bretagne */
    --ocean-blue: #0369a1;       /* Bleu océan */
    --sea-foam: #ecfeff;         /* Écume de mer */
    --granite-gray: #6b7280;     /* Gris granit */
    --celtic-gold: #fbbf24;      /* Or celtique */
    --forest-green: #166534;     /* Vert forêt */
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    --gradient-ocean: linear-gradient(135deg, var(--ocean-blue) 0%, var(--accent) 100%);
    --gradient-sunset: linear-gradient(135deg, var(--accent-warm) 0%, var(--celtic-gold) 100%);
    
    /* Ombres modernes */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.16);
    
    /* Typographie */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xs: 0.75rem;     /* 12px */
    --font-size-sm: 0.875rem;    /* 14px */
    --font-size-base: 1rem;      /* 16px */
    --font-size-lg: 1.125rem;    /* 18px */
    --font-size-xl: 1.25rem;     /* 20px */
    --font-size-2xl: 1.5rem;     /* 24px */
    --font-size-3xl: 1.875rem;   /* 30px */
    
    /* Espacements */
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.25rem;   /* 20px */
    --space-6: 1.5rem;    /* 24px */
    --space-8: 2rem;      /* 32px */
    --space-12: 3rem;     /* 48px */
    
    /* Rayons de bordure */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* ===== BASE STYLES ===== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHIE ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

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

p {
    margin-bottom: var(--space-4);
    color: var(--text-secondary);
}

/* ===== LIENS ===== */
a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* ===== BOUTONS BASE ===== */
button {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== FORMULAIRES ===== */
input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* ===== UTILITAIRES ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.no-scroll {
    overflow: hidden;
}