/*
 * style.css - Feuille de style principale du site Hewa Bora Internationale
 * Placez ici vos styles personnalisés globaux.
 */

:root {
    --primary: #002580;
    --secondary: #fb0709;
    --accent: #2178f9;
}

body {
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
    background-color: #f9fafb;
}

.bg-primary { background-color: var(--primary); }
.text-primary { color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }
.text-secondary { color: var(--secondary); }
.bg-accent { background-color: var(--accent); }
.text-accent { color: var(--accent); }

/* === NAVBAR HBI === */
.navbar {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5em 1.5em;
}

.navbar-logo img {
  height: 40px;
  width: auto;
  display: block;
}

.navbar-menu {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  transition: all 0.3s;
}

.navbar-menu li {
  position: relative;
}

.navbar-menu > li {
  margin-left: 1.5em;
}

.navbar-menu a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  padding: 0.5em 0.8em;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.navbar-menu a:hover,
.navbar-menu .has-submenu:hover > a {
  background: var(--primary);
  color: #fff;
}

.has-submenu .submenu {
  display: none;
  position: absolute;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  top: 2.5em;
  left: 0;
  min-width: 180px;
  z-index: 1001;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
  display: block;
}

.submenu li {
  margin: 0;
}

.submenu a {
  padding: 0.5em 1em;
  display: block;
  color: var(--primary);
  background: none;
  border-radius: 0;
}

.submenu a:hover {
  background: var(--accent);
  color: #fff;
}

.navbar-toggle {
  display: none;
  font-size: 2em;
  cursor: pointer;
  color: var(--primary);
  background: none;
  border: none;
  margin-left: 1em;
}

@media (max-width: 900px) {
  .navbar-container {
    flex-wrap: wrap;
  }
  .navbar-menu {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 60px;
    right: 0;
    width: 220px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 0 0 8px 8px;
    align-items: flex-start;
  }
  .navbar-menu.active {
    display: flex;
  }
  .navbar-toggle {
    display: block;
  }
  .navbar-menu > li {
    margin: 0;
    width: 100%;
  }
  .navbar-menu a {
    width: 100%;
    padding: 1em;
  }
  .has-submenu .submenu {
    position: static;
    box-shadow: none;
    border: none;
    min-width: 100%;
    border-radius: 0;
  }
}

/* Style pour l'élément actif */
.navbar-menu a.active {
  background: var(--secondary);
  color: #fff;
}

/* === STYLES POUR LE MENU "OFFRE D'EMPLOI" === */
/* Style principal pour le lien "Offre d'emploi" */
.navbar-menu a[href="offre.html"] {
  background-color: var(--secondary);
  color: white;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

/* Icône pour le menu "Offre d'emploi" */
.navbar-menu a[href="offre.html"]::before {
  content: '💼';
  margin-right: 8px;
  font-size: 0.9em;
}

/* États interactifs pour desktop */
.navbar-menu a[href="offre.html"]:hover {
  background-color: #d60507 !important; /* Version plus foncée de #fb0709 */
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(251, 7, 9, 0.3);
  color: white !important;
}

.navbar-menu a[href="offre.html"]:focus {
  outline: 2px solid #fb0709;
  outline-offset: 2px;
  background-color: var(--secondary) !important;
  color: white !important;
}

.navbar-menu a[href="offre.html"]:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(251, 7, 9, 0.3);
}

/* Styles responsive pour mobile */
@media (max-width: 900px) {
  .navbar-menu a[href="offre.html"] {
    background-color: var(--secondary) !important;
    color: white !important;
    margin: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
  }
  
  .navbar-menu a[href="offre.html"]:hover {
    background-color: #d60507 !important;
    transform: none; /* Pas de translation sur mobile */
    box-shadow: 0 2px 6px rgba(251, 7, 9, 0.4);
    color: white !important;
  }
}

/* Fallback si les variables CSS ne sont pas supportées */
.navbar-menu a[href="offre.html"] {
  background-color: #fb0709 !important; /* Fallback direct */
}

/* Ajoutez ici vos styles personnalisés supplémentaires */ 