/*
Theme Name: Early Valencia
Theme URI: https://earlyspider.com
Author: EarlySpider
Author URI: https://earlyspider.com
Description: A minimal WordPress starter theme.
Version: 1.0
Requires at least: 6.1
Requires PHP: 7.4
Text Domain: EarlyV
*/

body {
    font-family: 'Roboto', sans-serif;
	line-height: 1.5em;
    margin: 0;
    padding: 0;
	font-size: 0.95em;
}

h1, h2, h3, h4, h5, h6 {
	font-family: 'Oswald', sans-serif;
	line-height: 1.4em;
}

h2 {
	font-size: 2em;
}

h3 {
  font-size: 1.5em;
}

h4 {
  font-size: 1.2em;
}

/*** LIENS ***/
a {
	color: #004aad;
	text-decoration: none;
}

a:hover {
	color: #a53860;
}

/* Boutons */
.wp-block-button__link {
	padding: 7px 20px;
	font-size: 0.9em;
	border-radius: 4px;
}

.wp-block-button__link:hover {
	background-color: #a53860;
	color: #fff;
}


/* Transitions liens */
a,
.wp-block-button__link,
.uagb-buttons__outer-wrap .uagb-buttons-repeater,
.uagb-infbox__link-to-all,
.n2-ss-button-container a,
.wp-block-uagb-post-carousel .uagb-post__inner-wrap .uagb-post__image::before {
	transition: 0.5s ease;
} 

.home .header-group {
	padding: 0.5em 0;
	position: absolute;
	z-index: 100;
	width: 100vw;
	top: 1em;
	background: transparent;
	box-shadow: none;
}

.header-group {
	box-shadow: 1px 1px 5px #ccc;
  position: fixed;
  width: 100%;
  background: #fff;
  padding: 1em;
  z-index: 10;
}

.wp-block-site-logo {
  margin-block-start: 10px;
}

.wp-block-navigation__responsive-container {
	background: #FEE440;
}

.home .wp-block-navigation__responsive-container a.wp-block-navigation {
	color: #122F40;
	font-size: 22px;
	font-weight: 500;
}

.wp-block-navigation__responsive-container-close {
	top: 1em;
  right: 1em;
}

.wp-block-navigation__responsive-container-open svg {
  fill: #122F40;
  height: 36px;
  width: 36px;
  margin: 0 20px;
}

.home .wp-block-navigation__responsive-container-open svg {
  fill: #fee440;
}

.wp-block-navigation.ev-hamburger{
  justify-content: flex-end;
}

.wp-block-navigation__responsive-container-open{
  margin-left: auto;
}

.wp-block-navigation__responsive-container-content{
  display: flex;
  justify-content: center;
  text-align: center;
}

.wp-block-navigation__responsive-container-content > ul{
  align-items: center;
}

.header-group .wp-block-columns {
	gap: 0;
}

/* Lang switcher */
.widget_polylang select {
  background: #122F40;
  color: #FFF;
  border: 0;
  height: 25px;
  margin-top: 5px;
  border-radius: 5px;
}

.home .widget_polylang select {
  background: #FEE440;
  color: #122F40;
}

.widget_polylang ul {
  display: flex;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0.5em 0;
}

.widget_polylang ul li a{
  color: #fff;
}

.widget_polylang ul li.current-lang a{
  color: #FEE440;
}

.widget_polylang ul li.current-lang:hover {
  cursor: default;
}

.homehero .wp-block-buttons {
  margin-block-start: 7px;
}

#vs {
  margin-block-start: 0;
}

#vs .wp-block-column {
  padding: 2em 2.5em;
  margin: 1em; 
}

.vs-compare.wp-block-columns{
  position: relative;
}

.vs-compare.wp-block-columns::after{
  content:"";
  position:absolute;
  top:3em; 
  bottom:3em;
  left:50%;
  transform:translateX(-50%);
  width:64px;
  pointer-events:none;
  z-index:2;

  background: center / contain no-repeat url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 64 800%22%3E%3Cpath d=%22M32 0 L40 40 L26 90 L46 140 L22 200 L44 260 L24 320 L46 380 L20 450 L44 520 L24 590 L42 650 L22 710 L38 760 L30 800%22 fill=%22none%22 stroke=%22%23FEE440%22 stroke-width=%226%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3C/svg%3E');
}

.wp-site-blocks > * {
  margin-block-start: 0;
}

.btn-types .wp-block-button__link {
  padding: 5px 10px;
  font-size: 0.85em;
}

.services-grid {
  gap: 4em !important;
}

.promesse {
  margin: 2em 0;
}

/*** Slider vertical ***/
.js-vertical-carousel .vc-swiper {
  overflow: hidden;
}

.js-vertical-carousel .swiper-slide > .wp-block-cover {
  aspect-ratio: 3 / 4;
  width: 100%;
}

.js-vertical-carousel .swiper-slide {
  height: auto;
}

.js-vertical-carousel .swiper-slide > .wp-block-cover {
  height: 350px;
  min-height: 300px; 
  aspect-ratio: auto;
  border-radius: 1em;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 6px 12px rgba(0, 0, 0, 0.06);
}

.js-vertical-carousel .wp-block-cover__image-background {
  object-fit: cover;
}

.js-vertical-carousel {
  position: relative;
}

.js-vertical-carousel .vc-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;

  width: 44px;
  height: 44px;
  border: 0;
  cursor: pointer;
  color: #00d8f5;
  background: #fff;

  display: flex;
  align-items: center;
  justify-content: center;
}

.js-vertical-carousel .vc-prev {
  left: -50px; 
}

.js-vertical-carousel .vc-next {
  right: -50px;
  margin-block-start: 0;
}

.js-vertical-carousel .vc-prev::before {
  content: '‹';
  font-size: 28px;
  line-height: 1;
}

.js-vertical-carousel .vc-next::before {
  content: '›';
  font-size: 28px;
  line-height: 1;
}

/* Mobile : boutons plus discrets */
@media (max-width: 600px) {
  .js-vertical-carousel .vc-prev { left: -15px; }
  .js-vertical-carousel .vc-next { right:-15px; }
}

.uagb-slick-carousel ul.slick-dots {
	bottom: -20px;
}

:root{
  --divider-h: 48px;
}

/* base implicite */
.divider-top,
.divider-bottom{
  position: relative;
  overflow: visible;
}

/* ===== TOP ===== */
.divider-top::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:-1px;
  height: var(--divider-h);
  pointer-events:none;
  z-index:2;
  background:#fff;

  transform: scaleY(-1);
  transform-origin: center;

  clip-path: polygon(
    0 70%,
    25% 55%,
    50% 68%,
    75% 52%,
    100% 65%,
    100% 100%,
    0 100%
  );
}

/* ===== BOTTOM (code qui marche) ===== */
.divider-bottom::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-1px;
  height: var(--divider-h);
  pointer-events:none;
  z-index:2;
  background:#fff;

  clip-path: polygon(
    0 70%,
    25% 55%,
    50% 68%,
    75% 52%,
    100% 65%,
    100% 100%,
    0 100%
  );
}

@media (max-width: 781px){
  :root{ --divider-h: 34px; }
}

/* Divers */
footer p a {
	margin-right: 2em;
	color: #fff;
	text-decoration: underline;
}











.wp-block-navigation-item__content {
	font-weight: 400;
	text-transform: uppercase;
	font-size: 0.9em;
	font-family: 'Oswald', sans-serif;
}

.wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content:hover {
	color: #A53860;
}

.n2-ss-button-container a:hover {
	background: #A53860 !important;
}

.fixed_social {
	position: fixed;
	bottom: 0px;
	right: 20px;
}

.wp-block-social-links {
	gap: 5px;
	z-index: 10;
}

  
/* Menu sticky*/
.menu_sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9000;
  background: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  
  /* animation */
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

/* Inner container centré et max 1000px */
.menu_sticky_inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap; /* empêche la 2e ligne */
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

/* Affichage au scroll */
.menu_sticky.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.menu_sticky .wp-block-navigation-item:last-child .wp-block-navigation-item__content {
  background: #004aad;
  border: 1px solid #fff;
  color: white;
  padding: 0.5em 1em;
  border-radius: 4px;
  transition: 0.5s ease;
}

.menu_sticky .wp-block-navigation-item:last-child .wp-block-navigation-item__content:hover {
  background: #a53860;
}

.menu_sticky .wp-block-navigation-item:last-child .wp-block-navigation-item__content:hover::after {
  transform: scaleX(0);
}

.menu_sticky .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container {
	margin: 0 auto;
	align-items: center;
	color: #fff !important;
}

.menu_sticky .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item:first-child .wp-block-navigation-item__content {
  display: block;
}

.wp-block-navigation__responsive-container-close svg {
	fill: #fff;
}

#menu-trigger {
	margin-top: -1px;
}

/* Sélecteur langues */
.lang-switcher {
  position: relative;
  display: inline-block;
}

.lang-toggle {
  background: none;
  border: none;
  color: white;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  padding: 8px 12px;
}

.lang-options {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #004aad;
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 999;
  border-radius: 6px;
  overflow: hidden;
}

.lang-options li a {
  display: block;
  padding: 8px 12px;
  color: white;
  text-decoration: none;
}

.lang-options li a:hover {
  background-color: #003a8c;
}

.lang-switcher.open .lang-options {
  display: block;
}

.lang-toggle::after {
  content: " ▼";
  font-size: 10px;
}


/* Services */
.services-home .wp-block-uagb-info-box {
	max-width: 300px;
	background: #FFF;
	padding: 20px 25px 0; 
	margin: 0 auto;
}

.uagb-infbox__link-to-all:hover {
	box-shadow: 1px 1px 30px #ccc;
}
	
/* Equipe */
h3.uagb-team__title {
  padding-top: 0.5em;
}

.wp-block-uagb-team.uagb-team__image-position-above.uagb-team__align-center {
  padding: 1em;
}

/* Actus */
.post-template-wp-custom-template-noticias h2,
.post-template-actus h2,
.post-template-wp-custom-template-news h2 {
  color: #a53860;
}

.wp-block-uagb-post-carousel .uagb-text-link {
	display: block;
}

.wp-block-uagb-post-carousel .uagb-post__inner-wrap {
	padding: 2em;
}

.uagb-post__date {
	text-transform: initial;
}

.wp-block-uagb-post-grid h4 {
  font-size: 1.5em;
}
.uagb-post__text.uagb-post__title a:hover,
.wp-block-uagb-post-grid h4 a:hover {
	color: #a53860;
}

.wp-block-uagb-post-grid .uagb-post__image img {
  transition: transform 0.4s ease, filter 0.4s ease;
}

.wp-block-uagb-post-grid .uagb-post__date {
	color: #a53860;
}

.wp-block-uagb-post-grid .uagb-post__cta {
  margin-bottom: 1em;
}

.wp-block-uagb-post-carousel .uagb-post__date {
	margin-bottom: 1em;
}

.wp-block-uagb-post-carousel .uagb-post__inner-wrap:hover .uagb-post__image::before {
	opacity: 0.7;
}

.uagb-post-grid-byline {
  padding-bottom: 0 !important;
}

/* Contact */
#forminator-module-278 {
  box-shadow: 0px 0px 3px #ccc;
  padding: 0.5em 3em 1em !important;
} 

#forminator-module-278 label {
	font-size: 15px !important;
}

#forminator-module-278 .forminator-button-submit {
	margin: 0 auto;
  display: block;
  border: 1px solid #004aad;
  background: none;
  color: #004aad;
  font-weight: bold;
  text-transform: uppercase;
}

#forminator-module-278 .forminator-button-submit:hover {
  background: #004aad;
  color: #fff;
}

.forminator-label {
  color: #aaa;
}

.contact-details {
	gap: 4em
}

.contact-details a {
	color: #fff;
}

.contact-details a:hover {
	color: #ca895f;
}

.contact-details {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2em;
  position: relative;
  padding: 1em;
}

.contact-details > .wp-block-column {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.contact-details > .wp-block-column:first-child::after {
  content: '';
  position: absolute;
  right: -1em; 
  top: 50%;
  transform: translateY(-50%);
  height: 130%;
  width: 1px;
  background-color: white;
}

.wp-block-uagb-google-map {
  margin-top: 0;
}

.wp-block-list {
	margin-top: 0.5em;
	padding-left: 1em;
}

.wp-block-list li {
	padding-bottom: 0.2em;
}

.wp-block-quote	{
  font-size: 1.5em;
  border-left: 8px solid #004aad;
  padding-left: 0.6em;
  font-style: italic;
}

.cta-actus {
	border: 2px solid #004aad;
	max-width: 600px;
	margin: 2em auto;
}

.boxservices .wp-block-uagb-info-box {
  box-shadow: #ccc 1px 1px 20px;
  max-width: 100%;
} 

/* Pages spéciales avec bannière */
.page-id-487 .espace-hdp,
.page-id-588 .espace-hdp {
	display: none;
}

.page-id-487 .is-layout-flow > *,
.page-id-588 .is-layout-flow > * {
  margin-block-start: 0 !important;
}
/**/
	

/* Loader */
#custom-loader {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: white;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
}

#custom-loader .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #ccc;
  border-top-color: #004aad;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


/***********************************
MEDIA QUERIES
***********************************/
@media (min-width: 800px) {
  /* Le conteneur des colonnes du sticky */
  .menu_sticky_inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* Les deux colonnes */
  .menu_sticky .wp-block-column {
    display: flex;
    align-items: center;
  }

  /* La colonne contenant le menu (2e colonne) doit prendre tout l’espace restant */
  .menu_sticky .wp-block-column:nth-child(2) {
    flex: 1;
    justify-content: flex-end;
  }

  /* Le menu lui-même */
  .menu_sticky nav.wp-block-navigation {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
  }
}


@media only screen and (max-width: 1000px) {
  .uagb-post__inner-wrap .uagb-post__image:first-child {
   margin-left: -20px !important;
  margin-right: -20px !important;
  margin-top: -20px !important;
  }
  
}

@media (max-width: 800px) {
	h2 {
		font-size: 1.6em;
	}

	h3 {
		font-size: 1.2em;
	}
  
	.vs-compare.wp-block-columns::after {
		top: 50%;
		bottom: auto;
		left: 15%;
		right: 15%;
		transform: translateY(-50%);
		width: 70%;
		height: 38px;
		background: center / contain no-repeat url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 800 64%22%3E%3Cpath d=%22M0 32 L60 40 L110 26 L170 46 L230 22 L300 44 L360 24 L420 46 L490 20 L560 44 L620 24 L690 42 L750 22 L800 38%22 fill=%22none%22 stroke=%22%23FEE440%22 stroke-width=%226%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3C/svg%3E');
  }
	
	#vs .wp-block-column {
		padding: 0 0 1em;
	}
	
	
	
	
	
  .menu_sticky .wp-block-navigation__responsive-container {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 10000 !important;
    background-color: #004aad !important;
    overflow-y: auto;
  }
  
  .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: 90%;
  }
  
  .wp-block-cover h2 {
	font-size: 1.7em !important;
	}
	
	  .cta-actus {
	  max-width: 90vw;
  }
  
  footer .wp-block-column .wp-block-image,
  footer .wp-block-column p {
	  text-align: center;
  }
  
  .wp-block-cover h1 {
	font-size: 1.7rem!important;
  }
	 
  .assos {
	  padding: 40px 20px !important;
  }
  
}

/* 600px */
@media (max-width: 600px) {
	.n2-ss-layer h1 {
	 font-size: 7vw !important;
  }
}