/* ovastack-hero.css — topbar produit Ovastack (logo Cloudbizz, navigation de section,
   langue, connexion, CTA), menu mobile et fil d'Ariane. Depuis la page illustrée
   (2026-10-11), la topbar reprend l'en-tête de la page d'accueil sur papier :
   transparente sur la hero, vitrée crème dès que la page défile (classe .is-scrolled
   posée par ovastack.js), encre sombre et bouton en dégradé. Le contenu de la page
   vit dans ovastack.css. */

.ovastack-page {
  --oh-paper: #fbf4e6;
  --oh-ink: var(--cb-ink);
  --oh-link: #2f43b8;
  --oh-line: rgba(7, 8, 63, .2);
  --oh-accent-button: linear-gradient(rgba(7, 8, 63, .42), rgba(7, 8, 63, .42)), var(--cb-accent-gradient);
}

/* ===== Topbar (sticky pleine largeur, posée sur la hero) ===== */
.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%;
  height: var(--cb-topbar-h);
  min-height: var(--cb-topbar-h);
  margin-bottom: calc(-1 * var(--cb-topbar-h));
  padding: 0 var(--cb-topbar-pad-x);
  color: var(--oh-ink);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .45s ease, border-color .45s ease, box-shadow .45s ease;
}

.oh-topbar.is-scrolled {
  background: rgba(251, 244, 230, .86);
  border-bottom-color: rgba(7, 8, 63, .06);
  box-shadow: 0 1px 0 rgba(7, 8, 63, .05);
  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;
}

/* Le mot-symbole partagé passe à l'encre sur le papier, comme sur la page d'accueil. */
.ovastack-page .oh-cloudbizz-logo.cb-header-wordmark--light { --cb-header-wordmark-ink: var(--oh-ink); }

.oh-cloudbizz-logo:focus-visible {
  outline: 3px solid #3d5ff0;
  outline-offset: 6px;
  border-radius: 3px;
}

.oh-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  width: fit-content;
  min-height: 48px;
  gap: clamp(24px, 3vw, 48px);
}

.oh-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--oh-ink);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.oh-nav a:hover { color: var(--oh-link); }
.oh-nav a[aria-current="location"] { color: var(--oh-link); }
.oh-nav a[aria-current="location"]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  border-radius: 99px;
  background: var(--cb-accent-gradient);
}

.oh-nav a:focus-visible,
.oh-login:focus-visible,
.oh-cta:focus-visible,
.oh-menu-toggle:focus-visible,
.oh-mobile-menu a:focus-visible {
  outline: 3px solid #3d5ff0;
  outline-offset: 3px;
  border-radius: 6px;
}

.oh-topbar__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 1.6vw, 22px);
}

.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: 74px;
  min-height: 44px;
  padding: 0 28px 0 14px;
  border: 1px solid var(--oh-line);
  border-radius: 8px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2307083f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 9 5 5 5-5'/%3E%3C/svg%3E") right 10px center / 11px no-repeat,
    rgba(255, 253, 249, .7);
  color: var(--oh-ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .06em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 6px 18px rgba(7, 8, 63, .06);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.oh-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--oh-ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.oh-login:hover { color: var(--oh-link); }

.oh-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 9px;
  color: #fff;
  background: var(--oh-accent-button);
  box-shadow: 0 10px 26px rgba(66, 140, 223, .28);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.015em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.oh-cta:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(66, 140, 223, .38);
}

.oh-menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--oh-line);
  border-radius: 12px;
  background: rgba(255, 253, 249, .7);
  color: var(--oh-ink);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.oh-menu-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* ===== Menu mobile, sur papier ===== */
.oh-mobile-menu[hidden] { display: none; }
.oh-mobile-menu {
  position: sticky;
  top: var(--cb-topbar-h);
  z-index: 155;
  display: grid;
  gap: 4px;
  padding: 14px clamp(24px, 5vw, 40px) 20px;
  background: rgba(251, 244, 230, .98);
  border-bottom: 1px solid rgba(7, 8, 63, .08);
  box-shadow: 0 26px 50px rgba(61, 44, 14, .14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.oh-mobile-menu a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 4px;
  color: var(--oh-ink);
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(7, 8, 63, .1);
}

.oh-mobile-menu a:last-child { border-bottom: 0; }
.oh-mobile-menu a:hover { color: var(--oh-link); }
.oh-mobile-menu a[aria-current="location"] {
  color: var(--oh-link);
  box-shadow: inset 3px 0 0 #42bbdf;
  padding-left: 14px;
}

/* ===== Fil d'Ariane produit, en pastille crème sous la topbar ===== */
.ovastack-page main:has(> .page-breadcrumb--product) {
  --breadcrumb-top: calc(var(--cb-topbar-h) + 6px);
}

.ovastack-page .page-breadcrumb--product {
  border-color: rgba(7, 8, 63, .1);
  background: rgba(255, 252, 245, .78);
  color: #4a4f80;
  box-shadow: 0 8px 22px rgba(61, 44, 14, .08);
}

.ovastack-page .page-breadcrumb--product b { color: var(--oh-ink); }
.ovastack-page .page-breadcrumb--product span[aria-hidden] { color: rgba(7, 8, 63, .3); }
.ovastack-page .page-breadcrumb--product a:hover { color: var(--oh-link); }
.ovastack-page .page-breadcrumb--product a:focus-visible { outline: 3px solid #3d5ff0; outline-offset: 2px; border-radius: 4px; }

/* ===== 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: 1120px) {
  /* Hero empilée : la topbar redevient une bande opaque dans le flux. */
  .oh-topbar {
    margin-bottom: 0;
    background: rgba(251, 244, 230, .92);
    border-bottom-color: rgba(7, 8, 63, .06);
  }

  .ovastack-page main:has(> .page-breadcrumb--product) { --breadcrumb-top: 14px; }
  .ovastack-page .page-breadcrumb--product { position: relative; top: auto; left: auto; margin: 14px auto 0 20px; }
}

@media (max-width: 760px) {
  .ovastack-page .page-breadcrumb--product { display: none; }
  .oh-login { display: none; }
  .oh-cta { min-height: 44px; padding: 0 16px; font-size: 14px; }
}

@media (max-width: 620px) {
  .oh-topbar { gap: 10px; padding: 10px 14px; }
  .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;
    padding-inline: 12px 24px;
    background-position: right 8px center, 0 0;
  }
  .oh-menu-toggle {
    gap: 6px;
    min-height: 46px;
    padding-inline: 10px;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .oh-topbar,
  .oh-cta { transition: none; }
}

/* Page illustrée : le mot-symbole reste aligné à gauche comme sur la page d'accueil
   (product-topbar-logo.css centre la marque dans sa colonne sur les autres pages produit). */
@media (min-width: 1321px) {
  .ovastack-page.ov27-page .oh-topbar > .topbar-brand { justify-self: start; }
}
