/* 
	Theme Name:   L'ici et l'ailleurs
	Description:  L'ici et l'ailleurs
	Author:       Fabien VEYRAT
	Author URI:   http://fabienveyrat.fr
	Template:     greenchilli
	Text Domain:  licietlailleurs
*/

html body{
	background-repeat: 	no-repeat;	
	background-position: top center;
	/*background-image:url("./img/bg.jpg");*/
	background-image:none;
	background-color: #FFF;
}

.margin-5 .wp-block-column {
	margin-left:5px !important;
	margin-right:5px !important;
}

.margin-5 {
	margin-bottom:30px;
}

body #header {
	height: 150px;
}

body header.main-header{
	float:none;
	border-bottom:0px;
}

body #header h1{
	margin-top: 0;
    height: 125px;
}

body #header h1 a{
	background-size: contain;
	height: 115px;
    margin-top: 5px;
}

body #header .menu-menu-principal-container{
	margin-top:40px;
}

body #menu-menu-principal li a:hover {
	color:#a8a8a8 !important;
	text-decoration:none;
}

body #header .menu-menu-principal-container ul#menu-menu-principal li:nth-child(3){
	padding: 5px 10px;
	background: #c09606;
	transition:0.5s;
}

body #header .menu-menu-principal-container ul#menu-menu-principal li:nth-child(3) a, body #header .menu-menu-principal-container ul#menu-menu-principal li:nth-child(3) a:hover{
	color:#FFF !important;
}

body #header .menu-menu-principal-container ul#menu-menu-principal li:nth-child(3):hover{
	background :#23282d;
	color:#FFF;
}

body .secondary-navigation{
	max-width: 	100%;
}

body .secondary-navigation .container h3{
	margin-left:10px;
	margin-right: 	10px;
	float:left;
	color:#FFF;
	font-size:1.2rem;
	margin-top:9px;
}

body .secondary-navigation .container .textwidget{
    display: inline-block;
    color: #FFF;
    margin-top: 10px;
    float: left;
}

body .secondary-navigation	form#searchform {
	float:right;
	margin-right: 	10px;
	clear:none;
	width:auto;
}

body .secondary-navigation	form#searchform input {
	padding-top:3px;
}

body #partenaires .title{
	    text-transform: uppercase;
    margin-bottom: 5px;
    font-size: 14px;
    clear: both;
    text-align: center;
    display: block;
    border-bottom: 1px solid #CCC;
    margin-top: 30px;
    padding-bottom: 5px;
}

body.home .single_page{
	padding:0px;
}

body #partenaires img{
	    height: 90px;
    width: auto;
    margin:0 10px;
}

body.home img.wp-image-412, body.home img.wp-image-414{
	margin-top:0px;
	margin-left:10px;
} 

body.home img.wp-image-407, body.home img.wp-image-416{
	margin-left: 0px;
    margin-top: 0px;
}

body.home img.wp-image-419{
	margin-top:0px !important;
	margin-right: 10px;
}

body.home #content_box #content{
	overflow: auto;
}

body article.films img{
	max-width: 	100%;
}

body.single .col6 {
	float:left;
	width:48%;
	padding: 0 1%;
}
body.single #page{
	padding-top: 0px;
}

body.single .films #content_box{
	padding-top: 	25px;
	padding-bottom: 	20px;
}
/* Contact */

body form.wpcf7-form label{
	display:block !important;
}

body form.wpcf7-form input[type='text'], body form.wpcf7-form input[type='email'], body form.wpcf7-form textarea{
	width:100%;
	border-radius:5px;
	border: 1px solid #ccc;
}

/* Overide */
/*html body header #header ul#menu-menu-principal {
    float: right;
    width: 480px;
}*/

html body #logo {
	text-align:center;
	margin-bottom:20px;
}

html body ul#menu-menu-principal {
	background-color:#4d4d4d;
	text-align:center;
	margin-bottom:0px;
	padding:10px 0px;
}

html body ul#menu-menu-principal li {
	display:inline-block;
}

html body ul#menu-menu-principal li a{
	text-transform: uppercase;
	color:#FFF;
	font-size:20px;
	margin:0 20px;
}

#page {
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    background: #fff;
    padding-top: 25px;
    min-height: 100px;

 }

 body h1 {
 	font-size: 1.6rem;
 }

body h2 {
	font-size:1.4rem;
}
 body h3 {
 	font-size: 1.3rem;
 }

body a.films_img {
	height:150px;
	overflow: 	hidden;
	display	: block;
}

body .card-title a{
	color:#c09606;
}

body .card-title a:hover{
	color:#000 !important;
	text-decoration: none;
}

body .card-body {
	padding-bottom: 40px;
}

body .card-body .readMore {
	position: absolute;
    right: 0;
    left: 0;
    bottom: -8px;
}

body .card-body .readMore a:hover {
	background:#c09606;
	color:#FFF !important;
	text-decoration: none;
}

body .card-body .readMore a {
	width: 100%;
    text-align: center;
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
    background: #424242;
    transition:0.5s;
}

body .single_post img {
	max-width: 	100%;
	margin-bottom: 	15px;
	margin-top:15px;
}

body .img-zone {
	background-size: cover;
	height: 180px;
	background-position: center;
}

body .img-zone a {
	display: block;
	height: 100%;
	width: 100%;
}

body .txt-zone { 
	background:#FFFFFF8C;
	position: absolute;
	top: 20%;
	left: 0;
	font-size: 24px;
	padding: 10px;
	color: #000;
	text-transform: uppercase;
	font-weight: bold;
}

/* ==========================================================================
   Compatibilite d'affichage WordPress 7 (ajoute le 2026-10-01)
   Reproduit le rendu des blocs de WordPress 5.1 pour garder la mise en page
   d'origine (colonnes, encadres colores, galeries).
   ========================================================================== */

/* Liens dans les paragraphes colores : meme couleur que le texte de l'encadre */
p.has-text-color a { color: inherit; }

/* Marges interieures des paragraphes avec fond de couleur */
p.has-background { padding: 20px 30px; }

/* Espace sous les images */
.wp-block-image { margin-bottom: 1em; }

/* Galeries en 2 colonnes */
body ul.wp-block-gallery.columns-2 { margin: 21px 0 22px 22px; padding: 0; gap: 0 !important; }
body ul.wp-block-gallery.columns-2 > li.blocks-gallery-item { width: calc((100% - 16px) / 2); margin: 0 16px 16px 0; }
body ul.wp-block-gallery.columns-2 > li.blocks-gallery-item:nth-of-type(2n) { margin-right: 0; }

/* Colonnes : largeurs et espacements de WordPress 5.1 (ecrans larges) */
@media (min-width: 782px) {
	body .wp-block-columns { gap: 0 !important; }
	body .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column { flex: 0 1 50%; margin-bottom: 1em; }
	body .wp-block-columns > .wp-block-column:nth-child(2n+1),
	body .wp-block-columns > .wp-block-column:not(:last-child) { margin-right: 32px; }
	body .wp-block-columns > .wp-block-column:nth-child(2n),
	body .wp-block-columns > .wp-block-column:not(:first-child) { margin-left: 32px; }
}
