/* Navigation publique — pastilles .custom-nav-color (remire-montjoly.fr) */

.header {
  --header-ink: #171717;
  --header-muted: #696b7e;
  --header-green: #077b3a;
  --header-green-soft: #61ce70;
  --header-yellow: #f8e818;
  --header-red: #d63516;
  --header-gold: #f9bd67;
  --header-control-height: 2.35rem;
  --header-control-height-expanded: 3.2rem;
  position: relative;
  z-index: 40;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  align-items: center;
  gap: 1.75rem;
  flex-shrink: 0;
  height: 4.75rem;
  box-sizing: border-box;
  padding: 10px clamp(1.15rem, 3vw, 2.25rem) 0;
  overflow: visible;
  background: #fff;
  border-bottom: none;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.04);
}

/* Barre séparateur jaune → rouge (identique #custom-header::before) */
.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 10px;
  width: 100%;
  background: var(--rm-gradient-bar);
  border-radius: 0;
}

.header::after {
  display: none;
}

.header__glow {
  display: none;
}

.header__brand {
  z-index: 1;
  display: flex;
  align-items: center;
  height: var(--header-control-height-expanded);
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.header__brand-name {
  display: block;
  font-family: var(--ds-font-accent, "Poppins", sans-serif);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--header-ink);
  transition: color 240ms ease;
}

.header__brand:hover .header__brand-name {
  color: var(--header-green);
}

.header__nav {
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  line-height: 1;
  height: var(--header-control-height-expanded);
  overflow: visible;
}

/* Liens nav — texte sans pastille (point jaune actif conservé) */
.header__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: var(--header-control-height);
  min-height: var(--header-control-height);
  box-sizing: border-box;
  padding: 0 0.95rem;
  border-radius: 30px;
  overflow: visible;
  color: var(--header-ink);
  font-family: var(--ds-font-accent, "Poppins", sans-serif);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  background: transparent;
  transform-origin: center;
  transition:
    height 240ms cubic-bezier(0.22, 1, 0.36, 1),
    color 0.2s ease;
}

.header__link:hover,
.header__link--active {
  height: var(--header-control-height-expanded);
}

.header__link:hover,
.header__link--active {
  color: var(--header-green);
}

.header__link--active {
  color: var(--header-ink);
}

.header__link-label {
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/*
 * Le point participe au flux : son apparition agrandit le groupe texte + point.
 * Comme ce groupe reste centré dans le lien, le libellé remonte naturellement.
 */
.header__link-label::after {
  content: "";
  width: 10px;
  height: 0;
  margin-top: 0;
  flex: 0 0 auto;
  border-radius: 50%;
  background-color: transparent;
  opacity: 0;
  transform: scale(0.35);
  transition:
    height 220ms cubic-bezier(0.22, 1, 0.36, 1),
    margin-top 220ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 160ms ease,
    opacity 160ms ease,
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.header__link:hover .header__link-label::after,
.header__link--active .header__link-label::after {
  height: 10px;
  margin-top: 0.35rem;
  background-color: var(--header-yellow);
  opacity: 1;
  transform: scale(1);
}

.header__link--console {
  color: var(--header-ink);
}

.header__link--console:hover,
.header__link--console.header__link--active {
  color: var(--header-red);
}

.header__social {
  display: flex;
  align-items: center;
  height: var(--header-control-height-expanded);
  gap: 0.45rem;
  margin-left: 0.35rem;
  line-height: 0;
}

.header__social.rm-social--sm .rm-social__link svg {
  width: 1.2rem;
  height: 1.2rem;
}

@media (max-width: 820px) {
  .header {
    display: flex;
    flex-wrap: wrap;
    height: auto;
    min-height: 4.75rem;
    gap: 0.85rem;
    padding-top: 1.15rem;
  }

  .header__nav {
    width: 100%;
    height: auto;
    justify-content: flex-start;
  }

  .header__social {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header__link,
  .header__link-label::after {
    transition: none;
  }
}
