/*
CSS Mobile First
*/
html,
body {
    margin: 0;
}

body {
    color: #444;
    font-family: "Roboto", sans-serif;
    font-size: 18px;
    background-color: #EEE;
}

header {
    position: relative;
    display: flex;
    justify-content: center;
    height: 300px;
    margin-bottom: 100px;

    background-image: url(assets/header-curve.svg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom;
}

header .logo{
    margin-top: 20px;
    height: 150px;
    width: 350px;
    position: absolute; /* Necessaire pour Safari */
    object-fit: cover;
}

footer {
    
    background-image: url(assets/footer-curve.svg);
    background-repeat: no-repeat;
    background-position: right top;
    background-size: cover;
    height: 100px;

}

#loading{
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    animation: disappear 2s ease-in-out 3s forwards;
    user-select: none;
}

#loading img{
    animation: appear-z 3s linear forwards;
    /* transform: scale(0.7); */
}

#infos {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
}

#infos ul {
    padding-left: 0;
    margin: 0 5px;
}

#infos ul li {
    list-style-type: none;
    margin: 10px auto;
}

#infos ul li a {
    display: flex;
    flex-direction: row;
    align-items: center;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    border-radius: 25px;
    padding: 5px 20px;

    text-decoration: none;
    color: #444;
    transition: 1s all ease;
    background-color: white;

}

#infos ul li a:hover {
    background-color: #243568;
    color: white;
}

#infos ul li a i {
    position: relative;
    top: 2px;
    margin-right: 10px;
}


.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 960px;
    margin: 0 auto;

}

.avatar {
    width: 200px;
    position: absolute;
    bottom: -80px;
    user-select: none;
}

.identity {
    font-weight: 700;
}


.address {
    margin-top: 40px;
    text-align: center;
}


@media screen and (min-width: 768px) {

    header {
        height: 400px;
    }

    header .logo{
        width: 600px;
        height: 250px;
    }

    #infos {
        grid-template-columns: repeat(2, 250px);
        gap: 10px;
    }

    footer {
        height: 135px;
    }
}

@media screen and (min-width: 1024px) {

    footer {
        height: 180px;
    }
}

@media screen and (min-width: 1440px) {
    
    footer{
        height: 400px;
    }
}

@media screen and (min-width: 2560px) {

    footer{
        height: 500px;
    }
}

@keyframes appear {
    from{
        opacity: 0;
    }
    to{
        opacity: 1;
    }
}

@keyframes zoom {
    from{
        transform: scale(0.5);
    }
    to{
        transform: scale(0.8);
    }
}

@keyframes appear-z {
    from{
        transform: scale(0.3);
        opacity: 0;
    }
    to{
        transform: scale(0.8);
        
        opacity: 1;
    }
}

@keyframes disappear {
    from{
        opacity: 1;
        display: flex;
    }
    to{
        opacity: 0;
        display: none;
        visibility: hidden;
    }
}