/* ==================================================
   LEOPARD DESIGN SYSTEM V2
   © 2026 Bojaas Production
   Tous droits réservés.
================================================== */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');


/* ==================================================
   COULEURS OFFICIELLES
================================================== */

:root {

    --black-deep:
        #030405;

    --black:
        #070809;

    --black-soft:
        #0d0f11;

    --surface:
        rgba(
            17,
            18,
            20,
            0.88
        );

    --surface-light:
        rgba(
            29,
            27,
            21,
            0.78
        );

    --gold:
        #d9a928;

    --gold-light:
        #f4cf63;

    --gold-dark:
        #76520a;

    --white:
        #f5f2e9;

    --grey:
        #a2a2a2;

    --grey-dark:
        #666a70;

    --green:
        #43d17b;

    --border:
        rgba(
            244,
            207,
            99,
            0.14
        );

    --border-hover:
        rgba(
            167,
            139,
            250,
            0.50
        );

    --shadow:
        0 25px 70px
        rgba(
            0,
            0,
            0,
            0.55
        );

    --gold-glow:
        0 0 35px
        rgba(
            217,
            169,
            40,
            0.15
        );

    --violet:
        #a78bfa;

    --violet-light:
        #c9b8ff;

    --violet-glow:
        0 0 35px
        rgba(
            167,
            139,
            250,
            0.22
        );

    --font-display:
        "Rajdhani",
        "Inter",
        Arial,
        sans-serif;

    --font-body:
        "Inter",
        Arial,
        Helvetica,
        sans-serif;

    --surface-graphite:
        rgba(
            16,
            14,
            24,
            0.92
        );

    --border-violet:
        rgba(
            167,
            139,
            250,
            0.16
        );

}


/* ==================================================
   FOND D'AMBIANCE — GRAPHITE / VIOLET, PREMIUM E-SPORT

   Le violet est maintenant l'accent lumineux dominant
   du fond (halos + nébuleuse discrète), l'or n'apparaît
   plus qu'en touche minime. Fixe, n'affecte aucune mise
   en page, opacité très faible — perçu, pas remarqué.
================================================== */

body::before {

    position:
        fixed;

    top:
        -8%;

    right:
        -8%;

    bottom:
        -8%;

    left:
        -8%;

    z-index:
        0;

    pointer-events:
        none;

    content:
        "";

    background:
        radial-gradient(
            ellipse 58% 46% at 16% 10%,
            rgba(167, 139, 250, 0.12),
            transparent 60%
        ),
        radial-gradient(
            ellipse 60% 50% at 88% 82%,
            rgba(139, 110, 230, 0.10),
            transparent 62%
        ),
        radial-gradient(
            ellipse 70% 55% at 50% 45%,
            rgba(90, 70, 160, 0.05),
            transparent 68%
        ),
        radial-gradient(
            ellipse 40% 30% at 78% 14%,
            rgba(217, 169, 40, 0.045),
            transparent 65%
        );

    animation:
        ambientBreathe
        16s
        ease-in-out
        infinite,
        ambientDrift
        42s
        ease-in-out
        infinite;

    will-change:
        transform,
        opacity;

}

@keyframes ambientBreathe {

    0%, 100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

}

@keyframes ambientDrift {

    0%, 100% {
        transform:
            translate(0, 0)
            scale(1);
    }

    33% {
        transform:
            translate(1.5%, 1%)
            scale(1.03);
    }

    66% {
        transform:
            translate(-1%, 1.5%)
            scale(1.01);
    }

}


/* ==================================================
   POUSSIÈRE D'ÉTOILES — TRÈS DISCRÈTE

   Un semis de points minuscules, presque immobile,
   pour suggérer la profondeur sans jamais distraire.
================================================== */

body::after {

    position:
        fixed;

    inset:
        0;

    z-index:
        0;

    content:
        "";

    opacity:
        0.35;

    pointer-events:
        none;

    background-image:
        radial-gradient(1px 1px at 12% 22%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 78% 8%, rgba(167, 139, 250, 0.55), transparent),
        radial-gradient(1px 1px at 32% 68%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 91% 54%, rgba(255, 255, 255, 0.35), transparent),
        radial-gradient(1px 1px at 58% 88%, rgba(167, 139, 250, 0.45), transparent),
        radial-gradient(1px 1px at 6% 90%, rgba(255, 255, 255, 0.3), transparent);

    background-size:
        100% 100%;

    animation:
        starDrift
        60s
        linear
        infinite;

}

@keyframes starDrift {

    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-0.6%, -0.4%);
    }

}

body > * {

    position:
        relative;

    z-index:
        1;

}


/* ==================================================
   LUEUR DE TEXTE — USAGE PONCTUEL UNIQUEMENT
   (titres héros / accents forts, pas partout)
================================================== */

.glow-text {

    animation:
        textGlowPulse
        3.4s
        ease-in-out
        infinite;

}

@keyframes textGlowPulse {

    0%, 100% {
        text-shadow:
            0 0 18px rgba(244, 207, 99, 0.25);
    }

    50% {
        text-shadow:
            0 0 30px rgba(244, 207, 99, 0.45);
    }

}


.violet-text {

    color:
        var(--violet);

}


/* ==================================================
   TEXTE À GRADIENT ANIMÉ — USAGE TRÈS PARCIMONIEUX
   (le nom DRAPOLE dans le header, l'accroche du hero)

   Une fine lumière violette balaie lentement un texte
   par ailleurs blanc — "projecteur qui traverse les
   lettres", pas un dégradé statique. Pas d'or ici : ce
   traitement est réservé à blanc/violet, sur demande.
   Dégradation propre : sans background-clip, le texte
   reste simplement blanc (couleur de secours ci-dessous).
================================================== */

.gradient-text-animated {

    color:
        var(--white);

    background:
        linear-gradient(
            100deg,
            var(--white) 0%,
            var(--white) 32%,
            var(--violet-light) 42%,
            var(--gold-light) 48%,
            var(--violet) 52%,
            var(--violet-light) 58%,
            var(--white) 68%,
            var(--white) 100%
        );

    background-size:
        280% 100%;

    -webkit-background-clip:
        text;

    background-clip:
        text;

    -webkit-text-fill-color:
        transparent;

    animation:
        gradientTextFlow
        5.5s
        ease-in-out
        infinite;

}

@keyframes gradientTextFlow {

    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 280% 50%;
    }

}

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

    .gradient-text-animated {
        animation: none;
        background-position: 0% 50%;
    }

}


/* ==================================================
   APPARITION PROGRESSIVE AU SCROLL
   (discrète : fondu + léger déplacement, pas de rebond)
================================================== */

.reveal-on-scroll {

    opacity: 0;

    transform:
        translateY(22px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;

}

.reveal-on-scroll.revealed {

    opacity: 1;

    transform:
        translateY(0);

}

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

    .reveal-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }

    body::before,
    body::after {
        animation: none;
    }

    .glow-text {
        animation: none;
    }

}


/* ==================================================
   BASE
================================================== */

* {

    box-sizing:
        border-box;

    margin:
        0;

    padding:
        0;

}

html {

    scroll-behavior:
        smooth;

}

body {

    min-height:
        100vh;

    overflow-x:
        hidden;

    color:
        var(
            --white
        );

    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;

    background:
        var(
            --black-deep
        );

}


/* ==================================================
   HIÉRARCHIE TYPOGRAPHIQUE

   Rajdhani (display, e-sport/gaming) pour les titres,
   la navigation, les boutons et les chiffres forts.
   Inter reste la police des paragraphes — lisible,
   neutre, jamais "gaming" à outrance.
================================================== */

h1,
h2,
h3,
.leopard-title,
.leopard-button,
.secondary-button,
.leopard-nav a,
.eyebrow,
.stat-value,
.platform-number {

    font-family:
        var(--font-display);

    letter-spacing:
        0.3px;

}


/* ==================================================
   L'ancien fond "taches léopard" (body::before/::after,
   motif de cercles dorés répétés) a été supprimé — il
   écrasait silencieusement le vrai fond d'ambiance
   défini plus haut (section "FOND D'AMBIANCE"), qui
   est maintenant la seule source du fond de page.
================================================== */


/* ==================================================
   BARRE DE NAVIGATION PREMIUM
================================================== */

.leopard-header {

    position:
        sticky;

    top:
        0;

    z-index:
        1000;

    display:
        flex;

    flex-wrap:
        wrap;

    align-items:
        center;

    justify-content:
        space-between;

    min-height:
        88px;

    padding:
        0 6%;

    border-bottom:
        1px solid
        var(
            --border-violet
        );

    background:
        var(
            --surface-graphite
        );

    box-shadow:
        0 10px 45px
        rgba(
            0,
            0,
            0,
            0.28
        );

    backdrop-filter:
        blur(
            22px
        );

}

.leopard-brand {

    display:
        flex;

    flex-shrink:
        0;

    align-items:
        center;

    gap:
        13px;

    color:
        var(
            --gold-light
        );

    text-decoration:
        none;

    font-size:
        23px;

    font-weight:
        900;

    letter-spacing:
        0.5px;

}


/* ==================================================
   MARQUE — NOM SUR DEUX LIGNES
   DRAPOLE (dominant) / CLUB PRO (sous-titre)
================================================== */

.brand-text {

    display:
        flex;

    flex-direction:
        column;

    line-height:
        1.05;

    white-space:
        nowrap;

}

.brand-name {

    font-family:
        var(--font-display);

    font-weight:
        800;

    letter-spacing:
        0.5px;

    white-space:
        nowrap;

    color:
        var(--white);

    background:
        linear-gradient(
            100deg,
            var(--white) 0%,
            var(--white) 35%,
            var(--violet-light) 47%,
            var(--violet) 50%,
            var(--violet-light) 53%,
            var(--white) 65%,
            var(--white) 100%
        );

    background-size:
        250% 100%;

    -webkit-background-clip:
        text;

    background-clip:
        text;

    -webkit-text-fill-color:
        transparent;

    animation:
        gradientTextFlow
        5.5s
        ease-in-out
        infinite;

}

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

    .brand-name {
        animation: none;
        background-position: 0% 50%;
    }

}

.brand-sub {

    margin-top:
        3px;

    color:
        var(
            --grey
        );

    font-size:
        10px;

    font-weight:
        800;

    letter-spacing:
        2px;

    white-space:
        nowrap;

}

.brand-icon {

    display:
        grid;

    width:
        44px;

    height:
        44px;

    place-items:
        center;

    overflow:
        hidden;

    border:
        1px solid
        rgba(
            167,
            139,
            250,
            0.30
        );

    border-radius:
        14px;

    background:
        linear-gradient(
            145deg,
            rgba(
                167,
                139,
                250,
                0.20
            ),
            rgba(
                10,
                8,
                16,
                0.35
            )
        );

    box-shadow:
        var(
            --violet-glow
        );

    font-family:
        var(--font-display);

    font-size:
        18px;

    font-weight:
        800;

    color:
        var(--violet-light);

    transition:
        0.3s ease;

}

.leopard-brand:hover
.brand-icon {

    transform:
        rotate(
            -7deg
        )
        scale(
            1.08
        );

}


/* ==================================================
   MENU
================================================== */

.leopard-nav {

    display:
        flex;

    align-items:
        center;

    gap:
        7px;

}

.leopard-nav a {

    position:
        relative;

    padding:
        13px
        16px;

    overflow:
        hidden;

    color:
        var(
            --grey
        );

    border:
        1px solid
        transparent;

    border-radius:
        12px;

    text-decoration:
        none;

    font-size:
        13px;

    font-weight:
        800;

    letter-spacing:
        0.3px;

    transition:
        color 0.25s ease,
        background 0.25s ease,
        border 0.25s ease,
        transform 0.15s ease;

}

.leopard-nav a::after {

    position:
        absolute;

    right:
        17px;

    bottom:
        7px;

    left:
        17px;

    height:
        2px;

    content:
        "";

    border-radius:
        10px;

    background:
        var(
            --violet
        );

    box-shadow:
        0 0 12px
        var(
            --violet
        );

    transform:
        scaleX(
            0
        );

    transition:
        transform
        0.25s ease;

}

.leopard-nav a:hover {

    color:
        var(
            --violet
        );

    border-color:
        rgba(
            167,
            139,
            250,
            0.40
        );

    background:
        rgba(
            167,
            139,
            250,
            0.09
        );

    transform:
        translateY(
            -2px
        );

}

.leopard-nav a:hover::after {

    transform:
        scaleX(
            1
        );

}

.leopard-nav a:active {

    transform:
        translateY(
            1px
        )
        scale(
            0.95
        );

}

.leopard-nav a.active {

    color:
        #0a0812;

    border-color:
        var(
            --violet-light
        );

    background:
        linear-gradient(
            135deg,
            var(
                --violet-light
            ),
            var(
                --violet
            )
        );

    box-shadow:
        0 8px 28px
        rgba(
            167,
            139,
            250,
            0.28
        );

}

.leopard-nav a.active::after {

    display:
        none;

}


/* ==================================================
   STATUT DU SYSTÈME
================================================== */

.system-status {

    display:
        flex;

    align-items:
        center;

    gap:
        9px;

    padding:
        10px
        14px;

    color:
        #b9c1bd;

    border:
        1px solid
        rgba(
            67,
            209,
            123,
            0.20
        );

    border-radius:
        30px;

    background:
        rgba(
            67,
            209,
            123,
            0.06
        );

    font-size:
        11px;

    font-weight:
        800;

    letter-spacing:
        0.7px;

}

.status-dot {

    width:
        8px;

    height:
        8px;

    border-radius:
        50%;

    background:
        var(
            --green
        );

    box-shadow:
        0 0 13px
        var(
            --green
        );

    animation:
        statusPulse
        2s
        infinite;

}

@keyframes
statusPulse {

    0%,
    100% {

        opacity:
            1;

        transform:
            scale(
                1
            );

    }

    50% {

        opacity:
            0.55;

        transform:
            scale(
                0.75
            );

    }

}


/* ==================================================
   CONTENU
================================================== */

.leopard-main {

    width:
        min(
            1280px,
            92%
        );

    margin:
        auto;

    padding:
        65px
        0
        100px;

    animation:
        pageEnter
        0.6s
        ease;

}

@keyframes
pageEnter {

    from {

        opacity:
            0;

        transform:
            translateY(
                18px
            );

    }

    to {

        opacity:
            1;

        transform:
            translateY(
                0
            );

    }

}


/* ==================================================
   TITRES
================================================== */

.eyebrow {

    display:
        flex;

    align-items:
        center;

    gap:
        11px;

    margin-bottom:
        15px;

    color:
        var(
            --violet-light
        );

    font-size:
        12px;

    font-weight:
        900;

    letter-spacing:
        2px;

    text-transform:
        uppercase;

}

.eyebrow::before {

    width:
        32px;

    height:
        2px;

    content:
        "";

    background:
        var(
            --violet
        );

    box-shadow:
        0 0 12px
        var(
            --violet
        );

}

.leopard-title {

    max-width:
        950px;

    color:
        var(
            --white
        );

    font-size:
        clamp(
            48px,
            7vw,
            92px
        );

    font-weight:
        950;

    letter-spacing:
        -3px;

    line-height:
        0.94;

}

.gold-text {

    color:
        var(
            --gold-light
        );

    text-shadow:
        0 0 35px
        rgba(
            217,
            169,
            40,
            0.18
        );

}

.leopard-description {

    max-width:
        750px;

    margin-top:
        25px;

    color:
        var(
            --grey
        );

    font-size:
        17px;

    line-height:
        1.75;

}


/* ==================================================
   CARTES PREMIUM
================================================== */

.leopard-card {

    position:
        relative;

    overflow:
        hidden;

    padding:
        28px;

    border:
        1px solid
        var(
            --border
        );

    border-radius:
        22px;

    background:
        linear-gradient(
            145deg,
            rgba(
                25,
                24,
                20,
                0.88
            ),
            rgba(
                10,
                11,
                12,
                0.94
            )
        );

    box-shadow:
        var(
            --shadow
        );

    backdrop-filter:
        blur(
            18px
        );

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;

}

.leopard-card::before {

    position:
        absolute;

    top:
        0;

    left:
        -100%;

    width:
        65%;

    height:
        1px;

    content:
        "";

    background:
        linear-gradient(
            90deg,
            transparent,
            var(
                --violet-light
            ),
            transparent
        );

    transition:
        left
        0.65s ease;

}

.leopard-card:hover {

    border-color:
        var(
            --border-hover
        );

    box-shadow:
        0 30px 80px
        rgba(
            0,
            0,
            0,
            0.65
        ),
        var(
            --violet-glow
        );

    transform:
        translateY(
            -7px
        )
        scale(
            1.008
        );

}

.leopard-card:hover::before {

    left:
        145%;

}


/* ==================================================
   BOUTONS
================================================== */

.leopard-button {

    position:
        relative;

    overflow:
        hidden;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        10px;

    min-height:
        50px;

    padding:
        0
        22px;

    color:
        #0a0812;

    border:
        1px solid
        var(
            --violet-light
        );

    border-radius:
        13px;

    text-decoration:
        none;

    background:
        linear-gradient(
            135deg,
            var(
                --violet-light
            ),
            var(
                --violet
            )
        );

    box-shadow:
        0 12px 35px
        rgba(
            167,
            139,
            250,
            0.24
        );

    font-size:
        13px;

    font-weight:
        900;

    cursor:
        pointer;

    transition:
        0.2s ease;

}

.leopard-button:hover {

    box-shadow:
        0 16px 45px
        rgba(
            167,
            139,
            250,
            0.38
        ),
        0 0 0 1px
        rgba(
            201,
            184,
            255,
            0.55
        );

    transform:
        translateY(
            -3px
        );

}

.leopard-button::after {

    position:
        absolute;

    top:
        0;

    left:
        -60%;

    width:
        40%;

    height:
        100%;

    content:
        "";

    background:
        linear-gradient(
            115deg,
            transparent,
            rgba(255, 255, 255, 0.45),
            transparent
        );

    transform:
        skewX(-20deg);

    transition:
        left
        0.55s ease;

}

.leopard-button:hover::after {

    left:
        130%;

}

.leopard-button:active {

    box-shadow:
        0 5px 15px
        rgba(
            167,
            139,
            250,
            0.20
        );

    transform:
        scale(
            0.95
        );

}


/* ==================================================
   PIED DE PAGE
================================================== */

.leopard-footer {

    padding:
        42px
        6%;

    color:
        var(
            --grey-dark
        );

    border-top:
        1px solid
        var(
            --border-violet
        );

    text-align:
        center;

    background:
        var(
            --surface-graphite
        );

}

.leopard-copyright {

    margin-bottom:
        11px;

    color:
        #a8a8a8;

    font-size:
        13px;

}

.leopard-copyright
strong {

    color:
        var(
            --gold-light
        );

}

.leopard-products {

    font-size:
        11px;

    font-weight:
        800;

    letter-spacing:
        1.5px;

}


/* ==================================================
   MOBILE ET TABLETTE
================================================== */

@media (
    max-width:
    1240px
) {

    .leopard-header {

        flex-wrap:
            wrap;

        gap:
            17px;

        padding:
            18px
            5%;

    }

    .leopard-nav {

        order:
            3;

        width:
            100%;

        overflow-x:
            auto;

        padding-bottom:
            4px;

    }

    .leopard-nav a {

        flex:
            0 0 auto;

    }

    .system-status {

        display:
            none;

    }

}


@media (
    max-width:
    600px
) {

    .leopard-brand {

        font-size:
            19px;

    }

    .brand-icon {

        width:
            39px;

        height:
            39px;

    }

    .leopard-main {

        padding-top:
            45px;

    }

    .leopard-title {

        /*
        Les titres composés de mots très longs (par exemple
        « COMPÉTITIONS ») ne doivent pas élargir la page sur
        un téléphone étroit.
        */
        font-size:
            clamp(
                36px,
                11vw,
                48px
            );

        letter-spacing:
            -1px;

        overflow-wrap:
            anywhere;

    }

    .leopard-card {

        padding:
            22px;

        border-radius:
            18px;

    }

}


/* ==================================================
   INDICATEUR "LIVE" DANS LA NAVIGATION (injecté par
   layout.js, uniquement si un live est réellement actif)
   ================================================== */

.live-nav-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-left: 7px;
    border-radius: 50%;
    background: #ff3b3b;
    vertical-align: middle;
    box-shadow: 0 0 6px rgba(255, 59, 59, .65);
    animation: liveNavPulse 1.4s ease-in-out infinite;
}

@keyframes liveNavPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .45; transform: scale(.72); }
}

@media (prefers-reduced-motion: reduce) {
    .live-nav-dot { animation: none; }
}


/* ==================================================
   CLOCHE DE NOTIFICATIONS (header, injectée par layout.js)
   ================================================== */

.notif-bell {
    position: relative;
    display: flex;
    align-items: center;
}

.notif-bell-btn {
    position: relative;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    cursor: pointer;
    color: var(--grey);
    border: 1px solid var(--border);
    border-radius: 11px;
    background: rgba(255, 255, 255, .03);
    font-size: 16px;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.notif-bell-btn:hover {
    color: var(--white);
    border-color: rgba(167, 139, 250, .35);
    background: rgba(167, 139, 250, .08);
}

.notif-bell-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    display: grid;
    place-items: center;
    color: #0a0812;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--violet-light), var(--violet));
    font-size: 9px;
    font-weight: 900;
    box-shadow: 0 0 0 2px var(--black);
}

.notif-bell-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 60;
    display: none;
    width: 320px;
    max-height: 420px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--black-soft);
    box-shadow: var(--shadow);
}

.notif-bell-dropdown.open {
    display: block;
    animation: notifDropIn .22s ease;
}

@keyframes notifDropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.notif-empty {
    padding: 22px 12px;
    color: var(--grey-dark);
    font-size: 12px;
    text-align: center;
}

/* Pied de la cloche : l'accès au centre de notifications. */
.notif-voir-tout {
    display: block;
    padding: 11px 12px;
    border-top: 1px solid var(--border);
    color: var(--violet);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .03em;
    text-align: center;
    text-decoration: none;
}

.notif-voir-tout:hover {
    background: rgba(255, 255, 255, .04);
}

.notif-section-title {
    padding: 10px 10px 6px;
    color: var(--grey-dark);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .6px;
}

.notif-section-title:not(:first-child) {
    margin-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.notif-personal-row {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background .15s ease;
}

.notif-personal-row:hover {
    background: rgba(255, 255, 255, .03);
}

.notif-personal-row.unread {
    background: rgba(167, 139, 250, .06);
}

.notif-personal-row.unread::before {
    content: "●";
    color: var(--violet-light);
    font-size: 7px;
    margin-right: 6px;
}

.notif-personal-message {
    color: var(--white);
    font-size: 12px;
    line-height: 1.4;
}

.notif-personal-time {
    color: var(--grey-dark);
    font-size: 10px;
}

.notif-request-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 10px;
    border-radius: 10px;
    transition: background .15s ease;
}

.notif-request-row:hover {
    background: rgba(255, 255, 255, .03);
}

.notif-request-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.notif-request-info strong {
    color: var(--white);
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notif-request-info span {
    color: var(--grey-dark);
    font-size: 10px;
}

.notif-request-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.notif-accept,
.notif-reject {
    width: 30px;
    height: 30px;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 900;
    transition: transform .15s ease;
}

.notif-accept {
    color: #0a0812;
    background: linear-gradient(135deg, #8fe6ab, #43d17b);
}

.notif-reject {
    color: #0a0812;
    background: linear-gradient(135deg, #ff8a8a, #e25c5c);
}

.notif-accept:active,
.notif-reject:active {
    transform: scale(.92);
}

@media (max-width: 700px) {

    .notif-bell-dropdown {
        width: 88vw;
        right: -10px;
    }

}


/* ==================================================
   COMPTE À REBOURS (compte à rebours dynamique, cartes
   et fiche de tournoi) — cf. assets/js/countdown.js
   ================================================== */

.countdown {
    display: flex;
    gap: 8px;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 46px;
    padding: 8px 4px;
    border: 1px solid rgba(167, 139, 250, .22);
    border-radius: 11px;
    background: rgba(167, 139, 250, .06);
}

.countdown-value {
    color: var(--violet-light);
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.countdown-label {
    color: var(--grey-dark);
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .6px;
}

.countdown.countdown-elapsed .countdown-unit {
    border-color: var(--border);
    background: rgba(255, 255, 255, .02);
}

.countdown.countdown-elapsed .countdown-value {
    color: var(--grey-dark);
}

.countdown.compact .countdown-unit {
    min-width: 34px;
    padding: 6px 3px;
    border-radius: 8px;
}

.countdown.compact .countdown-value {
    font-size: 14px;
}

.countdown.compact .countdown-label {
    font-size: 6px;
}

.card-countdown-label {
    margin: 12px 0 6px;
    color: var(--grey-dark);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .4px;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ==================================================
   VISUEL DE COUVERTURE DE TOURNOI (cartes de liste,
   accueil) — image uploadée (bannière) mise en avant,
   avec repli premium quand aucune image n'est configurée.
   ================================================== */

.tournament-card-cover {
    position: relative;
    height: 150px;
    margin: -22px -22px 16px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 18px 18px 0 0;
    overflow: hidden;
}

.tournament-card-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(3, 4, 5, 0) 40%, rgba(3, 4, 5, .92) 100%);
}

.tournament-card-cover-empty {
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 30% 20%, rgba(167, 139, 250, .16), transparent 60%),
        rgba(255, 255, 255, .02);
    font-size: 30px;
    opacity: .35;
}

.tournament-card-cover-empty img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    opacity: 1;
}

/* ==================================================
   LES BULLES DE NOTIFICATION

   Le conteneur ne reçoit aucun clic : seules les bulles
   le font. Une bulle affichée ne peut donc jamais
   empêcher d'appuyer sur ce qu'il y a derrière — c'est
   ce qui permet de les laisser en bas de l'écran sans
   gêner personne.
   ================================================== */

.drapole-toasts {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(370px, calc(100vw - 32px));
    pointer-events: none;
}

.drapole-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold);
    border-radius: 12px;
    background: rgba(16, 17, 20, 0.97);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
    color: var(--white);
    font-size: 13px;
    line-height: 1.5;

    /* Seules les bulles sont cliquables. */
    pointer-events: auto;

    /* État de départ de l'animation d'entrée. */
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.drapole-toast.entree {
    opacity: 1;
    transform: translateX(0);
}

.drapole-toast.sortie {
    opacity: 0;
    transform: translateX(24px);
}

.drapole-toast.cliquable { cursor: pointer; }

.drapole-toast.cliquable:hover {
    border-color: var(--border-hover);
    background: rgba(22, 23, 27, 0.98);
}

.drapole-toast-icone {
    flex: 0 0 auto;
    font-size: 17px;
    line-height: 1.3;
}

.drapole-toast-corps {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.drapole-toast-corps strong {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
}

/* Un message long s'enroule plutôt que de déborder. */
.drapole-toast-corps span {
    color: var(--white);
    overflow-wrap: anywhere;
}

.drapole-toast-fermer {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--grey-dark);
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
}

.drapole-toast-fermer:hover {
    background: rgba(255, 255, 255, 0.07);
    color: var(--white);
}

.drapole-toast-fermer:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/*
La couleur de la barre dit de quoi il s'agit, en un coup
d'œil. Les noms de famille sont ceux que le serveur envoie
— PAYMENT, REWARD, PRESENCE — et non les clés françaises
du service.
*/
.drapole-toast.cat-payment { border-left-color: var(--green); }
.drapole-toast.cat-payment .drapole-toast-corps strong { color: var(--green); }

.drapole-toast.cat-reward { border-left-color: var(--gold-light); }
.drapole-toast.cat-reward .drapole-toast-corps strong { color: var(--gold-light); }

.drapole-toast.cat-presence { border-left-color: var(--violet); }
.drapole-toast.cat-presence .drapole-toast-corps strong { color: var(--violet-light); }

.drapole-toast.cat-erreur { border-left-color: #d0552c; }
.drapole-toast.cat-erreur .drapole-toast-corps strong { color: #e07a4f; }

/*
Sur téléphone, les bulles s'étalent en bas sur toute la
largeur utile, au-dessus de la zone sûre du système.
Elles restent traversantes : le doigt atteint toujours ce
qu'il y a derrière.
*/
@media (max-width: 640px) {

    .drapole-toasts {
        right: 12px;
        left: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        width: auto;
    }

    .drapole-toast {
        transform: translateY(18px);
        font-size: 13px;
    }

    .drapole-toast.entree { transform: translateY(0); }
    .drapole-toast.sortie { transform: translateY(18px); }

}

/* Le mouvement est un confort, jamais une condition. */
@media (prefers-reduced-motion: reduce) {

    .drapole-toast {
        transition: opacity 0.01s linear;
        transform: none;
    }

    .drapole-toast.entree,
    .drapole-toast.sortie { transform: none; }

}


/* ==================================================
   L'INTERRUPTEUR DES SONS
   ================================================== */

.drapole-reglage {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.drapole-reglage:last-child { border-bottom: 0; }

.drapole-reglage-texte { flex: 1 1 auto; min-width: 0; }

.drapole-reglage-texte strong {
    display: block;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white);
}

.drapole-reglage-texte span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--grey);
}

.drapole-bascule {
    position: relative;
    flex: 0 0 auto;
    width: 52px;
    height: 28px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.drapole-bascule::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--grey);
    transition: transform 0.18s ease, background 0.18s ease;
}

.drapole-bascule[aria-checked="true"] {
    border-color: var(--gold);
    background: rgba(217, 169, 40, 0.22);
}

.drapole-bascule[aria-checked="true"]::after {
    transform: translateX(24px);
    background: var(--gold);
}

.drapole-bascule:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.drapole-bascule[disabled] { opacity: 0.45; cursor: not-allowed; }

@media (prefers-reduced-motion: reduce) {
    .drapole-bascule,
    .drapole-bascule::after { transition: none; }
}
