/* Header NETA-NKÁB - Moderne & Responsive */
:root {
  --nk-main-bg: #1a2236;
  --nk-accent: #ff9800;
  --nk-text: #fff;
  --nk-nav-hover: #232b44;
}
.nk-header {
  width: 100vw;
  min-width: 100vw;
  left: 0;
  position: relative;
  margin: 0;
  box-sizing: border-box;
  background: var(--nk-main-bg) !important;
  color: var(--nk-text);
  z-index: 1000;
}
.nk-header-top, .nk-header-main {
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}
.nk-header-top {
  border-bottom: 1px solid #2c3146;
}
.nk-header-location, .nk-header-slogan, .nk-header-contact {
  color: var(--nk-text);
}
.nk-header-contact a,
.nk-header-contact a[href^="mailto:"],
.nk-header-contact a[href^="tel:"] {
  color: var(--nk-text) !important;
  text-decoration: none !important;
}
.nk-header-contact a:hover,
.nk-header-contact a[href^="mailto:"]:hover,
.nk-header-contact a[href^="tel:"]:hover {
  color: var(--nk-accent) !important;
}

/* Règle globale pour tous les liens d'email et téléphone */
a[href^="mailto:"], a[href^="tel:"] {
  color: inherit !important;
  text-decoration: none !important;
  cursor: pointer;
}
a[href^="mailto:"]:hover, a[href^="tel:"]:hover {
  color: var(--nk-accent) !important;
  text-decoration: none !important;
}

/* Position uniforme du menu hamburger sur toutes les pages */
.nk-header-hamburger {
  position: absolute;
  right: 2vw;
  top: 50%;
  transform: translateY(-50%);
  display: none; /* Caché par défaut sur grand écran */
  background: rgba(255,152,0,0.1) !important;
  justify-self: end !important;
  flex-shrink: 0 !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 2003 !important;
  width: 38px !important;
  height: 38px !important;
  flex-direction: column !important;
  border: 1.5px solid var(--nk-accent) !important;
  border-radius: 7px !important;
  cursor: pointer !important;
  padding: 8px !important;
}

/* Règle globale pour forcer l'affichage des barres hamburger */
.nk-header-hamburger span {
  display: block !important;
  width: 22px !important;
  height: 3px !important;
  background: var(--nk-accent) !important;
  margin: 3px 0 !important;
  border-radius: 2px !important;
  opacity: 1 !important;
  visibility: visible !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}
.nk-header-logo a {
  font-size: 2rem;
  font-weight: 800;
  color: var(--nk-accent);
  text-decoration: none;
  letter-spacing: 1px;
  font-family: 'Poppins', Arial, sans-serif;
  display: block;
  text-align: left;
}
.nk-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7em 2vw;
  height: 60px;
  position: relative;
}
.nk-header-logo {
  flex-shrink: 0;
}
.nk-header-nav {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.nk-header-logout-btn {
  background: var(--nk-accent);
  color: #fff !important;
  padding: 0.5em 0.7em;
  border-radius: 6px;
  font-weight: 500;
  font-size: 1.08em;
  margin-left: 0;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  box-shadow: none;
  border: none;
  display: inline-block;
  height: auto;
  line-height: 1.5;
  vertical-align: middle;
  text-decoration: none;
}

.desktop-logout-btn {
  position: absolute;
  right: 2vw;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.mobile-logout-item {
  display: none;
}
.nk-header-nav ul {
  display: flex;
  gap: 1.7em;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: wrap;
}
.nk-header-hamburger {
  flex-shrink: 0;
}
.nk-header-nav a {
  color: var(--nk-text);
  text-decoration: none;
  font-size: 1.08em;
  font-weight: 500;
  padding: 0.5em 0.7em;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}
.nk-header-nav a:hover, .nk-header-nav a.active {
  background: var(--nk-nav-hover);
  color: var(--nk-accent);
}
.nk-header-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  background: rgba(255,152,0,0.1);
  border: 1.5px solid var(--nk-accent);
  border-radius: 7px;
  cursor: pointer;
  margin-left: 18px;
  z-index: 2003;
  position: relative;
  transition: all 0.2s;
  box-sizing: border-box;
  overflow: visible;
  padding: 8px;
}

.nk-header-hamburger:hover {
  background: rgba(255,152,0,0.2);
  box-shadow: 0 2px 8px rgba(255,152,0,0.3);
}
.nk-header-hamburger span {
  display: block !important;
  width: 22px;
  height: 3px;
  background: var(--nk-accent) !important;
  margin: 3px 0;
  border-radius: 2px;
  transition: all 0.25s;
  opacity: 1 !important;
  visibility: visible !important;
  position: relative;
  z-index: 1;
  box-shadow: none !important;
  content: "";
  min-height: 3px;
  min-width: 22px;
}
.nk-header-close {
  display: none;
  position: fixed;
  top: 22px;
  right: 32px;
  font-size: 2.2em;
  color: var(--nk-accent);
  background: none;
  border: none;
  z-index: 2100;
  cursor: pointer;
  transition: color 0.2s;
}
.nk-header-close:hover {
  color: #fff;
}
.nk-header-logout-btn {
  background: var(--nk-accent);
  color: #fff !important;
  padding: 0.5em 0.7em;
  border-radius: 6px;
  font-weight: 500;
  font-size: 1.08em;
  margin-left: 0;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  box-shadow: none;
  border: none;
  display: inline-block;
  height: auto;
  line-height: 1.5;
  vertical-align: middle;
}
.nk-header-logout-btn:hover, .nk-header-logout-btn:focus {
  background: #ffb74d;
  color: #1a2236 !important;
  text-decoration: none;
  box-shadow: 0 4px 16px #ff980033;
}
@media (max-width: 900px) {
  .nk-header-main {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    gap: 0;
    position: relative;
  }
  .nk-header-logo {
    flex: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .nk-header-logo a {
    text-align: center;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .nk-header-hamburger {
    position: absolute;
    right: 2vw;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    background: transparent;
    justify-self: end;
    flex-shrink: 0;
  }
  .nk-header-nav {
    position: fixed;
    left: auto;
    right: 0;
    top: 0;
    transform: none;
    width: auto;
    max-width: none;
    height: auto;
  }
  .desktop-logout-btn {
    display: none;
  }
  
  .mobile-logout-item {
    display: block;
    margin-top: 2em;
    padding-top: 1em;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  
  .mobile-logout-item .nk-header-logout-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    display: flex;
    align-items: center;
    background: var(--nk-accent);
    color: #fff !important;
    padding: 0.8em 1em;
    border-radius: 6px;
    font-weight: 500;
    font-size: 1.08em;
    margin: 0;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    box-shadow: none;
    border: none;
    text-decoration: none;
  }
  .nk-header-nav ul {
    flex-direction: column;
    gap: 0.5em;
    background: rgba(26,34,54,0.95);
    position: fixed;
    top: 60px;
    right: 0;
    width: 260px;
    height: calc(100vh - 60px);
    box-shadow: -2px 0 32px #0003;
    z-index: 2002;
    padding: 1.2em 1.2em 1.2em 1.2em;
    border-radius: 0 0 0 22px;
    border: 2px solid var(--nk-accent);
    border-right: none;
    border-top: none;
    transform: translateX(100%);
    transition: transform 0.25s;
    overflow-y: auto;
    text-align: right;
    justify-content: flex-start;
    align-items: flex-end;
    display: flex;
  }
  .nk-header-nav ul li {
    width: 100%;
    text-align: right;
  }
  .nk-header-nav ul li:last-child {
    margin-top: auto;
    margin-bottom: 1.5em;
    width: 100%;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    transform: translateY(-8px);
  }
  .nk-header-nav.open ul {
    transform: translateX(0);
    animation: slideInMenu 0.25s;
  }
  @keyframes slideInMenu {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
  }
  .nk-header-hamburger {
    display: flex !important;
    background: rgba(255,152,0,0.1) !important;
    justify-self: end !important;
    flex-shrink: 0 !important;
    position: absolute !important;
    right: 2vw !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 2003 !important;
    width: 38px !important;
    height: 38px !important;
    flex-direction: column !important;
    border: 1.5px solid var(--nk-accent) !important;
    border-radius: 7px !important;
    cursor: pointer !important;
    padding: 8px !important;
  }
  
  .nk-header-hamburger span {
    display: block !important;
    width: 22px;
    height: 3px;
    background: var(--nk-accent) !important;
    margin: 3px 0;
    border-radius: 2px;
    transition: all 0.25s;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative;
    z-index: 1;
    box-shadow: none !important;
    content: "";
    min-height: 3px;
    min-width: 22px;
    border: none !important;
    outline: none !important;
  }
  .nk-header-hamburger.open {
    display: none !important;
  }
  
  /* Animation des barres hamburger */
  .nk-header-hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .nk-header-hamburger.open span:nth-child(2) {
    opacity: 0;
  }
  
  .nk-header-hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  .nk-header-close {
    display: block;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 2101;
    font-size: 2.3em;
    color: var(--nk-accent);
    background: rgba(26,34,54,0.9);
    border: 2px solid var(--nk-accent);
    border-radius: 50%;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    padding: 0;
    margin: 0;
    line-height: 1;
    text-align: center;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .nk-header-close:hover {
    background: var(--nk-accent);
    color: #fff;
  }
  .nk-header-logo a {
    text-align: center;
    width: 100%;
    margin: 0 auto;
  }
}
@media (max-width: 700px) {
  .nk-header-top {
    flex-direction: column;
    align-items: center;
    padding: 8px 2vw 8px 2vw;
    font-size: 0.98em;
  }
  .nk-header-location, .nk-header-slogan, .nk-header-contact {
    text-align: center !important;
    width: 100%;
    margin: 2px 0;
    padding: 0;
  }
  .nk-header-slogan { font-size: 1.08em; }
} 