/* =========================================
   STYLE SPÉCIFIQUE : ACCUEIL (INDEX)
   ========================================= */

/* Le conteneur principal qui prend tout l'écran */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    /* Ajustement pour que le contenu ne soit pas caché par le header */
    padding-top: 60px;
}

/* Contenu du Hero */
.hero-content {
    max-width: 800px;
    z-index: 1;
}

/* "Bonjour, je suis" */
.greeting {
    font-family: 'Space Mono', monospace;
    color: var(--accent-color);
    font-size: 1.2rem;
    display: block;
    margin-bottom: 10px;
}

/* Le Nom "Benoît Ferrandini" */
.hero h1 {
    font-size: 4rem;
    margin: 20px 0;
    line-height: 1.1;
    font-weight: 800;
}

/* Effet Machine à écrire */
.typewriter {
    font-family: 'Space Mono', monospace;
    font-size: 1.5rem;
    height: 30px;
    /* Fixe la hauteur pour éviter que ça saute */
    margin-bottom: 40px;
    color: var(--text-color);
}

/* Cache l'élément qui va être animé initialement */
#typing-text {
    opacity: 0;
}

/* Classe ajoutée par JS pour lancer l'apparition fluide */
#typing-text.visible {
    opacity: 1;
    transition: opacity 0.3s ease-in;
}

/* Curseur clignotant après le texte */
.typewriter::after {
    content: '|';
    animation: blink 0.7s infinite;
    color: var(--accent-color);
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Groupe de boutons (Contacter / CV) */
.cta-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* --- RESPONSIVE MOBILE --- */
@media screen and (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .typewriter {
        font-size: 1.1rem;
    }
}