*{
    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;
}

.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: 30px;
    font-size : 2.5em;
    color: #154c79;
    font-weight: 560;
}

/* Styles pour les vidéos */
#videoContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto; 
}

.video-container {
    display: flex;
    width: 90%;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    padding-bottom: 25px;
    background-color: #154c79;
    margin-bottom: 30px; 
    border-radius: 10px; 
}

.video-title {
    color: white; 
    margin-bottom: 10px; 
}


@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.95em;
    }

    p{
        font-size: 2.75em;
    }

    .video-container{
        height: auto;
    }

}

@media(max-width: 576px){
    text{
        font-size: 1.85em;
    }

    p{
        font-size: 3.25em;
    }

    .video-container{
        height: 290px;
    }

}

@media(max-width: 480px){
    text{
        font-size: 1.55em;
    }

    p{
        font-size: 2.95em;
    }

    .video-container{
        height: 270px;
    }
}

@media(max-width: 390px){
    text{
        font-size: 1.35em;
    }

    p{
        font-size: 2.75em;
    }

    .video-container{
        height: 250px;
    }
}