:root {
    --dark-color: rgb(15, 15, 40);
    --light-color: rgb(225, 228, 244);
}

* {
    margin: 0;
    padding: 0;
    z-index: 0;
}

body {
    background-color: var(--light-color);
    font-family: 'Quicksand', sans-serif;
    box-sizing: border-box;
}

/*-------------------------------------------------------------------SECTION.1---------------------------------------------------------*/

#section1 {
    background-image: url(./public/photoShape1.webp);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom 50% right;
    width: 100%;
    height: 95vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contactIcon {
    position: sticky;
    left: 0;
    bottom: 50%;
    width: 3em;
    height: 5em;
    background-color: rgb(225, 228, 244);
    border-top-right-radius: 0.5em;
    border-bottom-right-radius: 0.5em;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: background-color 0.5s ease, width 0.5s ease;
}

.contactIcon:hover {
    width: 5em;
}

.newIconColor {
    background-color: rgb(15, 15, 40);
}

.contactImg {
    width: 2em;
    height: 2em;
    filter: invert(0);
    cursor: pointer;
    transition: filter 0.5s ease;
}

.newImgColor {
    filter: invert(1);
}

.titres {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.titreHome {
    z-index: 0;
    color: rgb(225, 228, 244);
    text-align: center;
    background-color: rgba(0, 0, 0, 0);
    margin: 1em 0 0 0;
}

.titreHome2 {
    z-index: 0;
    color: rgb(225, 228, 244);
    text-align: center;
    background-color: rgba(0, 0, 0, 0);
    font-weight: 100;
    padding: 0.5em 0 3em 0;
    opacity: 0;
    animation: opacity2 1s ease forwards;
}

@keyframes opacity2 {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

#logoER {
    width: 10vw;
    position: relative;
    bottom: 20%;
}

.cadresSection1 {
    display: flex;
    color: var(--light-color);
    justify-content: space-around;
    padding: 0 0 3em 0;
    opacity: 0;
    animation: opacity 2s ease 0.5s forwards;
    background: linear-gradient(0deg, rgb(0, 10, 24) 34%, rgba(254, 182, 96, 0) 100%);
    z-index: 1;
    text-align: center;
}

/*-------------------------------------------------------------------SECTION.2---------------------------------------------------------*/
#section2 {
    background-color: var(--light-color);
    padding: 2em 0 0 0;
    width: 100%;
    height: 100%;
}

#section2 h3 {
    color: var(--dark-color);
    text-align: center;
    font-size: 3em;
    padding: 2em 0 0 0;
    z-index: 1;
    position: relative;
    bottom: 10%;
}

@keyframes opacity {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.cadresSection1 p {
    width: 15em;
    padding: 1em;
}

.containerRepair {
    position: absolute;
    right: 5%;
    width: 34em;
    height: 100%;
    margin: 5em;
    z-index: 2;
}

#photoRepair {
    background-image: url(./public/repairBGnb.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    transform-style: preserve-3d;
    transform: perspective(1000px);
    border-radius: 2em;
}

#imgPhone {
    display: none;
}

#imgRepairEric {
    transform: translateZ(20px);
    border-bottom-left-radius: 2em;
}

.atouts {
    color: var(--dark-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20em;
    text-align: center;
    margin: 0 0 0 10%;

}

.atoutTitre {
    font-size: 1.5em;
    margin-bottom: 1em;
}

.atoutPara {
    margin-bottom: 5em;
}

.icons {
    width: 50px;
    margin: 0 auto;
    filter: invert();
}

/*-------------------------------------------------------------------SECTION.3---------------------------------------------------------*/
#section3 {
    width: 100%;
    height: 100%;
    background-color: var(--dark-color);
    padding: 10em 0;
}

#section3 h3 {
    color: var(--light-color);
    text-align: center;
    font-size: 3em;
    position: relative;
    bottom: 10vh;
}

.galerie {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

.container {
    width: 40em;
    height: 32em;
}


.container img {
    width: 40em;
    position: absolute;
    border-radius: 10%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#img1 {
    opacity: 1;
}

.button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

#btn1,
#btn2 {
    width: 2em;
    height: 2em;
    border-radius: 50%;
    cursor: pointer;
}

#btn1 {
    background-image: url(./public/fleche-droite.png);
    background-size: contain;
    filter: invert();
    transform: rotate(180deg);
}

#btn2 {
    background-image: url(./public/fleche-droite.png);
    background-size: contain;
    filter: invert();
}

.textEric {
    color: var(--light-color);
    text-align: center;
    width: 24em;
    font-size: 1.5em;
}

/*-------------------------------------------------------------------SECTION.4---------------------------------------------------------*/
#section4 {
    background-color: var(--light-color);
    width: 100%;
    height: 100%;
}

#section4 h3 {
    color: var(--dark-color);
    text-align: center;
    font-size: 3em;
    padding: 2em 0 0 0;
}

.titleBio {
    font-size: 1.5em;
    font-weight: bold;
}

#sectionStory {
    background-color: var(--light-color);
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    color: var(--dark-color);
}

.containerStory {
    width: 40vw;
    text-align: center;
    margin: 10em 0;
}

.containerDate {
    display: flex;
    justify-content: center;
    background-color: var(--dark-color);
    color: var(--light-color);
    border-radius: 2em;
    height: fit-content;
    margin-bottom: 2em;
}

.date {
    font-size: 4vw;
    font-weight: bolder;
}

/* ANIMATION BOARD ACCUEIL */
#shortBoard {
    width: 2.5vw;
    transform: rotate(180deg);
    z-index: 2;
    position: absolute;
    top: 50vh;
    left: 48.8%;
    z-index: 0;
}

#defaultCanvas0 {
    position: absolute;
    top: 50vh;
    left: 0;
    z-index: 0;
    opacity: 0.8;
}

#anchorAnimBoard {
    position: absolute;
    top: 100vh;
}

/* MEDIA QUERIES ----------------------------------------------------------- */
@media (max-width: 1600px) {
    .containerRepair {
        right: 0;
        margin: 2em;
    }

}


@media (max-width: 1250px) {
    .containerRepair {
        right: 0;
        margin: 2em;
    }

    #photoRepair {
        scale: 0.8;
    }

    .container {
        width: 30em;
    }

    .container img {
        width: 30em;
    }

    .button {
        height: 70%;
    }

    .textEric {
        width: 14em;
    }
}

@media (max-width: 1000px) {
    #section1 {
        height: 100%;
    }

    .containerRepair {
        display: none;
    }

    #imgPhone {
        display: block;
        width: 15em;
        height: 100%;
        margin: 4em auto;
        border-radius: 1em;
    }

    #logoER {
        width: 30vw;
    }

    .atouts {
        width: 15em;
        text-align: center;
        margin: 0 auto;
    }


    .icons {
        width: 30px;
        margin: 0 auto;
        filter: invert();
    }

    .contact {
        display: flex;
        justify-content: space-around;
        align-items: flex-start;
        padding: 1em;
    }

    .contact ul {
        text-align: center;
        list-style: none;
        line-height: 1.5em;
    }

    .contact ul a .contact ul li {
        color: rgb(15, 15, 40);
        line-height: 1.5em;
        font-size: 0.8em;
    }

    .contact ul h5 {
        font-size: 0.8em;
    }

    .container {
        width: 20em;
        height: 20em;
    }

    .container img {
        width: 20em;
    }

    .button {
        height: 50%;
    }

    .cadresSection1 {
        font-size: 0.8em;
    }

    .titreHome {
        font-size: 1em;
    }

    .titreHome2 {
        font-size: 0.8em;
        margin: 0 0 10em 0;
    }

    .contactIcon {
        width: 3em;
        height: 4em;
    }

    .contactImg {
        width: 1.5em;
        height: 1.5em;
    }

    #shortBoard {
        display: none;
    }

    #defaultCanvas0 {
        display: none;
    }

    .date {
        font-size: 8vw;
    }

}