/**
 * Aurora header: align "Nous contacter" + dark mode toggle.
 * Overrides flex squeeze that turned the CTA into a tall oval and
 * the moon button into a 28×45 ellipse.
 */

#header .container-fluid {
  align-items: center;
}

#header .header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  gap: 0.65rem;
  margin-left: 0.75rem;
  min-height: 42px;
}

/* Pill CTA — fixed height, no wrap, no flex-shrink */
#header .header-actions .btn-get-started.hide-on-mobile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  white-space: nowrap;
  box-sizing: border-box;
  height: 42px;
  padding: 0 1.25rem;
  margin: 0;
  line-height: 1;
  border-radius: 50px;
  letter-spacing: 0.5px;
}

/* Preserve original hide-on-mobile (must win over the inline-flex above) */
@media screen and (max-width: 768px) {
  #header .header-actions .btn-get-started.hide-on-mobile {
    display: none !important;
  }
}

#header .header-actions #darkmode-button {
  box-sizing: border-box;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  min-width: 42px;
  max-width: 42px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(2, 90, 221, 0.4);
  border-radius: 50px; /* same curve family as Aurora pills; circle when square */
  display: inline-grid;
  place-items: center;
  background: rgba(2, 90, 221, 0.06);
  color: #025add;
  cursor: pointer;
  line-height: 1;
  outline: none;
}

#header .header-actions #darkmode-button i {
  font-size: 1rem;
  line-height: 1;
}

#header .header-actions #darkmode-button:hover {
  background: rgba(2, 90, 221, 0.12);
}

#header .header-actions .mobile-nav-toggle.mobile-nav-show {
  margin: 0;
  flex: 0 0 auto;
  align-self: center;
  line-height: 1;
}

/* Keep header CTA readable when theme vars collapse to black */
body.dark #header .header-actions .btn-get-started.hide-on-mobile,
:root.dark #header .header-actions .btn-get-started.hide-on-mobile {
  background: linear-gradient(45deg, #025add, #0c6de0);
  color: #fff;
}

body.dark #header .header-actions #darkmode-button,
:root.dark #header .header-actions #darkmode-button {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

body.dark #header .header-actions #darkmode-button:hover,
:root.dark #header .header-actions #darkmode-button:hover {
  background: rgba(255, 255, 255, 0.16);
}

@media (max-width: 1279px) {
  #header .header-actions {
    gap: 0.5rem;
    margin-left: 0.25rem;
  }
}
