/*
Theme Name:     Hello Elementor Child
Theme URI:      https://netactions.net/
Description:    Thème de la Mairie de Rémire-Montjoly.
Author:         Netactions
Author URI:     https://netactions.net/
Template:       hello-elementor
Version:        1.0.0
Text Domain:    hello-child
*/
/* Corriger le scroll horizontal causé par les éléments techniques */
.elementor-screen-only, .elementor-device-mode, .screen-reader-text[role="status"] {
    position: absolute !important;
    left: 0 !important;
    top: auto !important;
    clip: rect(0 0 0 0) !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    visibility: hidden !important;
}
/* Option de secours globale */
html, body {
    overflow-x: hidden;
}
body .elementor-icon-wrapper {
    line-height: 0;
}

p img.alignleft {
  float: left;
  margin-right: 15px;
}

p img.alignright {
  float: right;
  margin-left: 15px;
}

p img.aligncenter {
  margin: 20px auto;
  display: block;
}

#custom-social-header .elementor-grid-item:nth-of-type(1) .elementor-social-icon {
    background-image: linear-gradient(50deg, #1877f2, #66b2ff);
    background-size: 200% auto;
    color: #fff;
    transition: background-position 0.3s ease-in-out;
}
#custom-social-header .elementor-grid-item:nth-of-type(2) .elementor-social-icon {
    background-image: linear-gradient(50deg, #f6d03c 0%, #ef3577 50%, #a32aa5 100%);
    background-size: 200% auto;
    color: #fff;
    transition: background-position 0.3s ease-in-out;
}
#custom-social-header .elementor-grid-item:nth-of-type(3) .elementor-social-icon {
    background-image: linear-gradient(50deg, #000000, #2d2d2d);
    background-size: 200% auto;
    color: #fff;
    transition: background-position 0.3s ease-in-out;
}
#custom-social-header .elementor-grid-item:nth-of-type(4) .elementor-social-icon {
    background-image: linear-gradient(50deg, #ff0000, #ff6d6d);
    background-size: 200% auto;
    color: #fff;
    transition: background-position 0.3s ease-in-out;
}
#custom-social-header .elementor-grid-item:nth-of-type(1) .elementor-social-icon:hover, #custom-social-header .elementor-grid-item:nth-of-type(2) .elementor-social-icon:hover #custom-social-header .elementor-grid-item:nth-of-type(3) .elementor-social-icon:hover #custom-social-header .elementor-grid-item:nth-of-type(4) .elementor-social-icon:hover {
    background-position: right center;
}
/* HEADER */
#CustomHeaderNav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
  z-index: 9999;
}

/* Apparition fluide */
#CustomHeaderNav.active {
  transform: translateY(0);
  opacity: 1;
}

#custom-header {
    position: relative;
}
#custom-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 10px;
    width: 100%;
    background: linear-gradient(to right, var(--e-global-color-bab9b53), var(--e-global-color-ae62b69));
    border-radius: 5px 5px 0 0;
}
.custom-nav.elementor-widget-nav-menu .elementor-item {
    position: relative;
}
.custom-nav.elementor-widget-nav-menu .elementor-item::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -5px;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}
.custom-nav.elementor-widget-nav-menu .elementor-item:hover::after, .custom-nav.elementor-widget-nav-menu .elementor-item.elementor-item-active::after {
    opacity: 1;
    transform: translateX(-50%) scale(1.2);
}
.custom-nav .custom-nav-color a {
    position: relative;
    display: inline-block;
    color: #ffffff;
    border-radius: 30px;
    overflow: hidden;
    z-index: 1;
    padding-left: 15px;
    padding-right: 15px;
    text-decoration: none;
}
/* Dégradé par défaut (arrière-plan) */
.custom-nav .custom-nav-color a::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 30px;
    background-image: linear-gradient(50deg, var(--e-global-color-primary), var(--e-global-color-accent));
    z-index: -1;
    opacity: 1;
    transition: opacity 0.4s ease-in-out;
}
/* Fond uni au hover */
.custom-nav .custom-nav-color a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 30px;
    background-color: var(--e-global-color-primary); /* ← ta couleur unie */
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}
/* Hover : on fait apparaître la couleur unie */
.custom-nav .custom-nav-color a:hover::after {
    opacity: 1;
}
.custom-nav .custom-nav-color a:hover::before {
    opacity: 0;
}
.demarches-custom-btn, .projet-custom-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 15px 20px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    font-size: 14px;
    font-family: var(--e-global-typography-accent-font-family);
    color: var(--e-global-color-secondary) !important;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1;
}
.demarches-custom-btn .btn-content, .projet-custom-btn .btn-content {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1;
    position: relative;
}
.demarches-custom-btn .btn-content .btn-icon, .projet-custom-btn .btn-content .btn-icon {
    display: flex;
}
.demarches-custom-btn .btn-icon svg, .projet-custom-btn .btn-icon svg {
    width: 35px;
    height: 35px;
    fill: #F9BD67;
}
.demarches-custom-btn .btn-icon svg {
    fill: #F9BD67;
}
.projet-custom-btn .btn-icon svg {
    fill: #077B3A;
}
/* Style général des SVG décoratifs */
.demarches-custom-btn .btn-border, .projet-custom-btn .btn-border {
    position: absolute;
    width: 30px;
    height: 30px;
    pointer-events: none;
    z-index: 0;
}
.demarches-custom-btn .btn-borderr {
    fill: #F9BD67;
}
.projet-custom-btn .btn-border {
    fill: #077B3A;
}
/* Positionnement coin bas gauche */
.demarches-custom-btn .btn-border.bottom-left {
    bottom: 5px;
    left: 5px;
}
/* Positionnement coin haut droit + rotation */
.demarches-custom-btn .btn-border.top-right {
    top: 5px;
    right: 5px;
    transform: rotate(180deg);
}
/* Positionnement coin bas gauche */
.projet-custom-btn .btn-border.bottom-left {
    bottom: 5px;
    left: 5px;
}
/* Positionnement coin haut droit + rotation */
.projet-custom-btn .btn-border.top-right {
    top: 5px;
    right: 5px;
    transform: rotate(180deg);
}
.demarches-custom-btn::before, .projet-custom-btn::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 0%;
    height: 100%;
    background-color: #F9BD67; /* couleur par défaut */
    z-index: 0;
    transition: width 0.4s ease;
}
.projet-custom-btn::before {
    background-color: #077B3A; /* vert pour projet urbain */
}
.demarches-custom-btn:hover::before, .projet-custom-btn:hover::before {
    width: 100%;
    left: 0;
    right: auto;
}
.demarches-custom-btn .btn-content, .projet-custom-btn .btn-content {
    position: relative;
    z-index: 1;
    color: #1d1d1b;
    transition: color 0.3s ease;
}
.demarches-custom-btn:hover .btn-content, .projet-custom-btn:hover .btn-content {
    color: white;
}
.demarches-custom-btn:hover .btn-icon svg, .projet-custom-btn:hover .btn-icon svg {
    fill: #ffffff;
}
.meteo-header .elementor-widget-icon-list .elementor-icon-list-items .elementor-icon-list-text {
    padding: 0;
    margin: 0;
    padding-inline-start: 0;
}

.bg-hero-wave::before{
	content:"";
	position:absolute;
	display:block;
	height:100%;
	width:150px;
	background: #ffffff;
	top:0;
	left:0;
}

#CustomHeaderNav.active #custom-meteo-header{
  max-width: 250px;
}

#custom-chiffres-accueil::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 10px;
    width: 100%;
    background: linear-gradient(to right, var(--e-global-color-bab9b53), var(--e-global-color-ae62b69));
    border-radius: 10px 10px 0 0;
}
.social-actu-home .elementor-social-icons-wrapper .elementor-grid-item:nth-child(1) .elementor-icon{background-image:linear-gradient(50deg, #2f86f5 0%, #6db2fc 100%);}

.social-actu-home .elementor-social-icons-wrapper .elementor-grid-item:nth-child(2) .elementor-icon{background-image: linear-gradient(50deg, #b7319a 0%, #ed3478 50%, #f7b850 100%);}

.social-actu-home .elementor-social-icons-wrapper .elementor-grid-item:nth-child(3) .elementor-icon{background-image: linear-gradient(50deg, #25F4EE 0%, #000000 100%);}

#navigation-mobile-menu .elementor-icon-list-item:nth-child(1) .elementor-icon-list-icon svg{
	fill: var( --e-global-color-4185c90 );
}

#navigation-mobile-menu .elementor-icon-list-item:nth-child(2) .elementor-icon-list-icon svg{
	fill: var( --e-global-color-5da47bf );
}

#navigation-mobile-menu .elementor-icon-list-item:nth-child(3) .elementor-icon-list-icon svg{
	fill: var( --e-global-color-72672f1 );
}

#navigation-mobile-menu .elementor-icon-list-item:nth-child(4) .elementor-icon-list-icon svg{
	fill: var( --e-global-color-ad0a708 );
}

#navigation-mobile-menu .elementor-icon-list-item:nth-child(5) .elementor-icon-list-icon svg{
	fill: #077B3A;
}


#navigation-mobile-menu .elementor-icon-list-item:nth-child(7) .elementor-icon-list-icon svg{
	fill: #0066cc;
}
#navigation-mobile-menu .elementor-icon-list-item:nth-child(8) .elementor-icon-list-icon svg{
	fill: #e14f50;
}

#custom-section-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 6px;
    width: 100%;
    background: linear-gradient(to right, var(--e-global-color-bab9b53), var(--e-global-color-ae62b69));
    border-radius: 0;
}

.title-section-footer .elementor-heading-title::after {
  content: '';
  position: absolute;
  top: auto;
  left: 0;
  height: 3px;
  width: 50px;
  background: var(--e-global-color-9acf11f);
  border-radius: 0;
  bottom: -15px;
}

/* BACK TO TOP */
#scrollToTop {
  position: fixed;
  bottom: 15px;
  right: 15px;
  opacity: 0;
  visibility: hidden;
  z-index: 999999;
  cursor: pointer;
  transition: opacity 0.3s ease, visibility 0.3s ease, bottom 0.3s ease;
  background-color: var(--e-global-color-accent);
  color: #fff;
  border-radius: 3px;
  font-size: 22px;
  line-height: 1;
  padding: 0;
  display: flex;
  height: 45px;
  width: 45px;
  align-items: center;
  justify-content: center;
  border: none;
}
#scrollToTop.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#scrollToTop:hover {
  background-color: #222222;
}

@media screen and (max-width: 1340px) {
	#header-logo img{width:270px;}
.demarches-custom-btn, .projet-custom-btn {
  padding: 15px 10px;
  font-size: 13px;
}
body.home .elementor-element.titre-hero{
	width:440px;
	}
body.home .elementor-element.titre-hero .elementor-heading-title{
	font-size: 60px;
	line-height: 65px;
	}
}

@media screen and (max-width: 1270px) {
    #header-meteo {
        display: none;
    }
	
	#custom-divider-header {
        display: none;
    }
	
}

@media screen and (max-width: 1260px) {
	#logo-pc-header-width img{
		width:290px;
	}
}

@media screen and (max-width: 1024px) {
	
.hide-mobile{
        display: none;
    }

  body.home .elementor-element.titre-hero {
    width: 360px;
}
	  body.home .elementor-element.titre-hero .elementor-heading-title {
    font-size: 42px;
    line-height: 45px;
  }
	
	
}
@media (max-width: 767px) {
body #custom-chiffres-accueil .elementor-widget-counter .elementor-counter::after {
  display:none;
}
}