/* ==========================================================
   L2A TRANSPORTS DÉDIÉS
   RESET CSS
   Version Production
========================================================== */

/* ------------------------------
   Box Model
--------------------------------*/

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

/* ------------------------------
   HTML
--------------------------------*/

html{

    scroll-behavior:smooth;

    -webkit-text-size-adjust:100%;

    text-size-adjust:100%;

}

/* ------------------------------
   Body
--------------------------------*/

body{

    min-height:100vh;

    text-rendering:optimizeLegibility;

    -webkit-font-smoothing:antialiased;

    -moz-osx-font-smoothing:grayscale;

    overflow-x:hidden;

}

/* ------------------------------
   Médias
--------------------------------*/

img,
picture,
svg,
video,
canvas{

    display:block;

    max-width:100%;

    height:auto;

}

/* ------------------------------
   Typographie
--------------------------------*/

h1,h2,h3,h4,h5,h6{

    font-weight:inherit;

    line-height:1.15;

}

p{

    overflow-wrap:break-word;

}

a{

    text-decoration:none;

    color:inherit;

}

/* ------------------------------
   Listes
--------------------------------*/

ul,
ol{

    list-style:none;

}

/* ------------------------------
   Tableaux
--------------------------------*/

table{

    border-collapse:collapse;

    border-spacing:0;

}

/* ------------------------------
   Boutons
--------------------------------*/

button{

    font:inherit;

    border:none;

    background:none;

    cursor:pointer;

    color:inherit;

}

/* ------------------------------
   Inputs
--------------------------------*/

input,
textarea,
select{

    font:inherit;

    color:inherit;

    border:none;

    background:none;

    outline:none;

}

textarea{

    resize:vertical;

}

input::placeholder,
textarea::placeholder{

    opacity:.65;

}

/* ------------------------------
   Focus accessible
--------------------------------*/

:focus-visible{

    outline:3px solid var(--color-primary);

    outline-offset:4px;

}

/* ------------------------------
   Sélection de texte
--------------------------------*/

::selection{

    background:var(--color-primary);

    color:#fff;

}

/* ------------------------------
   Scrollbar
--------------------------------*/

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:var(--bg-dark);

}

::-webkit-scrollbar-thumb{

    background:linear-gradient(
        var(--color-primary),
        var(--color-secondary)
    );

    border-radius:50px;

}

::-webkit-scrollbar-thumb:hover{

    background:var(--color-primary-light);

}

/* ------------------------------
   Désactivation animations
   si utilisateur le demande
--------------------------------*/

@media (prefers-reduced-motion:reduce){

    *{

        animation-duration:.01ms !important;

        animation-iteration-count:1 !important;

        transition-duration:.01ms !important;

        scroll-behavior:auto !important;

    }

}

/* ------------------------------
   Éléments cachés
--------------------------------*/

[hidden]{

    display:none !important;

}