/**
 * X-Compare - Main CSS
 *
 * Point d'entree principal des styles.
 * Importe tous les modules CSS dans le bon ordre.
 */

/* === Design Tokens (variables) === */
@import 'tokens.css';

/* === Layout (structure, grid, header) === */
@import 'layout.css';

/* === Components (elements reutilisables) === */
@import 'components.css';

/* ========================================
   RESET & BASE
   ======================================== */

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: var(--font-regular);
    line-height: var(--leading-normal);
    color: var(--text-primary);
    background: var(--color-bg);
    min-height: 100vh;
}

/* Background avec gradient et blobs */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        var(--bg-blob-1),
        var(--bg-blob-2),
        var(--bg-blob-3),
        var(--bg-gradient);
    z-index: -1;
    pointer-events: none;
}

/* ========================================
   TYPOGRAPHY BASE
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    color: var(--text-primary);
}

h1 {
    font-size: var(--text-4xl);
    letter-spacing: var(--tracking-tight);
}

h2 {
    font-size: var(--text-3xl);
    letter-spacing: var(--tracking-tight);
}

h3 {
    font-size: var(--text-2xl);
}

h4 {
    font-size: var(--text-xl);
}

p {
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

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

a:hover {
    color: var(--accent-cyan);
}

/* ========================================
   UTILITIES
   ======================================== */

.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;
}

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

.hidden { display: none; }
.invisible { visibility: hidden; }

/* Focus visible pour accessibilite */
:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}
