#evenements {
    float: bottom;
    height: calc(100% - 300px);
    overflow-x: hidden;
    overflow-y: hidden;
}

#agenda {
    width: 220px;
    left: 50%;
    transform: translate(15px, 0);
}

/*date agenda*/
#date {
    float: bottom;
    width: 200px;
    text-align: center;
    margin-left: 25px;
    padding-bottom: 20px;
}

#date_agenda {
    width: 150px;
    float: left;
    text-align: center;
}

#date_moins {
    float: left;
    margin: 0;
    padding: 0;
}

#date_plus {
    float: left;
    margin: 0;
    padding: 0;
}

/*calendrier*/

#calendrier table {
    border-collapse:collapse;
}

#calendrier table th {
    color: #5E3023;
    text-align: center;
}

#calendrier table td {
    color: #5E3023;
    border-width: 2px;
    border-style: solid;
    border-color: #5E3023;
    width: 30px;
    height: 30px;
    margin: 0;
    padding: 0;
    text-align: center;
}

#calendrier table td.padding {
    border: none;
}

#calendrier table td.events {
    opacity: 0.5;
    background-color: #5E3023;
    color: #F0EDE6;
    font-weight: bold;
    cursor: pointer;
    border-width: 2px;
}

#calendrier table td.events:hover {
    opacity: 1;
}

#calendrier table td.noevents {
    opacity: 0.5;
    background-color: #F0EDE6;
    color: #5E3023;
    font-weight: bold;
    cursor: pointer;
    border-width: 2px;
}

#calendrier table td.noevents:hover {
    opacity: 1;
}

.today {
    color: red;
}

#date_evenements {
    text-align: center;
    font-weight: bolder;
    margin-bottom: 20px;
}

#fiche_events {
    width: calc(100% - 10px);
    height: calc(100% - 60px);
    margin-right: auto;
    color: #5E3023;
    background-color: #c08552;
    border-radius: 10px;
    border-style: solid;
    border-color: #5E3023;
    box-shadow: 3px 3px 3px #5e30236e;
    padding-bottom: 30px;
    margin-top: 10px;
}

#date_fiche {
    background: linear-gradient(#5E3023, #5e30236e, #5E3023);
    color: #F0EDE6;
    font-weight: bold;
    width: 100%;
    height: 50px;
    margin: 0;
    padding: 0;
    padding-top: 5px;
    text-align: center;
}

#date_fiche p {
    transform: translateY(-40px);
    font-size: 2em;
}

#titre_fiche {
    color: #5E3023;
    font-weight: bold;
    text-align: center;
    font-size: 30px;
    margin: 0;
    padding: 0;
    text-shadow: 3px 3px 3px #5e30236e;
}

#livre_event {
    display: block;
    width: 1000px;
    height: 450px;
    box-shadow: 3px 3px 3px #5e30236e;
    border:2px solid #5E3023;
    -moz-border-radius:7px;
    -webkit-border-radius:7px;
    border-radius:7px;
    background-color: #F0EDE6; 
    margin: auto; 
    margin-top: 10px; 
}

#affiche {
    margin-top: 0px;
    float: left;
    height: 450px;
    width: 500px;
    border-right: 5px solid #5E3023;
}

#affiche img {
    height: 450px;
    -moz-border-radius:7px;
    -webkit-border-radius:7px;
    border-radius:7px;
    display: block;
    margin: auto;
}

#fiche {
    margin-left: 0px;
    margin-top: 0px;
    height: 370px;
    width: 450px;
    display: flex;
    justify-content: center;
    position: relative;
    padding-left: 35px;
}

#fiche img {
    width: 280px;
    max-height: 350px;
    -moz-border-radius:7px;
    -webkit-border-radius:7px;
    border-radius:7px;
    display: block;
    top: 50%;
    left: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
}

#fiche .info_event {
    display: block;
    height: 350px;
    width: 450px;
    margin-left: -15px;
}

#fiche #info_nav {
    display: block;
    width: 300px;
    height: 0px;
    position: absolute;
    bottom: 0px;
    color: #5E3023;
    text-align: center;
    margin-left: -35px;
    font-size: 0.7em;
}

#fiche #info_nav img {
    height: 15px;
    width: auto;
    max-height: revert;
    -moz-border-radius: revert;
    -webkit-border-radius: revert;
    border-radius: revert;
    display: revert;
    top: revert;
    left: revert;
    cursor: revert;
    position: revert;
    transform: revert;
}

#fiche .photo_event {
    height: 400px;
    width: 260px;
    display: none;
}

#fiche .prev, #fiche .next {
    position: absolute;
    cursor: pointer;
    top: 50%;
    transform: translate(0, -50%);
    padding: 16px;
    padding-top: 8px;
    padding-bottom: 22px;
    border-radius: 20px 20px 20px 20px;
    background-color: #5e30233d;
    width: 10px;
    height: 10px;
}

#fiche .prev {
    left: 5px;
}

#fiche .next {
    right: 5px;
}

#fiche .prev:hover, #fiche .next:hover {
    background-color: #5e3023c5;
    color: #F0EDE6;
}

#meteo {
    margin-left: 10px;
    margin-top: 0px;
    width: 230px;
    height: 115px;
}

#meteo table {
    border-collapse:collapse;
    margin-left: 0px;
    background-color: #5E3023;
    width: 100%;
    box-shadow: 3px 3px 3px #5e30236e;
    -moz-border-radius:7px;
    -webkit-border-radius:7px;
    border-radius:7px;
}

#meteo table th {
    color: #F0EDE6;
    text-align: center;
    border-width: 0px 2px 2px 2px;
    border-style: solid;
    border-color: #F0EDE6;
}

#meteo table td {
    color: #F0EDE6;
    width: 85px;
    margin: 0;
    padding: 0;
    text-align: center;
}

#list_evenement {
    height: 120px;
    overflow-y: auto;

}

.cursor_zoom {
    cursor: zoom-in;
}

#list_event li {
    color: #5E3023;

}

#list_event li:hover {
    cursor: pointer;
    color: #F0EDE6;
    background-color: #5E3023;
}

#BP_agenda {
    margin-bottom: 35px;
    overflow-x: hidden;
    overflow-y: hidden;
}

.BPagenda {
    background-image:url('../images/logo_agenda.png');
    background-repeat: no-repeat;
    background-position: 10px;
    background-size: 20px;
    position: absolute;
    left: 40px;
    width: 160px;

    div {
        display: block;
        margin-left: 30px;
        }
}

.BPagenda:hover {
    background-image:url('../images/logo_agenda.png');
    background-repeat: no-repeat;
    background-position: 10px;
    background-size: 20px;
    cursor: pointer;
}

.pdf {
    width: 100%;
    height: calc(100% - 10px);
}