/*
Theme Name: Theme de base Moduloo
Text Domain: moduloo
Version: 2.2
Tested up to: 6.2
Requires at least: 4.7
Requires PHP: 5.2.4
Author URI: https://wordpress.org/
Theme URI: https://wordpress.org/themes/twentytwenty/
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

All files, unless otherwise stated, are released under the GNU General Public
License version 2.0 (http://www.gnu.org/licenses/gpl-2.0.html)

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned
with others.
*/

@font-face {
    font-family: 'GillSansMT';
    src: url('/wp-content/themes/mondecommun/assets/fonts/GillSansMT.eot');
    src: url('/wp-content/themes/mondecommun/assets/fonts/GillSansMT.eot') format('embedded-opentype'),
         url('/wp-content/themes/mondecommun/assets/fonts/GillSansMT.woff2') format('woff2'),
         url('/wp-content/themes/mondecommun/assets/fonts/GillSansMT.woff') format('woff'),
         url('/wp-content/themes/mondecommun/assets/fonts/GillSansMT.ttf') format('truetype'),
         url('/wp-content/themes/mondecommun/assets/fonts/GillSansMT.svg#GillSansMT') format('svg');
}

HTML {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
font-size: 62.5%;  
}

BODY{
	position:relative;
	width: 100%;
  margin: 0;
  padding: 0;	
	font-size: 2rem;  
	color:black;
	background:#ffffff;
	line-height:1.4;
font-family: 'GillSansMT';
	}
IMG{
max-width:100%;
height:auto;
}

*{
box-sizing: border-box;
}
/* =========================================================
             HEADER
 ========================================================= */
#site-header{
	width:100%;
	height:130px;
	background:white;
	-webkit-box-shadow: 0px 5px 8px -3px rgba(0,0,0,0.25); 
box-shadow: 0px 5px 8px -3px rgba(0,0,0,0.25);
z-index:10;
position: relative;
}
#site-header>div{
	max-width:1920px;
	position:relative;
	margin:0 auto;
}
.site-logo{
width: 230px;
  padding: 10px 20px 0 20px;
float:left;
}
A.site-titre{
display:block;
font-size:3rem;
font-weight: 500;
padding: 40px 0;
color:black;
}
/* =========================================================
             MENU PRINCIPAL
 ========================================================= */
.primary-menu{
position:absolute;
top: 40px;
  right: 20px;
}
.primary-menu>ul{
max-width:1400px;
margin:0 auto;
padding:0;
display: block;
text-align:center;
}
.primary-menu li{
display:inline-block;
list-style: none;
margin:0;
padding:0;
}

.primary-menu li a{
display: inline-block;
  margin: 15px 0;
  padding: 0px 20px 0 14px;
  color: gray;
  text-decoration: none;
  font-size: 2.2rem;
  font-weight: normal;
  border-right: 1px solid white;
}	
.primary-menu li:hover > .sub-menu {
  animation: apparitionSousMenu 1s forwards;
}
.sub-menu{
position:absolute;
background:white;
overflow: hidden;
max-height: 0;
padding:0;
z-index:50;
}
.sub-menu li{
display:block;
text-align:left;
list-style: none;
margin:0;
padding:0;
}
.sub-menu li A{
	display:block;
	width:100%;
margin:0;
padding:15px 20px;
border:0 none;
font-size: 1.8rem;
font-weight: normal;
}
.sub-menu li A:hover{
background:white;
color:#009f3c;
}
@keyframes apparitionSousMenu {
  0% {
    box-shadow: 0px 3px 3px 1px rgba(0,0,0,0);
    border-top: 3px solid white;
  }
  30% {
    box-shadow: 0px 3px 3px 1px rgba(0,0,0,0.3);
  }
  100% {
    max-height: 50em;
    border-top: 3px solid white;
    box-shadow: 0px 3px 3px 1px rgba(0,0,0,0.3);
  }
}

#bouton_recherche{
  position: absolute;
  right: 10px;
  width: 40px;
  top: 40px;
}
 
 
/* =========================================================
             MENU SMARTPHONE
 ========================================================= */ 
#bouton_menu{
	display:none;
width: 35px;
  height: 35px;
  position: absolute;
  top: 14px;
  left: 7px;
  cursor: pointer;
  background: url(/wp-content/themes/Ressources_urbaines/assets/images/bt_menu.png) no-repeat center center #009f3c;
  border-radius: 5px;
}	
#menu_smartphone{
	display:none;
	width:100%;
	background:#009f3c;
	position:absolute;
	top:112px;
	left:0;
	z-index:50;
	padding:0 0 50px 0;
}
 #menu_smartphone li{
	 list-style:none;
 }
  #menu_smartphone li A{
	color:white;
	border-bottom:1px solid white;
	text-decoration:none;
	display:block;
	padding:10px;
	text-transform:uppercase;
 }
  #menu_smartphone  .sub-menu {
  max-height: none;
  padding:10px 0 20px 30px;
  position:relative;
  left:0;
  top:0;
 }
  #menu_smartphone .sub-menu li A{
  max-height: none;
  padding:10px 0;
  text-transform:none;
 }
#menu_smartphone .sub-menu li A:hover{
	   color:white;
	   background:transparent;
   }
#menu_smartphone  .second-menu_smartphone li A{
	text-transform:none;
 }
 #menu_smartphone  .second-menu_smartphone{
margin:30px 0  0 0;
 }
 
 
 /* =========================================================
             FOOTER
 ========================================================= */ 
#site-footer{
background: linear-gradient(#5674ce 0%, #032488 100%);
padding:20px 50px;
color:white;
font-size: 1.5rem;
}	
#site-footer h3{
color:white;
border-bottom:1px solid #f7e6d8;
padding:0 0 15px 0;
text-align:center;
margin: 0 40px 20px;
  font-size: 2rem;
}
.menu-footer{
border-top:1px solid #f7e6d8;
text-align:right;
padding: 20px 0 0 0;
}
.menu-footer ul{
display:inline;
listèstyle:none;
}
.menu-footer li{
display:inline-block;
}
.menu-footer a{
color:#f7e6d8;
  margin: 0 20px;
}
.rezo {
text-align:center;
color:#f7e6d8;
}
#site-footer svg {
width: 20px;
margin: 8px 10px 0 0;
}
.rezo img {
width: 50px;
  margin: 10px;
  overflow: hidden;
  border-radius: 9px;
}

 /* =========================================================
     GENERALITES
 ========================================================= */ 
#site-content{
	margin:0 auto;
	max-width:1500px;
padding: 0 5%;
}
.clear{
clear:both;
width: 100%;
height: 1px;
}

.of{
overflow:hidden;
}
 .deux_colonnes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 50px;
  row-gap: 30px;
  padding: 10px 0 40px 0;
} 
.trois_colonnes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 50px;
  row-gap: 30px;
  padding: 10px 0;
} 
.quatre_colonnes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 50px;
  row-gap: 30px;
  padding: 10px 0;
} 
.lien_bloc, .lien_mouton{
display:block;
text-decoration:none;
color:black;
text-align:center;
}	
.lien_bloc{
text-align:left;
font-size:1.7rem;
}	


.image-container {
  position: relative;
  width: 100%; /* La largeur du conteneur peut être ajustée selon vos besoins */
  padding-bottom: 55%; /* 4/3 en pourcentage (3 / 4 * 100) */
  margin:0 0 10px 0;
  background:#F0F0F0;
}
.image-carre {
position: relative;
  width: 70px;
  padding-bottom: 70px;
  margin: 0 10px 0 0;
  background: #F0F0F0;
  float:left;
}
.image-rectangle{
position: relative;
  width: 210px;
  padding-bottom: 140px;
  margin: 0 30px 0 0;
  background: #F0F0F0;
  float: left;
}
.image-container img, .image-carre img, .image-enquete img , .image-rectangle img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ajuste l'image pour remplir la zone définie */
}
.lien_bloc H3{
	font-size: 2.2rem;
	margin: 0 0 20px 0;
	color:black;
} 
.descriptif{
font-size:1.6rem;
}
.descriptif p{
margin:0;
}

.lien_mouton .vignette{
border-radius:100px;
overflow:hidden;
margin:0 auto 20px auto;
height: 150px;
  width: 150px;
}
.lien_mouton h3{
color:black;
text-align:center;
margin:0;
}
.lien_mouton .parrain{
padding:15px 0 0 50px;
background:url(/wp-content/themes/moutons/assets/images/prix.png) no-repeat left center;
text-align: left;
  font-weight: bold;
  font-size: 1.5rem;
  background-size: 57px;
}
.lien_mouton .parrain span{
font-size: 3rem;
}
.lien_mouton button{
font-size: 2rem;
}
/* =========================================================
        HOME PAGE 
 ========================================================= */ 
.partenaires img{
height:50px;
width:auto;
}
 
 
 /* =========================================================
            PAGE ARTICLE 
 ========================================================= */  
article{
background:white;
padding: 30px 14%;
}  

section{
background:white;
padding: 10px 40px;
}

H1{
font-size: 4rem;
  line-height: 1.3;
  text-align: center;
  border-bottom: 1px solid #E0E0E0;
  max-width: 80%;
  margin: 10px auto 50px;
  padding: 0 0 20px 0;
  font-weight: 500;
}
H2{
color:#555555;
background:#E0E0E0;
border-radius:10px;
padding: 13px 20px;
  margin: 50px 0 15px;
  width: fit-content;
  font-size: 2rem;
}
.home  H2{
margin-top:20px;
}

H3{
color:#5674ce ;
font-size: 2.7rem;
margin: 25px 0 20px 0;
line-height: 1.3;
}
.les_dates{
font-size: 1.6rem;
  color: #999;
  margin: 0;
}
.chapo{
font-weight:bold;
}
A{
color:#009f3c;
text-decoration:none;
}
table{
font-size: 1.7rem;
margin:15px 0;
}
table tr:nth-child(even){
	background:#f9f9f9;
}
table td {
	border-top:1px solid #ddd;
	padding:6px;
	vertical-align: middle;
}
.wp-block-separator{
max-width:50%;
margin:50px auto;
color:#E0E0E0;
}


 /* =========================================================
            AGENDA etc...
 ========================================================= */  
A.bloc_agenda{
display: block;
  border-bottom: 1px solid #C0C0C0;
  padding: 0 20px 20px;
  margin: 0 auto 20px;
  color: black;
  font-size: 1.5rem;
  overflow: hidden;
  max-width: 1090px;
}

.bloc_agenda div{
overflow:hidden;
}
.bloc_date{
background:rgb(245, 244, 237);
color:black;
padding:10px 20px;
border-radius:10px;
float:left;
margin:0 20px 0 0;
text-align:center;
}
.bloc_datepage{
margin: 20px 50px 0 0;
}
.bloc_date span{
font-size:3rem;
font-weight:700;
display:block;
}
.bloc_agenda h3{
font-size:2.3rem;
color:black;
margin:0 0 3px 0;
}
.tag{
	display:inline-block;
background: rgb(63, 167, 142, 0.4);
color:rgb(63, 167, 142);
font-weight:600;
font-size: 1.4rem;
padding: 5px 6px 5px 6px;
border-radius:3px;
margin:3px;
line-height:1;
}

.bouton_agenda{
float: right;
  border: 1px solid black;
  border-radius: 6px;
  padding: 10px;
  margin: 60px 20px;
}
 /* =========================================================
            FORMULAIRE, BOUTON, etc...
 ========================================================= */  
.bouton, .bouton_large, .wp-block-button__link{
display: inline-block;
  background: #73ac9a;
  color: white;
  padding: 9px 20px;
  font-weight: bold;
  margin: 15px 10px;
  border-radius: 50px;
}
.bouton_large{
display: block;
width:100%;
max-width:80%;
text-align:center;
margin:15px auto;
}

INPUT{
height: 40px;
  border-radius: 5px;
  border: 1px solid gray;
  padding: 10px 20px;
  font-size: 1.6rem;
  margin: 10px 0;
  width: 600px;
  max-width: 95%;
}
INPUT[type="submit"]{
width: fit-content;
}
SELECT{
height: 40px;
  border-radius: 5px;
  border: 1px solid gray;
  padding: 10px 20px;
  font-size: 1.6rem;
  margin: 10px 0;
  width: 300px;
  max-width: 95%;
}
/* max-width pour  résolutions en dessous de 900px*/
@media screen and (max-width: 900px) {
	main {
	padding: 4px 0;
	}
	#site-header {
	  height: 110px;
	}
	#bouton_menu{	
	display:block;
	}
	.site-logo {
	  width: 200px;
	  padding: 0 0 11px 50px;
	}	

	.quatre_colonnes, .trois_colonnes {
	  grid-template-columns: repeat(2, 1fr);
	}

	article {
	padding: 20px 4%;
	}
	section {
	  padding: 10px 4%;
	}
}


/* max-width pour  résolutions en dessous de 500px*/
@media screen and (max-width: 500px) {
	H1 {
	  font-size: 3rem;
	  margin: 0 0 20px 0;
	  line-height: 1.1;
	}
	.quatre_colonnes {
	  grid-template-columns: 1fr;
	  row-gap: 10px;
	}
	.deux_colonnes H4{
		margin:10px 0;
	}

}
