/* En-tête AFECCAV — actions adhérent */

.afeccav-head-detail {
  display: block;
}

.afeccav-head-adherer-wrap {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0.2rem 0;
}

.afeccav-header-adherer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--afeccav-blue, #202f5b);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.2;
  padding: 0.45rem 1rem;
  border-radius: var(--afeccav-radius, 6px);
  text-decoration: none !important;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.afeccav-header-adherer-btn:hover,
.afeccav-header-adherer-btn:focus {
  background: var(--afeccav-blue-dark, #182448);
  color: #fff !important;
  outline: none;
}

.afeccav-header-guest-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.afeccav-header-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--afeccav-blue, #202f5b) !important;
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.2;
  padding: 0.45rem 1rem;
  border-radius: var(--afeccav-radius, 6px);
  text-decoration: none !important;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid #fff;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.afeccav-header-login-btn:hover,
.afeccav-header-login-btn:focus {
  background: rgba(255, 255, 255, 0.9);
  color: var(--afeccav-blue-dark, #182448) !important;
  outline: none;
}

.afeccav-head-detail .afeccav-header-login-btn .afeccav-icon,
.afeccav-head-detail .afeccav-header-login-btn .afeccav-icon .ti {
  color: inherit;
}

.afeccav-header-adherer-btn.is-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff !important;
}

.afeccav-header-adherer-btn.is-secondary:hover,
.afeccav-header-adherer-btn.is-secondary:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff !important;
}

.afeccav-header-account {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

.afeccav-header-account-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.afeccav-header-account-link:hover,
.afeccav-header-account-link:focus {
  color: rgba(255, 255, 255, 0.85) !important;
  text-decoration: underline !important;
}

.afeccav-header-actions--mobile {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-right: 0.45rem;
  margin-left: auto;
}

.afeccav-header-actions--mobile .afeccav-lang-switcher {
  margin-right: 0.15rem;
}

.afeccav-header-actions--mobile .afeccav-header-login-btn,
.afeccav-header-actions--mobile .afeccav-header-adherer-btn {
  font-size: 0.78rem;
  padding: 0.4rem 0.75rem;
}

.afeccav-header-actions--mobile .afeccav-header-account-link {
  font-size: 0.78rem;
  color: var(--afeccav-blue, #202f5b) !important;
}

.afeccav-header-actions--mobile .afeccav-header-login-btn {
  background: var(--afeccav-blue, #202f5b);
  color: #fff !important;
  border-color: var(--afeccav-blue, #202f5b);
}

.afeccav-header-actions--mobile .afeccav-header-login-btn .afeccav-icon,
.afeccav-header-actions--mobile .afeccav-header-login-btn .afeccav-icon .ti {
  color: inherit;
}

.afeccav-header-actions--mobile .afeccav-header-adherer-btn.is-secondary {
  color: var(--afeccav-blue, #202f5b) !important;
  border-color: var(--afeccav-blue, #202f5b);
  background: transparent;
}

@media (max-width: 991px) {
  .afeccav-head-detail .row {
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .afeccav-head-adherer-wrap {
    justify-content: flex-end;
    width: auto;
    margin-left: auto;
  }
}

@media (min-width: 992px) {
  .m-header .afeccav-header-actions--mobile {
    display: none;
  }
}
