/* Color */

body {
    background-color: #F4F4F7;
    width: 100vw;
}

.white {
    color: var(--soft-light, #F4F4F7);
    ;
}

.yellow {
    color: var(--yellow, #FFD43B)
}

.blue {
    color: var(--blue, #2E7CF6);
}

.red {
    color: var(--red, #FF4242);
}

.light-blue {
    color: var(--light-blue, #86DEFC);
}

.medium-blue {
    color: var(--medium-blue, #3CB7FB);
}


.violet {
    color: var(--violet, #AA95FF);
}

.opactity-80 {
    opacity: 80%;
}

.opactity-50 {
    opacity: 50%;
}

.opactity-70-hover {
    transition: 0.15s ease-out;
}

.opactity-70-hover:hover {
    opacity: 70%;
}




/* Typographies */

p {
    font-family: 'Manrope', 'Arial', sans-serif;
    font-size: 17px;
    font-style: normal;
    font-weight: 400;
    line-height: 160%;
}

@media (max-width: 1280px) {
    p {
        font-size: 15px;
    }
}

.serif-courant {
    font-family: 'Newsreader', serif;
    font-size: 21px;
    font-style: normal;
    font-weight: 300;
    line-height: 80%;
}

@media (max-width: 1280px) {
    .serif-courant {
        font-size: 19px;
    }
}

.cta-s {
    font-family: 'Manrope', 'Arial', sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 110%;
    /* 16.5px */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.h2 {
    font-family: 'Manrope', 'Arial', sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
    /* 28.8px */
}

@media (max-width: 1280px) {
    .h2 {
        font-size: 21px;
    }
}

.serif-h2 {
    font-family: 'Newsreader', serif;
    font-size: 29px;
    font-style: normal;
    font-weight: 300;
    line-height: 96%;
}

@media (max-width: 1280px) {
    .serif-h2 {
        font-size: 26px;
    }
}

.h3 {
    font-family: 'Manrope', 'Arial', sans-serif;
    font-size: 17px;
    font-style: normal;
    font-weight: 500;
    line-height: 110%;
    /* 22px */
    text-transform: uppercase;
}

.serif-h3 {
    font-family: 'Newsreader', serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 300;
    line-height: 96%;
}


/* Transition Dark Mode */

/*html {
    transition: background-color 5s ease;
}*/


/* Loading */

/* Masquer le contenu initialement */
body {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Afficher le contenu une fois que tout est chargé */
body.loaded {
    opacity: 1;
}

/* Masquer le contenu initialement */
body {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Afficher le contenu une fois que tout est chargé */
body.loaded {
    opacity: 1;
}


/* Navigation */

nav {
    max-width: 1650px;
    display: flex;
    justify-content: space-between;
    padding: 16px 16px 16px 2.5%;
    margin: 0 auto;
}

@media (min-width: 1720px) {
    nav {
        padding: 16px 16px 16px 16px;
    }
}

.left-nav {
    display: flex;
    gap: 8px;
}

.site-name {
    display: flex;
    padding: 1px 24px 4px 8px;
    align-items: center;
    align-self: stretch;
    font-family: 'Manrope', 'Arial', sans-serif;
    font-size: 15px;
    font-style: normal;
    font-weight: 500;
}

.secondary-button {
    border-radius: 16px;
    border: 1px solid rgba(24, 23, 23, 0.30);
    padding: 12px 15px 12px 15px;
    transition: 0.3s ease-out;
}

.button-transition:hover {
    padding: 12px 20px 12px 20px;
}

.main-button {
    border-radius: 16px;
    background-color: #181717;
    color: var(--soft-light, #EBEBED);
    padding: 12px 15px;
    transition: 0.3s ease-out;
}

.right-nav {
    display: flex;
    gap: 8px;
}

.linkedin-icone {
    padding: 13px 16px 14px 16px;
    border-radius: 16px;
    background: var(--light-blue, #86DEFC);
    transition: 0.3s ease-out;
}

.linkedin-icone:hover {
    padding: 13px 20px 14px 20px;
    transition: 0.3s ease-out;
}

.back-mobile {
    display: none;
}



/* Toogle Dark Mode */

/* Style pour masquer la case à cocher par défaut */
.toggle-checkbox {
    display: none;
}

/* Style pour le label contenant l'image */
.toggle-label {
    background-color: #FFD43B;
    height: 42px;
    display: inline-block;
    position: relative;
    cursor: pointer;
    border-radius: 50px;
    transition: 0.2s ease-out;
}

@media (min-width: 640px) {
    .toggle-label:hover {
        .toggle-img {
            margin: 6px 48px 6px 6px;
        }
    }

    .toggle-checkbox:checked+.toggle-label:hover {
        .toggle-img {
            margin: 6px 6px 6px 48px;
        }
    }

}


/* Style pour l'image du toggle */
.toggle-img {
    width: 30px;
    height: 30px;
    margin: 6px 40px 6px 6px;
    transition: 0.4s ease-out;
}


/* Style pour le bouton en mode activé */
.toggle-checkbox:checked+.toggle-label .toggle-img {
    width: 30px;
    height: 30px;
    margin: 6px 6px 6px 40px;
    transform: rotate(65deg);
    transition: 0.4s ease-out;
}


/* Toggle Dark Mode Mobile */

/* Style pour masquer la case à cocher par défaut */
.toggleMobile-checkbox {
    display: none;
}

/* Style pour le label contenant l'image */
.toggleMobile-label {
    background-color: #FFD43B;
    height: 42px;
    display: inline-block;
    position: relative;
    cursor: pointer;
    border-radius: 50px;
    transition: 0.4s ease-out;
}

/* Style pour l'image du toggle */
.toggleMobile-img {
    width: 30px;
    height: 30px;
    margin: 6px 44px 6px 6px;
    transition: 0.4s ease-out;
}

/* Style pour le bouton en mode activé */
/*.toggle-checkbox:hover + .toggle-label .toggle-img {
    width: 38px;
    height: 38px;
    margin: 2px 40px 2px 2px;
    transition: 0.2s ease-out;
}*/

/* Style pour le bouton en mode activé */
.toggleMobile-checkbox:checked+.toggleMobile-label .toggleMobile-img {
    width: 30px;
    height: 30px;
    margin: 6px 6px 6px 44px;
    transform: rotate(65deg);
    transition: 0.4s ease-out;
}

.hidden-div {
    display: none;
}



@media (max-width: 1024px) {
    .nav-anchor {
        display: none;
    }
}

@media (min-width: 641px) {
    .toggleMobile-label {
        display: none;
    }
}

@media (max-width: 640px) {
    .toggle-label {
        display: none;
    }

    .toggle-label-projet {
        display: block;
    }

    nav {
        padding: 16px 8px 16px 8px;
        margin: 0 auto;
    }
}


/* Responsive */

.page {
    width: 93vw;
    max-width: 1600px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .page {
        width: 92vw;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .back-mobile {
        display: block;
        margin: 12px;
    }

    .nav-projet {
        display: none;
    }
}


/* Header Home */

.hero-header {
    display: flex;
    padding: 72px 0px 72px 0px;
    align-items: flex-end;
    gap: 13%;
    width: 100%;
}

.bonjour {
    width: 45%;
    margin-bottom: 4px;
}

.intro {
    width: 29%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

@media (max-width: 1280px) {
    .intro {
        width: 33%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
}

.paragraphes {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    align-self: stretch;
}


@media (max-width: 1024px) {
    .hero-header {
        align-items: flex-start;
        gap: 7%;
    }

    .intro {
        width: 50%;
        max-width: 364px;
    }
}



@media (max-width: 768px) {
    .hero-header {
        display: flex;
        padding: 48px 0px 40px 0px;
        flex-direction: column;
        justify-content: flex-end;
        align-items: flex-start;
        gap: 48px;
    }

    .bonjour {
        width: 100%;
    }

    .intro {
        width: 92%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        padding-left: 16vw;
        max-width: 92%;
    }

    .title-switch {
        display: flex;
        align-items: center;
        gap: 16px;
    }


}

@media (max-width: 640px) {
    .title-bienvenue {
        width: 160px;
    }

    .bonjour {
        width: 100%;
        max-width: 100%;
    }
}


/* Réalisations */

#projects-grid {
    display: flex;
    width: 100%;
    padding: 80px 0px 88px 0px;
    align-items: flex-start;
    align-content: flex-start;
    gap: 104px 8%;
    flex-wrap: wrap;
}



.project {
    width: 28%;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.hidden-project {
    opacity: 0;
    transition: opacity 0.5s ease;
    display: none;
}

.hidden-project.visible {
    opacity: 1;
    /* Lorsqu'ils sont visibles, l'opacité est réglée sur 1 */
    display: block;
    /* Affichez les éléments */
    transition: opacity 0.5s ease;
}




.project:hover img {
    transform: scale(1.03);
}

/*.italic-title{
    transition: 0.2s ease-out;
}

.project:hover .italic-title{
    transform: skew(-10deg, 0deg);
}*/

.project-content {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.project-title {
    height: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.animation-container {
    width: 14px;
    margin-top: -4px;
}

.animation-container-projet {
    width: 14px;
    margin-top: 1px;
    float: right;
}


.project-arrow {
    display: inline;
    margin-left: 10px;
}

.project-img {
    border-radius: 24px;
    overflow: hidden;
    width: 100%;
    transition: 0.2s ease-out;
}

.description {
    padding-right: 5%;
}

@media (max-width: 1024px) {
    #projects-grid {
        display: flex;
        width: 100%;
        padding: 80px 0px 80px 0px;
        align-items: flex-start;
        align-content: flex-start;
        gap: 80px 3.5%;
        flex-wrap: wrap;
    }

    .project {
        width: 48.25%;
    }
}

@media (max-width: 640px) {
    #projects-grid {
        display: flex;
        width: 100%;
        padding-top: 40px;
        flex-direction: column;
        align-items: flex-start;
        gap: 72px;
    }

    .project-content {
        gap: 20px;
    }

    .project {
        width: 100%;
    }
}

.afficher-plus {
    width: 100%;
    display: none;
    justify-content: center;
}

.secondary-button-afficher-plus {
    border-radius: 16px;
    border: 1px solid rgba(24, 23, 23, 0.30);
    padding: 12px 20px 12px 20px;
    transition: 0.3s ease-out;
}

.button-transition-afficher-plus:hover {
    padding: 12px 24px 12px 24px;
}



/* À propos */

#about {
    display: flex;
    padding: 88px 0px 96px 0px;
    align-items: center;
    gap: 11.35%;
    width: 100%;
}

.about-title {
    width: 36.95%;
}

.absolut {
    margin-top: -100%;
    z-index: 10;
    width: 100%;
}

.texte-about {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    width: 40%;
}

.experience {
    display: flex;
    align-items: flex-start;
    gap: 7%;
}

.date-container {
    width: 8.5%;
}

.description-about {
    width: 78.2%;
}


@media (max-width: 1024px) {
    #about {
        display: flex;
        padding: 56px 0px 72px 0px;
        align-items: flex-start;
        gap: 64px;
    }

    .about-title {
        width: 48%;
    }

    .texte-about {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
        width: 52%;
    }

    .experience {
        display: flex;
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        align-self: stretch;
    }

    .description-about {
        width: 100%;
    }
}


@media (max-width: 640px) {
    #about {
        display: flex;
        padding: 56px 0px 72px 0px;
        flex-direction: column;
        align-items: flex-start;
        gap: 64px;
    }

    .about-title {
        width: 100%;
        margin-left: 0%;
    }

    .texte-about {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
        width: 100%;
    }

    .experience {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 8px;
        align-self: stretch;
    }

    .description-about {
        padding-left: 8vw;
        width: 100%;
    }
}


@media (max-width: 375px) {
    #about {
        display: flex;
        padding: 56px 0px 72px 0px;
        flex-direction: column;
        align-items: flex-start;
        gap: 64px;
    }

    .about-title {
        width: 100%;
        margin-left: 0%;
    }

    .texte-about {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
        width: 100%;
    }

    .experience {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        align-self: stretch;
    }

    .description-about {
        padding-left: 16vw;
        width: 100%;
    }
}



/* Contact */

.contact-bloc {
    background-color: var(--blue, #2E7CF6);
    display: flex;
    padding: 40px 40px 40px 48px;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    border-radius: 24px;
}

.contact-cta {
    display: flex;
    padding: 14px 20px 15px 20px;
    align-items: center;
    gap: 32px;
    border-radius: 16px;
    background: var(--soft-light, #EBEBED);
    transition: 0.3s ease-out;
}

.contact-button-transition:hover {
    padding: 14px 24px 15px 24px;
}

.animation-container-contact {
    padding-top: 1px;
    margin-top: 0px;
}

@media (max-width: 640px) {
    .contact-bloc {
        display: flex;
        width: 100%;
        padding: 40px 32px 40px 32px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 28px;
    }

    .contact-cta {
        align-self: stretch;
        justify-content: space-between;
    }
}


/* Footer */

.footer {
    display: flex;
    padding: 32px 0px 32px 0px;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
}

.legal {
    font-family: Manrope;
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
    line-height: 160%;
    /* 24px */
    letter-spacing: 0.5px;
}

.localisation {
    display: flex;
    align-items: center;
    gap: 8px;
}




/* PROJECTS PAGES */

/* Header */

.hero-header-project {
    display: flex;
    padding: 0px 0px 0px 0px;
    align-items: center;
    gap: 13%;
    width: 100%;
    margin-top: -14.02vw;
}

.left-header-project {
    width: 45%;
    display: flex;
    flex-direction: column;
}

.title-project {
    font-family: 'Manrope', 'Arial', sans-serif;
    font-size: 11vw;
    font-style: normal;
    font-weight: 400;
    line-height: 90%;
    letter-spacing: -0.5vw;
    text-transform: uppercase;
    height: 10.5vw;
}

.date-img-project {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    margin-top: -48px;
    z-index: -2;
}

.project-year {
    writing-mode: vertical-rl;
    transform: rotate(-180deg);
}

.header-project-visuel {
    border-radius: 1000px;
    width: 80%;
}

.intro-project {
    width: 33.5%;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
}

.paragraphe-intro-project {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
}

.secondary-button-visit {
    border-radius: 16px;
    border: 1px solid rgba(24, 23, 23, 0.30);
    padding: 14px 20px 14px 20px;
    transition: 0.3s ease-out;
    width: 100%;
}

.double-cta-projet {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
}


@media (max-width: 1024px) {
    .hero-header-project {
        gap: 7%;
        align-items: flex-start;
    }

    .intro-project {
        width: 50%;
        max-width: 364px;
        margin-top: 0px;
    }
}

@media (max-width: 768px) {

    .sticky {
        display: none;
    }

    .hero-header-project {
        flex-direction: column;
        gap: 48px;
        width: 100%;
        margin-top: 32px;
    }

    .left-header-project {
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .title-project {
        font-size: 22vw;
    }

    .date-img-project {
        align-items: flex-end;
        margin-top: -4vw;
    }

    .intro-project {
        width: 100%;
        max-width: 100%;
    }
}


/* Step 1 */

.step_1_project {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-top: 96px;
}

.img_step_1 {
    width: 48.2%;
    border-radius: 24px;
}


/* Step 2 */

.step_2_project {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: center;
    margin: 112px 0px;
    gap: 16%;
    z-index: 2;
}

.img_step_2 {
    width: 33.5%;
    border-radius: 24px;
}

.detail_project {
    width: 33.5%;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.detail_texte_project {
    display: flex;
    flex-direction: column;
    gap: 16px;
}


/* Step 3 */

.step_3_project {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 88px;
}

.img_step_3 {
    width: 39.6%;
    border-radius: 24px;
    margin-right: 8.6%;
}


/* Steps responsive */

@media (max-width: 1024px) {
    .step_2_project {
        width: 100%;
        display: flex;
        justify-content: flex-start;
        flex-direction: row;
        align-items: center;
        margin: 72px 0px;
        gap: 11.8%;
    }

    .img_step_2 {
        margin-left: 9%;
    }

    .detail_project {
        width: 50%;
        display: flex;
        flex-direction: column;
        max-width: 364px;
    }

    .step_3_project {
        margin-bottom: 48px;
    }

}

@media (max-width: 768px) {

    /*Step 1*/

    .step_1_project {
        width: 100%;
        margin-top: 96px;
    }

    .img_step_1 {
        width: 100%;
    }

    /*Step 2*/

    .step_2_project {
        width: 100%;
        display: flex;
        justify-content: flex-start;
        flex-direction: column;
        align-items: flex-start;
        gap: 48px;
        margin: 48px 0px;
    }

    .img_step_2 {
        width: 100%;
        margin-left: 0px;
    }

    .detail_project {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 32px;
        max-width: 100%;
    }

    /*Step 3*/
    .step_3_project {
        width: 100%;
        display: flex;
        justify-content: flex-end;
        margin-bottom: 48px;
    }

    .img_step_3 {
        width: 100%;
        margin-right: 0%;
    }

}



/* STICKY */


@media (min-width: 768px) {

    #container-project {
        position: relative;
        /* Nécessaire pour le positionnement relatif des sections */
    }

    .sticky {
        position: -webkit-sticky;
        position: sticky;
        width: 45%;
        margin-top: 2.77vw;
        top: 3.5vw;
        z-index: 1;
    }

    .sticky-2-lines {
        margin-bottom: 8vw;
    }

    .hero-2-lines {
        margin-top: -18vw;
    }

    .sticky-1-line {
        margin-bottom: 0vw;
    }

    .hero-1-line {
        margin-top: -10vw;
    }

    .title-hidden {
        opacity: 0%;
    }

}


/* Projects */


@media (max-width: 1024px) {
    .third_project {
        display: none;
    }
}

@media (max-width: 640px) {
    .second_project {
        display: none;
    }
}