/* Tauxora — « Liquid Glass ».
   Concept : des panneaux de verre dépoli posés sur un fond de lumières douces aux couleurs
   du drapeau guinéen (vert, or, rouge). Un seul moment fort : le convertisseur et son grand
   montant en GNF, façon widget iPhone. Le reste est calme, aligné à gauche. */
:root {
  --bg: #EEF3F0;
  --ink: #0C1F18;
  --ink-2: #44574F;
  --ink-3: #6E7F78;
  --line: rgba(12, 31, 24, .10);
  --brand: #0A7A55;
  --brand-2: #0FA772;
  --brand-ink: #FFFFFF;
  --brand-soft: rgba(10, 122, 85, .12);
  --gold: #B97800;
  --gold-soft: rgba(232, 163, 0, .16);
  --danger: #C4323A;
  --glow-green: #3CCB8F;
  --glow-gold: #FFC93C;
  --glow-red: #FF7A70;
  --glass: rgba(255, 255, 255, .58);
  --glass-strong: rgba(255, 255, 255, .78);
  --glass-edge: rgba(255, 255, 255, .85);
  --glass-shade: rgba(12, 31, 24, .06);
  --shadow: 0 1px 1px rgba(12, 31, 24, .04), 0 10px 30px -8px rgba(12, 31, 24, .16);
  --surface: var(--glass-strong);
  --surface-2: rgba(12, 31, 24, .05);
  --radius: 22px;
  --font-display: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --tabbar-h: 0px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #06120E; --ink: #EAF4EF; --ink-2: #A9BDB4; --ink-3: #7D918A; --line: rgba(255, 255, 255, .10);
    --brand: #2FD394; --brand-2: #19B07A; --brand-ink: #03140D; --brand-soft: rgba(47, 211, 148, .14);
    --gold: #FFC447; --gold-soft: rgba(255, 196, 71, .14); --danger: #FF7B73;
    --glow-green: #0E7A52; --glow-gold: #8A6200; --glow-red: #8F2D2A;
    --glass: rgba(22, 36, 31, .55); --glass-strong: rgba(26, 42, 36, .72); --glass-edge: rgba(255, 255, 255, .14);
    --glass-shade: rgba(0, 0, 0, .25); --shadow: 0 10px 34px -10px rgba(0, 0, 0, .6); --surface-2: rgba(255, 255, 255, .06);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #06120E; --ink: #EAF4EF; --ink-2: #A9BDB4; --ink-3: #7D918A; --line: rgba(255, 255, 255, .10);
  --brand: #2FD394; --brand-2: #19B07A; --brand-ink: #03140D; --brand-soft: rgba(47, 211, 148, .14);
  --gold: #FFC447; --gold-soft: rgba(255, 196, 71, .14); --danger: #FF7B73;
  --glow-green: #0E7A52; --glow-gold: #8A6200; --glow-red: #8F2D2A;
  --glass: rgba(22, 36, 31, .55); --glass-strong: rgba(26, 42, 36, .72); --glass-edge: rgba(255, 255, 255, .14);
  --glass-shade: rgba(0, 0, 0, .25); --shadow: 0 10px 34px -10px rgba(0, 0, 0, .6); --surface-2: rgba(255, 255, 255, .06);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 var(--font-body); min-height: 100vh; display: flex; flex-direction: column;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-bottom: var(--tabbar-h);
}
a { color: var(--brand); }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; letter-spacing: -.02em; }
.wrap { width: 100%; max-width: 680px; margin: 0 auto; }
.num { font-family: var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.skip { position: absolute; inset-inline-start: 16px; top: 8px; background: var(--glass-strong); padding: 8px 12px; border-radius: 10px; z-index: 30; transform: translateY(-300%); }
.skip:focus { transform: none; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; }

/* ----- Fond lumineux ----- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.aurora .b1 { width: 62vmax; height: 62vmax; left: -22vmax; top: -24vmax; background: var(--glow-green); }
.aurora .b2 { width: 46vmax; height: 46vmax; right: -18vmax; top: 18vh; background: var(--glow-gold); opacity: .42; }
.aurora .b3 { width: 40vmax; height: 40vmax; left: 10vmax; bottom: -22vmax; background: var(--glow-red); opacity: .30; }
@media (prefers-reduced-motion: no-preference) {
  .aurora .b1 { animation: drift 26s ease-in-out infinite alternate; }
  .aurora .b2 { animation: drift 32s ease-in-out infinite alternate-reverse; }
}
@keyframes drift { to { transform: translate3d(6vmax, 4vmax, 0) scale(1.08); } }

/* ----- Verre ----- */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(28px) saturate(170%); backdrop-filter: blur(28px) saturate(170%);
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 -1px 0 var(--glass-shade), var(--shadow);
}
.card { background: var(--glass); -webkit-backdrop-filter: blur(28px) saturate(170%); backdrop-filter: blur(28px) saturate(170%);
  border: 1px solid var(--glass-edge); box-shadow: inset 0 1px 0 var(--glass-edge), var(--shadow); border-radius: var(--radius); }

/* ----- Barre du haut ----- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; padding-top: 12px; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 56px; padding: 0 8px 0 12px; border-radius: 999px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.logo img { border-radius: 10px; }
.logo-accent { color: var(--brand); }
.nav { display: flex; gap: 2px; }
.nav a { text-decoration: none; color: var(--ink-2); font-size: 14.5px; font-weight: 600; padding: 9px 14px; border-radius: 999px; transition: background .2s, color .2s; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--glass-strong); box-shadow: inset 0 1px 0 var(--glass-edge), 0 2px 8px -2px rgba(12, 31, 24, .18); }

.notice { margin: 12px 0 0; padding: 10px 14px; border-radius: 16px; font-size: 13.5px; color: var(--ink-2); display: flex; gap: 10px; align-items: flex-start; }
.notice svg { flex: none; color: var(--gold); margin-top: 2px; }

main { flex: 1; padding-block: 8px 40px; outline: none; }
main:focus, main:focus-visible { outline: none; }

/* ----- Accueil ----- */
.hero { padding: 28px 4px 18px; }
h1 { font-size: clamp(30px, 7.4vw, 46px); line-height: 1.06; margin: 0 0 12px; font-weight: 700; }
.lead { color: var(--ink-2); font-size: 17px; margin: 0; max-width: 46ch; }

.converter { border-radius: 28px; padding: 22px 20px 20px; display: grid; gap: 18px; }
.conv-label { font-size: 14px; font-weight: 600; color: var(--ink-2); margin: 0 0 6px; display: block; }
.amount-field { display: flex; align-items: baseline; gap: 8px; border-bottom: 1.5px solid var(--line); padding-bottom: 6px; transition: border-color .2s; }
.amount-field:focus-within { border-color: var(--brand); }
.converter .amount-field input[type="number"] {
  flex: 1; border-radius: 0; min-height: 0; box-shadow: none; min-width: 0; border: 0; background: transparent; color: var(--ink); outline: none; padding: 0;
  font: 700 clamp(40px, 11vw, 56px)/1.05 var(--font-display); letter-spacing: -.035em; font-variant-numeric: tabular-nums;
  -moz-appearance: textfield; appearance: textfield;
}
.converter .amount-field input[type="number"]:focus { box-shadow: none; border: 0; }
.amount-field input::-webkit-outer-spin-button, .amount-field input[type="number"]:focus { box-shadow: none; border: 0; }
.amount-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.amount-field .cur { font: 600 22px var(--font-display); color: var(--ink-3); }

.rate-pill { justify-self: start; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2);
  padding: 6px 12px; border-radius: 999px; background: var(--surface-2); }
.rate-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 0 3px var(--brand-soft); }

.receive { display: grid; gap: 2px; }
.receive-value { font-size: clamp(38px, 10.5vw, 56px); font-weight: 800; line-height: 1.05; color: var(--brand); }
.receive-value small { font-size: .42em; font-weight: 700; color: var(--ink-3); letter-spacing: 0; margin-left: 4px; }
.receive-by { margin: 2px 0 0; font-size: 14.5px; color: var(--ink-2); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font: 600 14px var(--font-body); color: var(--ink-2); background: var(--surface-2); border: 1px solid transparent; border-radius: 999px;
  padding: 7px 14px; min-height: 36px; cursor: pointer; transition: transform .15s, background .2s, color .2s; }
.chip:active { transform: scale(.95); }
.chip[aria-pressed="true"] { background: var(--glass-strong); color: var(--ink); border-color: var(--glass-edge); box-shadow: 0 2px 8px -2px rgba(12, 31, 24, .2); }

/* Contrôle segmenté iOS, curseur glissant */
.segmented { --n: 4; position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr); padding: 4px; border-radius: 14px; background: var(--surface-2); border: 0; margin: 0; min-width: 0; }
.segmented legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.seg-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / var(--n)); border-radius: 10px;
  background: var(--glass-strong); box-shadow: inset 0 1px 0 var(--glass-edge), 0 3px 10px -3px rgba(12, 31, 24, .28);
  transform: translateX(calc(100% * var(--i, 0))); transition: transform .35s cubic-bezier(.3, 1.3, .5, 1); }
.segmented label { position: relative; z-index: 1; }
.segmented input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.segmented span { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 2px 4px; font-size: 14px; font-weight: 600; color: var(--ink-2); text-align: center; line-height: 1.15; transition: color .2s; }
.segmented input:checked + span { color: var(--ink); }
.segmented input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); border-radius: 10px; }

.lang { font: 700 13px var(--font-body); color: var(--ink-2); background: var(--surface-2); border: 0; border-radius: 999px; min-width: 44px; height: 36px; padding: 0 12px; cursor: pointer; }
.lang:hover { color: var(--ink); }
.cur-select, .dest-select { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.cur-select { flex: none; padding: 6px 10px; border-radius: 999px; background: var(--surface-2); }
.cur-select select { width: 4.4em; }
.cur-select select, .dest-select select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: var(--ink); cursor: pointer;
  font: 700 18px var(--font-display); padding: 0 20px 0 0; margin: 0; outline: none; max-width: 100%; }
.cur-select .chev-s, .dest-select .chev-s { position: absolute; right: 10px; pointer-events: none; color: var(--ink-3); }
.cur-select:focus-within, .dest-select:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 45%, transparent); }
.dest { display: grid; gap: 6px; }
.dest .conv-label { margin: 0; }
.dest-select { width: 100%; padding: 10px 14px; border-radius: 16px; background: var(--glass-strong); border: 1px solid var(--glass-edge); box-shadow: inset 0 1px 0 var(--glass-edge); }
.dest-select select { flex: 1; min-width: 0; font-size: 17px; padding-right: 26px; text-overflow: ellipsis; }
.dest-select .chev-s { right: 14px; }
.flag { font-size: 18px; line-height: 1; }
.flag.big { font-size: 24px; }
.flag-img { display: block; border-radius: 3px; box-shadow: 0 0 0 1px var(--line); object-fit: cover; }
.flag.big .flag-img { width: 28px; height: 20px; }
.live-note { margin: -4px 4px 12px; font-size: 13.5px; color: var(--ink-2); }
.promises { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.promises li { display: grid; gap: 4px; padding: 14px 16px; border-radius: 20px; background: var(--glass); border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); font-size: 13.5px; color: var(--ink-2); }
.promises strong { font: 700 14.5px var(--font-display); color: var(--ink); letter-spacing: -.01em; }
.badge.promo { background: var(--gold-soft); color: var(--gold); }
.badge.regular { background: var(--brand-soft); color: var(--brand); }
.offer-meta { margin: -6px 0 0; font-size: 12.5px; color: var(--ink-3); }
.offer-meta:empty, .offer-note:empty { display: none; }
.no-link { margin: 0; font-size: 13.5px; color: var(--ink-2); padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }

/* ----- Boutons ----- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 16px var(--font-body);
  border-radius: 999px; padding: 13px 22px; min-height: 50px; cursor: pointer; text-decoration: none; border: 1px solid transparent;
  transition: transform .15s ease, filter .2s, box-shadow .2s; overflow: hidden; }
.btn:active { transform: scale(.97); }
.btn-primary { color: var(--brand-ink); background: linear-gradient(180deg, var(--brand-2), var(--brand));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 0 rgba(0, 0, 0, .12), 0 8px 22px -8px color-mix(in srgb, var(--brand) 70%, transparent); }
.btn-primary::after { content: ""; position: absolute; inset: 1px 1px 50% 1px; border-radius: 999px 999px 40% 40%; background: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0)); pointer-events: none; }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { color: var(--ink); background: var(--glass-strong); border-color: var(--glass-edge); box-shadow: inset 0 1px 0 var(--glass-edge), 0 4px 14px -6px rgba(12, 31, 24, .2); }
.btn-danger { color: var(--danger); background: var(--glass-strong); border-color: var(--glass-edge); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn svg { flex: none; }

/* ----- Résultats ----- */
.results-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; margin: 28px 4px 12px; }
.results-head h2 { font-size: 19px; margin: 0; }
.results-head p { margin: 0; font-size: 13.5px; color: var(--ink-3); }
.offers { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.offer { border-radius: 22px; overflow: hidden; transition: box-shadow .25s; }
.offer.is-best { box-shadow: inset 0 0 0 2px var(--brand), inset 0 1px 0 var(--glass-edge), var(--shadow); }
.offer-row { width: 100%; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 14px 16px; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.avatar { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; font: 700 18px var(--font-display);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 0 rgba(0, 0, 0, .15); }
.offer-id { min-width: 0; }
.offer-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font: 700 16.5px var(--font-display); letter-spacing: -.01em; margin: 0; }
.offer-sub { display: block; margin: 2px 0 0; font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.offer-amt { text-align: right; }
.offer-amt .num { display: block; font-size: 19px; font-weight: 700; }
.offer-amt .delta { display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.offer-amt .delta.best { color: var(--brand); }
.badge { font: 700 11.5px var(--font-body); padding: 3px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); white-space: nowrap; }
.badge.fast { background: var(--gold-soft); color: var(--gold); }
.offer-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s cubic-bezier(.2, .8, .2, 1); }
.offer[data-open="true"] .offer-panel { grid-template-rows: 1fr; }
.offer-panel > div { overflow: hidden; min-height: 0; }
.offer-detail { padding: 0 16px 16px; display: grid; gap: 14px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0; padding: 12px; border-radius: 16px; background: var(--surface-2); }
.facts dt { font-size: 12px; color: var(--ink-3); }
.facts dd { margin: 2px 0 0; font-weight: 700; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.offer-note { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.chev { transition: transform .3s; color: var(--ink-3); }
.offer[data-open="true"] .chev { transform: rotate(180deg); }

.skeleton { height: 72px; border-radius: 22px; background: var(--glass); margin-bottom: 10px; position: relative; overflow: hidden; }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--glass-edge), transparent); transform: translateX(-100%); animation: shine 1.2s infinite; }
@keyframes shine { to { transform: translateX(100%); } }
.empty, .error { padding: 20px; border-radius: 22px; color: var(--ink-2); margin: 0; }
.error { color: var(--danger); }
.disclosure { font-size: 13px; color: var(--ink-3); margin: 22px 4px 0; max-width: 62ch; }

/* ----- Formulaires ----- */
.form-card { padding: 22px 20px; display: grid; gap: 18px; margin: 16px 0 20px; border-radius: 26px; }
.field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > label, .field > legend { font-weight: 600; font-size: 14px; color: var(--ink-2); padding: 0; }
input[type="email"], input[type="text"], input[type="url"], input[type="password"], input[type="number"], select {
  width: 100%; font: inherit; color: var(--ink); background: var(--glass-strong); border: 1px solid var(--glass-edge);
  border-radius: 14px; padding: 12px 14px; min-height: 50px; box-shadow: inset 0 1px 2px var(--glass-shade); transition: border-color .2s, box-shadow .2s;
}
input[type="email"]:focus, input[type="text"]:focus, input[type="url"]:focus, input[type="password"]:focus, input[type="number"]:focus, select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft);
}
.big-input { position: relative; }
.big-input input { font: 700 26px var(--font-display); padding-right: 72px; min-height: 60px; font-variant-numeric: tabular-nums; }
.big-input span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-weight: 600; color: var(--ink-3); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--brand); }
.form-msg { margin: 0; font-size: 14px; font-weight: 600; min-height: 1.2em; }
.form-msg.ok { color: var(--brand); }
.form-msg.err { color: var(--danger); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.unsubscribe { padding: 16px 20px; border-radius: 22px; }
.unsubscribe summary { cursor: pointer; font-weight: 600; color: var(--ink-2); }
.unsubscribe form { display: grid; gap: 12px; margin-top: 16px; }
.ref-rate { margin: 12px 4px 0; color: var(--ink-2); font-weight: 600; }

/* ----- Pages de texte ----- */
.page-title { font-size: clamp(28px, 6.4vw, 38px); line-height: 1.1; margin: 28px 4px 8px; }
.page-lead { margin: 0 4px; color: var(--ink-2); font-size: 17px; max-width: 52ch; }
.prose { padding: 8px 22px 20px; border-radius: 26px; margin-top: 18px; }
.prose h2 { font-size: 18px; margin: 20px 0 6px; }
.prose p, .prose li { color: var(--ink-2); max-width: 64ch; }
.prose ul { padding-left: 20px; }
.legal { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; margin: 16px 0; }
.legal dt { font-weight: 600; }
.legal dd { margin: 0; color: var(--ink-2); min-width: 0; overflow-wrap: anywhere; }
.todo { color: var(--gold); font-style: italic; }

/* ----- Pied de page ----- */
.footer { padding: 20px 4px calc(28px + env(safe-area-inset-bottom, 0px)); font-size: 13.5px; color: var(--ink-3); }
.footer p { margin: 0 0 10px; }
.footer .footer-contact { margin: 0 0 12px; }
.footer .footer-contact a { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--ink-2); }
.footer .footer-contact svg { color: #1FA855; flex: none; }
.footer .footer-contact .num { font-weight: 600; color: var(--ink); white-space: nowrap; }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer a { color: var(--ink-2); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ----- Barre d'onglets mobile (iOS) ----- */
.tabbar { display: none; }
@media (max-width: 640px) {
  :root { --tabbar-h: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .nav { display: none; }
  .tabbar { position: fixed; z-index: 20; left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px));
    bottom: calc(12px + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px; border-radius: 26px; }
  .tabbar a { position: relative; display: grid; justify-items: center; gap: 2px; padding: 7px 4px 6px; border-radius: 20px; text-decoration: none; color: var(--ink-3); font-size: 11.5px; font-weight: 600; transition: color .2s, background .2s; }
  .tabbar a[aria-current="page"] { color: var(--brand); background: var(--glass-strong); box-shadow: inset 0 1px 0 var(--glass-edge); }
  .facts { grid-template-columns: repeat(2, 1fr); row-gap: 12px; }
  .offer-row { grid-template-columns: 40px 1fr auto; gap: 10px; padding: 14px; }
  .avatar { width: 40px; height: 40px; border-radius: 12px; font-size: 16px; }
  .offer-amt .num { font-size: 17px; }
  .offer-name { font-size: 15.5px; }
  .legal { grid-template-columns: 1fr; gap: 2px; }
  .promises { grid-template-columns: 1fr; }
  .bar { gap: 8px; }
  .legal dd { margin-bottom: 10px; }
}
@media (max-width: 380px) { .segmented span { font-size: 12.5px; } .tabbar a { font-size: 10.5px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
}
/* Navigateurs sans flou d'arrière-plan : verre plus opaque pour rester lisible. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .card { background: var(--glass-strong); }
}

/* =====================================================================
   Évolution : assistant, fiabilité, historique, alertes, favoris, profil, partage.
   Même langage que le reste : verre, vert Tauxora, or pour ce qui demande attention.
   ===================================================================== */
.wrap.wide { max-width: 820px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.segmented.two { --n: 2; } .segmented.three { --n: 3; } .segmented.four { --n: 4; }
.dot-badge { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-left: 6px; vertical-align: 2px; box-shadow: 0 0 0 3px var(--gold-soft); }
.tabbar .dot-badge { position: absolute; top: 6px; right: calc(50% - 18px); margin: 0; }

/* Notification interne */
.toast { position: fixed; z-index: 40; left: 50%; transform: translateX(-50%); top: calc(80px + env(safe-area-inset-top, 0px));
  width: min(560px, calc(100% - 32px)); display: flex; align-items: center; gap: 12px; padding: 12px 10px 12px 18px; border-radius: 18px;
  font-size: 14.5px; font-weight: 600; }
.toast:not([hidden]) { animation: drop .35s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes drop { from { opacity: 0; transform: translate(-50%, -12px); } }
.toast span { flex: 1; }
.toast-x { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--ink-2); font: 600 22px/1 var(--font-body); cursor: pointer; }

/* Assistant */
.ask { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px; border-radius: 999px; margin: 0 0 12px; }
.ask-ico { flex: none; color: var(--gold); }
.ask input[type="text"] { flex: 1; min-width: 0; border: 0; background: transparent; box-shadow: none; padding: 10px 0; min-height: 44px; font-size: 15.5px; }
.ask input[type="text"]:focus { box-shadow: none; border: 0; }
.ask:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 40%, transparent), var(--shadow); }
.ask-go { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  color: var(--brand-ink); background: linear-gradient(180deg, var(--brand-2), var(--brand)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform .15s; }
.ask-go:active { transform: scale(.92); }
.answer { border-radius: 24px; padding: 16px 18px; margin: 0 0 14px; display: grid; gap: 10px; font-size: 15px; }
.answer p { margin: 0; }
.answer-line { color: var(--ink); font-weight: 500; }
.answer-ask, .answer-wait { color: var(--ink-2); }
.answer-wait::after { content: ""; display: inline-block; width: 1em; animation: dots 1.2s steps(4) infinite; overflow: hidden; vertical-align: bottom; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.error-text { color: var(--danger); }
.answer-offers { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; counter-reset: ao; }
.answer-offers li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: var(--surface-2); counter-increment: ao; }
.answer-offers li::before { content: counter(ao); font: 700 13px var(--font-display); color: var(--ink-3); width: 1em; }
.ao-name { flex: 1; font-weight: 700; }
.ao-amt { font-weight: 700; }
.answer-notes { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
.answer-notes li { display: flex; gap: 8px; align-items: baseline; }
.answer .pill-btn { justify-self: start; }
.tag { flex: none; font: 700 11px var(--font-body); padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.tag-verified { background: var(--brand-soft); color: var(--brand); }
.tag-indicative, .tag-missing { background: var(--gold-soft); color: var(--gold); }

/* Boutons secondaires compacts */
.pill-btn { display: inline-flex; align-items: center; gap: 6px; font: 600 13.5px var(--font-body); color: var(--ink); background: var(--glass-strong);
  border: 1px solid var(--glass-edge); border-radius: 999px; padding: 7px 14px; min-height: 38px; cursor: pointer; box-shadow: inset 0 1px 0 var(--glass-edge);
  transition: transform .15s, background .2s; text-decoration: none; }
.pill-btn:active { transform: scale(.96); }
.pill-btn[disabled] { opacity: .5; cursor: default; }
.pill-btn.quiet { background: transparent; border-color: transparent; box-shadow: none; color: var(--ink-3); }
.pill-btn.danger { color: var(--danger); }
#fav-btn[aria-pressed="true"] { color: var(--gold); --star-fill: currentColor; }
.head-actions { display: flex; gap: 8px; }
.results-head { align-items: flex-end; }

/* Fiabilité, coûts, indice */
.badge.rel { background: var(--gold-soft); color: var(--gold); }
.costs h3 { font-size: 14px; margin: 0 0 8px; color: var(--ink-2); letter-spacing: 0; }
.cost-list { margin: 0; display: grid; border-radius: 16px; background: var(--surface-2); padding: 4px 14px; }
.cost-list div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.cost-list div:last-child { border-bottom: 0; }
.cost-list dt { color: var(--ink-2); }
.cost-list dd { margin: 0; text-align: right; font-weight: 600; font-family: var(--font-body); letter-spacing: 0; }
.cost-list .muted dd { color: var(--ink-3); font-weight: 500; font-style: italic; }
.cost-list .strong dt, .cost-list .strong dd { color: var(--ink); font-weight: 800; }
.cost-list .neg dd { color: var(--danger); }
.score-why summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.score-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; font-size: 13.5px; }
.score-list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; color: var(--ink-2); }
.meter { grid-column: 1 / -1; height: 5px; border-radius: 99px; background: var(--surface-2); position: relative; overflow: hidden; }
.meter::after { content: ""; position: absolute; inset: 0; width: calc(var(--v) * 100%); border-radius: inherit; background: var(--brand); }
.error { display: grid; gap: 10px; justify-items: start; }
.error p { margin: 0; }

/* Écrans secondaires */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 4px 10px; }
.section-head h2 { font-size: 19px; margin: 0; }
.hint { font-size: 13px; color: var(--ink-3); margin: 12px 4px 18px; max-width: 62ch; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.empty-card { padding: 18px 20px; border-radius: 22px; color: var(--ink-2); font-size: 14.5px; }
.item { display: grid; grid-template-columns: 1fr auto; gap: 10px 14px; padding: 16px 18px; border-radius: 22px; align-items: center; }
.item.reached { box-shadow: inset 0 0 0 2px var(--gold), var(--shadow); }
.item.compact { padding: 0; }
.item-btn { width: 100%; display: grid; gap: 2px; padding: 14px 18px; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 22px; }
.item-main { min-width: 0; }
.corridor { display: flex; align-items: center; gap: 6px; font: 700 16px var(--font-display); letter-spacing: -.01em; min-width: 0; }
.corridor .arrow { color: var(--ink-3); font-weight: 600; }
.corridor { flex-wrap: wrap; }
.corridor-name { margin-left: 4px; min-width: 0; }
.item-sub { margin: 4px 0 0; font-size: 13px; color: var(--ink-3); }
.item-side { display: grid; justify-items: end; gap: 2px; text-align: right; }
.item-rate { font-size: 19px; font-weight: 700; }
.item-unit { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.item-actions { grid-column: 1 / -1; display: flex; gap: 6px; }
.trend { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.trend.up, .hist-change.up { color: var(--brand); }
.trend.down, .hist-change.down { color: var(--danger); }
.progress { width: 96px; height: 5px; border-radius: 99px; background: var(--surface-2); position: relative; overflow: hidden; margin-top: 4px; }
.progress::after { content: ""; position: absolute; inset: 0; width: calc(var(--v) * 100%); background: var(--gold); border-radius: inherit; }

/* Historique */
.hist { border-radius: 28px; padding: 20px; display: grid; gap: 18px; margin-top: 18px; }
.pair-row { display: flex; align-items: center; gap: 8px; }
.pair-select { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 0 0 0 12px; border-radius: 16px;
  background: var(--glass-strong); border: 1px solid var(--glass-edge); }
.pair-select select { border: 0; background: transparent; box-shadow: none; padding-left: 0; min-height: 48px; font-weight: 600; text-overflow: ellipsis; }
.pair-select select:focus { box-shadow: none; }
.pair-select:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 45%, transparent); }
.pair-arrow { color: var(--ink-3); font-weight: 700; }
.swap { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--glass-edge); background: var(--glass-strong); color: var(--ink-2); cursor: pointer; display: grid; place-items: center; transition: transform .3s; }
.swap:active { transform: rotate(180deg); }
.hist-now { display: grid; gap: 2px; }
.hist-now .conv-label { margin: 0; }
.hist-now-value { font-size: clamp(32px, 9vw, 44px); font-weight: 800; color: var(--brand); line-height: 1.1; }
.hist-change { font-size: 14px; font-weight: 700; color: var(--ink-3); }
.chart { min-height: 220px; position: relative; transition: opacity .2s; }
.chart.loading { opacity: .45; }
.chart-box { position: relative; height: 220px; touch-action: pan-y; cursor: crosshair; }
.chart-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart-svg .line { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart-svg .grid { stroke: var(--line); stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
.chart-svg .cross { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 2 3; }
.chart-dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft), 0 0 0 2px #fff inset; pointer-events: none; }
.chart-tip { position: absolute; top: -6px; transform: translate(-50%, -100%); padding: 5px 10px; border-radius: 10px; font: 700 12.5px var(--font-body);
  background: var(--ink); color: var(--bg); white-space: nowrap; pointer-events: none; }
.chart-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.chart-empty { margin: 0; padding: 40px 12px; text-align: center; color: var(--ink-2); font-size: 14.5px; border-radius: 18px; background: var(--surface-2); }
.facts.three { grid-template-columns: repeat(3, 1fr); }
.source-line { margin: 0; font-size: 12.5px; color: var(--ink-3); }

/* Alertes */
.email-fields { display: grid; gap: 14px; }
#alert-form .ref-rate { margin: -6px 0 0; }

/* Profil */
.settings { border-radius: 24px; padding: 6px 18px; margin-top: 18px; display: grid; }
.setting { display: grid; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.setting:last-child { border-bottom: 0; }
.setting.row { grid-template-columns: 1fr auto; align-items: center; }
.setting-label { display: block; font-weight: 700; font-size: 15px; }
.setting-sub { display: block; font-size: 13px; color: var(--ink-3); }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.link-list { border-radius: 24px; margin-top: 14px; display: grid; padding: 4px 0; }
.link-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
.link-list a:last-child { border-bottom: 0; }
.link-list a span[aria-hidden] { color: var(--ink-3); font-size: 22px; line-height: 1; }

/* Partage */
.sheet { border-radius: 28px; padding: 18px; width: min(460px, calc(100% - 24px)); max-height: calc(100dvh - 24px); overflow: auto; color: var(--ink); background: var(--glass-strong); }
.sheet::backdrop { background: rgba(4, 20, 14, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet[open] { animation: rise .35s cubic-bezier(.2, .9, .3, 1.1); }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.sheet-head h2 { font-size: 18px; margin: 0; }
#share-img { width: 100%; height: auto; border-radius: 18px; box-shadow: var(--shadow); background: var(--surface-2); aspect-ratio: 4 / 5; }
.sheet-actions { display: grid; gap: 8px; margin: 14px 0 6px; }

@media (max-width: 640px) {
  .head-actions .pill-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .head-actions .pill-btn { width: 40px; justify-content: center; padding: 0; }
  .item { padding: 14px 16px; }
  .corridor-name { font-size: 15px; }
  .hist { padding: 16px; }
  .toast { top: calc(76px + env(safe-area-inset-top, 0px)); }
}
@media (min-width: 641px) { .head-actions .pill-btn { min-height: 36px; } }
@media (max-width: 520px) {
  .pair-row { flex-direction: column; align-items: stretch; gap: 6px; }
  .pair-row .swap { align-self: center; transform: rotate(90deg); width: 38px; height: 38px; }
  .pair-row .swap:active { transform: rotate(270deg); }
  .pair-arrow { align-self: center; transform: rotate(90deg); line-height: 1; }
  .setting.row { grid-template-columns: 1fr; }
  .row-actions { justify-content: flex-start; }
  .item-side { justify-items: start; text-align: left; grid-column: 1 / -1; grid-row: 2; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
  .item { grid-template-columns: 1fr; }
}

/* ----- Logos, types d'alertes, Tauxora Pro, pages corridors ----- */
.avatar.has-logo { background: #fff !important; box-shadow: inset 0 0 0 1px var(--line); }
.avatar.has-logo img { width: 28px; height: 28px; border-radius: 6px; }
.item-desc { margin: 4px 0 0; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.card-title { font-size: 18px; margin: 0; }
.pro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.add-row { display: flex; gap: 8px; align-items: center; }
.add-row .pair-select { flex: 1; }
.watch-add { padding: 10px; border-radius: 22px; }
.dest-chips { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dest-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 999px; background: var(--glass-strong);
  border: 1px solid var(--glass-edge); font-weight: 600; font-size: 14px; }
.chip-x { width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--ink-2); font: 600 17px/1 var(--font-body); cursor: pointer; }
.table-card { border-radius: 22px; padding: 6px; margin: 14px 0; overflow-x: auto; }
.seo-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.seo-table caption { text-align: left; padding: 10px 12px 4px; font-weight: 700; color: var(--ink-2); }
.seo-table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-3); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.seo-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.seo-table tr:last-child td { border-bottom: 0; }
.seo-table td.num { font-weight: 700; white-space: nowrap; }
.pro-table { min-width: 600px; font-size: 13.5px; }
.pro-table th, .pro-table td { padding: 10px 8px; }
.row-link { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 0; color: var(--brand); font: 700 14px var(--font-body); cursor: pointer; text-align: left; }
.row-link:hover span:last-child { text-decoration: underline; }
.spark { grid-column: 1 / -1; height: 34px; }
.spark svg { width: 100%; height: 100%; display: block; }
.spark path { fill: none; stroke: var(--brand); stroke-width: 2; }
.section-title { font-size: 19px; margin: 28px 4px 10px; }
.corridor-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.corridor-links a { padding: 8px 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-edge); color: var(--ink);
  text-decoration: none; font-weight: 600; font-size: 14px; }
.corridor-links a:hover { background: var(--glass-strong); }
.home-links { margin-top: 26px; }
.home-links .section-title { flex-basis: 100%; margin: 0 4px 4px; }
.corridor-page .btn { margin: 6px 0 18px; }
.corridor-page .bar .pill-btn { margin-left: auto; }
@media (max-width: 520px) { .pro-grid { grid-template-columns: 1fr; } .add-row { flex-wrap: wrap; } .watch-add .pair-arrow { display: none; } }

/* ----- Langues : sélecteur compact, écriture de droite à gauche (arabe) ----- */
select.lang { appearance: none; -webkit-appearance: none; width: auto; min-height: 36px; text-align: center; padding: 0 12px; border: 0; box-shadow: none; }
#plang { border: 0; background: transparent; box-shadow: none; }
[dir="rtl"] body { font-family: "IBM Plex Sans Arabic", "Plus Jakarta Sans", "Segoe UI", Tahoma, sans-serif; }
[dir="rtl"] .num, [dir="rtl"] .big-input input { font-family: "Plus Jakarta Sans", "IBM Plex Sans Arabic", sans-serif; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; }
[dir="rtl"] .offer-row, [dir="rtl"] .seo-table th, [dir="rtl"] .seo-table caption { text-align: right; }
[dir="rtl"] .offer-amt, [dir="rtl"] .item-side { text-align: left; }
[dir="rtl"] .cost-list dd { text-align: left; }
[dir="rtl"] .cur-select .chev-s, [dir="rtl"] .dest-select .chev-s { right: auto; left: 10px; }
[dir="rtl"] .cur-select select, [dir="rtl"] .dest-select select { padding: 0 0 0 20px; }
[dir="rtl"] .dest-select select { padding-left: 26px; }
[dir="rtl"] .seg-thumb { left: auto; right: 4px; transform: translateX(calc(-100% * var(--i, 0))); }
[dir="rtl"] .big-input input { padding-right: 14px; padding-left: 72px; }
[dir="rtl"] .big-input span { right: auto; left: 16px; }
[dir="rtl"] .link-list a span[aria-hidden] { transform: scaleX(-1); }
[dir="rtl"] .corridor .arrow, [dir="rtl"] .pair-arrow { transform: scaleX(-1); }
[dir="rtl"] .num, [dir="rtl"] input[type="number"] { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .receive-value, [dir="rtl"] .hist-now-value { text-align: right; }

/* ---------- Portefeuilles mobiles (Orange Money, MTN MoMo, YMO) ---------- */
.wallet-pick { margin-top: 14px; min-width: 0; max-width: 100%; contain: inline-size; }
.wallet-legend { margin: 0 0 8px; font: 600 13px var(--font-body); color: var(--ink-3); }
.wallet-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wallet-chips::-webkit-scrollbar { display: none; }
.wallet-chip { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 6px; scroll-snap-align: start;
  font: 600 14px var(--font-body); color: var(--ink-2); background: var(--surface-2); border: 1.5px solid transparent; border-radius: 999px; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .15s; }
.wallet-chip:first-child { padding-left: 14px; }
.wallet-chip img { width: 30px; height: 30px; border-radius: 9px; object-fit: cover; flex: none; }
.wallet-chip:active { transform: scale(.96); }
.wallet-chip:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.wallet-chip[aria-pressed="true"] { background: var(--glass-strong); color: var(--ink); border-color: var(--brand); box-shadow: 0 2px 10px -3px rgba(12, 31, 24, .25); }
.offer-wallets { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.offer-wallets[hidden] { display: none; }
.ow-logo { width: 20px; height: 20px; border-radius: 6px; object-fit: cover; box-shadow: 0 0 0 1px var(--glass-edge); }
.ow-logo.is-on { box-shadow: 0 0 0 2px var(--brand); }
@media (prefers-reduced-motion: reduce) { .wallet-chip { transition: none; } }

/* ---------- Pages de référencement ---------- */
.crumbs { margin: 22px 4px 0; font-size: 13px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs + .page-title { margin-top: 10px; }
.seo-table tr.is-hl td { background: var(--brand-soft); }
.seo-table td a { color: var(--ink); font-weight: 600; }
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:first-of-type { border-top: 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); padding: 12px 0; list-style-position: outside; }
.faq summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.faq details p { margin: 0 0 12px; }
.seo-nav { margin-top: 22px; }
.seo-home { margin-top: 8px; }
.seo-home .seo-lead { margin: 0 4px 6px; color: var(--ink-2); }
.seo-home .faq { margin-top: 14px; }
.prose ol { padding-left: 20px; }
.prose ol li { color: var(--ink-2); margin-bottom: 6px; }

/* ---------- Assistant : conversation ---------- */
.ask-extras { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 14px; }
.sugg-row { display: flex; gap: 8px; flex: 1 1 100%; min-width: 0; overflow-x: auto; scrollbar-width: none; contain: inline-size; padding: 2px; margin: -2px; }
.sugg-row::-webkit-scrollbar { display: none; }
.sugg-row[hidden] { display: none; }
.sugg { font: 600 13px var(--font-body); color: var(--ink-2); background: var(--glass); border: 1px solid var(--glass-edge); border-radius: 999px;
  padding: 8px 14px; min-height: 36px; cursor: pointer; white-space: nowrap; flex: none; transition: background .2s, color .2s; }
.sugg:hover { background: var(--glass-strong); color: var(--ink); }
.sugg:focus-visible, .wa-btn:focus-visible, .link-btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.wa-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 8px 14px; border-radius: 999px; background: #1FA855; color: #fff;
  font: 700 13px var(--font-body); text-decoration: none; }
.wa-btn[hidden] { display: none; }
.chat-thread { display: grid; gap: 10px; }
.msg { max-width: 92%; display: grid; gap: 8px; }
.msg p { margin: 0; line-height: 1.5; }
.msg-user { justify-self: end; background: var(--brand); color: var(--brand-ink); padding: 10px 14px; border-radius: 18px 18px 4px 18px; font-weight: 500; }
.msg-assistant { justify-self: start; background: var(--surface-2); padding: 12px 14px; border-radius: 18px 18px 18px 4px; }
.msg-assistant .answer-line.li { padding-left: 14px; position: relative; }
.msg-assistant .answer-line.li::before { content: ""; position: absolute; left: 2px; top: .65em; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.msg-assistant .answer-offers li { background: var(--glass-strong); }
.msg-assistant .pill-btn { justify-self: start; }
.ai-note { font-size: 12px; color: var(--ink-3); }
.chat-bar { display: flex; justify-content: flex-end; }
.link-btn { background: none; border: 0; padding: 6px 4px; font: 600 13px var(--font-body); color: var(--ink-3); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--ink); }
[dir="rtl"] .msg-user { border-radius: 18px 18px 18px 4px; }
[dir="rtl"] .msg-assistant { border-radius: 18px 18px 4px 18px; }

/* ----- La pub (vidéo) : entre les résultats et les engagements ----- */
.story { margin: 26px 0 0; display: grid; grid-template-columns: minmax(0, 250px) 1fr; gap: 26px; align-items: center; padding: 18px; border-radius: 28px; }
.story-media { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 9 / 16; background: #06120E;
  box-shadow: 0 18px 40px -16px rgba(12, 31, 24, .45); }
.story-media video { display: block; width: 100%; height: 100%; object-fit: cover; background: #06120E; }
.story-text { display: grid; gap: 10px; align-content: center; max-width: 46ch; }
.story-kicker { margin: 0; font: 600 13.5px var(--font-body); color: var(--brand); }
.story-text h2 { margin: 0; font: 800 clamp(22px, 3.2vw, 30px)/1.12 var(--font-display); letter-spacing: -.02em; color: var(--ink); }
.story-text p { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.story-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
@media (max-width: 640px) {
  .story { grid-template-columns: 1fr; gap: 16px; padding: 14px; }
  .story-media { width: min(100%, 300px); justify-self: center; }
  .story-text { max-width: none; }
  .story-actions .btn { flex: 1 1 auto; }
}
