html {
    scroll-behavior: smooth;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header{
    position: fixed ;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 25px;
    background-color: black !important;
    box-shadow: inset 0px -1px 0px #13aae2;
    z-index: 1000;
}

.logo a img{
    /* font-family:'Lobster 1.4', sans-serif ; */
    width: 80px;
    height: auto;
    display: block;
    margin: 0 auto;
    
}



.button-toggler{
    display: none;
}

.nav a{
    margin: 0 10px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    color: white;
    display: inline-block;
    position: relative;
    font-family: 'OpenSans-Regular', serif;
}


@font-face {
    font-family: 'OpenSans-Regular';
    src: url(police/OpenSans-Regular.ttf) format('truetype');
}
.nav a::after{
    content: "";
    display: block;
    position: absolute;
    bottom: -3px; 
    width: 100%;
    height: 2px;
    transform: scale(0);
    transform-origin: left;
    background-color: #13aae2;
    transition: transform .3s ease-out
}
.nav a:hover::after{
    transform: scale(1);
}

@media screen and (max-width: 800px){
     header{
        padding: 15px;
        position: relative;
        /* position: fixed; */
     }
     .logo{
        order: 2;
     }
     .navbar{
        order: 1;
     } 
     /* button toggler */

     .button-toggler{
        width: 20px;
        height:20px;
        cursor: pointer;
        border: none;
        display: flex;
        background-color: black;
        align-items: center;
        position: relative;
     }

        .button-toggler span{
            display: block;
            width: 100%;
            height: 2px;
            background-color: white;
            position: absolute;
            pointer-events: none;
            transition: opacity .3s .15s ease-out;
        }
        .button-toggler span:nth-child(1),
        .button-toggler span:nth-child(3){
           transition: transform .3s ease-out;
        }
        .button-toggler span:nth-child(1){
            transform: translateY(7px);
        }
        .button-toggler span:nth-child(3){
            transform: translateY(-7px);
        }
        .button-toggler.open span:nth-child(1){
            transform: translate(0) rotate(135deg);
        }
        .button-toggler.open span:nth-child(2){
            opacity: 0;
            transition: opacity 0s ease-out;
        }
        .button-toggler.open span:nth-child(3){
            transform: translate(0) rotate(-135deg);
        }


     .nav{
        display: flex;
        flex-direction: column;
        align-items: center;
        position: absolute;
        background: rgba(0, 0, 0, 0.5);
        top: 100%;
        left: 0;
        height: auto;
        border-radius: 5px;
        padding: 15px 50px 15px 20px;
        border-right: 1px solid #13aae2;
        border-bottom: 1px solid #13aae2;
        transform: translate(-100%);
     }
     .open{
        transform: translate(0%);
     }
     .nav a{
        font-size: 12px;
        margin: 10px 0;
     }

     .logo a img{
        width: 60px;
    }


}


@media screen and (max-width: 400px){

    .button-toggler{
        width: 15px;
        height:15px;

     }


}

  /* essai */
    
    /* Tablettes (481px - 768px) */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }   /* ~32px */
  h2 { font-size: 1.75rem; }/* ~28px */
  h3 { font-size: 1.5rem; } /* ~24px */
  h4 { font-size: 1.25rem; }/* ~20px */
  p  { font-size: 0.95rem; }/* ~15px */
}

/* Mobiles (≤ 480px) */
@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }/* ~28px */
  h2 { font-size: 1.5rem; } /* ~24px */
  h3 { font-size: 1.25rem; }/* ~20px */
  h4 { font-size: 1.1rem; } /* ~18px */
  p  { font-size: 0.9rem; } /* ~14px */
}