/*
Theme Name: Sagesse des andes
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: sagessedesandes
*/

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: 1.8em;
}

h3 {
  font-size: 1.5em;
}

h4 {
  font-size: 1.2em;
}

/*** LIENS ***/
a {
	color: #507DBC;
	text-decoration: none;
}

a:hover {
	color: #70D6FF;
}

/* Boutons */
.wp-block-button__link {
	background-color: #507DBC;
	padding: 7px 20px;
	font-size: 0.9em;
	border-radius: 4px;
}

.wp-block-button__link:hover {
	background-color: #70D6FF;
	color: #fff;
}


/* Transitions liens */
a,
.vp-filter__style-minimal .vp-filter__item > 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;
} 

.header-group {
	padding: 0.5em 0;
}

.wp-site-blocks > * {
  margin-block-start: 0;
}

.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: #70D6FF;
}

.n2-ss-button-container a:hover {
	background: #70D6FF !important;
}

.fixed_social {
	position: fixed;
	bottom: 0px;
	right: 20px;
}

.wp-block-social-links {
	gap: 5px;
	z-index: 10;
}

.widget_polylang {
  margin-top: 0.3em;
}

.widget_polylang img {
    width: 24px !important;
    height: 16px !important;
    object-fit: cover;
}

.wp-block-social-links {
  margin-block-start: 0;
}

.wp-block-social-links .wp-social-link svg {
  height: 0.7em;
  width: 0.7em;
}

.wc-block-mini-cart {
	margin-block-start: 0;
}

/* Style de base des liens du menu */
.wp-block-navigation-item__content {
  position: relative;
  text-decoration: none;
  padding: 5px 0;
  transition: color 0.3s ease;
}
  
/* Menu sticky*/
.menu_sticky {
  width: 100%;
  z-index: 9000;
  background: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  overflow: hidden;
}

/* 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: #507DBC;
  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: #70D6FF;
}

.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: #507DBC;
  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;
}


/* Blog */
.vp-portfolio__item {
	box-shadow: 1px 1px 10px #ccc;
}

.vp-portfolio__items-wrap {
  overflow: visible;
}

.vp-filter__item {
  margin: 5px;
}

div.vp-filter__item:nth-child(1) > a {
	border: 1px solid #507DBC;
}

div.vp-filter__item:nth-child(2) > a {
	background: #507DBC;
	border: 1px solid #507DBC;
	color: #fff;
}

div.vp-filter__item:nth-child(3) > a {
	background: #FF9B85;
	border: 1px solid #FF9B85;
	color: #fff;
}

div.vp-filter__item:nth-child(4) > a {
	background: #70D6FF;
	border: 1px solid #70D6FF;
	color: #fff;
}

div.vp-filter__item:nth-child(5) > a {
	background: #F4C55A;
	border: 1px solid #F4C55A;
	color: #fff;
}

div.vp-filter__item:nth-child(6) > a {
	background: #60D394;
	border: 1px solid #60D394;
	color: #fff;
}

div.vp-filter__item:hover > a {
	background: #fff;
}

div.vp-filter__item:nth-child(2):hover > a {
	color: #507DBC;
}

div.vp-filter__item:nth-child(3):hover > a {
	color: #FF9B85;
}

div.vp-filter__item:nth-child(4):hover > a {
	color: #70D6FF;
}

div.vp-filter__item:nth-child(5):hover > a {
	color: #F4C55A;
}

div.vp-filter__item:nth-child(6):hover > a {
	color: #60D394;
}

article .vp-portfolio__item-meta-category a {
	font-weight: 600;
	text-decoration: underline!important;
}

article .vp-portfolio__item-meta-read-more {
	font-weight: 600;
}

article.category-astrologie .vp-portfolio__item-meta-category a,
article.category-astrologie .vp-portfolio__item-meta-title a,
article.category-astrologie .vp-portfolio__item-meta-read-more {
	color: #507DBC;
} 

article.category-bouddhisme .vp-portfolio__item-meta-category a,
article.category-bouddhisme .vp-portfolio__item-meta-title a,
article.category-bouddhisme .vp-portfolio__item-meta-read-more {
	color: #FF9B85;
}

article.category-chamanisme .vp-portfolio__item-meta-category a,
article.category-chamanisme .vp-portfolio__item-meta-title a,
article.category-chamanisme .vp-portfolio__item-meta-read-more {
	color: #70D6FF;
}

article.category-eveil-spirituel .vp-portfolio__item-meta-category a,
article.category-eveil-spirituel .vp-portfolio__item-meta-title a,
article.category-eveil-spirituel .vp-portfolio__item-meta-read-more {
	color: #F4C55A;
}

article.category-reves .vp-portfolio__item-meta-category a,
article.category-reves .vp-portfolio__item-meta-title a,
article.category-reves .vp-portfolio__item-meta-read-more {
	color: #60D394;
}

.vp-portfolio__item-meta-categories,
.vp-portfolio__item-meta-title {
  margin-bottom: 0.5em !important;
}

.vp-portfolio__item-meta-inline {
	font-size: 0.85em;
}

.vp-pagination__load-more {
  border: 2px solid;
  color: #507DBC !important;
}

.has-x-large-font-size {
	margin-bottom: 0.7em;
}

.cat-astrologie .wp-block-group.has-violet-background-color {
	background-color: #507DBC !important;
}

.cat-bouddhisme .wp-block-group.has-violet-background-color {
	background-color: #FF9B85 !important;
}

.cat-chamanisme .wp-block-group.has-violet-background-color {
	background-color: #70D6FF !important;
}

.cat-eveil-spirituel .wp-block-group.has-violet-background-color {
	background-color: #F4C55A !important;
}

.cat-reves .wp-block-group.has-violet-background-color {
	background-color: #60D394 !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 #507DBC;
  background: none;
  color: #507DBC;
  font-weight: bold;
  text-transform: uppercase;
}

#forminator-module-278 .forminator-button-submit:hover {
  background: #507DBC;
  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;
}

/* Lang switcher */
.widget_polylang ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0 1em;
}

/* Divers */
footer p a {
	margin-right: 2em;
	color: #fff;
}

footer .wp-block-image img {
	margin: 20px;
}

.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 #507DBC;
  padding-left: 0.6em;
  font-style: italic;
}

.cta-actus {
	border: 2px solid #507DBC;
	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: #507DBC;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/**** WooCommerce ****/
.wc-block-product-template {
  justify-content: center;
}

/**** Events ****/
.pixelbones h3.em-item-title {
  font-size: 1.4em !important;
}

.home .pixelbones h3.em-item-title a,
.home .em-event-meta {
  color: #fff !important;
}

.em-item-desc {
	display: none;
}

.em.em-list .em-item .em-item-info .button {
  color: #fff !important;
  border-color: #fff !important;
}

.em.em-list .em-item .em-item-info {
  border-left: 0 !important;
}  

.forminator-field {
	text-align: center;
}
 
/***********************************
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) {
  .menu_sticky .wp-block-navigation__responsive-container {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 10000 !important;
    background-color: #507DBC !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;
  }
	
  h2 {
	font-size: 1.4em;
	}

  h3 {
	font-size: 1.2em;
  }
  
  .assos {
	  padding: 40px 20px !important;
  }
  
}

/* 600px */
@media (max-width: 600px) {
	.n2-ss-layer h1 {
	 font-size: 7vw !important;
  }
}