/* Fribourg le 13 Janvier 2026
Luis Inchauste Rivera */
/* Styles pour le titre */
.container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}
.container header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}
header h1, header h2 {
    padding: 0;
    margin: 0;
    font-size: 4rem;
    color: var(--txt-primary-color);
}
header img {
    width: 30%;
    pointer-events: none;
}
.typeText {
    border-right: 5px solid #444444;
    width: 0%;
    white-space: nowrap;
    overflow: hidden;
    animation:
        typing 600ms steps(17) 1500ms forwards,
        cursor .4s step-end infinite alternate-reverse;
}
/* Styles pour les textes de fond */
 .flex-1, .flex-2, .flex-3, .flex-4 {
    width: 350px;
    position: absolute;
    color: var(--bg-secondary-color);
    pointer-events: none;
 }
.flex-1 {
    top: 20%;
    left: 0%;
    animation: 30s moveAround ease-in-out infinite alternate;
}
.flex-2 {
    bottom: 10%;
    left: 30%;
    animation: 30s moveAround ease-in-out infinite reverse 500ms;
}
.flex-3 {
    top: 30%;
    right: 30%;
    animation: 30s moveAroundLeft ease-in-out infinite reverse 400ms;
}
.flex-4 {
    bottom: 25%;
    right: 10%;
    align-self: center;
    animation: 30s moveAroundLeft ease-in-out infinite normal 600ms;
}

/* Animations */
@keyframes cursor {
    50% {
        border-color: transparent;
    }
}
@keyframes typing {
    from { 
        width: 0%;
    } to {
        width: 100%;
    }
}
@keyframes moveAround {
    0% {
        transform: translateX(0%) translateY(0%);
    }
    25% {
        transform: translateX(10%) translateY(25%)
    } 
    50% {
        transform: translateX(20%) translateY(15%)
    }
    75% {
        transform: translateX(15%) translateY(20%)
    }
    100% {
        transform: translateX(-15%) translateY(10%)
    }
}
@keyframes moveAroundLeft {
    0% {
        transform: translateX(0%) translateY(0%);
    }
    25% {
        transform: translateX(-30%) translateY(25%)
    } 
    50% {
        transform: translateX(-20%) translateY(15%)
    }
    75% {
        transform: translateX(-0%) translateY(20%)
    }
    100% {
        transform: translateX(10%) translateY(10%)
    }
}

@media (max-width: 575.98px) {
    /* Styles pour le text de fond */
    .flex-1, .flex-2, .flex-3, .flex-4 {
        animation: none;
        width: 30ch;
        display: flex;
        height: 100px;
    }
    .flex-1 {
        top: 5%;
        left: 5%;
    }
    .flex-2 {
        top: 20%;
        right: 5%;
    }
    .flex-3 {
        top: inherit;
        bottom: 5%;
        left: 25%;
    }
    .flex-4 {
        bottom: 30%;
        right: 30%;
    }
    /* Styles pour le contennu titre et image avatar */
    header h1, header h2{
        font-size: 2.5rem;
    }
    header img {
        width: 100%;
    }
}