/* ==========================================================
   SYLFOW MARKET
   RESET CSS
========================================================== */

/* Box sizing */

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

/* Reset marges */

* {
    margin: 0;
    padding: 0;
}

/* HTML */

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

/* Body */

body {
    min-height: 100vh;
    font-family: var(--sf-font);
    font-size: var(--sf-text-md);
    color: var(--sf-text);
    background: var(--sf-bg);
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Médias */

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

/* Formulaires */

input,
button,
textarea,
select {
    font: inherit;
    border: none;
    outline: none;
    background: none;
}

button {
    cursor: pointer;
}

textarea {
    resize: vertical;
}

/* Liens */

a {
    color: inherit;
    text-decoration: none;
    transition: var(--sf-transition);
}

/* Listes */

ul,
ol {
    list-style: none;
}

/* Titres */

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    font-weight: var(--sf-fw-bold);
    color: var(--sf-text);
}

/* Paragraphes */

p {
    color: var(--sf-text-light);
}

/* Tableaux */

table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
}

/* Champs de formulaire */

input,
textarea,
select {
    width: 100%;
}

/* Boutons désactivés */

button:disabled {
    cursor: not-allowed;
    opacity: .6;
}

/* Focus accessible */

:focus-visible {
    outline: 3px solid rgba(22, 163, 74, .25);
    outline-offset: 2px;
}

/* Sélection de texte */

::selection {
    background: var(--sf-primary);
    color: #fff;
}

/* Barre de défilement (Chrome, Edge, Safari) */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #edf2f7;
}

::-webkit-scrollbar-thumb {
    background: var(--sf-primary);
    border-radius: 999px;
}

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