/* Compléments EasyDoor au thème : langues, RTL, modules, vidéo, pages légales. */

/* ---------- Sélecteur de langue ---------- */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-inline-start: 1rem;
}
.lang-switch button {
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: inherit;
    opacity: 0.6;
    padding: 4px 8px;
    border-radius: 14px;
    cursor: pointer;
}
.lang-switch button:hover { opacity: 1; }
.lang-switch button[aria-pressed="true"] {
    opacity: 1;
    background: rgba(32, 178, 190, 0.15);
    color: #1d8ec4;
}
.custom-nav .lang-switch { color: #4a4a4a; }
.bg-transparent .lang-switch,
.legal-nav .lang-switch { color: #fff; }
.legal-nav.affix .lang-switch { color: #4a4a4a; }
@media (max-width: 991px) {
    .lang-switch { margin: 0.5rem 0 0.75rem; }
}

/* ---------- Arabe ---------- */
html[lang="ar"] body,
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3,
html[lang="ar"] h4, html[lang="ar"] h5, html[lang="ar"] h6,
html[lang="ar"] .btn, html[lang="ar"] input, html[lang="ar"] textarea {
    font-family: 'Noto Sans Arabic', 'Montserrat', sans-serif;
}
html[lang="ar"] body { line-height: 1.8; }
[dir="rtl"] .hero-content-left,
[dir="rtl"] .about-content-left,
[dir="rtl"] .feature-contents,
[dir="rtl"] .footer-nav-wrap,
[dir="rtl"] .contact-us .section-heading,
[dir="rtl"] .footer-address { text-align: right; }
[dir="rtl"] .feature-tab-content ul:not(.list-unstyled) { padding-right: 1.2rem; padding-left: 0; }
[dir="rtl"] .terms-policy-wrap { text-align: left !important; }
@media (max-width: 767px) {
    [dir="rtl"] .terms-policy-wrap { text-align: right !important; }
}
/* Les animations décoratives du héros sont placées pour la gauche : on les retourne. */
[dir="rtl"] .hero-animation-img { transform: scaleX(-1); }
[dir="rtl"] .hero-animation-img .animation-one { transform: scaleX(-1); }
[dir="rtl"] .shape-image { transform: scaleX(-1); }
/* Numéros de téléphone et e-mails restent de gauche à droite. */
.ltr { direction: ltr; unicode-bidi: embed; display: inline-block; }

/* ---------- Modules ---------- */
.module-card {
    height: 100%;
    padding: 1.75rem;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(15, 60, 90, 0.07);
    transition: transform .2s ease, box-shadow .2s ease;
}
.module-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15, 60, 90, 0.12);
}
.module-card .module-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 1rem;
    border-radius: 14px;
    font-size: 22px;
    color: #fff;
    background: linear-gradient(135deg, #2a94d5, #20b2be);
}
.module-card h5 { margin-bottom: .5rem; }
.module-card p { margin-bottom: 0; font-size: .95rem; }

/* ---------- Vidéo de démonstration (format vertical) ---------- */
.demo-video {
    width: 100%;
    max-width: 384px;
    aspect-ratio: 9 / 16;
    margin: 0 auto;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}
.demo-video iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Fenêtre « Obtenir l'appli » ---------- */
#qrDialog {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 30px;
    width: 90%;
    max-width: 400px;
    text-align: center;
}
#qrDialog::backdrop { background: rgba(10, 30, 45, 0.55); }
#qrDialog img.qr { width: 220px; max-width: 100%; height: auto; margin: 0 auto 1rem; display: block; }
.store-buttons { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 1rem 0; }
.store-buttons a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    background: #111;
    color: #fff;
    font-weight: 600;
    font-size: .9rem;
}
.store-buttons a:hover { background: #2a94d5; color: #fff; }
.dialog-close {
    position: absolute;
    top: 10px;
    inset-inline-end: 12px;
    border: 0;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    color: #888;
    cursor: pointer;
}

/* Champ piège du formulaire (anti-robots) */
.hp-field {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
/* ---------- Pages légales ---------- */
.lang-block { display: none; }
html[lang="fr"] .lang-block[data-lang="fr"],
html[lang="en"] .lang-block[data-lang="en"],
html[lang="ar"] .lang-block[data-lang="ar"] { display: block; }
.legal-content { max-width: 820px; margin: 0 auto; color: #4a4a4a; }
.legal-content h2 { font-size: 1.35rem; margin: 2.25rem 0 .75rem; }
.legal-content h3 { font-size: 1.05rem; margin: 1.5rem 0 .5rem; }
.legal-content ul, .legal-content ol { padding-inline-start: 1.3rem; margin-bottom: 1rem; }
.legal-content li { margin-bottom: .35rem; }
.legal-content .updated { color: #8a8a8a; font-size: .9rem; }
.legal-content .callout {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    background: #eef7fb;
    border-inline-start: 4px solid #20b2be;
    margin: 1.25rem 0;
}
.legal-content table { width: 100%; margin: 1rem 0; border-collapse: collapse; font-size: .95rem; }
.legal-content th, .legal-content td { padding: .6rem .75rem; border-bottom: 1px solid #e6e9ee; vertical-align: top; text-align: start; }
.legal-content th { background: #f4f7fa; }
.legal-table-wrap { overflow-x: auto; }
.legal-hero { padding: 150px 0 70px; }

/* Le titre du héros est un h1 (référencement) mais garde la taille du h3 d'origine. */
.hero-content-left h1.h3 {
    font-size: calc(1.3rem + .6vw);
    line-height: 1.21;
    color: #000;
}
@media (min-width: 1200px) {
    .hero-content-left h1.h3 { font-size: 1.75rem; }
}
