/* --------IMPORTS -------- */
/* HEX : #513485 */
@import url('https://fonts.googleapis.com/css2?family=Poetsen+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Bebas+Neue&family=Freeman&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

/* --------GENERAUX -------*/

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

/* --------FOOTER NAV-------- */

.header{
    position: fixed;
    left: 0;
    bottom: 0px;
    width: 100%;
    height: 8%; /* Augmenter la hauteur pour une barre plus grande */
    background-color: white;
    color: white;
    text-align: center;
    border-radius:18px 18px 0px 0px;
    box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px, rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
}

.headerNav{
    position: relative;
    display: flex;
    height: 100%; /* Utiliser toute la hauteur du parent */
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}

.headerNavUl{
    display: flex;
    width: 90%; /* Utiliser une largeur relative pour l'adaptation */
}


.headerLi{
    list-style: none;
    justify-content: space-around;
    position: relative;
    flex: 1; /* Utiliser flex-grow pour un ajustement dynamique */
    height: 100%;
    z-index: 2;
}

.headerLi a{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: black;
    height: 100%;
}

.headerLi a .icon{
    position: relative;
    display: block;
    width: 80px; /* Augmenter encore la largeur pour des icônes plus grandes */
    height: 80px; /* Augmenter encore la hauteur pour des icônes plus grandes */
    text-align: center;
    line-height: 80px; /* Ajuster la hauteur de ligne pour centrer verticalement le texte */
    border-radius: 50%;
    font-size: 2.5rem; /* Augmenter encore la taille de police pour des icônes plus grandes */
    color: #83A697;
}

.headerLi.active a .icon{
    background-color: white;
    color: black;
    box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 70px 4px;
    animation: navActive 0.5s forwards;
    color: #83A697;
}

.headerLi a .icon::before{
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    border-radius: 50%;
    filter: blur(5px);
    opacity: 0;
    z-index: 1;
    color: #83A697;
}

.headerLi.active a .icon::before{
    opacity: 0.5;
}

/* --------ANIMS-------- */

@keyframes textStrokeAnim {
    0% {
        stroke-dasharray: 100%;
        stroke-dashoffset: 100%;
        fill: white;
    }
    99% {
        fill: white;
    }
    100% {
        stroke-dasharray: 0%;
        stroke-dashoffset: 0%;
        fill: #83A697;
    }
}

@keyframes spawnBas{
    from{
        transform: translateY(10px);
    }
    to{
        transform: translateY(0px);
    }
}

@keyframes spawnLogo {
    from{
        opacity: 0;
    }
    80%{
        opacity: 0.5;
    }
    to{
        opacity: 1;
    }
}

@keyframes navActive {
    from{
        transform: translateY(0px);
    }
    to{
        transform: translateY(-20px);
    }
}

/* --------MEDIA QUERIES-------- */
@media (max-width: 768px) {
    .header {
        height: 12%; /* Ajuster la hauteur pour les petits écrans */
    }

    .headerNav {
        height: 100%;
    }

    .headerNavUl {
        width: 100%; /* Utiliser toute la largeur disponible */
    }

    .headerLi {
        flex: 1;
        height: 100%;
    }

    .headerLi a .icon {
        width: 60px; /* Ajuster la largeur pour les petits écrans */
        height: 60px; /* Ajuster la hauteur pour les petits écrans */
        font-size: 2rem; /* Ajuster la taille de police pour les petits écrans */
        line-height: 60px; /* Ajuster la hauteur de ligne pour centrer verticalement le texte */
    }
}
