/* Styles par défaut pour les grands écrans (plus de 1300px) */
@font-face {
    font-family: "baron";
    src: url(../polices/baron_neue/Baron\ Neue\ Bold.otf);
}

:root {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: cursive;
}

h1,
h2,
h3,
h4,
a {
    font-family: "baron";
}

body {
    position: relative;
}

a,
button {
    font-family: "baron";
    font-size: 100%;
}

.effet-glace {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    border-radius: 6px;
}

h1,
h3,
h4 {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h2 {
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

a {
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

header {
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding-left: 5%;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    height: 15vh;
    text-transform: uppercase;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-radius: 6px;
    box-shadow: 0 5px 20px #d4af37;
}

.header-logo {
    display: flex;
    align-items: center;
}

.header-logo img {
    height: 50px;
    cursor: pointer;
    width: 100%;
    margin-right: 10px;
    border-radius: 6px;
}

.header-logo img:hover {
    filter: brightness(1.1);
    scale: 1.2;
    transition: 0.3s;
}

nav {
    position: relative;
    margin-left: -3%;
}

.main-menu {
    list-style-type: none;
    display: flex;
    align-items: center;
    height: 100%;
}

.main-menu>li {
    position: relative;
    margin-left: 30px;
}

.main-menu>li>a {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    display: block;
    height: 100%;
    transition: all 0.3s ease;
    opacity: 1;
}

.main-menu>li:hover>a {
    background-color: rgba(255, 255, 255, 0.5);
    color: #FFD700;
    height: 15vh;
    opacity: 0.5;
    border-bottom: 1px solid #FFD700;
    padding: 6vh 20px 10px 20px;
}

/* menu .active {
    background-color: rgba(255, 255, 255, 0.5);
    color: #FFD700;
    height: 15vh;
    opacity: 0.5;
    border-bottom: 1px solid #FFD700;
    padding: 6vh 20px 10px 20px;
} */

.menu-contextuel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-right: 2.5%;
    height: 100%;
    width: 20%;
}

.menu-contextuel a {
    margin-right: 30px;
}

.menu-contextuel a .user {
    font-size: 4vh;
    margin-top: 1vh;
    margin-bottom: 0;
    color: gold;
}

.menu-contextuel a .user:hover,
header a img:hover {
    filter: brightness(1.3);
    transform: 1s;
    cursor: pointer;
}

.menu-contextuel img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.menu-contextuel img:hover {
    transform: scale(1.2);
}

/* Style pour les options de la langue */
.custom-select-container {
    position: relative;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    margin-top: -20px;
}

.custom-select {
    position: relative;
    background-color: transparent;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    height: 100%;
    text-align: left;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.selected-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.selected-option .flag {
    width: 70%;
    height: auto;
    margin-right: 5px;
}

svg {
    fill: #d4af37;
    height: 40px;
    margin-right: 20px;
}

svg:hover {
    filter: brightness(1.3);
    transform: 1s;
    cursor: pointer;
}

.selected-option .acronym {
    font-size: 16px;
    color: white;
    text-transform: uppercase;
}

.select-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    z-index: 999;
}

.option {
    display: flex;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.option:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.option .flag {
    width: 20px;
    height: 20px;
    margin-right: 5px;
}

.option .acronym {
    font-size: 16px;
    color: #d4af37;
}

.custom-select:hover .select-options {
    display: block;
}

/*_____________________________________*/
/* Style du sous-menu */
.sub-menu {
    list-style-type: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #444;
    display: flex;
    justify-content: space-around;
    width: 300%;
    display: none;
    height: 12vh;
    z-index: 1000;
    border-radius: 0 0 6px 6px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.sub-menu li {
    border-bottom: 3px solid transparent;
    width: 100%;
}

.sub-menu li a {
    color: #fff;
    text-decoration: none;
    padding-top: 4vh;
    padding-bottom: 6vh;
    display: block;
    height: 100%;
    text-align: center;
    transition: all 0.3s ease;
}

.sub-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.5);
    border-bottom: 3px solid yellow;
    opacity: 0.5;
}

.main-menu>li:hover>.sub-menu {
    display: flex;
    animation: fadeIn 0.5s forwards;
}

/* Gestion du responsive pour les écrans de moins de 1300px */
.item article {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex-direction: column;
}

html {
    width: 100%;
    overflow-x: hidden;
}

.menu-contextuel .custom-select-container {
    width: 80px;
}

/* Cacher le menu par défaut et afficher le hamburger en mobile */
@media screen and (max-width: 768px) {
    nav {
        display: none;
    }
}

/* Par défaut, cacher le bouton burger sur les grands écrans */
#hamburger {
    display: none;
}

/* Afficher le bouton burger sur les écrans de petite taille (mobile) */
@media (max-width: 768px) {
    #hamburger {
        display: block;
        color: #d4af37;
        font-size: 30px;
    }

    .menu-contextuel {
        /* overflow: hidden; */
        width: 65%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .menu-contextuel a {
        margin: 0;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .menu-contextuel img {
        transition: transform 0.3s ease;
        margin: 0;
        padding: 0;
        height: auto;
        width: 30px;
    }

    .custom-select-container {
        display: flex;
        align-items: center;
        justify-content: end;
        margin-top: 0;
    }

    .custom-select-container img {
        height: 30px;
        width: 30px;
    }

    .custom-select .option {
        height: 100%;
        width: 100%;
        display: flex;
        align-items: start;
        justify-content: start
    }

    .custom-select .option img {
        height: 30px;
        width: 30px;
        display: flex;
        align-items: start;
        justify-content: start
    }

    svg {
        width: 30px;
        height: 30px
    }
}