/* ASAMA Apps — feuille de style du site public (asamaapps.com)
   Thème clair / sombre (préférence système + bascule), RTL (arabe), polices Baloo (OFL) auto-hébergées. */

@font-face { font-family: "Baloo 2"; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/baloo-2-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Baloo 2"; font-weight: 800; font-style: normal; font-display: swap; src: url(fonts/baloo-2-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Baloo Bhaijaan 2"; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/baloo-bhaijaan-2-arabic-600-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Baloo Bhaijaan 2"; font-weight: 800; font-style: normal; font-display: swap; src: url(fonts/baloo-bhaijaan-2-arabic-800-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

:root {
  color-scheme: light dark;
  --bg: #FBF6EE;
  --bg-2: #FFFFFF;
  --bg-3: #F3EADB;
  --ink: #1E1913;
  --ink-2: #6A5D4D;
  --ink-3: #9A8B78;
  --line: #EADFCD;
  --accent: #E0602F;
  --accent-2: #F2A33A;
  --accent-ink: #FFF7EE;
  --teal: #167C8F;
  --teal-2: #37B0C2;
  --ok: #2E8B57;
  --glow-1: rgba(242, 163, 58, .35);
  --glow-2: rgba(55, 176, 194, .28);
  --shadow-1: 0 1px 2px rgba(50, 35, 20, .05), 0 10px 30px -14px rgba(50, 35, 20, .22);
  --shadow-2: 0 2px 6px rgba(50, 35, 20, .07), 0 30px 60px -24px rgba(50, 35, 20, .35);
  --r: 22px;
  --r-sm: 12px;
  --nav-h: 64px;
  --font-display: "Baloo 2", "Baloo Bhaijaan 2", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121009; --bg-2: #1C1812; --bg-3: #27211A; --ink: #F5ECDD; --ink-2: #BFB09A; --ink-3: #8C7D68; --line: #332C22;
    --accent: #F07A47; --accent-2: #F5B65A; --accent-ink: #1B120C; --teal: #46B7C9; --teal-2: #6ED0DE; --ok: #6FCF97;
    --glow-1: rgba(245, 182, 90, .18); --glow-2: rgba(70, 183, 201, .16);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .35), 0 12px 30px -14px rgba(0, 0, 0, .6);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, .4), 0 30px 60px -24px rgba(0, 0, 0, .8);
  }
}
:root[data-theme="dark"] {
  --bg: #121009; --bg-2: #1C1812; --bg-3: #27211A; --ink: #F5ECDD; --ink-2: #BFB09A; --ink-3: #8C7D68; --line: #332C22;
  --accent: #F07A47; --accent-2: #F5B65A; --accent-ink: #1B120C; --teal: #46B7C9; --teal-2: #6ED0DE; --ok: #6FCF97;
  --glow-1: rgba(245, 182, 90, .18); --glow-2: rgba(70, 183, 201, .16);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .35), 0 12px 30px -14px rgba(0, 0, 0, .6);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, .4), 0 30px 60px -24px rgba(0, 0, 0, .8);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 var(--font-body); text-rendering: optimizeLegibility;
  min-height: 100vh; display: flex; flex-direction: column;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vw 40vw at 85% -10%, var(--glow-1), transparent 60%),
    radial-gradient(50vw 35vw at -10% 20%, var(--glow-2), transparent 60%);
}
main { flex: 1; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, .display { font-family: var(--font-display); font-weight: 800; letter-spacing: -.01em; line-height: 1.15; margin: 0; }
h2 { font-size: clamp(26px, 3.2vw, 34px); }
h3 { font-size: 20px; font-weight: 800; }
p { margin: 0; }
.mono { font-family: var(--font-mono); font-size: .92em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--teal) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[lang="ar"], :lang(ar) { font-family: "Baloo Bhaijaan 2", "Segoe UI", Tahoma, system-ui, sans-serif; }
html[dir="rtl"] body { font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", system-ui, sans-serif; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] .display { font-family: "Baloo Bhaijaan 2", "Baloo 2", system-ui, sans-serif; letter-spacing: 0; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20; height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img, .brand svg { width: 36px; height: 36px; border-radius: 10px; }
.nav-links { display: flex; gap: 4px; margin-inline-start: 8px; }
.nav-links a { color: var(--ink-2); padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 15px; }
.nav-links a:hover { background: var(--bg-3); color: var(--ink); text-decoration: none; }
.nav .spacer { flex: 1; }
.pill { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); padding: 3px; gap: 2px; }
.pill button { border: 0; background: transparent; color: var(--ink-2); padding: 5px 11px; border-radius: 999px; font-weight: 600; font-size: 13.5px; line-height: 1.2; }
.pill button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.pill button:hover:not([aria-pressed="true"]) { background: var(--bg-3); color: var(--ink); }
.iconbtn { border: 1px solid var(--line); background: var(--bg-2); color: var(--ink-2); border-radius: 999px; width: 36px; height: 36px; display: inline-grid; place-items: center; flex: none; transition: .15s; }
.iconbtn:hover { color: var(--ink); border-color: var(--ink-3); }
.iconbtn svg { width: 17px; height: 17px; }
.iconbtn.done { color: var(--ok); border-color: var(--ok); }
.theme .sun, .theme .moon { display: none; }
:root[data-theme="dark"] .theme .sun { display: block; }
:root[data-theme="light"] .theme .moon { display: block; }
:root:not([data-theme]) .theme .moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .theme .moon { display: none; } :root:not([data-theme]) .theme .sun { display: block; } }
@media (max-width: 720px) { .nav-links { display: none; } .brand span { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 11px 20px; font-weight: 700; font-size: 15px; line-height: 1.2;
  border: 1px solid var(--line); background: var(--bg-2); color: var(--ink);
  transition: transform .15s, box-shadow .15s, border-color .15s, background .15s;
}
.btn:hover { text-decoration: none; border-color: var(--ink-3); transform: translateY(-1px); box-shadow: var(--shadow-1); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); border-color: transparent; box-shadow: 0 8px 20px -10px var(--accent); }
.btn-primary:hover { border-color: transparent; box-shadow: 0 12px 26px -10px var(--accent); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-sm svg { width: 16px; height: 16px; }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 8vw, 96px) 0 clamp(24px, 4vw, 48px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
html[dir="rtl"] .eyebrow { letter-spacing: 0; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); margin: 14px 0 18px; }
.hero h1 em { font-style: normal; background: linear-gradient(120deg, var(--accent), var(--accent-2) 60%, var(--teal-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 54ch; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.stats { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 34px; }
.stats div { display: grid; gap: 2px; }
.stats b { font-family: var(--font-display); font-size: 28px; font-weight: 800; line-height: 1; }
.stats span { color: var(--ink-3); font-size: 13.5px; }
.mosaic { position: relative; aspect-ratio: 1; max-width: 460px; margin-inline: auto; width: 100%; }
.mosaic::before { content: ""; position: absolute; inset: 8%; border-radius: 40%; background: radial-gradient(circle, var(--glow-1), transparent 65%); filter: blur(20px); }
.mosaic ul { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5.5%; transform: rotate(-8deg) scale(.92); }
.mosaic li { aspect-ratio: 1; border-radius: 24%; overflow: hidden; background: var(--bg-3); box-shadow: var(--shadow-2); animation: float 7s ease-in-out infinite; }
.mosaic li:nth-child(3n+2) { animation-delay: -2.3s; } .mosaic li:nth-child(3n) { animation-delay: -4.6s; }
.mosaic li:nth-child(even) { translate: 0 12%; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic li a { display: block; height: 100%; transition: transform .2s; } .mosaic li a:hover { transform: scale(1.06); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .mosaic li { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .mosaic { max-width: 340px; margin-top: 12px; } }

/* ---------- sections ---------- */
.section { padding: clamp(28px, 5vw, 56px) 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 24px; margin-bottom: 22px; }
.section-head p { color: var(--ink-2); max-width: 60ch; }
.section-head .grow { flex: 1 1 260px; }
.search { display: flex; align-items: center; gap: 10px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; min-width: min(320px, 100%); }
.search input { flex: 1; border: 0; background: transparent; color: var(--ink); font: inherit; outline: none; min-width: 0; }
.search svg { width: 18px; height: 18px; color: var(--ink-3); flex: none; }
.count { color: var(--ink-3); font-size: 14px; white-space: nowrap; }

/* ---------- catalogue cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); gap: 22px; }
.card {
  min-width: 0; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-1); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.cover { position: relative; aspect-ratio: 1024 / 500; background: var(--bg-3); overflow: hidden; display: block; }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .cover img { transform: scale(1.03); }
.cover.fallback { background: linear-gradient(135deg, color-mix(in srgb, var(--teal) 55%, var(--bg-3)), color-mix(in srgb, var(--accent-2) 55%, var(--bg-3))); }
.cover.fallback img { width: 34%; height: auto; margin: auto; position: absolute; inset: 0; border-radius: 22%; box-shadow: var(--shadow-2); }
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.card-head { display: flex; gap: 14px; align-items: center; margin-top: -46px; }
.card-icon { width: 72px; height: 72px; border-radius: 20px; flex: none; background: var(--bg-3); box-shadow: var(--shadow-2); border: 3px solid var(--bg-2); object-fit: cover; }
.card-head > div { min-width: 0; padding-top: 30px; }
.card-alt { color: var(--ink-3); font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 2px; }
.card-desc { color: var(--ink-2); font-size: 15px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-3); border: 1px solid transparent; border-radius: 999px; padding: 3px 10px; font-size: 12.5px; color: var(--ink-2); }
.chip.copy { cursor: copy; color: var(--ink); }
.chip.copy:hover { border-color: var(--ink-3); }
.chip.copy.done { border-color: var(--ok); color: var(--ok); }
.chip.ver { color: var(--teal); background: color-mix(in srgb, var(--teal) 12%, transparent); font-weight: 700; }
.chip.ext { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); font-weight: 700; }
.privacy { display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 8px 8px 14px; }
html[dir="rtl"] .privacy { padding: 8px 14px 8px 8px; }
.privacy .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 20%, transparent); }
.privacy .dot.missing { background: var(--accent-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-2) 25%, transparent); }
.privacy a { flex: 1; min-width: 0; color: var(--ink); font-weight: 700; font-size: 14px; line-height: 1.3; }
.privacy a small { display: block; color: var(--ink-3); font-weight: 400; font-family: var(--font-mono); font-size: 12px; overflow-wrap: anywhere; direction: ltr; text-align: start; }
.card-actions { display: flex; gap: 10px; margin-top: auto; }
.card-actions .btn { flex: 1; }
.empty { text-align: center; color: var(--ink-3); padding: 48px 0; }

/* ---------- app page ---------- */
.app-hero { position: relative; overflow: hidden; padding: clamp(28px, 5vw, 64px) 0 clamp(24px, 4vw, 48px); isolation: isolate; }
.app-hero .bg { position: absolute; inset: -40px; z-index: -1; background-size: cover; background-position: center; filter: blur(40px) saturate(1.2); opacity: .35; }
.app-hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent, var(--bg)); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--ink-3); font-size: 14px; margin-bottom: 22px; }
.crumbs a { color: var(--ink-2); font-weight: 600; }
.app-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(16px, 3vw, 32px); align-items: center; }
.app-icon { width: clamp(96px, 14vw, 148px); height: auto; aspect-ratio: 1; border-radius: 24%; box-shadow: var(--shadow-2); background: var(--bg-3); }
.app-head h1 { font-size: clamp(30px, 4.6vw, 52px); }
.app-alt { color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 4px; font-size: 16px; }
.app-lead { color: var(--ink-2); font-size: clamp(16px, 1.4vw, 19px); margin-top: 10px; max-width: 60ch; }
.app-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.app-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (max-width: 900px) { .app-grid { grid-template-columns: minmax(0, 1fr); } .panel { position: static; } }
.app-grid > * { min-width: 0; }
.shots { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 14px; scrollbar-width: thin; }
.shots img { flex: none; width: min(240px, 62vw); height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow-1); scroll-snap-align: start; background: var(--bg-3); border: 1px solid var(--line); }
.prose { color: var(--ink-2); font-size: 16px; display: grid; gap: 12px; max-width: 70ch; }
.prose strong { color: var(--ink); }
.panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-1); padding: 20px; display: grid; gap: 14px; position: sticky; top: calc(var(--nav-h) + 16px); }
.panel h3 { font-size: 17px; }
.kv { display: grid; gap: 4px; }
.kv dt { color: var(--ink-3); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
html[dir="rtl"] .kv dt { letter-spacing: 0; }
.kv dd { margin: 0; display: flex; align-items: center; gap: 8px; }
.kv dd .mono { overflow-wrap: anywhere; direction: ltr; text-align: start; }
.pages-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pages-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 14px; color: var(--ink); font-weight: 700; font-size: 14.5px; }
.pages-list a:hover { border-color: var(--ink-3); text-decoration: none; }
.pages-list a svg { width: 16px; height: 16px; color: var(--ink-3); flex: none; }
html[dir="rtl"] .pages-list a svg, html[dir="rtl"] .crumbs svg { transform: scaleX(-1); }

/* ---------- 404 ---------- */
.notfound { min-height: calc(100vh - var(--nav-h) - 140px); display: grid; place-items: center; text-align: center; padding: 48px 0; }
.notfound .code { font-family: var(--font-display); font-weight: 800; font-size: clamp(96px, 20vw, 190px); line-height: .9; background: linear-gradient(120deg, var(--accent), var(--accent-2) 60%, var(--teal-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound h1 { font-size: clamp(24px, 3.4vw, 34px); margin-top: 12px; }
.notfound p { color: var(--ink-2); margin: 10px auto 24px; max-width: 46ch; }
.notfound .cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); margin-top: clamp(32px, 6vw, 72px); padding: 36px 0 28px; color: var(--ink-2); font-size: 14.5px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
@media (max-width: 720px) { .footer .cols { grid-template-columns: 1fr; } }
.footer h4 { margin: 0 0 10px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
html[dir="rtl"] .footer h4 { letter-spacing: 0; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer .brand { font-size: 18px; margin-bottom: 8px; }
.footer .legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(16px); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; opacity: 0; transition: .2s; pointer-events: none; z-index: 30; box-shadow: var(--shadow-2); }
.toast.show { opacity: 1; transform: translateX(-50%); }

/* ---------- pages de politique (privacy, terms…) : texte legal des jeux, rhabille au build ---------- */
.policy-hero .eyebrow { margin-bottom: 4px; }
.policy-hero .eyebrow::before { display: none; }
.policy-lang { display: grid; gap: 4px; }
.policy-lang > p:first-child { color: var(--ink-3); font-size: 14px; margin-bottom: 10px; }
.policy-lang > p:first-child em { font-style: normal; }
.policy-lang h3 { font-size: 19px; margin: 26px 0 6px; padding-top: 22px; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 16px); }
.policy-lang h3:first-of-type { border-top: 0; padding-top: 0; margin-top: 18px; }
.policy-lang p { color: var(--ink-2); font-size: 16px; line-height: 1.7; max-width: 72ch; margin: 0 0 10px; }
.policy-lang strong { color: var(--ink); }
.policy-lang a { font-weight: 600; }
.policy-lang code { font-family: var(--font-mono); font-size: .92em; background: var(--bg-3); padding: 1px 6px; border-radius: 6px; }
.policy-lang[lang="ar"] { direction: rtl; text-align: right; }
.policy-lang[lang="ar"] p, .policy-lang[lang="ar"] h3 { font-family: "Baloo Bhaijaan 2", "Segoe UI", Tahoma, "Noto Sans Arabic", system-ui, sans-serif; }
/* Sans JavaScript, les trois langues restent lisibles a la suite ; avec, une seule est affichee. */
.policy-lang + .policy-lang { margin-top: 40px; padding-top: 32px; border-top: 2px dashed var(--line); }
html.js .policy-lang + .policy-lang { margin-top: 0; padding-top: 0; border-top: 0; }
.toc { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 2px; }
.toc a { display: flex; gap: 10px; align-items: baseline; padding: 6px 10px; border-radius: 8px; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.toc a:hover { background: var(--bg-3); color: var(--ink); text-decoration: none; }
