/**
 * Base Styles — Typography & Global Elements
 *
 * Typographie, liens, paragraphes et styles globaux.
 *
 * @package Bipauto
 * @since   1.0.0
 */

/* ── Body ────────────────────────────────────────────────── */
body {
    font-family: var(--font-body);
    font-size: var(--text-body);
    font-weight: 400;
    line-height: var(--leading-normal);
    color: var(--text);
    background-color: var(--bg);
    transition: background-color var(--transition-base),
                color var(--transition-base);
}

/* ── Headings ────────────────────────────────────────────── */
h1, .h1 {
    font-family: var(--font-heading);
    font-size: var(--text-h1);
    font-weight: 700;
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    color: var(--text);
}

h2, .h2 {
    font-family: var(--font-heading);
    font-size: var(--text-h2);
    font-weight: 700;
    line-height: var(--leading-tight);
    color: var(--text);
}

h3, .h3 {
    font-family: var(--font-heading);
    font-size: var(--text-h3);
    font-weight: 600;
    color: var(--text);
}

h4, .h4 {
    font-family: var(--font-heading);
    font-size: var(--text-h4);
    font-weight: 600;
    color: var(--text);
}

h5, .h5 {
    font-size: var(--text-h5);
    font-weight: 600;
    color: var(--text);
}

h6, .h6 {
    font-size: var(--text-h6);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--text-muted);
}

/* ── Paragraphs ──────────────────────────────────────────── */
p {
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    max-width: 65ch;
}

p + p {
    margin-top: var(--space-4);
}

/* ── Links ───────────────────────────────────────────────── */
a {
    color: var(--color-green);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-green-light);
}

/* ── Strong / Bold ───────────────────────────────────────── */
strong, b {
    font-weight: 600;
    color: var(--text);
}

/* ── Small text ──────────────────────────────────────────── */
small {
    font-size: var(--text-caption);
    color: var(--text-muted);
}

/* ── Selection ───────────────────────────────────────────── */
::selection {
    background: rgba(8, 159, 0, 0.3);
    color: var(--color-white);
}

/* ── Utility: green accent text ──────────────────────────── */
.text-green {
    color: var(--color-green);
}

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

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

/* ── Visually hidden (screen reader only) ────────────────── */
.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;
}
