/* EasyVola — barre langue/devise, police arabe et mise en page de droite à gauche */

/* Barre supérieure */
.top-bar { background: var(--navy-deep); color: #c7d3ee; font-size: .88rem; }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.top-info { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prefs { display: flex; gap: 8px; margin-inline-start: auto; }
.pref-select {
  appearance: none; min-height: 34px; padding: 4px 30px 4px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .28); color: #fff; font: 600 .88rem/1 var(--font-body);
  background: rgba(255, 255, 255, .08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 11px center / 10px;
  transition: background-color .18s ease, border-color .18s ease;
}
.pref-select:hover { background-color: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .5); }
.pref-select option { color: var(--ink); background: #fff; }
@media (max-width: 520px) { .top-info { display: none; } }

.confirm-lead { color: var(--muted); margin-top: 8px; }

/* Arabe : police adaptée, pas d'interlettrage (il casse la liaison des lettres) */
html[lang="ar"] { --font-head: "Cairo", "Segoe UI", Tahoma, sans-serif; --font-body: "Cairo", "Segoe UI", Tahoma, sans-serif; }
html[lang="ar"] * { letter-spacing: 0 !important; }
html[lang="ar"] body { line-height: 1.7; }
html[lang="ar"] .hero h1 { line-height: 1.35; }

/* Droite à gauche */
[dir="rtl"] .pref-select { padding: 4px 12px 4px 30px; background-position: left 11px center; }
[dir="rtl"] input[dir="ltr"] { text-align: right; }
[dir="rtl"] .wizard-nav .btn-ghost svg, [dir="rtl"] .wizard-nav .btn-primary svg { transform: scaleX(-1); }
[dir="rtl"] .hero::after { background: linear-gradient(260deg, rgba(13, 27, 71, .82) 0%, rgba(22, 44, 110, .5) 50%, rgba(30, 58, 138, .12) 100%); }
[dir="rtl"] .hero-bg { transform-origin: center; scale: -1 1; }
[dir="rtl"] .cta-band::after { background: linear-gradient(270deg, rgba(12, 24, 56, .88), rgba(12, 24, 56, .45)); }
[dir="rtl"] .float.f1 { left: auto; right: -56px; }
[dir="rtl"] .float.f2 { left: auto; right: -66px; }
[dir="rtl"] .float.f3 { right: auto; left: -26px; }
@media (min-width: 900px) { [dir="rtl"] .how-photo figcaption { right: auto; left: -24px; } }
[dir="rtl"] .confirm-plane { right: auto; left: 0; scale: -1 1; animation-name: fly-rtl; }
@keyframes fly-rtl { from { opacity: 0; transform: translate(-190px, 60px) rotate(-18deg) scale(.6); } to { opacity: 1; transform: translate(0, 0) rotate(8deg) scale(1); } }
[dir="rtl"] .btn-cta::after { animation-direction: reverse; }

/* Paiement */
.pay-opt span { display: grid; gap: 2px; }
.pay-opt small { font-weight: 400; font-size: .86rem; color: var(--muted); }
.paypal-slot { margin-inline-start: auto; width: min(320px, 100%); display: grid; gap: 6px; }
.paypal-slot .help { text-align: center; }

/* Langue et devise dans le pied de page */
.footer-bottom { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.footer-prefs { margin-inline-start: 0; }
.footer-prefs .pref-select { min-height: 40px; }

/* Paiement sécurisé : mention discrète (cadenas vert + moyens de paiement) */
.pay-trust { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: center; margin-top: 14px; }
.pay-trust-title { display: inline-flex; gap: 5px; align-items: center; margin: 0; font-size: .74rem; font-weight: 600; color: var(--success); }
.pay-trust-title .i { flex: none; width: 13px; height: 13px; stroke: var(--success); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pay-marks { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: 0; padding: 0; list-style: none; opacity: .9; }
.pm { display: inline-flex; align-items: center; justify-content: center; height: 17px; min-width: 28px; padding: 0 5px; border: 1px solid #dfe4ee; border-radius: 3px; background: #fff; font-family: Arial, Helvetica, sans-serif; font-size: .52rem; font-weight: 800; line-height: 1; white-space: nowrap; }
.pm-visa { color: #1a1f71; font-style: italic; font-size: .6rem; letter-spacing: .3px; }
.pm-mc i { width: 9px; height: 9px; border-radius: 50%; background: #eb001b; }
.pm-mc i + i { margin-left: -4px; background: #f79e1b; opacity: .92; }
.pm-amex { border-color: #016fd0; background: #016fd0; color: #fff; font-size: .46rem; letter-spacing: .3px; }
.pm-paypal { font-style: italic; font-size: .58rem; }
.pm-paypal b:first-child { color: #003087; }
.pm-paypal b:last-child { color: #0070e0; }
.pm-stripe { gap: 3px; border-color: #635bff; background: #635bff; color: #fff; font-weight: 500; font-size: .5rem; }
.pm-stripe b { font-size: .62rem; font-weight: 800; letter-spacing: -.3px; }
.pay-trust-footer { justify-content: flex-start; margin-top: 22px; }
.pay-trust-footer .pay-trust-title { color: #86efac; }
.pay-trust-footer .pay-trust-title .i { stroke: #86efac; }
.pay-trust-footer .pm { border-color: transparent; }
.site-footer .container + .footer-bottom { margin-top: 14px; }

/* Limites des packs : barre du pack en cours, mention de passage au pack supérieur */
.pack-limits { flex: 0 0 auto !important; padding-bottom: 10px !important; border-bottom: 1px solid var(--border); }
.pack-limits strong { font-weight: 600; color: var(--navy); }
.pack-note { margin: 0; font-size: .86rem; font-weight: 600; color: #9a3412; }
.pack-note.ok { color: var(--success); }
.pack.too-small { opacity: .62; cursor: not-allowed; }
.pack.too-small .pack-pick { color: var(--muted); }
.pack-bar { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--blue-soft); }
.pack-bar-count { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; margin: 0; font-size: .92rem; }
.pack-bar-count span { font-variant-numeric: tabular-nums; color: var(--muted); }
.pack-bar .chip span { min-height: 36px; padding: 0 12px; font-size: .88rem; }
.pack-bar .chip.off span { opacity: .45; }
.pack-bar .chip.off input { cursor: not-allowed; }
.pack-bar .help { margin: 0; }
.pack-hint { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin: 8px 0 0; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--success-soft); border: 1.5px solid var(--success); font-size: .9rem; font-weight: 600; color: #14532d; }
.pack-hint span { flex: 1 1 180px; }
.pack-hint .i { flex: none; width: 18px; height: 18px; }
.pack-hint.strong { background: var(--success); color: #fff; }
.pack-hint .btn { background: var(--success); color: #fff; }
.pack-hint.strong .btn { background: #fff; color: #14532d; }
.pack-bar-limits { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--success-soft); border: 1.5px solid var(--success); color: #14532d; font-size: .9rem; font-weight: 600; }
.pack-bar-limits .i { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.pack-hint .btn { min-height: 36px; }
.pack-hint-dock { position: sticky; bottom: 12px; z-index: 5; }
.pack-hint-dock:empty { display: none; }
.pack-hint-dock .pack-hint { box-shadow: var(--shadow-2); }
.pay-later { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin: 18px 0 -14px; font-size: .84rem; color: var(--success); font-weight: 600; }
.pay-later .i { flex: none; width: 15px; height: 15px; }
.total-line { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.grid-top { align-items: start; }
.pack ul { align-content: start; }
/* Rappel des icônes de packs : barre « Votre pack » et récapitulatif */
.pack-bar .chip span { gap: 7px; min-height: 48px; padding: 0 14px 0 8px; }
.pack-bar .chip img { flex: none; width: 32px; height: 32px; object-fit: contain; }
.chip-price { font: 700 1.12rem/1 var(--font-head); font-variant-numeric: tabular-nums; }
.sum-pack { display: flex; gap: 8px; align-items: center; }
.sum-pack img { flex: none; width: 32px; height: 32px; object-fit: contain; }
.pack-bar .chip img { mix-blend-mode: normal; padding: 2px; border-radius: 50%; background: #fff; }
/* Bouton « Recommencer » au-dessus des étapes */
.wizard-top { display: flex; justify-content: flex-end; margin-bottom: 6px; }
.reset-btn { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--muted); font: 500 .82rem/1 var(--font-body); cursor: pointer; }
.reset-btn:hover { border-color: var(--blue); color: var(--navy); }
.reset-btn svg { width: 14px; height: 14px; }
