/* Style global de la page */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Conteneur du menu */
.menu-overlay {
    position: fixed;
    top: 0;
    right: -30%;  /* Cache le menu en dehors de l'écran à droite */
    width: 30%;  /* Définit la largeur du menu */
    height: 100%;
    background: rgba(0, 0, 0, 1);
    display: flex;
    justify-content: left;
    align-items: center;
    transition: right 1s cubic-bezier(0.7, 0, 0.2, 1), opacity 1s ease;
    z-index: 999;
    opacity: 0; /* Le menu est invisible au départ */
}

/* Quand le menu est actif, il vient depuis la droite */
.menu-overlay.active {
    right: 0;
    opacity: 1;  /* Le menu devient visible lorsqu'il est actif */
}

/* Bouton de fermeture */
.close-button {
    position: absolute;
    top: 20px;
    left: 20px; /* Bouton de fermeture à gauche dans le menu */
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* Style des liens du menu */
.menu-overlay nav ul {
    list-style: none;
    padding: 4vh;
    text-align: left;
}

.menu-overlay nav ul li {
    margin: 20px 0;
}

.menu-overlay nav ul li a {
    color: white;
    font-size: 2rem;
    text-decoration: none;
    padding: 10px;
    transition: all 0.3s ease;
}

.menu-overlay nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2); /* Effet de survol */
    opacity: 1;
}

/* Style du bouton burger */
.burger {
    position: fixed;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    z-index: 1000;
    cursor: pointer;
}

.burger div {
    width: 30px;
    height: 4px;
    background: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Animation du menu burger */
.burger.open div:nth-child(1) {
    transform: rotate(45deg);
    position: relative;
    top: 8px;
}

.burger.open div:nth-child(2) {
    opacity: 0;
}

.burger.open div:nth-child(3) {
    transform: rotate(-45deg);
    position: relative;
    top: -8px;
}

/* Style de la page lorsque le menu est ouvert */
body.menu-open {
    overflow: hidden; /* Empêche le défilement de la page quand le menu est ouvert */
}

/* Bandeau fixe à droite */
.social-bar {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #000;
    height: 100vh;
    width: 60px; /* Largeur de la barre verticale */
    padding: 10px;
    justify-content: center;
}

/* Style des icônes des réseaux sociaux */
.social-bar a {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgb(0, 0, 0);
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
}

.social-bar a:hover {
    background-color: #00aced;
    transform: scale(1.1);
}

.social-bar i {
    font-size: 24px;
    color: white;
}

/* Ajustements responsives */
@media (max-width: 768px) {
    .social-bar a {
        width: 40px;
        height: 40px;
        margin: 8px 0;
    }

    .burger {
        top: 10px;
        right: 10px;
    }
}
