
/* ---------------------------------------------------
   HEADER REFINEMENT
--------------------------------------------------- */

header {
  position: sticky;  
  top: 0;
  left: 0;
  right: 0;
  background: #f5f5f5; /* gris clair élégant */
  color: var(--text);
  z-index: 1000;
  border-bottom: 1px solid #d5f5d5;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1rem;
  height: 56px;
}

.header-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
  max-width: 80%;
  align-content: center;
  align-items: center;
}

.header-title h1 {
  font-size: 0.80rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--text);
  margin: 0;
  font-weight: 600;
}

.header-title .subtitle {
  font-size: 0.6rem;
  color: #666;
  /*! letter-spacing: 0.1em; */
  font-weight: 400;
  white-space: nowrap;
  margin: 0;
  text-transform: uppercase;
}

/* ---------------------------------------------------
   BURGER MODERNE
--------------------------------------------------- */
.burger {
  position: absolute;
  top: calc(50% + 6px);
  right: 1.2rem;
  transform: translateY(-50%);
  width: 24px;
  height: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  /*! z-index: 1100; */
}

.burger span {
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: all 0.3s ease;
  transform-origin: left;
}
.burger.open span {
  background: white;
}


.burger span:nth-child(1) {
  width: 100%;
}
.burger span:nth-child(2) {
  width: 70%;
}
.burger span:nth-child(3) {
  width: 85%;
}

.burger:hover span:nth-child(1) {
  width: 85%;
}
.burger:hover span:nth-child(2) {
  width: 100%;
}
.burger:hover span:nth-child(3) {
  width: 60%;
}

/* TRANSFORMATION EN CROIX */
.burger.open span:nth-child(1) {
  transform: rotate(45deg) translate(-3px, 12px);
  width: 100%;
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(-24px, 10px);
  width: 100%;
}



/* MENU OVERLAY AMÉLIORÉ */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.96);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateY(-100%);
  opacity: 0;
  transition: all 0.5s ease;
  overflow-y: auto;
}

.menu-overlay.open {
  transform: translateY(0);
  opacity: 1;
}

.menu-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.2rem;
  text-align: center;
  padding: 0;
  margin: 0;
}

/* LIENS DE MENU */
.menu-links a {
  position: relative;
  font-size: 1.1rem;
  color: var(--fg);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.5rem;
  transition: color 0.3s ease;
}

.menu-links a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  width: 100%;
  height: 1px;
  background: var(--fg);
  transition: transform 0.3s ease;
}

.menu-links a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.menu-links a:hover {
  color: #ccc;
}

/* LIEN ACTIF */
.menu-links a.active {
  font-weight: 600;
  color: var(--fg);
}

.menu-links a.active::after {
  transform: translateX(-50%) scaleX(1);
  background: var(--fg);
}

/* BOUTON DÉCONNEXION DÉPORTÉ */
.menu-overlay form {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
}

.menu-overlay button {
  background: none;
  color: var(--fg);
  border: 1px solid var(--fg);
  padding: 0.4rem 1rem;
  border-radius: var(--radius);
  text-transform: uppercase;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.menu-overlay button:hover {
  background: var(--fg);
  color: var(--bg);
}
