/* Kyo Funded — le choix de la langue, commun à toutes les pages du site.
   Un <details> et des liens : rien ne dépend d'un script. Les propriétés
   logiques (inline-start, inline-end) le font suivre le sens d'écriture, la
   page arabe se lisant de droite à gauche. */

.langues { position: relative; flex: none; margin-inline-start: auto; font-family: 'Onest', system-ui, sans-serif; }
.langues summary {
  display: flex; align-items: center; gap: .35rem;
  min-height: 2.75rem; padding: 0 .55rem;
  font-size: .88rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: inherit; cursor: pointer; list-style: none; border-radius: 10px;
}
.langues summary::-webkit-details-marker { display: none; }
.langues summary::after {
  content: ""; width: .38rem; height: .38rem; margin-top: -.2rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); opacity: .7;
}
.langues[open] summary::after { transform: rotate(-135deg); margin-top: .15rem; }
.langues summary:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

.langues ul {
  position: absolute; inset-inline-end: 0; top: calc(100% + .3rem); z-index: 60;
  min-width: 10.5rem; margin: 0; padding: .4rem; list-style: none;
  background: #fff; color: #12141A;
  border: 1px solid #E3E6EB; border-radius: 14px;
  box-shadow: 0 18px 40px -18px rgba(18, 20, 26, .35);
}
.langues li { margin: 0; padding: 0; }
.langues li a {
  display: block; padding: .6rem .8rem; border-radius: 9px;
  font-size: .95rem; font-weight: 500; text-decoration: none; color: inherit; opacity: 1;
}
.langues li a:hover { background: #F4F5F7; }
.langues li a[aria-current] { background: #12141A; color: #fff; }

/* L'avis posé en tête des pages contractuelles traduites. */
.avis-traduction {
  margin: 1rem 0 0; padding: .75rem 1rem;
  background: #EBF0FE; border-radius: 12px; font-size: .92rem;
}
.avis-traduction a { color: #1C3FBF; }

@media print { .langues { display: none; } }

/* ── De droite à gauche ────────────────────────────────────────────────────
   Le logotype est du texte latin dans un SVG : sans cela il partirait vers la
   gauche de son origine et sortirait de son cadre. */
[dir="rtl"] .marque svg { direction: ltr; }

/* Le héros : le texte passe à droite, l'interface posée sur la photo lui
   laisse la place. En dessous de 980px elle occupe toute la largeur. */
@media (min-width: 981px) {
  [dir="rtl"] .cadre-tel { left: auto; right: 50%; }
}
