/*
Theme Name: Groupe ACE
Description: Theme enfant de Hello-elementor pour Groupe ACE.
Author: Maxime Dreyfus
Author URI: https://maxdrey.fr
Template: hello-elementor
Version: 1.0
*/
html {
	scroll-behavior: smooth;
}

body {
    background-attachment: fixed; /* Fixe l'image en arrière-plan */
    background-size: cover !important; 
    background-position: center center; /* Centre l'image */
    background-repeat: no-repeat;
	margin-top: 100px !important;
}
/* Désactiver l'effet "fixed" sur les mobiles */
@media (max-width: 768px) {
    body {
		/*background-image: unset !important;*/
        background-attachment: scroll; /* Comportement normal sur mobile */
		/*background-image: linear-gradient(-35deg, #000000, #00FFFF, #847BFF, #FF00FF, #000000) !important;*/
		background-size: 100% 20% !important;
		background-repeat: repeat-y;
    }
}

.site-main{
	animation: 1.5s inFade linear;
}

@keyframes inFade {
    0% {
        opacity: 0%;
    }
    100% {
        opacity: 100%;
    }
}

.site-header {
    position: fixed !important;
    z-index: 1000;
	width: 100%;
	background-color: #000;
	opacity: 1;
	margin-top: -100px !important;
}

.menu, .menu-item a {
	font-family: var(--e-global-typography-41e2b29-font-family);
    color: #FFF !important;
    text-transform: uppercase;
    font-size: 15px;
}
/*
.home .site-header {
	margin-top: -120px;
	opacity: 0;
	transition: all 0.9s ease;
}*/
.site-header .header-inner {
    display: block;
    max-width: 1140px;
    width: 100%;
    margin: auto;
}

.site-navigation ul.menu li a {
    display: block;
    padding: 8px 0px !important;
	margin-left: 20px;
}

.site-navigation-dropdown ul.menu li a {
    color: #fff !important;
    background: #000000 !important;
}

.menu-item::after {
    content: "";
    position: absolute;
    left: 20px;
    right: 0;
    bottom: 4px;
    height: 2px;
    background-image: linear-gradient(-35deg, #751a80, #228ed6, #61ae22, #f07a00, #e6000c);
    /*background-size: 200% 200%; /* Étend le fond pour permettre l'animation */
    transform: scaleX(0); /* Initialise à 0, donc invisible */
    transform-origin: right; /* L'animation commence par la gauche */
    transition: transform 0.6s ease; /* Animation fluide d'apparition */
}

.menu-item:hover::after {
    transform: scaleX(1); /* Étend l'élément à sa taille complète lors du hover */
    transform-origin: left; /* Apparaît de gauche à droite */
}

.menu-item:hover::after {
    transform: scaleX(1); /* Étend l'élément à sa taille complète lors du hover */
    transform-origin: left; /* Change l'origine pour que l'apparition soit de gauche à droite */
}

.elementor p a {
    color: unset;
	text-decoration: underline !important;
}

ul{
	margin-bottom: 10px !important;
}

.gradient-text h1, .gradient-text h2, .gradient-text h3, .gradient-text h4, .gradient-text h5, .gradient-text h6 {
 background: linear-gradient(45deg, #00FFFF, #847BFF, #FF00FF, #00FFFF, #847BFF, #FF00FF);
 background-size:200%;
 animation: text-gradient 15s ease infinite;
 padding:5px 0;
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
 background-clip: text;
   text-fill-color: transparent;
}
.gradient, .pack h2{
 background: linear-gradient(-35deg, #FF00FF , #847BFF,#00FFFF);
 background-size:100%;
 /*animation: text-gradient 15s ease infinite;*/
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
 background-clip: text;
   text-fill-color: transparent;
}

@keyframes text-gradient {
 0% {
  background-position: 0% 50%;
 }
 50% {
  background-position: 100% 50%;
 }
 100% {
  background-position: 0% 50%;
 }
}

.moving-bg::before{
	background-size: 200%;
    /*animation: moveBackground 10s linear infinite;*/
}

@keyframes moveBackground {
    0% {
        background-position: 50% 50%; /* Point de départ : centre */
    }
    25% {
        background-position: 55% 35%; /* Légère translation vers le bas-droite */
    }
    50% {
        background-position: 50% 85%; /* Légère translation vers le bas */
    }
    75% {
        background-position: 25% 50%; /* Légère translation vers la gauche */
    }
    100% {
        background-position: 50% 50%; /* Retour au centre */
    }
}

/* SLIDER */
.elementor-image-carousel-caption {
    text-align: left !important;
    position: relative !important;
    top: -200px !important;
    padding: 20px;
    color: #FFF;
}
.elementor-image-carousel-caption p{
	font-weight: 500;
	font-size: 16px;
}
.swiper{
	overflow: inherit !important;
}
.hide-over{
	overflow: hidden !important;
}

/* Bordure dégradé multicolore pour boutons Elementor */
.elementor-button {
    background: linear-gradient(135deg, 
        #8B5CF6 0%,     /* Violet */
        #3B82F6 25%,    /* Bleu */
        #10B981 50%,    /* Vert */
        #F59E0B 75%,    /* Jaune */
        #EF4444 100%    /* Rouge */
    );
    padding: 2px;
    border: none;
    border-radius: 4px;
    transition: all 0.3s ease;
	padding: 2px !important;
}

.elementor-button .elementor-button-content-wrapper {
    background: black;
    color: white;
    padding: 12px 24px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.elementor-button:hover .elementor-button-content-wrapper {
    background: rgba(0, 0, 0, 0.8);
}

/* MAP */

.agences-map-container {
    display: flex;
    width: 100%;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: #fff;
    position: relative;
}

.agences-map {
    flex: 1;
    min-height: 100%;
    z-index: 1;
}

/* Styles personnalisés pour les marqueurs Leaflet */
.custom-marker {
    background: transparent !important;
    border: none !important;
}

.marker-pin {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    background: #333;
    border: 3px solid #fff;
    transform: rotate(-45deg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.marker-inner {
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Effets hover et interactions sur les marqueurs */
.custom-marker:hover .marker-pin,
.marker-hover .marker-pin {
    background: #000;
    transform: rotate(-45deg) scale(1.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.marker-highlight .marker-pin {
    background: #4CAF50;
    animation: pulse 1.5s infinite;
}

.marker-selected .marker-pin {
    background: #ff4444;
    transform: rotate(-45deg) scale(1.3);
    animation: bounce 0.6s ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: rotate(-45deg) scale(1); }
    50% { transform: rotate(-45deg) scale(1.2); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: rotate(-45deg) translateY(0); }
    40% { transform: rotate(-45deg) translateY(-10px); }
    60% { transform: rotate(-45deg) translateY(-5px); }
}

/* Styles pour les popups Leaflet */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
}

.leaflet-popup-content {
    margin: 0;
    padding: 0;
    min-width: 250px;
}

.agence-popup {
    padding: 15px;
}

.agence-popup .popup-photo {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
}

.agence-popup h4 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.agence-popup p {
    margin: 0 0 8px 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.agence-popup .popup-adresse {
    color: #666;
}

.agence-popup .popup-tel a,
.agence-popup .popup-email a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.agence-popup .popup-tel a:hover,
.agence-popup .popup-email a:hover {
    color: #000;
    text-decoration: underline;
}

.agence-popup .popup-horaires {
    color: #666;
    font-size: 0.85rem;
    background: #f5f5f5;
    padding: 5px 8px;
    border-radius: 4px;
    border-left: 3px solid #333;
}

.agence-popup .popup-link {
    display: inline-block;
    background: #333;
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 8px;
    transition: all 0.3s ease;
}

.agence-popup .popup-link:hover {
    background: #000;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Sidebar des agences */
.agences-list-sidebar {
    width: 350px;
    background: #f8f9fa;
    border-left: 1px solid #e0e0e0;
    overflow-y: auto;
    padding: 20px;
    z-index: 2;
}

.agences-list-sidebar h3 {
    margin: 0 0 20px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}

/* Barre de recherche */
.agences-search {
    margin-bottom: 20px;
}

.agences-search-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
    background: #fff;
}

.agences-search-input:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.1);
}

.search-results-count {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    font-style: italic;
}

/* Liste des agences */
.agences-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.agence-item {
    display: flex;
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
}

.agence-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #333;
    border-radius: 0 2px 2px 0;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.agence-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-color: #333;
}

.agence-item:hover::before {
    transform: scaleY(1);
}

.agence-item.active {
    border-color: #333;
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.agence-item.active::before {
    transform: scaleY(1);
    background: #4CAF50;
}

.agence-photo {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 12px;
    flex-shrink: 0;
    border: 2px solid #f0f0f0;
    transition: border-color 0.3s ease;
}

.agence-item:hover .agence-photo {
    border-color: #333;
}

.agence-info {
    flex: 1;
}

.agence-info h4 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
}

.agence-adresse {
    margin: 0 0 6px 0;
    font-size: 0.875rem;
    color: #666;
    line-height: 1.3;
}

.agence-tel,
.agence-email {
    margin: 0 0 4px 0;
}

.agence-tel a,
.agence-email a {
    font-size: 0.875rem;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    transition: color 0.3s ease;
}

.agence-tel a:hover,
.agence-email a:hover {
    color: #4CAF50;
    text-decoration: underline;
}

/* Customisation des contrôles Leaflet */
.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.leaflet-control-zoom a {
    background: #fff !important;
    color: #333 !important;
    border: none !important;
    width: 35px !important;
    height: 35px !important;
    line-height: 35px !important;
    font-size: 18px !important;
    font-weight: bold !important;
}

.leaflet-control-zoom a:hover {
    background: #333 !important;
    color: #fff !important;
}

.leaflet-popup-tip {
    background: #fff;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .agences-list-sidebar {
        width: 300px;
        padding: 15px;
    }
    
    .agences-search-input {
        padding: 10px 12px;
    }
}

@media (max-width: 768px) {
    .agences-map-container {
        flex-direction: column;
    }
    
    .agences-map {
        height: 380px;
        order: 2;
    }
    
    .agences-list-sidebar {
        width: 100%;
        max-height: 350px;
        order: 1;
        border-left: none;
        border-bottom: 1px solid #e0e0e0;
        padding: 15px;
    }
    
    .agences-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 10px;
        max-height: 250px;
        overflow-y: auto;
    }
    
    .agence-item {
        padding: 12px;
    }
    
    .agence-photo {
        width: 50px;
        height: 50px;
        margin-right: 10px;
    }
    
    .agences-search-input {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .agences-list-sidebar {
        padding: 12px;
        max-height: 300px;
    }
    
    .agences-list {
        grid-template-columns: 1fr;
        gap: 8px;
        max-height: 200px;
    }
    
    .agence-item {
        padding: 10px;
    }
    
    .agence-photo {
        width: 45px;
        height: 45px;
        margin-right: 8px;
    }
    
    .agence-info h4 {
        font-size: 0.95rem;
    }
    
    .agence-adresse,
    .agence-tel a,
    .agence-email a {
        font-size: 0.8rem;
    }
    
    .agences-search-input {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}

/* Animation de chargement */
.agences-map-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(248, 249, 250, 0.9);
    z-index: 1000;
    color: #666;
    font-size: 1rem;
}

.agences-map-loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Style pour Elementor */
.elementor-widget-container .agences-map-container {
    margin: 0;
}

/* Amélioration de l'accessibilité */
.agence-item:focus {
    outline: 2px solid #333;
    outline-offset: 2px;
}

.agences-search-input:focus {
    outline: none;
}

/* Cache la sidebar sur les très petits écrans si nécessaire */
@media (max-width: 360px) {
    .agences-list-sidebar {
        display: none;
    }
    
    .agences-map-container {
        height: 400px;
    }
    
    .agences-map {
        height: 100%;
    }
}

/* Animation d'apparition des éléments */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.agence-item {
    animation: fadeInUp 0.5s ease-out;
}

.agence-item:nth-child(1) { animation-delay: 0.1s; }
.agence-item:nth-child(2) { animation-delay: 0.2s; }
.agence-item:nth-child(3) { animation-delay: 0.3s; }
.agence-item:nth-child(4) { animation-delay: 0.4s; }
.agence-item:nth-child(5) { animation-delay: 0.5s; }

.news-grid-content {
	color: #222;
}

.single .post{
	background-color: #FFF;
    color: #111;
    padding: 40px;
}
.single-bottom{
	margin-top: 60px;
	padding-top: 60px;
	text-align: center;
	background-color: #54595F69;
}
a {
    background-color: transparent;
    color: unset !important;
	transition: all 0.3s ease;
}

.agence-tel{
	color: #666;
}
.leaflet-bar a {
    text-decoration: none !important;
}
.elementor-button span{
	text-decoration: none !important;
}