/* ecs-lang.css — Switch FR/EN + bannière suggestion (2026-04-23) */

/* ============ SWITCH FR | EN — top-bar (index.html) ============ */

/* Masquer le module-language template (remplacé par ecs-lang-switch) */
.top-bar .block-right .module-language {
  display: none;
}

.top-bar .block-right .ecs-lang-switch {
  margin-left: 16px;
}

/* Sur fond sombre (top-bar dark) */
.top-bar .ecs-lang-switch .ecs-lang-current {
  color: #ffffff;
}
.top-bar .ecs-lang-switch .ecs-lang-sep {
  color: rgba(255, 255, 255, 0.35);
}
.top-bar .ecs-lang-switch a {
  color: rgba(255, 255, 255, 0.55);
  opacity: 1;
}
.top-bar .ecs-lang-switch a:hover {
  color: #32c36c;
  opacity: 1;
}

/* ============ SWITCH FR | EN — legal-header ============ */
.legal-header {
  justify-content: flex-start;
  gap: 20px;
}
.legal-header .btn-back {
  margin-left: auto;
}

/* Sur fond clair (legal-header blanc) */
.legal-header .ecs-lang-switch .ecs-lang-current {
  color: #253745;
}
.legal-header .ecs-lang-switch .ecs-lang-sep {
  color: #c0c6cc;
}
.legal-header .ecs-lang-switch a {
  color: #253745;
  opacity: 0.45;
}
.legal-header .ecs-lang-switch a:hover {
  opacity: 1;
  color: #32c36c;
}

/* ============ COMMUN ============ */
.ecs-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  flex-shrink: 0;
}
.ecs-lang-switch a {
  text-decoration: none;
  transition: opacity 0.2s, color 0.2s;
}

/* Mobile : réduire padding legal-header */
@media (max-width: 575.98px) {
  .legal-header {
    padding: 0 16px;
    gap: 12px;
  }
  .ecs-lang-switch {
    font-size: 12px;
  }
}

/* ============ BANNIÈRE SUGGESTION LANGUE (index.html) ============ */
#ecs-lang-suggestion {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999998;
  background: #253745;
  color: #ffffff;
  padding: 10px 20px;
  font-size: 14px;
  text-align: center;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
#ecs-lang-suggestion.ecs-lang-visible {
  display: flex;
}
#ecs-lang-suggestion span {
  opacity: 0.9;
}
#ecs-lang-suggestion a {
  color: #32c36c;
  font-weight: 600;
  text-decoration: underline;
  white-space: nowrap;
}
#ecs-lang-suggestion a:hover {
  color: #5dd68e;
}
.ecs-lang-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 2px 6px;
  font-family: inherit;
  flex-shrink: 0;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.ecs-lang-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}
