/* Style partagé des pages publiques des commerçants (commerce.html, fil.html). */
  :root { color-scheme: dark; --blue: var(--nx-blue); --ink: var(--nx-text); --mute: var(--nx-text-soft); }
  * { box-sizing: border-box; }
  body { margin: 0; background: var(--nx-bg); color: var(--nx-text-soft); font: 16px/1.5 system-ui, -apple-system, sans-serif; }
  main { max-width: 640px; margin: 0 auto; padding: 1.2rem 1rem 5rem; }
  a { color: var(--nx-blue-light); } .back { text-decoration: none; }
  h1 { color: var(--nx-strong); font-size: 1.6rem; margin: .8rem 0 .2rem; }
  .lead { color: var(--nx-text-soft); margin: 0 0 1.2rem; }
  .card { background: var(--nx-surface); color: var(--ink); border-radius: 20px; padding: 1.1rem 1.2rem; margin: 0 0 1rem; box-shadow: 0 8px 30px color-mix(in srgb, var(--nx-bg) 35%, transparent); }
  .card h1, .card h2 { margin: 0; font-size: 1.3rem; } .card p { margin: .3rem 0; color: var(--mute); font-size: .95rem; }
  .badge { display: inline-block; padding: .2rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--nx-surface); color: var(--nx-green); }
  .row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .btn { margin-top: .7rem; padding: .65rem 1.2rem; border: 0; border-radius: 999px; background: var(--blue); color: var(--nx-white); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; }
  .btn.ghost { background: var(--nx-surface); color: var(--nx-blue-light); } .btn:disabled { opacity: .55; cursor: default; }
  .banner { border-radius: 16px; padding: .8rem 1rem; margin: 0 0 1rem; font-size: .95rem; background: var(--nx-surface); color: var(--nx-text-soft); }
  .tabs { display: flex; gap: .5rem; margin: 0 0 .8rem; }
  .tabs button { flex: 1; padding: .55rem; border-radius: 999px; border: 1px solid var(--nx-blue-deep); background: transparent; color: var(--nx-text-soft); font: inherit; cursor: pointer; }
  .tabs button[aria-pressed=true] { background: var(--blue); border-color: var(--blue); color: var(--nx-white); }
  .post { background: var(--nx-surface); color: var(--ink); border-radius: 20px; overflow: hidden; margin: 0 0 1rem; box-shadow: 0 8px 30px color-mix(in srgb, var(--nx-bg) 35%, transparent); }
  .post img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--nx-surface); }
  .post-shop { display: block; padding: .8rem 1.1rem 0; font-weight: 700; color: var(--nx-blue-light); text-decoration: none; }
  .post-body { margin: 0; padding: .8rem 1.1rem .2rem; white-space: pre-wrap; overflow-wrap: anywhere; }
  .post-date { margin: 0; padding: 0 1.1rem .9rem; color: var(--mute); font-size: .85rem; }
  .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 0 0 1rem; }
  .tile { position: relative; aspect-ratio: 1; border: 0; padding: 0; overflow: hidden; border-radius: 6px; background: var(--nx-surface); color: var(--nx-text-soft); cursor: pointer; font: inherit; text-align: left; }
  .tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .tile span { display: block; padding: .5rem; font-size: .82rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; }
  dialog { border: 0; padding: 0; background: transparent; max-width: min(92vw, 560px); width: 100%; color: inherit; }
  dialog::backdrop { background: color-mix(in srgb, var(--nx-bg) 80%, transparent); }
  dialog .close { display: block; margin: 0 0 .5rem auto; }
  .empty { text-align: center; color: var(--nx-text-soft); padding: 2rem 1rem; }
  .err { color: var(--nx-red); min-height: 1.2em; }
  footer { margin-top: 2rem; font-size: .85rem; color: var(--nx-text-soft); }

  .slot { padding: .6rem 0; border-top: 1px solid var(--nx-line); color: var(--ink); }
  .slot small { display: block; color: var(--mute); }

  .hint { color: var(--mute); font-size: .85rem; margin: .3rem 0 0; }
  .starrow { display: flex; gap: .2rem; margin: .4rem 0; }
  .star { border: 0; background: none; padding: .1rem; font-size: 2rem; line-height: 1; color: var(--nx-text); cursor: pointer; }
  .star.on { color: var(--nx-amber); }
  .crits { margin: .6rem 0 .2rem; } .crit { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin: .15rem 0; }
  .crit-l { font-weight: 600; font-size: .95rem; } .crit .star { font-size: 1.45rem; padding: .05rem .12rem; }
  #review-criteria { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin: .6rem 0 .8rem; font-size: .92rem; }
  .crit-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin: .5rem 0 0; } .crit-chips .chip { padding: .12rem .6rem; border-radius: 999px; background: color-mix(in srgb, var(--nx-blue-light) 16%, transparent); font-size: .8rem; font-weight: 600; }
  .helpful { margin-top: .5rem; } .helpful.on { background: color-mix(in srgb, var(--nx-blue) 20%, transparent); border-color: var(--nx-line); }
  .helpful-line { margin: .5rem 0 0; font-size: .85rem; color: var(--mute); }
  .stars { color: var(--nx-amber); letter-spacing: .06em; white-space: nowrap; }
  .review { background: var(--nx-surface); color: var(--ink); border-radius: 20px; padding: 1rem 1.1rem; margin: 0 0 1rem; box-shadow: 0 8px 30px color-mix(in srgb, var(--nx-bg) 35%, transparent); }
  .review .tag { margin: .2rem 0 0; color: var(--nx-green); font-size: .85rem; }
  .reply { background: var(--nx-surface); border-radius: 12px; padding: .6rem .8rem; margin: .6rem 0; }
  .reply p { margin: .2rem 0; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
  .review textarea, #review-form textarea { width: 100%; min-height: 84px; font: inherit; font-size: 16px; padding: .6rem; border: 1px solid var(--nx-line); border-radius: 10px; }
  #review-form input[type=text] { width: 100%; font: inherit; font-size: 16px; padding: .6rem; border: 1px solid var(--nx-line); border-radius: 10px; }
  .card label { display: grid; gap: .25rem; margin: .7rem 0 0; font-size: .9rem; color: var(--mute); }
  .card label.check { display: flex; gap: .6rem; align-items: flex-start; color: var(--ink); }
  .card .check input { width: 20px; height: 20px; flex: none; margin-top: .15rem; accent-color: var(--blue); }
  .okmsg { color: var(--nx-green); font-size: .92rem; margin: .4rem 0 0; }
  .card .err { color: var(--nx-red); }
  .card, .review, dialog { color-scheme: light; }
  .review textarea, #review-form textarea, #review-form input[type=text] { background: var(--nx-surface); color: var(--ink); }
  .btn.small { padding: .45rem .9rem; margin-top: .4rem; font-size: .9rem; }
  .btn.danger { background: var(--nx-surface); color: var(--nx-red); }

  .kinds { border: 0; padding: 0; margin: .8rem 0 0; } .kinds legend { font-size: .9rem; color: var(--mute); padding: 0; }
  #report-form textarea { width: 100%; min-height: 84px; font: inherit; font-size: 16px; padding: .6rem; border: 1px solid var(--nx-line); border-radius: 10px; background: var(--nx-surface); color: var(--ink); }
  .linkbtn { border: 0; background: none; padding: .2rem 0; color: var(--nx-text-dim); font: inherit; font-size: .85rem; cursor: pointer; text-decoration: underline; }

  .vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 0 0 1rem; }
  .vtile { position: relative; aspect-ratio: 9 / 16; border: 0; padding: 0; overflow: hidden; border-radius: 6px; background: var(--nx-surface); cursor: pointer; }
  .vtile img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .vviews { position: absolute; left: 5px; bottom: 5px; display: inline-flex; align-items: center; gap: .25rem; padding: .05rem .45rem .05rem .35rem; border-radius: 999px; background: color-mix(in srgb, var(--nx-bg) 65%, transparent); color: var(--nx-strong); font-size: .78rem; font-weight: 600; font-variant-numeric: tabular-nums; } .vviews svg { width: 13px; height: 13px; }
  .folcount { display: block; margin: .15rem 0 0; padding: .1rem 0; border: 0; background: none; color: inherit; font: inherit; font-size: .95rem; opacity: .85; cursor: pointer; text-align: left; } .folcount b { font-weight: 700; opacity: 1; }
  .vpin { position: absolute; left: 5px; top: 5px; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: color-mix(in srgb, var(--nx-bg) 65%, transparent); color: var(--nx-strong); } .vpin svg { width: 13px; height: 13px; }
  body.noscroll { overflow: hidden; }
  #reel { position: fixed; inset: 0; z-index: 50; background: var(--nx-bg); }

/* Fenêtres simples (code de visite, partage) */
.vdlg { border: 0; border-radius: 22px; padding: 1.4rem 1.2rem; width: min(92vw, 380px); background: var(--nx-surface); color: var(--nx-text); text-align: center; }
.vdlg::backdrop { background: color-mix(in srgb, var(--nx-bg) 72%, transparent); }
.vdlg h3 { margin: 0 0 .5rem; font-size: 1.2rem; }
.vdlg .hint { margin: 0 0 .9rem; color: var(--nx-text-soft); font-size: .92rem; }
.vdlg input { width: 100%; padding: .8rem; border-radius: 12px; border: 1px solid var(--nx-blue-deep); background: var(--nx-bg-2); color: var(--nx-strong); font: inherit; margin-bottom: .6rem; }
.vdlg label { display: block; margin: .6rem 0 0; text-align: left; font-size: .9rem; color: var(--nx-text-soft); }
.vdlg select, .vdlg textarea { display: block; width: 100%; box-sizing: border-box; margin-top: .3rem; }
.vdlg .btn { display: block; width: 100%; margin: .45rem 0; padding: .8rem; border: 0; border-radius: 14px; background: var(--nx-blue); color: var(--nx-white); font: inherit; font-weight: 650; cursor: pointer; }
.vdlg .btn.ghost { background: transparent; color: var(--nx-text-soft); }
.vdlg .btn:disabled { opacity: .6; }
.vdlg .err, .vdlg .okmsg2 { min-height: 1.2em; margin: .3rem 0; font-size: .9rem; }

/* Petites icônes dans les boutons de menu (signaler…) */
#more-menu button svg.i, .menu button svg.i, .linkbtn svg.i { width: 16px; height: 16px; vertical-align: -3px; margin-right: .2rem; }
