/* =========================================================
   TOP BAR - RÉSEAUX UNIQUEMENT
   ========================================================= */

.languages-section-wrapper {
  position: relative;
  font-size: 13px;
  background-image: url("/images/sitedev/entete.jpg");
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
}

.languages-section {
  margin: auto;
  padding: 36px 20px;
  display: flex;
  align-items: center; /* ✅ CENTRAGE VERTICAL */
  gap: 20px;
  position: relative;
}

/* Logo inchangé */
.languages-section img {
  height: 100px;
  width: auto;
  margin-right: auto;
  display: block;
}

/* =========================================================
   BLOC DROIT (RÉSEAUX UNIQUEMENT)
   ========================================================= */
.top-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  margin-left: 18px;
  z-index: 20;
}

/* =========================================================
   RÉSEAUX SOCIAUX
   ========================================================= */
.header-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-socials a,
.header-socials a:link,
.header-socials a:visited {
  width: 38px;
  height: 38px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: #6b7280;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.04);

  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.header-socials a:hover,
.header-socials a:focus {
  background: rgba(255, 255, 255, 0.96);
  color: #1f2937;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.header-socials a i {
  font-size: 17px;
  line-height: 1;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .languages-section {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    gap: 14px;
    padding: 30px 16px 24px;
  }

  .languages-section img {
    margin-right: 0;
  }

  .top-actions {
    order: 2;
    width: 100%;
    align-items: center;
    margin-left: 0;
    gap: 12px;
  }

  .header-socials {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .languages-section-wrapper {
    background-attachment: scroll;
  }

  .header-socials a,
  .header-socials a:link,
  .header-socials a:visited {
    width: 34px;
    height: 34px;
  }

  .header-socials a i {
    font-size: 15px;
  }
}

/* =========================================================
   RTL
   ========================================================= */
html[dir="rtl"] .languages-section img {
  margin-right: 0;
  margin-left: auto;
}

html[dir="rtl"] .top-actions {
  margin-left: 0;
  margin-right: 18px;
  align-items: flex-start;
}

@media (max-width: 900px) {
  html[dir="rtl"] .top-actions {
    margin-right: 0;
    align-items: center;
  }
}