/* =============================================================================
   CN — Overrides CSS
   Surcharges et ajouts qui ne justifient pas de modifier les fichiers HulaHoop.
============================================================================= */

/* -----------------------------------------------------------------------------
   b-our-packages — padding-bottom quand c'est le dernier bloc du conteneur
   Miroir des valeurs de padding-top définies dans _our-packages.css
----------------------------------------------------------------------------- */
section.b-our-packages:last-child {
  padding-bottom: 4.5rem;
}

@media (width >= 1280px) {
  section.b-our-packages:last-child {
    padding-bottom: 11.5rem;
  }
}

/* -----------------------------------------------------------------------------
   b-title-infos-image — h2 en appui vers l'image, tick vers l'extérieur
   (inverse du positionnement HH d'origine)
   Seulement à partir de 1280px : en dessous le tick est masqué,
   le h2 reste à gauche (comportement HH, layout par défaut uniquement).
----------------------------------------------------------------------------- */
@media (width >= 1280px) {
  .b-title-infos-image:not(.is-mirrored) .b-title-infos-image__title--big.desktop {
    left: auto;
    right: 0;
    width: calc(100% - 1.2em);
  }

  .b-title-infos-image .b-title-infos-image__tick {
    right: auto;
    left: 0;
  }
}

/* -----------------------------------------------------------------------------
   b-title-infos-image — option miroir (image à gauche, contenu à droite)
   En miroir l'image est à gauche → h2 en appui = left:0, tick extérieur = right:0
----------------------------------------------------------------------------- */
@media (width >= 1024px) {
  .b-title-infos-image.is-mirrored .b-title-infos-image__wrapper--main {
    flex-direction: row;
  }

  .b-title-infos-image.is-mirrored .b-title-infos-image__wrapper--content::before {
    left: auto;
    right: 0;
  }

  .b-title-infos-image.is-mirrored .b-title-infos-image__title--big.desktop {
    right: auto;
    left: 0;
  }
}

@media (width >= 1280px) {
  .b-title-infos-image.is-mirrored .b-title-infos-image__tick {
    left: auto;
    right: 0;
  }

  .b-title-infos-image.is-mirrored .b-title-infos-image__content--second {
    padding-left: 0;
    padding-right: 10rem;
  }

  .b-title-infos-image.is-mirrored .b-title-infos-image__title--big.desktop {
    width: calc(100% - 1.2em);
    text-align: right;
  }
}

@media (width >= 1440px) {
  .b-title-infos-image.is-mirrored .b-title-infos-image__wrapper--content {
    padding-left: 5rem;
    padding-right: 13.7rem;
  }
}

/* -----------------------------------------------------------------------------
   cn-back-to-top — bouton retour en haut, visible quand footer proche
----------------------------------------------------------------------------- */
.cn-back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #333E92;
  color: #333E92;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.cn-back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.cn-back-to-top:hover {
  background: #333E92;
  border-color: #fff;
  color: #fff;
}

/* -----------------------------------------------------------------------------
   b-title-media — tick en appui à gauche sur les blocs non-reverse (image à droite)
----------------------------------------------------------------------------- */
@media (width >= 1024px) {
  .b-title-media__wrapper:not(.b-title-media__wrapper--reverse) .b-title-media__tick {
    right: auto;
    left: 0;
  }
}

/* -----------------------------------------------------------------------------
   b-slider-rooms — cadre décoratif (::before) : inset identique au mobile à ≥ 1280px
   HH utilise inset: 0 8.33% à ce breakpoint, ce qui rentre le cadre sous le contenu
----------------------------------------------------------------------------- */
@media (width >= 1280px) {
  .b-slider-rooms__slider::before {
    inset: 0 -2rem;
  }

  .b-slider-rooms__tick--slider {
    left: 0;
  }
}

/* -----------------------------------------------------------------------------
   b-slider-inspiration — cadre décoratif (::before) : pleine largeur à ≥ 1280px
   HH centre un cadre de 83.33% avec left:50% + translateX(-50%), on annule tout
----------------------------------------------------------------------------- */
@media (width >= 1280px) {
  .b-slider-inspiration__container::before {
    inset: -3.8rem -2.2rem 0 -2.2rem;
    transform: none;
    width: initial;
  }

  .b-slider-inspiration__tick {
    left: 0;
  }
}

/* -----------------------------------------------------------------------------
   b-related-post — padding-bottom réduit de moitié en mobile
   (padding-top 10rem conservé, > 1280px déjà géré par HH)
----------------------------------------------------------------------------- */
.b-related-post {
  padding-bottom: 8.5rem;
}

@media (width >= 768px) {
  .b-related-post {
    padding-bottom: 17rem;
  }
}

/* -----------------------------------------------------------------------------
   b-faq — padding responsive (jamais deux blocs consécutifs)
----------------------------------------------------------------------------- */
.b-faq {
  padding: 6rem 0;
}

@media (width >= 768px) {
  .b-faq {
    padding: 10rem 0;
  }
}

@media (width >= 1024px) {
  .b-faq {
    padding: 12rem 0;
  }
}

@media (width >= 1280px) {
  .b-faq {
    padding: 14rem 0;
  }
}

@media (width >= 1440px) {
  .b-faq {
    padding: 16rem 0;
  }
}

/* -----------------------------------------------------------------------------
   b-title-media — padding responsive + séparation entre blocs consécutifs
----------------------------------------------------------------------------- */
.b-title-media {
  padding: 5.5rem 0;
}

@media (width >= 768px) {
  .b-title-media {
    padding: 9rem 0;
  }
}

@media (width >= 1024px) {
  .b-title-media {
    padding: 11rem 0;
  }
}

@media (width >= 1280px) {
  .b-title-media {
    padding: 12rem 0;
  }
}

@media (width >= 1440px) {
  .b-title-media {
    padding: 13.6rem 0;
  }
}

.b-title-media + .b-title-media {
  padding-top: calc(5.5rem + 4rem);
}

@media (width >= 768px) {
  .b-title-media + .b-title-media {
    padding-top: calc(9rem + 4rem);
  }
}

@media (width >= 1024px) {
  .b-title-media + .b-title-media {
    padding-top: calc(11rem + 4rem);
  }
}

@media (width >= 1280px) {
  .b-title-media + .b-title-media {
    padding-top: calc(12rem + 4rem);
  }
}

@media (width >= 1440px) {
  .b-title-media + .b-title-media {
    padding-top: calc(13.6rem + 4rem);
  }
}

/* -----------------------------------------------------------------------------
   b-video — titre plus petit en mobile (< 768px)
----------------------------------------------------------------------------- */
@media (width < 768px) {
  .b-video__title {
    font-size: 4rem;
  }
}

/* -----------------------------------------------------------------------------
   b-job-offers__item-tag.urgent — masqué en attendant approbation client
   À retirer quand le style sera validé
----------------------------------------------------------------------------- */
.b-job-offers__item-tag.urgent {
  display: none;
}

/* -----------------------------------------------------------------------------
   footer — overflow-x clip pour éviter le scroll horizontal (élément décoratif)
----------------------------------------------------------------------------- */
footer.footer {
  overflow-x: clip;
}

/* -----------------------------------------------------------------------------
   footer__buttons — wrap des boutons en mobile (téléphone, écrire, infolettre)
----------------------------------------------------------------------------- */
@media (width < 768px) {
  .footer__buttons {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* -----------------------------------------------------------------------------
   b-contents-image — tick déplacé dans __contents (CN-MOD 2026-03-19)
----------------------------------------------------------------------------- */
.b-contents-image__tick {
  right: initial;
  left: 0;
  transform: translateY(calc(-100% - 20px));
}

.b-contents-image__tick.is-mirrored {
  left: initial;
  right: 0;
  transform: translateY(calc(-100% - 20px));
}


/* -----------------------------------------------------------------------------
   Skip home animation - Annulation animation home (CN-MOD 2026-03-19)
----------------------------------------------------------------------------- */
.skip-home-animation{
  overflow: initial !important;
  overflow-x: clip !important;
}

.skip-home-animation .b-cover-home__search{
  translate: none !important;
  rotate: none !important;
  scale: none !important;
  transform: translate(0px, 0px) !important;
  opacity: 1 !important;
}

.skip-home-animation .b-cover-home__line{
  translate: none !important;
  rotate: none !important;
  scale: none !important;
  transform: translate(0px, 0px) !important;
}

.skip-home-animation .b-cover-home__buttons .e-button{
  translate: none !important;
  rotate: none !important;
  scale: none !important;
  transform: translate(0px, 0px) !important;
  opacity: 1 !important;
}

.skip-home-animation .b-cover-home__scroll-down .e-scroll-down{
  transform: translate(0px, 0px) !important;
  translate: none !important;
  transition: none !important;
  rotate: none !important;
  scale: none !important;
  opacity: 1 !important;
}


.skip-home-animation .b-cover-home__title span *{
  position: relative !important;
  display: inline-block !important;
  translate: none !important;
  rotate: none !important;
  scale: none !important;
  transform: translate(0px, 0px) !important;
}