/**
 * CELAP - Base CSS
 * Reset et styles globaux
 */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    color: var(--color-text-primary);
    background-color: var(--color-bg-dark);
    overflow-x: hidden;
}

/* Background ambiance subtile */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(ellipse at 20% 20%, rgba(240, 200, 80, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(240, 200, 80, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* ==================== TYPOGRAPHIE ==================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--color-text-primary);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }

p {
    margin-bottom: var(--spacing-md);
    color: var(--color-text-secondary);
}

strong {
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
}

/* ==================== LIENS ==================== */
a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent-dim);
    text-decoration: underline;
}

/* ==================== LISTES ==================== */
ul, ol {
    list-style: none;
}

/* ==================== IMAGES ==================== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* ==================== SÉLECTION ==================== */
::selection {
    background-color: var(--color-accent);
    color: var(--color-bg-dark);
}

/* ==================== SCROLLBAR CUSTOM ==================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-muted);
}

/* ==================== 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;
}

.text-accent {
    color: var(--color-accent);
}

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