/* Sharlinks · mise en page des pages publiques. Composants : ui.css ; règles : docs/v3/DESIGN.md */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
main { display: block; }
.skip { position: absolute; left: 12px; top: -60px; z-index: var(--z-toast); padding: 10px 14px; border-radius: var(--r-sm); background: var(--strong); color: var(--on-strong); font-weight: 800; }
.skip:focus { top: 12px; }
.demo-bar { padding: 8px var(--gutter); background: var(--highlight); border-bottom: 1px dashed var(--line); font-size: 13px; font-weight: 700; text-align: center; }
.only-desk, .only-desk-block { display: none !important; }
@media (min-width: 1024px) {
  .only-desk { display: inline-flex !important; }
  .only-desk-block { display: block !important; }
  .only-mob { display: none !important; }
}
.more { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); font-weight: 800; text-decoration: none; }
.more svg { width: 20px; height: 20px; }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- En-tête ---------- */
.site-top { gap: var(--s-3); }
.site-nav { display: none; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.top-actions .avatar { width: 40px; height: 40px; font-size: 14px; }
.top-me { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; }
@media (min-width: 1024px) {
  .site-top { min-height: 96px; }
  .site-nav { display: flex; gap: 34px; font-weight: 700; }
  .site-nav a { text-decoration: none; padding: 6px 0; }
  .site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline 3px var(--accent); text-underline-offset: 8px; }
}

/* ---------- Hero créateurs ---------- */
.hero { padding-top: 6px; }
.pill { min-height: 34px; margin: 2px 0 16px; gap: 9px; white-space: normal; padding-block: 6px; line-height: 1.25; }
.hero h1 { margin-bottom: 16px; font-size: clamp(44px, 13.2vw, 58px); }
.hero .lead { font-size: 18px; }
.hero-cta { margin-top: 22px; }
.chips-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 4px; margin-top: 14px; }
.chips-row .chips { list-style: none; }
.chips-row .chip { font-size: 13.5px; padding: 0 11px 0 10px; gap: 5px; }
.hero-char { width: 80px; flex: none; margin: -14px -6px -6px 0; }
.stats { display: grid; grid-template-columns: 1fr 1fr; margin-top: 22px; border-top: 1px solid var(--line); }
.stats > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.stats > div:nth-child(odd) { padding-right: 12px; border-right: 1px solid var(--line); }
.stats > div:nth-child(even) { padding-left: 16px; }
.stats b { display: block; font: 900 27px/1.05 var(--font-display); letter-spacing: -.05em; }
.stats span { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.3; color: var(--muted); }
.stack { display: none; }
.social { align-items: center; gap: 12px; font-size: 14.5px; font-weight: 600; color: var(--muted); line-height: 1.3; }
.social b { display: block; color: var(--text); font-weight: 800; }
@media (max-width: 359px) { .hero-char { display: none; } }

@media (min-width: 1024px) {
  .hero { padding-top: 26px; }
  .hero-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); gap: 24px; align-items: start; }
  .pill { margin: 20px 0 22px; font-size: 15px; }
  .hero h1 { font-size: clamp(88px, 8.2vw, 118px); margin-bottom: 24px; }
  .hero h1 .h1-a { display: block; max-width: 4.4em; }
  .hero .lead { font-size: 22px; max-width: 27em; }
  .hero-cta { display: flex; align-items: center; gap: 26px; margin-top: 32px; }
  .chips-row { margin-top: 24px; }
  .chips-row .chip { font-size: 15px; padding: 0 14px; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stats > div, .stats > div:nth-child(odd), .stats > div:nth-child(even) { padding: 24px 0 26px; border-bottom: 0; border-right: 1px solid var(--line); }
  .stats > div + div { padding-left: 28px; }
  .stats > div:last-child { border-right: 0; }
  .stats b { font-size: 42px; }
  .stats span { font-size: 16px; margin-top: 6px; }
}

/* Pile de cartes UI (desktop) */
@media (min-width: 1024px) {
  .stack { display: block; position: relative; height: 640px; margin-top: 4px; }
  .s-card { position: absolute; background: var(--surface); border: 1.5px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-float); }
  .s-gains { right: 6px; top: 0; width: 330px; padding: 22px 24px 20px; transform: rotate(2deg); }
  .s-lbl { font-size: 15px; font-weight: 700; color: var(--muted); }
  .s-amt { margin: 6px 0 14px; font: 900 66px/1 var(--font-display); letter-spacing: -.06em; }
  .s-gains small { display: block; margin-top: 12px; font-size: 13px; color: var(--muted); }
  .s-link {
    position: absolute; left: 0; top: 84px; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 11px 18px;
    background: var(--yellow); color: var(--black); border: 2.5px solid var(--black); border-radius: var(--r-pill);
    box-shadow: 4px 4px 0 var(--black); font-weight: 900; font-size: 17px; letter-spacing: -.02em; transform: rotate(-3deg); white-space: nowrap;
  }
  .s-link svg { width: 18px; height: 18px; }
  .s-rank { left: 4px; top: 214px; z-index: 2; width: 330px; padding: 18px 18px 0; transform: rotate(-2deg); overflow: hidden; }
  .s-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; font-size: 16px; }
  .s-head span { font-weight: 800; font-size: 14px; color: var(--muted); }
  .s-row { display: grid; grid-template-columns: 22px 32px 1fr auto; align-items: center; gap: 8px; padding: 9px 0; border-top: 1px solid var(--line); font-weight: 800; font-size: 15px; }
  .s-row .n { color: var(--muted); }
  .s-row .avatar { width: 32px; height: 32px; font-size: 11px; }
  .s-row.is-me { margin: 0 -18px; padding: 9px 18px; background: var(--highlight); }
  .s-camp { right: 0; top: 482px; z-index: 2; display: flex; align-items: center; gap: 14px; width: 384px; padding: 16px 18px; background: var(--inverse); color: var(--white); border-color: var(--inverse); }
  .s-camp .app-icon { --size: 44px; }
  .s-camp b { display: block; font-size: 19px; font-weight: 900; letter-spacing: -.03em; }
  .s-camp small { display: block; margin-top: 2px; font-size: 14px; color: var(--gray-400); }
  .s-camp .badge { margin-left: auto; }
  .s-selfie { position: absolute; right: -4px; top: 214px; z-index: 1; width: 205px; }
  .s-winner { position: absolute; left: 66px; top: 452px; z-index: 1; width: 128px; display: grid; justify-items: center; }
  .s-step { display: grid; place-items: center; width: 66px; height: 42px; margin-top: -6px; background: var(--strong); color: var(--on-strong); box-shadow: inset 0 4px 0 var(--yellow); font: 900 26px/1 var(--font-display); }
  .s-note { position: absolute; left: 236px; top: 580px; font-size: 30px; transform: rotate(-4deg); white-space: nowrap; }
}

/* ---------- Blocs ---------- */
.block { padding-top: 30px; }
.block > .eyebrow { margin-bottom: 12px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; list-style: none; }
.step { padding: 12px 10px 13px; border-radius: 18px; background: var(--surface-2); }
.step em { display: block; font-style: normal; font-weight: 800; font-size: 13px; color: var(--muted); }
.step strong { display: block; margin: 4px 0 3px; font: 900 clamp(15px, 4.6vw, 18px)/1.05 var(--font-display); letter-spacing: -.045em; }
.step span { display: block; font-size: 12.5px; line-height: 1.3; color: var(--muted); }
@media (min-width: 1024px) {
  .block { padding-top: 96px; }
  .block > .eyebrow { margin-bottom: 18px; }
  .steps { gap: 20px; }
  .step { padding: 28px 26px; border-radius: 26px; }
  .step em { font-size: 15px; }
  .step strong { margin: 10px 0 8px; font-size: 34px; }
  .step span { font-size: 17px; }
}

.rank-block h2 { margin-bottom: 12px; font-size: clamp(40px, 11.4vw, 50px); }
.rank-block .lead { font-size: 16.5px; }
.chart { position: relative; margin-top: 18px; padding: 120px 14px 16px; border-radius: var(--r-xl); background: var(--surface-2); }
.bars { height: 210px; }
.bars > div { height: 100%; grid-template-rows: 1fr auto; align-items: end; }
.bars i { position: relative; align-items: flex-start; font-size: 24px; }
.bars i small { margin-left: 1px; font-size: .6em; color: inherit; font-weight: 900; }
.bars > div > small { min-height: 3.75em; }
.chart-winner { position: absolute; left: -16px; right: -16px; bottom: 100%; margin-bottom: -4px; }
@media (min-width: 1024px) {
  .rank-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
  .rank-block h2 { font-size: 76px; }
  .rank-block .lead { font-size: 21px; margin-bottom: 18px; }
  .chart { margin-top: 0; padding: 40px 30px 26px; }
  .rank-block .chart-winner { display: none; }
  .bars { height: 340px; }
  .bars i { font-size: 38px; }
}

/* Campagnes (landing) */
.camps { padding-bottom: 28px; }
.camp-list { display: grid; gap: 12px; }
.camp-row { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 16px; }
.camp-row .app-icon { --size: 64px; font-size: 26px; }
.camp-head h3 { font: 900 24px/1 var(--font-display); letter-spacing: -.045em; }
.camp-head p { margin-top: 5px; font-size: 15px; line-height: 1.35; color: var(--muted); }
.camp-head .camp-by { font-size: 13px; }
.camp-row .chips { list-style: none; grid-column: 1 / -1; gap: 6px; }
.camp-row .chips .chip { min-height: 30px; font-size: 13.5px; }
.camp-row > .badge { grid-column: 1 / -1; justify-self: start; font-size: 15px; padding: 6px 12px; }
.camp-row .camp-go { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding-top: 13px; border-top: 1px solid var(--line); font-weight: 800; }
.camp-go svg { width: 22px; height: 22px; }
.stretch { text-decoration: none; }
.stretch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.camp-row:hover { border-color: var(--text); }
.camps-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 12px; margin-bottom: 6px; }
.camps-head .more { font-size: 14px; }
.camps-head .more svg { width: 18px; height: 18px; }
@media (min-width: 1024px) {
  .camps { padding-bottom: 96px; }
  .camp-row { grid-template-columns: auto minmax(0, 1fr) auto auto auto; gap: 24px; padding: 24px 28px; }
  .camp-row .chips, .camp-row > .badge, .camp-row .camp-go { grid-column: auto; }
  .camp-row .camp-go { padding: 0; border: 0; gap: 12px; }
  .camp-head h3 { font-size: 32px; }
  .camp-head p { font-size: 17px; }
}

/* ---------- Pied de page et FAQ ---------- */
.site-foot { margin-top: 8px; padding: 30px 0 calc(120px + var(--safe-bottom)); background: var(--surface-2); }
.site-foot .faq { margin-bottom: 26px; }
.site-foot .faq .title { margin-bottom: 10px; font-size: 26px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 14px; font-weight: 600; color: var(--muted); }
.foot-row .logo { margin-right: auto; font-size: 18px; color: var(--text); }
.foot-row .logo::before { width: 20px; height: 20px; border-radius: 6px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 18px; }
.foot-links a, .lang-switch a { display: inline-flex; align-items: center; min-height: var(--tap); text-decoration: none; }
.foot-links a:hover { color: var(--text); text-decoration: underline; }
.lang-switch { display: flex; gap: 4px; padding: 3px; border-radius: var(--r-pill); background: var(--surface-3); }
.lang-switch a { min-width: 44px; justify-content: center; border-radius: var(--r-pill); font-weight: 800; font-size: 13px; }
.lang-switch [aria-current] { background: var(--surface); color: var(--text); }
.foot-note { margin-top: 10px; font-size: 13px; color: var(--muted); }
.brands-block { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; padding: 14px 18px; border: 1.5px solid var(--line); border-radius: var(--r-lg); background: var(--surface); font-size: 15px; color: var(--muted); text-decoration: none; }
.brands-block b { color: var(--text); font-weight: 900; }
.brands-block svg { flex: none; width: 22px; height: 22px; color: var(--text); }
.brands-block:hover { border-color: var(--text); }
@media (min-width: 1024px) {
  .site-foot { padding: 56px 0 48px; }
  .site-foot .faq { max-width: 820px; margin-bottom: 40px; }
  .site-foot .faq .title { font-size: 36px; }
}

/* ---------- Feuille d'inscription (D) ---------- */
.sheet-x { position: absolute; top: 18px; right: 16px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); }
.sheet-x svg { width: 20px; height: 20px; }
.sheet-title { padding-right: 52px; font-size: clamp(32px, 9.5vw, 38px); line-height: .95; }
.sheet-title:focus { outline: none; }
.sheet-sub { margin: 10px 0 16px; }
.sheet-alert { margin-bottom: 12px; padding: 10px 14px; border-radius: var(--r-md); background: var(--danger-bg); color: var(--danger); font-weight: 700; font-size: 14px; }
.sheet-alert.is-info { background: var(--highlight); color: var(--text); }
.sso { display: grid; gap: 10px; }
.btn-sso { justify-content: center; gap: 12px; }
.sheet-terms { margin-top: 10px; font-size: 13px; color: var(--muted); text-align: center; }
.sheet-terms a { color: var(--text); font-weight: 700; }
.mail-open { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: var(--tap); margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.mail-open:hover { color: var(--text); }
.mail-open svg { width: 18px; height: 18px; }
.btn-sso .logo { width: 22px; height: 22px; }
.sheet-soon { display: grid; gap: 6px; margin: 4px 0 8px; padding: 18px; border-radius: var(--r-md); background: var(--highlight); }
.mail-form { margin-top: 12px; }
.input-row.is-solid { border: 1.5px solid var(--line); border-radius: var(--r-md); }
.input-row.is-solid:focus-within { border-color: var(--text); box-shadow: 0 0 0 4px rgb(255 230 0 / .55); }
.input-row.is-solid .input:focus { box-shadow: none; }
.input-row .btn { flex: none; }
.mail-done { margin-top: 10px; font-weight: 700; }
.mail-done a { word-break: break-all; }
.sheet-sim { font-weight: 700; color: var(--text); }
.sheet-note { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }
.sheet-demo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.sheet-demo .eyebrow { width: 100%; font-size: 12px; }
.signup[data-role="editor"] [data-provider="apple"], .signup[data-role="editor"] [data-provider="tiktok"], .signup[data-role="editor"] [data-provider="instagram"] { display: none; }

/* ---------- En-têtes de page ---------- */
.page-head { padding-top: 18px; padding-bottom: 8px; }
.page-head h1 { font-size: clamp(42px, 11vw, 88px); margin-bottom: 10px; }
.sort-note { margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.sort-note a { color: var(--text); font-weight: 700; }
@media (min-width: 1024px) { .page-head { padding-top: 36px; padding-bottom: 12px; } }

/* ---------- Catalogue ---------- */
.catalog { padding-bottom: 64px; }
.filters { display: flex; gap: 8px; margin: 18px calc(var(--gutter) * -1) 18px; padding: 2px var(--gutter); overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters .chip { flex: none; }
.grid-cards { display: grid; gap: 12px; }
@media (min-width: 640px) { .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } .filters { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; } }
.app-card { position: relative; grid-template-columns: auto minmax(0, 1fr); padding: 18px; }
.app-card h3 { overflow-wrap: anywhere; }
.app-card h3 a { text-decoration: none; }
.app-card .by { margin-top: 2px; font-size: 13px; color: var(--muted); }
.app-card .share-badge { grid-column: 1 / -1; justify-self: start; }
.app-card .chips { list-style: none; }
.app-card .flag { grid-column: 1 / -1; font-size: 13px; font-weight: 700; color: var(--muted); }
.app-card .foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.app-card .foot .btn { position: relative; z-index: 1; }
.app-card .foot .btn-dark { min-height: 44px; font-size: 15px; }
.app-card:hover { border-color: var(--text); }
.app-card.is-example { border-style: dashed; background: var(--surface-2); }
.badge-demo.is-name { font-size: 14px; letter-spacing: .04em; vertical-align: 3px; margin-left: 6px; }
.badge-sponsored { vertical-align: 3px; margin-left: 6px; }
.status-line { font-size: 13px; font-weight: 700; color: var(--danger); }
.examples { margin-top: 48px; padding-top: 28px; border-top: 2px dashed var(--line); }
.examples h2 { font-size: 26px; }
.examples > p { margin: 6px 0 18px; color: var(--muted); max-width: 40em; }
.is-skel { gap: 12px; }
.sk-icon { width: 56px; height: 56px; border-radius: 15px; }
.sk-line { height: 22px; width: 60%; }
.sk-text { grid-column: 1 / -1; height: 16px; }
.sk-chips { grid-column: 1 / -1; height: 28px; width: 70%; }
.empty .btn { margin-top: 8px; }

/* ---------- Page app (G) ---------- */
.app-page { padding-bottom: 64px; }
.app-page[aria-busy], .catalog[aria-busy] { min-height: 100vh; }
.app-skel { display: grid; gap: 16px; padding-top: 16px; }
.sk-back { width: 120px; height: 20px; }
.sk-big-icon { width: 96px; height: 96px; border-radius: 26px; }
.sk-h1 { width: 70%; height: 52px; }
.sk-earn { height: 180px; border-radius: var(--r-xl); }
.back { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); margin-top: 4px; font-weight: 800; color: var(--muted); text-decoration: none; }
.back svg { width: 20px; height: 20px; transform: scaleX(-1); }
.example-banner { margin: 8px 0 12px; padding: 12px 16px; border: 2px dashed var(--text); border-radius: var(--r-md); background: var(--highlight); font-weight: 800; }
.app-notice { margin: 8px 0 12px; padding: 12px 16px; border-radius: var(--r-md); background: var(--surface-2); font-weight: 700; }
.app-notice.is-warn { background: var(--danger-bg); color: var(--danger); }
.app-id { display: flex; align-items: center; gap: 16px; margin-top: 6px; }
.app-id .app-icon { --size: 76px; font-size: 32px; }
.app-id h1 { font-size: clamp(44px, 12vw, 84px); overflow-wrap: anywhere; }
.app-id p { margin-top: 6px; color: var(--muted); font-weight: 600; }
.app-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.app-page .chips { list-style: none; margin-top: 14px; }
.platform-note { margin-top: 10px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.earn { margin-top: 18px; padding: 22px; border-radius: var(--r-xl); background: var(--inverse); color: var(--white); }
.earn .eyebrow { color: var(--gray-400); }
.earn-big { margin: 8px 0 6px; font: 900 clamp(48px, 15vw, 72px)/.95 var(--font-display); letter-spacing: -.055em; color: var(--yellow); white-space: nowrap; }
.earn-sub { font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.earn-spark { display: flex; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--gray-700); font-size: 14.5px; color: var(--gray-400); }
.earn-spark svg { width: 18px; height: 18px; flex: none; color: var(--yellow); margin-top: 2px; }
.app-cta { display: grid; gap: 8px; margin-top: 16px; justify-items: center; }
.app-cta .btn-primary { width: 100%; font-size: 22px; }
.app-cta p { font-size: 13.5px; color: var(--muted); text-align: center; }
.app-section { margin-top: 30px; }
.app-section > .eyebrow { margin-bottom: 12px; }
.brief { position: relative; padding: 20px 22px 26px; border: 2.5px solid var(--text); border-radius: var(--r-xl); background: var(--highlight); font: 900 clamp(22px, 6.2vw, 30px)/1.08 var(--font-display); letter-spacing: -.04em; }
.brief .hand { position: absolute; right: 14px; bottom: -18px; padding: 2px 14px; border: 2.5px solid var(--black); border-radius: var(--r-pill); background: var(--yellow); color: var(--black); font-size: 22px; transform: rotate(-4deg); }
.rules { display: grid; gap: 8px; list-style: none; }
.rules li { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 10px 16px; border-radius: var(--r-md); background: var(--surface-2); font-weight: 700; }
.rules .ico { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border: 2px solid var(--text); border-radius: 50%; font-size: 12px; font-weight: 900; }
.rules .ico svg { width: 16px; height: 16px; }
.stores { display: grid; gap: 8px; list-style: none; }
.stores a, .stores li > div { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface-2); text-decoration: none; }
.stores .st-ico { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--black); color: var(--white); }
.stores b { display: block; }
.stores small { color: var(--muted); font-size: 13.5px; }
.shots { display: flex; gap: 10px; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px; overflow-x: auto; scroll-snap-type: x mandatory; list-style: none; }
.shots li { flex: none; width: 46%; max-width: 200px; scroll-snap-align: start; }
.shots img { width: 100%; height: auto; aspect-ratio: 9 / 19.5; object-fit: cover; border-radius: var(--r-lg); border: 1.5px solid var(--line); background: var(--surface-2); }
.about p { color: var(--muted); max-width: 44em; }
.about summary { min-height: var(--tap); display: flex; align-items: center; font-weight: 800; cursor: pointer; }
.publisher { font-size: 14px; color: var(--muted); }
.publisher b { color: var(--text); }
.report-link { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); font-size: 14px; font-weight: 700; color: var(--muted); }
.report-link svg { width: 16px; height: 16px; }
.via { display: grid; gap: 10px; margin: 8px 0 4px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface-2); }
.via p { font-weight: 800; }
.via .btns { display: flex; flex-wrap: wrap; gap: 8px; }
.report-form { display: grid; gap: 14px; margin-top: 14px; }
.report .title { padding-right: 52px; }
@media (min-width: 1024px) {
  .app-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; column-gap: 56px; align-items: start; }
  .app-aside { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 24px; }
  .app-head, .app-body { grid-column: 1; }
  .app-id .app-icon { --size: 96px; font-size: 40px; }
  .earn { margin-top: 0; padding: 28px; }
  .shots { margin-inline: 0; padding-inline: 0; }
}

/* ---------- Classement public ---------- */
.ranking-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding-bottom: 64px; }
.ranking-board { padding: 8px 20px; }
.ranking-board .rank li { grid-template-columns: 32px auto minmax(0, 1fr); min-height: 56px; }
.rank .badge { font-size: 12px; }
.rank .handle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranking-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; padding: 12px 0; font-size: 13.5px; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--line); }
.ranking-meta .badge-demo { font-size: 11px; }
.rank .gap { justify-content: center; color: var(--muted); grid-template-columns: 1fr; min-height: 32px; }
.sk-n { width: 20px; height: 16px; }
.sk-av { width: 36px; height: 36px; border-radius: 50%; }
.sk-handle { width: 50%; height: 16px; }
.ranking-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-content: start; }
.ranking-side .chart { margin-top: 0; padding-top: 24px; }
.ranking-side .bars { height: 190px; }
.podium-art { max-width: 300px; justify-self: center; width: 100%; }
.ranking-cta { display: grid; gap: 8px; justify-items: start; }
.ranking-next { margin: 12px 0; padding: 12px 14px; border-radius: var(--r-md); background: var(--highlight); font-weight: 700; }
@media (min-width: 1024px) {
  .ranking-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px 48px; align-items: start; }
  .ranking-board { grid-column: 1; grid-row: 1 / span 2; }
  .podium-art, .ranking-side { grid-column: 2; }
  .ranking-board { padding: 12px 28px; }
}

/* ---------- Landing éditeurs ---------- */
.ed-hero { display: grid; gap: 28px; padding-top: 10px; }
.ed-hero h1 { margin: 10px 0 16px; font-size: clamp(38px, 10.5vw, 80px); }
.ed-hero .chips { list-style: none; margin-top: 16px; }
.ed-hero .btn-primary svg, .ed-example .btn-primary svg { width: 24px; height: 24px; }
.ed-panel { padding: 22px; border-radius: var(--r-xl); }
.ed-panel-head { display: flex; justify-content: space-between; align-items: center; font-weight: 800; color: var(--gray-400); }
.ed-panel .badge-demo { color: var(--gray-400); }
.ed-big { margin-top: 10px; font: 900 clamp(48px, 13vw, 72px)/1 var(--font-display); letter-spacing: -.055em; color: var(--yellow); }
.ed-cap { font-weight: 700; color: var(--gray-400); }
.ed-line { width: 100%; height: 70px; margin: 16px 0; }
.ed-line .area { fill: var(--yellow); opacity: .18; }
.ed-line .line { fill: none; stroke: var(--yellow); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.ed-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ed-kpis p { padding: 10px 12px; border-radius: var(--r-md); background: rgb(255 255 255 / .07); }
.ed-kpis b { display: block; font: 900 22px/1.1 var(--font-display); letter-spacing: -.04em; }
.ed-kpis span { font-size: 12.5px; color: var(--gray-400); }
.ed-spark { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 12px 14px; border-radius: var(--r-md); border: 1.5px dashed var(--gray-700); font-weight: 700; }
.ed-spark svg { width: 18px; height: 18px; color: var(--yellow); }
.ed-spark b { margin-left: auto; padding: 2px 10px; border-radius: var(--r-pill); background: var(--yellow); color: var(--black); }
.pricing-head h2 { font-size: clamp(40px, 10vw, 72px); margin-bottom: 8px; }
.prices { display: grid; gap: 12px; margin-top: 22px; list-style: none; }
.price { padding: 20px; border-radius: var(--r-xl); border: 1.5px solid var(--line); }
.price-v { margin: 8px 0 6px; font: 900 26px/1.1 var(--font-display); letter-spacing: -.04em; }
.price .muted { font-size: 14.5px; }
.ed-example { display: grid; gap: 14px; margin-top: 12px; padding: 24px; border-radius: var(--r-xl); }
.ed-example .eyebrow { color: var(--gray-400); }
.ed-example-text { font: 800 20px/1.3 var(--font-display); letter-spacing: -.02em; max-width: 34em; }
.ed-example-text b { color: var(--yellow); }
.pricing .foot-note { margin-bottom: 40px; }
@media (min-width: 640px) { .prices { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .ed-hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; padding-top: 30px; }
  .ed-hero .lead { font-size: 21px; }
  .ed-hero .hero-cta { margin-top: 30px; }
  .ed-panel { padding: 30px; transform: rotate(1.5deg); box-shadow: var(--shadow-float); }
  .prices { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .ed-example { grid-template-columns: 1fr auto; align-items: center; padding: 32px 36px; }
  .ed-example .eyebrow { grid-column: 1 / -1; }
}

/* ---------- Légal, contact, 404 ---------- */
.legal-page { padding-bottom: 64px; }
.legal-notice { color: var(--muted); font-weight: 600; }
.legal-grid { display: grid; gap: 24px; margin-top: 16px; }
.legal-toc li.is-sub { padding-left: 12px; }
.legal-toc ol { list-style: none; display: grid; gap: 2px; margin-top: 8px; font-size: 14px; }
.legal-toc a { display: block; padding: 6px 0; color: var(--muted); text-decoration: none; }
.legal-toc a:hover { color: var(--text); }
.prose { max-width: 72ch; min-width: 0; font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.prose h2 { margin: 40px 0 12px; font: 900 30px/1.05 var(--font-display); letter-spacing: -.035em; scroll-margin-top: 16px; }
.prose h3 { margin: 28px 0 8px; font: 900 21px/1.15 var(--font-display); letter-spacing: -.02em; scroll-margin-top: 16px; }
.prose h4, .prose h5 { margin: 20px 0 6px; font-size: 17px; font-weight: 800; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose .table-scroll { margin-bottom: 14px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.prose blockquote { padding: 12px 16px; border-left: 4px solid var(--accent); background: var(--surface-2); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--muted); }
.prose mark.todo { padding: 0 4px; border-radius: 4px; background: var(--highlight); color: var(--text); font-size: .92em; }
.prose hr { margin: 32px 0; border: 0; border-top: 1px solid var(--line); }
.prose a { font-weight: 700; }
.table-scroll { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
@media (min-width: 1024px) {
  .legal-grid { grid-template-columns: 260px minmax(0, 1fr); gap: 56px; }
  .legal-grid.is-single { grid-template-columns: minmax(0, 1fr); }
  .legal-toc { position: sticky; top: 24px; align-self: start; max-height: calc(100vh - 48px); overflow: auto; }
}
.contact-page { padding-bottom: 64px; }
.brands-page { padding-bottom: 64px; }
.brands-page .mark { white-space: normal; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.brands-form { display: grid; gap: 16px; max-width: 560px; margin-top: 18px; padding: 22px; }
.brands-form textarea { min-height: 112px; resize: vertical; }
.brands-form .error { font-size: 14px; font-weight: 700; color: var(--danger); }
.brands-done { padding: 14px 16px; border-radius: var(--r-md); background: var(--success-bg); color: var(--success); font-weight: 800; }
.brands-done:focus { outline: none; }
.brands-form .hint { font-size: 13px; color: var(--muted); }
.brands-form .hint a { color: var(--text); font-weight: 700; }
@media (min-width: 1024px) { .brands-form { padding: 32px; } }
.contact-mail { display: flex; align-items: center; gap: 16px; margin: 18px 0; padding: 20px; border: 2.5px solid var(--text); border-radius: var(--r-xl); background: var(--highlight); font: 900 clamp(20px, 5.4vw, 30px)/1.1 var(--font-display); letter-spacing: -.03em; text-decoration: none; overflow-wrap: anywhere; }
.contact-mail svg { width: 32px; height: 32px; flex: none; }
.contact-mail small { display: block; font: 700 13px var(--font-text); letter-spacing: 0; color: var(--muted); }
.contact-grid { display: grid; gap: 12px; }
.contact-grid .card { display: grid; gap: 8px; padding: 22px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.nf { padding: 40px var(--gutter) 80px; }
.nf-code { font-size: clamp(96px, 30vw, 220px); color: var(--surface-3); line-height: .8; }
.nf h1 { font-size: clamp(36px, 9vw, 72px); margin: 8px 0 12px; }
.nf-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.nf-links svg { width: 20px; height: 20px; }

/* ---------- Petits écrans (320 px) : rien ne déborde ---------- */
.chart { overflow: clip; }
.app-card .foot .btn, .app-cta .btn-primary { white-space: normal; text-align: center; line-height: 1.1; }
.ranking-meta .badge-demo { white-space: normal; }
.ed-hero .mark { white-space: normal; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

.app-icon { font-size: calc(var(--size) * .42); }
.app-card.is-example .chip { background: var(--surface); }
.btn-primary.is-off { opacity: 1; background: var(--surface-2); color: var(--muted); border: 2px dashed var(--gray-400); box-shadow: none; font-size: 18px; }
.app-badges .badge-demo.is-name { margin-left: 0; font-size: 18px; padding: 4px 12px; }
@media (max-width: 639px) { .ed-steps { grid-template-columns: 1fr; } }

/* Landing mobile : 4 blocs dans 2,5 hauteurs d'écran, barres de Safari comprises (brief § 13) */
@media (max-width: 1023px) {
  .block { padding-top: 20px; }
  .chart { padding-top: 88px; }
  .rank-block .bars { height: 168px; }
  /* Hauteur bornée quel que soit le contenu : titre sur 1 ligne, accroche sur 2,
     pas de chips (elles sont sur la fiche). */
  .camp-row { gap: 4px 14px; padding: 14px; }
  .camp-row .chips { display: none; }
  .camp-row > .badge { grid-column: 2; }
  .camp-head { min-width: 0; }
  .camp-head h3 { display: flex; align-items: center; gap: 8px; min-width: 0; }
  .camp-head h3 a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .camp-head h3 .badge { flex: none; }
  .camp-head p:not(.camp-by) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .camp-row .camp-go { display: none; }
  .camp-head .camp-by { margin-top: 2px; }
  .camps { padding-bottom: 20px; }
  .camp-list > :nth-child(n + 2) { display: none; }
  .pill { margin-bottom: 12px; }
  .hero h1 { margin-bottom: 12px; }
  .hero-cta { margin-top: 18px; }
  .stats { margin-top: 16px; }
  .stats > div { padding-block: 10px; }
  .rank-block h2 { margin-bottom: 8px; }
}
.camps-head .more { min-height: 32px; }
