/* ==========================================================
   PAGE D'ACCUEIL
   Identité visuelle Thierry & Sylvie
   ========================================================== */


/* ==========================================================
   RÉINITIALISATION
   ========================================================== */

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

body {
    overflow: hidden;
    background: var(--color-background);
}


/* ==========================================================
   FOND GÉNÉRAL
   ========================================================== */

.home {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100svh;
    min-height: 400px;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* Image de fond */

.home__background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    z-index: 0;
}


/* ==========================================================
   CONTENU CENTRAL
   ========================================================== */

.home__content {
    position: relative;
    z-index: 1;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;
    padding: 30px 20px;
}


/* ==========================================================
   PRÉNOMS
   Même police et couleur que le header et connected-home
   ========================================================== */

.home__name {
    display: block;
    margin: 0;

    color: var(--color-text-title);

    font-family: var(--font-decorative);
    font-size: clamp(90px, 8.6vw, 175px);
    font-style: normal;
    font-weight: var(--font-weight-normal);

    line-height: 0.95;
    text-align: center;
}


/* ==========================================================
   STRUCTURE DES PRÉNOMS
   ========================================================== */

.home__names {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.home__title {
    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;
    margin: 0;
    padding: 0;

    font-weight: var(--font-weight-normal);
}


/* ==========================================================
   SÉPARATEUR « ET »
   ========================================================== */

.home__separator {
    width: 100%;
    margin: 8px 0 10px;

    color: var(--color-text-title);

    font-family: var(--font-text);
    font-size: clamp(30px, 4vw, 48px);
    font-style: italic;
    font-weight: var(--font-weight-normal);

    line-height: 1;
    text-align: center;
}


/* Second prénom */

.home__name--second {
    margin-top: 0;
}


/* ==========================================================
   BOUTON ENTRAR
   ========================================================== */

.home__button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;

    width: 200px;
    max-width: 90%;
    min-height: 76px;

    margin-top: 70px;
    padding: 15px 30px;

    border: none;
    border-radius: var(--radius-pill);

    background: var(--color-button-connect);
    color: var(--color-text);

    font-family: var(--font-text);
    font-size: 20px;
    font-weight: var(--font-weight-medium);
    letter-spacing: 5px;

    text-decoration: none;

    transition:
        background-color var(--transition-standard),
        transform var(--transition-standard);
}


/* Survol */

.home__button:hover {
    background: var(--color-fr-border);
    transform: translateY(-2px);
}


/* Focus clavier */

.home__button:focus-visible {
    outline: 3px solid var(--color-text);
    outline-offset: 5px;
}


/* ==========================================================
   TABLETTE
   ========================================================== */

@media (max-width: 1024px) {

    .home__name {
        font-size: clamp(95px, 11vw, 145px);
    }

    .home__button {
        width: 200px;
        min-height: 70px;
        margin-top: 60px;
        font-size: 20px;
    }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 600px) {

    .home__content {
        padding: 20px;
    }

    .home__name {
        font-size: clamp(76px, 10vw, 112px);
    }

    .home__separator {
        margin: 5px 0 8px;
        font-size: 34px;
    }

    .home__button {
        width: 150px;
        min-height: 64px;
        margin-top: 85px;
        gap: 20px;
        font-size: 19px;
        letter-spacing: 4px;
    }

}
