/* =========================================================================
   Site header
   ========================================================================= */
.site-header {
  position: relative;
  z-index: 20;
  background: var(--syn-green-800);
  color: #fff;
}
/* Over a hero photo: a frosted-glass band (Figma "Header Navigation",
   1209:8777). */
.site-header--overlay {
  position: absolute;
  inset: 0 0 auto;
  border-bottom: 0.75px solid rgba(255, 255, 255, 0.2);
  background: none;
}
/* The glass sits on a layer of its own: an element with a backdrop filter
   hides the page from its children's filters, and the dropdowns below need
   to blur the page too (recette). */
.site-header--overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(157deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 100%);
  -webkit-backdrop-filter: blur(37.4px);
  backdrop-filter: blur(37.4px);
}

.site-header__top-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding-block: 38px 27px;
}

.site-header__global {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
}
.site-header__global:hover { text-decoration: none; opacity: 0.85; }
.site-header__globe {
  flex: none;
  display: inline-block;
  width: 24px; height: 24px;
  background: url("../../images/icon-header-globe.svg") center / contain no-repeat;
}

.site-header__brand {
  justify-self: center;
  text-align: end;
  color: #fff;
  line-height: 1;
}
.site-header__brand:hover { text-decoration: none; }
/* The brand mark exported from Figma: white wordmark, green leaf. */
.site-header__logo {
  display: block;
  width: 140px;
  height: auto;
}
.site-header__country {
  display: block;
  margin-top: 1px;
  font-size: 0.68rem;
  text-align: end;
}

.site-header__actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 22px;
}
.site-header__actions .btn {
  min-height: 36px;
  padding: 9px 15px;
  border: 1px solid #fff;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 16.5px;
  letter-spacing: -0.007em;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
/* Hover (Figma prototype, images/se-connecter.mp4): a green disc rises from
   the bottom centre until it fills the pill, and sinks back on leaving. The
   white outline and label stay on top. */
.site-header__actions .btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 100%;
  width: 130%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--syn-green-500);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.35s ease;
}
.site-header__actions .btn:hover,
.site-header__actions .btn:focus-visible {
  background: transparent;
  border-color: #fff;
  color: #fff;
  text-decoration: none;
}
.site-header__actions .btn:hover::before,
.site-header__actions .btn:focus-visible::before { transform: translate(-50%, -50%) scale(1); }
@media (prefers-reduced-motion: reduce) {
  .site-header__actions .btn::before { transition: none; }
}
/* Language dropdown: "FR ⌄" in the header, the three languages below. */
.lang-switch { position: relative; }
.lang-switch__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 16px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.lang-switch__toggle:lang(ar) { font-size: 0.8125rem; }
.lang-switch__toggle:hover,
.lang-switch__toggle:focus-visible,
.lang-switch__toggle[aria-expanded="true"] { border-color: #fff; background: rgba(255, 255, 255, 0.12); }
.lang-switch__chevron {
  width: 8px; height: 8px;
  margin-block-start: -3px;
  /* Physical sides: the chevron points down whatever the direction. */
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.lang-switch__toggle[aria-expanded="true"] .lang-switch__chevron { margin-block-start: 3px; transform: rotate(-135deg); }
.lang-switch__menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 150px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.18);
}
.lang-switch__menu[hidden] { display: none; }
.lang-switch__link {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--syn-green-800);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
  text-align: start;
}
.lang-switch__link:lang(ar) { font-family: var(--font-body); }
.lang-switch__link:hover,
.lang-switch__link:focus-visible { background: #eef6ef; text-decoration: none; }
.lang-switch__link.is-active {
  background: #eef6ef;
  color: var(--syn-green-500);
  font-weight: 700;
}
@media (prefers-reduced-motion: reduce) {
  .lang-switch__toggle, .lang-switch__chevron { transition: none; }
}

.site-header__search {
  width: 34px; height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: url("../../images/icon-header-search.svg") center / 18px no-repeat;
  cursor: pointer;
}

/* Hamburger: hidden on desktop, shown with the panel below 900px. */
.site-header__burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin-inline-start: -10px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
}
.site-header__burger-bars,
.site-header__burger-bars::before,
.site-header__burger-bars::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.site-header__burger-bars { position: relative; }
.site-header__burger-bars::before,
.site-header__burger-bars::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
}
.site-header__burger-bars::before { top: -7px; }
.site-header__burger-bars::after { top: 7px; }
/* Bars fold into a cross while the panel is open. */
.is-nav-open .site-header__burger-bars { background: transparent; }
.is-nav-open .site-header__burger-bars::before { transform: translateY(7px) rotate(45deg); }
.is-nav-open .site-header__burger-bars::after { transform: translateY(-7px) rotate(-45deg); }

.site-header__global--in-panel,
.site-header__nav .site-header__global--in-panel,
.site-header__nav .site-header__login--in-panel,
.site-header__subtoggle { display: none; }

.site-header__nav > .container > * { border-top: 1px solid rgba(181, 181, 181, 0.44); }
.site-header__nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  padding: 30px 0 17px;
}
/* Menu items without a URL render as <span>, so both are styled alike. */
.site-header__nav a,
.site-header__nav li > span {
  display: inline-block;
  padding: 7.4px 11px;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
}
.site-header__nav li > span { cursor: default; }
.site-header__nav a:hover { text-decoration: none; opacity: 0.8; }
.site-header__nav li.menu-item--expanded > :is(a, span)::after {
  content: "";
  display: inline-block;
  width: 7.2px; height: 4.3px;
  margin-inline-start: 9px;
  vertical-align: middle;
  background: url("../../images/icon-header-chevron.svg") center / contain no-repeat;
}
.site-header__nav ul ul li.menu-item--expanded > :is(a, span)::after { content: none; }

/* Submenus drop below their parent on hover or keyboard focus. */
.site-header__nav li { position: relative; }
/* Dropdowns (Figma "Solutions par culture" 1139:6571, "Nos produits"
   1139:6587…): a frosted-glass panel hanging from the band, rows that turn
   green under the pointer. */
.site-header__nav ul ul {
  position: absolute;
  top: calc(100% + 17px);
  inset-inline-start: -11px;
  z-index: 20;
  display: none;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 7px;
  min-width: 241px;
  padding: 17px 11px;
  border-bottom: 0.75px solid rgba(255, 255, 255, 0.2);
  border-radius: 0 0 16px 16px;
  background: linear-gradient(117deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 100%), rgba(20, 30, 20, 0.35);
  -webkit-backdrop-filter: blur(37.4px);
  backdrop-filter: blur(37.4px);
}
/* Keeps the pointer inside while it crosses the gap above the panel. */
.site-header__nav ul ul::before { content: ""; position: absolute; inset: -17px 0 100%; }
.site-header__nav li:hover > ul,
.site-header__nav li:focus-within > ul { display: flex; }
.site-header__nav ul ul li { width: 100%; }
.site-header__nav ul ul a {
  display: flex;
  align-items: center;
  min-height: 41px;
  padding: 0 20px;
  border-radius: 7px;
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
}
.site-header__nav ul ul a:hover,
.site-header__nav ul ul a:focus-visible,
.site-header__nav ul ul a.is-active { opacity: 1; background: var(--syn-green-500); }

/* The hero states the page title, so the title block is hidden there. */
.page--has-hero #block-syngenta-theme-page-title { display: none; }
