/*
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;
}

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: sticky;
    top: 0px;
    left: 0px;
    z-index: 10;
    width: 100% ;
    max-width : 1200px ;
    margin: 0 auto;
    flex:0;
}

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: absolute;
	top: 8px;
	left: 0;
	background: #FFF;
	border-radius: 0 0 24px 24px;
	box-shadow: 2px 8px 8px rgba(0,0,88,0.2);
}

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

aside.top-widgets {

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

aside.top-widgets ul#menu-lpm-top {
	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;
}


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


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

aside.top-widgets ul#menu-lpm-top a, 
aside.top-widgets ul#menu-lpm-top 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-lpm-top li:hover a {
    color: #54c3cb;
}


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



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


#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;
}

#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: 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);
}





.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;
}
.post-card a{
    text-decoration: none;
}



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

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


#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 figure img{
    border-radius: 8px;
}

#lpm-main figure figcaption{

    background-color: #FFFFFF;
    color: #0062a7;
    font-size: 12px;
    padding: 8px;
    padding-bottom: 0 ;
    margin: 0;
    border-radius: 8px 0 0 0 ;
    position: absolute;
    bottom: 0;
    right: 0;
}

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

