/* En-tête mobile plus sobre, pensé d'abord pour rassurer les parents. */
@media (max-width: 900px) {
  .header .header-top {
    min-height: 64px !important;
  }

  .header .mobile-auth-shortcuts {
    right: 50px !important;
    display: flex !important;
    width: auto !important;
    min-height: 0 !important;
    gap: 6px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  .header .mobile-auth-shortcuts[hidden] {
    display: none !important;
  }

  .header .mobile-auth-shortcuts button,
  .header .mobile-auth-shortcuts button:first-child,
  .header .mobile-auth-shortcuts button:last-child {
    min-height: 36px !important;
    padding: 0 11px !important;
    border-radius: 9px !important;
    font: 700 12px/1 "Trebuchet MS", Arial, sans-serif !important;
    letter-spacing: 0 !important;
    box-shadow: none !important;
  }

  .header .mobile-auth-shortcuts button:first-child {
    border: 1.5px solid #5520ad !important;
    background: #fff !important;
    color: #43158e !important;
  }

  .header .mobile-auth-shortcuts button:last-child {
    border: 1.5px solid #4b179e !important;
    background: #4b179e !important;
    color: #fff !important;
  }

  .header .menu-button,
  .header .menu-button[aria-expanded="true"] {
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    border: 1px solid #d7d0e3 !important;
    border-radius: 9px !important;
    background: #fff !important;
    color: #392260 !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .header .menu-button-icon {
    font-size: 22px !important;
    line-height: 1 !important;
  }

  .header .menu-button-label {
    display: none !important;
  }

  .header .menu-button[aria-expanded="true"] {
    border-color: #4b179e !important;
    background: #f5f1fb !important;
    color: #4b179e !important;
  }
}

@media (max-width: 430px) {
  .header .brand { width: 142px !important; }
  .header .mobile-auth-shortcuts { right: 43px !important; gap: 3px !important; }
  .header .mobile-auth-shortcuts button,
  .header .mobile-auth-shortcuts button:first-child,
  .header .mobile-auth-shortcuts button:last-child {
    min-height: 28px !important;
    padding: 0 5px !important;
    border-radius: 7px !important;
    font-size: 9.5px !important;
  }

  .header .menu-button,
  .header .menu-button[aria-expanded="true"] {
    width: 34px !important;
    height: 34px !important;
    border-radius: 8px !important;
  }

  .header .menu-button-icon { font-size: 20px !important; }
}
