@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');

.container_navbar {
    z-index: 99;
    background-color: #2C5574;
    height: 220px;
}

#cacahuet {
    color: white;
    font-family: 'Pacifico', cursive;
}

.title_navbar_menu {
    display: none;
}

.title_navbar::first-letter {
    font-size: 46pt;
}

.logo {
    position: fixed;
    top: 0px;
}

.img_logo {
    width: 200px;
}

.button_container {
    position: fixed;
    top: 5%;
    right: 1%; /* cette valeur détermine sa distance du côté droit */
    height: 27px;
    width: 35px;
    cursor: pointer;
    z-index: 100;
    transition: opacity .25s ease;
}

.button_container:hover {
    opacity: .7;
}

.button_container.active .top {
    transform: translateY(11px) translateX(0) rotate(45deg);
    background: #FFF;
}

.button_container.active .middle {
    opacity: 0;
    background: #FFF;
}

.button_container.active .bottom {
    transform: translateY(-11px) translateX(0) rotate(-45deg);
    background: #FFF;
}

.button_container span {
    background: #1abc9c;
    border: none;
    height: 5px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: all .35s ease;
    cursor: pointer;
}

.button_container span:nth-of-type(2) {
    top: 11px;
}

.button_container span:nth-of-type(3) {
    top: 22px;
}

.overlay {
    position: fixed;
    background: #1abc9c;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s, visibility .35s, height .35s;
    overflow: hidden;
}

.overlay.open {
    opacity: .9;
    visibility: visible;
    height: 100%;
}

.overlay.open li {
    animation: fadeInRight .5s ease forwards;
    animation-delay: .35s;
    text-transform: uppercase;
}

.overlay.open li:nth-of-type(2) {
    animation-delay: .4s;
}

.overlay.open li:nth-of-type(3) {
    animation-delay: .45s;
}

.overlay.open li:nth-of-type(4) {
    animation-delay: .50s;
}

.overlay nav {
    position: relative;
    height: 70%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    font-weight: 400;
    text-align: center;
}

.overlay ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: inline-block;
    position: relative;
    height: 100%;
}

.overlay ul li {
    display: block;
    height: 25%;
    height: calc(100% / 4);
    min-height: 50px;
    position: relative;
    opacity: 0;
}

.overlay ul li a {
    display: block;
    position: relative;
    color: #FFF;
    text-decoration: none;
    overflow: hidden;
}

.overlay ul li a:hover:after,
.overlay ul li a:focus:after,
.overlay ul li a:active:after {
    width: 100%;
}

.overlay ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0%;
    transform: translateX(-50%);
    height: 3px;
    background: #FFF;
    transition: .35s;
}

.overlay-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-small {
    width: 100px; /* ou la taille que vous souhaitez pour le logo réduit */
    height: 75px; /* Ajustez en conséquence */
    transition: width 0.5s, height 0.5s;
}

.img_logo-small {
    width: 130px; /* ou la taille que vous souhaitez pour l'image dans le logo réduit */
    transition: width 0.5s;
}

.logo {
    /* vos autres propriétés... */
    transition: width 0.5s, height 0.5s; /* Ajoutez cette ligne */
}

.img_logo {
    /* vos autres propriétés... */
    transition: width 0.5s; /* Ajoutez cette ligne */
}

.button_container {
    height: 27px;
    width: 35px;
    cursor: pointer;
    transition: opacity .25s ease;
}

@keyframes fadeInRight {
    0% {
        opacity: 0;
        left: 20%;
    }

    100% {
        opacity: 1;
        left: 0;
    }
}

/* Title navbar */

.typewriter-container {
    flex-grow: 1;
    display: flex;
    justify-content: center; 
    overflow: hidden;
}

.typewriter h1 {
    font-size: 45px;
    font-weight: lighter;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    animation: typing 3.5s steps(50);
}

.typewriter {
    display: flex;
    justify-content: center;
    width: 100%;
}

.title_navbar {
    width: 100%;
    text-align: center;
    font-family: 'Chau Philomene One', sans-serif;
    font-size: 34pt;
    margin-top: 0;
    color: #5CE1E6;
    font-style: italic;
    margin-top: 90px;
}

.typewriter h1::after {
    content: "";
    position: absolute;
    display: block;
    height: 100%;
    width: 1px;
    background: #dadada;
    right: 0;
    top: 0;
    animation: cursor 1s infinite;
}

/* Select langue */

.select_lang {
    border: none;
    height: 3vh;
    width: 12vh;
}

.language-selector {
    display: inline-block;
    margin-right: 50px;  /* ajoutez un espace pour séparer le sélecteur du bouton */
}

.menu_and_lang {
    position: fixed;
    top: 5%;
    right: 1%;
    z-index: 100;
}

@keyframes typing {
    from {width:0}
    to {width: 100%;}
}

@keyframes cursor {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@media screen and (max-width: 1500px) {
    .typewriter h1 {
        font-size: 25pt;
    }
}

@media screen and (max-width: 1230px) {
    .typewriter h1 {
        font-size: 18pt;
    }
}

@media screen and (max-width: 1020px) {
    .title_navbar {
        display: none;
    }
}

@media screen and (max-width: 550px) {
    .overlay nav {
        top: 50%;
    }

    .overlay.open li {
    font-size: 23pt;
    }
}

@media screen and (max-width: 305px) {
    .logo {
        width: 170px;
        height: 135px;
    }

    .img_logo {
        width: 150px;
    }
}