/* ==========================================================================
   LEPPA V3 - Main Styles
   Design professionnel avec palette bleu/vert
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400&family=Inter:wght@400;500;600&display=swap');

/* CSS Variables */
:root {
    /* Couleur principale (identité) - Bleu professionnel */
    --color-primary: #2563EB;
    --color-primary-dark: #1E40AF;
    --color-primary-light: #60A5FA;

    /* Couleur secondaire - Vert/Teal pour collaboration */
    --color-secondary: #0D9488;
    --color-secondary-dark: #0F766E;

    /* Couleur d'accent (CTA uniquement) - Orange vif */
    --color-accent: #F59E0B;
    --color-accent-dark: #D97706;
    --color-accent-light: #FCD34D;

    /* Neutres - Gris très clairs pour structure */
    --color-bg: #FFFFFF;
    --color-bg-alt: #F8FAFC;
    --color-bg-dark: #F1F5F9;
    --color-bg-muted: #E2E8F0;

    --color-text: #0F172A;
    --color-text-light: #475569;
    --color-text-muted: #94A3B8;

    --color-white: #FFFFFF;
    --color-black: #0F172A;

    /* Bordures et ombres */
    --color-border: #E2E8F0;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
    --shadow-xl: 0 24px 48px rgba(15, 23, 42, 0.16);

    /* Typographie */
    --font-serif: 'Fraunces', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Espacements */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

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

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
    color: var(--color-text);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin: 0;
}

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

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

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

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

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

/* ==========================================================================
   Layout
   ========================================================================== */

.page {
    min-height: 100vh;
    padding: var(--spacing-3xl) 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ==========================================================================
   Page Header
   ========================================================================== */

.page-header {
    margin-bottom: var(--spacing-2xl);
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.page-description {
    font-size: 1.125rem;
    color: var(--color-text-light);
    max-width: 600px;
}

/* ==========================================================================
   Grid
   ========================================================================== */

.grid {
    display: grid;
    gap: var(--spacing-xl);
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.text-secondary { color: var(--color-text-light); }

.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-6 { margin-bottom: var(--spacing-xl); }
.mb-8 { margin-bottom: var(--spacing-2xl); }

.mt-4 { margin-top: var(--spacing-lg); }
.mt-6 { margin-top: var(--spacing-xl); }

/* Flexbox utilities */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: var(--spacing-sm); }
.gap-3 { gap: var(--spacing-md); }
.gap-4 { gap: var(--spacing-lg); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .page {
        padding: var(--spacing-xl) 0;
    }

    .page-title { font-size: 2rem; }

    .grid-cols-2,
    .grid-cols-3 {
        grid-template-columns: 1fr;
    }
}
