/* === Style global === */


/* === SECTION BARRE DE CONTACT (en haut) === */
.navbar-logo {
  background-color: #020c49;
  color: #fff;
  text-align: center;
  font-size: 15px;
  padding: 6px 0;
}

.navbar-logo i {
  margin-right: 5px;
  color: #00bfff;
}

/* === NAVIGATION PRINCIPALE === */
.navbar {
  background-color: #020c49;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1000;
}

/* Bouton menu mobile ☰ */
.menu-toggle {
  display: none;
  font-size: 28px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  padding: 15px 20px;
}

/* Liste du menu principal */
.navbar-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

.navbar-menu li {
  position: relative;
}

.navbar-menu li a {
  display: block;
  padding: 15px 25px;
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s;
}

.navbar-menu li a:hover {
  background-color: #020c49;
}

/* === SOUS-MENU === */
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #0055aa;
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 220px;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 100;
}

.submenu li a {
  padding: 12px 15px;
  color: #fff;
  font-weight: 400;
}

.submenu li a:hover {
  background-color: #007bff;
}

.navbar-menu li:hover .submenu {
  display: block;
}

/* === SECTION HAUTE (logo, recherche, langue) === */
.top-section {
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 30px;
  flex-wrap: wrap;
  box-shadow: 0 2px 2px rgba(0,0,0,0.1);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 60px;
  width: 60px;
  object-fit: cover;
  border-radius: 50%;
}

/* === Barre de recherche === */
.search-bar {
  display: flex;
  align-items: center;
  gap: 5px;
}

.search-bar input {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 220px;
  transition: all 0.3s ease;
}

.search-bar input:focus {
  border-color: #004080;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 64, 128, 0.4);
}

.search-bar button {
  background-color: #004080;
  color: white;
  border: none;
  padding: 8px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

.search-bar button:hover {
  background-color: #0066cc;
}

/* === Sélecteur de langue === */
.language-selector select {
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid #ccc;
  background-color: #fff;
  font-weight: 500;
  cursor: pointer;
  transition: border 0.3s;
}

.language-selector select:hover {
  border-color: #004080;
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
  .navbar-menu li a {
    padding: 12px 15px;
  }

  .search-bar input {
    width: 160px;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .navbar-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #004080;
  }

  .navbar-menu.show {
    display: flex;
  }

  .navbar-menu li {
    width: 100%;
    text-align: left;
  }

  .navbar-menu li a {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .submenu {
    position: static;
    box-shadow: none;
    background-color: #003366;
  }

  .submenu li a {
    padding-left: 35px;
  }

  .top-section {
    flex-direction: column;
    align-items: stretch;
  }

  .search-bar {
    margin-top: 10px;
    justify-content: center;
  }

  .language-selector {
    margin-top: 10px;
    text-align: center;
  }
}

/* === Animation du menu === */
.navbar-menu.show {
  animation: slideDown 0.3s ease-in-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* === SECTION DU HAUT === */
.top-section {
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 40px;
  flex-wrap: wrap;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  gap: 20px;
}

/* === LOGO (à gauche) === */
.logo {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.logo img {
  height: 70px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

/* === BARRE DE RECHERCHE (au centre) === */
.search-bar {
  flex: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-bar input {
  padding: 10px 15px;
  border: 1px solid #ccc;
  border-radius: 25px 0 0 25px;
  width: 60%;
  font-size: 15px;
  transition: all 0.3s ease;
}

.search-bar input:focus {
  border-color: #004080;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 64, 128, 0.4);
}

.search-bar button {
  background-color: #004080;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 0 25px 25px 0;
  cursor: pointer;
  transition: background 0.3s;
}

.search-bar button:hover {
  background-color: #0066cc;
}

/* === BOUTON DE LANGUE (à droite) === */
.language-selector {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.language-selector select {
  padding: 8px 12px;
  border-radius: 25px;
  border: 1px solid #ccc;
  background-color: #fff;
  font-weight: 500;
  cursor: pointer;
  transition: border 0.3s;
}

.language-selector select:hover {
  border-color: #004080;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 992px) {
  .search-bar input {
    width: 80%;
  }
}

@media (max-width: 768px) {
  .top-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px 20px;
  }

  .logo {
    justify-content: center;
    margin-bottom: 10px;
  }

  .search-bar {
    justify-content: center;
    width: 100%;
  }

  .search-bar input {
    width: 75%;
  }

  .language-selector {
    justify-content: center;
    margin-top: 10px;
  }
}
/* Masque l’élément par défaut de Google Translate */
.goog-logo-link,
.goog-te-gadget {
  display: none !important;
}

body {
  top: 0px !important;
}
/* === SECTION EN-TÊTE === */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #0d47a1;
  padding: 20px 40px; /* plus d’espace autour */
  height: 90px; /* agrandit la hauteur du menu */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* === LOGO === */
.logo img {
  height: 70px; /* taille du logo plus grande */
  width: auto;
}

/* === BOUTON DE RECHERCHE === */
.search-box input {
  padding: 10px 15px;
  border-radius: 8px;
  border: none;
  width: 250px; /* largeur augmentée */
  font-size: 16px;
}

.search-box button {
  padding: 10px 18px;
  margin-left: 8px;
  border: none;
  background-color: white;
  color: #0d47a1;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.search-box button:hover {
  background-color: #1565c0;
  color: white;
}

/* === SÉLECTEUR DE LANGUE === */
.language-selector select {
  padding: 10px;
  font-size: 16px;
  border-radius: 8px;
  border: none;
  background-color: white;
  color: #0d47a1;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

/* === VERSION RESPONSIVE === */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    height: auto;
    padding: 20px;
    text-align: center;
  }

  .logo img {
    height: 60px;
    margin-bottom: 10px;
  }

  .search-box input {
    width: 100%;
    margin-bottom: 10px;
  }

  .search-box button {
    width: 100%;
  }
}

.top-section {
  width: 100%;
  padding: 10px 20px;
  box-sizing: border-box;
  background: #f5f5f5;
}

/* Ligne du haut : logo + langue */
.top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* Logo */
.top-row .logo img {
  height: 50px;
  width: auto;
}

/* Sélecteur de langue */
.language-selector select {
  padding: 5px 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  background: #fff;
}

/* Barre de recherche */
.search-bar {
  margin-top: 10px;
  display: flex;
  width: 100%;
}

.search-bar input[type="text"] {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 5px 0 0 5px;
  outline: none;
}

.search-bar button {
  padding: 8px 15px;
  border: none;
  background: #003366;
  color: white;
  cursor: pointer;
  border-radius: 0 5px 5px 0;
}

.search-bar button:hover {
  background: #0055aa;
}

/* === RESPONSIVE === */
@media(min-width: 769px) {
  .top-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .top-row {
    flex: 0 0 auto;
  }

  .search-bar {
    flex: 1;
    margin-top: 0;
    margin-left: 20px;
    max-width: 400px;
  }
}
.top-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;          /* 👈 réduit l’espace global entre les éléments */
  padding: 5px 10px;  /* 👈 réduit le padding interne */
}
@media (max-width: 768px) {
  .top-section {
    flex-direction: column; /* ou row selon ton affichage */
    gap: 1px;              /* 👈 espace très réduit entre les éléments */
    padding: 5px;          /* 👈 réduit le padding global */
  }

  .logo img {
    height: 40px;          /* 👈 logo légèrement plus petit */
  }

  .search-bar input {
    width: 80%;            /* 👈 empêche la barre de recherche de trop s’étendre */
  }

  .language-selector select {
    padding: 4px;          /* 👈 bouton langue plus petit */
    font-size: 14px;
  }
}
