/* HR Expo 2027 — consolidated custom styles. Generated from V10/V11. */

/* ===== Consolidated from hr-expo-v7-cross-browser.css; original cascade order preserved ===== */
/*
 * HR Expo 2027 — V7
 * Correctifs ciblés Chrome / Vivaldi / Edge / Firefox.
 * Les règles du thème restent intactes ; ce fichier ne fait que stabiliser
 * la géométrie du Hero et la visibilité du personnage.
 */

/* Géométrie stable du slider et de ses colonnes */
.hero-slider-one,
.hero-slider-one *,
.hero-slider-one *::before,
.hero-slider-one *::after {
  box-sizing: border-box;
}

.hero-slider-one {
  overflow: hidden;
}

.hero-slider-one .container {
  width: 100%;
  margin-inline: auto;
}

.hero-slider-one .row {
  min-width: 0;
}

.hero-slider-one .row > .col-xxl-8,
.hero-slider-one .row > .col-xl-9,
.hero-slider-one .row > .col-lg-11 {
  min-width: 0;
}

/* Titre : éviter les coupures au milieu des mots et les lignes trop étroites */
.hero-slider-one__content {
  min-width: 0;
  max-width: 100%;
  transform-origin: left center;
}

.hero-slider-one__title {
  max-width: 100%;
  min-width: 0;
  font-size: clamp(2.9rem, 4.15vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.018em;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.hero-slider-one__title__highlight {
  max-width: 100%;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
}

.hero-slider-one__title .d-inline-block {
  white-space: normal;
}

/* À partir de 1200 px, le personnage ne dépend plus du seuil fragile
   max-width:1599px du thème d'origine. */
@media (min-width: 1200px) {
  .hero-slider-one .row > .col-xxl-8,
  .hero-slider-one .row > .col-xl-9,
  .hero-slider-one .row > .col-lg-11 {
    flex: 0 0 78%;
    width: 78%;
    max-width: 78%;
  }

  .hero-slider-one__content {
    width: 100%;
    max-width: 990px;
    padding-left: 70px;
    margin-left: 0;
    margin-right: auto;
  }

  .hero-slider-one__title {
    font-size: clamp(3.25rem, 4.1vw, 4.25rem);
  }

  .hero-slider-one__image {
    display: block !important;
    width: clamp(390px, 36vw, 570px);
    max-width: 40%;
    right: clamp(28px, 6.8vw, 110px);
    bottom: 0;
    z-index: 2;
  }

  .hero-slider-one__image__box {
    width: 100%;
  }

  .hero-slider-one__image img {
    display: block !important;
    width: auto !important;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center bottom;
  }
}

/* Grands écrans : largeur de lecture plus généreuse sans déplacer le bloc */
@media (min-width: 1600px) {
  .hero-slider-one .container {
    max-width: 1446px;
  }

  .hero-slider-one .row > .col-xxl-8,
  .hero-slider-one .row > .col-xl-9,
  .hero-slider-one .row > .col-lg-11 {
    flex-basis: 78%;
    width: 78%;
    max-width: 78%;
  }

  .hero-slider-one__content {
    max-width: 1020px;
  }
}

/* Tablettes et petits portables : retour à une seule colonne sans débordement */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .hero-slider-one .row > [class*="col-"] {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }

  .hero-slider-one__content {
    width: 100%;
    max-width: 900px;
    padding-left: 0;
  }

  .hero-slider-one__title {
    font-size: clamp(2.8rem, 5.4vw, 3.75rem);
  }

  .hero-slider-one__image {
    display: block !important;
    width: 34%;
    max-width: 430px;
    right: 20px;
  }
}

/* Smartphones : le personnage passe derrière/à côté du texte selon l'espace */
@media (max-width: 767.98px) {
  .hero-slider-one .row > [class*="col-"] {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }

  .hero-slider-one__content {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .hero-slider-one__title {
    font-size: clamp(2rem, 8vw, 3.25rem);
    line-height: 1.1;
    letter-spacing: -0.015em;
  }

  .hero-slider-one__title__highlight {
    white-space: normal;
  }

  .hero-slider-one__image {
    display: none !important;
  }

  .hero-slider-one__buttons {
    flex-wrap: wrap;
    gap: 12px;
  }
}

/* Le slider conserve ses états d'animation, mais les transformations ne
   doivent pas créer de débordement horizontal. */
.hero-slider-one .owl-item,
.hero-slider-one .owl-item .hero-slider-one__item {
  min-width: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slider-one .owl-item *,
  .hero-slider-one__bg__main,
  .hero-slider-one__image,
  .hero-slider-one__top__box,
  .hero-slider-one__text,
  .hero-slider-one__btn {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ===== Consolidated from hr-expo-v8-typography.css; original cascade order preserved ===== */
/*
 * HR Expo 2027 — V8
 * Ajustement des bandeaux et des titres des slides 2 et 3.
 * Conserve le correctif V7 de visibilité du personnage.
 */
.hero-slider-one__title {
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

/* Slide 2 : « de l’entreprise. » reste un groupe insécable. */
.hero-slider-one__title .hero-title-company {
  display: inline-block;
  white-space: nowrap;
}

/* Slide 3 : le bandeau turquoise épouse le texte au lieu de s'étirer.
   La locution « de l’écosystème » est insécable. */
.hero-slider-one__title.hero-title-slide-3 {
  max-width: 100%;
}

.hero-slider-one__title.hero-title-slide-3 .hero-slider-one__title__highlight {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  padding-right: clamp(18px, 2vw, 32px);
  white-space: nowrap;
  vertical-align: baseline;
}

.hero-slider-one__title.hero-title-slide-3 .hero-title-ecosystem {
  display: inline-block;
  white-space: nowrap;
}

@media (min-width: 1200px) {
  .hero-slider-one__title.hero-title-slide-3 {
    font-size: clamp(2.85rem, 3.65vw, 3.65rem);
    line-height: 1.12;
  }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .hero-slider-one__title.hero-title-slide-3 {
    font-size: clamp(2.35rem, 4.3vw, 3.35rem);
  }
  .hero-slider-one__title.hero-title-slide-3 .hero-slider-one__title__highlight {
    white-space: normal;
  }
  .hero-slider-one__title.hero-title-slide-3 .hero-title-ecosystem {
    white-space: nowrap;
  }
}

@media (max-width: 767.98px) {
  .hero-slider-one__title .hero-title-company {
    white-space: normal;
  }
  .hero-slider-one__title.hero-title-slide-3 .hero-slider-one__title__highlight {
    display: inline;
    width: auto;
    padding-right: 0;
    white-space: normal;
  }
  .hero-slider-one__title.hero-title-slide-3 .hero-title-ecosystem {
    display: inline-block;
    white-space: nowrap;
  }
}


/* V9 — Slide 3 sur trois lignes :
   1) au regard / 2) des mutations (bandeau) / 3) de l’écosystème. */
.hero-slider-one__title.hero-title-slide-3 .hero-title-line {
  display: block;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
}
.hero-slider-one__title.hero-title-slide-3 .hero-slider-one__title__highlight.hero-title-line {
  display: block;
  width: fit-content;
  max-width: 100%;
  white-space: nowrap;
}
.hero-slider-one__title.hero-title-slide-3 .hero-title-ecosystem-line {
  display: block;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
}
.hero-slider-one__title.hero-title-slide-3 .hero-title-ecosystem-line .hero-slider-one__title__stroke {
  display: inline;
  white-space: nowrap;
}
@media (max-width: 767.98px) {
  .hero-slider-one__title.hero-title-slide-3 .hero-title-line,
  .hero-slider-one__title.hero-title-slide-3 .hero-slider-one__title__highlight.hero-title-line,
  .hero-slider-one__title.hero-title-slide-3 .hero-title-ecosystem-line {
    width: auto;
    max-width: 100%;
    white-space: normal;
  }
}

/* ===== Consolidated from hr-expo-v10-slide3-layout.css; original cascade order preserved ===== */
/*
 * HR Expo 2027 — V10
 * Fix définitif de l'empilement du titre du slide 3.
 * Les trois segments sont trois lignes distinctes, sans flux inline.
 */
.hero-slider-one__title.hero-title-slide-3 {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  width: 100%;
  max-width: 100%;
  line-height: 1.08 !important;
  overflow: visible;
}

.hero-slider-one__title.hero-title-slide-3 > .hero-title-line {
  display: block !important;
  position: relative !important;
  float: none !important;
  clear: both !important;
  flex: 0 0 auto !important;
  align-self: flex-start !important;
  width: auto !important;
  max-width: 100% !important;
  min-width: 0;
  margin: 0 !important;
  padding-top: 0;
  padding-bottom: 0;
  white-space: nowrap !important;
  transform: none;
}

.hero-slider-one__title.hero-title-slide-3 > .hero-slider-one__title__highlight.hero-title-line {
  display: block !important;
  width: fit-content !important;
  max-width: 100% !important;
  padding: 0 clamp(18px, 2vw, 32px) !important;
  white-space: nowrap !important;
  line-height: 1.12 !important;
}

.hero-slider-one__title.hero-title-slide-3 > .hero-title-ecosystem-line {
  display: block !important;
  width: fit-content !important;
  max-width: 100% !important;
  white-space: nowrap !important;
}

.hero-slider-one__title.hero-title-slide-3 .hero-slider-one__title__stroke {
  display: inline !important;
  white-space: nowrap !important;
}

/* Laisser une largeur suffisante au texte sans le faire passer sous le personnage. */
@media (min-width: 1200px) {
  .hero-slider-one__title.hero-title-slide-3 {
    max-width: min(100%, 900px);
    font-size: clamp(2.9rem, 3.65vw, 3.65rem) !important;
  }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .hero-slider-one__title.hero-title-slide-3 {
    font-size: clamp(2.35rem, 4.3vw, 3.35rem) !important;
  }
}

@media (max-width: 767.98px) {
  .hero-slider-one__title.hero-title-slide-3 {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    font-size: clamp(1.9rem, 7.8vw, 3rem) !important;
  }
  .hero-slider-one__title.hero-title-slide-3 > .hero-title-line,
  .hero-slider-one__title.hero-title-slide-3 > .hero-slider-one__title__highlight.hero-title-line,
  .hero-slider-one__title.hero-title-slide-3 > .hero-title-ecosystem-line {
    width: auto !important;
    max-width: 100% !important;
    white-space: normal !important;
  }
  .hero-slider-one__title.hero-title-slide-3 > .hero-slider-one__title__highlight.hero-title-line {
    padding-inline: 14px !important;
  }
  .hero-slider-one__title.hero-title-slide-3 .hero-slider-one__title__stroke {
    white-space: normal !important;
  }
}

/* ===== Consolidated from hr-expo-v11-topbar-register.css; original cascade order preserved ===== */
/*
 * HR Expo 2027 V11 — bouton Inscription de la topbar.
 * Alignement à gauche, surface blanche et contraste accessible.
 */
.header .topbar .topbar__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(12px, 2vw, 26px);
}

/* La liste d'informations est vide dans le template : elle ne réserve aucun espace. */
.header .topbar .topbar__info:empty {
  display: none !important;
}

.header .topbar .hr-topbar-register {
  order: 0;
  flex: 0 0 auto;
  margin: 0 auto 0 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 46px;
  padding: 7px 9px 7px 22px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 999px;
  background: #fff !important;
  color: #12385e !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .055em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 5px 18px rgba(5,38,68,.13);
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.header .topbar .hr-topbar-register span {
  color: #12385e !important;
}

.header .topbar .hr-topbar-register i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  margin: 0;
  border-radius: 50%;
  background: #18867e !important;
  color: #fff !important;
  font-size: 13px;
}

.header .topbar .hr-topbar-register:hover,
.header .topbar .hr-topbar-register:focus-visible {
  background: #f1f8f7 !important;
  color: #12385e !important;
  box-shadow: 0 8px 22px rgba(5,38,68,.18);
  transform: translateY(-1px);
  outline: 3px solid rgba(255,255,255,.35);
  outline-offset: 2px;
}

.header .topbar .hr-topbar-register:hover i,
.header .topbar .hr-topbar-register:focus-visible i {
  background: #065ec0 !important;
  color: #fff !important;
}

.header .topbar .topbar__social {
  order: 1;
  flex: 0 0 auto;
  margin-left: auto !important;
}

@media (max-width: 991.98px) {
  .header .topbar .topbar__inner {
    flex-wrap: nowrap;
    justify-content: space-between;
  }
  .header .topbar .hr-topbar-register {
    margin-right: auto !important;
  }
  .header .topbar .topbar__social {
    margin-left: auto !important;
  }
}

@media (max-width: 575.98px) {
  .header .topbar .topbar__inner {
    gap: 8px;
  }
  .header .topbar .hr-topbar-register {
    min-height: 40px;
    padding: 5px 7px 5px 14px;
    gap: 8px;
    font-size: 10px;
    letter-spacing: .035em;
  }
  .header .topbar .hr-topbar-register i {
    flex-basis: 26px;
    width: 26px;
    height: 26px;
    font-size: 11px;
  }
  .header .topbar .topbar__social {
    max-width: calc(100% - 120px);
  }
  .header .topbar .topbar__social .social-links {
    gap: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header .topbar .hr-topbar-register,
  .header .topbar .hr-topbar-register i {
    transition: none !important;
  }
}

/* ===== Consolidated from hr-expo-v12-topbar-alignment.css; original cascade order preserved ===== */
/*
 * HR Expo 2027 V12 — alignement horizontal de la barre supérieure.
 * Inscription à l'extrême gauche du conteneur ; Suivez-nous à l'extrême droite.
 */
.header .topbar .topbar__inner {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
  gap: 16px !important;
}
.header .topbar .topbar__info:empty {
  display: none !important;
  width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
.header .topbar .hr-topbar-register {
  order: 0 !important;
  flex: 0 0 auto !important;
  margin: 0 auto 0 0 !important;
  align-self: center !important;
}
.header .topbar .topbar__social {
  order: 1 !important;
  flex: 0 0 auto !important;
  margin: 0 0 0 auto !important;
  align-self: center !important;
}
@media (max-width: 767.98px) {
  .header .topbar .topbar__inner {
    gap: 8px !important;
  }
  .header .topbar .hr-topbar-register {
    margin-left: 0 !important;
    margin-right: auto !important;
  }
  .header .topbar .topbar__social {
    margin-left: auto !important;
    margin-right: 0 !important;
  }
}
@media (max-width: 380px) {
  .header .topbar .hr-topbar-register {
    gap: 5px !important;
    padding-left: 10px !important;
    padding-right: 6px !important;
    font-size: 9px !important;
  }
  .header .topbar .topbar__social {
    padding: 5px 7px !important;
  }
  .header .topbar .topbar__social .social-links a:nth-child(n+4) {
    display: none !important;
  }
}

/* ===== Consolidated from hr-expo-v19-menu-responsive.css; original cascade order preserved ===== */
/* HR Expo 2027 V19 — sous-menus verticaux complets et chevron discret */

/* Chaque liste secondaire est une vraie liste verticale : aucun élément ne part
   sur une seconde colonne ou ne disparaît à cause d'un flex-row hérité. */
.header .main-menu__list li > ul.sub-menu,
.mobile-nav__container .main-menu__list li > ul.sub-menu,
.mobile-nav__content .main-menu__list li > ul.sub-menu {
  flex-direction: column !important;
  align-items: stretch !important;
  width: 100%;
}

.header .main-menu__list > li > ul.sub-menu {
  max-height: min(76vh, 680px);
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

/* Sous-niveaux dans le panneau, jamais hors écran. */
.header .main-menu__list li ul.sub-menu li.dropdown > ul.sub-menu {
  position: static !important;
  inset: auto !important;
  display: none !important;
  flex-direction: column !important;
  align-items: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  max-height: none !important;
  margin: 2px 0 7px !important;
  padding: 4px 0 4px 14px !important;
  overflow: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  box-shadow: none !important;
  background: rgba(6, 63, 121, .045) !important;
  border-left: 2px solid rgba(24, 134, 126, .35);
}

.header .main-menu__list li ul.sub-menu li.dropdown:hover > ul.sub-menu,
.header .main-menu__list li ul.sub-menu li.dropdown:focus-within > ul.sub-menu,
.header .main-menu__list li ul.sub-menu li.dropdown.hr-submenu-open > ul.sub-menu {
  display: block !important;
}

.header .main-menu__list li ul.sub-menu li,
.mobile-nav__container .main-menu__list li ul.sub-menu li,
.mobile-nav__content .main-menu__list li ul.sub-menu li {
  display: block !important;
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
}

.header .main-menu__list li ul.sub-menu li > a,
.mobile-nav__container .main-menu__list li ul.sub-menu li > a,
.mobile-nav__content .main-menu__list li ul.sub-menu li > a {
  display: block !important;
  width: 100%;
  white-space: normal !important;
  overflow-wrap: anywhere;
}

/* Bouton de développement : chevron fin, sans caractère + / −. */
.header .main-menu__list li.dropdown,
.mobile-nav__container .main-menu__list li.dropdown,
.mobile-nav__content .main-menu__list li.dropdown {
  position: relative;
}

.header .main-menu__list li.dropdown > .hr-menu-toggle,
.mobile-nav__container .main-menu__list li.dropdown > .hr-menu-toggle,
.mobile-nav__content .main-menu__list li.dropdown > .hr-menu-toggle {
  position: absolute !important;
  z-index: 4;
  top: 7px;
  right: 7px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50%;
  background: transparent !important;
  box-shadow: none !important;
  color: currentColor !important;
  font-size: 0 !important;
  line-height: 1 !important;
  cursor: pointer;
}

.header .main-menu__list li.dropdown > .hr-menu-toggle::before,
.mobile-nav__container .main-menu__list li.dropdown > .hr-menu-toggle::before,
.mobile-nav__content .main-menu__list li.dropdown > .hr-menu-toggle::before {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  border-right: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease;
}

.header .main-menu__list li.dropdown > .hr-menu-toggle.is-open::before,
.mobile-nav__container .main-menu__list li.dropdown > .hr-menu-toggle.is-open::before,
.mobile-nav__content .main-menu__list li.dropdown > .hr-menu-toggle.is-open::before {
  transform: rotate(225deg) translate(-1px, -1px);
}

.header .main-menu__list li.dropdown > a,
.mobile-nav__container .main-menu__list li.dropdown > a,
.mobile-nav__content .main-menu__list li.dropdown > a {
  padding-right: 42px !important;
}

@media (max-width: 1199.98px) {
  .mobile-nav__content .main-menu__list,
  .mobile-nav__container .main-menu__list {
    max-height: calc(100dvh - 120px);
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }

  .mobile-nav__content .main-menu__list li > ul.sub-menu,
  .mobile-nav__container .main-menu__list li > ul.sub-menu {
    max-height: none !important;
    overflow: visible !important;
  }

  .mobile-nav__content .main-menu__list li.dropdown.hr-submenu-open > ul.sub-menu,
  .mobile-nav__container .main-menu__list li.dropdown.hr-submenu-open > ul.sub-menu {
    display: block !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header .main-menu__list li > ul.sub-menu,
  .hr-menu-toggle::before { transition: none !important; }
}

/* ===== Consolidated from hr-expo-v20-navigation.css; original cascade order preserved ===== */
/* HR Expo 2027 V20 — restauration du header fixe et navigation One Page fiable */

/* Le clone sticky natif de Conlive reste le seul header fixe au défilement. */
.sticky-header--cloned.main-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1100 !important;
  display: block !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translate3d(0, -105%, 0) !important;
  background: rgba(255,255,255,.98) !important;
  box-shadow: 0 8px 28px rgba(14,45,76,.12) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  backdrop-filter: blur(12px) !important;
}
.sticky-header--cloned.main-header.active {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translate3d(0, 0, 0) !important;
}
.sticky-header--cloned.main-header .main-menu__list > li > a {
  color: #17324d !important;
  text-shadow: none !important;
}
.sticky-header--cloned.main-header .main-menu__list > li.current > a,
.sticky-header--cloned.main-header .main-menu__list > li:hover > a,
.sticky-header--cloned.main-header .main-menu__list > li > a:focus-visible {
  color: #18867e !important;
}
.sticky-header--cloned.main-header .main-header__logo img {
  max-height: 66px;
  width: auto;
}

/* Les sections visées ne passent jamais sous le header fixe. */
#smooth-content > [id] { scroll-margin-top: 105px; }

/* Les sous-menus restent dans la zone visible du clone sticky. */
.sticky-header--cloned .main-menu__list > li > ul.sub-menu {
  max-height: min(72vh, 620px);
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
}

@media (max-width: 1199.98px) {
  .sticky-header--cloned.main-header .main-header__inner {
    min-height: 76px;
  }
  .sticky-header--cloned.main-header .main-header__logo img {
    max-width: min(52vw, 190px);
    max-height: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sticky-header--cloned.main-header { transition: none !important; }
}
