/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables CSS pour les thèmes */
:root {
    --bg-primary: #e3f2fd;
    --bg-secondary: #bbdefb;
    --card-bg: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-muted: #888888;
    --accent-blue: #64b5f6;
    --accent-green: #81c784;
    --accent-orange: #ffb74d;
    --accent-red: #ff8a80;
    --border-color: #e0e0e0;
    --shadow: rgba(0,0,0,0.1);
}

/* Mode sombre uniquement quand la classe dark-theme est appliquée */
.dark-theme {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --card-bg: #2d3748;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --text-muted: #888888;
    --accent-blue: #5a9fd4;
    --accent-green: #68b684;
    --accent-orange: #d49843;
    --accent-red: #d47570;
    --border-color: #4a5568;
    --shadow: rgba(0,0,0,0.3);
}

/* Corps de page avec padding adaptatif */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    min-height: 100vh;
    padding: 15px; /* Réduit de 20px pour mobile */
    color: var(--text-primary);
    transition: all 0.3s ease;
    /* Empêcher le zoom sur input focus iOS */
    -webkit-text-size-adjust: 100%;
}

/* Amélioration pour les écrans haute densité */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        /* Améliorer la netteté des textes sur écrans Retina */
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}