/* =================================================================
   coursdevice.com : styles partagés (blog, prix de l'or, pages fixes)
   ================================================================= */
:root {
  --nav: #0B1F3A;
  --nav-2: #132C4F;
  --nav-txt: #C9D5E3;
  --bg: #F2F4F7;
  --panel: #FFFFFF;
  --head: #F7F9FB;
  --line: #E1E6EC;
  --line-2: #EDF0F4;
  --txt: #15202E;
  --body: #2B3747;
  --muted: #5E6B7B;
  --blue: #0B5CD5;
  --blue-soft: #E8F0FC;
  --up: #0A8A57;
  --up-bg: #E6F5EE;
  --down: #D1323C;
  --amber: #B7791F;
  --amber-soft: #FDF6E7;
  --r: 4px;
  --r-l: 8px;
  --g: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0; background: var(--bg); color: var(--txt);
  font: 15px/1.55 "IBM Plex Sans", "Segoe UI", Roboto, Arial, sans-serif;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
button, input { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--g); }
.n { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.up { color: var(--up); } .down { color: var(--down); } .flat { color: var(--muted); }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: #fff; color: var(--txt); padding: 8px 12px; z-index: 100; border-radius: var(--r); }
.skip:focus { top: 8px; }

/* ===== En-tête ===== */
.nav { background: var(--nav); color: #fff; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; font-size: 18px; letter-spacing: -.02em; font-family: "IBM Plex Sans", sans-serif; }
.brand:hover { text-decoration: none; }
.brand svg { flex: none; }
.brand em { font-style: normal; color: #8EA0B6; font-weight: 400; }
.menu { display: none; gap: 22px; align-self: stretch; }
.menu a { color: var(--nav-txt); font-weight: 500; font-size: 13.5px; display: flex; align-items: center; }
.menu a:hover { color: #fff; text-decoration: none; }
.menu a[aria-current] { color: #fff; box-shadow: inset 0 -2px 0 #6FA8FF; }
.nav-end { display: flex; align-items: center; gap: 6px; }
.burger { background: none; border: 0; color: #fff; width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; margin-inline-end: -8px; }
.lang { display: flex; border: 1px solid rgba(255,255,255,.18); border-radius: var(--r); overflow: hidden; }
.lang a { color: var(--nav-txt); font-size: 12.5px; font-weight: 600; padding: 0 10px; min-width: 38px; height: 32px; display: grid; place-items: center; text-decoration: none; }
.lang a + a { border-inline-start: 1px solid rgba(255,255,255,.18); }
.lang a:hover { color: #fff; background: rgba(255,255,255,.06); }
.lang a[aria-current="true"] { background: #fff; color: var(--nav); }
.lang a[lang="ar"] { font-family: "IBM Plex Sans Arabic", sans-serif; font-size: 13.5px; }
@media (max-width: 979px) {
  .nav { position: relative; z-index: 30; }
  .nav.open .menu { display: flex; flex-direction: column; position: absolute; top: 56px; inset-inline: 0; background: var(--nav); padding: 4px var(--g) 12px; gap: 0; border-top: 1px solid rgba(255,255,255,.08); box-shadow: 0 12px 24px rgba(0,0,0,.25); }
  .nav.open .menu a { padding: 13px 2px; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 15px; }
  .nav.open .menu a:last-child { border-bottom: 0; }
  .nav.open .menu a[aria-current] { box-shadow: inset 3px 0 0 #6FA8FF; padding-inline-start: 12px; }
  [dir="rtl"] .nav.open .menu a[aria-current] { box-shadow: inset -3px 0 0 #6FA8FF; }
}

.crumbs { font-size: 12.5px; color: var(--muted); padding: 14px 0 0; display: flex; flex-wrap: wrap; gap: 0 6px; }
.crumbs a { color: var(--muted); }
.progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 50; pointer-events: none; }
.progress i { display: block; height: 100%; width: 0; background: #22C38E; }

/* ===== Éléments communs ===== */
.chip { display: inline-block; font-size: 12px; font-weight: 600; line-height: 1; padding: 5px 8px; border-radius: 3px; background: var(--blue-soft); color: var(--blue); }
a.chip:hover { text-decoration: none; filter: brightness(.97); }
.chip.c-pratique { background: #E6F5EE; color: #0A7148; }
.chip.c-analyses { background: #FDF1E3; color: #9A5B0C; }
.chip.c-dossiers { background: #EFEAFB; color: #5B3FB0; }
.b-meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12.5px; color: var(--muted); }
.dot-sep { width: 3px; height: 3px; border-radius: 50%; background: #A3AEBB; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--nav); color: #fff; font-weight: 600; font-size: 14px; padding: 10px 16px; border-radius: var(--r); min-height: 44px; }
.btn:hover { text-decoration: none; background: #16355F; }
.arr { flex: none; }
[dir="rtl"] .arr { transform: scaleX(-1); }

/* ===== Accueil du blog ===== */
.b-hero { display: grid; gap: 14px; padding: 14px 0 6px; }
.b-hero h1 { margin: 0; font-size: 26px; line-height: 1.2; letter-spacing: -.015em; }
.b-hero p { margin: 6px 0 0; color: var(--muted); max-width: 60ch; }
.b-search { position: relative; }
.b-search svg { position: absolute; inset-inline-start: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.b-search input { width: 100%; height: 46px; border: 1px solid #C6CFDA; border-radius: var(--r); background: #fff; padding: 0 14px; padding-inline-start: 40px; color: var(--txt); font-size: 15px; outline: none; }
.b-search input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.b-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 12px 0 2px; margin: 0 calc(var(--g) * -1); padding-inline: var(--g); }
.b-tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: #fff; color: var(--txt); border-radius: 999px; padding: 0 14px; height: 38px; font-weight: 600; font-size: 13.5px; cursor: pointer; }
.tab span { font-size: 11.5px; font-weight: 600; color: var(--muted); background: var(--line-2); border-radius: 999px; padding: 1px 7px; }
.tab:hover { border-color: #B7C2CF; }
.tab[aria-pressed="true"] { background: var(--nav); border-color: var(--nav); color: #fff; }
.tab[aria-pressed="true"] span { background: rgba(255,255,255,.16); color: #fff; }

.b-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 16px; }
.b-main { min-width: 0; }

.b-feat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; display: grid; }
.b-feat-img { display: block; aspect-ratio: 16 / 9; background: var(--nav); }
.b-feat-img svg, .b-thumb svg, .a-cover svg { width: 100%; height: 100%; display: block; }
.b-feat-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.b-flag { margin: 0; font-size: 12.5px; font-weight: 700; color: var(--amber); display: flex; align-items: center; gap: 6px; }
.b-flag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #E8A317; }
.b-feat h2 { margin: 0; font-size: 22px; line-height: 1.25; letter-spacing: -.01em; }
.b-feat h2 a, .b-card h3 a, .w-pop a { color: var(--txt); }
.b-feat h2 a:hover, .b-card h3 a:hover, .w-pop a:hover { color: var(--blue); text-decoration: none; }
.b-ex { margin: 0; color: var(--muted); }
.b-feat .btn { margin-top: 4px; }

.b-sec { font-size: 18px; margin: 28px 0 12px; display: flex; align-items: center; gap: 12px; }
.b-sec::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Cartes : liste compacte sur mobile, grille sur grand écran */
.b-grid { display: grid; gap: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.b-card { display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: 14px; padding: 14px; border-bottom: 1px solid var(--line-2); align-items: start; }
.b-card:last-child { border-bottom: 0; }
.b-thumb { order: 2; display: block; aspect-ratio: 1 / 1; border-radius: 6px; overflow: hidden; background: var(--nav); }
.b-cbody { order: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.b-card h3 { margin: 0; font-size: 16px; line-height: 1.35; }
.b-card .b-ex { display: none; font-size: 14px; }
.b-card .b-meta .dot-sep, .b-card .b-meta span:last-child { display: none; }
.b-empty { margin: 16px 0 0; padding: 22px; text-align: center; color: var(--muted); background: var(--panel); border: 1px dashed #C6CFDA; border-radius: var(--r-l); }

/* Encadrés latéraux */
.b-side, .a-side { display: grid; gap: 16px; align-content: start; min-width: 0; }
.w-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-l); padding: 16px; }
.w-box h2 { margin: 0 0 10px; font-size: 15px; }
.w-rates table { width: 100%; border-collapse: collapse; font-size: 14px; }
.w-rates th, .w-rates td { padding: 8px 0; border-bottom: 1px solid var(--line-2); text-align: end; }
.w-rates thead th { font-size: 12px; font-weight: 500; color: var(--muted); padding-top: 0; }
.w-rates tbody th { text-align: start; font-weight: 600; font-family: "IBM Plex Sans", sans-serif; font-size: 13.5px; }
.w-rates td { font-weight: 600; }
.w-rates td.w-chg { width: 24px; font-size: 11px; }
.w-rates tbody tr:last-child > * { border-bottom: 0; }
.w-date { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.w-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 600; font-size: 14px; }
.w-pop ol { margin: 0; padding: 0; list-style: none; counter-reset: pop; }
.w-pop li { counter-increment: pop; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-weight: 600; font-size: 14px; line-height: 1.4; }
.w-pop li:last-child { border-bottom: 0; padding-bottom: 0; }
.w-pop li::before { content: counter(pop); font-size: 18px; font-weight: 700; color: #B7C2CF; line-height: 1.1; }

/* ===== Article ===== */
.a-head { max-width: 760px; padding: 16px 0 0; }
.a-head h1 { margin: 12px 0 10px; font-size: 27px; line-height: 1.2; letter-spacing: -.02em; }
.a-lead { margin: 0; font-size: 17.5px; line-height: 1.55; color: var(--muted); }
.a-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.a-author { display: flex; align-items: center; gap: 10px; }
.a-author b { display: block; color: var(--txt); font-size: 13.5px; }
.a-author small { display: block; font-size: 12px; }
.avatar { width: 36px; height: 36px; flex: none; }
.avatar svg { width: 36px; height: 36px; display: block; }
.a-dates { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.a-read { display: inline-flex; align-items: center; gap: 5px; }
.a-cover { margin: 22px 0 0; border-radius: var(--r-l); overflow: hidden; aspect-ratio: 16 / 9; background: var(--nav); max-width: 1000px; }

.a-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 26px; }
.a-body { min-width: 0; max-width: 720px; }
.a-side .toc { display: none; }

.toc-m { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-l); margin-bottom: 22px; }
.toc-m summary { list-style: none; cursor: pointer; padding: 13px 16px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.toc-m summary::-webkit-details-marker { display: none; }
.toc-m summary::after { content: ""; width: 7px; height: 7px; border-inline-end: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin-top: -4px; }
.toc-m[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.toc-m ol, .toc ol { margin: 0; padding: 0 16px 14px; list-style: none; counter-reset: toc; }
.toc-m li, .toc li { counter-increment: toc; }
.toc-m a, .toc a { display: grid; grid-template-columns: 22px minmax(0, 1fr); padding: 7px 0; color: var(--body); font-size: 14px; line-height: 1.4; }
.toc-m a::before, .toc a::before { content: counter(toc); color: var(--muted); font-weight: 600; font-size: 12.5px; padding-top: 1px; }

.keyfacts { background: var(--nav); color: #fff; border-radius: var(--r-l); padding: 18px 20px; margin: 0 0 26px; }
.kf-t { margin: 0 0 10px; font-weight: 700; font-size: 15px; color: #6FE0B4; }
.keyfacts ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.keyfacts li { position: relative; padding-inline-start: 20px; font-size: 15px; line-height: 1.5; color: #DCE5EF; }
.keyfacts li::before { content: ""; position: absolute; inset-inline-start: 0; top: 8px; width: 8px; height: 8px; border-radius: 2px; background: #22C38E; }
.keyfacts b { color: #fff; }

.prose { font-size: 17px; line-height: 1.75; color: var(--body); }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 18px; }
.prose h2 { font-size: 22px; line-height: 1.3; color: var(--txt); margin: 36px 0 12px; letter-spacing: -.01em; scroll-margin-top: 20px; }
.prose ul, .prose ol { margin: 0 0 20px; padding-inline-start: 22px; }
.prose li { margin-bottom: 9px; padding-inline-start: 2px; }
.prose li::marker { color: var(--muted); }
.prose b { color: var(--txt); }
.prose a { text-decoration: underline; text-decoration-color: rgba(11,92,213,.35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose ol.steps { list-style: none; padding: 0; counter-reset: st; display: grid; gap: 12px; }
.prose ol.steps li { counter-increment: st; position: relative; margin: 0; padding: 14px 16px; padding-inline-start: 60px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-l); }
.prose ol.steps li::before { content: counter(st); position: absolute; inset-inline-start: 16px; top: 16px; width: 30px; height: 30px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-weight: 700; font-size: 14px; display: grid; place-items: center; line-height: 1; }
.callout { border-radius: var(--r-l); padding: 14px 16px; margin: 0 0 22px; border: 1px solid; }
.callout p { margin: 0; font-size: 15.5px; line-height: 1.65; }
.callout.info { background: var(--blue-soft); border-color: #C9DAF6; }
.callout.warn { background: var(--amber-soft); border-color: #F1DDB3; }
.callout.warn b { color: #7A4F0E; }

.t-wrap { margin: 0 0 22px; overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-l); }
.a-table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.a-table th, .a-table td { padding: 11px 12px; border-bottom: 1px solid var(--line-2); text-align: end; white-space: nowrap; }
.a-table thead th { background: var(--head); font-size: 12.5px; font-weight: 600; color: var(--muted); }
.a-table th:first-child, .a-table td:first-child { text-align: start; }
.a-table tbody th { font-weight: 700; color: var(--txt); }
.a-table td:nth-child(2), .a-table td:nth-child(3) { font-weight: 600; color: var(--txt); }
.a-table tbody tr:last-child > * { border-bottom: 0; }
.prose .t-cap, .t-cap { margin: 0; padding: 10px 12px; font-size: 12.5px; line-height: 1.5; color: var(--muted); border-top: 1px solid var(--line); background: var(--head); }

.a-sources { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); }
.a-sources h2 { font-size: 15px; margin: 0 0 8px; }
.a-sources ol { margin: 0; padding-inline-start: 20px; font-size: 13.5px; color: var(--muted); }
.a-sources li { margin-bottom: 6px; }
.a-sources a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.a-note { margin: 22px 0 0; font-size: 13px; color: var(--muted); background: var(--head); border: 1px solid var(--line-2); border-radius: var(--r); padding: 10px 12px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }
.share-t { font-weight: 600; font-size: 14px; margin-inline-end: 4px; }
.sh { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--txt); cursor: pointer; position: relative; }
.sh:hover { text-decoration: none; border-color: #B7C2CF; }
.sh-wa { color: #128C4B; } .sh-fb { color: #1A56C4; }
.sh-copy.done::after { content: attr(data-copied); position: absolute; bottom: calc(100% + 6px); inset-inline-start: 50%; transform: translateX(-50%); background: var(--nav); color: #fff; font-size: 12px; white-space: nowrap; padding: 4px 8px; border-radius: 3px; }
[dir="rtl"] .sh-copy.done::after { transform: translateX(50%); }

.a-more { margin-top: 40px; }
.a-more-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.a-more-head h2 { margin: 0; font-size: 20px; }
.a-more-head a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }

/* ===== Panneaux et tableaux (pages or et pages fixes) ===== */
.muted { color: var(--muted); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-l); min-width: 0; }
.ph { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--head); border-radius: var(--r-l) var(--r-l) 0 0; }
.ph h2 { margin: 0; font-size: 16px; font-weight: 600; }
.ph .meta { font-size: 12.5px; color: var(--muted); }
.pb { padding: 16px; }
.p-pad { padding: 16px; }
.p-sub { margin: 0; padding: 12px 16px 0; font-size: 13.5px; color: var(--muted); }
.tbl-scroll { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { padding: 11px 10px; border-bottom: 1px solid var(--line-2); text-align: end; white-space: nowrap; }
.tbl thead th { background: var(--head); color: var(--muted); font-weight: 500; font-size: 12.5px; }
.tbl th:first-child, .tbl td:first-child { text-align: start; padding-inline-start: 16px; }
.tbl th:last-child, .tbl td:last-child { padding-inline-end: 16px; }
.tbl tbody tr:last-child > * { border-bottom: 0; }
.tbl tbody th { font-weight: 600; }
.tbl .num { font-weight: 700; color: var(--txt); }
.tbl-note { margin: 0; padding: 10px 16px 12px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); }
.pill { display: inline-block; padding: 2px 7px; border-radius: 3px; font-weight: 600; font-size: 12.5px; }
.pill.up { background: var(--up-bg); color: var(--up); }
.pill.down { background: #FCEBEC; color: var(--down); }
.pill.flat { background: var(--line-2); color: var(--muted); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; cursor: pointer; padding: 14px 16px; padding-inline-end: 40px; font-weight: 600; position: relative; line-height: 1.45; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; inset-inline-end: 18px; top: 20px; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); }
.faq details[open] summary::after { transform: rotate(-135deg); top: 23px; }
.faq details p { margin: 0; padding: 0 16px 16px; color: var(--body); line-height: 1.7; }
.live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 3px var(--up-bg); margin-inline-end: 8px; vertical-align: middle; }

/* ===== Formulaires ===== */
.f-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.f-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.f-field label { font-size: 13px; font-weight: 600; color: var(--txt); }
.f-field input, .f-field select, .f-field textarea { width: 100%; border: 1px solid #C6CFDA; border-radius: var(--r); background: #fff; color: var(--txt); font: inherit; font-size: 16px; padding: 10px 12px; min-height: 46px; outline: none; }
.f-field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.f-field input:focus, .f-field select:focus, .f-field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.f-field .f-err { font-size: 12.5px; color: var(--down); }
.f-field [aria-invalid="true"] { border-color: var(--down); }
.f-note { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }
button.btn { border: 0; cursor: pointer; font: inherit; font-weight: 600; }

/* ===== Prix de l'or ===== */
.g-head, .s-head { padding: 16px 0 4px; max-width: 760px; }
.g-head h1, .s-head h1 { margin: 0 0 8px; font-size: 27px; line-height: 1.2; letter-spacing: -.02em; }
.s-lead { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--muted); }
.g-upd, .s-upd { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.g-layout { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.g-main, .g-side { display: contents; }
.o1 { order: 1; } .o2 { order: 2; } .o3 { order: 3; } .o4 { order: 4; } .o5 { order: 5; } .o6 { order: 6; } .o7 { order: 7; } .o8 { order: 8; }
.g-hero { padding: 16px; background: var(--nav); border-color: var(--nav); color: #fff; overflow: hidden; position: relative; }
.g-hero::after { content: ""; position: absolute; inset-inline-end: -70px; top: -70px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(232,163,23,.22), rgba(232,163,23,0) 70%); pointer-events: none; }
.kseg { display: flex; gap: 4px; background: rgba(255,255,255,.08); padding: 4px; border-radius: 999px; overflow-x: auto; scrollbar-width: none; position: relative; z-index: 1; }
.kseg::-webkit-scrollbar { display: none; }
.kbtn { flex: 1 0 auto; border: 0; background: transparent; color: #C9D5E3; font: inherit; font-weight: 600; font-size: 14px; height: 38px; padding: 0 12px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.kbtn[aria-pressed="true"] { background: #E8A317; color: #1B1405; }
.g-price { margin-top: 16px; position: relative; z-index: 1; }
.g-big { margin: 0; font-size: 44px; font-weight: 700; line-height: 1.05; letter-spacing: -.02em; font-family: "IBM Plex Sans", sans-serif; }
.g-big small { font-size: 18px; font-weight: 600; color: #F2C25B; letter-spacing: 0; }
.g-per { margin: 6px 0 0; color: #C9D5E3; font-size: 14px; }
.g-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 14px; color: #DCE5EF; position: relative; z-index: 1; }
.g-ounce { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13.5px; color: #DCE5EF; position: relative; z-index: 1; }
.g-ounce b { color: #fff; }
.g-ounce .muted { color: #9FB0C4; }
.g-basis { margin: 10px 0 0; font-size: 12.5px; color: #9FB0C4; position: relative; z-index: 1; }
.g-table tbody tr.is-active > * { background: #FDF6E7; }
.g-res { display: grid; gap: 8px; margin-top: 4px; }
.g-res > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--head); }
.g-res span { font-size: 13px; color: var(--muted); }
.g-res b { font-size: 19px; white-space: nowrap; }
.g-res > div:first-child { background: #FDF6E7; border-color: #F1DDB3; }
.g-none { margin: 0; font-size: 13px; color: var(--muted); }

/* ===== Pages fixes ===== */
.s-page { max-width: 760px; }
.s-page .prose { margin-top: 22px; }
.s-page .prose h2:first-child { margin-top: 0; }
.todo { background: #FFF3C4; color: #6B4E00; border-radius: 3px; padding: 0 4px; font-weight: 600; }
.ltr-line { direction: ltr; text-align: start; }
[dir="rtl"] .ltr-line { text-align: right; }
.c-grid { display: grid; gap: 16px; margin-top: 22px; }
.c-lbl { margin: 0 0 4px; font-size: 13px; color: var(--muted); font-weight: 600; }
.c-email { font-size: 19px; font-weight: 700; word-break: break-all; }
.c-grid .callout { margin: 0; }
.s-404 { text-align: center; margin: 40px auto 20px; }
.s-code { margin: 0; font-size: 72px; font-weight: 700; color: #C6CFDA; line-height: 1; }
.s-404 h1 { font-size: 28px; margin: 8px 0; }
.s-links { list-style: none; padding: 0; margin: 22px auto 0; display: grid; gap: 8px; max-width: 420px; }
.s-links a { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-l); color: var(--txt); font-weight: 600; }
.s-links a:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
html[lang|="ar"] .g-head h1, html[lang|="ar"] .s-head h1 { line-height: 1.5; letter-spacing: 0; }
html[lang|="ar"] .s-lead { font-size: 17px; line-height: 1.85; }
html[lang|="ar"] .faq details p { line-height: 1.95; }
html[lang|="ar"] .kbtn { font-family: "IBM Plex Sans Arabic", sans-serif; }

/* ===== Pied de page ===== */
footer { background: var(--nav); color: var(--nav-txt); margin-top: 44px; font-size: 12.5px; }
footer .wrap { padding-top: 24px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
footer p { margin: 0 0 10px; max-width: 90ch; }
footer b { color: #fff; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 14px 0; }
footer nav a { color: #fff; }
.fine { border-top: 1px solid rgba(255,255,255,.1); padding-top: 12px; margin-top: 14px; color: #8EA0B6; }

/* ===== Arabe ===== */
html[lang|="ar"] body { font-family: "IBM Plex Sans Arabic", "IBM Plex Sans", "Segoe UI", Tahoma, sans-serif; font-size: 15.5px; line-height: 1.75; }
html[lang|="ar"] h1, html[lang|="ar"] h2, html[lang|="ar"] h3 { letter-spacing: 0; }
html[lang|="ar"] .b-hero h1, html[lang|="ar"] .a-head h1 { line-height: 1.5; }
html[lang|="ar"] .b-feat h2, html[lang|="ar"] .b-card h3 { line-height: 1.6; }
html[lang|="ar"] .a-lead { font-size: 18px; line-height: 1.85; }
html[lang|="ar"] .prose { font-size: 18px; line-height: 2; }
html[lang|="ar"] .prose h2 { font-size: 22px; line-height: 1.6; }
html[lang|="ar"] .keyfacts li, html[lang|="ar"] .callout p { font-size: 16px; line-height: 1.85; }
html[lang|="ar"] .keyfacts li::before { top: 12px; }
html[lang|="ar"] .menu a { font-size: 14.5px; }
html[lang|="ar"] .chip { font-size: 12.5px; padding: 6px 9px; }
html[lang|="ar"] .n, html[lang|="ar"] .a-table { font-family: "IBM Plex Sans", "IBM Plex Sans Arabic", sans-serif; }

/* ===== Grands écrans ===== */
@media (min-width: 640px) {
  .b-card { grid-template-columns: minmax(0, 1fr) 160px; gap: 18px; padding: 16px; }
  .b-thumb { aspect-ratio: 16 / 10; }
  .b-card .b-ex { display: block; }
  .b-card .b-meta .dot-sep, .b-card .b-meta span:last-child { display: inline-block; }
  .b-hero h1 { font-size: 32px; }
  .a-head h1 { font-size: 36px; }
}
@media (min-width: 980px) {
  :root { --g: 24px; }
  .menu { display: flex; }
  .burger { display: none; }
  .b-hero { grid-template-columns: minmax(0, 1fr) 340px; align-items: end; padding-top: 22px; }
  .b-tabs { margin: 0; padding-inline: 0; }
  .b-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; }
  .b-feat { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .b-feat-img { aspect-ratio: auto; min-height: 300px; }
  .b-feat-body { padding: 26px; justify-content: center; }
  .b-feat h2 { font-size: 26px; }
  .b-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; background: none; border: 0; border-radius: 0; overflow: visible; }
  .b-card { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--panel); overflow: hidden; }
  .b-card:last-child { border-bottom: 1px solid var(--line); }
  .b-thumb { order: 0; border-radius: 0; aspect-ratio: 16 / 9; }
  .b-cbody { order: 1; padding: 16px 18px 18px; gap: 8px; }
  .b-card h3 { font-size: 17.5px; }
  .b-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .b-side { position: sticky; top: 20px; }
  .a-head h1 { font-size: 40px; }
  .a-cover { aspect-ratio: 21 / 8; max-width: none; }
  .a-lead { font-size: 19px; }
  .a-layout { grid-template-columns: minmax(0, 720px) 300px; justify-content: space-between; gap: 48px; }
  .a-side { position: sticky; top: 20px; }
  .a-side .toc { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-l); padding: 16px 0 6px; }
  .toc-t { margin: 0 16px 6px; font-weight: 700; font-size: 14px; }
  .toc a { border-inline-start: 2px solid transparent; padding-inline-start: 14px; margin-inline-start: -2px; }
  .toc ol { padding: 0 16px 10px; }
  .toc a.active { color: var(--blue); font-weight: 600; border-inline-start-color: var(--blue); }
  .toc a.active::before { color: var(--blue); }
  .toc-m { display: none; }
  .prose { font-size: 18px; }
  html[lang|="ar"] .prose { font-size: 18.5px; }
  html[lang|="ar"] .a-head h1 { font-size: 36px; }
}

@media (min-width: 640px) {
  .f-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-head h1, .s-head h1 { font-size: 34px; }
}
@media (min-width: 980px) {
  .g-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
  .g-main, .g-side { display: grid; gap: 16px; align-content: start; min-width: 0; }
  .g-side { position: sticky; top: 20px; }
  .g-hero { padding: 22px 24px; }
  .g-big { font-size: 56px; }
  .c-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: start; }
  .c-grid .callout { grid-column: 1 / -1; }
  .g-head h1, .s-head h1 { font-size: 38px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
