/* =========================
   HEADER
========================= */
.bw-header {
  height: var(--bw-header-h);
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 9999;
}

.bw-header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.bw-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.bw-logo-desktop {
  display: flex;
  align-items: center;
}

.bw-logo-mobile {
  display: none;
  align-items: center;
}

.bw-logo-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
}

.bw-logo-desktop .bw-logo-img {
  max-height: 78px;
}

.bw-logo-mobile .bw-logo-img {
  max-height: 52px;
}

/* =========================
   DESKTOP NAV
========================= */
.bw-main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  flex: 1;
}

.bw-main-nav a {
  color: #111111;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.bw-main-nav a:hover {
  color: #17bdb3;
  transform: translateY(-1px);
}

/* =========================
   BUTTONS
========================= */
.bw-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bw-header-actions-desktop {
  display: flex;
}

.bw-header-actions-mobile {
  display: none;
}

.bw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 16px 28px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  border: 1.5px solid transparent;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.bw-btn:hover {
  transform: translateY(-2px);
}

.bw-btn-gradient {
  color: #ffffff;
  background: linear-gradient(90deg, #17d0c4 0%, #f16361 100%);
}

.bw-btn-icon img {
  width: 20px;
  height: 20px;
  display: block;
}

.bw-lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1.5px solid #111111;
  background: transparent;
  color: #111111;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  transition: transform 0.25s ease;
}

.bw-lang-switch:hover {
  transform: translateY(-2px);
}

.bw-btn-pass-mobile {
  width: 58px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
}

.bw-lang-switch-mobile {
  min-width: 46px;
  height: 40px;
  font-size: 14px;
}

/* =========================
   BURGER
========================= */
.bw-burger {
  width: 54px;
  height: 54px;
  border: none;
  background: transparent;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 0;
  cursor: pointer;
}

.bw-burger span {
  display: block;
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: #111111;
  margin-left: auto;
}

/* =========================
   MOBILE MENU
========================= */
.bw-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  z-index: 90;
}

.bw-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(86vw, 340px);
  height: 100vh;
  background: #ffffff;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 0.32s ease;
  z-index: 100;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
}

.bw-mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.bw-mobile-menu-title {
  font-size: 22px;
  font-weight: 900;
  color: #111111;
}

.bw-mobile-menu-close {
  border: none;
  background: transparent;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  color: #111111;
  padding: 0;
}

.bw-mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bw-mobile-nav-link {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid #d9d9d9;
  border-radius: 16px;
  font-size: 17px;
  font-weight: 800;
  color: #111111;
}

body.menu-open .bw-mobile-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.menu-open .bw-mobile-menu {
  transform: translateX(0);
}

/* =========================
   NEW HERO
========================= */
.bw-hero-new {
  position: relative;
  min-height: calc(100vh - var(--bw-header-h));
  overflow: hidden;
  background-image: url("../images/hero/global-gateway-hero.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.bw-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(18, 201, 193, 0.72) 0%,
    rgba(51, 54, 115, 0.35) 42%,
    rgba(241, 99, 97, 0.68) 100%
  );
  z-index: 1;
}

.bw-hero-new-inner {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - var(--bw-header-h));

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;

  padding: 60px 0;
}

.bw-hero-new-content {
  width: min(100%, 1100px);

  min-height: calc(100vh - var(--bw-header-h) - 120px);

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: space-between;
}

.bw-hero-new-title {
  margin: auto 0;

  color: #ffffff;
  font-size: clamp(38px, 5.2vw, 74px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0.02em;

  text-align: center;

  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.bw-hero-project-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 360px;
  min-height: 74px;

  padding: 0 44px;

  border-radius: 999px;

  background: #f16361;

  color: #ffffff;

  font-size: 30px;
  font-weight: 900;
  line-height: 1;

  text-decoration: none;

  box-shadow: 0 18px 40px rgba(241, 99, 97, 0.35);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.bw-hero-project-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 55px rgba(241, 99, 97, 0.45);
}

/* =========================
   OLD HERO / COUNTDOWN KEPT
========================= */
.bw-hero-inner,
.bw-hero-content,
.bw-hero-title,
.bw-hero-date,
.bw-countdown-wrap,
.bw-countdown-ring,
.bw-countdown-center,
.bw-countdown-days,
.bw-countdown-time {
  /* Ancien hero conservé dans index.php en commentaire */
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1270px) {
  .bw-main-nav {
    gap: 18px;
  }

  .bw-main-nav a {
    font-size: 15px;
  }

  .bw-btn {
    padding: 15px 24px;
    font-size: 17px;
  }
}

@media (max-width: 991px) {
  .bw-main-nav,
  .bw-header-actions-desktop {
    display: none;
  }

  .bw-header-actions-mobile {
    display: flex;
  }

  .bw-logo-desktop {
    display: none;
  }

  .bw-logo-mobile {
    display: flex;
  }

  .bw-burger {
    display: flex;
  }

  .bw-hero-new {
    min-height: calc(100vh - var(--bw-header-h));
    background-position: center center;
  }

  .bw-hero-new-inner {
    min-height: calc(100vh - var(--bw-header-h));
    padding: 52px 0;
  }

  .bw-hero-new-title {
    font-size: clamp(34px, 8vw, 56px);
    line-height: 1.12;
    max-width: 720px;
  }

  .bw-hero-project-btn {
    margin-top: 180px;
    min-width: 300px;
    min-height: 62px;
    font-size: 24px;
  }
}

@media (max-width: 575px) {
  .bw-hero-new {
    min-height: calc(100vh - var(--bw-header-h));
    background-position: center center;
  }

  .bw-hero-new-inner {
    padding: 44px 0;
  }

  .bw-hero-new-title {
    font-size: 34px;
    line-height: 1.14;
  }

  .bw-hero-project-btn {
    margin-top: 150px;
    min-width: 260px;
    min-height: 56px;
    padding: 0 28px;
    font-size: 21px;
  }
}

/* =========================
   MAIN NAV ACTIVE
========================= */
.bw-main-nav a {
  position: relative;
}

.bw-main-nav a.active {
  color: #16d0c5;
}

.bw-main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: #f16462;
}

/* =========================
   HOME HERO SLIDER - SAME AS EN BREF
========================= */
.home-hero {
  position: relative;
  width: 100%;
  height: min(72vh, 720px);
  min-height: 520px;
  overflow: hidden;
  border-bottom-left-radius: 92px;
  border-bottom-right-radius: 92px;
  background: #1d2940;
}

.home-hero-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.home-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.9s ease,
    visibility 0.9s ease;
}

.home-hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.home-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*.home-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(18, 201, 193, 0.68) 0%,
      rgba(51, 54, 115, 0.28) 45%,
      rgba(241, 99, 97, 0.66) 100%
    ),
    linear-gradient(
      180deg,
      rgba(31, 38, 98, 0.05) 0%,
      rgba(31, 38, 98, 0.68) 100%
    );
}*/

.home-hero-content {
  position: absolute;
  left: 50%;
  bottom: 62px;
  z-index: 3;
  width: min(100% - 96px, 1280px);
  transform: translateX(-50%);
  text-align: center;
}

.home-hero-content h1 {
  width: min(100%, 980px);
  margin: 0 auto;
  color: #ffffff;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -1.5px;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.home-hero-btn {
  margin-top: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 360px;
  min-height: 74px;
  padding: 0 44px;
  border-radius: 999px;
  background: #f16462;
  color: #ffffff;
  font-size: 30px;
  font-weight: 900;
  box-shadow: 0 18px 40px rgba(241, 100, 98, 0.34);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.home-hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 54px rgba(241, 100, 98, 0.44);
}

.home-hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-hero-dots button {
  width: 42px;
  height: 10px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition:
    width 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

.home-hero-dots button.is-active {
  width: 48px;
  background: #16d0c5;
  border-color: #16d0c5;
}

/* =========================
   RESPONSIVE HOME HERO
========================= */
@media (max-width: 991px) {
  .home-hero {
    height: 62vh;
    min-height: 460px;
    border-bottom-left-radius: 62px;
    border-bottom-right-radius: 62px;
  }

  .home-hero-content {
    width: min(100% - 48px, 100%);
    bottom: 58px;
  }

  .home-hero-content h1 {
    font-size: clamp(34px, 7vw, 54px);
  }

  .home-hero-btn {
    margin-top: 42px;
    min-width: 300px;
    min-height: 62px;
    font-size: 24px;
  }
}

@media (max-width: 575px) {
  .home-hero {
    height: 62vh;
    min-height: 430px;
    border-bottom-left-radius: 42px;
    border-bottom-right-radius: 42px;
  }

  .home-hero-content {
    width: min(100% - 28px, 100%);
    bottom: 58px;
  }

  .home-hero-content h1 {
    font-size: 31px;
    line-height: 1.08;
    letter-spacing: -0.6px;
  }

  .home-hero-btn {
    margin-top: 32px;
    min-width: 250px;
    min-height: 56px;
    font-size: 21px;
  }

  .home-hero-dots {
    bottom: 24px;
  }

  .home-hero-dots button {
    width: 30px;
    height: 8px;
  }

  .home-hero-dots button.is-active {
    width: 36px;
  }
}
