/* ================================
   HEADER STYLES
   ================================ */

.header {
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.header__top {
  background: #f8f8f8;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.header__top .container {
  display: flex;
  justify-content: flex-end;
}

.search-form {
  display: flex;
  align-items: center;
}

.search-form input {
  border: 1px solid #ddd;
  padding: 5px 12px;
  font-size: 14px;
  width: 200px;
  height: 30px;
  font-family: 'Lato', sans-serif;
}

.search-form button {
  background: none;
  border: none;
  color: #999;
  padding: 5px 10px;
  cursor: pointer;
}

.header__main {
  padding: 15px 0;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.header__logo {
  flex-shrink: 0;
}

.header__logo img {
  height: 50px;
  width: auto;
}

.header__nav {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  min-width: 0;
}

/* Reset du wrapper Drupal autour du menu */
.header__nav > div,
.header__nav nav[role="navigation"] {
  display: contents;
}

.header__nav .block-menu {
  display: flex;
  align-items: center;
}

/* Cacher le titre du bloc menu */
.header__nav h2.visually-hidden {
  display: none;
}

.header__actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* Language switcher - drapeaux petits et rapprochés */
.lang-switcher {
  display: flex;
  gap: 4px;
  align-items: center;
}

.lang-switcher a {
  display: block;
  padding: 2px;
  opacity: 0.7;
  transition: opacity 0.2s;
  line-height: 0;
}

.lang-switcher a:hover,
.lang-switcher a.active {
  opacity: 1;
}

.lang-switcher img {
  display: block;
  width: 16px;
  height: auto;
}

/* Container */
.container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ================================
   RESPONSIVE HEADER
   ================================ */
@media (max-width: 991px) {
  .header__inner {
    flex-wrap: wrap;
  }
  
  .header__logo {
    order: 1;
  }
  
  .header__nav {
    order: 3;
    flex: none;
    width: auto;
    justify-content: flex-end;
  }
  
  .header__actions {
    order: 2;
    margin-left: auto;
  }
  
  .search-form {
    display: none;
  }
}

@media (max-width: 767px) {
  .header__logo img {
    height: 40px;
  }
}
