/*
Theme Name: LPM 00
Theme URI: https://lpm.asso.fr/
Author: MD
Author URI: https://lpm.asso.fr
Description: Theme LPM 00
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lpm00
Tags: lpm
*/

body {
	width: 100%;
	overflow-x: hidden;
    color:#222222 ;

}

body *{
    box-sizing: border-box;

}

body .wp-site-blocks{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    min-height: 100vh;

    display : flex ;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-between;
}



h1, h2, h3{
    color:#0062a7 ;
    line-height: 1.2;
}

p{
    margin : 0;
    margin-bottom: 8px ;
    line-height: 1.4;
    
}

button, input[type="submit"], input[type="reset"] {
	background: #0062a7;
	color: #FFFFFF;
	border: none;
    border-radius: 8px;
	padding: 8px 12px;
	cursor: pointer;
	outline: none;

    box-shadow: 2px 4px 4px rgba(0,0,88,0.2);
}

#lpm-main {
	display: block;
	margin: 0 auto;
	width: calc( 100% - 24px );
	overflow: hidden;
	padding: 24px 12px 24px 12px;
	flex: 1;
}

.wp-block-template-part {
    display: block;
    margin: 0 ;
    width: 100%;
    overflow: visible;
    position: relative;
}


.wp-block-template-part.header{
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: 111;
    width: 100% ;
    max-width : 1200px ;
    margin: 0 auto;
    flex:0;
    pointer-events: none;
}



@media only screen and (min-width: 1024px) {
    .wp-block-template-part.header{
        position: sticky;
    }
}





body:has(#wpadminbar) .wp-block-template-part.header{
    top: 32px;
}




main img {
    max-width: 100%;
    height: auto;
    display: block;
}


#header-logo {
	height: 104px;
	width: 120px;
	display: inline-block;
	position: fixed;
	top: 8px;
	left: 0;
	background: #FFF;
	border-radius: 0 0 24px 0px;
	box-shadow: 2px 8px 8px rgba(0,0,88,0.2);
    pointer-events: all;
}

body:has(#wpadminbar) #header-logo {
    top: 40px;
}

#header-logo img {
	height: 120px;
	width: 120px;
	display: inline-block;
	position: relative;
	top: -12px;
}

#header-logo svg {
	height: 24px;
	width: 24px;
	display: inline-block;
	position: absolute;
	top: 0px;
    fill : #FFFFFF ;
}


#header-logo #corner1 {
	left: -24px ;
    transform: rotate(180deg);
}

#header-logo #corner2 {
	right: -24px ;
    transform: rotate(90deg);
}




#menu-mobile {

    position: fixed;
    left: -320px;
    top: 8px;
    z-index : 100 ;
    max-width : 100vW ;
    width: 320px;
    min-height: 100vh ;
    background-color : #0062a7;
    color: #FFFFFF;
    padding : 40px ;
    padding-top: 120px;
    box-shadow: none;

    transition: left 200ms;
}


body:has(#wpadminbar) #menu-mobile{
    top: 40px;
}



#menu-mobile.open {
    left: 0px;
}



#menu-mobile * {

    color: #FFFFFF;
}


#menu-mobile #btn-mobile {
	position: fixed;
	left: 0px;
	top: 112px;
	width: 40px;
	height: 40px;
	border-radius: 0 0 4px 0;
	background-color: #0062a7;
	cursor: pointer;

    display : block ;
    transition: top 200ms;
}

    
#menu-mobile.open #btn-mobile {
    position: absolute;
    left: auto ;
    right : 0px ;
    top : 0px ;
}

body:has(#wpadminbar) #btn-mobile {
    top: 144px;
}



#menu-mobile #btn-mobile .dashicons-menu{
    position: absolute;
    top: 10px;
    left: 10px;
}











@media (min-width: 1280px) {



    #header-logo {

        position: absolute;
        top: 8px;
        left: 0;
        border-radius: 0 0 24px 24px;

    }

    body:has(#wpadminbar) #header-logo {
        top: 8px;
    }

    


    #menu-mobile {
        box-shadow: 4px 8px 40px rgba(0,0,88,0.4);
    }

    #menu-mobile #btn-mobile {
        top: 8px;
    }

    body:has(#wpadminbar) #btn-mobile {
        top: 40px;
    }

}





#menu-mobile #btn-mobile svg {
	height: 12px;
	width: 12px;
	display: inline-block;
	position: absolute;
	top: 40px;
	fill: #0062a7;
	z-index: 1;
}

#menu-mobile #btn-mobile #corner1 {
	left: 0;
	transform: rotate(90deg);
}



#menu-mobile ul.menu,
#menu-mobile ul.sub-menu {
	list-style: none;
    padding: 0;
}

#menu-mobile ul.menu > li {
	padding-bottom: 8px ;
}


#menu-mobile ul.sub-menu {
	padding-left: 16px ;
}

#menu-mobile ul.sub-menu li:before{
	content: "🢒";
    margin-right: 8px ;
}

#menu-mobile ul.menu > li > a{
    font-family: "Lemon Milk", sans-serif;
}


#menu-mobile ul.menu a, 
#menu-mobile ul.menu a:visited {
	display: inline-block;
	text-decoration: none;
	font-size: 12px;
}



































aside.top-widgets {
    display: none ;
}


aside.top-widgets > svg {
    display: none ;
}

@media only screen and (min-width: 1024px) {

    aside.top-widgets {
        display: inline-block;
        width: calc(100% - 120px);
        vertical-align: top;
        position: absolute;
        top: 0;
        left: 120px;
    }


    aside.top-widgets svg {
        height: 12px;
        width: 12px;
        display: inline-block;
        position: relative;
        top: 8px;
        fill : #FFFFFF ;
    }


    aside.top-widgets #corner1 {
        transform: rotate(90deg);
        float: right;
    }

    aside.top-widgets #corner2 {
        transform: rotate(180deg);
        float: right;
        display: block;
    }



}



aside.top-widgets ul.menu {
	display: block;
	list-style: none;
	margin: 0;
	margin-top: 8px;
	padding: 0;
	background: #FFFFFF;
	border-radius: 0 0 12px 12px;
	float: right;
	box-shadow: 2px 8px 8px rgba(0,0,88,0.2);
    max-height: 32px;

    pointer-events: all;

}


aside.top-widgets ul.menu li {
    display: inline-block;
    vertical-align: top;
    position: relative;
}


aside.top-widgets ul.menu li:first-child {
    border-radius: 0 0 0 12px;
}
aside.top-widgets ul.menu li:last-child {
    border-radius: 0 0 12px 0;
}

aside.top-widgets ul.menu a, 
aside.top-widgets ul.menu a:visited {
	display: inline-block;
	padding: 8px;
	text-decoration: none;
	font-size: 12px;
	font-weight: bold;
	color: #0062a7;
	padding-top: 6px;
}

aside.top-widgets ul.menu li:hover a {
    color: #54c3cb;
}


aside.top-widgets ul.menu li.current-menu-item ,
aside.top-widgets ul.menu li.current-menu-parent {
    background-color: #0062a7;
    border-radius: 0 0 12px 12px;
    padding-top: 8px ;
}
aside.top-widgets ul.menu li.current-menu-item a ,
aside.top-widgets ul.menu li.current-menu-parent a {
    color: #FFFFFF;
}

aside.top-widgets ul.menu li.current-menu-item svg {
	height: 12px;
	width: 12px;
	display: inline-block;
	position: absolute;
	top: 0px;
    fill : #FFFFFF ;
    z-index: 1;
}

aside.top-widgets ul.menu li.current-menu-item #corner1 {
	left: -12px ;
    transform: rotate(180deg);
}

aside.top-widgets ul.menu li.current-menu-item #corner2 {
	right: -12px ;
    transform: rotate(90deg);
}



.header .white-top {
	width: 100vw;
	height: 8px;
	background-color: #FFFFFF;
	position: fixed;
	top: 0;
	left: calc( -50vw + 50% );
	display: block;
	box-shadow: 2px 4px 24px rgba(0,0,88,0.4);
}

body:has(#wpadminbar) .header .white-top {
    top: 32px;
}


#slider-lpm{
    position: relative;
    top: 0;
    left: 0;
    z-index: 1;
    display: block;
    width : 100%;
    height: 100vh;
    background-color:#CCCCCC;


}


#slider-lpm .slide{

    display: block;
    width : 100%;
    height: 100vh;
    background-color:#FFFFFF;
    background-position: center center;
    background-size: cover;
    box-shadow: inset 0px 0px 40px rgba(0,0,88,0.4);
}

#slider-lpm #slider-arrow{

    position : absolute ;
    bottom : 12px;
    left : calc( 50% - 20px);
    width : 40px;
    height : 40px;
    background-color: #FFFFFF;
    border-radius: 8px;
    color: #0062a7;
    font-size : 16px;
    line-height: 1;
    text-align: center;
    padding: 0;
}

#slider-lpm #slider-arrow .dashicons {
font-size: 32px;
    line-height: 1;
    width: 100%;
    height: 100%;
    padding: 0;
    padding-top: 4px;
}

.cat-thumbnail .legend-wrapper,
.post-thumbnail .legend-wrapper,
#slider-lpm .legend-wrapper{
    display: block;
    width: 100%;
    max-width: 1200px;
    height: 100%;
    position: relative;
    margin: 0 auto;
}

.legend-wrapper h1{
    margin: 0 ;
    margin-bottom : 12px;
}

.legend-wrapper .cat-desc{
    text-align: justify;
}

#slider-lpm .legend {
	position: absolute;
	bottom: 64px;
	right: 0px;
	width: 400px;
	max-width: 50%;
	height: auto;
	background-color: #FFFFFF;
	border-radius: 8px;
	padding: 24px;
}


.category-header, 
.post-header{
    position: relative;
    top: 0;
    left: 0;
    display: block;
    width : 100%;
    height: 100vh;

    transition: height 200ms;
}

@media (min-width: 1280px) {

    .category-header, 
    .post-header{
        position: relative;
        top: 0;
        left: 0;
        display: block;
        width : 100%;
        height: 50vh;
    }

}


.category-header .cat-thumbnail, 
.post-header .post-thumbnail{
    position: relative;
    top: 0;
    left: 0;
    display: block;
    width : 100%;
    height: 100%;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden ;
    box-shadow: rgba(0, 0, 88, 0.4) 0px 0px 40px inset;
}




#lpm-cat-title,
#lpm-post-title {

    background-color: #FFFFFF;
    padding : 24px ;
    padding-bottom: 0;
    position : absolute;
    left:0;
    bottom:0;
    display: block;
    width : auto ;
    max-width:500px;
    height: auto ;
    border-radius: 12px 12px 0 0 ;

    box-shadow: 2px -4px 16px rgba(0,0,88,0.2);
}


#lpm-cat-title svg,
#lpm-post-title svg {
	height: 12px;
	width: 12px;
	display: inline-block;
	position: absolute;
	bottom: 0px;
    fill : #FFFFFF ;
}

#lpm-cat-title #corner1,
#lpm-post-title #corner1 {
	left: -12px ;
    transform: rotate(-90deg);
}

#lpm-cat-title #corner2,
#lpm-post-title #corner2 {
	right: -12px ;
    /*transform: rotate(0deg);*/
}







.post-card{
    display : flex ;
    flex-direction: row;
    flex-wrap: wrap;

    max-width: 100%;
    height : auto ;
    min-height : 200px ;

    background-color : #FFFFFF ;
    border: #FFFFFF 8px solid ;
    border-radius : 16px ;
    box-shadow: 2px 2px 8px rgba(0,0,88,0.2);

    margin-bottom : 24px;
    text-decoration: none;
}

.post-card .post-card-image,
.post-card .post-card-txt{
    flex : 1 300px;
    height : auto ;
    min-height : 200px ;

}

.post-card .post-card-image{
    background-position: center center;
    background-size: cover;
    border-radius : 8px 0 0 8px;
}

.post-card .post-card-txt{
    padding : 12px 24px;
    border-radius: 0 8px 8px 0;
}

.post-card *{
    color : #FFFFFF;
}

.post-card p{
    font-size: 14px;
    text-align: justify;
}
.post-card a{
    text-decoration: none;
}

.post-card .post-card-date{
    font-size : 12px ;
    font-style: italic;
    display: block;
    text-align: right;
    transform : translateY(-12px) ;
}


#lpm-main .page,
#lpm-main .category-posts,
#lpm-main .article, 
#lpm-main #catalogue{

    width : 100%;
    max-width: 1200px;
    margin : 0 auto ;
    margin-bottom: 60px;

}


#lpm-main .category-posts{
    margin-top: 120px;
}

#lpm-main p{
    text-align: justify;
}

#lpm-main p.has-text-align-right{
    text-align: right;
}

#lpm-main p.has-text-align-center{
    text-align: center;
}



#sejours-list {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 20px;
    justify-content: space-between;
}


.sejour-card {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;

	flex: 1 360px;
	height: auto;
	min-height: 200px;
	background-color: #FFFFFF;
	border: #FFFFFF 8px solid;
	border-radius: 16px;
	box-shadow: 2px 2px 8px rgba(0,0,88,0.2);
	margin-bottom: 24px;
	text-decoration: none;
}


.wp-block-template-part.footer{
    width: 100%;
    height: auto ;
    background-color: #0062a7;
    color: #FFFFFF;
    margin:0;
    padding : 24px 0;
    
    flex:0;
}


#lpm-footer {
	width: calc( 100% - 24px );
	max-width: 1200px;
	height: auto;
	margin: 0 auto;
	padding: 0 12px;
}

#lpm-footer a,
#lpm-footer a:visited{
    color: #FFFFFF;
}

#lpm-footer a:hover{
    color: #54c3cb;
}


#footer-widgets{
    display : flex ;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap : 24px;
    width: 100%;
    height: auto ;
}

#footer-widgets .widget{
    flex : 1 240px ;
}
#footer-widgets .widget *{
    color: #FFFFFF;
    line-height: 1.2;
}

#footer-widgets .widget ul{
    list-style: none;
    margin: 0;
    padding: 0;
    
}

#footer-widgets .widget p,
#footer-widgets .widget a{
    font-size : 12px;
}

#footer-widgets .widget a{
    text-decoration: none;
}


#copyright-widgets {
	display: flex;
	width: 100%;
	height: auto;
	margin-top: 32px;
	font-size: 10px;
	gap: 4px;
	justify-content: center;
}

#copyright-widgets p{
    margin : 0 ;
}






#lpm-main figure{
    position: relative;
    border: #FFFFFF 8px solid ;
    border-radius: 16px;
    box-shadow: 2px 4px 10px rgba(0,0,88,0.2);
    margin-bottom : 12px ;
}

#lpm-main .embed-dailymotion{
    position: relative;
    border: #FFFFFF 8px solid ;
    border-radius: 16px;
    box-shadow: 2px 4px 10px rgba(0,0,88,0.2);
    margin : 0 ;
    margin-bottom : 12px ;
}

#lpm-main iframe{
    border-radius: 12px;
    margin : 0 ;
}

#lpm-main figure.transparent{
    border: none ;
    box-shadow: none;
}
#lpm-main figure::before{
    display:none;
}



#lpm-main figure:has(figure){
    border: none ;
    box-shadow: none;
}

#lpm-main figure img{
    border-radius: 8px;
}

#lpm-main figure figcaption {
	background: #FFFFFF;
	color: #0062a7;
	font-size: 12px;
	padding: 8px;
	padding-bottom: 4px;
	margin: 0;
	border-radius: 8px 0px 0px 0px !important;
	position: absolute;
	bottom: 0;
	right: -1px;
	left: auto;
	text-shadow: none;
	width: auto;
	display: block;
	transform: unset;
    overflow: unset;
    line-height: 1;
}

#lpm-main .wp-block-image.aligncenter {
  margin : 0 auto 12px auto ;
}

#lpm-main figure.wp-block-pullquote{
    display: table;
    padding: 24px;
    margin: 24px auto;
}

#lpm-main figure#contact-form{
    display: table;
    padding: 24px;
    margin: 24px auto;
}


#lpm-main figure.wp-block-pullquote *{
    width: auto;
    min-width: none;
}


#lpm-main figure.wp-block-pullquote p{
    font-size : 20px;
}
#lpm-main figure.wp-block-pullquote cite{
    font-size : 16px;
}






#lpm-main .wp-block-catfolders-block-catfolders-gallery figure {
    margin : 0 ;
}








#lpm-main input, 
#lpm-main textarea, 
#lpm-main select {
	width: 100%;
	border-radius: 4px;
	border: #BBB 1px solid;
	padding: 4px 8px;
    margin-bottom : 12px ;
    background : #FFFFFF ;

    font-family: "Poppins", sans-serif;
}


#lpm-main input[type=submit], 
#lpm-main button {
	width: 100%;
    border: none;
    margin : 4px auto 12px auto;
	padding: 12px 24px;
	font-size: 18px;
	line-height: 1.4;
	border-radius: 8px;
    display: block;
    text-transform: uppercase;
    font-family: "Lemon Milk", sans-serif;
}


#footer-widgets .widget input[type=search]{
    width: 100%;
    border: none;
    margin : 4px auto 12px auto;
	padding: 8px 24px;
	font-size: 18px;
	line-height: 1.4;
	border-radius: 8px;
    display: block;
    text-transform: uppercase;
    color: #222222 ;
}


#footer-widgets .widget .wp-block-search .wp-element-button{
    width: 44px;
    height: 44px;
    margin-top: 4px;
    padding: 4px 10px;
}

#lpm-main .wpcf7-not-valid-tip{
    font-size : 12px ;
    transform: translateY(-8px);
}










#lpm-main .wpcf7-checkbox {
    display: flex;
}

#lpm-main span.wpcf7-list-item,
#lpm-main .wpcf7-list-item label{

    display: flex;
    margin-right : 24px;
}

#lpm-main .wpcf7-list-item label input[type=radio],
#lpm-main .wpcf7-list-item input[type=checkbox]{

    display: inline-block;
    margin-right : 8px;

}
#lpm-main .wpcf7-list-item label > span{

    display: inline-block;

}

#lpm-main hr {
  color: #0062a7;
  border: #0062a7 2px solid;
  border-radius : 2px;
  display: block;
  margin-bottom: 60px;
  width: 100%;
}


@keyframes messageIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes messageDisplay {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}

@keyframes messageOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}



.wpcf7-response-output {
	position: fixed;
	left: 50vw;
	top: 50vh;
	z-index: 222;
	display: block;
	padding: 24px !important;
	border-radius: 16px;
	background: #FFFFFF;
	transform: translate( -50% , -50% ) scale(1);
	box-shadow: 2px 4px 10px rgba(0,0,88,0.2);
	border-width: 8px !important;
    transform-origin: center;

    opacity: 0 ;
    pointer-events: none;

}
/*
.wpcf7 form.init .wpcf7-response-output,
.wpcf7 form.resetting .wpcf7-response-output,
*/

.wpcf7 form.sent .wpcf7-response-output,
.wpcf7 form.submitting .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.validating .wpcf7-response-output {

    animation-name: messageIn, messageDisplay, messageOut;
    animation-duration: 250ms, 5000ms, 500ms;
    animation-delay: 0ms, 250ms, 5250ms; /* add this */
    animation-timing-function: ease-out, ease-in, ease-in;
    animation-iteration-count: 1, 1, 1;
}






