/**
 * CSS Reset - Normalisation des styles par défaut
 * Basé sur modern-normalize avec ajouts personnalisés
 */

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

/* Margin et padding reset */
html,
body,
h1, h2, h3, h4, h5, h6,
p,
blockquote,
pre,
dl, dd, ol, ul,
figure,
hr,
fieldset,
legend {
    margin: 0;
    padding: 0;
}

/* Document */
html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    -moz-tab-size: 4;
    tab-size: 4;
    scroll-behavior: smooth;
}

/* Body */
body {
    min-height: 100vh;
    line-height: 1.5;
    text-rendering: optimizeSpeed;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
}

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

/* Links */
a {
    color: inherit;
    text-decoration: inherit;
}

/* Images */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Form elements */
button,
input,
optgroup,
select,
textarea {
    font: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
}

button {
    background: none;
    border: none;
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
}

/* Tables */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Remove animations for reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Hidden elements */
[hidden] {
    display: none !important;
}

/* 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;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: #000;
    color: #fff;
    padding: 0.5rem 1rem;
    z-index: 9999;
}

.skip-link:focus {
    top: 0;
}
