/* =========================================================
 * BDDGend — Menu Actions
 * Source : bddgend-menu-actions.php
 * Bloc CSS #1
 * CSS externalisé — Phase 7F
 * ========================================================= */

:root {
        --bddgend-topbar-height:38px;
        --bddgend-header-height:42px;
        --bddgend-adminbar-height:0px;

        --bdd-gendarmerie-950:#0b1a33;
        --bdd-gendarmerie-900:#102a52;
        --bdd-gendarmerie-850:#153a6f;
        --bdd-gendarmerie-800:#1f5fa8;
        --bdd-gendarmerie-700:#2f74d0;
        --bdd-gendarmerie-600:#60a5fa;
        --bdd-gendarmerie-500:#60a5fa;
        --bdd-gendarmerie-200:#bfdbfe;
    }

    body.admin-bar {
        --bddgend-adminbar-height:32px;
    }

    @media(max-width:782px) {
        body.admin-bar {
            --bddgend-adminbar-height:46px;
        }
    }

    #top-bar-wrap,
    #top-bar {
        position:fixed !important;
        top:var(--bddgend-adminbar-height) !important;
        left:0 !important;
        right:0 !important;
        width:100% !important;
        height:var(--bddgend-topbar-height) !important;
        min-height:var(--bddgend-topbar-height) !important;
        z-index:10050 !important;
        background:
            radial-gradient(circle at 10% 0%, rgba(59,130,246,.20), transparent 36%),
            linear-gradient(135deg,var(--bdd-gendarmerie-950) 0%,var(--bdd-gendarmerie-850) 48%,var(--bdd-gendarmerie-800) 100%) !important;
        border-bottom:0 !important;
        box-shadow:none !important;
    }

    #top-bar-inner {
        position:relative !important;
        height:var(--bddgend-topbar-height) !important;
        min-height:var(--bddgend-topbar-height) !important;
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
        padding:0 16px !important;
    }

    #top-bar-content {
        width:100% !important;
        text-align:center !important;
    }

    #top-bar-content .topbar-content {
        display:inline-flex !important;
        align-items:center !important;
        justify-content:center !important;
        padding:4px 14px !important;
        border-radius:999px !important;
        background:rgba(255,255,255,.07) !important;
        border:1px solid rgba(255,255,255,.14) !important;
        box-shadow:inset 0 1px 0 rgba(255,255,255,.12) !important;
    }

    #top-bar-content h1.grosTitre {
        color:#fff !important;
        font-size:18px !important;
        font-weight:950 !important;
        letter-spacing:.045em !important;
        line-height:1.1 !important;
        margin:0 !important;
        text-shadow:0 1px 2px rgba(0,0,0,.24) !important;
    }

    #top-bar-content h1.grosTitre a.bddgend-title-link {
        color:#fff !important;
        text-decoration:none !important;
        display:inline-flex !important;
        align-items:center !important;
        justify-content:center !important;
    }

    #top-bar-content h1.grosTitre a.bddgend-title-link:hover {
        color:#fff !important;
        text-decoration:none !important;
        opacity:.92;
    }

    header#site-header,
    #site-header {
        position:fixed !important;
        top:calc(var(--bddgend-adminbar-height) + var(--bddgend-topbar-height)) !important;
        left:0 !important;
        right:0 !important;
        width:100% !important;
        margin-top:0 !important;
        min-height:var(--bddgend-header-height) !important;
        z-index:10040 !important;
    }

    #site-header-inner {
        min-height:var(--bddgend-header-height) !important;
    }

    body {
        padding-top:calc(var(--bddgend-topbar-height) + var(--bddgend-header-height)) !important;
    }

    #bddgend-topbar-actions {
        position:absolute;
        right:16px;
        top:50%;
        transform:translateY(-50%);
        z-index:10060;
        display:flex;
        align-items:center;
        justify-content:flex-end;
        gap:8px;
        font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    }

    #bddgend-topbar-actions a {
        display:inline-flex;
        align-items:center;
        justify-content:center;
        gap:7px;
        min-height:26px;
        padding:6px 12px;
        border-radius:999px;
        border:1px solid rgba(255,255,255,.22);
        background:rgba(255,255,255,.10);
        color:#fff !important;
        text-decoration:none !important;
        font-size:12.5px;
        font-weight:850;
        line-height:1;
        white-space:nowrap;
        box-shadow:inset 0 1px 0 rgba(255,255,255,.14);
        transition:background .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease,border-color .18s ease;
    }

    #bddgend-topbar-actions a:hover {
        background:#ffffff;
        color:var(--bdd-gendarmerie-800) !important;
        border-color:rgba(255,255,255,.95);
        box-shadow:0 7px 20px rgba(2,6,23,.25);
        transform:translateY(-1px);
    }

    #bddgend-topbar-actions .bddgend-topbar-primary {
        background:linear-gradient(135deg,var(--bdd-gendarmerie-700),var(--bdd-gendarmerie-500));
        border-color:rgba(191,219,254,.75);
    }

    @media(max-width:768px) {
        :root {
            --bddgend-topbar-height:38px;
            --bddgend-header-height:48px;
        }

        #bddgend-topbar-actions {
            right:8px;
            gap:5px;
        }

        #bddgend-topbar-actions a {
            font-size:0;
            width:30px;
            height:26px;
            padding:0;
        }

        #bddgend-topbar-actions a span.bddgend-action-icon {
            font-size:14px;
        }

        #bddgend-topbar-actions a span.bddgend-action-text {
            display:none;
        }

        #top-bar-content h1.grosTitre {
            font-size:16px !important;
        }
    }
