/**
 * Styles de base
 * Reset et typographie
 */

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

/* Body */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-body);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typographie */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-title);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 32px;
}

h2 {
    font-size: 28px;
}

h3 {
    font-size: 20px;
}

h4 {
    font-size: 18px;
}

p {
    margin-bottom: 1em;
}

p:last-child {
    margin-bottom: 0;
}

/* Liens */
a {
    color: var(--text-title);
    text-decoration: underline;
    text-underline-offset: 0.15em;
    text-decoration-thickness: 0.08em;
    transition: var(--transition);
}

a:hover {
    color: var(--main-dark);
}

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

/* Listes */
ul, ol {
    padding-left: 1.5em;
}

li {
    margin-bottom: 0.5em;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
}

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

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

/* Sélection */
::selection {
    background-color: var(--main-light);
    color: var(--text-title);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Utilitaires texte */
.text-center {
    text-align: center;
}

.text-success {
    color: var(--main-color);
}

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

.text-muted {
    color: var(--text-light);
}

.text-small {
    font-size: 13px;
}

/* Marges utilitaires */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
