*{
    box-sizing: border-box;
      margin: 0;
      padding: 0;
}

body {
    font-family: "Roboto Condensed", sans-serif;;
    margin: 0;
    padding: 0;
    text-align: center;
}

header {
    background-color: rgb(29, 48, 101);
    color: white;
    padding: 10px;
    position: fixed;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    z-index: 1000;
}

header img {
    height: 70px;
}

.burger {
    display: none;
  }
  

  nav{
    align-content: center;
    margin-right: 20px;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-self: center;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
}


section {
    padding: 50px 20px;
}

footer {
    background-color: #333;
    color: white;
    padding: 10px;
}

#accueil{
    width: 100%;
    height: 100vh;
    align-items: center;
    justify-content: center;
    color: aliceblue;
    font-optical-sizing: auto;
    font-size: 2em;
    font-style: italic;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.slides {
    display: flex;
    width: 100%;
    height: 100vh;
    transition: transform 0.5s ease-in-out;
  }

  .slide {
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
  }

  .slide-1 { background-image: url(./images/slide1.jpg); }
  .slide-2 { background-image: url(./images/slide2.jpeg); }
  .slide-3 { background-image: url(./images/slide3.jpeg); }
  .slide-4 { background-image: url(./images/slide5.jpg); }

  .nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 10px 20px;
    cursor: pointer;
    z-index: 2;
  }

  .nav-button:hover {
    background: rgba(0,0,0,0.7);
  }

  .prev {
    left: 20px;
  }

  .next {
    right: 20px;
  }
#apropos {
    justify-items: center;
    justify-content: center;
    align-items: center;
}

#apropos h1{
    width: 50%;
    padding-top: 50px;
    padding-bottom: 10px ;
    font-size: 3em;
    color: rgb(29, 48, 101);
}

#apropos p {
    width: 50%;
    color: rgb(29, 48, 101);
}


.img1{
    
    height: 500px;
}


.slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 16px;
    cursor: pointer;
    border: none;
}

.prev {
    left: 0;
}

.next {
    right: 0;
}

#contact h1{
    font-size: 2.5em;
}

#contact {
    padding-top: 100px;
    background-color: rgb(29, 48, 101);
    color: aliceblue;
    display: flex;
    flex-direction: column;
}

#mesure {
    width: 100%;
    height: 100vh;
}

#mesure button{
    margin-top: 30px;
    color:white ;
    background-color:rgb(29, 48, 101) ;
}
#mesure button:hover {
    color:rgb(29, 48, 101)  ;
    background-color:rgb(255, 234, 0);
}

button {
background-color: white;
 color: rgb(29, 48, 101);
  padding: 10px 20px;
   border: none;
    border-radius: 4px; 
    cursor: pointer; 
    font-weight: bold;
}

button:hover {
    background-color: rgb(255, 234, 0);
    color: white;
    transition: all 0.3s ease;
}

.titre-mesure {
    padding-top: 70px;
    color: rgb(29, 48, 101);
    font-size: 3em;
}

.sous-titre-mesure{
    color: rgb(29, 48, 101);
    padding-top: 30px;
}


/* Media Queries */

/* Pour les grands écrans (desktop) */
@media screen and (max-width: 768px) {
    header {
        flex-direction: row;
        align-items: center;
        padding: 5px;
    }

    header img {
        height: 50px;
        margin-bottom: 10px;
    }

    .burger {
        font-size: 2rem;
        background: none;
        border: none;
        color: white;
        cursor: pointer;
        display: block;
      }

      

      nav {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: rgb(29, 48, 101);
        display: none;
        flex-direction: column;
        align-items: center;
      }
      
      nav ul {
        list-style: none;
        flex-direction: column;
        padding: 0;
        margin: 0;
        width: 100%;
      }
      
      nav ul li {
        padding: 15px 0;
        flex-direction: column;
        width: 100%;
      }
      
      nav ul li a {
        color: white;
        text-decoration: none;
        display: block;
        width: 100%;
        text-align: center;
      }
      

    nav.active {
        display: flex;
      }

    

}

@media screen and (max-width: 480px) {
    header {
        padding: 3px;
    }

    header img {
        height: 40px;
        margin-bottom: 10px;
    }
    nav ul li a {
        font-size: 0.9em;
    }
}
@media screen and (min-width: 1200px) {
    .items {
        flex-direction: row;
        justify-content: space-around;
    }
}

/* Pour les tablettes */
@media screen and (min-width: 768px) and (max-width: 1199px) {
    .items {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Pour les mobiles */
@media screen and (max-width: 767px) {
    .items {
        flex-direction: column;
        align-items: center;
    }

    #apropos h1{
        width: 100%;
        padding-top: 50px;
        padding-bottom: 10px ;
        font-size: 3em;
        color: rgb(29, 48, 101);
    }
    
    #apropos p {
        width: 100%;
        color: rgb(29, 48, 101);
    }

}

