/* ==========================================================================
   Typography - Styles typographiques
   ========================================================================== */

/* Body text */
body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-normal);
    color: var(--color-neutral-dark);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-tight);
    color: var(--color-neutral-dark);
    margin-bottom: var(--space-md);
}

h1 {
    font-size: clamp(2.5rem, 5vw + 1rem, var(--font-size-5xl));
    font-weight: var(--font-weight-light);
}

h2 {
    font-size: clamp(2rem, 4vw + 0.5rem, var(--font-size-3xl));
    font-weight: var(--font-weight-regular);
}

h3 {
    font-size: clamp(1.5rem, 3vw + 0.5rem, var(--font-size-2xl));
    font-weight: var(--font-weight-medium);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw + 0.25rem, var(--font-size-xl));
}

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

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

/* Paragraphs */
p {
    margin-bottom: var(--space-md);
}

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

/* Strong and emphasis */
strong,
b {
    font-weight: var(--font-weight-semibold);
    color: var(--color-neutral-dark);
}

em,
i {
    font-style: italic;
}

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

a:hover {
    color: var(--color-secondary);
}

a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Lists */
ul,
ol {
    margin-bottom: var(--space-md);
    padding-left: var(--space-lg);
}

ul li,
ol li {
    margin-bottom: var(--space-xs);
    line-height: var(--line-height-relaxed);
}

ul li {
    list-style: disc;
}

ol li {
    list-style: decimal;
}

/* Special text styles */
.highlight {
    color: var(--color-primary);
    font-weight: var(--font-weight-medium);
}

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

.text-large {
    font-size: var(--font-size-lg);
}

.text-small {
    font-size: var(--font-size-sm);
    color: var(--color-neutral-medium);
}

.text-uppercase {
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Required asterisk */
.required {
    color: var(--color-error);
    font-weight: var(--font-weight-semibold);
}

/* Selection style */
::selection {
    background-color: var(--color-primary);
    color: var(--color-white);
}
