
/* 
Theme Name:		art-motiers 2026
Theme URI:		
Description:	
Author:			SUPERO
Author URI:		https://supero.ch
Template:		hello-elementor
Version:		2.0.0
Text Domain:	art-motiers-2026
Tags:           
*/


/*
    Add your custom styles here
*/

* {
  box-sizing: border-box;
}

body, html {
  max-width: 100vw;
  overflow-x: hidden;
}
/* Style général des blocs */
.contenu-flexible .bloc {
  margin-bottom: 10px;
}

.bloc-titre {

}

.bloc-texte {
    
}

.bloc-texte-2colonnes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 20px;
}

.bloc-texte-2colonnes .colonne {
  /* Chaque colonne hérite du style texte standard */
}

/* Responsive: 1 colonne sur mobile */
@media (max-width: 768px) {
  .bloc-texte-2colonnes {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.bloc-image img {
  max-width: 100%;
  height: auto;
  display: block;
}

.bloc-galerie {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 20px;
}

.galerie-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
}

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

.galerie-item figcaption {
  margin-top: 5px;
}

/* Conteneur animation Lottie - Home Page */
.lottie_home {
  --lottie-ratio: 3500 / 2552;
  --lottie-offset: 140px; /* marge pour header + bar WP afin d'eviter la coupe basse en petite hauteur */
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center; /* garde l'animation centrée même si l'inner devient plus étroit */
  overflow: visible !important; /* force l'affichage complet même si Elementor définit un overflow hidden */
  padding: 2px 0;
}

.lottie_home .e-con-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.lottie_home .elementor-widget-container,
.lottie_home .elementor-shortcode {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.lottie_home .elementor-shortcode > * {
  margin-left: auto;
  margin-right: auto;
}

.lottie_home .lottie-container {
  margin-left: auto;
  margin-right: auto;
  width: 100% !important; /* garder la largeur dispo pour le ratio inline */
  max-width: 100%;
  display: block;
  aspect-ratio: var(--lottie-ratio);
}

.lottie_home .lottie-container,
.lottie_home svg,
.lottie_home canvas,
.lottie_home iframe {
  aspect-ratio: var(--lottie-ratio);
  width: min(100%, calc((100vh - var(--lottie-offset)) * (3500 / 2552)));
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - var(--lottie-offset));
  object-fit: contain;
  display: block;
}

/* Responsive : s'adapte à tous les écrans */
@media (max-width: 768px) {
  .lottie_home {
    --lottie-offset: 150px;
    padding: 2px 0;
  }
}

@media (max-width: 480px) {
  .lottie_home {
    --lottie-offset: 170px;
    padding: 2px 0;
  }
}

/* Responsive : 2 colonnes pour mobile et tablette */
@media (max-width: 1024px) {
  .bloc-galerie {
    grid-template-columns: repeat(2, 1fr);
  }
}
.image-legende {
  margin-top: 5px;
}

/* Sous-menu dynamique (Infos pratiques) */
.elementor-nav-menu--layout-horizontal {
    position: relative !important;
}

/* Styles uniquement pour desktop (1024px et plus) */
@media (min-width: 1024px) {
    .elementor-nav-menu .menu-item-has-children {
        position: static !important;
    }
    
    .elementor-nav-menu .sub-menu {
        background: transparent !important;
        position: absolute !important;
        top: 100% !important;
        width: 80vw !important;
        max-width: 80vw !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        white-space: nowrap !important;
        margin: 0 !important;
        padding-left: 0 !important;
        transform: translateX(-155px) translateY(8px) !important;
    }
    /*version EN*/
    .page-id-34046 .elementor-nav-menu .sub-menu {
        transform: translateX(-212px) !important;
    }

    .elementor-nav-menu .sub-menu li {
      padding: 0 7px !important;
      }
    
    .elementor-nav-menu .sub-menu .menu-item {
        background: transparent !important;
        display: inline-block !important;
        flex-shrink: 0 !important;
    }
    
    .elementor-nav-menu .menu-item-has-children.menu-force-visible .sub-menu,
    .elementor-nav-menu .menu-item-has-children.current-menu-item .sub-menu,
    .elementor-nav-menu .menu-item-has-children.current-menu-parent .sub-menu,
    .elementor-nav-menu .menu-item-has-children.current-page-ancestor .sub-menu {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Accordéon simple */
.bloc-accordeon .accordeon-item {
  border-top: 1px solid #000;
    
}
.bloc-accordeon {
  border-bottom: 1px solid #000;
    margin-top: 20px;
}
.accordeon-titre {
  padding: 15px 60px 15px 0; 
  cursor: pointer;
  position: relative;
}
.accordeon-titre h2 {
  display: block; /* prendre toute la largeur */
  margin: 0;
}
.accordeon-titre::after {
  content: "\2B63";
 font-family: var( --e-global-typography-6c91764-font-family ), Sans-serif !important;
  position: absolute;
 font-size: 48px;
right: 0;
 top: 20px;
  transition: transform 0.3s ease;
}
.accordeon-titre.open::after {
  transform: rotate(180deg);
}

/* Couleur de l'accordéon actif */
.accordeon-titre.open {
  color: var(--e-global-color-b33cb84);
}

/* Couleur au survol */
.accordeon-titre:hover {
  color: var(--e-global-color-b33cb84);
}

/* Sous-accordéon imbriqué */
.sous-accordeon {
  margin-top: 10px;
}

.sous-accordeon-item {
  border-top: 1px solid #000;
}

.sous-accordeon-titre {
  padding: 10px 40px 10px 0;
  cursor: pointer;
  position: relative;
}

.sous-accordeon-titre h3 {
  margin: 0;
}

.sous-accordeon-titre::after {
  content: "\2B63";
  font-family: var(--e-global-typography-6c91764-font-family), Sans-serif !important;
  position: absolute;
  font-size: 32px;
  right: 0;
  top: 8px;
  transition: transform 0.3s ease;
}

.sous-accordeon-titre.open::after {
  transform: rotate(180deg);
}

.sous-accordeon-titre.open {
  color: var(--e-global-color-b33cb84);
}

.sous-accordeon-titre:hover {
  color: var(--e-global-color-b33cb84);
}

.sous-accordeon-contenu {
  display: none;
}

.titre-mobile {
  display: none;
}
.titre-desktop {
  display: inline;
}

@media screen and (max-width: 768px) {
  .titre-mobile {
    display: inline;
  }
  .titre-desktop {
    display: none;
  }
}

.accordeon-contenu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.accordeon-bloc {
  margin-bottom: 10px;
}


.accordeon-bloc {
  /* word-break: break-word; 
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;*/
}

.accordeon-bloc h6,
.accordeon-bloc-large h6 {
  margin-top: 0;
  margin-bottom: 0;
}

.accordeon-bloc p:has(+ h6),
.accordeon-bloc-large p:has(+ h6) {
  margin-bottom: 0;
}

.accordeon-bloc-large {
  grid-column: 1 / -1;
  margin-bottom: 10px;
}

/* Bordure autour du conteneur lottie (épouse la hauteur réelle du lottie) */
.lottie-border-wrapper {
  display: inline-block;
  border: 1px solid #000;
  padding: 5px;
}

.accordeon-bloc img,
.accordeon-bloc-large img {
  width: auto;
  max-width: 100%;
  height: auto;
  /*max-height: 90vh; *//*images toujours visibles*/
  object-fit: contain;
  display: block;
  margin: 0 auto 0 0; /* alignement à gauche */
}
/* Alternance stricte */
.accordeon-bloc:nth-child(odd) {
  grid-column: 1;
}
.accordeon-bloc:nth-child(even) {
  grid-column: 2;
}

/*LISTE*/
    
.accordeon-item ul {
  list-style: none; /* Enlève les puces par défaut */
  padding-left: 0; /* Indentation */
}

.accordeon-item ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 20px;
}

.accordeon-item ul li::before {
  content: "\203A"; /* Choisissez ici votre caractère : ●, •, →, ♦, ✓, etc. */
  position: absolute;
  left: 0;
  top: 0;
}
.accordeon-item ul li a {
  word-wrap: break-word; /* Ancienne syntaxe */
  overflow-wrap: anywhere; /* Moderne, plus agressif */
}

/* Mobile : 1 colonne */
@media (max-width: 768px) {
  .accordeon-contenu {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .accordeon-bloc {
    grid-column: auto !important;
    margin-bottom: 0; /* ou par exemple 5px */
  }
  .accordeon-bloc:not(:last-child) {
    margin-bottom: 10px; /* ou l’espacement que tu souhaites entre les blocs */
  }
        .accordeon-bloc p {
      margin-bottom: 20px; /* ou 5px */
    }
    .accordeon-bloc p:last-child {
      margin-bottom: 0;
    }
    .accordeon-bloc.texte:last-of-type p:last-of-type {
      margin-bottom: 20px;
    }
}

/* Grilles artistes archives */
h2.grille-titre {
  margin-bottom: 0;
}

.grille-articles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 15px;
}

.grille-article {
}

.grille-article a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.grille-article img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}


.grille-article h3 {
    margin-top: 5px !important;
}

.scroll-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-fade.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Mobile responsive */
@media (max-width: 768px) {
  .grille-articles {
    grid-template-columns: repeat(2, 1fr);
  }
}
/*liens pages*/

.bloc-liens-pages {
  margin-top: 2rem;
}

.liens-pages-grille {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.liens-pages-item {
}

.liens-pages-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 210 / 297;
  border-radius: 4px;
}

.liens-pages-item h3 {
  margin-top: 5px !important;
}

/* Responsive mobile */
@media (max-width: 768px) {
  .liens-pages-grille {
    grid-template-columns: repeat(2, 1fr);
  }
}
/*fin liens pages*/

/*Pages artistes*/
.galerie-acf {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 100%;
}

/* Forcer les flèches de navigation de la lightbox Elementor */


/* Limiter à 2 colonnes max */
@media (min-width: 0px) {
  .galerie-acf {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media (min-width: 600px) {
  .galerie-acf {
    grid-template-columns: repeat(2, 1fr);
  }
}

.galerie-item {
    text-align: left !important;
}
.galerie-item img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 80vh; /*images toujours visibles*/
  object-fit: contain;
  display: block;
  margin: 0 auto 0 0; /* alignement à gauche */
}

.galerie-item figcaption {
  margin-top: 5px;
}
figcaption {
  text-align: left; /* Aligne à gauche */
color: #000 !important;
font-style: normal!important;
font-weight: normal !important;
}
/*Fin pages artistes*/

.lottie-container.align-right {
  margin-left: auto;
  margin-right: 0;
}

.lottie-container.align-center {
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.elementor-28850 .elementor-element.elementor-element-a60a0f7:not(.elementor-motion-effects-element-type-background), .elementor-28850 .elementor-element.elementor-element-a60a0f7 > .elementor-motion-effects-container > .elementor-motion-effects-layer{
    margin-bottom: 0 !important;
}

/* SOUS MENU Appliquer seulement sur desktop */

/* Appliquer seulement sur desktop */
@media (min-width: 1025px) {

  .elementor-nav-menu .menu-item-has-children {
    position: relative;
  }

  /* Masquer tous les sous-menus sauf ceux actifs */
  .elementor-nav-menu .menu-item-has-children .sub-menu {
    position: absolute;
    left: 0;
    top: 100%;
    display: flex;
    flex-direction: row;
    background: white;
    padding: 10px 0;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: none !important;
    z-index: 100;
  }

  /* Bloque tout effet hover */
  .elementor-nav-menu .menu-item-has-children:hover > .sub-menu {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  /* Affiche uniquement le menu actif */
  .elementor-nav-menu .menu-item-has-children.menu-force-visible > .sub-menu {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .elementor-nav-menu .sub-menu li {
    white-space: nowrap;
    padding: 0 15px;
  }

  .elementor-nav-menu .sub-menu li a {
    display: block;
  }
    .sub-menu a{
        font-size: 18px !important;
        
    }

  .sub-arrow {
    display: none !important;
  }
}
/*MENU HAMBURGER*/
@media (max-width: 1024px) {

  /* Cacher la flèche SVG d'Elementor */
  .elementor-nav-menu .sub-arrow svg {
    display: none !important;
  }

  /* Préparer tous les liens qui ouvrent un sous-menu (même si la classe has-submenu saute) */
  .elementor-nav-menu a[aria-haspopup="true"] {
    position: relative;
    padding-right: 50px; /* espace à droite pour la flèche */
  }

  /* Ajouter la flèche typographique */
  .elementor-nav-menu a[aria-haspopup="true"]::after {
    content: "\2B63";
    font-family: var(--e-global-typography-6c91764-font-family), sans-serif;
    font-size: 42px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.3s ease;
    pointer-events: none;
  }

  /* Rotation de la flèche quand le sous-menu est ouvert */
  .elementor-nav-menu a[aria-haspopup="true"][aria-expanded="true"]::after {
    transform: translateY(-50%) rotate(180deg);
  }
}

/*VISIONEUSE mobile*/
@media (max-width: 1024px) {
  body.admin-bar .dialog-type-lightbox {
    position: fixed !important;
  }
}
.elementor-slideshow__header .e-eicon-frame-expand{
    display: none !important;
}
/* Cacher le SVG par défaut dans le bouton de fermeture */
.dialog-close-button .e-font-icon-svg {
    display: none !important;
}

/* Ajouter le caractère ✕ (U+2715) avec ta typo */
.dialog-close-button::before {
    content: "\2715";
    font-family: var(--e-global-typography-6c91764-font-family), Sans-serif !important;
    font-size: 42px; /* ajuste selon ton design */
    color: white;
    display: inline-block;
    line-height: 1;
}
/* Cacher les SVG de flèches par défaut */
.elementor-lightbox .elementor-swiper-button-next svg,
.elementor-lightbox .elementor-swiper-button-prev svg {
    display: none !important;
}

/* Masquer les SVG natifs */
.elementor-lightbox .elementor-swiper-button-next svg,
.elementor-lightbox .elementor-swiper-button-prev svg {
    display: none !important;
}

/* Réinitialisation des flèches */
.elementor-lightbox .elementor-swiper-button-next,
.elementor-lightbox .elementor-swiper-button-prev {
    all: unset !important;
    position: fixed !important;
    top: 50% !important;
    transform: translateY(-50%);
    z-index: 999999 !important;
    font-family: var(--e-global-typography-6c91764-font-family), Sans-serif !important;
    font-size: 42px !important;
    color: #fff !important;
    cursor: pointer;
    pointer-events: auto !important;
    user-select: none;
}

/* Flèche gauche : ‹ */
.elementor-lightbox .elementor-swiper-button-prev::before {
    content: "\2190";
}

/* Flèche droite : › */
.elementor-lightbox .elementor-swiper-button-next::before {
    content: "\2192";
}

/* Position exacte par rapport à la fenêtre */
.elementor-lightbox .elementor-swiper-button-prev {
    left: 20px !important;
}

.elementor-lightbox .elementor-swiper-button-next {
    right: 20px !important;
}

/**/
.custom-wpml-inline {
    font-size: 16px;
    margin: 0 auto;
    text-align: center;
}

.custom-wpml-inline a {
    text-decoration: none;
    color: #ccc;
    transition: color 0.3s;
}

.custom-wpml-inline a:hover {
    color: #0f0 !important;
}

.custom-wpml-inline strong {
    color: #0f0;
    font-weight: bold;
}

/* Couleur de sélection du texte */
::selection {
  background: #d673ff !important;
  color: #000 !important;
}

::-moz-selection {
  background: #d673ff !important;
  color: #000 !important;
}

::-webkit-selection {
  background: #d673ff !important;
  color: #000 !important;
}

/* Styles pour les galeries de sponsors */
.sponsors-section {
  width: 100%;
  padding: 0 20px;
}

.sponsors-title {
  text-align: left;
  margin-bottom: 40px;
}

.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  align-items: center;
}

.sponsor-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center; /* s'assure que le texte interne est centré */
}

.sponsor-item img {
  max-width: 150px !important;
  max-height: 100px;
  width: auto;
  height: auto;
  filter: grayscale(100%);
  mix-blend-mode: multiply;
}
/* Désactiver les effets qui peuvent masquer les SVG */
.sponsor-item img.is-svg,
.sponsor-logo img.is-svg {
  filter: none !important;
  -webkit-filter: none !important;
  mix-blend-mode: normal !important;
  width: 200px; /* assurer des dimensions visibles */
  height: auto;
  display: block;
}
/* Texte pour les logos textuels (shortcode sponsors_flex) */
.sponsor-item .sponsor-text {
  display: inline-block;
  max-width: 200px;
  text-align: center;
  line-height: 1.2;
  white-space: normal;
  /* Wrapping naturel: laisser le texte brut, <br> manuel au besoin */
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: manual;
  margin-left: auto;
  margin-right: auto;
}

/* Le lien entoure parfois le texte: qu'il se comporte comme un bloc centré */
.sponsor-item a {
  display: inline-block;
}

@media (max-width: 768px) {
  .sponsors-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .sponsors-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}


/* Supprimer la bordure des sous-menus du menu desktop Elementor */
@media (min-width: 1025px) {
  .elementor-34118 .elementor-element.elementor-element-fa20b6d .elementor-nav-menu--dropdown li:not(:last-child) {
    border-bottom: none !important;
  }
  .elementor-34118 .elementor-element.elementor-element-fa20b6d .elementor-nav-menu--dropdown a.elementor-item-active,.elementor-34118 .elementor-element.elementor-element-fa20b6d .elementor-nav-menu--dropdown a:hover{
  background-color: transparent !important;
} 
.elementor-34118 .elementor-element.elementor-element-fa20b6d .elementor-nav-menu--dropdown a:hover{
  color: var( --e-global-color-b33cb84 ) !important;
}

/* Couleur hover pour le menu parent (Infos pratiques) */
.elementor-nav-menu .menu-item-has-children > a:hover {
  color: var( --e-global-color-b33cb84 ) !important;
}

/* Style H6 pour les liens du sous-menu desktop */
.elementor-34118 .elementor-element.elementor-element-fa20b6d .elementor-nav-menu--dropdown a {
  font-family: var( --e-global-typography-7e59f82-font-family ), Sans-serif !important;
  font-size: var( --e-global-typography-7e59f82-font-size ) !important;
  font-weight: var( --e-global-typography-7e59f82-font-weight ) !important;
}

}

/* Style H3 pour les liens du sous-menu mobile uniquement (pas les parents) */
@media (max-width: 1024px) {
  .elementor-nav-menu--dropdown .sub-menu a {
    font-family: var( --e-global-typography-primary-font-family ), Sans-serif !important;
    font-size: var( --e-global-typography-primary-font-size ) !important;
    font-weight: var( --e-global-typography-primary-font-weight ) !important;
  }
  
  /* Couleur hover pour le menu parent mobile */
  .elementor-nav-menu .menu-item-has-children > a:hover {
    background-color: var( --e-global-color-b33cb84 ) !important;
  }
  
  /* Supprimer la bordure du bas du menu parent quand le sous-menu est ouvert */
  .elementor-nav-menu .menu-item-has-children.elementor-nav-menu--dropdown-open > a {
    border-bottom: none !important;
  }
  
  /* Ajouter une bordure au-dessus du premier élément du sous-menu */
  .elementor-nav-menu--dropdown .sub-menu li:first-child {
    border-top: 1px solid #000 !important;
  }
  
  /* Supprimer les bordures sur le conteneur du sous-menu */
  .elementor-nav-menu--dropdown .sub-menu {
    border-top: none !important;
    border-bottom: none !important;
  }
  
  /* Réduire de moitié la hauteur des sous-menus (35px → 17.5px) */
  .elementor-nav-menu--dropdown li {
    min-height: auto !important;
  }
  
  .elementor-nav-menu--dropdown a {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    line-height: 1.2em !important;
  }
  
  /* Pas de bordure sur le dernier élément du sous-menu */
  .elementor-nav-menu--dropdown .sub-menu li:last-child {
    border-bottom: none !important;
  }
  
  .elementor-nav-menu--dropdown .sub-menu li:last-child a {
    border-bottom: none !important;
  }
}
