@font-face {
    font-family: 'some_time_laterregular';
    src: url('sometimelater-webfont.woff2') format('woff2'), 
         url('sometimelater-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

:root {
    --couleur-lien: rgb(64, 64, 64);
    --couleur-background: rgba(48, 209, 253, 0.5);
}

html, body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

html {
    background-image: url(images/background.svg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Écarte le header, la section et le footer */
    align-items: center;
}

header img { 
    width: 90vw;
    max-width: 60em;
    margin: 2em;
    padding: 0;
}

section {
    flex-grow: 1; /* Prend tout l'espace restant entre le header et le footer */
    width: 90vw;
    margin: 0;
    padding: 0;
}

footer {
    width: 50%;
    padding: 0;
}

footer ul {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    list-style: none;
    padding: 1em;
    margin: 0;
}

footer li {
    position: relative; /* Le conteneur parent pour positionner les icônes */
    width: 100px; /* Largeur des images */
    height: 100px; /* Hauteur des images */
}

footer li::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/horloge.svg');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 0; /* Assure que l'image est derrière l'icône */
}

footer i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centre l'icône */
    font-size: 2em;
    color: var(--couleur-lien);
    z-index: 1; /* Assure que l'icône est devant l'image */
    transition: transform 0.5s ease;
}

footer i:hover {
    transform: translate(-50%, -50%) scale(1.2); /* Animation de zoom sur hover */
}

@media only screen and (max-width: 1024px) {
    footer {
        width: 80vw;
    }
}

/* Media query pour écrans plus petits (mobile) */
@media only screen and (max-width: 768px) {

    footer li {
        width: 80px; /* Réduire la taille des images */
        height: 80px;
        margin-bottom: 1em; /* Ajouter un espace entre les icônes */
    }

    footer i {
        font-size: 1.5em; /* Réduire légèrement la taille des icônes */
    }
}

/* Media query pour encore plus petits écrans (très petits téléphones) */
@media only screen and (max-width: 480px) {
    footer li {
        width: 60px; /* Encore plus petite taille des images */
        height: 60px;
    }

    footer i {
        font-size: 1.2em; /* Ajuster la taille des icônes */
    }
}
