/* En-tête et menu du site (chargé sur toutes les pages) */
body {
    margin: 0;
    font-family: 'Geologica', sans-serif;
    background-color: #0a0c0f;
    scrollbar-color: #23272c #0a0c0f;
}

        .navbar {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
            padding: 15px 20px;
            background-color: #0a0c0f;
            border-bottom: 1px solid #1d2026;
        }

        .navbar-left, .navbar-center, .navbar-right {
            display: flex;
            align-items: center;
        }

        .navbar-center {
            flex: 1;
            justify-content: center;
        }

        .navbar-center a {
            margin: 0 10px;
            text-decoration: none;
            color: white;
            transition: 0.3s ease;
            font-weight: 500;
            align-items: center;

        }

        .navbar-center a:hover {
            color: #daf37c;
            transition: 0.3s ease;
        }

        .logo, .logo2, .sponsor-logo {
            height: 40px;
            margin-right: 15px;
        }

        .username {
            background-color: #090a0d;
            border: 1px solid #090a0d;
            color: white;
            border-radius: 5px;
            padding: 10px;
            cursor: pointer;
            font-size: 10px;
            font-family: 'Krona One', sans-serif;
            align-items: center;
            transition: transform 0.4s;

        }

        .username:hover{
            transform: scale(1.09);
        }

        .login-button {
            background-color: transparent;
            border: 2px solid #daf37c;
            color: #daf37c;
            padding: 5px 10px;
            border-radius: 5px;
            font-size: 16px;
            cursor: pointer;
            transition: 0.3s ease;
            margin-left: 8px;
            align-items: center;

        }

.tnk-nav-tdb { display: inline-flex; align-items: center; justify-content: center; font-size: 20px; text-decoration: none; padding: 4px 9px; }
                .login-button:hover {
            background-color: #daf37c;
            color: black;
            transition: 0.3s ease;
        }


        .icon-mobile {
            display: none;
        }

        /* Fenêtre de connexion */
        .tnk-login { width: min(400px, calc(100% - 32px)); padding: 30px 28px 28px; border: 1px solid #1d2026; border-radius: 16px; background: #0d0f13; color: #fff; font-family: 'Barlow', system-ui, sans-serif; box-shadow: 0 24px 80px rgba(0, 0, 0, .7); }
        .tnk-login::backdrop { background: rgba(0, 0, 0, .72); backdrop-filter: blur(4px); }
        .tnk-login[open] { animation: tnk-login-in .25s ease; }
        @keyframes tnk-login-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
        .tnk-login__fermer { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: #9da1a8; font-size: 1.5rem; cursor: pointer; }
        .tnk-login__fermer:hover { background: #1d2026; color: #fff; }
        .tnk-login__tete { text-align: center; margin-bottom: 22px; }
        .tnk-login__tete img { width: 56px; height: 56px; object-fit: contain; }
        .tnk-login__tete h2 { margin: 10px 0 4px; font-family: 'Big Shoulders Display', 'Arial Narrow', sans-serif; font-weight: 800; font-size: 2rem; text-transform: uppercase; line-height: 1; }
        .tnk-login__tete p { margin: 0; color: #9da1a8; font-size: .92rem; }
        .tnk-login__erreur { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 16px; padding: 11px 13px; border-radius: 10px; background: rgba(194, 81, 81, .12); border: 1px solid rgba(194, 81, 81, .45); color: #f0a3a3; font-size: .9rem; font-weight: 600; line-height: 1.4; }
        .tnk-login__erreur i { font-size: 1.15rem; margin-top: 1px; }
        .tnk-login form { display: flex; flex-direction: column; gap: 14px; }
        .tnk-login__champ { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: .88rem; }
        .tnk-login__saisie { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 6px 0 14px; border-radius: 10px; border: 1px solid #2a2e36; background: #0a0c0f; transition: border-color .2s; }
        .tnk-login__saisie:focus-within { border-color: #daf37c; }
        .tnk-login__saisie > i { color: #6b6f77; font-size: 1.2rem; }
        .tnk-login__saisie input { flex: 1; min-width: 0; height: 100%; padding: 0; margin: 0; border: 0; outline: 0; background: none; color: #fff; font: 500 1rem 'Barlow', system-ui, sans-serif; }
        .tnk-login__oeil { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: #9da1a8; font-size: 1.2rem; cursor: pointer; }
        .tnk-login__oeil:hover { background: #1d2026; color: #fff; }
        .tnk-login__maj { color: #e8c170; font-weight: 600; font-size: .8rem; }
        .tnk-login__maj[hidden] { display: none; }
        .tnk-login__bouton { height: 50px; margin-top: 6px; border: 1px solid #daf37c; border-radius: 10px; background: #daf37c; color: #0a0c0f; font: 700 1rem 'Barlow', system-ui, sans-serif; cursor: pointer; transition: background .2s, color .2s; }
        .tnk-login__bouton:hover, .tnk-login__bouton:focus-visible { background: transparent; color: #daf37c; outline: 0; }
        .tnk-login__bouton.is-chargement { opacity: .7; pointer-events: none; }
        .tnk-login__onglets { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: -6px 0 18px; padding: 4px; border-radius: 12px; background: #0a0c0f; border: 1px solid #1d2026; }
        .tnk-login__onglets button { height: 38px; border: 0; border-radius: 9px; background: none; color: #9da1a8; font: 700 .92rem 'Barlow', system-ui, sans-serif; cursor: pointer; }
        .tnk-login__onglets button[aria-selected="true"] { background: #1d2026; color: #fff; }
        .tnk-login [hidden] { display: none !important; }
        .tnk-login__aide { color: #6b6f77; font-weight: 500; font-size: .78rem; }
        .tnk-login__note { margin: 4px 0 0; color: #9da1a8; font-size: .82rem; line-height: 1.45; text-align: center; }
        .tnk-login__piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
        .tnk-login { max-height: calc(100dvh - 24px); overflow-y: auto; }
        .tnk-nav-tdb { position: relative; }
        .tnk-nav-tdb__pastille { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #e35d5d; color: #fff; font: 800 .7rem/18px 'Barlow', system-ui, sans-serif; text-align: center; }

        @media (max-width: 600px) {

            .navbar-center {
            }

            .navbar-center a {
            }

            .login-button, .username {
                font-size: 12px;
                padding: 5px;
            }

            .icon-mobile {
                display: inline;
            }
            .text-desktop, .logo2{
                display: none;
            }
        }

/* Bouton soleil / lune */
.tnk-theme { display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid #2a2e36; border-radius: 50%; background: transparent; color: #daf37c; font-size: 1.25rem; cursor: pointer; transition: border-color .2s, transform .3s; }
.tnk-theme:hover, .tnk-theme:focus-visible { border-color: #daf37c; outline: none; }
.tnk-theme:active { transform: rotate(40deg); }

/* Logo Palmarès : le nombre de trophées s'écrit dans la coupe */
.tnk-statslogo { position: relative; display: inline-block; margin-right: 15px; line-height: 0; }
.tnk-statslogo .logo2 { margin-right: 0; }
.tnk-statslogo__nb { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); color: #464a4d; font: 700 9px/1 'Barlow', 'Arial Narrow', sans-serif; pointer-events: none; }
.tnk-statslogo__nb.is-long { font-size: 7px; letter-spacing: -.03em; }
@media (max-width: 700px) { body .navbar .tnk-statslogo { display: none; } }

/* Cloche et recherche dans l'en-tête */
.tnk-nav-icone { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; margin-right: 8px; border: 1px solid #2a2e36; border-radius: 50%; background: transparent; color: #daf37c; font-size: 1.25rem; text-decoration: none; cursor: pointer; }
.tnk-nav-icone:hover { border-color: #daf37c; }
.tnk-nav-icone em { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: #c25151; color: #fff; font: 800 .68rem/18px 'Barlow', system-ui, sans-serif; font-style: normal; text-align: center; }
@media (max-width: 700px) { .tnk-nav-icone { width: 34px; height: 34px; margin-right: 4px; font-size: 1.1rem; } }

/* Recherche instantanée (en-tête) */
.tnk-rchd { width: min(640px, calc(100vw - 24px)); max-height: min(80vh, 640px); margin: 70px auto auto; padding: 0; border: 1px solid #2a2e36; border-radius: 18px; background: #0d0f13; color: #fff; overflow: hidden; font-family: 'Barlow', system-ui, sans-serif; }
.tnk-rchd::backdrop { background: rgba(5, 6, 8, .7); backdrop-filter: blur(3px); }
.tnk-rchd form { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #1d2026; }
.tnk-rchd form i { color: #daf37c; font-size: 1.35rem; }
.tnk-rchd input { flex: 1; min-width: 0; height: 40px; border: 0; background: none; color: #fff; font: 500 1.1rem 'Barlow', system-ui, sans-serif; outline: none; }
.tnk-rchd kbd { padding: 2px 7px; border: 1px solid #2a2e36; border-radius: 6px; color: #6b6f77; font-size: .75rem; }
.tnk-rchd__res { max-height: calc(min(80vh, 640px) - 66px); overflow-y: auto; padding: 8px; }
.tnk-rchd__res h3 { margin: 10px 8px 4px; color: #6b6f77; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.tnk-rchd__res p { margin: 14px 10px; color: #9da1a8; }
.tnk-rch__ligne { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: #fff !important; text-decoration: none; }
.tnk-rch__ligne:hover, .tnk-rch__ligne:focus-visible, .tnk-rch__ligne.is-actif { background: #14171c; outline: none; }
.tnk-rch__vignette { display: grid; place-items: center; flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px; background: #1d2026; color: #daf37c; font-size: 1.2rem; }
.tnk-rch__vignette img { width: 30px; height: 30px; object-fit: contain; }
.tnk-rch__texte { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.tnk-rch__texte strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tnk-rch__texte small { overflow: hidden; color: #9da1a8; text-overflow: ellipsis; white-space: nowrap; }
.tnk-rch__ligne > .bx-chevron-right { color: #3a3f48; }
.tnk-rch__ligne.is-win .tnk-rch__texte strong { color: #daf37c; } .tnk-rch__ligne.is-loss .tnk-rch__texte strong { color: #e38585; }

/* Bandeau « site en maintenance » (toutes les pages) */
.tnk-maintenance { display: flex; align-items: center; gap: 10px; padding: 10px 20px; background: #f0b34a; color: #1a1205; font: 600 .92rem/1.4 'Barlow', system-ui, sans-serif; }
.tnk-maintenance i { font-size: 1.3rem; flex: none; }
.tnk-maintenance span { flex: 1; min-width: 0; }
.tnk-maintenance a { flex: none; padding: 5px 12px; border-radius: 999px; background: #1a1205; color: #f0b34a !important; font-weight: 800; text-decoration: none; }
.tnk-maintenance.is-admin { background: #2a2210; color: #f6d48d; border-bottom: 1px solid #5a4614; }
.tnk-maintenance.is-admin a { background: #f0b34a; color: #1a1205 !important; }
@media (max-width: 700px) { .tnk-maintenance { padding: 9px 14px; font-size: .85rem; } }
