/* 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; }
}

/* ---------- En-tête : bascule créateur / annonceur ---------- */
.site-top .top-actions { gap: 5px; }
.top-actions .btn-sm { min-height: 40px; padding: 0 10px; font-size: 13.5px; }
@media (max-width: 389px) { .site-top .logo { font-size: 20px; gap: 8px; } .site-top .logo::before { width: 22px; height: 22px; border-radius: 7px; } }
@media (max-width: 359px) { .top-switch { display: none; } }
.top-switch.is-creator { background: var(--yellow); color: var(--black); border: 2px solid var(--black); }
.top-auth { display: contents; }

/* ---------- Home créateurs : un écran mobile (brief Sharlinks § 4, § 8) ---------- */
.hero { padding-top: 4px; }
.hero-title { position: relative; }
.hero h1 { font-size: clamp(40px, 12vw, 56px); line-height: .95; }
.hero h1 .h1-a { display: block; }
.hero-sticker {
  position: absolute; right: 0; bottom: .1em; padding: 2px 12px;
  border: 2.5px solid var(--black); border-radius: var(--r-pill); background: var(--yellow); color: var(--black);
  font-size: clamp(17px, 4.6vw, 22px); letter-spacing: 0; line-height: 1.2; white-space: nowrap; transform: rotate(7deg);
}
.hero-tiles { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 10px; margin-top: 14px; }
.hero-tile { display: grid; align-content: center; gap: 3px; padding: 10px 14px; border-width: 2px; border-color: var(--text); }
.hero-tile b { font: 900 clamp(28px, 8.8vw, 44px)/1 var(--font-display); letter-spacing: -.05em; white-space: nowrap; }
.hero-tile span { font-size: 13px; font-weight: 700; line-height: 1.25; color: var(--muted); }
.hero-tile.is-cash b { color: var(--yellow); }
.hero-tile.is-cash span { color: var(--gray-400); }
.hero-go { margin-top: 12px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 2px 8px; margin-top: 8px; list-style: none; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.hero-proof li { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.hero-proof svg { width: 14px; height: 14px; }

.home-camp { padding-top: 18px; }
.camps-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.camps-head .title { font-size: 20px; }
.camps-head .badge-sponsored { margin: 0; transform: rotate(3deg); }
.home-camp .more { font-size: 14px; }
.camp-list { display: grid; gap: 12px; }

/* Carte campagne : vidéo de marque à gauche, l'essentiel à droite. */
.camp-card { display: grid; gap: 12px; padding: 12px; border-width: 2px; border-color: var(--text); }
.camp-card.has-video { grid-template-columns: 112px minmax(0, 1fr); }
.camp-card.is-example { border-style: dashed; background: var(--surface-2); }
.camp-body { display: grid; align-content: start; gap: 7px; min-width: 0; }
.camp-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.camp-id .app-icon { --size: 48px; flex: none; }
.camp-id div { min-width: 0; }
.camp-id h3 { font: 900 21px/1.05 var(--font-display); letter-spacing: -.045em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.camp-id h3 a { text-decoration: none; }
.camp-id h3 a:hover { text-decoration: underline; }
.camp-id .by { font-size: 12.5px; color: var(--muted); }
.camp-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.camp-badges .badge { margin: 0; }
.camp-hook { font-size: 12.5px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.camp-card .chips { list-style: none; flex-wrap: nowrap; gap: 4px; overflow: hidden; }
.camp-card .chip { flex: none; min-height: 24px; padding: 0 8px; font-size: 12px; }
.camp-share { font-size: 13px; font-weight: 800; color: var(--muted); }
.camp-share b { font: 900 24px/1 var(--font-display); letter-spacing: -.05em; color: var(--text); }
.camp-card .btn-dark { min-height: 44px; padding: 0 12px; gap: 6px; font-size: clamp(13px, 3.7vw, 15px); white-space: nowrap; }
.camp-card .btn-dark svg { width: 16px; height: 16px; }
.camp-creators { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.camp-card.is-skel { grid-template-columns: 112px 1fr; min-height: 228px; }
@media (max-width: 374px) {
  .camp-card.has-video, .camp-card.is-skel { grid-template-columns: 92px minmax(0, 1fr); }
  .camp-card .btn-dark { white-space: normal; text-align: center; line-height: 1.1; }
}
.sk-video { grid-row: span 3; height: 200px; border-radius: var(--r-md); }

.camp-video { position: relative; display: block; align-self: start; aspect-ratio: 9 / 16; overflow: hidden; border: 2px solid var(--text); border-radius: var(--r-md); background: var(--black); }
.camp-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.camp-play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--black); color: var(--yellow); }
.camp-play svg { width: 18px; height: 18px; margin-left: 2px; fill: currentColor; }
.camp-video-label { position: absolute; left: 6px; right: 6px; bottom: 6px; padding: 3px 6px; border-radius: var(--r-pill); background: var(--white); color: var(--black); font-size: 10.5px; font-weight: 800; text-align: center; line-height: 1.2; }

/* Lecteur plein écran portrait : cover, aucune bande noire, quel que soit l'écran. */
.player { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--black); }
.player::backdrop { background: var(--black); }
.player video { display: block; width: 100%; height: 100%; object-fit: cover; }
.player-bar { position: absolute; top: max(14px, var(--safe-top)); right: max(14px, var(--safe-right)); display: flex; gap: 10px; }
.player-btn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgb(11 11 12 / .72); color: var(--white); border: 2px solid var(--white); }
.player-btn svg { width: 22px; height: 22px; }

.home-steps { padding-top: 12px; }
.mini-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; list-style: none; }
.mini-steps li { display: flex; align-items: center; gap: 6px; min-height: 46px; padding: 6px 8px; white-space: nowrap; border: 2px solid var(--text); border-radius: var(--r-md); background: var(--surface); font: 900 clamp(12.5px, 3.6vw, 16px)/1.05 var(--font-display); letter-spacing: -.035em; }
.mini-steps em { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 7px; background: var(--yellow); color: var(--black); font-style: normal; font-size: 14px; }

.home-bottom { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 10px; padding-top: 10px; padding-bottom: 8px; }
.mini-rank { display: grid; gap: 6px; padding: 10px 12px; border-width: 2px; border-color: var(--text); text-decoration: none; }
.mini-rank .title { font-size: 17px; }
.mini-bars { display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; gap: 5px; height: 48px; }
.mini-bars i { display: grid; place-items: start center; height: var(--h); padding-top: 2px; border: 2px solid var(--text); border-radius: 7px; background: var(--surface-2); font: 900 12px/1.2 var(--font-display); font-style: normal; }
.mini-bars .is-top { background: var(--yellow); color: var(--black); border-color: var(--black); }
.mini-rank small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 700; color: var(--muted); }
.home-links { display: grid; gap: 10px; }
.home-link { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 4px; padding: 10px; border-width: 2px; border-color: var(--text); font: 900 clamp(13px, 3.8vw, 16px)/1.1 var(--font-display); letter-spacing: -.035em; text-align: left; text-decoration: none; }
.home-link svg { width: 18px; height: 18px; flex: none; }
.home-link span { font-size: 20px; line-height: 1; }
.mini-rank:hover, .home-link:hover, .camp-card:hover { box-shadow: 4px 4px 0 var(--text); }
.faq-sheet .faq .title { padding-right: 52px; margin-bottom: 6px; }

@media (min-width: 1024px) {
  body[data-page="landing"] main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: var(--wrap); margin-inline: auto; column-gap: 24px; align-items: start; }
  body[data-page="landing"] main > .wrap { max-width: none; margin: 0; }
  .hero { padding-top: 30px; }
  .hero h1 { font-size: clamp(56px, 5.2vw, 84px); }
  .hero-tile b { font-size: 52px; }
  .home-camp { padding-top: 40px; }
  .home-steps { grid-column: 1; }
  .home-bottom { grid-column: 2; padding-top: 14px; }
  .camp-card.has-video { grid-template-columns: 180px minmax(0, 1fr); }
}

/* ---------- 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; }
}

.chart { position: relative; margin-top: 18px; padding: 120px 14px 16px; border-radius: var(--r-xl); background: var(--surface-2); }
.bars { height: 210px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.bars > div > small { hyphens: auto; }
@media (max-width: 359px) { .bars > div > small { font-size: 10.5px; } }
.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; }
@media (min-width: 1024px) {
  .chart { margin-top: 0; padding: 40px 30px 26px; }
  .bars { height: 340px; }
  .bars i { font-size: 38px; }
}

/* ---------- 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); }
@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 .brand { width: 22px; height: 22px; flex: none; }
.btn-sso .brand-apple { width: auto; height: 44px; margin: -4px -6px -4px -10px; }
/* Google : bouton blanc à bordure #747775, sombre #131314 à bordure #8E918F (Sign in with Google). */
.btn-sso[data-provider="google"] { background: #FFFFFF; border: 1px solid #747775; color: #1F1F1F; }
/* Apple : fond noir ou blanc, logo et libellé de la même couleur. */
.btn-sso[data-provider="apple"] { background: #FFFFFF; color: #000000; border-color: #000000; }
:root[data-theme="dark"] .btn-sso[data-provider="google"] { background: #131314; border-color: #8E918F; color: #E3E3E3; }
:root[data-theme="dark"] .btn-sso[data-provider="apple"] { background: #000000; color: #FFFFFF; border-color: #FFFFFF; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-sso[data-provider="google"] { background: #131314; border-color: #8E918F; color: #E3E3E3; }
  :root:not([data-theme="light"]) .btn-sso[data-provider="apple"] { background: #000000; color: #FFFFFF; border-color: #FFFFFF; }
}
.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 { gap: 20px; } .filters { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; } }
.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-head.has-video { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 16px; align-items: start; }
.app-head.has-video .camp-video { grid-row: span 4; margin-top: 6px; }
.app-head.has-video .app-id { flex-direction: column; align-items: flex-start; gap: 8px; }
.app-head.has-video .app-id .app-icon { --size: 56px; }
.app-head.has-video .app-id h1 { font-size: clamp(34px, 9vw, 64px); }
.acc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: var(--tap); cursor: pointer; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 24px; font-weight: 700; color: var(--muted); transition: transform var(--dur-fast) var(--ease-out); }
.acc[open] summary::after { transform: rotate(45deg); }
.acc summary .eyebrow { margin: 0; }
.acc[open] summary { margin-bottom: 10px; }
.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 li { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px 0; }
/* Badges officiels : 40 px de haut, zone de protection d'un quart de la hauteur. */
.store-badge { display: block; width: auto; height: 40px; }
.store-link { display: inline-block; padding: 10px; margin: -10px; border-radius: var(--r-sm); }
.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 .badges { display: flex; flex-wrap: wrap; gap: 10px 20px; padding: 2px 0; }
.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; }
  .app-head.has-video { grid-template-columns: 200px minmax(0, 1fr); column-gap: 28px; }
  .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 .hero-cta { margin-top: 22px; }
.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-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 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 4px; padding-bottom: 48px; }
.brands-page .mark { white-space: normal; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.brands-sticker { display: inline-block; 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(-3deg); }
.brands-pitch h1 { margin: 12px 0 10px; font-size: clamp(38px, 10.6vw, 72px); line-height: .95; }
.brands-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 16px; list-style: none; }
.brands-tiles li { display: grid; align-content: start; gap: 6px; padding: 14px; border-width: 2px; border-color: var(--text); font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.brands-tiles li:nth-child(1) { grid-column: span 4; }
.brands-tiles li:nth-child(2) { grid-column: span 2; }
.brands-tiles li:nth-child(n + 3) { grid-column: span 3; }
.brands-tiles .title { font-size: 19px; line-height: 1.05; }
.brands-pitch { min-width: 0; }
@media (max-width: 399px) {
  .brands-tiles li:nth-child(n) { grid-column: span 3; }
  .brands-tiles li:nth-child(1), .brands-tiles li:nth-child(4) { grid-column: span 6; }
  .brands-tiles .title { font-size: 17px; }
}
.brands-tiles li:not(.card-ink) > span { color: var(--muted); }
.brands-tiles .card-ink { border-color: var(--inverse); }
.brands-tiles .card-ink > span { color: var(--gray-400); }
.brands-vetted { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--inverse); color: var(--on-inverse); font-weight: 800; font-size: 14px; line-height: 1.3; }
.brands-vetted .ico { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--yellow); color: var(--black); }
.brands-vetted svg { width: 18px; height: 18px; }
.brands-form { display: grid; gap: 14px; align-self: start; padding: 20px; border-width: 2px; border-color: var(--text); }
.brands-form textarea { min-height: 88px; resize: vertical; }
.brands-form { grid-template-columns: minmax(0, 1fr); }
.brands-form .btn-primary { font-size: clamp(18px, 5.6vw, 24px); white-space: normal; text-align: center; line-height: 1.1; }
.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-page { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; padding-top: 24px; }
  .brands-form { position: sticky; top: 24px; 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-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); }
.btn.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; } }

