html, body {
  height: 100%;
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  background-color: #f4f6f8;
  color: #333;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-y: auto;
}

main {
  flex: 1;
  padding: 20px;
}

/* Titres */
h1, h2 {
  text-align: center;
  color: #003366;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, #003366, #0055a5);
  padding: 15px 30px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.site-title {
  font-size: 1.6rem;
  margin: 0;
  font-weight: 800;
  background: linear-gradient(90deg, #ff4b2b, #ff416c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Logo */
.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Menu */
.navbar {
  display: flex;
  gap: 30px;
  align-items: center;
}

.menu-item {
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.menu-item::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #ffcc00;
  transition: width 0.3s ease;
}

.menu-item:hover {
  color: #ffcc00;
}

.menu-item:hover::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Barre de recherche */
.search-container {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 20px;
}

.search-icon {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: #ffcc00;
  transition: transform 0.2s ease;
}

.search-icon:hover {
  transform: scale(1.1);
}

#search-input {
  width: 0;
  opacity: 0;
  transition: width 0.3s ease, opacity 0.3s ease;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 20px;
  font-size: 0.95rem;
}

#search-input.active {
  width: 220px;
  opacity: 1;
}

#search-results {
  position: absolute;
  top: 45px;
  right: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  width: 260px;
  max-height: 220px;
  overflow-y: auto;
  display: none;
  animation: fadeIn 0.3s ease;
}

#search-results.show {
  display: block;
}

#search-results p {
  padding: 10px;
  margin: 0;
  cursor: pointer;
  transition: background 0.2s ease;
}

#search-results p:hover {
  background: #f0f0f0;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  header {
    flex-direction: row; /* garder logo, recherche et hamburger sur une ligne */
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
  }

  .logo-container {
    flex: 1;
  }

  .search-container {
    flex: 2;
    justify-content: center;
    margin: 0 10px;
  }

  .hamburger {
    display: flex;
    flex: 0;
    margin-left: auto; /* reste à droite */
  }

  .navbar {
    display: none;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    background-color: #003366;
    padding: 15px 0;
    border-radius: 8px;
  }

  .navbar.show {
    display: flex;
  }

  .menu-item {
    text-align: center;
    width: 100%;
    padding: 12px 0;
  }

  #search-input.active {
    width: 100%;
  }

  #search-results {
    width: 100%;
    max-height: 160px;
  }
}


@media (max-width: 767px) {
  .logo-container{display: none;}
 
}
