#menu
{
    height: 80px;
    background: white;
    padding-right: 20px;
    border-bottom: 1px solid #39B54A;
    margin-bottom: 30px;
    font-family: "Open Sans", "PT Sans";
    text-align: right;
    z-index: 20000000;
    box-shadow: 0 2px 12px rgba(57, 181, 74, 0.08);
}

#logotype
{
    position: absolute;
    left: 5px;
    top: 10px;
}

#logotype img
{
    padding-top: 5px;
    width: 250px;
    transition: opacity 0.2s;
}

#logotype img:hover
{
    opacity: 0.85;
}

/* Les LI sous menu */
.under
{
    width: 200px;
}

#menu ul {
    margin: 0 0 0 -25px;
    padding: 0;
    list-style-type: none;
    z-index: 2000;
}

#menu li {
    display: inline-block;
    vertical-align: middle;
    padding: 0;
    background: white;
    height: 80px;
    line-height: 70px;
    border-right: 0px dotted grey;
    font-weight: bold;
    text-transform: uppercase;
}

/* l'UL de sous menu */
#submenu
{
    text-align: left;
}

.li_rond
{
    margin-right: 4%;
    white-space: nowrap;
}


#menu li a {
    display: block;
    color: #525252;
    text-decoration: none;
    padding: 0 12px;
    margin: 20px 0;
    font-size: 15px;
    border-radius: 6px;
    line-height: 40px;
    transition: color 0.18s, background 0.18s;
}

#menu li a:hover {
    color: #39B54A;
    background: #f4faf5;
}

#menu ul li ul { /* Etat caché */
    display: none;
}

#menu ul li:hover ul { /* Déclenche le drilldown */
    display: block;
    white-space: normal;
}

#menu li ul {
    position: absolute;
    background: white;
    border-top: 2px solid #39B54A;
    border: 1px solid #e8e8e8;
    border-top: 2px solid #39B54A;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.09);
    padding: 6px 0;
    margin-top: -4px;
    animation: dropDown 0.15s ease;
}

@keyframes dropDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

#menu li ul li {
    display: block;
    height: auto;
    line-height: normal;
    background: transparent;
}

#menu li ul li a
{
    font-size: 12px;
    padding: 9px 18px;
    margin: 0;
    border-radius: 0;
    display: block;
    color: #525252;
}

#menu li ul li a:hover {
    color: #39B54A;
    background: #f4faf5;
    border-radius: 0;
}

#mobile
{
    display: none;
}

/*-------------------Petit format--------------*/

@media screen and (min-width:768px) and (max-width:979px)
{
    #logotype img
    {
        width: 180px;
    }

    .li_rond
    {
        margin-right: 10px;
    }

    #logotype
    {
        margin-right: 5px;
    }

    .under
    {
        width: 100px;
    }

    #menu li a
    {
        font-size: 11px;
    }

    #menu li ul li a
    {
        font-size: 10px;
    }
}

/* Moyen format */
@media screen and (min-width:980px) and (max-width:1199px)
{
    .li_rond
    {
        margin-right: 3%;
    }

    .under
    {
        width: 150px;
    }

    #logotype
    {
        margin-right: 7%;
    }

    #menu li a
    {
        font-size: 13px;
    }

    #menu li ul li a
    {
        font-size: 12px;
    }
}

@media screen and (min-width:1600px)
{
    .li_rond
    {
        margin-right: 6%;
    }

    #logotype
    {
        margin-right: 24%;
    }

    #menu li a
    {
        font-size: 16px;
    }

    #menu li ul li a
    {
        font-size: 15px;
    }
}


/*----------------------------------------------Format smartphone------------------------------------*/
@media screen and (max-width:767px)
{
    #menu
    {
        display:none;
    }

    #mobile
    {
        background: white;
        box-shadow: 0 0 3px 2px rgba(0,0,0,0.3);
        display:block;
    }

    html
    {
        -webkit-tap-highlight-color: transparent;
        -webkit-tap-highlight-color: rgba(0,0,0,0);
    }

    a
    {
        text-decoration:none;
    }

    #mmenu
    {
        display:none;
    }

    #toggle-bar
    {
        margin-bottom:10px;
    }

    #logo_mob
    {
        margin:20px 0 0 5px;
        width:190px;
    }

    #mobile #toggle-bar
    {
        line-height:70px;
        height:70px;
    }

    #mobile strong a
    {
        margin-left:30px;
        border:1px solid #444;
        padding:10px;
    }

    /* --- Burger animé --- */
    #mobile .navicon {
        float: right;
        position: relative;
        width: 30px;
        height: 24px;
        margin: 24px;
        cursor: pointer;
    }

    #mobile .navicon span {
        position: absolute;
        left: 0;
        width: 100%;
        height: 3px;
        background: #E9954A;
        transition: 0.3s ease;
        border-radius: 2px;
    }

    #mobile .navicon span:nth-child(1) { top: 0; }
    #mobile .navicon span:nth-child(2) { top: 10px; }
    #mobile .navicon span:nth-child(3) { top: 20px; }

    #mobile .navicon.open span:nth-child(1) {
        top: 10px;
        transform: rotate(45deg);
    }

    #mobile .navicon.open span:nth-child(2) {
        opacity: 0;
    }

    #mobile .navicon.open span:nth-child(3) {
        top: 10px;
        transform: rotate(-45deg);
    }

    /* --- Icône connexion / compte --- */
    #mobile-account-icon {
        float: right;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        margin: 17px 8px 17px 0;
        text-decoration: none;
    }

    #mobile-account-icon svg {
        width: 26px;
        height: 26px;
        stroke: #E9954A;
        transition: stroke 0.2s;
    }

    #mobile-account-icon:hover svg,
    #mobile-account-icon:focus svg {
        stroke: #e1801d;
    }

    /* --- Liste du menu déroulant --- */
    #mobile ul li
    {
        clear:both;
        list-style:none;
        width:95%;
    }

    #mobile ul li a
    {
        display:block;
        color:#E9954A;
        text-transform:uppercase;
        letter-spacing:.12em;
        margin:5px 0;
        padding:6px 0 6px 8px;
        font-weight:bold;
        text-decoration:none;
    }

    #mobile ul li a:hover,
    #mobile ul li a:focus
    {
        background-color: #e1801d;
        color: #244f31;
    }

    #mobile ul li > ul
    {
        display: none;
        background: white;
        width: 100%;
    }

    #menu-item-mypot .submenu
    {
        display: none;
    }

    #menu-item-mypot.active .submenu
    {
        display: block;
    }

    #menu-item-mypot.active .submenu {
        margin: 0;
        padding: 10px;
    }

    #menu-item-mypot .submenu_mobile {
        display: none;
        padding: 8px 12px;
        border-radius: 6px;
        margin: 4px 16px;
    }

    #menu-item-mypot .submenu_mobile a {
        display: block;
        color: #e1801d;
        padding: 8px 10px;
        font-size: 14px;
        text-decoration: none;
    }

    #menu-item-mypot .submenu_mobile a:hover {
        background-color: rgba(255,255,255,0.1);
        color: #e1801d;
    }
}