/*-------------Presentation------------*/

.index .title-website strong.light {
    margin-left: 50px;
}

.index .first {
    height: 88vh;
    padding-top: 12vh;
    vertical-align: middle;
    display: flex;
    flex-direction: column;
    background: linear-gradient(0, rgba(0,0,0,0.85) 30%, var(--secondary-fixed-color) 100%),
        url("../img/illustrations/index_background.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    justify-content: center;
}

.index .first > .container{
    padding-bottom: 25vh;
}

.title-website {
    /*margin-top: 8vh;*/
}

.title-website h1 {
    font-family: 'Jost Semibold';
}

.title-website h1:first-child {
    font-size: 3.5rem;
}

.presentation-home {
    display: flex;
    flex-direction: row;
    margin-top: 10vh;
    height: 60px;
    align-items: center;
}

.presentation-home p {
    max-width: 40vw;
}

.presentation-home span {
    display: inline-block;
    height: 100%;
    width: 2px;
    background-color: var(--primary-fixed-color);
    margin-right: 25px;
}

.arrows {
    transform: scale(0.5);
    width: 60px;
    height: 72px;
    position: absolute;
    left: 30vw;
    bottom: 100px;
    cursor: pointer;
    /*border-radius: 50px;
    border: 2px solid var(--primary-fixed-color);
    padding: 20px 10px;*/
}

.arrows path {
    stroke: var(--primary-fixed-color);
    fill: transparent;
    stroke-width: 3px;
    animation: arrow 2s infinite;
    -webkit-animation: arrow 2s infinite;
}

@keyframes arrow {
    0% {
        opacity: 0
    }

    40% {
        opacity: 1
    }

    80% {
        opacity: 0
    }

    100% {
        opacity: 0
    }
}

@-webkit-keyframes arrow

/*Safari and Chrome*/
    {
    0% {
        opacity: 0
    }

    40% {
        opacity: 1
    }

    80% {
        opacity: 0
    }

    100% {
        opacity: 0
    }
}

.arrows path.a1 {
    animation-delay: -1s;
    -webkit-animation-delay: -1s;
    /* Safari 和 Chrome */
}

.arrows path.a2 {
    animation-delay: -0.5s;
    -webkit-animation-delay: -0.5s;
    /* Safari 和 Chrome */
}

.arrows path.a3 {
    animation-delay: 0s;
    -webkit-animation-delay: 0s;
    /* Safari 和 Chrome */
}


/*-------------Banner ask contact------------*/

.ask-contact-banner {
    width: 38vw;
    height: 110px;
    background-color: var(--main-background-color);
    position: absolute;
    right: 0;
    top: 76vh;
    border-radius: 40px 0 0 40px;
    animation: slideRight 1s;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.ask-contact-banner .interrogation-point {
    margin-left: 25px;
    animation: pictoTurn 4s infinite alternate-reverse;
    width: 90px;
    height: 90px;
}

.interrogation-point path {
    fill: var(--primary-text-color);
}

.container-text-ask {
    margin-left: 30px;
}

.container-text-ask p {
    color: var(--primary-text-color) !important;
}

.container-text-ask p:first-child {
    font-family: 'Jost Semibold';
    font-size: 1.6rem;
    padding-bottom: 4px;
}

.container-text-ask p:last-child {
    font-family: 'Jost Medium';
    font-size: 1.2rem;
}

.container-text-ask a {
    font-family: 'Jost Semibold';
    color: var(--main-color);
    cursor: pointer;
    text-decoration: none;
}

@keyframes slideRight {
    0% {
        transform: translateX(80vw);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes pictoTurn {
    0% {
        transform: rotateZ(10deg);
    }

    100% {
        transform: rotateZ(-10deg);
    }
}

/*-------------section qui suis-je------------*/

#qui-suis-je {
    background-color: var(--second-background-color);
}

#qui-suis-je .container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

#qui-suis-je .container .group:first-child {
    display: flex;
    flex-direction: row;
    align-items: center;
}

#qui-suis-je .container .group:last-child {
    display: flex;
    flex-direction: column;
}

#qui-suis-je .container .photo-portrait {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
}

#qui-suis-je .container .infos-content {
    width: 25vw;
    padding-left: 40px;
    padding-bottom: 2vh;
}

#qui-suis-je .container .infos-content p {
    padding: 16px 0 30px;
    text-align: justify;
}

#qui-suis-je .container .group:last-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40vw;
}

.type-page {
    width: 20vw;
    object-fit: cover;
    position: relative;
    margin: 2px 0;
}

.type-page>img {
    width: 100%;
    object-fit: cover;
    height: 60px;
    filter: brightness(30%);
    z-index: 1;
}

.type-page .name {
    display: flex;
    flex-direction: row;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    align-items: center;
    z-index: 2;
}

.type-page .name p {
    text-transform: uppercase;
    color: var(--main-color);
    padding-left: 15px;
    font-family: 'Jost Semibold';
}

.type-page .name .svg path {
    fill: var(--main-color);
}

.type-page:nth-child(odd) {
    transform: translateX(6vw);
    animation: animeBlocOdd 5s infinite alternate-reverse ease;
}

.type-page:nth-child(even) {
    transform: translateX(-6vw);
    animation: animeBlocEven 5s infinite alternate-reverse ease;
}

@keyframes animeBlocOdd {
    0% {
        transform: translateX(-6vw);
    }

    100% {
        transform: translateX(6vw);
    }
}

@keyframes animeBlocEven {
    0% {
        transform: translateX(6vw);
    }

    100% {
        transform: translateX(-6vw);
    }
}

/*-------------section projets------------*/

.lasts-projects{
    padding-top: 2vh;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.lasts-projects .btn1{
    margin: auto 0;
}

/*-------------section services recap------------*/

.services-exemples .container {
    background: linear-gradient(0, rgba(0, 0, 0, 0.6) 80%, rgba(0, 0, 0, 0.7) 100%),
        url("../img/illustrations/banniere_service_index.webp");
    background-position: 50%;
    background-size: cover;
    background-repeat: no-repeat;
    margin: 2vh 0 0;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
}

.content-service {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30vw;
}

.content-service .svg {
    margin: 0 0 20px;
}

.content-service .svg path {
    fill: var(--main-color)
}

.content-service .name {
    text-transform: uppercase;
    color: var(--primary-fixed-color);
    font-size: 1.3rem;
    font-family: 'Jost Medium';
    text-align: center;
}

.content-service .description {
    margin: 5px 0;
    text-transform: uppercase;
    color: var(--main-color);
    font-size: 1.2rem;
    text-align: center;
}


@media screen and (max-width: 1280px) {

    /*-------------Presentation------------*/

    .index .title-website strong.light {
        margin-left: 40px;
    }

    .presentation-home p {
        max-width: 50vw;
    }

    .arrows {
        bottom: 100px;
        left: 28vw;
    }

    /*-------------Banner ask contact------------*/

    .ask-contact-banner {
        width: 45vw;
    }

    /*-------------section qui suis-je------------*/

    .photo-portrait {
        width: 145px;
        height: 145px;
    }

    .infos-content {
        width: 30vw;
    }

    #qui-suis-je .container .group:last-child {
        align-items: center;
    }

    .type-page {
        width: 24vw;
    }

    .type-page:nth-child(odd) {
        transform: translateX(6vw);
        animation: animeBlocOdd 5s infinite alternate-reverse ease;
    }

    .type-page:nth-child(even) {
        transform: translateX(-6vw);
        animation: animeBlocEven 5s infinite alternate-reverse ease;
    }

    @keyframes animeBlocOdd {
        0% {
            transform: translateX(-6vw);
        }

        100% {
            transform: translateX(6vw);
        }
    }

    @keyframes animeBlocEven {
        0% {
            transform: translateX(6vw);
        }

        100% {
            transform: translateX(-6vw);
        }
    }

    /*-------------section projets------------*/

    .lasts-projects .projects-container:nth-child(4){
        display: none;
    }

    /*-------------section services recap------------*/

    .services-exemples .container {
        margin: 4vh 0 2vh;
    }

    .content-service .svg {
        width: 80px;
        margin: 0 0 20px;
    }
}

@media screen and (max-width: 1025px) {

    .presentation-home p {
        max-width: 60vw;
    }

    /*-------------section projets------------*/

    .lasts-projects .projects-container:nth-child(4){
        display: none;
    }

    .lasts-projects{
        justify-content: center;
    }

    .lasts-projects .btn1{
        margin: auto 0;
    }

    /*-------------section services recap------------*/

    .services-exemples .container {
        margin: 2vh 0 2vh;
    }

    .content-service {
        width: 25vw;
        height: 100%;
        margin: auto 0;
    }

    .content-service .svg {
        margin: 0 0 15px;
        width: 60px;
        height: 60px;
    }

    .content-service .name {
        text-transform: uppercase;
        color: var(--primary-fixed-color);
        font-size: 1.2rem;
        font-family: 'Jost Medium';
    }

    .content-service .description {
        font-size: 1rem;
    }
}

@media screen and (max-width: 769px) {

    /*-------------Presentation------------*/

    .index .title-website strong.light {
        margin-left: 30px;
    }

    .index .first > .container{
        padding-bottom: 30vh;
    }

    .title-website h1:first-child {
        font-size: 3rem;
        padding-bottom: 10px;
    }

    .title-website h1:last-child {
        font-size: 1.8rem;
    }

    .presentation-home {
        margin-top: 10vh;
        height: 60px;
    }

    .presentation-home p {
        max-width: 75vw;
        font-size: 1.2rem;
    }

    .arrows {
        transform: scale(0.4);
        left: 24vw;
        bottom: 2vh;
    }

    /*-------------Banner ask contact------------*/

    .ask-contact-banner {
        width: 50vw;
        height: 80px;
        top: 78vh;
    }

    .ask-contact-banner .interrogation-point {
        margin-left: 20px;
        width: 60px;
        height: 60px;
    }

    .container-text-ask {
        margin-left: 20px;
    }

    .container-text-ask p:first-child {
        font-size: 1.4rem;
        margin: 0;
        padding: 0;
    }

    .container-text-ask p:last-child {
        font-size: 1rem;
        margin: 0;
    }

    /*-------------section qui suis-je------------*/

    #qui-suis-je .container {
        justify-content: center;
    }

    .photo-portrait {
        width: 130px;
        height: 130px;
    }

    .infos-content {
        width: 60vw;
        margin-left: 35px;
    }

    #qui-suis-je .container .group:last-child {
       display: none;
    }

    /*-------------section projets------------*/

.lasts-projects .projects-container:nth-child(4){
        display: none;
    }

    /*-------------section services recap------------*/

    .services-exemples .container {
        margin-bottom: 2vh;
    }

    .content-service {
        width: 25vw;
    }

    .content-service .svg {
        width: 40px;
        height: 40px;
    }

    .content-service .name {
        font-size: 1rem;
    }

    .content-service .description {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 570px) {

    /*-------------Presentation------------*/

    .index .title-website strong.light {
        margin-left: 20px;
    }

    .index .first {
        height: 90vh;
        padding-top: 6vh;
    }

    .title-website h1:first-child {
        font-size: 2.5rem;
        padding-bottom: 10px;
    }

    .title-website h1:last-child {
        font-size: 1.5rem;
    }

    .presentation-home {
        margin-top: 10vh;
        height: 100px;
    }

    .presentation-home p {
        max-width: 80vw;
    }

    .arrows {
        transform: scale(0.4);
        left: 40vw;
        bottom: 25px;
    }

    /*-------------Banner ask contact------------*/

    .ask-contact-banner {
        width: 75vw;
        height: 60px;
        top: 70vh;
    }

    .ask-contact-banner .interrogation-point {
        margin-left: 15px;
        width: 40px;
        height: 40px;
    }

    .container-text-ask p:first-child {
        font-size: 1.2rem;
    }

    .container-text-ask p:last-child {
        font-size: 0.8rem;
    }

    /*-------------section qui suis-je------------*/

    .photo-portrait {
        width: 100px;
        height: 100px;
    }

    #qui-suis-je .container > .group {
        /* width: 25vw; */
        justify-content: space-between;
    }

    #qui-suis-je .container .infos-content {
        width: 55vw;
        padding-left: 15px;
    }

    #qui-suis-je .container .infos-content p{
        padding: 1vh 0 2vh;
    }

    #qui-suis-je .container .group:first-child {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }

    /*-------------section projets------------*/

    .lasts-projects .projects-container:nth-child(4){
        display: none;
    }
    
    .lasts-projects{
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .lasts-projects .projects-container{
        margin: 2vh auto !important;
    }

    /*-------------section services recap------------*/

    .services-exemples .container {
        flex-direction: column;
        margin: 2vh 0;
    }

    .services-exemples .container .btn2{
        margin: 4vh auto;
    }

    .content-service {
        width: 70vw;
    }

    .content-service .svg {
        margin-bottom: 15px;
    }

    .content-service .description {
        margin-bottom: 0;
    }

    
}