/* SRUCTURE */

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
}

body{
    font-family:'proxima-nova-condensed';
    font-size:18px;
}
.site-content {
    max-width: 1160px;
    margin: auto;
}

.site-content-sm {
    max-width: 760px;
    margin: auto;
}

/* MISE EN FORME */

h1,h2,h3,h4,h5,h6{
    font-family:futura-pt-condensed;
}

/* Titres */

h1 {
  font-size: 60px;
  line-height: 1.5;
  color: #333;
  margin: 0;
  padding: 0;
}

h2 {
  font-size: 50px;
  line-height: 1.5;
  color: #333;
  margin: 0;
  padding: 0;
}

h3 {
  font-size: 40px;
  line-height: 1.5;
  color: #333;
  margin: 0;
  padding: 0;
}

h4 {
  font-size: 30px;
  line-height: 1.5;
  color: #333;
  margin: 0;
  padding: 0;
}

h5 {
  font-size: 20px;
  line-height: 1.5;
  color: #333;
  margin: 0;
  padding: 0;
}

h6 {
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  margin: 0;
  padding: 0;
}

/* Paragraphes */

p {
  line-height: 1.5;
  color: #333;
  margin: 0;
  margin-top:8px;
  margin-bottom:12px;
  padding: 0;
}

.lead {
  font-size: 22px;
  line-height: 1.5;
  color: #333;
  margin: 0;
  padding: 0;
}

/* Listes */

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

ol {
  list-style: decimal;
  padding: 0;
  margin: 0;
}

li {
  padding: 0;
  margin: 0;
}

/* Liens */

a {
  color: #333;
  text-decoration: none;
}

a:hover {
  color: #000;
  text-decoration: underline;
}

/* Autres */

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

blockquote {
  font-style: italic;
  border-left: 5px solid #ccc;
  padding: 0 10px;
}

pre {
  font-family: monospace;
  background-color: #f6f6f6;
  padding: 10px;
}

.wp-block-gallery.has-nested-images figure.wp-block-image figcaption{
    font-size:16px;
}


/* HEADER */

#masthead {
    margin-bottom: 80px;
}

#masthead .container{
    position: relative;
    z-index: 10
}

#masthead.slide_header{
    height:768px;
    height:100vh;
}

#masthead.thumbnail_header{
    height:768px;
    height:70vh;
}


#masthead.thumbnail_header{
    background-size: cover;
    background-position: center;
}

body.single-post #masthead.thumbnail_header{
    height:40vh;
}


#masthead.slide_header .slider,
#masthead.slide_header .slider .item{
    height:768px;
    height:100vh;
    background-size: cover;
    background-position: center;
}

#masthead.slide_header .slider{
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    z-index: 0;
}

#masthead .overlaytop{
    position: absolute;
    top:-110px;
    left:0px;
    width:100%;
    height:500px;
    z-index: 5;
    opacity: 1;
    transition: all 500ms;
    background: url("img/deghead.png");
    background-repeat: repeat-x;
    background-position: top center;
    background-size: auto;
}

#masthead .overlaytop:hover{
    opacity: 1;
}


/* MENU */

/* Style de base du menu */

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  opacity: 0.9;
  padding: 8px 15px;
}

/* Style des items du menu */

.menu-item{
    display: inline-block;
      margin: 0 10px;
    
}

.menu-item a {
  color: black;
  text-decoration: none;
}



/* Style des items du menu au survol */

.menu-item:hover {
  opacity: 1;
}

/* Style du sous-menu */

.sub-menu {
  display: none;
  position: absolute;
  background-color: white;
  border: 1px solid black;
  padding: 10px;
}

/* Cible la sous-liste */
.mobile-menu-nav .children {
    margin-left: 1rem;   /* ou plus, selon tes goûts */
    padding-left: 1rem;  /* pour ajouter un petit espace interne */
    border-left: 1px solid #ddd; /* un petit trait vertical pour bien séparer */
}
/* Sur le <li> qui a des enfants, on cible le <a> */
.mobile-menu-nav li.page_item_has_children > a {
    position: relative;
    padding-right: 1.2rem; /* on laisse un peu de place pour la flèche */
}

/* La flèche ▼ */
.mobile-menu-nav li.page_item_has_children > a::after {
    content: '▼';
    font-size: 0.7rem;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #666; /* à ajuster selon ton design */
}

/* Affichage du sous-menu au survol */

.menu-item:hover .sub-menu {
  display: block;
}

/* Style des items du sous-menu */

.sub-menu li {
  margin: 0;
  padding: 5px;
  list-style: none;
}

.sub-menu .menu-item{
    display: block;
}

/* Style des items du sous-menu au survol */

.sub-menu li:hover {
  background-color: #f1f1f1;
}


.menu_principaux_style{
    border-bottom:2px solid #000;
    padding-top:40px;
}

    .menu_principaux_style a:not(.sub-menu a){
        font-family:futura-pt-condensed;
        text-transform: uppercase;
        font-size:1.4em;
    }
    
/* 2eme sous menu */

.sub-menu .sub-menu {
    display: block;
    position: relative;
    background-color: none;
    border: none;
    padding: 0px;
    margin-left: 10px;
}

/* Affichage du sous-menu au survol */

.menu-item:hover .sub-menu .sub-menu {
  display: block;
}

/* Style des items du sous-menu */

.sub-menu .sub-menu li {
  margin: 0;
  padding: 5px;
  list-style: none;
  /* Nouvelle règle : */
  font-size: 0.8em;
}

.sub-menu .sub-menu .menu-item {
  display: block;
}

/* Style des items du sous-menu au survol */

.sub-menu .sub-menu li:hover {
  background-color: #f1f1f1;
}


.page-template-tpl-municipalite #masthead, 
.page-template-tpl-assoetpro #masthead, 
.page-template-tpl-proces-verbaux #masthead,
.single-proces-verbal #masthead, 
.page-template-tpl-arrete-municipal #masthead {
    margin-bottom: 0px !important;
}
#menuhorizontal {
    border-bottom: 2px solid #000;
    margin-bottom: 80px;
}
#menuhorizontal .current-menu-item, 
#menuhorizontal .current-page-ancestor, {
    font-weight: bold;
}


/* ANIMATION TITRE */

@keyframes explosion {
    0% {
        transform: scale(0.5) translate(0, 0);
        opacity: 0;
    }
    
    60% {
        opacity: 1;
    }
    
    100% {
        transform: scale(0.6) translateX(var(--x)) translateY(var(--y));
        
    }
}

.animatedTitle{
    
    
    animation: explosion 1000ms ease-out forwards;
    animation-play-state: paused; /* Important pour déclencher au scroll */
}

.flore {
    display: inline-block;
    position: absolute; /* Ajustez en fonction de votre mise en page */
    animation: explosion 1050ms ease-out forwards;
    animation-play-state: paused; /* Important pour déclencher au scroll */
    max-width: 50px;
      max-height: 60px;
}
.flore.flore1 {
    --x: -80px;
    --y: -30px;
}
.flore.flore2 {
    --x: -100px;
    --y: 90px;
    
}
.flore.flore3 {
    --x: 0px;
    --y: -30px;
}
.flore.flore4 {
    --x: -0px;
    --y: 80px;
}
.flore.flore5.floreR0 {
    --x: 40px;
    --y: 30px;
    max-width: 30px;
}

.flore.flore5.floreR2 {
    --x: -70px;
    --y: -20px;
    max-width: 30px;
}

.flore.flore5.floreR1 {
    --x: -200px;
    --y: 140px;
    max-width: 30px;
}

/**************************************
  MENU MOBILE : STYLES
***************************************/
.btn-mobile-menu {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    /* Ajuste comme tu veux */
}

/* Overlay fullscreen/offcanvas */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7); /* ombre semi-transparente */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9999; /* Assure-toi d'être au-dessus de tout */
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Contenu du menu mobile (panneau) */
.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: #fff;
    padding: 2rem 1rem;
    box-shadow: -3px 0 5px rgba(0,0,0,0.2);
    overflow-y: auto; /* si le menu est trop long */
}

/* Bouton de fermeture */
.close-mobile-menu {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* Styles pour le ul du menu mobile si besoin */
.mobile-menu-nav {
    list-style: none;
    margin: 2rem 0 0 0;
    padding: 0;
}

.mobile-menu-nav li {
    margin-bottom: 1rem;
}

.mobile-menu-nav li a {
    text-decoration: none;
    color: #333;
    display: block;
}

/* Ajuste la typo, les espacements, etc. selon tes goûts */

@media screen and (max-width: 768px) {
  .site-branding {
    padding-top: 25px;
  }
}
