/*
Theme Name: Theme enfant
Description: Theme enfant de R1cevent WPServeur
Author: R1cevent - WPserveur
Author URI: https://www.wpserveur.net
Template: twentynineteen 
Version: 0.1.0
*/

/*------------------------------GENERIC-----------------------------------------*/
body{
    margin: 0;
    background-image: url("/wp-content/uploads/2019/10/falaisegelee.jpg"); 
    background-size: cover;
    padding-top: 4.762vw; /*pour compenser le menu fixe en haut de page */
    font-family: "gabriola", arial, sans-serif;
}
h1, h2, h3, h4, h5, h6{
    font-family: "gabriola", arial, sans-serif;
}
@font-face {
    font-family: "gabriola";
    src: url("fonts/gabriola.woff") format("woff");
}
/*-----------------------------------menu fixe haut de page --------------------*/
.site-header.featured-image .custom-logo-link{
        background: none;
    }
    
#site-navigation.main-navigation{ /*menu haut de page*/
    height: 4.762vw;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 150;
    background-color: rgb(51, 255, 153);
    margin: 0;
    display: table;
    width: 80%;
    margin-left: 10%;
    vertical-align: middle;
    border-radius: 5px;
}
.main-navigation div{
    display: table-cell;  /*^pour centrer l'ul de la barre de nav*/
    vertical-align: middle;
    font-family: "gabriola", arial, sans-serif;
    font-size: 1.5rem;
}
.entry-header{
    color: #33ff99;
}

img.custom-logo{
    position: fixed;
    left: 0;
    top: 0;
    height: 4.762vw;
    width: auto;
    z-index: 150;
    border-radius: 5px;
}

.site-logo .custom-logo-link:hover{
    box-shadow: none;
}
.site-logo .custom-logo-link:active{
    box-shadow: none;        
}
a.custom-logo-link:focus{
    outline: none; 
}

/*-------------------------mise en place ancre du menu--------------------------*/
#contact{
    position: relative;
    bottom: 14vw;
}
#activites{
    position: relative;
    bottom: 14vw;
}
#actualites{
    position: relative;
    bottom: 14vw; 
}

#infos{
    position: relative;
    bottom: 14vw;
}

#politiqueconfidentialite{
    position: relative;
    bottom: 14vw;
}

#mentionslegales{
    position: relative;
    bottom: 13.5vw;
}

#plansite{
    position: relative;
    bottom: 14vw;
}
/*--------------------mise en place fond gris-----------------------------------*/
#primary.content-area main#main.site-main{
    border: solid 1px black; /*pour creer l'encart grisé qui contient les textes*/
    background: rgba(0, 0, 0, 0.2);
    width: 80%;
    margin-left: 10%;
    padding-bottom: 5vw;
}
/*---------------mise en place fond blanc--------------------------------------*/
.entry .entry-content, .entry .entry-summary { /*mise en page fond blanc*/
	width: 80%;
	padding: 0 60px;
        background-color: white;
}

/* -------------------------mise en page titre global----------------------------*/
.site-branding{ /*pour centrer titre et accompagnement  sur toutes les pages*/
    text-align: center; 
}
.site-title a:link{
    font-weight: bold;
    color: #33ff99;
    font-size: 2rem;
    pointer-events: none; /*pour désactiver le lien*/
    cursor: default; /*pour désactiver le lien*/
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
    text-decoration: none;
    font-family: "gabriola", arial, sans-serif;
}
    
.site-title a:visited{
    font-weight: bold;
    color: #33ff99;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}

p.site-description{
    display: block;
    position: relative;
    color: #33ff99;
    font-weight: bold;
    font-size: 2rem;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}
.entry .entry-meta{
    color: hsl( 303, 100%, 33% ); /*coloration date / auteur etc */
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}

.entry .entry-footer{ /*coloration en bas de page */
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
    color: hsl( 303, 100%, 33% );
}

.entry .entry-content a{
    text-decoration: none; /*pour modifier le style natif du "a"*/
}

.entry .entry-title{
    font-family: "gabriola", arial, sans-serif;
    text-align: center;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}

#comments{
    color: hsl( 303, 100%, 33% ); /*pour donner la couleur au tire commentaire*/
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}

p.comment-form-comment label{
    color: hsl( 303, 100%, 33% );
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}

.comments-area .comments-title-wrap .comments-title::before{
    background-color: hsl( 303, 100%, 33% );
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}

/*---------------------------Mise en page des articles--------------------------*/
main#main.site-main article{
    display: flex;
    flex-direction: column;
    align-items: center;
}

div.su-table.su-table-responsive.su-table-alternate table{ /*mise en page cadre d'encadrement*/
    border: 2px solid rgb(51, 255, 153) !important;
    
}

.su-table-alternate table tbody tr td{
    display: flex;
    align-items: center;
    border: 1px solid rgb(51, 255, 153) !important;
}   

/*----------------------------Navigation entre les art--------------------------*/
#main.site-main nav.navigation.post-navigation div.nav-links div.nav-previous{
    display: none;
}                                                                                /*=> Pour empecher la navigatiuon entre les articles car on ne peut pas filtrer les catégories accessibles*/
#main.site-main nav.navigation.post-navigation div.nav-links div.nav-next{
    display: none;
}
#colophon.site-footer div.site-info{
    display: none; /*pour supprimer le footer en double et illisible sur la glace*/
}

.page.type-page.status-publish.hentry.entry header.entry-header h1.entry-title{
    text-align: center; /*pour centrer le titre de toute les pages*/
    font-family: "gabriola", arial, sans-serif;
}

.entry .entry-title::before{
    display: none; /* pour retirer le dash a gauche de chaque titre*/
}

/*------------------------------PAGE ACCUEIL------------------------------------*/
div#page.site div#content.site-content section#primary.content-area main#main.site-main article#post-183.post-183.page.type-page.status-publish.hentry.entry div.entry-content{
    display: flex;
    flex-direction: column;
    align-items: center;
}
#post-183.post-183.page.type-page.status-publish.hentry.entry div.entry-content ul.display-posts-listing{
    padding: 0; /*pour recentrer image et texte de la vue de la derniere actualité*/
    list-style: none;
}

#post-183.post-183.page.type-page.status-publish.hentry.entry div.entry-content h2{
    color: #33ff99;
}

#post-183.post-183.page.type-page.status-publish.hentry.entry div.entry-content h2::before{
    background-color: #33ff99;
}
/*------------------------------ANIMATION---------------------------------------*/
#post-183.post-183.page.type-page.status-publish.hentry.entry div.entry-content{
    position: relative;
}

#post-183.post-183.page.type-page.status-publish.hentry.entry div.entry-content figure.animation{
    width: 350px;
    opacity: 1;
    border: none;
    text-align: center;
    font-size: 1.3em;
    font-family: arial, sans-serif;
    transition: 4s;
    backface-visibility: hidden; /* Permet d'éviter de voir le bloc de dos, donc d'afficher le second bloc */
}

#devant
{
    z-index: 100; /*pour voir la seconde image de l'animation, index -1)*/
}

#derriere
{
    z-index: 50; 
    transform: rotateY(-180deg); /* Celui-ci est retourné par défaut */
    position: absolute; /*pour la placer derriere la premiere photo*/
    top: 0;
}

#devant:hover
{
    transform: rotateY(360deg); /* On passe de 0 à 360° : tour complet */
}

#devant:hover + #derriere
{
    transform: rotateY(180deg);  /* On passe de -180° à 180° : tour complet */
}
/*----------------------------Fin Anim / ---------------------------------------*/ 


/*--------------------------------Page Actualités-------------------------------*/
div.actu div.listing-item{  /*pour intervenir sur la mise en page des actu*/
    border: rgb(51, 255, 153) solid; 
    margin-bottom: 30px;
    padding: 30px;
    background-color: white;
}
.hentry.entry div.entry-content div.actu{
    max-width: 100%;
}
.hentry.category-actualites.entry div.entry-content{
    display: flex;
    flex-direction: column;
    align-items: center;

}

/*--------------------------------Page activité du mois ------------------------*/
.em-booking-form-details p:nth-child(2){
    word-wrap: normal;
}

div.listing-item{
    display: flex;
    flex-direction: column;
    font-family: "gabriola", arial, sans-serif;
}

#post-43.post-43.page.type-page.status-publish.hentry.entry div.entry-content div.su-table.su-table-responsive.su-table-alternate table tbody tr td:hover{
    background-color: hsla(303, 100%, 33%, 0.3) !important; /*pour faire un visuel au survol de la ligne du tableau acti du mois*/
}

#inscription{ /*pour mise en place ancre*/
    position: relative;
    top: -28rem;
}

div.wpforms-container-full .wpforms-form .wpforms-field:hover{
    cursor: pointer !important; /*pour empecher le curseur de prendre une forme de panneau interdit, natif au plugin*/
}
.resa-btn{

    margin-left: 6.6vw;
    transition: background 150ms ease-in-out;
        transition-property: background;
        transition-duration: 150ms;
        transition-timing-function: ease-in-out;
        transition-delay: 0s;
    padding: 14px;
    background-color: hsl( 303, 100%, 33% );
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 5px;
    box-sizing: border-box;
    color: #fff;
    font-weight: bold;
    font-family: "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
}

#post-43.post-43.page.type-page.status-publish.hentry.entry div.entry-content div.su-table.su-table-responsive.su-table-alternate{
    margin-bottom: 32px;
    max-width: 100%; /*pour mise en page du tableau acti du mois*/
}

.resa-btn:link{
    text-decoration: none;
}

.resa-btn:visited{
    text-decoration: none;
    color: #fff;
}
.resa-btn:focus{
    background: #111;
    outline-offset: -4px;/* pou rendre le bouton noir au moment du click*/
}

.resa-btn:hover{
    background: #111;
    color: #fff;
}

/*---------------------------------Page Plus d'infos ---------------------------*/

/*mise en pge article plus d'infos*/
.category-plus-dinfos.entry div.entry-content{
    margin-top: 5.208vw;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hentry.entry div.entry-content div.info{
    max-width: 100%;
}
.info .listing-item{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 10px;
    border: rgb(51, 255, 153) solid;
    background-color: white;
}
div.info div.listing-item span.excerpt-dash{
    display: none;
}

.hentry.event-categories-activites.entry div.entry-content div i{
    display: none; /*pour cacaher l'emoplacement map car inexistant*/
}

header#masthead.site-header.featured-image{
    margin-top: -4.762vw; /*pour mettre l'image mise en avant sur toute la hauteur*/
}

/*-------------------------------Page Contact------------------------------------*/

#wpforms-256{
    border: rgb(51, 255, 153) solid;  /*mise en page formulaire contact*/
    padding: 20px;
    background-color: white;
    width: 100%;
    max-width: 100%; /*pour forcer le fond de page avec bordure a s'étendre*/

}


article#post-44.post-44.page.type-page.status-publish.hentry.entry{
    padding-bottom: 5px;
}

button#wpforms-submit-525{
    transition: background 150ms ease-in-out;
        transition-property: background;
        transition-duration: 150ms;
        transition-timing-function: ease-in-out;
        transition-delay: 0s;
    padding: 14px;
    background-color: hsl( 303, 100%, 33% );
    border: none;
    border-radius: 5px;
    box-sizing: border-box;
    color: #fff;
    font-weight: bold;
    font-family: "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
}

button#wpforms-submit-525:hover{
    background: #111;
    color: #fff;
}

button#wpforms-submit-256{
    transition: background 150ms ease-in-out;
        transition-property: background;
        transition-duration: 150ms;
        transition-timing-function: ease-in-out;
        transition-delay: 0s;
    padding: 14px;
    background-color: hsl( 303, 100%, 33% );
    border: none;
    border-radius: 5px;
    box-sizing: border-box;
    color: #fff;
    font-weight: bold;
    font-family: "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
}

button#wpforms-submit-256:hover{
    background: #111;
    color: #fff;
}

.main-navigation .main-menu > li.menu-item-has-children .submenu-expand.main-menu-more-toggle{
        line-height: 0.8px;/*pour empecher le burger du menu de sortir de la barre de nav*/
    }
/*------------------------Media Queries-----------------------------------------*/


@media all and (min-width: 401px) and (max-width: 900px){
    body{
        padding-top: 10vw; /*pour compenser le menu fixe en haut de page */
        overflow-x: hidden;
    }
    
    #site-navigation.main-navigation{ /*menu haut de page*/
       
        background-color: transparent;
    }
   
    img.custom-logo{
        position: fixed;
        left: 5%;
        top: 15px;
        height: 55px;
        width: 55px;
        z-index: 150;
        border-radius: 5px;
    }
    .site-logo .custom-logo-link:hover{
        box-shadow: none;
    }
    .site-logo .custom-logo-link:active{
        box-shadow: none;        
    }

    #primary.content-area main#main.site-main{
        width: 100%;
        margin: 0; /*pour mise en page globale avec fond blanc étendu*/
    }
    
    #post-183.post-183.page.type-page.status-publish.hentry.entry div.entry-content{
        padding-top: 180px; /*mise en page des textes avec animations sur page accueil*/
    }
    #post-183.post-183.page.type-page.status-publish.hentry.entry div.entry-content figure.animation{
        position: absolute;
        top: 2vw;
        opacity: 1;  
    }
    
    .hentry.entry div.entry-content{
        display: flex;
        justify-content: center; /*mise en page globale*/
        flex-direction: column;
        align-items: center;
        margin: 0 0;
        padding: 0;
        width: 100%;
    }
    
        
    #contact{
        position: relative;
        top: -30vw;
    }
    
    #activites{
        position: relative;
        top: -30vw;
    }
    
    #actualites{
        position: relative;
        top: -30vw; 
    }

    #infos{
        position: relative;
        top: -30vw;
    }

    #politiqueconfidentialite{
        position: relative;
        top: -30vw;
    }

    #mentionslegales{
        position: relative;
        top: -30vw;
    }

    #plansite{
        position: relative;
        top: -30vw;
    }
    
    .entry .entry-content, .entry .entry-summary{
        margin: 0 0;
        padding: 0;
        max-width: 100%;
        width: 100%;
        text-align: center;
    }
    
    #primary.content-area main#main.site-main{
        width: 100%;
        margin: 0;
    }
    
    /*mise en page accueil*/
    .entry-content ul.display-posts-listing{
        margin: 0;
        padding: 0;
    }
    
    div.entry-content ul.display-posts-listing li.listing-item div.content{
        text-align: center;
    }
    
    /*mise en page actualités*/
    .entry div.entry-content div.actu{
        max-width: 100%;
    }
    /*mise en page plus d'info*/
    header#masthead.site-header.featured-image{
        margin-top: -10vw; /*pour mettre l'image mise en avant sur toute la hauteur*/
        margin-bottom: 0;
    }
    
    /*mise en page acti du mois*/
    .su-table-alternate table tbody tr td{
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    
    #inscription{
        position: relative;
        top: -33rem;
    }
    /*mise en page photo des articles*/
    .wp-block-image .alignleft{
        margin: 0;
    }
    
    /*mise en page formulaire contact*/
    #wpforms-256-field_2-container{
        overflow: hidden;
    }
    
    .main-navigation .main-menu > li.menu-item-has-children .submenu-expand.main-menu-more-toggle{
        line-height: 0.8px;/*pour empecher le burger du menu de sortir de la barre de nav*/
    }
    
    .site-header.featured-image .custom-logo-link{
        background: none;
    }
}

@media all and (max-width: 400px){
    body{
        padding-top: 15vw; /* pour compenser le menu fixe en haut de page */
        overflow-x: hidden;
    }
    
    #site-navigation.main-navigation{ /*menu haut de page*/
       
        background-color: transparent;
    }
    
    img.custom-logo{
        position: fixed;
        left: 5%;
        top: 15px;
        height: 55px;
        width: 55px;
        z-index: 150;
        border-radius: 5px;
    }

    .site-logo .custom-logo-link:hover{
        box-shadow: none;
    }
    
    .site-logo .custom-logo-link:active{
        box-shadow: none;        
    }
    a.custom-logo-link:focus{
        outline: none; 
    }
    a.custom-logo-link:active{
        outline: none; 
    }
    
     a.custom-logo-link:active{
        box-shadow: none; 
    }
    
    .site-header.featured-image .custom-logo-link{
        background: none;
    }
        /*mise en page acti du mois*/
    .su-table-alternate table tbody tr td{
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    /*mise en page article plus d'infos*/
    .wp-block-image .alignleft{
        margin: 0;
        display: block;  
    }
    
    header#masthead.site-header.featured-image{
        margin-top: -15vw; /*pour mettre l'image mise en avant sur toute la hauteur*/
        margin-bottom: -5vw;
    }
    
    /*mise en page formulaire contact*/
    #wpforms-256-field_2-container{
        overflow: hidden;
    }
    
    #site-navigation.main-navigation{ /*menu haut de page*/
        height: 15vw;
    }
    
    #inscription{ /*ancre des pages acti du mois avec formulaire de resa en bottom*/
        top: -27rem;
    }
    
    #primary.content-area main#main.site-main{
        width: 100%;
        margin: 0;
    }
    
    .entry .entry-content{
        max-width: 100%;
        width: 100%;
        margin: 0;
        padding: 0;
        display: block;
        text-align: center;
    }
    
    #contact{
        position: relative;
        top: -45vw;
    }
    
    #activites{
        position: relative;
        top: -45vw;
    }
    
    #actualites{
        position: relative;
        top: -50vw; 
    }

    #infos{
        position: relative;
        top: -45vw;
    }
    #politiqueconfidentialite{
        position: relative;
        top: -64vw;
    }

    #mentionslegales{
        position: relative;
        top: -54vw;
    }

    #plansite{
        position: relative;
        top: -45vw;
    }
}   
