/** --- reset des propriétés non utiles --- */
/* VARIABLE DEFINITIONS */
html[data-theme="light"],
:root {
  --secondary: #24365b;
  --scopix-green: #0a8468;
}

body {
  box-sizing: border-box !important;
}

.module caption.tenant-app {
  background: var(--scopix-green) !important;
}

/* Branding personnalisé */
#site-name a {
  color: #54cd8e !important;
  font-size: 20px;
  font-weight: bold;
}

#site-name {
  margin-inline-end: 0 !important;
  padding: 16px 0 !important;
  display: flex;
  align-items: center;
}

/** --- Surcharge breadCrumb --- */
div.breadcrumbs {
  background: var(--scopix-green) !important;
}

/** --- Surcharge header administration --- */

header {
  padding: 0 40px !important;
}

#header #user-tools {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 100%;
}

@media screen and (max-width: 1025px) {
  #header #user-tools {
    display: none;
  }
}

/* --- Navigation horizontale --- */

#branding {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  position: relative !important;
  gap: 24px;
}

/* Hamburger menu caché au départ */
#branding .menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
}

.top-menu ul {
  display: flex;
  margin: 0 !important;
  padding: 0 0 !important;
  height: 60px;
  align-items: stretch; /* permet aux enfants de prendre toute la place */
  margin-top: 11px !important;
}

.top-menu li {
  display: flex;
  height: 100%;
  margin-top: -5px; /* permet de réaligner le text au milieu pour compenser le margin-top 11px; */
}

.top-menu a {
  display: flex;
  align-items: center;
  padding: 0 20px;
  padding-bottom: 4px; /* ajuste le placement pour tomber pile en bas du menu */
  height: 100%;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}

.top-menu a:hover,
.top-menu .active {
  background: var(--scopix-green);
}

@media screen and (max-width: 635px) {
  #branding .menu-toggle {
    display: block;
    cursor: pointer;
  }

  .top-menu {
    background: #24365b !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(-100%);
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 1000;
    padding-bottom: 16px;
  }

  .top-menu.open {
    opacity: 1;
    transform: translateY(70px);
  }

  .top-menu ul {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 0px;
    height: inherit;
  }

  .top-menu li {
    margin-top: 0;
  }

  .top-menu a {
    border-radius: 4px;
    padding: 24px 48px;
  }
}
