/* ===================================
   HEADER BASE STYLES (Desktop)
   =================================== */

/* CSS Variables from static design */
:root {
  --vert-ddi: #99db12;
  --bleu-incubateur: #1c809d;
  --orange-fablab: #ff5c26;
  --gris-fonce: #484848;
  --gris-clair: #e0e0e0;
  --blanc: #ffffff;
}

/* Header Container */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 15px 0;
  width: 100%;
}

.header-inner {
  width: 100%;
  padding: 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo {
  flex: 0 0 280px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo img {
  height: 94px !important;
  width: auto;
  transition: all 0.3s ease;
}

/* Mobile Menu Toggle - Hidden on Desktop */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
}

.menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--gris-fonce);
  transition: all 0.3s ease;
  border-radius: 0;
}

/* Main Navigation */
.main-nav {
  display: flex;
  flex: 1;
  justify-content: space-evenly;
  align-items: center;
  margin-left: 30px;
  gap: 15px;
}

.main-nav a {
  color: var(--gris-fonce);
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  transition: color 0.3s;
  transform: rotate(-3deg);
  text-align: center;
  line-height: 1.3;
  max-width: 110px;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--vert-ddi);
}

/* Contact, login et langue sans rotation */
.main-nav .contact-link,
.main-nav .login-link,
.main-nav .lang-switcher {
  transform: none;
  max-width: none;
}

/* Contact link - green background always */
.contact-link {
  background: var(--vert-ddi) !important;
  color: var(--blanc) !important;
  border: 2px solid var(--vert-ddi);
  padding: 8px 16px;
  border-radius: 0;
  transition: all 0.3s ease;
  font-weight: 600;
}

.contact-link:hover {
  background: var(--blanc) !important;
  color: var(--vert-ddi) !important;
  border-color: var(--vert-ddi);
}

.login-link {
  display: flex;
  align-items: center;
  color: var(--gris-fonce);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: color 0.3s;
}

.login-link:hover {
  color: var(--vert-ddi);
}

.login-link svg {
  width: 24px;
  height: 24px;
}

/* Language Switcher */
.lang-switcher {
  font-weight: 600;
  font-size: 12px;
  color: var(--gris-fonce);
}

.lang-switcher a {
  color: var(--gris-fonce);
  text-decoration: none;
  transition: color 0.3s;
}

.lang-switcher a:hover {
  color: var(--vert-ddi);
}

.lang-switcher strong {
  color: var(--vert-ddi);
}

/* Hide Astra default header elements */
.ast-header-breakpoint .site-header {
  background: rgba(255, 255, 255, 0.95);
}

.ast-main-header-nav-container {
  display: none !important;
}

.ast-header-navigation {
  display: none !important;
}

.ast-primary-menu-enabled {
  display: none !important;
}

/* Hide Astra default logo */
.custom-logo-link,
.ast-site-identity {
  display: none !important;
}

/* Large screens - logo takes more space */
@media (min-width: 1600px) {
  .logo {
    flex: 0 0 24%;
    min-width: 350px;
    max-width: 450px;
  }
}
