﻿/* ============================================
   Moovalto - RESET CSS
   Normalisation cross-browser
   ============================================ */

/* Reset universel */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body de base */
body {
    font-family: var(--font-family-primary);
    line-height: var(--line-height-normal);
    color: var(--color-text-primary);
    background-color: var(--color-background);
    font-size: var(--font-size-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Reset des liens */
a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    color: var(--color-primary);
}

/* Reset des listes */
ul,
ol {
    list-style: none;
}

/* Reset des boutons */
button {
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    border: none;
    background: none;
    transition: var(--transition-base);
}

button:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Reset des inputs */
input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
}

/* Reset des images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Reset des formulaires */
fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

legend {
    padding: 0;
}

/* Reset des tableaux */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background-color: var(--color-primary);
    color: var(--color-text-inverse);
}

::-moz-selection {
    background-color: var(--color-primary);
    color: var(--color-text-inverse);
}
