/* Lot 148-ج (5.245.0) — magasin d'applications DjilWEB (apps.djilweb.dz). Système visuel commun aux pages du magasin.
   Thèmes clair/sombre (préférence du système, ou choix mémorisé via data-theme), RTL par propriétés logiques, aucune
   police externe (aucune requête vers un tiers : la page promet « aucun traçage »). */

:root {
  --ink: #0e1726; --ink-2: #334155; --dim: #64748b; --line: #e2e8f0; --line-2: #cbd5e1;
  --bg: #f6f7fb; --bg-2: #eef1f7; --card: #ffffff; --card-2: #f8fafc;
  --brand: #1d4ed8; --brand-ink: #ffffff; --ok: #059669; --warn: #b45309; --warn-bg: #fff7ed;
  --night: #070d1a; --night-2: #0d1830; --gold: #e8c36a; --gold-2: #f3dc9b;
  --accent: #e8c36a; --accent-ink: #1a1405;
  --radius: 18px; --radius-s: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-l: 0 2px 6px rgba(15, 23, 42, .08), 0 24px 60px rgba(15, 23, 42, .14);
  --font: system-ui, -apple-system, "Segoe UI", "SF Pro Text", "Noto Sans Arabic", "Noto Kufi Arabic", "Geeza Pro", Tahoma, Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e8edf5; --ink-2: #c3cddb; --dim: #8fa0b6; --line: #1f2b3f; --line-2: #2b3a52;
    --bg: #080e1b; --bg-2: #0c1426; --card: #0f182c; --card-2: #121d34;
    --brand: #7aa2ff; --brand-ink: #0b1220; --ok: #34d399; --warn: #fbbf24; --warn-bg: #1d1708;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-l: 0 2px 6px rgba(0, 0, 0, .5), 0 24px 60px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #e8edf5; --ink-2: #c3cddb; --dim: #8fa0b6; --line: #1f2b3f; --line-2: #2b3a52;
  --bg: #080e1b; --bg-2: #0c1426; --card: #0f182c; --card-2: #121d34;
  --brand: #7aa2ff; --brand-ink: #0b1220; --ok: #34d399; --warn: #fbbf24; --warn-bg: #1d1708;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .25);
  --shadow-l: 0 2px 6px rgba(0, 0, 0, .5), 0 24px 60px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.25; margin: 0; letter-spacing: -.01em; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 20px; }
@media (max-width: 520px) { .wrap { padding-inline: 16px; } }

/* ── En-tête ─────────────────────────────────────────────────────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 40; backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.top.on-night { background: color-mix(in srgb, var(--night) 72%, transparent); border-bottom-color: rgba(255, 255, 255, .06); color: #fff; }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.mark { display: inline-flex; align-items: center; gap: 10px; color: inherit; font-weight: 700; font-size: 1.02rem; white-space: nowrap; }
.mark:hover { text-decoration: none; }
.mark svg { width: 30px; height: 30px; flex: none; }
.mark small { font-weight: 500; color: var(--dim); font-size: .86rem; }
.top.on-night .mark small { color: rgba(255, 255, 255, .62); }
.nav { display: flex; gap: 4px; margin-inline-start: 8px; }
.nav a { color: inherit; opacity: .78; padding: 6px 12px; border-radius: 999px; font-size: .92rem; }
.nav a:hover, .nav a.on { opacity: 1; text-decoration: none; background: color-mix(in srgb, currentColor 9%, transparent); }
.tools { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.langs { display: inline-flex; padding: 3px; border-radius: 999px; background: color-mix(in srgb, currentColor 8%, transparent); }
.langs a { color: inherit; opacity: .7; font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.langs a.on { opacity: 1; background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.top.on-night .langs a.on { background: #fff; color: #0b1220; }
.langs a:hover { text-decoration: none; opacity: 1; }
.icon-btn { inline-size: 36px; block-size: 36px; display: inline-grid; place-items: center; border-radius: 999px; border: 0; cursor: pointer;
  background: color-mix(in srgb, currentColor 8%, transparent); color: inherit; }
.icon-btn svg { width: 18px; height: 18px; }
@media (max-width: 720px) { .nav { display: none; } .mark small { display: none; } }

/* ── Boutons ─────────────────────────────────────────────────────────────────────────────────────────── */
.btn { --b: var(--brand); --bi: var(--brand-ink); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border-radius: 14px; border: 1px solid transparent; background: var(--b); color: var(--bi); font: inherit; font-weight: 650; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease; white-space: nowrap; }
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 30px color-mix(in srgb, var(--b) 35%, transparent); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.gold { --b: var(--accent); --bi: var(--accent-ink); }
.btn.ghost { background: transparent; color: inherit; border-color: color-mix(in srgb, currentColor 22%, transparent); }
.btn.ghost:hover { box-shadow: none; background: color-mix(in srgb, currentColor 7%, transparent); }
.btn.off { opacity: .5; pointer-events: none; border-style: dashed; }
.btn small { font-weight: 500; opacity: .75; font-size: .8rem; }

/* ── Héros d'une application ─────────────────────────────────────────────────────────────────────────── */
.hero { position: relative; color: #f4f6fb; background: var(--night); isolation: isolate; z-index: 1; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 55% at 78% 30%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 70%),
              radial-gradient(45% 50% at 12% 10%, rgba(80, 110, 220, .30), transparent 70%),
              linear-gradient(180deg, var(--night-2), var(--night)); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .55) 1px, transparent 1.2px); background-size: 34px 34px;
  mask-image: radial-gradient(70% 70% at 70% 30%, #000, transparent 75%); -webkit-mask-image: radial-gradient(70% 70% at 70% 30%, #000, transparent 75%); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 48px; align-items: center; padding-block: 56px 64px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 36px; padding-block: 36px 44px; } }
.crumbs { font-size: .85rem; color: rgba(255, 255, 255, .6); margin-bottom: 22px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crumbs a { color: rgba(255, 255, 255, .78); }
.id { display: flex; gap: 22px; align-items: center; }
.id .ico { inline-size: 112px; block-size: 112px; border-radius: 26px; flex: none; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 18px 50px color-mix(in srgb, var(--accent) 30%, transparent), 0 8px 20px rgba(0, 0, 0, .45); }
.id .ico img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.id h1 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 800; color: #fff; }
.id .by { margin-top: 6px; color: rgba(255, 255, 255, .7); font-size: .95rem; }
.id .by b { color: var(--gold-2); font-weight: 600; }
@media (max-width: 520px) { .id { gap: 16px; } .id .ico { inline-size: 84px; block-size: 84px; border-radius: 20px; } }
.tagline { font-size: clamp(1.08rem, 1.8vw, 1.3rem); color: rgba(255, 255, 255, .88); margin: 22px 0 0; max-width: 46ch; line-height: 1.6; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: .82rem;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .86); }
.chip svg { width: 14px; height: 14px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 28px; border-radius: 16px; overflow: hidden;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); max-width: 620px; }
.stats > div { padding: 14px 16px; text-align: center; }
.stats > div + div { border-inline-start: 1px solid rgba(255, 255, 255, .08); }
.stats b { display: block; font-size: 1.15rem; color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stats b.s { font-size: 1rem; }
.stats span { font-size: .76rem; color: rgba(255, 255, 255, .6); text-transform: uppercase; letter-spacing: .04em; }
[dir="rtl"] .stats span { text-transform: none; letter-spacing: 0; font-size: .8rem; }
@media (max-width: 520px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats > div:nth-child(3) { border-inline-start: 0; } .stats > div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .08); } }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; align-items: center; }
.cta .btn.ghost { color: #fff; }
.cta-note { margin-top: 14px; font-size: .82rem; color: rgba(255, 255, 255, .6); display: flex; gap: 8px; align-items: center; }
.cta-note svg { width: 16px; height: 16px; color: var(--ok); flex: none; }

/* Choix du fichier (sans script : <details>) */
.pick { position: relative; }
.pick > summary { list-style: none; cursor: pointer; }
.pick > summary::-webkit-details-marker { display: none; }
.pick[open] > summary { background: rgba(255, 255, 255, .08); }
.pick .menu { position: absolute; inset-block-start: calc(100% + 8px); inset-inline-start: 0; z-index: 30; min-width: 340px; padding: 8px;
  background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-l); }
.pick .menu a { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 12px; border-radius: 10px; color: var(--ink); }
.pick .menu a:hover { background: var(--bg-2); text-decoration: none; }
.pick .menu b { font-weight: 650; }
.pick .menu small { grid-column: 1; color: var(--dim); font-size: .8rem; }
.pick .menu i { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-style: normal; font-size: .8rem; color: var(--dim); font-variant-numeric: tabular-nums; }
.pick .menu .rec { font-size: .7rem; font-weight: 700; color: var(--ok); margin-inline-start: 6px; }

/* Téléphone de démonstration */
.device { justify-self: center; position: relative; inline-size: min(300px, 78vw); aspect-ratio: 400 / 860; border-radius: 42px; padding: 10px;
  background: linear-gradient(145deg, #2a3348, #0b111d 60%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 80px rgba(0, 0, 0, .55), 0 0 120px color-mix(in srgb, var(--accent) 22%, transparent);
  transform: rotate(-2.5deg); }
[dir="rtl"] .device { transform: rotate(2.5deg); }
.device img { inline-size: 100%; block-size: 100%; object-fit: cover; border-radius: 33px; }
.device::before { content: ""; position: absolute; inset-block-start: 20px; inset-inline-start: 50%; transform: translateX(-50%); width: 70px; height: 20px; border-radius: 99px; background: #05080f; z-index: 2; }
[dir="rtl"] .device::before { transform: translateX(50%); }
@media (max-width: 900px) { .device { display: none; } }

/* ── Sections ────────────────────────────────────────────────────────────────────────────────────────── */
.section { padding-block: 56px; }
.section + .section { padding-block-start: 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.sec-head h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 750; }
.sec-head p { margin: 6px 0 0; color: var(--dim); }
.kicker { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 6px; }
[dir="rtl"] .kicker { letter-spacing: 0; font-size: .85rem; }

/* Captures : défilement aimanté */
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 230px); gap: 18px; overflow-x: auto; padding: 6px 4px 22px;
  scroll-snap-type: x mandatory; scrollbar-width: thin; overscroll-behavior-x: contain; }
.shots figure { margin: 0; scroll-snap-align: start; }
.shots button { all: unset; display: block; cursor: zoom-in; border-radius: 22px; overflow: hidden; background: var(--night);
  box-shadow: 0 0 0 1px var(--line), var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.shots button:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line-2), var(--shadow-l); }
.shots button:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.shots img { aspect-ratio: 400 / 860; object-fit: cover; inline-size: 100%; }
.shots figcaption { margin-top: 10px; font-size: .86rem; color: var(--ink-2); text-align: center; padding-inline: 6px; }

/* Grille contenu + colonne */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
@media (max-width: 960px) { .cols { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow); }
.card + .card { margin-top: 20px; }
.card h2 { font-size: 1.18rem; font-weight: 720; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.card h2 svg { width: 20px; height: 20px; color: var(--brand); flex: none; }
@media (max-width: 520px) { .card { padding: 20px; } }
.prose { color: var(--ink-2); }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 14px; }
.prose strong { color: var(--ink); }
.prose h1, .prose h2, .prose h3 { color: var(--ink); margin: 26px 0 10px; font-size: 1.08rem; }
.prose ul { padding-inline-start: 22px; margin: 0 0 16px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--accent); }
.prose table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: .92rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: start; vertical-align: top; }
.prose blockquote { margin: 14px 0; padding: 10px 16px; border-inline-start: 3px solid var(--accent); background: var(--card-2); border-radius: 8px; }
.new { position: relative; padding-inline-start: 18px; }
.new::before { content: ""; position: absolute; inset-block: 4px; inset-inline-start: 0; width: 3px; border-radius: 3px; background: linear-gradient(var(--accent), transparent); }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); }

.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 12px 18px; font-size: .93rem; }
.facts dt { color: var(--dim); }
.facts dd { margin: 0; text-align: end; font-weight: 550; }
.hash { display: flex; gap: 8px; align-items: stretch; margin-top: 8px; }
.hash code { flex: 1; min-width: 0; font-family: var(--mono); font-size: .76rem; line-height: 1.5; padding: 8px 10px; border-radius: 10px; background: var(--card-2);
  border: 1px solid var(--line); overflow-wrap: anywhere; direction: ltr; text-align: left; color: var(--ink-2); }
.copy { border: 1px solid var(--line); background: var(--card); color: var(--ink-2); border-radius: 10px; padding: 0 10px; font: inherit; font-size: .78rem; cursor: pointer; }
.copy:hover { border-color: var(--line-2); }
.copy.done { color: var(--ok); border-color: var(--ok); }
.lbl { font-size: .8rem; color: var(--dim); margin-top: 16px; display: flex; justify-content: space-between; gap: 8px; }
.lbl:first-of-type { margin-top: 0; }
.trust-line { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--ink-2); margin-top: 14px; }
.trust-line svg { width: 18px; height: 18px; color: var(--ok); flex: none; margin-top: 2px; }
.notice { display: flex; gap: 12px; padding: 16px 18px; border-radius: var(--radius-s); background: var(--warn-bg); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); color: var(--ink-2); font-size: .92rem; }
.notice svg { width: 20px; height: 20px; color: var(--warn); flex: none; margin-top: 2px; }
.notice b { color: var(--ink); display: block; margin-bottom: 2px; }
.link-card { display: flex; gap: 14px; align-items: center; color: var(--ink); }
.link-card:hover { text-decoration: none; }
.link-card .ic { inline-size: 44px; block-size: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--ink); flex: none; }
.link-card .ic svg { width: 22px; height: 22px; }
.link-card b { display: block; }
.link-card small { color: var(--dim); }
.link-card .go { margin-inline-start: auto; color: var(--dim); }
[dir="rtl"] .link-card .go { transform: scaleX(-1); }

/* Visionneuse des captures */
.lightbox { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(3, 6, 14, .88); backdrop-filter: blur(6px); }
.lightbox .lb { width: 100%; height: 100%; display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; justify-items: center; }
.lightbox img { max-height: 88vh; max-width: min(92vw, 460px); border-radius: 26px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lightbox p { color: rgba(255, 255, 255, .8); text-align: center; margin: 14px 0 0; }
.lightbox .nb { width: 48px; height: 48px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .1); color: #fff; font-size: 1.6rem; cursor: pointer; }
.lightbox .x { position: fixed; inset-block-start: 18px; inset-inline-end: 18px; }

[dir="rtl"] .lightbox .nb:not(.x) { transform: scaleX(-1); }

/* ── Vitrine ─────────────────────────────────────────────────────────────────────────────────────────── */
.hero.home .wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); padding-block: 72px 80px; }
@media (max-width: 900px) { .hero.home .wrap { grid-template-columns: 1fr; padding-block: 44px 52px; } }
.kicker.on-dark { color: var(--gold-2); }
.display { font-size: clamp(2.2rem, 5.2vw, 3.8rem); font-weight: 800; line-height: 1.12; color: #fff; max-width: 15ch;
  background: linear-gradient(180deg, #fff 30%, color-mix(in srgb, #fff 70%, var(--gold)) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
[dir="rtl"] .display { line-height: 1.3; }
.trust-row { display: flex; flex-wrap: wrap; gap: 28px 40px; margin-top: 36px; }
.trust-row b { display: block; font-size: 1.9rem; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; line-height: 1.1; }
.trust-row span { font-size: .85rem; color: rgba(255, 255, 255, .6); }
.spot { position: relative; display: grid; gap: 16px; padding: 24px; border-radius: 28px; color: #fff; text-decoration: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02)); border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .08); backdrop-filter: blur(8px); transition: transform .25s ease, border-color .25s ease; }
.spot:hover { text-decoration: none; transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.spot-k { font-size: .78rem; font-weight: 700; color: var(--gold-2); letter-spacing: .1em; text-transform: uppercase; }
[dir="rtl"] .spot-k { letter-spacing: 0; font-size: .85rem; }
.spot-id { display: flex; gap: 14px; align-items: center; }
.spot-id img { border-radius: 18px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 12px 30px rgba(0, 0, 0, .4); }
.spot-id b { display: block; font-size: 1.35rem; }
.spot-id small { color: rgba(255, 255, 255, .62); }
.fan { position: relative; height: 250px; display: block; }
.fan img { position: absolute; inset-block-start: 0; height: 250px; width: auto; aspect-ratio: 400 / 860; object-fit: cover; border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 18px 40px rgba(0, 0, 0, .5); }
.fan img:nth-child(1) { inset-inline-start: 50%; transform: translateX(-50%); z-index: 3; }
.fan img:nth-child(2) { inset-inline-start: calc(50% - 150px); transform: rotate(-8deg) scale(.88); z-index: 2; opacity: .9; }
.fan img:nth-child(3) { inset-inline-start: calc(50% + 34px); transform: rotate(8deg) scale(.88); z-index: 1; opacity: .9; }
[dir="rtl"] .fan img:nth-child(1) { transform: translateX(50%); }
.spot-t { color: rgba(255, 255, 255, .82); }
.spot .btn { justify-self: start; }
[dir="rtl"] .spot .btn svg { transform: scaleX(-1); }

.news { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.news-item { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); transition: border-color .2s, transform .2s; }
.news-item:hover { text-decoration: none; border-color: var(--line-2); transform: translateY(-2px); }
.news-ico img { border-radius: 12px; }
.news-body { display: grid; gap: 4px; min-width: 0; }
.news-meta { display: flex; gap: 10px; align-items: center; font-size: .8rem; color: var(--dim); }
.news-txt { color: var(--ink-2); font-size: .9rem; }

.rank { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px 28px; }
.rank a { display: flex; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.rank a:hover { text-decoration: none; }
.rank .n { inline-size: 26px; font-weight: 800; font-size: 1.2rem; color: var(--dim); font-variant-numeric: tabular-nums; }
.rank img { border-radius: 14px; }
.rank small { display: block; color: var(--dim); }

.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
@media (max-width: 520px) { .apps, .news { grid-template-columns: 1fr; } }
.app-card { display: flex; gap: 16px; align-items: center; padding: 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s; }
.app-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-l); border-color: var(--line-2); }
.app-card .ico img { border-radius: 16px; box-shadow: 0 0 0 1px var(--line); }
.app-card .body { display: grid; gap: 2px; min-width: 0; }
.app-card b { font-size: 1.05rem; }
.app-card small { color: var(--dim); }
.app-card .desc { color: var(--ink-2); font-size: .9rem; margin-top: 4px; }
.app-card .go { margin-inline-start: auto; color: var(--dim); flex: none; }
.app-card .go svg { width: 20px; height: 20px; }
[dir="rtl"] .app-card .go svg { transform: scaleX(-1); }

.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pillars { grid-template-columns: 1fr; } }
.pillars > div { padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.pillars b { display: block; margin: 14px 0 6px; font-size: 1.02rem; }
.pillars p { margin: 0; color: var(--ink-2); font-size: .92rem; }
.pi { inline-size: 44px; block-size: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }
.pi svg { width: 22px; height: 22px; }

/* ── Pied de page ────────────────────────────────────────────────────────────────────────────────────── */
.foot { margin-top: 40px; padding-block: 40px 48px; background: var(--night); color: rgba(255, 255, 255, .72); font-size: .9rem; }
.foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.foot .mark { color: #fff; }
.foot h3 { color: #fff; font-size: .9rem; margin-bottom: 10px; }
.foot a { color: rgba(255, 255, 255, .78); display: block; margin: 6px 0; }
.foot p { margin: 12px 0 0; max-width: 44ch; }
.foot .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .82rem; color: rgba(255, 255, 255, .5); }
@media (max-width: 720px) { .foot .wrap { grid-template-columns: 1fr; } }

/* Guide */
.doc-head { background: var(--night); color: #fff; padding-block: 40px; }
.doc-head h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.doc-head p { color: rgba(255, 255, 255, .7); margin: 8px 0 0; }
.doc { max-width: 820px; margin-inline: auto; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } .device { transform: none; } }
@media print { .top, .foot, .cta, .shots { display: none; } .hero { color: #000; background: none; } }

/* Vitrine : peu d'applications → catalogue et nouvelles côte à côte (lot 148-ج1). */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.duo .apps, .duo .news { grid-template-columns: 1fr; }
.stack .block + .block { margin-top: 56px; }
@media (max-width: 900px) { .duo { grid-template-columns: 1fr; gap: 48px; } }
.news-ico, .app-card .ico, .rank img { flex: none; }
.news-ico img { width: 48px; height: 48px; object-fit: cover; }
.app-card .ico img { width: 64px; height: 64px; object-fit: cover; }

/* 5.245.1 : liens vers les documents de l'application (confidentialité, conditions). */
.card .doc-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .9rem; }
.card .doc-links a { display: inline-flex; align-items: center; gap: 6px; }
.card .doc-links svg { width: 16px; height: 16px; }

/* ── Avis (lot 148-ج2, 5.246.0) ──────────────────────────────────────────────────────────────────────── */
.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; font-size: .93rem; border: 1px solid; }
.flash.ok { background: color-mix(in srgb, var(--ok) 10%, var(--card)); border-color: color-mix(in srgb, var(--ok) 35%, transparent); color: var(--ink); }
.flash.warn { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 35%, transparent); color: var(--ink); }
.rev-grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 960px) { .rev-grid { grid-template-columns: 1fr; } }
.stars { --v: 0%; display: inline-block; position: relative; font-size: 1.15rem; line-height: 1; letter-spacing: 2px; color: var(--line-2); }
.stars::before { content: "★★★★★"; }
.stars::after { content: "★★★★★"; position: absolute; inset-block-start: 0; inset-inline-start: 0; width: var(--v); overflow: hidden; color: #e8b33a; white-space: nowrap; }
.stars.sm { font-size: .85rem; letter-spacing: 1px; }
.rev-sum .rev-avg { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center; }
.rev-avg b { grid-row: 1 / span 2; font-size: 3.2rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.rev-avg small { color: var(--dim); }
.rev-bars { margin-top: 18px; display: grid; gap: 7px; }
.rev-bars > div { display: grid; grid-template-columns: 32px 1fr 36px; gap: 10px; align-items: center; font-size: .82rem; color: var(--dim); font-variant-numeric: tabular-nums; }
.rev-bars i { display: block; height: 8px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.rev-bars em { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #e8b33a, var(--gold-2)); }
[dir="rtl"] .rev-bars em { background: linear-gradient(270deg, #e8b33a, var(--gold-2)); }
.rev-empty { margin: 0; color: var(--dim); }
.rev-form h3 { font-size: 1.1rem; margin-bottom: 12px; }
.star-pick { border: 0; padding: 0; margin: 0 0 14px; display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-pick label { font-size: 2rem; line-height: 1; color: var(--line-2); cursor: pointer; transition: color .12s, transform .12s; }
.star-pick label:hover, .star-pick label:hover ~ label, .star-pick input:checked ~ label { color: #e8b33a; }
.star-pick label:hover { transform: scale(1.12); }
.star-pick input:focus-visible + label { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.fld { display: grid; gap: 6px; margin-bottom: 14px; font-size: .88rem; color: var(--ink-2); font-weight: 600; }
.fld input, .fld textarea { font: inherit; font-weight: 400; color: var(--ink); background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.fld small { font-weight: 400; color: var(--dim); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.rev-note { margin: 12px 0 0; font-size: .8rem; color: var(--dim); }
.rev-list { display: grid; gap: 14px; }
.rev { padding: 20px 22px; }
.rev header { display: flex; gap: 12px; align-items: center; }
.rev header small { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; color: var(--dim); font-size: .8rem; }
.avatar { inline-size: 40px; block-size: 40px; border-radius: 999px; display: grid; place-items: center; flex: none; font-weight: 700;
  background: color-mix(in srgb, var(--accent) 22%, var(--card)); color: var(--ink); }
.rev > p { margin: 12px 0 0; color: var(--ink-2); white-space: pre-line; }
.rev-reply { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--card-2); border-inline-start: 3px solid var(--accent); font-size: .9rem; }
.rev-reply p { margin: 4px 0 0; color: var(--ink-2); white-space: pre-line; }
.rev-report { margin-top: 10px; text-align: end; }
.rev-report button { border: 0; background: none; color: var(--dim); font: inherit; font-size: .78rem; cursor: pointer; padding: 0; }
.rev-report button:hover { color: var(--warn); text-decoration: underline; }
.rev-empty-list { display: flex; gap: 12px; align-items: center; color: var(--dim); }
.rev-empty-list svg { width: 22px; height: 22px; color: var(--accent); }
.rev-empty-list p { margin: 0; }
.rev-more { justify-self: center; color: var(--ink); }
.chip.rate { color: #fff; text-decoration: none; border-color: color-mix(in srgb, #e8b33a 50%, transparent); }
.chip.rate b { color: #f3cf74; }
.mini-rate { color: #c98d16 !important; font-weight: 600; }
.rev-list .card + .card { margin-top: 0; }
