/* AfroMode — page publique d'une annonce (/articles/{id}).
   Feuille servie depuis la même origine (compatible avec une CSP « style-src 'self' »), sans JavaScript.
   Couleurs et typographie : tokens du design system v0.1 (piste A Pop urbain). */

@font-face { font-family: "Unbounded"; font-weight: 800; font-display: swap; src: url("fonts/unbounded_extrabold.ttf") format("truetype"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400; font-display: swap; src: url("fonts/plusjakartasans_regular.ttf") format("truetype"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; font-display: swap; src: url("fonts/plusjakartasans_bold.ttf") format("truetype"); }

:root {
  --bg: #FFF8EE; --surface: #FFFFFF; --sunken: #FFE7CF; --ink: #16110D; --muted: #6B5E53;
  --primary: #FF5A1F; --primary-press: #FF7A47; --border: #16110D; --subtle: #E9DFD3; --focus: #2340FF;
  --f-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --f-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #16110D; --surface: #231C17; --sunken: #2E251F; --ink: #FFF8EE; --muted: #C2B4A6; --border: #E9DCCD; --subtle: #4A3E35; --focus: #8FA0FF; }
  .cta { color: #16110D; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0rem/1.55 var(--f-body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 520px; margin: 0 auto; padding: 16px max(16px, env(safe-area-inset-right)) 32px max(16px, env(safe-area-inset-left)); }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0 1.0rem; }
.top img { height: 1.875rem; width: auto; display: block; }
.top .get { font: 700 0.875rem/1 var(--f-body); text-decoration: underline; text-underline-offset: 3px; padding: 14px 0; }

.photo { margin: 0; aspect-ratio: 1 / 1; border: 2px solid var(--border); border-radius: 1.0rem; overflow: hidden; background: var(--sunken); box-shadow: 6px 6px 0 var(--border); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo.empty { display: flex; align-items: center; justify-content: center; }
.photo.empty img { width: 46%; height: auto; object-fit: contain; }

.price { margin: 24px 0 6px; font: 800 clamp(1rem, 14.2vw, 1.875rem)/1.1 var(--f-display); letter-spacing: -0.02em; }
.price .amt, .price .cur { white-space: nowrap; }
h1 { margin: 0 0 0.875rem; font: 700 1.25rem/1.3 var(--f-body); overflow-wrap: anywhere; }
.desc { margin: 0 0 1.375rem; white-space: pre-line; overflow-wrap: anywhere; }

.box { border: 2px solid var(--border); border-radius: 1.0rem; background: var(--surface); padding: 1.0rem; margin: 0 0 18px; }
.box p { margin: 0 0 0.875rem; font-size: 0.9375rem; }
.cta { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 1.25rem; border: 2px solid var(--border); border-radius: 999px; background: var(--primary); color: var(--ink); font: 700 1.0rem/1.2 var(--f-body); text-align: center; text-decoration: none; box-shadow: 3px 3px 0 var(--border); }
.cta:active { background: var(--primary-press); box-shadow: none; transform: translate(3px, 3px); }

.note { margin: 0 0 24px; font-size: 0.8125rem; color: var(--muted); }
.foot { border-top: 1px solid var(--subtle); padding-top: 1.0rem; font-size: 0.8125rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 1.0rem; }

/* Annonce indisponible (même page 404 pour un identifiant inconnu, privé, refusé ou supprimé) */
.gone { text-align: center; padding: 32px 8px 8px; }
.gone img { width: 132px; height: 132px; }
.gone h1 { font: 800 1.375rem/1.25 var(--f-display); letter-spacing: -0.015em; margin: 12px 0 8px; }
.gone p { color: var(--muted); margin: 0 auto 1.375rem; max-width: 34ch; }

@media (min-width: 720px) { .wrap { padding-top: 32px; } .price { font-size: 2.125rem; } }
@media (prefers-reduced-motion: reduce) { .cta:active { transform: none; } }

/* Integration: preserve contrast and reflow at enlarged text. */
:root { --action-ink: #16110D; scrollbar-color: var(--muted) var(--bg); scrollbar-width: auto; }
.top { flex-wrap: wrap; }
.top img { max-width: 100%; }
.price, .gone h1 { overflow-wrap: anywhere; }
.cta { color: var(--action-ink); }
a { cursor: pointer; }
a:hover { text-decoration-thickness: 2px; }
.cta:hover { background: var(--primary-press); }
@media (forced-colors: active) { :root { scrollbar-color: auto; } }

/* Keep the complete amount together; exceptionally long values remain scrollable, never clipped. */
.price .amt { display: inline-block; max-width: 100%; overflow-x: auto; vertical-align: bottom; }

/* Pages légales (/confidentialite, /conditions, /privacy, /terms) */
.legal .lang { margin: 0 0 0.5rem; text-align: right; font-size: 0.875rem; }
.legal .lang a { font-weight: 700; text-underline-offset: 0.1875rem; padding: 0.75rem 0; display: inline-block; }
.legal h1 { margin: 0.25rem 0 0.625rem; font: 800 1.625rem/1.2 var(--f-display); letter-spacing: -0.015em; hyphens: auto; overflow-wrap: break-word; }
.legal .lead { margin: 0 0 0.375rem; font-size: 1.0625rem; }
.legal .updated { margin: 0 0 1.375rem; font-size: 0.875rem; color: var(--muted); }
.legal .toc { border: 0.125rem solid var(--border); border-radius: 1.0rem; background: var(--surface); padding: 1.0rem 1.0rem 0.5rem; margin: 0 0 0.5rem; box-shadow: 0.25rem 0.25rem 0 var(--border); }
.legal .toc h2 { margin: 0 0 0.5rem; font: 700 0.9375rem/1.3 var(--f-body); }
.legal .toc ol { margin: 0; padding-left: 1.375rem; }
.legal .toc li { margin: 0; }
.legal .toc a { display: block; padding: 0.4375rem 0; text-underline-offset: 0.1875rem; }
.legal section h2 { margin: 1.875rem 0 0.5rem; font: 700 1.125rem/1.35 var(--f-body); scroll-margin-top: 1.0rem; }
.legal section p, .legal section li { max-width: 68ch; }
.legal .todo { margin: 0; padding: 0.75rem 0.875rem; border: 0.125rem dashed var(--subtle); border-radius: 0.75rem; color: var(--muted); font-size: 0.875rem; }
.legal .contact { margin-top: 1.875rem; }
.legal .contact p { margin: 0; overflow-wrap: anywhere; }
.legal .contact a { font-weight: 700; }
.legal .up { margin: 0 0 1.25rem; font-size: 0.875rem; }
.foot a { text-underline-offset: 0.1875rem; }

