/* couleurs de base */

html {
/*    background-color: #E8FFE8;*/
}

/* blocs de page */

/* --- entete fixe : bandeau + fil --- */

#entete {
    text-align: center;
    position: fixed;
    top: 0;
    height: 100px;
    width: 100%;
    z-index: 100;
    background-color: #F9FFE6;
/*    border-bottom: 2px solid #C0C0C0; */
    border-bottom:4px ridge #007171;
}
#header {
    text-align: center;
    position: fixed;
    top: 0;
    height: 80px;
    width: 100%;
    z-index: 100;
}
#drapeau {
    position: fixed;
    top: 0;
    left: 0;
    height: 80px;
    z-index: 110;
}
#bretagne {
    position: fixed;
    top: 0;
    right: 0;
    height: 80px;
    z-index: 110;
}
/* --- bloc fil --- */

#fil_date {
    position: relative;
    top: 80px;
    height: 16px;
    margin: 0 ;
    padding: 4px 20px 0;
}

#fil_ariane {
    font-size: 0.6em;
    color: #000000;
    margin: 0;
    padding: 0;
    text-align: left;
    float:left;
}

#mise_a_jour {
    font-size: 0.6em;
    color: #000000;
    margin: 0;
    padding: 0;
    text-align: right;
    float: right;
}
/* ---- fin du bloc d'entête --- */

/* --- bloc gauche --- */

#bord_gauche {
    background-color: transparent; /*#E8FFE8; */
    top: 104px;
    bottom: 0;
    overflow: auto;
    left: 0;
    position: fixed;
    width: 236px; /* ascenseur = 16 px */
    margin: 0;
    padding: 0;
}
#contenu_gauche {
    background-color: #E8FFE8;
    top: 0;
    left: 0;
    position: relative;
    width: 220px;
    height: 100%;/* pour correction sur la partie menu découverte après le recouvrement */
    margin: 0;        /* sinon il faut mettre un background-color: #E8FFE8; sur tous les enfants de cette div */
    padding: 0;
    z-index: 50;
}
#bienvenue {
    padding-top: 6px;
    padding-left: 10px;
}
#accessib {
    margin: 6px 18px 0;
    border: 3px ridge #007171;
}
#menu {
    padding-top: 20px;
    width: 220px;
    background-color: #E8FFE8;
}
#menu ul  {
    list-style-type: none;
    padding-left: 10px;
}
#menu li  {
    line-height:1.15em;
}
#menu ul.menu>li>a {  /* menu niveau 1 */
    font-size: 0.875em;
}
#menu ul.menu>li>ul>li>a {  /* menu niveau 2 */
    font-size:0.75em;
}
/* ---- fin du bord gauche --- */

/* --- commun --- */
#contenu_gauche img, #entete img {
    border: none;
    margin: 0;
    padding: 0;
}
/* ---- fin commun --- */

/*  --- bloc principal --- */

#deco_contenu {
    margin-left: 220px;
    margin-top: 104px;
    padding: 20px;
    padding-top: 5px;
    border-bottom:4px ridge #007171;
    border-left: 4px ridge #007171;
}
#contenu {
    margin-left: 4px;
    text-align: justify;
/*    max-width: 1000px;*/
}
#contenu h1, #contenu h2, #contenu h3, #contenu h4, #contenu h5, #contenu h6 {
    text-align: left;
}

#contenu ul {
    list-style: disc outside none;
}
#contenu li {
    margin-left: 2em;
    font-size: 0.8em;
}
#contenu li li {
        font-size: 1em;
}
#contenu li p {
    font-size: 0.859375em;
}

img {
    margin: 1em 1em 0 1em;  /* margin : haut droite bas gauche */
    border: none;
}
#contenu img.smiley {
    margin: 0;
    border: none;
}

/* ---- fin du corps de page --- */

#footer {
    background-color: #E8FFE8;
    font-size: x-small;
    color: #000000;
    margin: 0;
    padding: 10px 10px 10px 220px;
    text-align: center;
/*    width: 100%;*/
}

#footer img.pied-page-droite {
    margin: 0 2em 0 0;  /* margin : haut droite bas gauche */
    border: none;
    float: right;
}
#footer img.pied-page-gauche {
    margin: 0 0 0 2em;  /* margin : haut droite bas gauche */
    border: none;
    float: left;
}
div.footer-gauche {
    display: inline-block;
    float: left;
}
div.footer-droite {
    display: inline-block;
    float: right;
}
div.footer-centre {
    display: inline-block;
}

/* ---- fin du pied de page --- */

/* carte interactive open street map */
div.carte {
/*    clear: right;*/
    float : right;
    margin: 0.5em;
    padding: 3px;
    border-width: 1px;
    border-color: #B0B0B0;
    border-style: solid;
}
div#osm-map {
    height: 500px;
    margin: 0;
    padding: 0;
    width: 500px;
}
div#osm-map * {
    margin: 0;
    padding: 0;
    z-index: 98;
}
p.osm-link {
    font-size: 0.6em;
    font-style: italic;
    text-align: center;
    color: #4F4F4F;
    z-index: 99;
}
/* ---- fin carte interactive osm --- */

p {
    color: #000000;
    margin: 0.5em;
}

/* classes */

/* @label note de bas de page */
/* @longdesc change la police (serif) pour les notes de bas de page */
h6.note {
    font-family: "Lucida Bright", Georgia, "Times New Roman", Times, Bodoni, serif;
    font-size: 0.75em;
    font-weight: normal;
}
/* @label image droite */
/* @longdesc image simple cadrée à droite sans bordure ni légende */
img.droite {
    clear: right;
    float : right;
    margin: 0.4em 0 0.5em 1em;
    border:none;
}
/* @label image gauche */
/* @longdesc image simple cadrée à gauche sans bordure ni légende */
img.gauche {
    clear: left;
    float : left;
    margin: 0.4em 1em 0.5em 0;
    border:none;
}
/* @label image centrée */
/* @longdesc image simple centrée dans une div, sans bordure ni légende */
img.centrer {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* @label  boite image à droite */
/* @longdesc boite cadrée à droite avec image et légende sans bordure */
div.image-box-droite {
    clear: right;
    float : right;
    margin: 0.5em;
    padding: 0;
    border: none;
}
/* @label  boite image à gauche */
/* @longdesc boite cadrée à gauche avec image et légende sans bordure */
div.image-box-gauche {
    clear: left;
    float : left;
    margin: 0.5em;
    padding: 0;
    border: none;
}
/* @label  boite image visible à droite */
/* @longdesc boite cadrée à droite avec image, légende et bordure */
div.image-box-droite-bord {
    clear: right;
    float : right;
    margin: 0.5em;
    padding: 0;
    border-width: 1px;
    border-color: #B0B0B0;
    border-style: solid;
}
/* @label  boite image visible à gauche */
/* @longdesc boite cadrée à gauche avec image, légende et bordure */
div.image-box-gauche-bord {
    clear: left;
    float : left;
    margin:  0.5em;
    padding: 0;
    border-width: 1px;
    border-color: #B0B0B0;
    border-style: solid;
}
/* @label  boite encadrée à gauche */
/* @longdesc boite de texte cadrée à gauche avec bordure */
div.cadre-gauche-bord {
    clear: left;
    float : left;
    margin:  0.5em;
    padding: 0;
    border-width: 2px;
    border-color: #4F4F4F;
    border-style: solid;
    box-shadow: 6px 6px 6px #8C8C8C;
}
/* @label  boite encadrée à droite */
/* @longdesc boite de texte cadrée à droite avec bordure */
div.cadre-droite-bord {
    clear: right;
    float : right;
    margin:  0.5em;
    padding: 0;
    border-width: 2px;
    border-color: #4F4F4F;
    border-style: solid;
    box-shadow: 6px 6px 6px #8C8C8C;
}
/* @label  cache l'élément */
/* @longdesc pour rendre un élément invisible */
.invisible {
    display: none;
}

/* @label  légende dans boite */
/* @longdesc format pour la légende d'une image dans une boite */
p.legend{
    margin: 3px 0.5em 0 0.5em;        /* haut droite bas gauche*/
    padding: 0;
    border:none;
    font-size: 0.6875em;
    font-style: italic;
    text-align: center;
    color: #4F4F4F;
}
/* @label type citation */
/* @longdesc texte en gris et italique */
span.citation {
    color: #333333;
    font-size: 0.95em;
    font-style: italic;
}
/* @label  lien externe */
/* @longdesc ajoute une image pour signaler une sortie du site (ouverture nouvel onglet) */
a.externe {
    background-repeat: no-repeat;
    background-position: center right;
    padding-right: 24px;
}
/* @label  lien externe sur image */
/* @longdesc pour une image associée à un lien de sortie du site (ouverture nouvel onglet) */
a.externe-img {
    background: none;
    padding: 0;
}
/* @label  lien article */
/* @longdesc ajoute une image pour signaler un article à lire (page non accessible par le menu) */
a.article {
    background-repeat: no-repeat;
    background-position: center right;
    padding: 2px 48px 2px 0;
}
/*contenu p.fin{ */
p.fin{
    font-size: 0.006em;
    clear: both;
    color: #FFFFFF;
}
/* @label remise à zéro du flux */
/* @longdesc l'élément suivant commence en-dessous. Cette div a une hauteur nulle */
div.clear {
    clear: both;
    height: 0;
    width: 0;
}
/* @label flèche haut */
/* @longdesc pour une flèche de retour vers la haut de page dans titre 3 */
img.fleche_haut {
    border:none;
    float : left;
    margin: 5px 5px 0 -10px;
}

div.deb_maj_tab {
    display: none;
}
div.fin_maj_tab {
    display: none;
}

/* boite pour l'agrandissement des images  */
#lightbox {
    background-color: #f8f8f8;
    border: solid 1px #000;
    padding: 15px;
}
#lightbox .title {
    font-weight: bold;
}
#lightbox .image {
    border-bottom: solid 1px #000;
    border-top: solid 1px #000;
    text-align: center;
}
#lightbox .link {
    background-color: #fff;
    opacity: 0.6;
    font-size: small;
    text-align: center;
    height: 16px;
    width: 16px;
    position: absolute;
}
#lightbox .link a {
    height: 16px;
    width: 16px;
    display: inline-block;
}
#lightbox .close {
    cursor: pointer;
    height: 24px;
    float: right;
    padding: 0;
    margin-top: -5px;
    width: 24px;
}
div.lightbox-overlay {
    background-color: #fff;
    opacity: 0.6;
}
div#lightbox div.prev, div#lightbox div.next {
    cursor: pointer;
    height: 24px;
    width: 24px;
    margin: 0;
    padding: 0;
    position: absolute;
}

@media screen and (max-width:650px)
{
    #entete {
        display: none;
    }
    #bord_gauche {
        top: auto;
        bottom: auto;
        overflow: hidden;
        left: auto;
        position: relative;
        width: 100%;
        background-color: #E8FFE8;
        border-bottom:4px ridge #007171;
    }
    #contenu_gauche {
        width: 100%;
        height: auto;
        z-index: 1;
        max-height: 100px;
    }
    #bienvenue {
        padding-top: 6px;
        padding-left: 10px;
        float: left;
    }
    #accessib {
        display: none;
    }
    #contenu_gauche img {
        height: auto;
        max-width: 85%;
    }
    #rechercher {
        float: left;
    }
    #cadre_boutons{
        float: left;
        width: 180px;
        margin: 5px 0;
    }
    #bouton_menu, #bouton_actu {
        float: left;
        width: 130px;
    }
    #retour_menu, #fermer_menu {
        display: inline-block;
        height: 18px;
        width: 30%;
    }
    #bouton_menu, #bouton_actu, #retour_menu, #fermer_menu {
        margin: 5px;
        padding: 3px;
        font-size: 0.8em;
        font-weight: normal;
        text-align: center;
        color: #000000;
        text-shadow: 2px 2px 0px #FFFFFF;
        border-radius: 5px;
        background : linear-gradient(to bottom, #FFDCB5, #FFC482, #DB7F18);
        border-bottom: 4px ridge #703E06;
        border-right: 4px ridge #703E06;
    }
    #bouton_menu:active, #bouton_actu:active, #retour_menu:active, #fermer_menu:active {
        background : linear-gradient(to bottom, #DB7F18, #FFC482, #FFDCB5);
        border-top: 4px ridge #BC9D78;
        border-left: 4px ridge #BC9D78;
        border-bottom: 0;
        border-right: 0;
        color: #222222;
        text-shadow: -2px -2px 0px #AAAAAA;
        cursor: pointer;
        position: relative;
        top: 4px;
        left: 4px;
    }
    #bouton_menu:hover, #bouton_actu:hover, #retour_menu:hover, #fermer_menu:hover {
        cursor: pointer;
    }
    #retour_menu {
        float: left;
    }
    #fermer_menu {
        float: right;
    }

    #cadre_menu {
        background-color: #E8FFE8;
        margin: 5px 10px 0 5px;
        padding: 3px;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        border: 2px solid #777777;
        box-shadow: 8px 8px 12px #777777;

        z-index: 200;
    }

    #cadre_menu_boutons {
/*        border: solid 1px #000; */
        list-style-type: none;
    }

    #menu {
        clear: both;
        width: auto;
    }
    #bouton_actu {
        display: none;
    }


    #bord_gauche #menu {
        float: left;
        background-image: none !important;
        padding-top: 20px;

        position: relative;
        z-index: 100;
        overflow: visible;
        width: auto;
    }
    #bord_gauche #menu > ul  {
        top: 0;
        left: 0;
        z-index: 100;
    }
    #bord_gauche #menu li {
        display: none;
    }
    #bord_gauche #menu li.selected {
        display: block;
    }
    #bord_gauche #menu a:hover {
        padding: 5px;
    }
    #bord_gauche #menu ul:hover {
        z-index: 100;
    }
    #bord_gauche #menu ul:hover li {
        display: block;
    }
    #bord_gauche #menu li:hover > ul {
        display: block;
    }
#menu ul.menu>li>a {  /* menu niveau 1 */
    font-size: 1.125em;
}
#menu ul.menu>li>ul>li>a {  /* menu niveau 2 */
    font-size:1em;
}

    #deco_contenu {
        margin-left: auto;
        margin-top: auto;
        padding: 20px;
        padding-top: 5px;
        border-bottom:4px ridge #007171;
        border-left: none;
        z-index: 1;
    }
    #contenu img {
        max-width: 90%;
        height: auto;
        margin: 1em 0;
    }
    div.image-box {
        max-width: 100%;
        text-align: center;
        display: inline-block;
        float: none;
    }
    #contenu #osm-map img {
        width: auto;
        margin: 0;
        max-width: none;
    }
    div.carte {
        float: none;
    }
    #contenu img.fleche_haut {
        border:none;
        float : left;
        margin: 5px 5px 0 -10px;
    }

    #footer {
        padding: 10px;
        text-align: center;
    }

    #footer a {
        display: none;
    }

    table.photo, table.photo tr {
        display: block;
        width: 100%;
    }
    table.photo th, table.photo td {
        display: inline-block;
    }
    table.photo th, table.photo td {
        width: 40%;
    }

    table.photo td img {
        width: 90%;
        height: auto;
    }

}