/* ---------- NAVIGATION PRINCIPALE ---------- */

.top-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--background-light);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--background-light);
    font-family: var(--font-primary, sans-serif);
}

.nav-left a,
.nav-right a {
    text-decoration: none;
    color: var(--background-dark);
    transition: color 0.2s ease;
}

.nav-left a {
    margin-right: 15px;
    font-weight: bold;
}

.nav-right a {
    margin-left: 10px;
    font-weight: normal;
}

.nav-left a:hover,
.nav-right a:hover {
    color: var(--blue-faq-hover);
}

.nav-right a.active-lang {
    font-weight: bold;
    text-decoration: underline;
    color: var(--orange-main);
}

.social-icons {
    display: flex;
    gap: 8px;
}

.social-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease;
    vertical-align: middle;
}

.social-icon:hover {
    transform: scale(1.1);
}

.facebook {
    transform: scale(1.3);
}

/* ---------- MENU BURGER (MOBILE) ---------- */

.burger-menu {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--background-dark);
    margin-left: 10px;
    z-index: 1001;
}

/* ---------- MENU MOBILE ---------- */

.mobile-menu {
  display: none; /* caché par défaut */
  position: fixed;
  top: 50px; /* en dessous de la nav */
  right: 0;
  background: var(--background-light);
  flex-direction: column;
  width: 220px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 15px 20px;
  gap: 15px; /* espace vertical entre éléments */
  z-index: 10000;
  font-family: var(--font-primary);
}

.mobile-menu.visible {
  display: flex;
}

.mobile-menu a {
    color: var(--background-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    transition: color 0.2s ease;
}

/* Dernier lien sans bordure */
.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a:hover {
    color: var(--orange-main);
}

/* Icônes réseaux sociaux */
.mobile-menu img.social-icon {
    width: 28px;
    height: 28px;
    margin-right: 12px;
    vertical-align: middle;
    transition: transform 0.2s ease;
}

/* Conteneur icônes pour alignement horizontal */
.mobile-menu a[aria-label="Facebook"],
.mobile-menu a[aria-label="Instagram"] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Espacement supplémentaire entre liens */
.mobile-menu a + a {
    margin-top: 10px;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .burger-menu {
        display: block;
    }

    .nav-right {
        display: flex;
        align-items: center;
    }
}
