* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: "Poppins", sans-serif;
}

/************ UTILITAIRES ***********/

.rel {
    position: relative;
}

/************************************/

p {
    font-size: 100%;
    text-align: justify;
}

h2 {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    /* top: 1%; */
    display: inline;
}

h2::after {
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    background: black;
    transform: scale(0);
    transition: transform 0.2s ease-in-out;
}

h2:hover::after {
    transform: scale(1);
}

/* HEADER-FOOTER  */

#navbarCollapse, h1, nav div ul li {
    background-color: rgb(220, 20, 60);
}

.nav-item:hover {
    transform: scale(1.3);
    transition: transform .3s;
}

.nav-item {
    transition: all 0.2s;
}

.header-footer {
    height: 11vh;
    background-color: rgb(220, 20, 60);
    color: white;
    width: 100%;
}

section {
    height: 75vh;
    padding-top: 10%;
}



/**************** SCREEN 1 *******************/

#section-home {
    background-color: rgb(245, 245, 245);
}

#name {
    font-size: 60px;
}



/**************** SCREEN 2 *******************/

#section-decouverte {
    background-color: rgb(105, 105, 105);
    height: 90vh;
}

#photo {
    transition: all 0.8s;
}

#photo:hover {
    transform: scale(1.3);
    transition: transform .3s;
}



/**************** SCREEN 3 *******************/

.contour {
    height: 400px;
    width: 400px;
    border: solid 2px black;
    border-radius: 20px;
    box-shadow: 10px 10px 9px black
}

.gap {
    gap: 50px 50px;
}

.contour > p:first-child {
    border-bottom: dashed 2px black;
}

.rel img:hover {
    transform: scale(1.2);
    transition: transform .2s;
}

.rel p {
    transform: translate(-50%, 50%);
    transition: all 0.8s;
    pointer-events: none;
    opacity: 0;
    font-weight: bolder;
}

.absolute1 {
    position: absolute;
    left: 25%;
    bottom: 222px;
}

.absolute2 {
    position: absolute;
    left: 75%;
    bottom: 222px;
}

.absolute3 {
    position: absolute;
    left: 25%;
    bottom: 70px;
}

.absolute4 {
    position: absolute;
    left: 75%;
    bottom: 70px;
}

.absolute5 {
    position: absolute;
    left: 25%;
    bottom: 150px;
}

.absolute6 {
    position: absolute;
    left: 75%;
    bottom: 170px;
}

.absolute7 {
    position: absolute;
    left: 50%;
    bottom: 20px;
}


.rel img:hover + .pos-text {
    bottom: 260px;
    opacity: 1;
}

.rel img:hover + .pos-text2 {
    bottom: 110px;
    opacity: 1;
}

.rel img:hover + .pos-text3 {
    bottom: 180px;
    opacity: 1;
}

.rel img:hover + .pos-text4 {
    bottom: 210px;
    opacity: 1;
}

.rel img:hover + .pos-text5 {
    bottom: 50px;
    opacity: 1;
}