/*
 * Feuille globale unique du site, chargee avant les styles des composants (App.razor).
 * Une seule requete bloquante au lieu de neuf : chaque feuille en plus retardait le premier
 * affichage d'un aller-retour sur mobile. L'ordre des sections est celui de la cascade.
 */

/* ===== Polices, hebergees sur le site (sous-ensemble latin, woff2, licence OFL : polices/OFL.txt) ===== */

@font-face {
    font-family: "Cinzel";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("/polices/cinzel-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Crimson Pro";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("/polices/crimson-pro-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Source Code Pro";
    font-style: normal;
    font-weight: 200 900;
    font-display: swap;
    src: url("/polices/source-code-pro-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Uncial Antiqua";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/polices/uncial-antiqua-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== Remise a zero de Bootstrap (seul morceau de Bootstrap encore utilise) ===== */

/*!
 * Bootstrap Reboot v5.3.3 (https://getbootstrap.com/)
 * Copyright 2011-2024 The Bootstrap Authors
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
 */:root,[data-bs-theme=light]{--bs-blue:#0d6efd;--bs-indigo:#6610f2;--bs-purple:#6f42c1;--bs-pink:#d63384;--bs-red:#dc3545;--bs-orange:#fd7e14;--bs-yellow:#ffc107;--bs-green:#198754;--bs-teal:#20c997;--bs-cyan:#0dcaf0;--bs-black:#000;--bs-white:#fff;--bs-gray:#6c757d;--bs-gray-dark:#343a40;--bs-gray-100:#f8f9fa;--bs-gray-200:#e9ecef;--bs-gray-300:#dee2e6;--bs-gray-400:#ced4da;--bs-gray-500:#adb5bd;--bs-gray-600:#6c757d;--bs-gray-700:#495057;--bs-gray-800:#343a40;--bs-gray-900:#212529;--bs-primary:#0d6efd;--bs-secondary:#6c757d;--bs-success:#198754;--bs-info:#0dcaf0;--bs-warning:#ffc107;--bs-danger:#dc3545;--bs-light:#f8f9fa;--bs-dark:#212529;--bs-primary-rgb:13,110,253;--bs-secondary-rgb:108,117,125;--bs-success-rgb:25,135,84;--bs-info-rgb:13,202,240;--bs-warning-rgb:255,193,7;--bs-danger-rgb:220,53,69;--bs-light-rgb:248,249,250;--bs-dark-rgb:33,37,41;--bs-primary-text-emphasis:#052c65;--bs-secondary-text-emphasis:#2b2f32;--bs-success-text-emphasis:#0a3622;--bs-info-text-emphasis:#055160;--bs-warning-text-emphasis:#664d03;--bs-danger-text-emphasis:#58151c;--bs-light-text-emphasis:#495057;--bs-dark-text-emphasis:#495057;--bs-primary-bg-subtle:#cfe2ff;--bs-secondary-bg-subtle:#e2e3e5;--bs-success-bg-subtle:#d1e7dd;--bs-info-bg-subtle:#cff4fc;--bs-warning-bg-subtle:#fff3cd;--bs-danger-bg-subtle:#f8d7da;--bs-light-bg-subtle:#fcfcfd;--bs-dark-bg-subtle:#ced4da;--bs-primary-border-subtle:#9ec5fe;--bs-secondary-border-subtle:#c4c8cb;--bs-success-border-subtle:#a3cfbb;--bs-info-border-subtle:#9eeaf9;--bs-warning-border-subtle:#ffe69c;--bs-danger-border-subtle:#f1aeb5;--bs-light-border-subtle:#e9ecef;--bs-dark-border-subtle:#adb5bd;--bs-white-rgb:255,255,255;--bs-black-rgb:0,0,0;--bs-font-sans-serif:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue","Noto Sans","Liberation Sans",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--bs-font-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--bs-gradient:linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family:var(--bs-font-sans-serif);--bs-body-font-size:1rem;--bs-body-font-weight:400;--bs-body-line-height:1.5;--bs-body-color:#212529;--bs-body-color-rgb:33,37,41;--bs-body-bg:#fff;--bs-body-bg-rgb:255,255,255;--bs-emphasis-color:#000;--bs-emphasis-color-rgb:0,0,0;--bs-secondary-color:rgba(33, 37, 41, 0.75);--bs-secondary-color-rgb:33,37,41;--bs-secondary-bg:#e9ecef;--bs-secondary-bg-rgb:233,236,239;--bs-tertiary-color:rgba(33, 37, 41, 0.5);--bs-tertiary-color-rgb:33,37,41;--bs-tertiary-bg:#f8f9fa;--bs-tertiary-bg-rgb:248,249,250;--bs-heading-color:inherit;--bs-link-color:#0d6efd;--bs-link-color-rgb:13,110,253;--bs-link-decoration:underline;--bs-link-hover-color:#0a58ca;--bs-link-hover-color-rgb:10,88,202;--bs-code-color:#d63384;--bs-highlight-color:#212529;--bs-highlight-bg:#fff3cd;--bs-border-width:1px;--bs-border-style:solid;--bs-border-color:#dee2e6;--bs-border-color-translucent:rgba(0, 0, 0, 0.175);--bs-border-radius:0.375rem;--bs-border-radius-sm:0.25rem;--bs-border-radius-lg:0.5rem;--bs-border-radius-xl:1rem;--bs-border-radius-xxl:2rem;--bs-border-radius-2xl:var(--bs-border-radius-xxl);--bs-border-radius-pill:50rem;--bs-box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15);--bs-box-shadow-sm:0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);--bs-box-shadow-lg:0 1rem 3rem rgba(0, 0, 0, 0.175);--bs-box-shadow-inset:inset 0 1px 2px rgba(0, 0, 0, 0.075);--bs-focus-ring-width:0.25rem;--bs-focus-ring-opacity:0.25;--bs-focus-ring-color:rgba(13, 110, 253, 0.25);--bs-form-valid-color:#198754;--bs-form-valid-border-color:#198754;--bs-form-invalid-color:#dc3545;--bs-form-invalid-border-color:#dc3545}[data-bs-theme=dark]{color-scheme:dark;--bs-body-color:#dee2e6;--bs-body-color-rgb:222,226,230;--bs-body-bg:#212529;--bs-body-bg-rgb:33,37,41;--bs-emphasis-color:#fff;--bs-emphasis-color-rgb:255,255,255;--bs-secondary-color:rgba(222, 226, 230, 0.75);--bs-secondary-color-rgb:222,226,230;--bs-secondary-bg:#343a40;--bs-secondary-bg-rgb:52,58,64;--bs-tertiary-color:rgba(222, 226, 230, 0.5);--bs-tertiary-color-rgb:222,226,230;--bs-tertiary-bg:#2b3035;--bs-tertiary-bg-rgb:43,48,53;--bs-primary-text-emphasis:#6ea8fe;--bs-secondary-text-emphasis:#a7acb1;--bs-success-text-emphasis:#75b798;--bs-info-text-emphasis:#6edff6;--bs-warning-text-emphasis:#ffda6a;--bs-danger-text-emphasis:#ea868f;--bs-light-text-emphasis:#f8f9fa;--bs-dark-text-emphasis:#dee2e6;--bs-primary-bg-subtle:#031633;--bs-secondary-bg-subtle:#161719;--bs-success-bg-subtle:#051b11;--bs-info-bg-subtle:#032830;--bs-warning-bg-subtle:#332701;--bs-danger-bg-subtle:#2c0b0e;--bs-light-bg-subtle:#343a40;--bs-dark-bg-subtle:#1a1d20;--bs-primary-border-subtle:#084298;--bs-secondary-border-subtle:#41464b;--bs-success-border-subtle:#0f5132;--bs-info-border-subtle:#087990;--bs-warning-border-subtle:#997404;--bs-danger-border-subtle:#842029;--bs-light-border-subtle:#495057;--bs-dark-border-subtle:#343a40;--bs-heading-color:inherit;--bs-link-color:#6ea8fe;--bs-link-hover-color:#8bb9fe;--bs-link-color-rgb:110,168,254;--bs-link-hover-color-rgb:139,185,254;--bs-code-color:#e685b5;--bs-highlight-color:#dee2e6;--bs-highlight-bg:#664d03;--bs-border-color:#495057;--bs-border-color-translucent:rgba(255, 255, 255, 0.15);--bs-form-valid-color:#75b798;--bs-form-valid-border-color:#75b798;--bs-form-invalid-color:#ea868f;--bs-form-invalid-border-color:#ea868f}*,::after,::before{box-sizing:border-box}@media (prefers-reduced-motion:no-preference){:root{scroll-behavior:smooth}}body{margin:0;font-family:var(--bs-body-font-family);font-size:var(--bs-body-font-size);font-weight:var(--bs-body-font-weight);line-height:var(--bs-body-line-height);color:var(--bs-body-color);text-align:var(--bs-body-text-align);background-color:var(--bs-body-bg);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}hr{margin:1rem 0;color:inherit;border:0;border-top:var(--bs-border-width) solid;opacity:.25}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem;font-weight:500;line-height:1.2;color:var(--bs-heading-color)}h1{font-size:calc(1.375rem + 1.5vw)}@media (min-width:1200px){h1{font-size:2.5rem}}h2{font-size:calc(1.325rem + .9vw)}@media (min-width:1200px){h2{font-size:2rem}}h3{font-size:calc(1.3rem + .6vw)}@media (min-width:1200px){h3{font-size:1.75rem}}h4{font-size:calc(1.275rem + .3vw)}@media (min-width:1200px){h4{font-size:1.5rem}}h5{font-size:1.25rem}h6{font-size:1rem}p{margin-top:0;margin-bottom:1rem}abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}ol,ul{padding-left:2rem}dl,ol,ul{margin-top:0;margin-bottom:1rem}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}small{font-size:.875em}mark{padding:.1875em;color:var(--bs-highlight-color);background-color:var(--bs-highlight-bg)}sub,sup{position:relative;font-size:.75em;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:rgba(var(--bs-link-color-rgb),var(--bs-link-opacity,1));text-decoration:underline}a:hover{--bs-link-color-rgb:var(--bs-link-hover-color-rgb)}a:not([href]):not([class]),a:not([href]):not([class]):hover{color:inherit;text-decoration:none}code,kbd,pre,samp{font-family:var(--bs-font-monospace);font-size:1em}pre{display:block;margin-top:0;margin-bottom:1rem;overflow:auto;font-size:.875em}pre code{font-size:inherit;color:inherit;word-break:normal}code{font-size:.875em;color:var(--bs-code-color);word-wrap:break-word}a>code{color:inherit}kbd{padding:.1875rem .375rem;font-size:.875em;color:var(--bs-body-bg);background-color:var(--bs-body-color);border-radius:.25rem}kbd kbd{padding:0;font-size:1em}figure{margin:0 0 1rem}img,svg{vertical-align:middle}table{caption-side:bottom;border-collapse:collapse}caption{padding-top:.5rem;padding-bottom:.5rem;color:var(--bs-secondary-color);text-align:left}th{text-align:inherit;text-align:-webkit-match-parent}tbody,td,tfoot,th,thead,tr{border-color:inherit;border-style:solid;border-width:0}label{display:inline-block}button{border-radius:0}button:focus:not(:focus-visible){outline:0}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,select{text-transform:none}[role=button]{cursor:pointer}select{word-wrap:normal}select:disabled{opacity:1}[list]:not([type=date]):not([type=datetime-local]):not([type=month]):not([type=week]):not([type=time])::-webkit-calendar-picker-indicator{display:none!important}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled),button:not(:disabled){cursor:pointer}::-moz-focus-inner{padding:0;border-style:none}textarea{resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{float:left;width:100%;padding:0;margin-bottom:.5rem;font-size:calc(1.275rem + .3vw);line-height:inherit}@media (min-width:1200px){legend{font-size:1.5rem}}legend+*{clear:left}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-text,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}::file-selector-button{font:inherit;-webkit-appearance:button}output{display:inline-block}iframe{border:0}summary{display:list-item;cursor:pointer}progress{vertical-align:baseline}[hidden]{display:none!important}

/* ===== Variables : couleurs, tailles, polices ===== */

:root {
    --couleur-de-fond: #0F0D1E;
    --couleur-fond-panneau: #17152D;
    --couleur-fond-navbar: black;
    --couleur-texte: white;
    --couleur-carte: #1a1b26;

    --h1-taille-texte: 7rem;
    --h2-taille-texte: 2.2rem;
    --h3-taille-texte: 1.5rem;
    --taille-texte: 1.1rem;
    --taille-texte-boutons: calc(var(--taille-texte) * 1.1);

    /* Uncial : grands titres d'en-tete seulement (mots courants). Illisible pour les noms propres
       et les chiffres : son "t" ressemble a un "c" et son "0" a un "O". */
    --police-grand-titre: "Uncial Antiqua", serif;
    --poids-police-grand-titre: 400;
    --font-style-grand-titre: normal;

    /* Titres de section, noms de serveurs, chiffres */
    --police-titre: "Cinzel", Georgia, serif;
    --poids-police-titre: 600;

    --police-sous-titre: "Crimson Pro", Georgia, serif;
    --poids-police-sous-titre: 400;
    --font-style-sous-titre: normal;

    /* Paragraphes de lecture. Plus grande que --taille-texte : a taille egale, Crimson Pro
       parait plus petite que Source Code Pro. */
    --police-lecture: "Crimson Pro", Georgia, serif;
    --taille-texte-lecture: 1.25rem;

    /* Interface : menu, boutons, pastilles, tags, adresses */
    --police-texte: "Source Code Pro", monospace;
    --poids-police-texte: 400;
    --font-style-texte: normal;

    --force-bordures: 20px;
    --rayon-bordure-pilule: 50px;

    --ombre-hero: 0 4px 10px rgba(0, 0, 0, 0.5);
    --ombre-carte: 0 4px 8px rgba(0, 0, 0, 0.7);
    --ombre-bouton: 0 4px 8px rgba(0, 0, 0, 0.2);
    --opacite-overlay: 0.5;

    --gradient-bleu-fonce: linear-gradient(127deg, rgba(2,29,50,1) 7%, rgba(3,63,101,1) 34%, rgba(1,33,74,1) 86%);
    --gradient-violet-rose-peche: linear-gradient(121deg, rgba(94,0,238,1) 4%, rgba(114,4,228,1) 17%, rgba(117,4,227,1) 28%, rgba(124,5,223,1) 41%, rgba(167,12,201,1) 58%, rgba(188,16,190,1) 71%, rgba(201,59,194,1) 79%, rgba(232,161,202,1) 89%, rgba(247,209,206,1) 100%);
    --gradient-rouge-orange: linear-gradient(150deg, rgba(117,0,0,1) 8%, rgba(131,19,3,1) 30%, rgba(141,26,3,1) 52%, rgba(163,32,1,1) 77%, rgba(186,64,3,1) 100%);
    --gradient-vert: linear-gradient(150deg, rgba(31,102,0,1) 5%, rgba(9,116,3,1) 16%, rgba(8,131,6,1) 29%, rgba(7,142,8,1) 42%, rgba(6,161,12,1) 55%, rgba(5,177,15,1) 65%, rgba(4,192,18,1) 81%, rgba(0,237,27,1) 100%);
    --gradient-noir: linear-gradient(135deg, rgba(39,57,74,1) 0%, rgba(29,42,54,1) 16%, rgba(23,34,44,1) 32%, rgba(14,21,27,1) 59%, rgba(0,0,0,1) 100%);
    --gradient-vert-jaune: linear-gradient(135deg, rgba(1,129,33,1) 0%, rgba(173,159,1,1) 100%);
    --gradient-discord: linear-gradient(159deg, rgba(39,54,207,1) 3%, rgba(52,67,215,1) 19%, rgba(65,80,224,1) 48%, rgba(75,89,230,1) 59%, rgba(86,100,237,1) 75%, rgba(96,109,243,1) 87%, rgba(113,125,254,1) 100%);
    --gradient-noir-clair: linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(5,3,35,1) 21%, rgba(6,5,34,1) 44%, rgba(8,8,32,1) 71%, rgba(14,16,29,1) 100%);

    --transition-grossissement: transform 0.2s ease;
    --media-query-sous-pc-portable: 1024px;

    /* Responsive automatique : pas besoin de media query */
    --padding-marges-page: clamp(2rem, 6vw, 6rem);
}

@media (max-width: 1024px) {
    :root {
        --h1-taille-texte: 4rem;
        --h2-taille-texte: 1.5rem;
    }
}

@media (max-width: 640px) {
    :root {
        --taille-texte-lecture: 1.15rem;
        /* En police a chasse fixe, les libelles des boutons passaient sur deux lignes */
        --taille-texte-boutons: 1rem;
    }
}

/* ===== Typographie de base ===== */

h1, h2, h3, h4, h5, h6, p, a {
    font-family: var(--police-texte);
    color: var(--couleur-texte);
}

/* ===== Utilitaires : marges de page, apparition au defilement ===== */

.separation-contenu {
    margin-top : 7rem;
}

.marge-pages {
    padding-left: var(--padding-marges-page);
    padding-right: var(--padding-marges-page);
}

/* Scroll-reveal : etat initial cache, declenche par animations.js */
[data-scroll-reveal] {
    opacity: 0;
    transform: translateY(2.5rem);
    transition:
        opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-scroll-reveal].visible {
    opacity: 1;
    transform: translateY(0);
}

/* Un element qui recoit le focus clavier doit etre visible sans attendre son animation
   d'apparition (cartes bento, cartes serveur...). */
[data-scroll-reveal]:focus-within,
[data-scroll-reveal]:focus-within :focus-within {
    opacity: 1;
    transform: none;
    transition: none;
}

@media (prefers-reduced-motion: reduce) {
    [data-scroll-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ===== Pages a en-tete plein ecran : Index, PageServeurs, PagePresentation, PageAgora ===== */

section {
    width: 100%;
}

.fond-media {
    width: 100%;
    height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    box-shadow: var(--ombre-hero);
}

.img-haut-page {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.interieur {
    width: min(72rem, 100%);
    margin-inline: auto;
    padding-inline: 1rem;
    text-align: center;
}

.interieur h1 {
    font-size: clamp(2.6rem, 8vw, var(--h1-taille-texte));
    margin-bottom: 1rem;
    line-height: 1.05;
    font-family: var(--police-grand-titre);
    font-weight: var(--poids-police-grand-titre);
    font-style: var(--font-style-grand-titre);
    text-wrap: balance;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}

.interieur h2 {
    font-size: clamp(1.15rem, 3.4vw, var(--h2-taille-texte));
    margin-bottom: 2rem;
    line-height: 1.25;
    max-width: 42ch;
    margin-inline: auto;
    font-family: var(--police-sous-titre);
    font-weight: var(--poids-police-sous-titre);
    font-style: var(--font-style-sous-titre);
    text-wrap: balance;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}

@media (max-width: 1024px) {
    .fond-media {
        min-height: 92svh;
    }

    .interieur {
        padding-inline: 0.8rem;
    }

    .interieur h2 {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 640px) {
    .fond-media {
        min-height: 82svh;
    }

    .interieur {
        padding-inline: 0.5rem;
    }

    .interieur h1 {
        margin-bottom: 0.8rem;
    }

    .interieur h2 {
        margin-bottom: 1.1rem;
        max-width: 30ch;
    }
}

/* ===== Boutons : base partagee (BoutonFondTransparent, BoutonGradientViolet) ===== */

.bouton {
    /* Les boutons de navigation sont des liens <a> : affichage en ligne flexible explicite */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    text-decoration: none;
    user-select: none;
    position: relative;
    overflow: hidden;
    /* Cree un stacking context local pour que les z-index p/img/::before soient previsibles */
    isolation: isolate;
    border: none;
    cursor: pointer;
    border-radius: var(--rayon-bordure-pilule);
    width: auto;
    font-weight: var(--poids-police-texte);
    font-family: var(--police-texte);
    font-style: var(--font-style-texte);
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.bouton p {
    margin: 0;
    font-size: var(--taille-texte-boutons);
    /* Reste au-dessus du shimmer ::before */
    position: relative;
    z-index: 1;
}

.bouton img {
    width: auto;
    object-fit: cover;
    height: calc(var(--taille-texte-boutons) * 1.5);
    margin-right: 0.7rem;
    /* Reste au-dessus du shimmer ::before */
    position: relative;
    z-index: 1;
}

/* Shimmer de base (blanc) — utilisé par les variantes sombres / transparentes */
.bouton::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: white;
    opacity: 0.3;
    z-index: 0;
    border-radius: inherit;
    transition: width 0.27s ease-in-out;
}

.bouton:hover::before {
    width: 100%;
}

/* Supprime le saut de layout du au changement de font-weight */
.bouton:hover {
    transform: scale(1.04);
}

/* Ecrans tactiles : cible d'au moins 44 px */
@media (pointer: coarse) {
    .bouton {
        min-height: 44px;
    }
}

/* ===== Fond, focus ===== */

body, html {
    background-color: var(--couleur-de-fond);
}

/* FocusOnNavigate place le focus sur le h1 a chaque navigation : pas de cadre dessus */
h1:focus {
    outline: none;
}

/* Focus clavier visible sur tous les liens et boutons (les composants bento et navbar
   definissent leur propre style de focus, plus specifique). */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--couleur-texte);
    outline-offset: 3px;
}

/* ===== Socle : reset, typo de base, liens, boutons, barre de defilement ===== */

/*
 * 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. Apres les
 * sections precedentes, qu'elles surchargent a specificite egale. Placees avant les styles des
 * composants plutot qu'apres : ceux-ci portent tous un attribut de portee, donc l'emportent
 * deja par specificite (styles calcules identiques sur 17 pages, octobre 2026).
 */

* {
    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: var(--police-texte);
    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;
}

/* Repris de Bootstrap, dont seul le reboot reste charge (App.razor) */
.visually-hidden {
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.visually-hidden:not(caption) {
    position: absolute !important;
}

.nav-link {
    display: block;
    text-decoration: none;
    background: 0 0;
    border: 0;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
    .nav-link {
        transition: 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;
    }
}
