/* ovastack-hero.css — topbar produit Ovastack (logo Cloudbizz, navigation de section,
   langue, connexion, CTA) et menu mobile. Depuis la refonte « reel » (2026-09-29), le
   hero lui-même vit dans ovastack.css ; ce fichier ne porte plus que le header.
   Sur la page reel, la topbar est posée sur le hero (transparente) et devient opaque
   dès que la page défile (classe .is-scrolled posée par ovastack.js). */

.ovastack-page {
  --oh-teal: #3fe3c9;
  --oh-cta-bg: #c7e1fc;
  --oh-cta-ink: #0a1626;
}

/* ===== Topbar dark ovastack (sticky pleine largeur) ===== */
.oh-topbar {
  position: sticky;
  top: 0;
  z-index: 160;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(18px, 2vw, 34px);
  width: 100%;
  min-height: var(--cb-topbar-h);
  padding: 0 var(--cb-topbar-pad-x);
  background: rgba(4, 8, 15, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(146, 176, 216, 0.07);
}

/* Page reel : la topbar recouvre le hero puis s'opacifie au défilement. */
.ovr-page .oh-topbar {
  height: var(--cb-topbar-h);
  margin-bottom: calc(-1 * var(--cb-topbar-h));
  border-bottom-color: transparent;
  background: linear-gradient(180deg, rgba(3, 8, 20, .74) 0%, rgba(3, 8, 20, 0) 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background-color .45s ease, border-color .45s ease;
}

.ovr-page .oh-topbar.is-scrolled {
  border-bottom-color: rgba(146, 176, 216, 0.08);
  background: rgba(3, 8, 20, .84);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
}

.oh-cloudbizz-logo {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  line-height: 1;
  text-decoration: none;
}
.oh-cloudbizz-logo .brand__logo-img {
  display: block;
  width: clamp(132px, 9.45vw, 158px);
  height: auto;
  filter: brightness(0) invert(1);
}
.oh-cloudbizz-logo:focus-visible {
  outline: 2px solid #a9d8ff;
  outline-offset: 6px;
  border-radius: 3px;
}

.oh-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  width: fit-content;
  min-height: 64px;
  padding: 0 clamp(30px, 3.4vw, 58px);
  gap: clamp(24px, 3.3vw, 56px);
  border: 1px solid rgba(146, 176, 216, 0.2);
  border-radius: 16px;
  background: rgba(10, 18, 32, 0.42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.oh-nav a {
  position: relative;
  color: rgba(226, 235, 250, 0.92);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-decoration: none;
  white-space: nowrap;
}
.oh-nav a:hover { color: #fff; }
.oh-nav a[aria-current="location"] { color: #fff; }
.oh-nav a[aria-current="location"]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -12px;
  left: 0;
  height: 2px;
  border-radius: 99px;
  background: var(--oh-teal);
}

.oh-topbar__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 1.6vw, 26px);
}
.ovastack-page .oh-topbar .language-select { margin: 0; }
.ovastack-page .oh-topbar .language-select::after { display: none; }
.ovastack-page .oh-topbar .language-select select {
  width: auto;
  height: auto;
  min-width: 82px;
  min-height: 48px;
  padding: 0 30px 0 18px;
  border: 1px solid rgba(146, 176, 216, 0.26);
  border-radius: 12px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e6eefb' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 9 5 5 5-5'/%3E%3C/svg%3E") right 12px center / 12px no-repeat,
    rgba(10, 18, 32, 0.42);
  color: #e6eefb;
  font-weight: 600;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.oh-login {
  color: rgba(228, 237, 252, 0.92);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.oh-login:hover { color: #fff; }
.oh-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 10px;
  color: var(--oh-cta-ink);
  background: var(--oh-cta-bg);
  box-shadow: 0 7px 24px rgba(76, 153, 218, 0.17);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.oh-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(76, 153, 218, 0.28);
}
.oh-menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(146, 176, 216, 0.26);
  border-radius: 12px;
  background: rgba(10, 18, 32, 0.42);
  color: #e6eefb;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.oh-menu-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.oh-mobile-menu[hidden] { display: none; }
.oh-mobile-menu {
  position: sticky;
  top: 72px;
  z-index: 155;
  display: grid;
  gap: 4px;
  padding: 14px clamp(24px, 5vw, 40px) 20px;
  background: rgba(4, 9, 17, 0.96);
  border-bottom: 1px solid rgba(146, 176, 216, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.oh-mobile-menu a {
  padding: 12px 4px;
  color: rgba(230, 238, 251, 0.94);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(146, 176, 216, 0.1);
}
.oh-mobile-menu a:last-child { border-bottom: 0; }
.oh-mobile-menu a[aria-current="location"] {
  color: #fff;
  box-shadow: inset 3px 0 0 var(--oh-teal);
}

/* Le topbar sticky recouvre le haut des sections ciblées par ancre */
.ovastack-page main section[id] { scroll-margin-top: 96px; }

/* ===== Responsive ===== */
@media (max-width: 1320px) {
  /* Navigation masquée : deux colonnes, sans gouttière perdue sur une colonne vide. */
  .oh-topbar { grid-template-columns: auto minmax(0, 1fr); }
  .oh-nav { display: none; }
  .oh-menu-toggle { display: inline-flex; }
}
@media (max-width: 760px) {
  .ovastack-page .page-breadcrumb--product { display: none; }
  .oh-login { display: none; }
  .oh-cta { min-height: 46px; padding: 0 18px; font-size: 15px; }
}
@media (max-width: 620px) {
  .oh-topbar { gap: 10px; padding: 10px 14px; }
  .oh-cloudbizz-logo .brand__logo-img { width: 126px; }
  .oh-topbar .oh-cta { display: none; }
  .oh-menu-toggle { padding: 0 14px; }
}
@media (max-width: 380px) {
  .oh-topbar {
    gap: 6px;
    padding: 8px 10px;
  }
  .ovastack-page .oh-topbar .language-select select {
    min-width: 64px;
    min-height: 46px;
    padding-inline: 12px 24px;
    background-position: right 8px center;
  }
  .oh-menu-toggle {
    gap: 6px;
    min-height: 46px;
    padding-inline: 10px;
  }
}

@media (min-width: 761px) {
  .ovastack-page .page-breadcrumb--product {
    left: var(--ovastack-breadcrumb-left, var(--cb-topbar-pad-x));
    transform: none;
  }
}
