/**
 * CSS Reset — Modern Minimal Reset
 *
 * Normalise le rendu entre navigateurs.
 * Basé sur Josh Comeau's CSS Reset + Andy Bell's modern reset.
 *
 * @package Bipauto
 * @since   1.0.0
 */

/* ── Box sizing ──────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ── Remove default margins ──────────────────────────────── */
* {
    margin: 0;
    padding: 0;
}

/* ── Core body defaults ──────────────────────────────────── */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    line-height: var(--leading-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeSpeed;
}

/* ── Media defaults ──────────────────────────────────────── */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

/* ── Form element inheritance ────────────────────────────── */
input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

/* ── Remove button defaults ──────────────────────────────── */
button {
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

/* ── Anchor defaults ─────────────────────────────────────── */
a {
    color: inherit;
    text-decoration: none;
}

/* ── List defaults ───────────────────────────────────────── */
ul,
ol {
    list-style: none;
}

/* ── Table defaults ──────────────────────────────────────── */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* ── Heading line-height ─────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
    line-height: var(--leading-tight);
}

/* ── Text overflow ───────────────────────────────────────── */
p {
    overflow-wrap: break-word;
}

/* ── Remove animations for people who prefer no motion ──── */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ── Focus visible ───────────────────────────────────────── */
:focus {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--color-green);
    outline-offset: 2px;
}

/* ── Skip link (accessibility) ───────────────────────────── */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-4);
    z-index: 9999;
    padding: var(--space-2) var(--space-4);
    background: var(--color-green);
    color: var(--color-white);
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: var(--space-4);
}
