/* Sélecteur de langue — copie exacte boite-emballage C
   + neutralise summary::after FAQ de site.css (qui affichait + / −) */

.drop {
  position: relative;
}
.drop > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-weight: 600;
  color: #003366;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
}
.drop > summary::-webkit-details-marker,
.drop > summary::marker {
  display: none;
  content: "";
}
.drop > summary::after,
.drop > summary::before,
.lang-pill::after,
.lang-pill::before {
  content: none !important;
  display: none !important;
}
details.drop > summary.lang-pill::after,
details.drop > summary.lang-pill::before {
  content: none !important;
  display: none !important;
}
.drop > summary .caret {
  font-size: 10px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
.drop[open] > summary {
  color: #1c8048;
}
.drop-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 34, 68, 0.14);
  padding: 10px;
  min-width: 190px;
  z-index: 60;
  display: flex;
  flex-direction: column;
}
.drop-menu a {
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #0f1f33;
  white-space: nowrap;
  text-decoration: none;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
.drop-menu a:hover {
  background: #f7f7f7;
  color: #003366;
}
.drop-menu a.on {
  color: #1c8048;
  font-weight: 700;
}
.lang-drop .drop-menu {
  left: auto;
  right: 0;
  transform: none;
  max-height: min(70vh, 520px);
  overflow: auto;
}
.lang-pill {
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 8px 16px !important;
  background: #fff;
  font-size: 13.5px !important;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #13294b;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1;
}
.lang-pill svg {
  color: #13294b;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .lang-pill {
    padding: 7px 12px !important;
    font-size: 12.5px !important;
  }
}
@media (max-width: 480px) {
  .lang-pill svg {
    display: none;
  }
  .lang-pill {
    padding-left: 9px !important;
    padding-right: 9px !important;
  }
}

.ea-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.9rem 0 0;
  margin-top: 0.6rem;
  border-top: 1px solid rgba(0, 51, 102, 0.12);
}
.ea-langs a {
  font-size: 0.85rem;
  padding: 0.3rem 0.55rem;
  border: 1px solid rgba(0, 51, 102, 0.18);
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
}
.ea-langs a.on {
  background: #003366;
  color: #fff;
  border-color: #003366;
}

/* Pas de trait sous la pastille : site.css met border-bottom sur tout details */
details.drop,
details.drop.lang-drop,
.lang-drop {
  border: 0 !important;
  border-bottom: 0 !important;
  background: transparent;
}
.lang-pill {
  text-decoration: none !important;
  box-shadow: none;
}

/* Barre header : pastille globe CBS standard */
.hd-pill .lang-pill {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #13294b;
}
.hd-pill .lang-pill svg,
.hd-pill .lang-pill .caret {
  color: #13294b;
}
.hd-pill .drop[open] > summary.lang-pill {
  background: #fff;
  border-color: #e2e8f0;
  color: #1c8048;
}
.hd-pill .drop[open] > summary.lang-pill svg,
.hd-pill .drop[open] > summary.lang-pill .caret {
  color: #1c8048;
}

details.lang-drop,
details.drop {
  border-bottom: 0 !important;
}
details.lang-drop .drop-menu a.on {
  color: #1c8048;
}
