/* Block compétence animation */

.blockhover-html {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    background-color: #171617;
    border: 1px solid #ca1100;
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    transition: transform 0.4s;
}

.blockhover-html h2,
.blockhover-html h3 {
    background-image: -webkit-linear-gradient(45deg, #f34927 43%, #ca1100 46%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blockhover-html:hover {
    opacity: 1;
    transform: scale(1.05);
    cursor: pointer;
}

.blockhover-html .skill-content,
.blockhover-html .skill-container {
    background-color: #ca1100;
}

.blockhover-css {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    background-color: #171617;
    border: 1px solid #1b72bb;
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    transition: transform 0.4s;
}

.blockhover-css:hover {
    opacity: 1;
    transform: scale(1.05);
    cursor: pointer;
}

.blockhover-css h2,
.blockhover-css h3 {
    background-image: -webkit-linear-gradient(45deg, #34a7ea 43%, #1b72bb 46%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blockhover-css .skill-content {
    background-color: #1b72bb;
}

.blockhover-css .skill-container {
    background-color: #0e426d;
}

.blockhover-js {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    background-color: #171617;
    border: 1px solid #dab92d;
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    transition: transform 0.4s;
}

.blockhover-js:hover {
    opacity: 1;
    transform: scale(1.05);
    cursor: pointer;
}

.blockhover-js h2,
.blockhover-js h3 {
    color: #fed83b;
    background-image: -webkit-linear-gradient(45deg, #f7da6a 43%, #dab92d 46%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blockhover-js .skill-content {
    background-color: #dab92d;
}

.blockhover-bs h2 {
    color: #fed83b;
    background-image: -webkit-linear-gradient(45deg, #7b6b94 43%, #553d7b 46%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blockhover-bs {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    background-color: #171617;
    border: 1px solid #553d7b;
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    transition: transform 0.4s;
}

.blockhover-bs:hover {
    opacity: 1;
    transform: scale(1.05);
    cursor: pointer;
}

.blockhover-bs h2,
.blockhover-bs h3 {
    color: #7b6b94;
    background-image: -webkit-linear-gradient(45deg, #7b6b94 43%, #553d7b 46%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blockhover-bs .skill-content {
    background-color: #553d7b;
}

.blockhover-bs .skill-container {
    background-color: #372356;
}

/* Header animation du haut vers le bas */

header {
    position: relative;
    animation: navSlideUp 2s forwards;
}

@keyframes navSlideUp {
    0% {
        top: -150px;
    }

    100% {
        top: 0;
    }
}

/* Animation d'image de tête, slogan et p de gauche */

.slogan,
.img-info img,
.img-info p {
    animation: slide-left 2s ease-in-out;
    position: relative;
}

@keyframes slide-left {
    0% {
        margin-left: 4em;
        opacity: 0;
    }

    100% {
        margin-left: 0;
        opacity: 1;
    }
}

/* Bouton "Travaux réalisés" animation du bas vers le haut */

.travel-button {
    position: relative;
    animation: slide-top 2s ease-in-out;
}

@keyframes slide-top {
    0% {
        top: 150px;
    }

    100% {
        top: 0;
    }
}

.block2 {
    display: flex;
}

.imgblock {
    width: 300px;
    height: 158px;
    position: relative;
    transition-duration: 0.2s;
    margin-left: 20px;
}

.imgblockhover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition-duration: 0.2s;
}

.imgblock:hover>.imgblockhover {
    transform: scale(1.05);
    background-color: hsla(0, 0%, 0%, 0.8);
    z-index: 3;
    border: 1px solid #ebebeb;
    opacity: 1;
}

.imgblock:hover>img {
    transition-duration: 0.2s;
    transform: scale(1.05);
}

/* Bouton hover */

.contact a:hover, .travel-button-2 a:hover, .first-section a:hover {
    color: #191919;
    background-color: #ebebeb;
}
