/*
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* =========================================================
   Global
   ========================================================= */
body, html { overflow-x: hidden !important; }

/* =========================================================
   Méga-menu DESKTOP — voile sombre sur le fond au survol
   ========================================================= */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 998;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
body:has(.e-n-menu-item:hover .e-n-menu-content)::after {
  opacity: 1;
  visibility: visible;
}
.elementor-location-header {
  position: relative;
  z-index: 999;
}

/* =========================================================
   Menu MOBILE (widget Menu classique) — ≤ 1024px
   ========================================================= */
@media (max-width: 1024px){

  /* Confort de scroll : le menu ne chaîne pas vers la page */
  .elementor-widget-nav-menu .elementor-nav-menu--dropdown{
    overscroll-behavior-y: contain;
  }

  /* Rubriques de 1er niveau */
  .elementor-widget-nav-menu .elementor-nav-menu--dropdown a.elementor-item{
    font-weight: 600;
  }

  /* Sous-liens : taille/poids maquette, compacité, puce « › », badge à droite */
  .elementor-widget-nav-menu .elementor-nav-menu--dropdown a.elementor-sub-item{
    display: flex;
    align-items: center;
    position: relative;
    font-size: 15px !important;
    font-weight: 500 !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    padding-left: 34px !important;   /* place pour la puce › */
  }
  .elementor-widget-nav-menu .elementor-nav-menu--dropdown a.elementor-sub-item::before{
    content: "›";
    position: absolute;
    left: 18px;
    color: #1F56A2;
    font-size: 16px;
    line-height: 1;
  }

  /* Fond légèrement distinct des blocs de sous-menu */
  .elementor-widget-nav-menu .elementor-nav-menu--dropdown .sub-menu{
    background: #FAF8F7 !important;
  }

  /* Badge de durée (3–5 j, 6–9 j…) aligné à droite */
  .elementor-widget-nav-menu .rt-dur{
    margin-left: auto;
    color: #5D6A7B;
    font-size: 12px;
    font-weight: 400;
  }

  /* Intitulés de groupe (PAR DURÉE / PAR FORMULE) — non cliquables
     NB : sélecteur renforcé (.elementor-nav-menu--dropdown + a.elementor-sub-item)
     pour passer DEVANT la règle des sous-liens, sinon la taille/graisse ne s'applique pas. */
  .elementor-widget-nav-menu .elementor-nav-menu--dropdown .menu-group-label > a.elementor-sub-item{
    pointer-events: none;
    cursor: default;
    color: #45566A !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 16px 20px 4px !important;
    border-bottom: none !important;
    min-height: 0 !important;
  }
  .elementor-widget-nav-menu .elementor-nav-menu--dropdown .menu-group-label > a.elementor-sub-item::before{ content: none !important; }

  /* Lien « Tous nos … » en accent bleu, sans puce */
  .elementor-widget-nav-menu .menu-alllink > a.elementor-sub-item{
    color: #1F56A2 !important;
    font-weight: 600 !important;
  }
  .elementor-widget-nav-menu .menu-alllink > a.elementor-sub-item::before{ content: none !important; }

  /* Page active mise en valeur */
  .elementor-widget-nav-menu .elementor-nav-menu--dropdown a.elementor-item-active,
  .elementor-widget-nav-menu .elementor-nav-menu--dropdown a.elementor-sub-item.elementor-item-active{
    color: #1F56A2 !important;
    font-weight: 700;
  }
}

/* =========================================================
   Titres & sous-titres
   ========================================================= */
.under-h1 {
  color: #b4d9fc;
  font-weight: 500;
  font-size: .5em;
  font-family: "semplicitapro", Sans-serif;
  margin-top: -.4em;
}
.under-h1-pages {
  color: #b4d9fc;
  font-weight: 500;
  font-size: .75em;
  font-family: "semplicitapro", Sans-serif;
  margin-top: -.1em;
}
.under-h3-moto {
  color: #1F56A2 !important;
  font-size: .8em !important;
}
.up-price {
  font-size: 12px !important;
  font-style: italic !important;
  font-weight: 400 !important;
  color: #000000 !important;
}

/* =========================================================
   Accordéons natifs Elementor (coins arrondis)
   ========================================================= */
.e-n-accordion-item > .e-n-accordion-item-title {
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}
.e-n-accordion-item[open] > .e-n-accordion-item-title {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* =========================================================
   Lenis — smooth scroll
   ========================================================= */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* =========================================================
   Reveal au scroll (clip-path)
   ========================================================= */
.reveal-img {
  clip-path: inset(100% 0 0 0);
  -webkit-clip-path: inset(100% 0 0 0);
  will-change: clip-path;
}
/* Fallback : JS désactivé */
.no-js .reveal-img {
  clip-path: inset(0 0 0 0);
  -webkit-clip-path: inset(0 0 0 0);
}
/* Fallback : préférence de réduction de mouvement */
@media (prefers-reduced-motion: reduce) {
  .reveal-img {
    clip-path: inset(0 0 0 0);
    -webkit-clip-path: inset(0 0 0 0);
  }
}

/* =========================================================
   Marquee — slider infini (noms de destinations)
   ========================================================= */
.marquee { width: 100%; overflow: hidden; }
.marquee__item {
  font-size: clamp(20px, 2.5vw, 36px);
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  line-height: 1;
  text-transform: capitalize;
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 60px;
  animation: marquee-scroll 25s linear infinite;
  will-change: transform;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* =========================================================
   Accordéons — étapes road trips
   ========================================================= */
.etape-head { cursor: pointer; }
.etape-body { display: none; }
.etape.is-open .etape-body { display: flex; }

/* =========================================================
   Ratio d'images identiques (portfolio / étapes)
   ========================================================= */
.pf-image img {
  width: 100%;
  aspect-ratio: 6 / 4;
  object-fit: cover;
}

/* =========================================================
   Masquer "Autres circuits" si la boucle est vide
   ========================================================= */
.autres-circuits:not(:has(.e-loop-item)) { display: none; }

/* =========================================================
   Formules + départs — base commune (vignette & fiche)
   Vignette  : individuels à GAUCHE, groupe (dates) à DROITE
   Fiche      : formules à GAUCHE, groupe (dates) à DROITE
   ========================================================= */
.hr-formules {
  display: flex;
  flex-wrap: wrap;                 /* sécurité : passe en empilé si trop étroit */
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px 16px;
  margin-top: 16px;
}
.hr-col { display: flex; flex-direction: column; gap: 8px; }
.hr-col-title { font-size: 12.5px; font-weight: 600; color: #1E3A5F; white-space: nowrap; }

/* Pastilles de dates (colonne départs groupe) */
.hr-pills { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.hr-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 27px;
  box-sizing: border-box;
  background: #EAF0FB;
  color: #1F56A2;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 0 10px;
  border-radius: 8px;
}
.hr-pill--date { white-space: nowrap; }
.hr-pill--date::before {
  content: "";
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  background: no-repeat center/contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F56A2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");
}
.hr-pill--soft { background: #eef0f2; color: #7c8a8f; font-style: italic; font-weight: 500; }

/* Colonne « Départs individuels » (vignette) */
.hr-indiv { font-size: 13px; color: #1E3A5F; font-weight: 500; white-space: nowrap; }

/* =========================================================
   Fiche — liste des formules (chevron) + infobulles
   ========================================================= */
/* en sidebar on laisse les titres passer sur 2 lignes si besoin */
.hr-formules--fiche .hr-col-title { white-space: normal; }

.hr-formules-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.hr-formule { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #1a1a1a; }
.hr-formule__nom { display: inline-flex; align-items: center; }
.hr-formule__nom::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 12px;
  margin-right: 8px;
  background: no-repeat center/contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath fill='%231F56A2' d='M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z'/%3E%3C/svg%3E");
}

/* Pastille "i" + infobulle */
.hr-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #EAF0FB;
  color: #1F56A2;
  font-family: Georgia, serif;
  font-size: 11px;
  font-style: italic;
  font-weight: 700;
  cursor: help;
  outline: none;
  user-select: none;
}
.hr-info::after { content: "i"; }
.hr-info__bulle {
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: max-content;
  max-width: 220px;
  background: #1E3A5F;
  color: #fff;
  font-family: Montserrat, sans-serif;
  font-size: 12px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.45;
  text-align: left;
  padding: 9px 11px;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(30,58,95,.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 50;
}
.hr-info__bulle::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1E3A5F;
}
.hr-info__bulle p { margin: 0; }
.hr-info__bulle p + p { margin-top: 6px; }
.hr-info:hover .hr-info__bulle,
.hr-info:focus .hr-info__bulle,
.hr-info:focus-within .hr-info__bulle {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* =========================================================
   Sorting filter (Trier par…) — style secondaire "tri"
   ========================================================= */
.jet-sorting .jet-sorting-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #fff !important;
  border: 1px solid #d7dce3 !important;      /* gris clair = pas un filtre */
  border-radius: 0 !important;
  color: #1F56A2 !important;                   /* texte bleu marque */
  font-family: "Montserrat", sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  height: 56px;                                /* = hauteur des filtres */
  padding: 0 42px;                             /* place icône gauche + chevron droite */
  cursor: pointer;
  line-height: 1;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231F56A2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3v18M8 3L5 6M8 3l3 3M16 21V3M16 21l-3-3M16 21l3-3'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a98a8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: left 16px center, right 16px center;
}
.jet-sorting .jet-sorting-select:hover { border-color: #b9c2cf !important; background-color: #fafbfc !important; }
.jet-sorting .jet-sorting-select:focus { outline: none; box-shadow: none; }
.jet-sorting .jet-sorting-select::-ms-expand { display: none; }

/* =========================================================
   Carrousel circuits — masquer les flèches si ≤ 3 slides
   ========================================================= */
.carousel-circuits:not(:has(.swiper-slide ~ .swiper-slide ~ .swiper-slide ~ .swiper-slide)) .elementor-swiper-button {
  display: none !important;
}
