/*
 * Socle global du site : reprend a l'identique les regles globales que MudBlazor
 * appliquait (reset, typo de base, liens, boutons, listes, barre de defilement)
 * et dont la mise en page depend. Chargee en DERNIER, a la place de MudBlazor.min.css,
 * pour conserver exactement la meme cascade.
 */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border-width: 0;
    border-style: solid;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

strong,
b {
    font-weight: 700;
}

body {
    color: rgb(66, 66, 66);
    font-family: "Roboto", "Helvetica", "Arial", sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.43;
    letter-spacing: 0.01071em;
}

a {
    color: rgb(66, 66, 66);
    text-decoration: none;
}

button {
    color: inherit;
    border: 0;
    cursor: pointer;
    margin: 0;
    display: inline-flex;
    padding: 0;
    position: relative;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    user-select: none;
    border-radius: 0;
    text-decoration: none;
    background-color: transparent;
    -webkit-appearance: none;
    -moz-appearance: none;
    -webkit-tap-highlight-color: transparent;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    overflow: visible;
    text-transform: none;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Barre de defilement fine */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    z-index: 1;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #c4c4c4;
    border-radius: 1px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a6a6a6;
}

html,
body * {
    scrollbar-color: #c4c4c4 transparent;
    scrollbar-width: thin;
}

/* Bouton "haut de page" (App.razor + haut-de-page.js) */
.haut-de-page {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 100;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: rgb(66, 66, 66);
    color: white;
    box-shadow:
        0 3px 5px -1px rgba(0, 0, 0, 0.2),
        0 6px 10px 0 rgba(0, 0, 0, 0.14),
        0 1px 18px 0 rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, background-color 0.2s ease;
}

.haut-de-page:hover {
    background-color: rgb(46, 46, 46);
}

.haut-de-page svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

html.page-defilee .haut-de-page {
    opacity: 1;
    visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
    .haut-de-page {
        transition: none;
    }
}
