/*
 * ONIVA CARGO R8.1.8
 * Header, langue, accueil et suivi public.
 */

.header .nav {
  width: min(calc(100% - 32px), 1280px);
  min-height: 88px;
  height: auto;
  padding-block: 10px;
  gap: 16px;
}

.header .brand {
  flex: 0 0 auto;
  min-width: 172px;
}

.header .brand-logo {
  width: 58px;
  height: 58px;
  flex-basis: 58px;
  filter:
    drop-shadow(0 10px 22px rgba(217, 151, 22, 0.24));
}

.header .brand small {
  font-size: 9px;
  line-height: 1.35;
}

.header .public-links {
  min-width: 0;
  justify-content: flex-end;
}

.header .links a {
  padding: 9px;
  white-space: nowrap;
}

.header .nav-actions {
  flex: 0 0 auto;
  gap: 8px;
}

.header .language-toggle {
  flex: 0 0 auto;
  min-width: 48px;
  min-height: 46px;
}

.header .nav-actions .btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  line-height: 1.15;
}

.header .nav-actions .btn-primary {
  min-width: 128px;
}

.announcement {
  font-size: 14px;
}

.announcement .container {
  min-height: 42px;
  padding-block: 7px;
  flex-wrap: wrap;
  text-align: center;
}

.hero-r77 {
  min-height: min(760px, calc(100vh - 130px));
  padding: clamp(62px, 7vw, 96px) 0;
}

.hero-r77 .hero-grid {
  width: min(calc(100% - 40px), 1180px);
  margin-inline: auto;
  grid-template-columns:
    minmax(0, 1.08fr)
    minmax(390px, 0.92fr);
  align-items: center;
  gap: clamp(40px, 7vw, 92px);
}

.hero-r77 h1 {
  max-width: 760px;
  font-size: clamp(54px, 6.4vw, 92px);
  line-height: 1.03;
  text-wrap: balance;
}

.hero-r77 .lead {
  max-width: 690px;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.7;
}

.hero-console {
  width: 100%;
  max-width: 520px;
  justify-self: end;
  padding: clamp(26px, 3vw, 38px);
  border-radius: 28px;
}

.hero-console h2,
.hero-console h3 {
  text-wrap: balance;
}

.tracking-hero {
  min-height: 62px;
  align-items: center;
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.24);
}

.tracking-hero input {
  min-height: 48px;
  font-size: 15px;
}

.tracking-hero .btn {
  min-height: 48px;
  padding-inline: 22px;
}

.route-chip-grid {
  gap: 12px;
}

.route-chip {
  min-height: 72px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions .btn {
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .header .nav {
    width: min(calc(100% - 28px), 1080px);
  }

  .header .brand {
    min-width: auto;
  }

  .header .brand-logo {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }

  .header .links {
    display: none;
    position: absolute;
    top: 88px;
    left: 0;
    right: 0;
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
    background: #090e17;
    border-bottom:
      1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
      0 22px 45px rgba(0, 0, 0, 0.34);
  }

  .header .links.open {
    display: flex;
  }

  .header .links a {
    padding: 13px 16px;
  }

  .header .menu-toggle {
    display: block;
    margin-left: auto;
  }
}

@media (max-width: 900px) {
  .hero-r77 {
    min-height: auto;
  }

  .hero-r77 .hero-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero-console {
    max-width: none;
    justify-self: stretch;
  }
}

@media (max-width: 600px) {
  .header .nav {
    min-height: 72px;
    padding-block: 7px;
  }

  .header .brand-logo {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .header .links {
    top: 72px;
  }

  .header .nav-actions {
    gap: 6px;
  }

  .header .language-toggle {
    min-width: 44px;
    min-height: 42px;
  }

  .hero-r77 h1 {
    font-size: clamp(44px, 13vw, 62px);
  }

  .hero-r77 .lead {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .tracking-hero {
    display: grid;
    min-height: auto;
    gap: 8px;
  }

  .tracking-hero input,
  .tracking-hero .btn {
    width: 100%;
  }
}

/* R8.1.8.2 — contraste des étapes premium */
.feature-band .premium-card {
  color: #f7fafc;
}

.feature-band .premium-card h3 {
  color: #ffffff;
  font-weight: 800;
}

.feature-band .premium-card p {
  color: #b9cbe0;
}

.feature-band .premium-card > span,
.feature-band .premium-card > strong,
.feature-band .premium-card > b {
  color: #e7aa2f;
}

.feature-band .premium-card.accent h3 {
  color: #fff4dc;
}

.feature-band .premium-card.accent > span,
.feature-band .premium-card.accent > strong,
.feature-band .premium-card.accent > b {
  color: #ffc85a;
}

