#header {
    position: absolute;
    z-index: 100;
    top:0;
    left:0;
    width: 100%;
}

#header #logo {
    background:url("../images/header/logobg.png") bottom right;
    display: block;
    width: 375px;
    height: 162px;
    position: relative;
    padding-top: 29px;
    float:left;
}

#header #logo img {
    display: block;
    max-width: 90%;
    margin: auto;
}

#header .bretagne {
    position: absolute;
    right:0;
    top:60px;
}

#menu {
    height:40px;
    background:white;
    margin-left:355px;
}

/* Premier niveau du menu */

#menu ul {
    font-family: "din_mediumregular";
    color:#005AA5;
}

#menu ul.m {
    margin-left: 30px;
}

#menu ul li.m {
    float:left;
    position:relative;
}


#menu ul li.m a.m {
    display:block;
    padding:11px 10px;
    font-size: 1.2em;
}

#menu ul li.m a.m:before {
    content:"";
    display: inline-block;
    background:#BD0E1D;
    width:7px;
    height: 7px;
    margin-right: 7px;
    position: relative;
    top:-1px;
}

#menu ul li.m:nth-child(4n+1) a.m:before {
    background:#BD0E1D;
}

#menu ul li.m:nth-child(4n+2) a.m:before {
    background:#F2701F;
}

#menu ul li.m:nth-child(4n+3) a.m:before {
    background:#3E84C0;
}

#menu ul li.m:nth-child(4n) a.m:before {
    background:#59A526;
}


#menu ul li a.m:hover {
    cursor:pointer;
    text-decoration: none;
}

/* Second niveau du menu */

#menu ul.sm {
    position:absolute;
    top:40px;
    left:0;
    display: none;
    background:white;
}

#menu ul.sm li.sm {
    float:none;
    width:200px;
}

#menu ul.sm li.sm a.sm {
    display:block;
    padding:7px 30px;
}

#menu ul.sm li.sm a.sm:hover {
    cursor:pointer;
    text-decoration: none;
}

#menu ul.m li.m:hover .sm {
    display: block;
}

/* Elements cachés */

#menu .menutab {
    display: none
}

#menu .mmenu {
    display:none;
}

/*  ------------------------------------------------
    IDCOOKIE
    ------------------------------------------------ */

#idcookie {
    color:#FFF;
    background:#444;
    position: fixed;
    bottom:0;
    left:0;
    width:100%;
    z-index:9999;
    box-shadow: 0px -1px 3px rgba(0,0,0,0.3);
    padding:0 10px;
}

#idcookie span , #idcookie a {
    display: inline-block;
    padding:13px;
}

#idcookie .buttoncookie {
    display:inline-block;
    margin-left:10px;
    padding:2px 10px;
    float: right;
    margin-left:20px;
    padding:10px;
    font-size: 1.5em;
}

#idcookie .buttoncookie:hover {
    cursor: pointer;
    background:#000;
    color:#FFF;
    text-decoration: none;
}

#header .secure-extranet {
    position: absolute;
    top:0;
    right:40px;
    background:#E5E5E5;
    width:40px;
    height:40px;
    padding: 10px;
}

/*  ------------------------------------------------
    DIAPORAMA
    ------------------------------------------------ */

#diaporama {
    padding-top:40px;
    position: relative;
    z-index: 5;
}

#diaporama img {
    max-width: 100%;
}

#diaporama .text {
    font-size:2em;
    width:450px;
    position: absolute;
    top:40%;
    right:5%;
}

#diaporama .text .title {
    font-size:1.5em;
    color:#3E84BF;
}

#diaporama .text .linetext {
    width:100%;
    display: block;
    margin-top:20px;
}

/*  ------------------------------------------------
    RESPONSIVE
    ------------------------------------------------ */

@media screen and (max-width: 1400px) {

    #diaporama .text {
        top:20%;
    }

}

@media screen and (max-width: 1300px) {

    #header #logo {
        width: 270px;
        height: 130px;
        padding-top: 25px;
    }

    #header #logo img {
        width:70%;
        margin-left:25px;
    }

    #menu {
        height:40px;
        background:white;
        margin-left:250px;
    }

}


@media screen and (max-width: 1200px) {

    #header {
        text-align: left;
        position: relative;
        background:white;
    }

    #header #logo {
        width: 100%;
        background:none;
    }

    #header #logo img {
        height:50px;
        margin:auto;
        width: auto;
    }

    #menu {
        position:fixed;
        top:0;
        margin-left:0;
        margin-top:0;
        height:auto;
        width:250px;
        left:-250px;
        height:100%;
        z-index: 1;
        border-right: 2px solid #005CA7;
    }

    /* Menu responsive */

    #menu ul li.m , #menu ul li.sm {
        float:none;
        width:auto;
    }

    #menu ul.m , #menu ul.sm {
        position: relative;
        top:0;
        left:0;
    }

    #menu ul.m ul {
        padding-left:15px;
    }

    #menu li.m.open ul.sm {
        display: block;
    }

    #menu.menuactive {
        left:0;
    }

    body.menuactive .bodyinner {
        position: relative;
        left:250px;
    }

    body.menuactive #header .headerright {
        left:250px;
    }

    #menu .menutab {
        background:#005CA7;
        display:block;    
        position:absolute;
        text-align:center;
        width:37px;
        top:10px;
        right:-52px;
        padding:10px 0px;
        color:white;
        border-radius: 50px;
        -webkit-border-radius: 50px;
        -moz-border-radius: 50px;
        font-size: 1.2em;
    }

    #menu .mmenu {
        display:block;
    }

    #diaporama {
        padding-top: 0;
    }

}


@media screen and (max-width: 600px) {

    #header #logo {
    }

    #header .title {
    }

}

