/* =========================================================
   S.O.S LOGEMENT — GLOBAL HEADER
   DAKAR 2026 EDITION
========================================================= */

:root {
    --sos-red: #b82c2c;
    --sos-red-dark: #8f2020;
    --sos-red-light: #d94b4b;

    --sos-black: #111111;
    --sos-black-soft: #191919;

    --sos-gray: #747474;
    --sos-gray-light: #eeeeee;

    --sos-white: #ffffff;

    --sos-border: rgba(255,255,255,.15);

    --sos-transition:
        .3s cubic-bezier(.22,1,.36,1);
}


/* =========================================================
   HEADER SCOPE
   هذا الملف مسؤول فقط عن header.html
========================================================= */

#sosHeader,
#sosHeader * {
    box-sizing: border-box;
}

#sosHeader button {
    font-family: inherit;
}


/* =========================================================
   HEADER
========================================================= */

#sosHeader.sos-header {
    position: relative;
    width: 100%;
    z-index: 900;

    color: var(--sos-white);

    background:
        linear-gradient(
            135deg,
            rgba(15,15,15,.98),
            rgba(38,38,38,.96)
        );

    box-shadow:
        0 6px 25px rgba(0,0,0,.18);

    overflow: visible;
}


/* =========================================================
   GLOW
========================================================= */

#sosHeader .header-glow {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;

    pointer-events: none;

    filter: blur(65px);
    opacity: .10;
}

#sosHeader .header-glow-1 {
    background: var(--sos-red);
    left: 5%;
    top: -160px;
}

#sosHeader .header-glow-2 {
    background: white;
    right: 10%;
    bottom: -180px;
}


/* =========================================================
   TOPBAR — COMPACT
========================================================= */

#sosHeader .sos-topbar {
    position: relative;

    min-height: 68px;
    height: 68px;

    padding:
        7px 3%;

    display: grid;

    grid-template-columns:
        1fr auto 1fr;

    align-items: center;

    gap: 18px;
}


/* =========================================================
   LOGO — COMPACT
========================================================= */

#sosHeader .sos-logo {
    display: inline-flex;
    width: fit-content;

    text-decoration: none;

    transition:
        transform var(--sos-transition);
}

#sosHeader .sos-logo:hover {
    transform: translateY(-1px);
}


#sosHeader .logo-frame {
    display: flex;

    align-items: center;
    justify-content: center;

    padding: 4px 9px;

    border-radius: 10px;

    background: rgba(255,255,255,.97);

    box-shadow:
        0 5px 16px rgba(0,0,0,.18);

    position: relative;

    overflow: hidden;
}


#sosHeader .logo-frame::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            120deg,
            transparent 35%,
            rgba(255,255,255,.65),
            transparent 65%
        );

    transform:
        translateX(-120%);

    transition:
        transform .7s ease;
}


#sosHeader .sos-logo:hover .logo-frame::after {
    transform:
        translateX(120%);
}


#sosHeader .logo-image {
    display: block;

    width: 78px;
    height: 38px;

    object-fit: contain;
}


/* =========================================================
   DAKAR 2026
========================================================= */

#sosHeader .dakar-2026-badge {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    white-space: nowrap;
}


#sosHeader .dakar-line {
    width: 25px;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.55)
        );
}


#sosHeader .dakar-line:last-child {
    background:
        linear-gradient(
            90deg,
            rgba(255,255,255,.55),
            transparent
        );
}


#sosHeader .dakar-badge-content {
    display: flex;
    align-items: center;

    gap: 6px;
}


#sosHeader .dakar-small {
    font-size: 85%;
    font-weight: 800;
    letter-spacing: 1.6px;

    color:
        rgba(255,255,255,.68);
}


#sosHeader .dakar-badge-content strong {
    font-size: 140%;
    font-weight: 900;

    line-height: 1;

    color: white;
}


#sosHeader .dakar-youth {
    font-size: 80%;
    font-weight: 700;

    letter-spacing: 1px;

    color:
        var(--sos-red-light);
}


/* =========================================================
   ACTIONS
========================================================= */

#sosHeader .header-actions {
    display: flex;

    align-items: center;
    justify-content: flex-end;

    gap: 7px;
}


#sosHeader .header-action {
    height: 36px;

    padding:
        0 11px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 6px;

    border-radius: 9px;

    cursor: pointer;

    font-size: 11px;
    font-weight: 700;

    border:
        1px solid transparent;

    transition:
        transform var(--sos-transition),
        background var(--sos-transition),
        box-shadow var(--sos-transition);
}


#sosHeader .header-action:hover {
    transform:
        translateY(-2px);
}


#sosHeader .action-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 20px;
    height: 20px;

    border-radius: 50%;

    font-size: 15px;
}


#sosHeader .register-action {
    color: white;

    background:
        rgba(255,255,255,.07);

    border-color:
        rgba(255,255,255,.14);

    backdrop-filter:
        blur(8px);
}


#sosHeader .register-action:hover {
    background:
        rgba(255,255,255,.14);
}


#sosHeader .login-action {
    color: white;

    background:
        var(--sos-red);

    box-shadow:
        0 5px 16px rgba(184,44,44,.25);
}


#sosHeader .login-action:hover {
    background:
        var(--sos-red-light);
}


#sosHeader .logout-action {
    color: white;

    background:
        rgba(184,44,44,.18);

    border-color:
        rgba(184,44,44,.40);
}


/* =========================================================
   NAVIGATION
========================================================= */

#sosHeader .nav-inner {
    width: 100%;
    height: 47px;

    padding:
        0 2.5%;

    display: flex;
    align-items: center;
}


/* =========================================================
   MENU
========================================================= */

#sosHeader .menu-items {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;

    gap: 2px;
}


#sosHeader .nav-item {
    position: relative;

    min-height: 47px;

    padding:
        0 14px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 6px;

    border: none;

    color:
        rgba(255,255,255,.76);

    background: transparent;

    cursor: pointer;

    font-size: 12px;
    font-weight: 700;

    white-space: nowrap;

    transition:
        color var(--sos-transition),
        background var(--sos-transition),
        transform var(--sos-transition);
}


#sosHeader .nav-item::after {
    content: "";

    position: absolute;

    bottom: 0;
    left: 50%;

    width: 0;
    height: 2px;

    border-radius:
        4px 4px 0 0;

    background:
        var(--sos-red);

    transform:
        translateX(-50%);

    transition:
        width var(--sos-transition);
}


#sosHeader .nav-item:hover {
    color: white;

    background:
        rgba(255,255,255,.04);
}


#sosHeader .nav-item:hover::after {
    width: 60%;
}


#sosHeader .nav-item:active {
    transform:
        scale(.96);
}


#sosHeader .active-nav {
    color: white;
}


#sosHeader .active-nav::after {
    width: 60%;
}


#sosHeader .nav-icon {
    opacity: .65;
    font-size: 13px;
}


#sosHeader .owner-nav:hover {
    color:
        #ff8a8a;
}


#sosHeader .property-nav {
    color:
        #ff9696;
}


#sosHeader .admin-nav {
    color:
        #ffcc70;
}


/* =========================================================
   LANGUAGE
========================================================= */

#sosHeader .language-switcher {
    flex-shrink: 0;
    margin-top: 50px;

    margin-left: 7px;
}


#sosHeader .lang-btn {
    min-width: 65px;

    height: 34px;

    padding:
        0 10px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 5px;

    border:
        1px solid rgba(255,255,255,.14);

    border-radius: 999px;

    color: white;

    background:
        rgba(255,255,255,.06);

    backdrop-filter:
        blur(10px);

    cursor: pointer;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1px;

    transition:
        all var(--sos-transition);
}


#sosHeader .lang-btn:hover {
    background:
        var(--sos-red);

    border-color:
        var(--sos-red);

    transform:
        translateY(-2px);
}


#sosHeader .lang-globe {
    font-size: 11px;
}


#sosHeader .lang-arrow {
    opacity: .65;
    font-size: 11px;
}


/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

#sosHeader .menu-toggle {
    display: none;

    width: 38px;
    height: 38px;

    padding: 0;

    border: 1px solid rgba(255,255,255,.14);

    border-radius: 10px;

    background:
        rgba(255,255,255,.07);

    cursor: pointer;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 4px;

    box-shadow:
        0 5px 15px rgba(0,0,0,.20);

    position: relative;

    z-index: 20;

    transition:
        background .3s ease,
        transform .3s ease,
        border-color .3s ease;
}


#sosHeader .menu-toggle:hover {
    background: var(--sos-red);

    border-color:
        rgba(255,255,255,.25);

    transform: translateY(-1px);
}


#sosHeader .menu-toggle span {
    display: block;

    width: 18px;
    height: 2px;

    border-radius: 3px;

    background: white;

    transition:
        transform .3s ease,
        opacity .3s ease;
}


/* =========================================================
   X ANIMATION
========================================================= */

#sosHeader .menu-toggle.active span:nth-child(1) {
    transform:
        translateY(7px)
        rotate(45deg);
}


#sosHeader .menu-toggle.active span:nth-child(2) {
    opacity: 0;
}


#sosHeader .menu-toggle.active span:nth-child(3) {
    transform:
        translateY(-7px)
        rotate(-45deg);
}


/* =========================================================
   OVERLAY
========================================================= */

#sosHeader .overlay {
    position: fixed;

    inset: 0;

    z-index: 1090;

    background:
        rgba(0,0,0,.58);

    backdrop-filter:
        blur(4px);

    opacity: 0;

    visibility: hidden;

    transition:
        opacity .3s ease,
        visibility .3s ease;
}


#sosHeader .overlay.show {
    opacity: 1;
    visibility: visible;
}


/* =========================================================
   MOBILE SIDEBAR
========================================================= */

#sosHeader .mobile-sidebar {
    position: fixed;

    top: 0;
    left: 0;

    width:
        min(320px, 88vw);

    height: 100vh;

    z-index: 1101;

    overflow-y: auto;

    background:
        linear-gradient(
            180deg,
            #161616 0%,
            #222222 100%
        );

    box-shadow:
        20px 0 60px rgba(0,0,0,.40);

    transform:
        translateX(-105%);

    transition:
        transform .4s cubic-bezier(.22,1,.36,1);
}


#sosHeader .mobile-sidebar.show {
    transform:
        translateX(0);
}


/* =========================================================
   MOBILE SIDEBAR TOP
========================================================= */

#sosHeader .mobile-sidebar-top {
    min-height: 75px;

    padding:
        13px 16px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    border-bottom:
        1px solid rgba(255,255,255,.08);
}


#sosHeader .mobile-logo {
    padding:
        4px 8px;

    border-radius: 9px;

    background: white;
}


#sosHeader .mobile-logo img {
    display: block;

    width: 82px;
    height: auto;
}


#sosHeader .mobile-close {
    width: 37px;
    height: 37px;

    border: none;

    border-radius: 50%;

    color: white;

    background:
        rgba(255,255,255,.08);

    font-size: 25px;

    line-height: 1;

    cursor: pointer;

    transition: .3s;
}


#sosHeader .mobile-close:hover {
    background:
        var(--sos-red);

    transform:
        rotate(90deg);
}


/* =========================================================
   MOBILE DAKAR
========================================================= */

#sosHeader .mobile-dakar {
    margin:
        15px;

    padding:
        11px 15px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            rgba(184,44,44,.18),
            rgba(255,255,255,.04)
        );

    border:
        1px solid rgba(184,44,44,.25);
}


#sosHeader .mobile-dakar span {
    font-size: 10px;

    font-weight: 800;

    letter-spacing: 2px;
}


#sosHeader .mobile-dakar strong {
    font-size: 21px;

    color:
        var(--sos-red-light);
}


/* =========================================================
   MOBILE ITEMS
========================================================= */

#sosHeader .mobile-menu-items {
    padding:
        3px 14px 18px;
}


#sosHeader .mobile-menu-items button {
    width: 100%;

    min-height: 48px;

    margin-bottom: 6px;

    padding:
        0 14px;

    display: flex;

    align-items: center;

    gap: 13px;

    border:
        1px solid transparent;

    border-radius: 11px;

    color:
        rgba(255,255,255,.82);

    background:
        rgba(255,255,255,.045);

    cursor: pointer;

    font-size: 13px;
    font-weight: 700;

    text-align: left;

    transition:
        all .25s ease;
}


#sosHeader .mobile-menu-items button:hover {
    color: white;

    background:
        rgba(184,44,44,.18);

    border-color:
        rgba(184,44,44,.28);

    transform:
        translateX(4px);
}


/* =========================================================
   MOBILE FOOTER
========================================================= */

#sosHeader .mobile-footer {
    margin:
        8px 18px 25px;

    padding-top:
        15px;

    display: flex;

    flex-direction: column;

    gap: 4px;

    border-top:
        1px solid rgba(255,255,255,.08);
}


#sosHeader .mobile-footer span {
    font-size: 11px;

    font-weight: 900;

    letter-spacing: 1px;
}


#sosHeader .mobile-footer small {
    color:
        rgba(255,255,255,.45);

    font-size: 10px;
}


/* =========================================================
   RTL
========================================================= */

html[dir="rtl"] #sosHeader .header-actions {
    justify-content: flex-start;
}


html[dir="rtl"] #sosHeader .mobile-sidebar {
    left: auto;
    right: 0;

    transform:
        translateX(105%);
}


html[dir="rtl"] #sosHeader .mobile-sidebar.show {
    transform:
        translateX(0);
}


html[dir="rtl"] #sosHeader .mobile-menu-items button:hover {
    transform:
        translateX(-4px);
}


html[dir="rtl"] #sosHeader .language-switcher {
    margin-left: 0;
    margin-right: 7px;
}


html[dir="rtl"] #sosHeader .sos-topbar {
    direction: rtl;
}


html[dir="rtl"] #sosHeader .menu-toggle {
    left: auto;
    right: 14px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    #sosHeader .sos-topbar {
        padding-left: 2%;
        padding-right: 2%;
    }

    #sosHeader .nav-item {
        padding-left: 9px;
        padding-right: 9px;

        font-size: 11px;
    }

    #sosHeader .header-action {
        padding:
            0 9px;
    }

    #sosHeader .action-text {
        display: none;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 850px) {

    #sosHeader .sos-topbar {
        min-height: 58px;
        height: 58px;

        padding:
            6px 13px;

        grid-template-columns:
            auto 1fr auto;

        gap: 10px;
    }


    #sosHeader .logo-frame {
        padding:
            3px 7px;

        border-radius: 8px;
    }


    #sosHeader .logo-image {
        width: 68px;
        height: 31px;
    }


    #sosHeader .dakar-2026-badge {
        gap: 5px;
    }


    #sosHeader .dakar-small,
    #sosHeader .dakar-youth,
    #sosHeader .dakar-line {
        display: none;
    }


    #sosHeader .dakar-badge-content {
        gap: 4px;
    }


    #sosHeader .dakar-badge-content strong {
        font-size: 120%;
    }


    #sosHeader .menu-toggle {
        display: flex !important;
    }


    #sosHeader .language-switcher {
        position: fixed;

        right: 14px;
        bottom: 16px;

        z-index: 1100;

        margin: 0;
    }


    html[dir="rtl"] #sosHeader .language-switcher {
        right: auto;
        left: 14px;
    }


    #sosHeader .lang-btn {
        height: 44px;
        min-width: 65px;
    }


    #sosHeader .header-actions {
        gap: 5px;
    }


    #sosHeader .header-action {
        width: 36px;
        height: 36px;

        padding: 0;

        border-radius: 9px;
    }


    #sosHeader .action-icon {
        font-size: 16px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 500px) {

    #sosHeader .sos-topbar {
        grid-template-columns:
            auto 1fr auto;

        min-height: 55px;
        height: 55px;
    }


    #sosHeader .dakar-2026-badge {
        display: flex;
    }


    #sosHeader .dakar-badge-content strong {
        font-size: 120%;
    }


    #sosHeader .logo-image {
        width: 64px;
        height: 29px;
    }


    #sosHeader .header-action {
        width: 34px;
        height: 34px;
    }


    #sosHeader .menu-toggle {
        width: 43px;
        height: 43px;

        left: 12px;
        bottom: 14px;
    }


    html[dir="rtl"] #sosHeader .menu-toggle {
        left: auto;
        right: 12px;
    }


    #sosHeader .language-switcher {
        right: 12px;
        bottom: 14px;
    }


    html[dir="rtl"] #sosHeader .language-switcher {
        right: auto;
        left: 12px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    #sosHeader *,
    #sosHeader *::before,
    #sosHeader *::after {
        animation: none !important;
        transition: none !important;
    }

}


/* =========================================================
   MOBILE — HEADER MENU
========================================================= */

@media (max-width: 850px) {

    #sosHeader .sos-topbar {
        min-height: 58px;
        height: 58px;

        padding: 6px 12px;

        display: grid;

        grid-template-columns:
            40px 1fr auto;

        align-items: center;

        gap: 9px;
    }


    /* =========================================
       MENU BUTTON
    ========================================= */

    #sosHeader .menu-toggle {
        display: flex !important;

        position: relative !important;

        width: 38px !important;
        height: 38px !important;

        left: auto !important;
        right: auto !important;

        bottom: auto !important;

        margin: 0;

        z-index: 20 !important;

        opacity: 1 !important;
        visibility: visible !important;
    }


    /* =========================================
       LOGO
    ========================================= */

    #sosHeader .sos-logo {
        justify-self: start;
    }


    #sosHeader .logo-frame {
        padding: 3px 1px;

        border-radius: 8px;
    }


    #sosHeader .logo-image {
        width: 68px;
        height: 31px;
    }


    /* =========================================
       DAKAR
    ========================================= */

    #sosHeader .dakar-2026-badge {
        justify-self: center;

        gap: 5px;
    }


    #sosHeader .dakar-small,
    #sosHeader .dakar-youth,
    #sosHeader .dakar-line {
        display: none;
    }


    #sosHeader .dakar-badge-content {
        gap: 4px;
    }


    #sosHeader .dakar-badge-content strong {
        font-size: 130%;
    }


    /* =========================================
       HEADER ACTIONS
    ========================================= */

    #sosHeader .header-actions {
        gap: 5px;

        justify-self: end;
    }


    #sosHeader .header-action {
        width: 36px;
        height: 36px;

        padding: 0;

        border-radius: 9px;
    }


    #sosHeader .action-icon {
        font-size: 16px;
    }


    #sosHeader .action-text {
        display: none;
    }


    /* =========================================
       LANGUAGE
    ========================================= */

    #sosHeader .language-switcher {
        position: static !important;

        display: block !important;

        margin: 0 !important;

        justify-self: end;
    }


    #sosHeader .lang-btn {
        height: 34px;

        min-width: 54px;

        padding: 0 8px;

        border-radius: 9px;

        font-size: 9px;
    }


    /* =========================================
       NAVIGATION
    ========================================= */

    #sosHeader .sos-navigation {
        height: 0 !important;
        min-height: 0 !important;

        border: 0 !important;

        background: transparent !important;

        overflow: visible !important;
    }


    #sosHeader .nav-inner {
        height: 0 !important;
        min-height: 0 !important;

        padding: 0 !important;

        overflow: visible !important;
    }


    #sosHeader .menu-items {
        display: none !important;
    }

}


/* =========================================================
   MOBILE — LANGUAGE RIGHT + MENU LOWER
========================================================= */

@media (max-width: 850px) {

    #sosHeader .language-switcher {
        position: absolute !important;

        right: 12px !important;
        left: auto !important;

        top: 60px !important;
        transform: translateY(-50%) !important;

        margin: 0 !important;

        z-index: 30 !important;
    }


    #sosHeader .lang-btn {
        height: 34px;
        min-width: 54px;

        padding: 0 8px;

        border-radius: 9px;

        font-size: 9px;
    }


    #sosHeader .menu-toggle {
        position: relative !important;

        top: 7px !important;

        left: auto !important;
        right: auto !important;
        bottom: auto !important;

        z-index: 30 !important;
    }


    /* =================================
       RTL
    ================================= */

    html[dir="rtl"] #sosHeader .language-switcher {
        right: auto !important;
        left: 12px !important;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 500px) {

    #sosHeader .language-switcher {
        right: 12px !important;
        left: auto !important;

        top: 60px !important;
        transform: translateY(-50%) !important;
    }


    #sosHeader .menu-toggle {
        top: 20px !important;
    }

}


/* =========================================================
   MOBILE — DAKAR 2026
========================================================= */

@media (max-width: 850px) {

    #sosHeader .dakar-2026-badge {
        display: flex !important;

        align-items: center;
        justify-content: center;

        gap: 8px;

        white-space: nowrap;
    }


    #sosHeader .dakar-badge-content {
        display: flex !important;

        align-items: center;

        gap: 7px;
    }


    #sosHeader .dakar-small {
        display: inline-block !important;

        font-size: 80% !important;

        letter-spacing: 1.5px !important;
    }


    #sosHeader .dakar-badge-content strong {
        display: inline-block !important;

        font-size: 130% !important;

        line-height: 1 !important;
    }


    #sosHeader .dakar-youth {
        display: inline-block !important;

        font-size: 70% !important;

        letter-spacing: .8px !important;
    }


    #sosHeader .dakar-line {
        display: inline-block !important;

        width: 22px !important;
        height: 1px !important;
    }

}


/* =========================================================
   SMALL MOBILE — DAKAR
========================================================= */

@media (max-width: 500px) {

    #sosHeader .dakar-2026-badge {
        gap: 6px;
    }


    #sosHeader .dakar-badge-content {
        gap: 5px;
    }


    #sosHeader .dakar-small {
        font-size: 60% !important;

        letter-spacing: 1.2px !important;
    }


    #sosHeader .dakar-badge-content strong {
        font-size: 120% !important;
    }


    #sosHeader .dakar-youth {
        font-size: 60% !important;

        letter-spacing: .6px !important;
    }


    #sosHeader .dakar-line {
        width: 17px !important;
    }

}


/* =========================================================
   MOBILE — LANGUAGE + MENU
========================================================= */

@media (max-width: 850px) {

    #sosHeader .language-switcher {
        position: absolute !important;

        top: 60px !important;

        right: 12px !important;
        left: auto !important;

        transform: translateY(-50%) !important;

        margin: 0 !important;

        z-index: 30 !important;
    }


    #sosHeader .menu-toggle {
        position: relative !important;

        top: 7px !important;

        left: auto !important;
        right: auto !important;
        bottom: auto !important;

        z-index: 30 !important;
    }


    /* =========================
       RTL — عكس الجهة
    ========================= */

    html[dir="rtl"] #sosHeader .language-switcher {
        right: auto !important;
        left: 12px !important;
    }


    html[dir="rtl"] #sosHeader .menu-toggle {
        left: auto !important;
        right: 12px !important;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 500px) {

    #sosHeader .language-switcher {
        top: 60px !important;

        right: 12px !important;
        left: auto !important;
    }


    html[dir="rtl"] #sosHeader .language-switcher {
        right: auto !important;
        left: 12px !important;
    }


    #sosHeader .menu-toggle {
        top: 20px !important;
    }


    html[dir="rtl"] #sosHeader .menu-toggle {
        left: auto !important;
        right: 12px !important;
    }

}

/* =========================================================
   MOBILE — LOGO RIGHT / MENU LEFT
========================================================= */

@media (max-width: 850px) {

    #sosHeader .sos-topbar {
        position: relative;

        display: flex !important;
        align-items: flex-start !important;
        justify-content: space-between !important;

        height: 58px !important;
        min-height: 58px !important;

        padding: 6px 12px !important;
    }


    /* =========================
       MENU — LEFT TOP
    ========================= */

    #sosHeader .menu-toggle {
        order: 1 !important;

        position: absolute !important;

        left: 12px !important;
        right: auto !important;

        top: 6px !important;
        bottom: auto !important;

        width: 38px !important;
        height: 38px !important;

        margin: 0 !important;

        z-index: 50 !important;
    }


    /* =========================
       LOGO — RIGHT TOP
    ========================= */

    #sosHeader .sos-logo {
        order: 3 !important;

        position: absolute !important;

        right: 12px !important;
        left: auto !important;

        top: 6px !important;

        z-index: 50 !important;

        display: inline-flex !important;
    }


    #sosHeader .logo-frame {
        padding: 3px 6px !important;

        border-radius: 8px !important;
    }


    #sosHeader .logo-image {
        width: 68px !important;
        height: 31px !important;

        object-fit: contain !important;
    }


    /* =========================
       DAKAR — CENTER
    ========================= */

    #sosHeader .dakar-2026-badge {
        order: 2 !important;

        position: absolute !important;

        left: 50% !important;
        top: 50% !important;

        transform: translate(-50%, -50%) !important;

        z-index: 20 !important;

        margin: 0 !important;
    }


    /* =========================
       LANGUAGE
    ========================= */

    #sosHeader .language-switcher {
        right: 12px !important;
        left: auto !important;

        top: 60px !important;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 500px) {

    #sosHeader .sos-topbar {
        height: 55px !important;
        min-height: 55px !important;
    }


    #sosHeader .menu-toggle {
        left: 10px !important;
        top: 6px !important;

        width: 38px !important;
        height: 38px !important;
    }


    #sosHeader .sos-logo {
        right: 10px !important;
        top: 6px !important;
    }


    #sosHeader .logo-image {
        width: 64px !important;
        height: 29px !important;
    }


    #sosHeader .dakar-2026-badge {
        top: 50% !important;
    }

}

/* =========================================================
   DESKTOP / TABLET — AUTH BUTTONS
========================================================= */

#sosHeader .header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    margin-left: auto;
}


/* =========================
   AUTH BUTTONS
========================= */

#sosHeader .header-action {
    height: 36px;
    padding: 0 11px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    border-radius: 9px;
    border: 1px solid transparent;

    cursor: pointer;

    color: white;

    font-size: 11px;
    font-weight: 700;

    white-space: nowrap;

    transition:
        transform .3s ease,
        background .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}


/* INSCRIPTION */

#sosHeader .register-action {
    color: white;
    background: rgba(255,255,255,.07);
    border-color: rgba(255,255,255,.14);
}

#sosHeader .register-action:hover {
    background: rgba(255,255,255,.14);
    transform: translateY(-2px);
}


/* CONNEXION */

#sosHeader .login-action {
    color: white;
    background: var(--sos-red);
    box-shadow: 0 5px 16px rgba(184,44,44,.25);
}

#sosHeader .login-action:hover {
    background: var(--sos-red-light);
    transform: translateY(-2px);
}


/* DECONNEXION */

#sosHeader .logout-action {
    color: white;
    background: rgba(184,44,44,.18);
    border-color: rgba(184,44,44,.40);
}

#sosHeader .logout-action:hover {
    background: var(--sos-red);
    transform: translateY(-2px);
}


/* ICON */

#sosHeader .header-action .action-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 20px;
    height: 20px;

    border-radius: 50%;

    font-size: 15px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) and (min-width: 851px) {

    #sosHeader .header-actions {
        gap: 5px;
    }

    #sosHeader .header-action {
        height: 34px;
        padding: 0 9px;
        font-size: 10px;
    }

    #sosHeader .header-action .action-icon {
        font-size: 14px;
    }

}


/* =========================================================
   MOBILE — HIDE DESKTOP AUTH
========================================================= */

@media (max-width: 850px) {

    #sosHeader #headerAuthActions {
        display: none !important;
    }

}