/* css/core/reset.css - Reset et styles de base */

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

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Force l'app à prendre tout l'espace */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Supprimer toute bordure rouge en haut */
html::before,
body::before,
*::before {
    border-top: none !important;
}

/* Supprimer toute bordure ou outline rouge */
* {
    outline: none !important;
    border-top-color: transparent !important;
}

/* Remove default button styles */
button {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    outline: inherit;
}

/* Remove default link styles */
a {
    color: inherit;
    text-decoration: none;
}

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

/* Form elements */
input, textarea, select {
    font: inherit;
    color: inherit;
}

input:focus, textarea:focus, select:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

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

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

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

.hidden {
    display: none !important;
}

.invisible {
    visibility: hidden;
}

/* Focus styles */
.focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-dark);
}

/* Selection styling */
::selection {
    background: var(--primary-light);
    color: var(--text-primary);
}