#ben{margin:5px;display: block; }
/* Add a black background color to the top navigation */
.topnav {}
/* Style the links inside the navigation bar */
.topnav a {  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;}

/* Add an active class to highlight the current page */
.active {
  background-color: #04AA6D;
  color: white;}

/* Hide the link that should open and close the topnav on small srceens */
.topnav .icon {
  display: none;}

.dropdown {
    float: left;
    overflow: visible;
    margin-top: 20px;
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
   z-index: 9999;
}
/* Dropdown container - needed to position the dropdown content 
.dropdown {
  float: left;
  overflow: hidden;    margin-top: 20px;}*/
 .dropdown-content::before {
        content: "";
        position: absolute;
        top: -20px;
        left: 0;
        width: 100%;
        height: 20px;
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }
	
/* Style the dropdown button to fit inside the topnav */
.dropdown .dropbtn,  .dropbtn a{
  font-size: 17px;
  border: none;
  outline: none;
  color: white;
  padding:5px;
  margin: 0;z-index: 1000;
        overflow: visible !important;}

/* Style the dropdown content (hidden by default)
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;margin-top: 45px;} */

/* Style the links inside the dropdown */
.dropdown-content a {
  float: none;
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left; text-transform: uppercase;}
.dropdown-content a:visited{color:black;}
/* Add a dark background on topnav links and the dropdown button on hover */
.topnav a:hover, .dropdown:hover .dropbtn {
  background-color: #555;
  color: white;}

/* Add a grey background to dropdown links on hover */
.dropdown-content a:hover {
  background-color: #ddd;
  color: black;}

/* Show the dropdown menu when the user moves the mouse over the dropdown button */
.dropdown:hover .dropdown-content {
  display: block;}


@media screen and (max-width: 800px) {

    /* =========================
       MENU PRINCIPAL
       ========================= */

    .topnav {
        position: relative;
        width: 100%;
        overflow: visible;
    }

    /* Logo */
    .topnav > a:first-child {
        display: block;
        float: none;
        width: auto;
        position: static;
        padding: 5px;
    }

    .topnav > a:first-child img {
        display: block;
    }


    /* =========================
       HAMBURGER
       ========================= */

    .topnav .icon {
        display: block;
        position: absolute;
        right: 5px;
        top: 5px;
        width: auto;
        padding: 5px 10px;
        font-size: 28px;
        z-index: 1001;
    }


    /* =========================
       MENU FERME
       ========================= */

    .topnav:not(.responsive) .dropdown {
        display: none;
    }

    .topnav:not(.responsive) > a:not(:first-child):not(.icon) {
        display: none;
    }


    /* =========================
       MENU OUVERT
       ========================= */

    .topnav.responsive .dropdown {
        display: block;
        float: none;
        width: 100%;
        margin: 0;
        padding: 0;
        position: relative;
    }


    /* =========================
       BOUTON / LIEN PARENT
       ========================= */

    .topnav.responsive .dropdown > .dropbtn {
        display: inline-block;
        float: none;
        width: auto;
        box-sizing: border-box;
        padding: 12px 10px;
        margin: 0;
        text-align: left;
        color: white;
        text-decoration: none;
        position: static;
    }

    /* Flèche */
    .topnav.responsive .dropdown > .fa {
        display: inline-block;
        color: white;
        margin-left: 5px;
    }


    /* =========================
       SOUS-MENU : FERME
       ========================= */

    .topnav.responsive .dropdown-content {
        display: none !important;
        position: static;
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        box-shadow: none;
    }


    /* =========================
       SOUS-MENU : OUVERT
       ========================= */

    .topnav.responsive .dropdown.open > .dropdown-content {
        display: block !important;
    }


    /* =========================
       LIENS DU SOUS-MENU
       ========================= */

    .topnav.responsive .dropdown-content a {
        display: block;
        float: none;
        width: 100%;
        box-sizing: border-box;
        padding: 10px 15px 10px 30px;
        margin: 0;
        text-align: left;
        color: #000;
        position: static;
    }


    /* =========================
       LIENS DIRECTS
       ========================= */

    .topnav.responsive > a:not(:first-child):not(.icon) {
        display: block;
        float: none;
        width: 100%;
        box-sizing: border-box;
        padding: 12px 15px;
        position: static;
        text-align: left;
    }


    /* =========================
       TRÈS IMPORTANT :
       PAS DE HOVER SUR MOBILE
       ========================= */

    .topnav.responsive .dropdown:hover > .dropdown-content {
        display: none !important;
    }

    .topnav.responsive .dropdown.open:hover > .dropdown-content {
        display: block !important;
    }


    /* =========================
       HAMBURGER MENU OUVERT
       ========================= */

    .topnav.responsive .icon {
        display: block;
        position: absolute;
        right: 5px;
        top: 5px;
    }
 article {
        position: relative;
        z-index: 1;
    }
}
/* When the srceen is less than 600 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topnav (.icon)
@media screen and (max-width: 800px) {


.dropbtn a{font-family: 'Montserrat', sans-serif;}

    .topnav {
        position: relative;
        width: 100%;
        overflow: visible;
    }


    .topnav > a:first-child {
        display: block;
        float: none;
        width: auto;
        position: static;
        padding: 5px;
    }

    .topnav > a:first-child img {
        display: block;
    }




    .topnav .icon {
        display: block;
        position: absolute;
        right: 5px;
        top: 5px;
        width: auto;
        padding: 5px 10px;
        font-size: 28px;
        z-index: 1001;
    }




    .topnav:not(.responsive) .dropdown,
    .topnav:not(.responsive) > a:not(:first-child):not(.icon) {
        display: none;
    }




    .topnav.responsive {
        position: relative;
    }

    .topnav.responsive .dropdown {
        display: block;
        float: none;
        width: 100%;
        margin: 0;
        position: relative;
    }



    .topnav.responsive .dropbtn {
        display: none;
        width: 100%;
        box-sizing: border-box;
        padding: 12px 15px;
        text-align: left;
        color: black;
        text-decoration: none;
        background: #cfcdcc;
        border: 0;
        font-size: 17px;
    }
.topnav.responsive .dropdown.open .dropdown-content {
    display: block;

    .topnav.responsive .dropdown-content {
        position: static;
        display: block;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        box-shadow: none;
        background-color: #f9f9f9;
    }

    .topnav.responsive .dropdown-content a {
        display: block;
        float: none;
        width: 100%;
        box-sizing: border-box;
        padding: 10px 15px 10px 30px;
        text-align: left;
        color: #000;
    }



    .topnav.responsive > a:not(:first-child):not(.icon) {
        display: block;
        float: none;
        width: 100%;
        box-sizing: border-box;
        position: static;
        padding: 12px 15px;
        text-align: left;
    }



    .topnav.responsive .icon {
        display: block;
        position: absolute;
        right: 5px;
        top: 5px;
    }
}

