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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Comic Neue', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-weight: 400;
}

/* ===== TYPOGRAPHIE CHILD-FRIENDLY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Comic Neue', 'Segoe UI', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-sm);
    font-size: 1rem;
    line-height: 1.7;
}

/* Texte plus gros pour les enfants */
.text-large {
    font-size: 1.2rem;
    line-height: 1.6;
}

.text-xl {
    font-size: 1.5rem;
    line-height: 1.5;
}

.text-xxl {
    font-size: 2rem;
    line-height: 1.4;
}

/* Poids de police */
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* ===== VARIABLES COULEURS PASTEL ===== */
:root {
    /* Couleurs principales pastel */
    --primary-soft: #a8d8ea;      /* Bleu pastel */
    --secondary-soft: #ffb3d9;    /* Rose pastel */
    --accent-soft: #c7f2c7;      /* Vert pastel */
    --warning-soft: #ffe4b3;     /* Orange pastel */
    --success-soft: #d4f4dd;     /* Vert clair pastel */
    
    /* Backgrounds */
    --bg-primary: #fafbfc;        /* Blanc cassé très doux */
    --bg-secondary: #f5f7fa;      /* Gris très clair */
    --bg-card: #ffffff;           /* Blanc pur */
    
    /* Textes */
    --text-primary: #4a5568;      /* Gris foncé doux */
    --text-secondary: #718096;    /* Gris moyen */
    --text-light: #a0aec0;       /* Gris clair */
    
    /* Bordures */
    --border-light: #e2e8f0;     /* Bordure très claire */
    --border-medium: #cbd5e0;    /* Bordure moyenne */
    
    /* Ombres douces */
    --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.12);
    
    /* Espacements */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Rayons de bordure */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

/* ===== LAYOUT PRINCIPAL ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.main {
    flex: 1;
    padding: var(--spacing-lg) 0;
}

.main .container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

/* ===== UTILITAIRES ===== */
.hidden {
    display: none !important;
}

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

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .main .container {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .container {
        padding: 0 var(--spacing-xs);
    }
    
    html {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .main {
        padding: var(--spacing-md) 0;
    }
    
    html {
        font-size: 13px;
    }
}
