/*
** Écran d'accueil (accueil.php)
** Logo provisoire : assets/img/logo/ (lettres détourées + fond étoilé sans texte)
*/

#accueilBody {
    margin: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #07060d;
    overflow: hidden;
}

#accueilFond {
    position: fixed;
    inset: -5%;
    background: url('../img/logo/fond-etoile.jpg') center / cover no-repeat;
    animation: accueilDerive 40s ease-in-out infinite alternate;
    z-index: 0;
}

#accueilLogo {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    animation: accueilFlotte 4s ease-in-out infinite;
}

#accueilTitre {
    display: flex;
    gap: clamp(8px, 2.4vw, 40px);
    transition: transform 0.3s;
}

#accueilLogo:hover #accueilTitre {
    transform: scale(1.06);
}

.accueilLettre {
    height: clamp(40px, 10vw, 120px);
    animation: accueilVague 2.4s ease-in-out infinite, accueilLueur 2.4s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.15s);
}

#accueilHint {
    font-family: 'MoreSugar Thin';
    font-size: clamp(16px, 2.2vw, 28px);
    color: #c9c6dc;
    margin-top: 4vh;
    letter-spacing: 0.2em;
    animation: accueilClignote 2.4s ease-in-out infinite;
}

@keyframes accueilDerive {
    from { transform: scale(1) translate(0, 0); }
    to { transform: scale(1.12) translate(-2%, 1%); }
}

@keyframes accueilFlotte {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -10px; }
}

@keyframes accueilVague {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-14%); }
}

@keyframes accueilLueur {
    0%, 60%, 100% { filter: drop-shadow(0 0 4px rgba(190, 170, 255, 0.35)); }
    30% { filter: drop-shadow(0 0 18px rgba(230, 160, 255, 0.95)); }
}

@keyframes accueilClignote {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
    #accueilFond, #accueilLogo, .accueilLettre, #accueilHint {
        animation: none;
    }
}
