/**
 * Reset CSS - Diezstar Theme
 * 
 * Normalise les styles par défaut du navigateur
 */

/* Reset de base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px; /* Base moderne 15-16px */
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base); /* 15px - UI refactor */
    line-height: var(--line-height-normal);
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    overflow-x: hidden;
}

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

/* Liens */
a {
    color: var(--color-link);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover,
a:focus {
    color: var(--color-link-hover);
    text-decoration: none;
}

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

/* Titres */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: var(--font-size-xxxl); /* 32px - Réduit */
    font-weight: var(--font-weight-black);
}

h2 {
    font-size: var(--font-size-xxl); /* 24px - Réduit */
    font-weight: var(--font-weight-bold);
}

h3 {
    font-size: var(--font-size-xl); /* 20px */
    font-weight: var(--font-weight-bold);
}

h4 {
    font-size: var(--font-size-lg);
}

h5 {
    font-size: var(--font-size-md);
}

h6 {
    font-size: var(--font-size-base);
}

/* Paragraphes */
p {
    margin-bottom: var(--spacing-sm);
}

/* Boutons */
button {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
}

/* Inputs */
input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* Media */
audio,
video {
    display: block;
    max-width: 100%;
}

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

/* Sélection */
::selection {
    background-color: var(--color-accent-primary);
    color: var(--color-text-primary);
}

