body {
    margin: 0;
    padding: 0;
    background-color: #95a5a6;
    font-family: sans-serif;
}
nav {
    background-color: #2c3e50;
    display: flex;
    justify-content: center;
}
.box a {
    color: #f39c12;
    text-decoration: none;
}
.box {
    width: 200px;
    height: 110px;
    position: relative;             /*superposition position absolue et position relative*/
    display: flex;
    justify-content: center;        /* alignement horizontal sur la largeur 200px*/
    align-items: center;            /* alignement vertical sur la hauteur 100px*/
}
.box h4, .box span {
    position: absolute;             /*superposition position absolue et position relative*/
    left: 50%;                      /*se décale de 50% mais le contenu du texte n'est pas pris en compte*/
    transform: translateX(-50%);    /*récupérer la moitié du contenu pour centrer */
    opacity: 0;                     /*cacher avec l'opacité*/
}
.box h4 {
    font-size: 19px;
    text-transform: uppercase;      /*mettre en capital*/
    top: 5px;
}
.box span {
    color: white;
    font-size: 10px;
    bottom: 15px;
}
.box i {
    font-size: 32px;
    transition: 0.3s;           /*pour changer l'opacité et la mise à l'échelle*/
}
.box:hover i {
    transform: scale(4);        /* Mise à l'échelle : grossissement 4x*/
    opacity: 0;
}
.box:hover h4 {
    opacity: 1;
    top: 20px;
    transition: 0.3s;           /* 0.3s pour changer l'opacité et la descente*/
}
.box:hover span {
    opacity: 1;
    bottom: 25px;
    transition: 0.3s;           /* 0.3s pour changer l'opacité et la montée*/
}

@media screen and (max-width: 800px) {
    .box span {
        display: none;
    }
    .box:hover i {
        transform: scale(2);
        opacity: 0.3;           /*voir les icônes en arrière plan*/
    }
}