*{
    margin: 0;
    padding: 0;
    max-width: 100%;
    list-style: none;
    text-decoration: none;
    box-sizing: border-box;
}

*,
::before,
::after{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html{
    scroll-behavior: smooth;
}

body{
    background: #F5EFE6;
    color: #212121;
    font-family: "obviously", sans-serif;
    font-weight: 500;
    font-size: 1em;
    position: relative;
}

html, body{
    height: 100%;
}

header{
    width: 100%;
    height: 240px;
    background: #F5EFE6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 50px;
    font-family: "obviously", sans-serif;
    font-weight: 500;
}

/* MENU */

.hamburger{
    display: none;
}

.nav-bar ul{
    display: flex;
    background-color: #F5EFE6;
}

.nav-bar ul li a{
    display: block;
    color: #212121;
    font-family: "obviously", sans-serif;
    font-size: 1em;
    font-weight: 700;
    padding: 10px 25px;
    border-radius: 50px;
    transition: 0.2s;
    margin: 0 5px;
    
}

.nav-bar ul li a:hover{
    color: #F5EFE6;
    background: #212121;
}

.nav-bar ul li a.active{
    color: #F5EFE6;
    background: #212121;
}

@media only screen and (max-width: 1320px){
    header{
        padding: 0 50px;
    }
}

@media only screen and (max-width: 1100){
    header{
        padding: 0 30px;
    }
}

@media only screen and (max-width: 900px){
    .hamburger{
        display: block;
        cursor: pointer;
        z-index: 30;
    }
    .hamburger .line{
        width: 30px;
        height: 3px;
        background: #212121;
        margin: 6px 0;
    }
    .nav-bar{
        height: 0;
        position: absolute;
        top: 200px;
        left: 0;
        right: 0;
        width: 100vw;
        background-color: #F5EFE6;
        transition: 0.2s;
        overflow: hidden;
    }

    .nav-bar.active{
        height: 400px;
        background-color: #F5EFE6;
        top: 0;
        z-index: 15;
    }

    .nav-bar ul{
        display: block;
        width: fit-content;
        margin: 80px auto 0 auto;
        text-align: center;
        transition: 0.5s;
        opacity: 0;
        background-color: #F5EFE6;
    }
    
    .nav-bar.active ul{
        opacity: 1;
        z-index: 20;
        background-color: #F5EFE6;
    }
    .nav-bar ul li a{
        margin-bottom: 12px;
        z-index: 20;
    }
}

/* FOOTER */

footer{
    background-color: #0C6837;
    border-top: 1px solid #F5EFE6;
    width: 100%;
    font-size: 1em;
    font-weight: 400;
}

.footer_inside{
    padding: 50px 0;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    text-align: center;
    color: #F5EFE6;
}

.footer_inside p{
    font-weight: 400;
    font-size: 15px;
}

.footer_logo{
    max-width: 20vh;
}

.footer_inside ul{
    display: flex;
    justify-content: space-evenly;
}

.footer_inside ul img{
    width: 45px;
    margin: 2em auto;
}

.mentions{
    width: 50%;
    margin: 0 auto;
    padding: 1em;
    margin-bottom: 1em;
    text-align: center;
    color: #F5EFE6;
}

.mentions a{
    text-decoration: none;
    color: #F5EFE6;
}

.mentions a:hover{
    color: #1390D0;
}

@media screen and (max-width: 620px) {
    .footer_inside{
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }
    .footer_inside > div{
        margin-bottom: 30px;
    }

    .mentions{
        width: 90%;
    }

    .footer_logo{
        max-width: 20vh;
        margin-top: 20px;
    }
}

/* PERSONNALISATION FONTS BUTTONS LIENS */

h1{
    font-family: "obviously-wide", sans-serif;
    font-weight: 800;
    font-size: clamp(30px, 2vw, 3vw);
}

h2{
    font-family: "obviously", sans-serif;
    font-weight: 600;
    font-size: clamp(30px, 3vw);
}

h3{
    font-family: "obviously", sans-serif;
    font-weight: 500;
    font-size: 20px;
}

h4{
    font-family: "obviously-wide", sans-serif;
    font-weight: 600;
    font-size: 16px;
}

p{
    font-family: "obviously", sans-serif;
    font-weight: 400;
    font-size: 14px;
}

a{
    text-decoration: none;
    color: #0C6837;
    font-family: "obviously", sans-serif;
}

.gif{
    background-color: #035B35;
    padding: 0;
}

marquee{
    font-family: "obviously-wide", sans-serif;
    font-weight: 800;
    font-size: 35px;
    background-color: #1390D0;
    color: #F5EFE6;
}

.highlight{
    color: #0C6837;
    background-color: #F5EFE6;
    border-radius: 24px;
    padding: 0 6px 2px 6px;
}

em{
    color: #1390D0;
}

button{
    border: 1px solid #212121;
    background-color: #212121;
    border-radius: 24px;
    font-size: 16px;
    font-family: obviously, sans-serif;
    font-weight: 600;
    color: #F5EFE6;
    margin: 10px;
    padding: 0 10px 5px 10px;
  }

  button:hover{
    border: 1px solid #212121;
    background-color: #F5EFE6;
  }

  button a, a:visited{
    color: #F5EFE6
  }

  button a:hover{
    color: #212121;
  }

/* PARALLAX */

.container{
    background-image: linear-gradient(
        to bottom,
        #F5EFE6 50%,
        #0C6837 50%
    );
}

.container::after{
    content: "";
    display: block;
    min-height: 100vh;
}

.content{
    min-height: 100vh;
    position: sticky;
    top: 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding-bottom: 50px;
    mix-blend-mode: initial;
}

.content h1{
    color: #0C6837;
    -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: #F5EFE6;
    font-family: "obviously-wide";
    font-weight: 900;
    font-size: clamp(25px, 5vw, 90px);
    text-align: center;
}

.content h2{
    color: #0C6837;
    -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: #F5EFE6;
  font-size: clamp(16px, 2vw, 40px);
  text-align: center;
}

@media only screen and (max-width: 900px){
    .container::after{
        min-height: 100vh;
    }
    .content{
        top: 30vh;
        min-height: 100vh;
    }
    .content h1{
        stroke: 0.5px;
    }
    .content h2{
        stroke: 0.1px;
        margin: 0 20px;
    }
}

.portfolio{
    background-color: #F5EFE6;
    margin: 10em auto;
}

.skills{
    background-color: #F5EFE6;
    color: #212121;
    display: flex;
    flex-direction: column;
}

.a_propos{
    background-color: #F5EFE6;
    color: #212121;
    display: flex;
    justify-content: center;
    align-items: center;
    scroll-snap-align: start;
}

.contact, .mission{
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    scroll-snap-align: start;
}

.contact{
    background-color: #F5EFE6;
    flex-direction: column;
    padding: 0 15px;
}

.mission .slide1{
    color: #0C6837;
}

/* GRID - FLEX */

.containerx2{
    max-width: 100%;
    justify-content: center;
}

.card_apropos{
    display: flex;
}

.card_image{
    flex: 1;
    align-items: center;
    text-align: center;
    padding : 3rem;
}

.card_image img{
    max-height: 80vh;
    object-fit: cover;
    justify-content: center;
    align-items: center;
}

.card_gif{
    flex: 1;
    align-items: end;
    place-content: end;
}
.card_gif gif{
    max-height: 60vh;
    object-fit: cover;
}

.card_video{
    flex: 1;
    align-items: center;
    padding: 1rem;
}


.card_body{
    flex: 2;
    padding: 0 5rem;
    align-self: center;
}

.card_body p{
    margin-bottom: 1.5rem;
}

@media screen and (max-width: 850px) {
    .card_apropos{
        flex-direction: column;
    }

    .card_image img{
        max-width: 60%;
        display: block;
        margin: auto;
    }
    .card_body{
        padding: 30px;
    }
    .card_body p{
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 600px) {
    .card_apropos{
        flex-direction: column;
    }
    .card_image{
        margin-top: 30px;
        padding: 0;
    }
    .card_image img{
        width: 100%;
        justify-content: center;
        align-items: center;
    }
    .card_body{
        padding: 20px;
        font-size: 15px;
    }
    .card_body h2{
        font-size: 16px;
    }
    .card_body p{
        margin-bottom: 10px;
    }
    .card_body button{
        margin: 0;
    }
}

.green{
    background-color: #035B35;
    color: #F5EFE6;
}


/* GALERIE PROJETS RECENTS */

.gallery{
    max-width: 100%;
    padding: 0 10vw 5vw 10vw;
    border-radius: 50px 50px 0 0;
    margin: 5vw 5vw 0 5vw;
}

.gallery-wrapper{
    display: flex;
}

.gallery-item{
    position: relative;
    isolation: isolate;
    display: flex;
    flex: 1;
    height: 500px;
    background-color: #F5EFE6;

    opacity: 1;
    overflow: hidden;
    transition: flex 0.5s, opacity 0.25s;
}

.gallery-item:hover{
    opacity: 1;
    flex: 5;
}

.gallery-item:not(:hover){
    opacity: 0.85;
}

.item-image{
    position: absolute;
    top: 0;
    right: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-description{
    align-self: flex-end;
    text-transform: uppercase;
    color: #0C6837;
}

.name{
    font-size: 32px;
    font-family: "obviously-wide", sans-serif;
    font-weight: 800;
    background: #F5EFE6;
    color: #0C6837;
    padding-inline: 10px;
    transform: translateY(-10px);
    padding-top: 4px;
}

.role{
    display: inline-block;
    background: #F5EFE6;
    padding: 10px;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(10px);
}

.name, .role{
    opacity: 0;
    transition: opacity 0.25s, transform 0.3s;
    transition-delay: .35s;
}

.gallery-item:hover .name, .gallery-item:hover .role{
    opacity: 1;
    transform: translateY(0);
}

.gallery-item:not(:hover) .name, .gallery-item:not(:hover) .role{
    transition-delay: 0s;
}

@media screen and (max-width:768px) {

    .gallery{
        margin: 5vw 0 0 0;
    }

    .gallery-wrapper{
        flex-direction: column;
        height: 80vh;
    }
    .gallery-item:hover{
        flex-basis: 50%;
    }
    .cards{
        justify-content: center;
        align-items: center;
    }
}

/* CARDS CONTAINER SKILLS */

.blue{
    background-color: #1390D0;
    color: #F5EFE6;
}

.wrapper-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(20rem, 35rem));
    justify-content: center;
    grid-gap: 2rem;
    padding: 100px 0;
}

.skills-container{
    border: #212121 1px solid;
    border-radius: 1rem;
    padding: 1.5rem;
    font-size: 16px;
    font-weight: 400;
    line-height: 25px;
    color: #212121;
    position: relative;
    margin: 0.5rem;
    background-color: #F5EFE6;
}

.skills-container img{
    max-height: 150px;
}


  /* PAGE A PROPOS */

  .contact_me{
    display: flex;
    flex-direction: column;
    min-height: 80vh;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 15px;
  }

  /* TIMELINE */
  
  /* Timeline container */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

/* Timeline line */
.timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #1390D0;
    top: 0;
    bottom: 0;
    left: 50%;
    border-radius: 8px;
    transform: translateX(-50%);
    z-index: 1;
}

/* Each timeline event */
.timeline-event {
    position: relative;
    width: 50%;
    padding: 20px;
    box-sizing: border-box;
}

/* Event content */
.timeline-content {
    background-color: white;
    border-radius: 24px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}
.timeline-content p{
    font-size: 14px;
}

/* Left side events */
.timeline-event.left {
    left: 0;
    text-align: right;
}

.timeline-event.left .timeline-content {
    margin-right: 20px;
}

/* Right side events */
.timeline-event.right {
    left: 50%;
}

.timeline-event.right .timeline-content {
    margin-left: 20px;
}

/* Small circle for each event */
.timeline-event::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #1390D0;
    border-radius: 50%;
    top: 15px;
    z-index: 2;
}

/* Positioning circles on both sides */
.timeline-event.left::before {
    right: -10px;
}

.timeline-event.right::before {
    left: -10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .timeline-event {
        width: 100%;
        padding-left: 50px;
        padding-right: 50px;
    }

    .timeline-event.left, .timeline-event.right {
        left: 0;
        text-align: left;
    }

    .timeline-event.left .timeline-content, 
    .timeline-event.right .timeline-content {
        margin: 0;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-event::before {
        left: 10px;
    }

    .timeline-event.right::before{
        left: 10px;
    }
}

  
  /* GRID PORTFOLIO */

.modal{
    display: none;
    position:fixed;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal.show{
    display: initial;
}
.modal-content{
    width: 90%;
    margin: auto;
    max-width: 1100px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modal-content img{
    width: 100%;  
}

.close{
    color: #E5E3E2;
    font-size: 2em;
    position: fixed;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

.img-projet{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
}

.img-area{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    margin-bottom: 10vw;
}

.wrapper{
    max-width: 45%;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(1fr));
    grid-auto-rows: auto;
    grid-auto-flow: dense;
    width: 100%;
}

.single-box a{
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.single-box img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s;
    user-select: none;
    opacity: 1;
	-webkit-transition: .3s ease-in-out;
	transition: .3s ease-in-out;
}

.single-box a:hover{
    opacity: .5;
}

.video_portfolio{
    max-width: 1200px;
    width: 100%;
}

@media screen and (max-width: 1000px){
    .wrapper{
        max-width: 60%;
    }
}

@media screen and (max-width: 768px){
    .img-area{
        padding: 0;
    }

    .img-projet{
        padding: 0;
    }

    .wrapper{
        max-width: 80%;
        padding: 0;
        grid-gap: 0;
    }
    
    .wrapper p, h3, li{
        padding: 0 15px;
    }
    
    .single-box{
        max-width: 100%;
        height: 100%;
    }
}

@media screen and (max-width: 500px){
    .wrapper{
        max-width: 100%;
    }    
}

#scroll_to_top {
    position: fixed;
    width: 30px;
    height: 30px;
    bottom: 50px;
    right: 30px;
  }
  #scroll_to_top img {
    width: 30px;
  }

/* PAGES PROJETS */

.titre_projet{
    background-color: #212121;
    color: #F5EFE6;
    text-align: center;
    justify-content: center;
    align-items: center;
    font-size: clamp(30px, 3vw, 4vw)
}

.box{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 1rem;
  }

/* PAGE MENTIONS LEGALES */

.mentions_legales{
    margin: 0 10vh;
}

.mentions_legales hr{
    border-color: #212121;
    padding: 0;
}
@media screen and (max-width: 750px) {
    .mentions_legales{
        margin: 0 5vh;
    }   
}

/* PAGE SERVICES */
/* ACCORDEON */

.container_accordion{
    max-width: 70em;
    position: relative;
    margin: 10em auto;
}
.titre_accordion{
    background-color: #212121;
    border-radius: 24px 24px 0 0;
    color: #F5EFE6;
    text-align: center;
    justify-content: center;
    align-items: center;
    font-size: clamp(30px, 3vw, 4vw)
    }

label{
    display: block;
    overflow: hidden;
}

.title{
    padding: 1em 1em;
    position: relative;
    z-index: 599;
    background-color: #F5EFE6;
    border-bottom: 1px solid #212121; 
}

.accordion-content{
    position: relative;
    padding: 0;
    max-height: 0px;
    border-bottom: 1px solid #212121;
    transition: .3s linear;
}

.accordion-content h4{
    padding: 0 1em;
}

.accordion-content p{
    position: relative;
    padding: 0 1em;
    margin: 0;
    transform: scale(0);
    opacity: 0;
    transition: all .55s ease;
}

input[type="checkbox"] {
    display: none;
}
input[type="checkbox"]:checked + .title{
    background-color: #F5EFE6;
}
input[type="checkbox"]:checked + .title + .accordion-content {
    max-height: 555px;
}
input[type="checkbox"]:checked + .title + .accordion-content p {
    transform: scale(1);
    opacity: 1;
}

  .avis{
    background-color: #0C6837;
    color: #F5EFE6;
    border-radius: 24px;
    max-width: 70em;
    margin: 0 auto;
    padding: 6vw;
  }
  .avis h1{
    text-align: center;
  }
  .avis p{
    font-style: italic;
  }

  /* CTA */
  .cta{
    border: 1px solid #212121;
    border-radius: 24px;
    max-width: 70em;
    margin: 30px auto;
    padding: 2vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    scroll-snap-align: start;
  }

  .cta h2{
    text-align: center;
  }
  .cta img{
    justify-content: center;
    max-width: 70vh;
  }

  @media screen and (max-width: 750px) {
    .cta{
        margin: 0 5vh;
    }   
}