/* ==========================================================================
   HEADER RENARDCHILL
   ========================================================================== */

.rc-header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 80px;

    background: #11151d;

    border-top: 4px solid #ff7a00;
    border-bottom: 2px solid #ff7a00;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 40px;

    box-sizing: border-box;

    z-index: 9999;
}


/* ==========================================================================
   LOGO
   ========================================================================== */

.rc-header-logo {
    color: #ff7a00;

    font-size: 26px;
    font-weight: bold;

    white-space: nowrap;

    text-decoration: none;
}


/* ==========================================================================
   NAVIGATION PC
   ========================================================================== */

.rc-header-nav {
    display: flex;
    align-items: center;

    gap: 30px;
}

.rc-header-nav a {
    color: #ffffff !important;

    text-decoration: none !important;

    transition: color 0.3s ease;

    white-space: nowrap;
}

.rc-header-nav a:hover {
    color: #ff7a00 !important;
}


/* ==========================================================================
   BOUTONS PC
   ========================================================================== */

.rc-header-actions {
    display: flex;
    align-items: center;

    gap: 15px;
}


/* ==========================================================================
   BOUTON DISCORD
   ========================================================================== */

.rc-header-discord {
    background: #5865f2;

    color: #ffffff !important;

    padding: 12px 20px;

    border-radius: 10px;

    text-decoration: none !important;

    white-space: nowrap;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}


/* ==========================================================================
   BOUTON LIVE
   ========================================================================== */

.rc-header-live {
    background: #ff3b30;

    color: #ffffff !important;

    padding: 12px 20px;

    border-radius: 10px;

    text-decoration: none !important;

    white-space: nowrap;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}


/* ==========================================================================
   HOVER BOUTONS
   ========================================================================== */

.rc-header-discord:hover,
.rc-header-live:hover {
    color: #ffffff !important;

    opacity: 0.9;

    transform: translateY(-1px);
}


/* ==========================================================================
   BOUTON MENU MOBILE
   ========================================================================== */

.rc-mobile-menu-button {
    display: none;

    border: none;

    background: transparent;

    color: #ffffff;

    font-size: 30px;

    cursor: pointer;

    padding: 5px;

    line-height: 1;
}


/* ==========================================================================
   MENU MOBILE
   ========================================================================== */

.rc-mobile-menu {
    display: none;
}


/* ==========================================================================
   TABLETTE
   ========================================================================== */

@media (max-width: 1100px) {

    .rc-header {
        padding: 0 25px;
    }

    .rc-header-nav {
        gap: 18px;
    }

    .rc-header-nav a {
        font-size: 14px;
    }

    .rc-header-actions {
        gap: 8px;
    }

    .rc-header-discord,
    .rc-header-live {
        padding: 10px 14px;

        font-size: 14px;
    }
}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 800px) {

    .rc-header {
        width: 100%;

        height: 70px;
        min-height: 70px;

        padding: 0 18px;

        border-top-width: 3px;
    }


    /* ----------------------------------------------------------------------
       LOGO
       ---------------------------------------------------------------------- */

    .rc-header-logo {
        font-size: 21px;
    }


    /* ----------------------------------------------------------------------
       CACHER NAVIGATION PC
       ---------------------------------------------------------------------- */

    .rc-header-nav {
        display: none;
    }


    /* ----------------------------------------------------------------------
       CACHER BOUTONS PC
       ---------------------------------------------------------------------- */

    .rc-header-actions {
        display: none;
    }


    /* ----------------------------------------------------------------------
       AFFICHER BOUTON MOBILE
       ---------------------------------------------------------------------- */

    .rc-mobile-menu-button {
        display: block;

        width: 42px;
        height: 42px;

        padding: 5px;

        flex-shrink: 0;
    }


    /* ----------------------------------------------------------------------
       MENU MOBILE
       ---------------------------------------------------------------------- */

    .rc-mobile-menu {
        position: fixed;

        top: 70px;
        left: 0;

        width: 100%;

        max-height: calc(100vh - 70px);

        overflow-y: auto;

        background: #11151d;

        border-bottom: 2px solid #ff7a00;

        padding: 15px;

        box-sizing: border-box;

        z-index: 9998;

        flex-direction: column;

        gap: 8px;
    }


    /* ----------------------------------------------------------------------
       MENU OUVERT
       ---------------------------------------------------------------------- */

    .rc-mobile-menu.rc-mobile-menu-open {
        display: flex;
    }


    /* ----------------------------------------------------------------------
       TOUS LES LIENS DU MENU MOBILE
       ---------------------------------------------------------------------- */

    .rc-mobile-menu > a {
        display: block;

        width: 100%;

        box-sizing: border-box;

        padding: 14px 16px;

        color: #ffffff !important;

        text-decoration: none !important;

        background: #1a202b;

        border-radius: 10px;

        transition:
            background 0.2s ease,
            color 0.2s ease;
    }


    /* ----------------------------------------------------------------------
       LIENS VISITÉS
       ---------------------------------------------------------------------- */

    .rc-mobile-menu > a:visited {
        color: #ffffff !important;

        text-decoration: none !important;
    }


    /* ----------------------------------------------------------------------
       HOVER LIENS
       ---------------------------------------------------------------------- */

    .rc-mobile-menu > a:hover {
        background: #252d3b;

        color: #ff7a00 !important;

        text-decoration: none !important;
    }


    /* ----------------------------------------------------------------------
       CONNEXION
       ---------------------------------------------------------------------- */

    .rc-mobile-menu .rc-mobile-login,
    .rc-mobile-menu .rc-mobile-login:visited {
        color: #ffffff !important;

        text-decoration: none !important;
    }


    /* ----------------------------------------------------------------------
       CRÉER UN COMPTE
       ---------------------------------------------------------------------- */

    .rc-mobile-menu .rc-mobile-register,
    .rc-mobile-menu .rc-mobile-register:visited {
        color: #ffffff !important;

        text-decoration: none !important;
    }


    /* ----------------------------------------------------------------------
       DISCORD MOBILE
       ---------------------------------------------------------------------- */

    .rc-mobile-menu .rc-mobile-discord {
        background: #5865f2;

        color: #ffffff !important;

        text-align: center;

        text-decoration: none !important;
    }


    .rc-mobile-menu .rc-mobile-discord:visited {
        color: #ffffff !important;
    }


    /* ----------------------------------------------------------------------
       LIVE MOBILE
       ---------------------------------------------------------------------- */

    .rc-mobile-menu .rc-mobile-live {
        background: #ff3b30;

        color: #ffffff !important;

        text-align: center;

        text-decoration: none !important;
    }


    .rc-mobile-menu .rc-mobile-live:visited {
        color: #ffffff !important;
    }

}


/* ==========================================================================
   PETITS TÉLÉPHONES
   ========================================================================== */

@media (max-width: 400px) {

    .rc-header {
        height: 65px;
        min-height: 65px;

        padding: 0 14px;
    }


    .rc-header-logo {
        font-size: 19px;
    }


    .rc-mobile-menu-button {
        font-size: 28px;

        width: 40px;
        height: 40px;
    }


    .rc-mobile-menu {
        top: 65px;

        max-height: calc(100vh - 65px);
    }

}