@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

html{
    scroll-behavior: smooth;
}


* {
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3;
    -ms-transition: all 0.3;
    -o-transition: all 0.23;
    transition: all 0.3;
    scroll-behavior: smooth;
}

body{
    font-family: "Open Sans", serif;
    font-optical-sizing: auto;
    margin: 0;
    padding: 0;
    max-width: 100vw;
    max-height: 100vh;
    overflow-x: hidden;
    background-color: #f0f0f0;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: white;
}

.vibe{
    font-family: "Great Vibes", serif;
    font-weight: 400;
    font-style: normal;
}

/* ----------nav-bar---------- */

.logo-ctnr, #logo{
    width: 80px;
    height: 80px;
    z-index: 9999;
    margin-top: -2px;
}

#logo{
    filter: invert(1);
}

#logo.scrolled-nav {
    filter: invert(0);
}

#nav-bar {
    position: fixed;
    width: 100vw;
    height: 40px;
    z-index: 999;
    margin: 0px 0 0 0;
    display: flex;
    flex-direction: row;
    padding: 4px;
    padding-bottom: 62px;
    background-color: transparent;
  }
  
  * {
      box-sizing: border-box;
    }
    body {
      margin: 0;
      width: 100vw;
      box-sizing: border-box;
    }
    .nav {
      width: 100%;
      background-color: transparent;
      display: flex;
      align-items:center;
      justify-content:center;
      margin-top: 30px;
    }
  
  .nav-btn{
    display: none;
    top: 20px;
  }
  
    .nav > .nav-header {
      flex: 0.95;
    }
    .nav > .nav-header > .nav-title {
      font-size: 22px;
      color: white;
      margin: 0;
      padding: 0;
      width: auto;
    }
    .nav > .nav-list {
      display: flex;
      gap: 1rem;
    }
    .nav > .nav-list > li {
      list-style-type: none;
      margin-top: 20px;
    }
    .nav > .nav-list > li a {
      z-index: 999;
      text-decoration: none;
      cursor: pointer;
      color: white;
      padding: 1.5rem;
      font-size: 17px;
      white-space: nowrap ;
    }
    .nav > #nav-check {
        display: none;
    }
    @media (max-width: 1170px) {
      #logo.scrolled-nav {
        filter: invert(0);
      }
      #link.scrolled {
        background-color: #f0f0f0;
      }
      .nav {
        padding: 1rem;
      }
      .nav > .nav-btn {
        display: inline-block;
        position: absolute;
        right: 3.2%;
        z-index: 999;
      }
      .nav > .nav-btn > label {
        display: inline-block;
        width: 50px;
        height: 50px;
    }
.nav > .nav-btn > label > span {
    display: block;
    width: 45px;
    height: 15px;
    border-top: 4px solid white;
    }


    
.scrolled-btn label span.nav-btn-elmnt{
    border-top: 4px solid black;
    color: black;
}




.nav > .nav-list {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    height: 0;
    transition: all 0.3s ease-in;
    top: -40px;
    left: 0;
    overflow: hidden;
    background-color: black;
    padding-left:25px;
    padding-top: 100px;
    }
    .nav > .nav-list > li {
    width: 100%;
    margin-top: 1.5rem;
    
    }
    .nav > #nav-check:checked ~ .nav-list {
        height: calc(100vh);
      }

    }

  .nav-list li i {
      color: white;
      font-size: 30px;
  }
  
.underline-btn {
    padding: 1em 0;
    border-radius: 0;
    position: relative;
}
.underline-btn:before, .underline-btn:after {
    content: '';
    display: block;
    position: absolute;
    height: 4px;
    width: 0;
}
.underline-btn:before {
    transition: width 0s ease, background 0.4s ease;
    left: 0;
    right: 0;
    top: 62px;
}
.underline-btn:after {
    right: 2.2%;
    top: 62px;
    background: white;
    transition: width 0.4s ease;
}
.underline-btn:hover:before {
    width: 97.8%;
    background: white;
    transition: width 0.4s ease;
}

.underline-btn:hover:after {
    width: 97.8%;
    background: 0 0;
    transition: all 0s ease;
}


.cta{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    background-color: white;
    border: none;
    color: #FFFFFF;
    font-size: 17px;
    width: 130px;
    transition: all 0.5s;
    cursor: pointer;
    margin: 5px;
    width: 155px;
    height: 50px;
    margin-top: -15px;
}

.cta span {
    cursor: pointer;
    display: inline-block;
    position: relative;
    transition: 0.5s;
    color: black;
}

.cta span:after {
    content: ' ➞';
    position: absolute;
    opacity: 0;
    top: 0;
    right: -15px;
    transition: 0.5s;
}

.cta:hover span {
    padding-right: 15px;
}

.cta:hover span:after {
    opacity: 1;
    right: 0;
}

#nav-bar.scrolled {
    background-color: #f0f0f0; /* Couleur bleue */
}

#link.scrolled li a{
    color: black;
}

#link.scrolled li a:before{
    background: black;
    transition: width 0.4s ease;
}

#link.scrolled li a:after{
    background-color: black;
    transition: width 0.4s ease;
}

#link.scrolled li .cta{
    background-color: black;
}

#link.scrolled li a span{
    color: white;
}

/* ----------section-1---------- */

#section-1{
    position: relative;
    top: 0px;
    max-width: 100vw;
    max-height: 100vh;
    width: 100vw;
    height: 100vh;
    background-image: url('../img/main.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;


}

video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    z-index: -1; 
  }

h1{
    font-size: 70px;
    margin: 0;
    padding: 0;
}

h2{
    margin: 0;
    padding: 0;
    font-size: 20px;
    font-weight: 400;
}

#section-1 .title{
    max-width: 90vw;
    text-align: center;
}

#section-1 .subtitle{
    max-width: 80%;
    text-align: center;
}

.btn-title{
    color: rgb(0, 0, 0);
    background-color: rgb(255, 255, 255);
    border: 1px solid rgb(255, 255, 255);
    border-radius: 20px;
    font-size: 20px;
    text-decoration: none;
    padding: 10px 20px ;
    margin-top: 20px;
}

.btn-title:hover{
    color: white;
    background-color: rgba(255, 255, 255, 0);
    cursor: pointer;
}






/* ----------section-2---------- */

#section-2{
    position: relative;
    max-width: 100vw;
    width: 100vw;
    height: auto;
    margin: 100px 0;
    display: flex;
    flex-direction: row;
    justify-content:space-evenly;
    align-items: center;
    background-color: #f0f0f0;
    flex-wrap: wrap;
    overflow: hidden;
}

.s2-left{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 500px;
    padding: 20px;
}

.s2-right{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.img-ctnr{
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 500px;
    height: 600px;
    border-radius: 20px;
}

.s2-right img{
    position: absolute;
    width: auto;
    height: 100%;

}

.btn{
    color: rgb(0, 0, 0);
    background-color: #f0f0f0;
    border: 1px solid rgb(0, 0, 0);
    border-radius: 20px;
    font-size: 20px;
    text-decoration: none;
    padding: 10px 20px ;
    margin-top: 20px;
}

.btn:hover{
    color: white;
    background-color: black;
    border: 1px solid rgb(0, 0, 0);
    cursor: pointer;
    
}

#section-2 h1{
    font-size: 58px;
    margin: 0;
    padding: 0;
    font-weight: 600;
}

#section-2 h2{
    margin: 10px 0 0 0;
    padding: 0;
    font-size: 18px;
    font-weight: 400;
    color: rgb(32, 32, 32);
}

@media (max-width: 600px) {
    .img-ctnr{
        max-width: 90%;
        width: 90%;
    }
}


/* ----------section-3---------- */

#section-3{
    position: relative;
    max-width: 100vw;
    width: 100vw;
    height: auto;
    margin: 100px 0;
    display: flex;
    flex-direction: row-reverse;
    justify-content:space-evenly;
    align-items: center;
    background-color: #f0f0f0;
    flex-wrap: wrap;
    overflow: hidden;

}

.s3-left{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 500px;
    padding: 20px;
}

.s3-right{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.img-double{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    overflow: hidden;
}

.img-ctnr{
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 500px;
    height: 600px;
    border-radius: 20px;
    z-index: 9;
}

.img-ctnr-2{
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 350px;
    height: 400px;
    border-radius: 20px;
    z-index: 99;
    left: -100px;
}

.s3-right img{
    position: absolute;
    width: auto;
    height: 100%;

}

.btn{
    color: rgb(0, 0, 0);
    background-color: #f0f0f0;
    border: 1px solid rgb(0, 0, 0);
    border-radius: 20px;
    font-size: 20px;
    text-decoration: none;
    padding: 10px 20px ;
    margin-top: 20px;
}

.btn:hover{
    color: white;
    background-color: black;
    border: 1px solid rgb(0, 0, 0);
    cursor: pointer;
    
}

#section-3 h1{
    font-size: 58px;
    margin: 0;
    padding: 0;
    font-weight: 600;
}

#section-3 h2{
    margin: 10px 0 0 0;
    padding: 0;
    font-size: 18px;
    font-weight: 400;
    color: rgb(32, 32, 32);
}
@media (max-width: 1100px) {
    .img-double{
        max-width: 100%;
    }
}


/* ----------section-4---------- */

#section-4{
    position: relative;
    max-width: 100vw;
    width: 100vw;
    height: auto;
    margin: 100px 0;
    display: flex;
    flex-direction: column;
    justify-content:center;
    align-items: center;
    background-color: #f0f0f0;
}

.container-s4{
    display: flex;
    flex-direction: row;
    justify-content:center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 50px;
}

.activite {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    margin: 10px;
    width: 400px;
    height: 400px;
    border-radius: 20px;
    background-color: white;
    overflow: hidden;
    -webkit-box-shadow: 0px 0px 50px 1px rgba(90, 90, 90,0.1); 
    box-shadow: 0px 0px 50px 1px rgba(90, 90, 90, 0.1);
    transition: all 0.4s;
}

@media (min-width: 1650px) {
    .container-s4{
        width: 80%;
    }
}

@media (max-width: 400px) {
    .activite{
        max-width: 90%;
        width: 90%;
    }
}

.topcard{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.topcard h1{
    font-size: 30px;
    margin: 0;
    padding: 0;
    font-weight: 600;
}

.topcard h2{
    margin: 10px 0 0 0;
    padding: 0;
    font-size: 18px;
    font-weight: 400;
    color: rgb(32, 32, 32);
}

.bottomcard{
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 400px;
    margin-bottom: -100px;
}

.bottomcard img{
    position: absolute;
    width: auto;
    height: 400px;
    filter: saturate(1.4);
}
.activite:hover{
    -webkit-box-shadow: 0px 0px 50px 1px rgba(90, 90, 90,0.2); 
    box-shadow: 0px 0px 50px 1px rgba(90, 90, 90, 0.2);
    cursor: pointer;
}

.activite:hover .bottomcard{
    transform: translateY(-90px);
}


h1.title-section{
    font-size: 44px;
    margin: 0;
    padding: 0;
    font-weight: 600;
}

h2.subtitle-section{
    width: 50%;
    margin: 10px 0 0 0;
    padding: 0;
    font-size: 18px;
    font-weight: 400;
    color: rgb(32, 32, 32);
    text-align: center;
}


/* ----------section-5---------- */

#section-5{
    position: relative;
    max-width: 100vw;
    width: 100vw;
    height: auto;
    margin-top: 200px;
    display: flex;
    flex-direction: column;
    justify-content:center;
    align-items: center;
    background-color: #f0f0f0;
    margin: 100px 0;

}

.container-s5{
    display: flex;
    flex-direction: row;
    justify-content:center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 50px;
    width: 95%;
    margin-bottom: 100px;
}

.container-s5 .img-ctnr{
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 500px;
    height: 500px;
    margin: 6px;
    border-radius: 20px;
}

.container-s5 .img-ctnr img{
    position: absolute;
    width: auto;
    height: 100%;

}

@media (min-width: 1465px) {
    .container-s5{
        width: 70%;
    }
}
@media (min-width: 1078px) {
    .container-s5 .img-ctnr:nth-child(even){
        transform: translateY(100px);
    }
}
/* ----------footer---------- */

footer{
    background-color: black;
    color: white;
    width: 100vw;
    height: auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    margin: 100px 0;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    footer{
        flex-direction: column;
    }
}
