*{
    margin : 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto Slab', serif;
}

body{
    align-items: center;
}

li{
    list-style : none;
}

a{
    text-decoration: none;
    font-size: 1rem;
}

.navbar a{
    color: #fff;
    font-weight : 600;
}

header{
    position: relative;
    padding: 0 2rem;
    background: #154c79;
}

.logo{
    height: 40px;
    width: auto;
}

/* Bar de navigation */
header {
    width: 100%;
    min-height: 66px;
    background: #154c79;
    padding: 0 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
  
.logo-container {
    flex: 1;
    display: flex;
    justify-content: center;
}
  
.back-button i, .toggle-button i{
    color: white;
}

header a {
    font-family: 'Roboto Slab', serif;
}
  
header ul {
    position: relative;
}
  
header ul li {
    list-style: none;
    position: relative;
    float: left;
}
  
header ul li a {
    color: white;
    font-weight: bold;
    font-size: 1.1em;
    padding: 20px 25px;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
}
  
header ul li a:hover {
    background: #5a8abb;
}
  
header ul li ul {
    position: absolute;
    left: 0;
    top: 100%;
    width: 270px;
    background: black;
    display: none;
}
  
header ul li:hover > ul {
    display: block;
}
  
header ul li ul li {
    position: relative;
    width: 100%;
    border: none; 
}
  
header ul li ul li ul {
    top: 0;
    left: 100%;
    display: none;
}
  
header ul li ul li:hover > ul {
    display: block;
}
  
/* Tutoriels */
.container {
    display: flex;
    justify-content: center; 
    align-items: center; 
}

p{
    font-family: 'Dancing Script', cursive;
    margin : 25px;
    margin-bottom: 10px;
    font-size : 2.5em;
    color: #154c79;
    font-weight: 560;
}

/* Boutons */
.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

button {
    position: relative;
    border: none;
    cursor: pointer;
    overflow: hidden;
    width: 18rem; 
    height: 9rem; 
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    margin: 25px;
}

.overlay {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    height: 50%;
    background-color: rgba(0, 0, 0, 0.5); 
    display: flex;
    justify-content: center;
    align-items: center;
}


.overlay text {
    color: white; /* Couleur du texte */
    font-size: 1.2rem; /* Taille du texte */
    font-weight: bold; /* Gras */
}


@media(max-width: 1700px){
    .navbar .links{
        display: none;
    }

    .navbar .toggle-button{
        display: block;
    }

    .dropdown-menu{
        display: block;
    }

    header {
        padding: 10px 20px;
      }
  
      header nav {
        position: absolute;
        width: 100%;
        top: 66px;
        left: 0;
        background: #e6ebf0;
        display: none;
      }
  
      header.open nav {
          display: initial;
          z-index: 1;
        }
  
      header nav ul {
        display: flex;
        flex-direction: column;
      }
  
      header nav ul li {
        width: 100%;
      }
  
      header nav ul li ul {
        position: relative;
        width: 100%;
        left: 15px;
        top: 0;
      }
      
      header nav ul li ul li ul {
        position: relative;
        top: 0;
        left: 30px;
      }
  
      header nav ul li:hover ul li {
        background: #e6ebf0;
      }
  
      header ul li a {
          color: black;
      }
}

@media(max-width: 800px){
    .dropdown-menu{
        left: 2rem;
        width: unset;
    }

    text{
        font-size: 1.05em;
    }

    p{
        font-size: 2.25em;
    }

}

@media(max-width: 576px){
    text{
        font-size: 1.25em;
    }

    p{
        font-size: 3.25em;
    }

}

@media(max-width: 480px){
    text{
        font-size: 0.95em;
    }

    p{
        font-size: 2.95em;
    }

}

@media(max-width: 390px){
    text{
        font-size: 0.75em;
    }

    p{
        font-size: 2.75em;
    }
}
