/* 
 * STYLES POUR LA PAGE D'ACCUEIL
 * Gestion de la section hero avec présentation, image et flèche de navigation
 * Auteur: Manley.B
 */

/* ==================== SECTION ACCUEIL PRINCIPALE ==================== */
/* Configuration de la section d'accueil en flexbox */

#accueil {
    user-select: none;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 6em 8vw;
    gap: 3em;
    text-align: left;
    box-sizing: border-box;
}

/* ==================== TEXTE DE PRÉSENTATION ==================== */
/* Styles pour le contenu textuel de la page d'accueil */

#accueil .accueil-texte {
    user-select: none;
    height: 35vh;
    flex: 1 1 0;
    min-width: 250px;
}

#accueil h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #000000;
}

#accueil p {
    font-size: 1.5em;
    color: #000000;
}

#accueil #accroche {
    font-size: 1.4em;
    color: #666b68;
    margin-top: 10px;
}

/* ==================== IMAGE PRINCIPALE ==================== */
/* Styles pour le logo/avatar de la page d'accueil */

#accueil img {
    flex: 0 0 auto;
    max-width: 500px;
    width: 40vw;
    min-width: 400px;
    height: auto;
    border-radius: 110em;
    margin: 0;
    display: block;
}

/* ==================== FLÈCHE DE NAVIGATION ==================== */
/* Animation CSS pure pour la flèche indicatrice de défilement */
/* Créée avec des spans stylisés et des animations keyframes */

.arrow {
    position: absolute;
    top: 85%;
    left: 50%;
    transform: translate(-50%, -50%);
    transform: rotate(0deg);
    cursor: pointer;
}

.arrow span {
    display: block;
    width: 1.5vw;
    height: 1.5vw;
    border-bottom: 5px solid #333533;
    border-right: 5px solid #333533;
    transform: rotate(45deg);
    margin: -10px;
    animation: animate 2s infinite;
}

.arrow span:nth-child(2) {
    animation-delay: -0.2s;
}

.arrow span:nth-child(3) {
    animation-delay: -0.4s;
}

@keyframes animate {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-20px, -20px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translate(20px, 20px);
    }
}

/* Animation pour le conteneur de texte */
.text-reveal {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ==================== STYLES RESPONSIVES ==================== */
/* Adaptations pour tablettes et mobile */

@media (max-width: 57vh) {
    #accueil {
        flex-direction: column-reverse;
        align-items: center;
        justify-content: flex-start;
        text-align: center;
        padding: 6em 2vw 2em 2vw;
        gap: 2em;
        height: auto;
        min-height:100vh;
    }

    #accueil .accueil-texte {
        margin-top: 2em;
        user-select: none;
        flex: 1 1 0;
        min-width: 250px;
    }

    #accueil h1 {
        font-size: 5.5em;
        margin-bottom: 20px;
        color: #000000;
    }

    #accueil p {
        font-size: 2.5em;
        color: #000000;
    }

    #accueil #accroche {
        font-size: 2em;
        color: #666b68;
    }

    #accueil img {
        margin-top: 15vh;
        width: 60vw;
        max-width: 300px;
        min-width: 150px;
    }

    .arrow {
        top: 70%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .arrow span {
        display: block;
        width: 4.5vw;
        height: 4.5vw;
        border-bottom: 5px solid #333533;
        border-right: 5px solid #333533;
        transform: rotate(45deg);
        margin: -10px;
        animation: animate 2s infinite;
    }

}
