/* Footer */

.footer {
    width: 100%;
    font-family: 'Swiss721', sans-serif;
    height: 100vh;
    color: var(--white);
    z-index: 1;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    position: relative;  /* Position relative pour s'assurer que le footer respecte le flux de la page */
}

.containerfooter {
    display: flex;
    width: 100vw;
    height: 100vh;
    border: 1px solid var(--darkline);
    background-color: var(--darker);
    overflow: hidden;
    flex-direction: column;
    align-items: center;
    transition: all 0.5s ease;  /* Transition pour une animation fluide au redimensionnement */
}

.contactfooter {
    font-family: 'Gloock', serif;
    font-size: 15vw;
    letter-spacing: 2vw;
    font-style: italic;
    text-align: center;
    position: absolute;
    bottom: 0;
    white-space: nowrap;
    width: 95vw;
    overflow: hidden;
    margin-bottom: -3.4vw;
    color: var(--darkline);
    display: flex;
    justify-content: center;
}

.topfooter{
    width: 85%;
    margin-top: var(--7);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    font-family: "IBM Plex Mono", sans-serif;
    height: 2rem;
    align-items: center;
    font-size: 1rem;
    color: var(--grey);
}
.footleft,
.footmiddle,
.footright {
    flex: 1;
    max-width: 33%;
    box-sizing: border-box;
}
.footleft{
    font-size: 1rem;
}
.footmiddle{
    font-family: "Cormorant", serif;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
}
.footright{
    font-size: 1rem;
    text-align: right;
}
.mainfooter{
    width: 85%;
    margin-top: var(--5);
    height: calc(100% - 15vw - 2*var(--5));
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--5);
}
.footmainleft{
    height: 100%;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: "Cormorant", serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--grey);
}
.mailfooter {
    color: var(--white);
    font-size: 3rem;
    font-weight: 400;
    width: fit-content;
    transform: translateX(-2rem);
    transition: transform 0.3s ease-out;
    display: flex;
    flex-direction: row;
}

.mailfooter:hover {
    transform: translateX(0);
}
.mailtxt{
    margin-left: 0.75rem;
    overflow: hidden;
}
.mailfooter .arrmail{
    font-size: 2.5rem;
    transition: opacity 0.2s ease-out;
    opacity: 0;
}
.mailfooter:hover span {
    opacity: 1;
}
.footmainright{
    height: 100%;
    width: 30%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.linkfooter{
    font-family: "Cormorant", serif;
    height: 3rem;
    font-size: 2rem;
    padding-top: 0.5rem;
    margin-bottom: 1.25rem;
    border-top: 1px solid var(--darkline);
    font-weight: 300;
    display: flex;
    overflow: hidden;
    align-items: center;
}
.linkfooter .numberfoot{
    font-family: "IBM Plex", serif;
    font-size: 0.75rem;
    color: var(--grey)
}
.linkfooter p{
    margin-left: 1rem;
}

.hovereffect{
    display: flex;
    flex-direction: column;
    height: 2rem;
    font-size: 2rem;
    overflow: hidden;
}
.hovereffectmail{
    display: flex;
    flex-direction: column;
    height: 3.5rem;
    overflow: hidden;
}

.text-container {
    display: inline-block;
    position: relative;
}

.text-container .letter {
    display: inline-block;
}

.letter {
    position: relative;
    display: inline-block;
}
@media (max-width: 480px) {

}
@media (max-width: 767px) {
    .topfooter{
        flex-direction: column !important;
    }
    .footmiddle{
        max-width: 100%;
    }
    .footleft{
        display: none;
    }
    .footright{
        display: none;
    }
    .mainfooter{
        flex-direction: column !important;
        margin-top: var(--6);
        height: calc(100% - 50vw);
    }
    .footmainleft{
        width: 100%;
    }
    .footmainright{
        width: 100%;
    }
}
@media (max-width: 991px) {

    .footmainleft{
        font-size: 3rem;
    }
    .mailfooter {
        font-size: 2.5rem;
    }
    .hovereffect{
        height: 1.5rem;
        font-size: 1.5rem;
    }
    .hovereffectmail{
        height: 3rem;
    }
    .linkfooter {
        margin-bottom: 0.75rem;
    }
}
@media (max-width: 1199px) {

}
@media (max-width: 1599px) {

}