/* File based on https://andy-bell.co.uk/a-more-modern-css-reset/ */

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

/* Prevent font size inflation */
html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

/* Remove default margin in favour of better control in authored CSS */
body, h1, h2, h3, h4, p,
figure, blockquote, dl, dd {
    margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul,
ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Set core body defaults */
body {
    min-height: 100vh;
    line-height: 1.5;
}

/* Set shorter line heights on headings and interactive elements */
h1, h2, h3, h4,
button, input, label {
    line-height: 1.1;
    margin: 0;
    padding: 0;
    font-weight: inherit;
}

/* Remove underline of an element */
a {
    text-decoration: none;
    font-size: inherit;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
    text-decoration-skip-ink: auto;
    color: currentColor;
}

/* Make images easier to work with */
img,
picture {
    max-width: 100%;
    display: block;
}

/* Inherit fonts for inputs and buttons */
input, button,
textarea, select {
    font: inherit;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
    scroll-margin-block: 5ex;
}

/* Set iframe width */
iframe {
    width: 100%;
}

/* Reset hr */
hr {
    margin: 0;
    border: none;
}

/* Reset dialog */
dialog {
    margin: 0;
    padding: 0;
    max-width: none;
    max-height: none;
    border: none;
}

/* Reset Bootstrap checkbox and radio */
input[type="checkbox"], input[type="radio"] {
    margin: 0;
}

/* Réinitialiser l'apparence de tous les types d'inputs */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="week"],
input[type="month"],
input[type="color"],
input[type="datetime-local"],
input[type="range"] {
    -webkit-appearance: none; /* Safari et Chrome */
    -moz-appearance: none; /* Firefox */
    appearance: none; /* CSS de base */
}

/* Cacher les boutons d'effacement et de calendrier */
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration,
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="color"]::-webkit-color-swatch-wrapper,
input[type="color"]::-webkit-color-swatch {
    opacity: 0; /* Cache les éléments spécifiques de chaque type d'input */
}

/* Cacher les flèches d'incrément/décrément */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none; /* Safari et Chrome */
    margin: 0; /* Supprime la marge */
}

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

/* Supprimer la flèche de sélection dans les <select> */
select {
    -webkit-appearance: none; /* Safari et Chrome */
    -moz-appearance: none; /* Firefox */
    appearance: none; /* CSS de base */
}