/* 
 * Reset CSS - Normalisation des styles par défaut
 * Inspiré de normalize.css et modern-css-reset
 */

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

/* Reset des margins et padding */
* {
    margin: 0;
    padding: 0;
}

/* HTML et Body */
html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    line-height: 1.5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Médias */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

/* Formulaires */
input,
button,
textarea,
select {
    font: inherit;
}

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

/* Typographie */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

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

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

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

/* Désactiver le resize des textarea */
textarea {
    resize: vertical;
}

/* Focus visible */
:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Supprimer les apparences par défaut */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
    -webkit-appearance: none;
}

/* Supprimer les spinners des inputs number */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}
