/* Sebastien */
/******************************************************/

AGENDA
/******************************************************/
/*****************************
		base de l'agenda 
*****************************/

table.agenda {
    width: 100%;
    height: 100%;
    background: #F7F7F7;
}

table.agenda td {
    background: #F7F7F7;
    width: 110px;
    height: 115px;
    padding: 0 8%;
}

.widget_calendar {
    height: 1300px;
}

.masque_agenda {
    width: 100%;
    height: auto;
    position: relative;
    margin-left: 60px;
}
/*****************************
		Contenu 
*****************************/

.blue {
    background: #26326D;
}

.white {
    background: #FFF;
}

.black {
    background: #000;
}

.grey {
    background: #B3B3B3;
}

.greyclair {
    background: #ebebeb;
}

.t_w {
    color: white;
}

.t_b {
    color: #26326D
}

#content-agenda {
    position: absolute;
    top: -38px;
    width: 100%;
}

#day1,
#day2,
#day3,
#day4,
#day5 {
    position: relative;
    float: left;
    width: 17.1%;
    margin: 0 .5px;
}
/*général*/

.desc .content-desc,
.desc-b .content-desc {
    text-align: center;
    padding: 3px;
}

section.day_hour span.d_text,
section.day_hour-b span.d_text {
    font-size: 10px;
    position: relative;
    float: left;
    margin: 5px 2px;
    width: 100%
}

section.day_hour {
    width: 100%;
    height: auto;
    position: relative;
}

section.day_hour section.number {
    position: relative;
    width: 100%;
    float: left;
}

.desc .content-desc h3 {
    font-size: 13px;
}

.desc .content-desc p {
    font-size: 10px;
}
/****** day1 *****/

#day1 {
    margin-top: 300px;
    height: 1025px;
}

#day1 .day_hour .d_number {
    width: 30px;
    text-align: center;
    position: relative;
    float: left;
    font-size: 12px;
    line-height: 25px;
}

#day1 .day_hour .hour {
    width: auto;
    position: relative;
    float: left;
    font-size: 12px;
    padding: 0 5px;
    line-height: 25px;
}

#day1 .desc {
    margin-top: 15px;
}

#day1 .desc .content-desc a {
    text-decoration: none;
    color: white;
}

#day1 .desc .content-desc a h3,
#day1 .desc .content-desc a img {
    margin-bottom: 10px;
}
/*description*/
/****** day2-a *****/

#day2-a {
    margin-top: 0px;
    height: 1350px;
    width: 100%;
}

#day2-a .day_hour .d_number {
    width: 30px;
    text-align: center;
    position: relative;
    float: left;
    font-size: 12px;
    line-height: 25px;
}

#day2-a .day_hour .hour {
    width: auto;
    position: relative;
    float: left;
    font-size: 12px;
    padding: 0 5px;
    line-height: 25px;
}

#day2-a .desc .content-desc a h3 {
    margin-top: 20px;
}

#day2-a .desc .content-desc a p {
    margin: 10px 0 55px;
}

#day2-a .desc .content-desc a {
    text-decoration: none;
    color: #26326D;
}
/****** day3 *****/

#day3-a {
    margin-top: 0px;
    height: 1350px;
    width: 100%;
}

#day3-a .day_hour .d_number {
    width: 30px;
    text-align: center;
    position: relative;
    float: left;
    font-size: 12px;
    line-height: 25px;
}

#day3-a .day_hour .hour {
    width: auto;
    position: relative;
    float: left;
    font-size: 12px;
    padding: 0 6px;
    line-height: 25px;
}

#day3-a .desc .content-desc a h3 {
    margin-top: 80px;
}

#day3-a .desc .content-desc a p {
    margin: 10px 0px;
}

#day3-a .desc .content-desc a {
    text-decoration: none;
    color: #26326D;
}
/****** day4 *****/
.tr {
    margin-top: 0;
}

#day4-a {
    height: 915px;
    float: left;
    width: 100%;
}

#day4-a .day_hour .d_number {
    width: 30px;
    text-align: center;
    position: relative;
    float: left;
    font-size: 12px;
    line-height: 25px;
}

#day4-a .day_hour .hour {
    width: auto;
    position: relative;
    float: left;
    font-size: 12px;
    padding: 0 11px;
    line-height: 25px;
}

#day4-a .desc .content-desc a {
    text-decoration: none;
    color: white;
}

#day4-a .desc .content-desc a img {
    margin: 20px 0 0 0;
}

#day4-a .desc .content-desc a h3 {
    margin: 10px 0;
}

.day_hour-b number {
    width: 100%;
    height: auto;
    position: relative;
}

.day_hour-b .d_number {
    width: 30px;
    text-align: center;
    position: relative;
    float: left;
    font-size: 12px;
    line-height: 25px;
}

.day_hour-b .hour {
    width: auto;
    position: relative;
    float: left;
    font-size: 12px;
    padding: 0 1px;
    line-height: 25px;
}

.desc-b .content-desc a {
    text-decoration: none;
    color: white;
    text-align: center;
}

.desc-b .content-desc h3 {
    font-size: 13px;
    margin-top: 10px;
}

.desc-b .content-desc p {
    font-size: 10px;
    margin-top: 10px;
}

#day4-b {
    height: 190px;
    float: left;
    width: 100%;
    margin-top: 2px;
}

section.day_hour-b span.d_text {
    margin-bottom: 20px;
}
/****** day5 *****/

#day5-a {
    height: 640px;
}

#day5-a .day_hour .d_number {
    width: 30px;
    text-align: center;
    position: relative;
    float: left;
    font-size: 12px;
    line-height: 25px;
}

#day5-a .day_hour .hour {
    width: auto;
    position: relative;
    float: left;
    font-size: 12px;
    padding: 0 10px;
    line-height: 25px;
}

#day5-a .desc .content-desc a {
    text-decoration: none;
    color: white;
}

#day5-a .desc .content-desc img {
    margin-top: 20px;
}

#day5-a .desc .content-desc h3 {
    font-size: 13px;
    margin-top: 10px;
}

#day5-a .desc .content-desc p {
    font-size: 10px;
    margin-top: 10px;
    margin-bottom: 30px;
}

#day5-b {
    height: 308px;
    margin-top: 2px;
}

#day5-b .day_hour .d_number {
    width: 30px;
    text-align: center;
    position: relative;
    float: left;
    font-size: 12px;
    line-height: 25px;
}

#day5-b .day_hour .hour {
    width: auto;
    position: relative;
    float: left;
    font-size: 12px;
    padding: 0 10px;
    line-height: 25px;
}

#day5-b .desc .content-desc a {
    text-decoration: none;
    color: white;
}

#day5-b .desc .content-desc img {
    margin-top: 20px;
}

#day5-b .desc .content-desc h3 {
    font-size: 13px;
    margin-top: 10px;
}

#day5-b .desc .content-desc p {
    font-size: 10px;
    margin-top: 10px;
    margin-bottom: 30px;
}
/**********************************

MEDIA QUERIES  AGENDA

************************************/
/*smartphone*/

@media screen and (min-width: 300px) and (max-width: 540px) {
    section.day_hour,
    section.day_hour-b {
        width: 100%;
        height: auto;
    }
    /*HAUTEUR DU CALENDRIER*/
    
    .widget_calendar {
        height: 4050px;
    }
    #content-agenda {
        top: -10px;
    }
    #day1,
    #day2,
    #day3,
    #day4,
    #day5 {
        width: 100%;
        margin-top: 5px;
    }
    /*Day 1*/
    
    #day1 {
        margin-top: 0px;
        height: auto;
    }
    #day1 .desc {
        margin: 20px 0;
    }
    /*Day 2*/
    
    #day2-a {
        height: auto;
    }
    #day2-a .desc .content-desc a h3 {
        margin-top: 10px;
    }
    #day2-a .desc .content-desc a p {
        margin: 10px 0 15px;
    }
    /*Day 3*/
    
    #day3-a {
        height: auto;
    }
    #day3-a .desc .content-desc a h3 {
        margin-top: 10px;
    }
    #day3-a .desc .content-desc a p {
        margin: 10px 0 15px;
    }
    /*Day 4*/
    
    #day4-a {
        height: auto;
    }
    #day4-a .desc .content-desc a img {
        margin-top: 20px;
    }
    #day4-a .desc .content-desc a h3 {
        margin-top: 10px;
    }
    #day4-a .desc .content-desc a p {
        margin: 10px 0 20px;
    }
    #day4-b {
        height: auto;
    }
    #day4-b .desc-b .content-desc a h3 {
        margin-top: 20px;
    }
    #day4-b .desc-b .content-desc a p {
        margin: 10px 0 20px;
    }
    /*Day 5*/
    
    #day5-a {
        height: auto;
    }
    #day5-a .desc .content-desc a img {
        margin-top: 20px;
    }
    #day5-a .desc .content-desc a h3 {
        margin-top: 10px;
    }
    #day5-a .desc .content-desc a p {
        margin: 10px 0 20px;
    }
    /*Day 5*/
    
    #day5-b {
        height: auto;
    }
    #day5-b .desc .content-desc a img {
        margin-top: 20px;
    }
    #day5-b .desc .content-desc a h3 {
        margin-top: 10px;
    }
    #day5-b .desc .content-desc a p {
        margin: 10px 0 20px;
    }
}
/*tablette*/

@media screen and (min-width: 541px) and (max-width: 700px) {
    #content-agenda {
        top: -10px;
    }
    #day1,
    #day2,
    #day3,
    #day4,
    #day5 {
        width: 19.8%;
    }
}

@media screen and (min-width: 701px) and (max-width: 1023px) {
    #content-agenda {
        top: -10px;
    }
    #day1,
    #day2,
    #day3,
    #day4,
    #day5 {
        width: 19.85%;
    }
}
/*desktop*/

@media screen and (min-width: 1024px) and (max-width: 1200px) {
    #day1,
    #day2,
    #day3,
    #day4,
    #day5 {
        width: 17.8%;
    }
    section.number .d_number p,
    section.number .hour p {
        font-size: 9.5px;
    }
}

@media screen and (min-width: 1201px) and (max-width: 1365px) {
    #day1,
    #day2,
    #day3,
    #day4,
    #day5 {
        width: 17.1%;
    }
}

@media screen and (min-width: 1366px) and (max-width: 1599px) {
    #day1,
    #day2,
    #day3,
    #day4,
    #day5 {
        width: 18.2%;
    }
}

@media screen and (min-width: 1600px) and (max-width: 1919px) {
    #day1,
    #day2,
    #day3,
    #day4,
    #day5 {
        width: 18.6%;
    }
}

@media screen and (min-width: 1920px) {
    #day1,
    #day2,
    #day3,
    #day4,
    #day5 {
        width: 18.7%;
    }
}
/**********************************

SURVOL

************************************/

#day1:hover,
#day4-a:hover,
#day4-b:hover,
#day5-a:hover,
#day5-b:hover,
#day1:focus,
#day4-a:focus,
#day4-b:focus,
#day5-a:focus,
#day5-b:focus,
#day1:active,
#day4-a:active,
#day4-b:active,
#day5-a:active,
#day5-b:active {
    background-color: #F57E33;
    transition: .3s ease-out;
    -webkit-transition: .3s ease-out;
    -o-transition: .3s ease-out;
    -moz-transition: .3s ease-out;
    -ms-transition: .3s ease-out;
}

.home_sidebar .block_right a:hover,
.home_sidebar .block_right a:focus,
.home_sidebar .block_right a:active {
    transition: .3s ease-out;
    -webkit-transition: .3s ease-out;
    -o-transition: .3s ease-out;
    -moz-transition: .3s ease-out;
    -ms-transition: .3s ease-out;
}

@media screen and (min-width: 1920px) {
    section.program .widget_calendar #content-agenda {
        max-width: none;
    }
    section.program .widget_calendar #day1,
    section.program .widget_calendar #day2,
    section.program .widget_calendar #day3,
    section.program .widget_calendar #day4,
    section.program .widget_calendar #day5 {
        width: 19.1%;
    }
}
/*end*/
/*****************************************************

CSS pour fenetre Modale

******************************************************/

#openPopUp {
    text-align: center;
    font-weight: 500;
    font-size: 13px;
    border-radius: 3.5px;
    text-decoration: none;
}

a#openPopUp:hover {
    cursor: pointer;
    color: #F57E33;
}

.popup {
    text-align: center;
    position: fixed;
    top: -100vh;
    left: 0;
    z-index: 9999999;
    background: rgba(0, 0, 0, 0.35);
    width: 100vw;
    height: 100vh;
    opacity: 0;
    -webkit-transition: opacity 0.35s ease;
    -moz-transition: opacity 0.35s ease;
    -o-transition: opacity 0.35s ease;
    transition: opacity 0.35s ease;
}

.popup .popUpContainer {
    width: 100%;
    max-width: 500px;
    position: fixed;
    /* To avoid scroll to target */
    
    left: 50%;
    top: -100vh;
    -webkit-transition: top 0.35s ease;
    -moz-transition: top 0.35s ease;
    -o-transition: top 0.35s ease;
    transition: top 0.35s ease;
    /* Trick to properly center the element by using negative 
  1/2 length of element as margin left and top */
    
    margin-left: -250px;
    border-radius: 2px;
    z-index: 9999999;
}

.popup img {
    width: 100%;
    display: block;
}

.popup article {
    height: 300px;
}
/* The cancel button on popup dialog */

.popup a.closePopUp {
    background-color: #FFF;
    color: #000;
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    padding: 5px 10px;
    font-weight: bold;
    font-size: 18px;
    text-decoration: none;
}
/* The cancel button on popup dialog */

.popup a:hover {
    color: #F57E33;
}
/* When popup is targeted, by clicking on link with #popup in HTML */

.popup:target {
    opacity: 1;
    top: 0;
}

.popup .closePopUpOutSide {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999991;
}

.popup:target .popUpContainer {
    top: 100px;
    -webkit-transition: top 0.35s ease;
    -moz-transition: top 0.35s ease;
    -o-transition: top 0.35s ease;
    transition: top 0.35s ease;
}
/* Css Contenu PopUp */

section.number {
    z-index: 0;
}

.desc .content-desc2 {
    text-align: center;
    padding: 27px 0;
}

.desc .content-desc3 {
    text-align: center;
    padding: 12px 0;
}

.popUpContainer header {
    float: left;
    width: 100%;
    height: 30px;
}

.popUpContainer article {
    float: left;
    width: 100%;
    height: auto;
    padding: 15px 0;
}

.popup p.titre {
    text-align: center;
    color: #FFF;
    letter-spacing: 0;
    font-weight: 600;
    margin-bottom: 20px;
    padding: 0 20px;
    font-size: 18px;
}

.popup .when {
    width: 100%;
    height: auto;
    position: relative;
    text-align: center;
    margin-bottom: 30px;
}

.popup .when .date,
.popup .when .heures {
    display: inline;
    width: auto;
    height: auto;
    color: #FFF;
    margin: 0 10px;
    position: relative;
    padding: 0 20px;
    font-size: 18px;
}

.popup h4 {
    text-align: center;
    color: #FFF;
    letter-spacing: 0;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 16px;
}

.popup p {
    text-align: center;
    color: #FFF;
    letter-spacing: 0;
    margin-bottom: 10px;
    font-size: 14px;
    padding: 0 20px;
}

.popUpContainer footer {
    float: left;
    width: 100%;
    height: 20px;
    background: #FFF;
    padding: 10px 0;
    text-align: center;
}

.popUpContainer footer a {
    text-decoration: none;
    color: #000;
}

.popUpContainer footer a:hover {
    cursor: pointer;
    color: #F57E33;
}

#openPopUp span {
    font-size: 10px;
    text-align: center;
}

@media (max-width: 796px) {
    .popup .popUpContainer {
        width: 90%;
        max-width: none;
        left: 5%;
        margin-left: 0;
    }
    .popup ul {
        padding: 0 1em 0 1em;
    }
    .popup:target .popUpContainer {
        top: 100px;
        -webkit-transition: top 0.35s ease;
        -moz-transition: top 0.35s ease;
        -o-transition: top 0.35s ease;
        transition: top 0.35s ease;
    }
    .popup .when .date,
    .popup .when .heures {
        padding: 0 10px;
        font-size: 16px;
        margin: 0;
    }
    .popup p.titre {
        font-size: 16px;
    }
    .popup h4 {
        font-size: 12px;
    }
    .popup p {
        font-size: 12px;
        padding: 0 30px;
    }
}