/* Pages publiques (profil, prod, service) : mêmes jetons que style.css. */
.pub-nav {
  display: flex !important;
}
.nav-cta {
  color: var(--led) !important;
  font-weight: 700;
}
.pub {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px 40px;
}
.pub h1 {
  font: 900 clamp(30px, 7vw, 54px) / 1 var(--display);
  font-stretch: 112%;
  text-transform: none;
  letter-spacing: -0.01em;
  margin: 0;
  overflow-wrap: anywhere;
}
.pub-sec {
  margin-top: 44px;
}
.pub-sec h2,
.pub-h2 {
  font: 800 22px/1.2 var(--mono);
  margin: 0 0 16px;
  padding-top: 18px;
  border-top: 1px solid var(--edge);
}
.pub-h2 {
  margin-top: 28px;
}

/* Avatar */
.pub-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: var(--panel2);
  border: 1px solid var(--edge2);
}
.pub-av.sm {
  width: 28px;
  height: 28px;
}
.pub-av.md {
  width: 48px;
  height: 48px;
}
.pub-av.xl {
  width: 112px;
  height: 112px;
  border: 3px solid var(--body);
  box-shadow: 0 0 0 2px var(--led);
}
.pub-av-vide {
  display: inline-grid;
  place-items: center;
  font: 800 16px var(--display);
  color: var(--ink2);
}
.pub-av.xl.pub-av-vide {
  font-size: 44px;
}

/* Profil */
.pub-hero {
  margin: 0 -16px;
}
.pub-banner {
  height: clamp(120px, 26vw, 220px);
  overflow: hidden;
  background: linear-gradient(120deg, #101820, #1d1020);
}
.pub-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}
.pub-banner-vide {
  background:
    radial-gradient(ellipse at 30% 0%, rgba(0, 200, 240, 0.22), transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(255, 45, 85, 0.16), transparent 60%),
    var(--panel);
}
.pub-id {
  padding: 0 16px;
  margin-top: -58px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pub-id h1 {
  margin-top: 14px;
}
.pub-check {
  display: inline-grid;
  place-items: center;
  width: 0.62em;
  height: 0.62em;
  margin-left: 0.18em;
  border-radius: 50%;
  background: var(--led);
  color: var(--body);
  font-size: 0.5em;
  vertical-align: 0.25em;
}
.pub-handle {
  color: var(--ink2);
  margin: 6px 0 0;
  font-family: var(--mono);
  font-size: 15px;
}
.pub-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 12px 0 0;
}
.pub-tags span {
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 10px;
  border: 1px solid var(--edge2);
  border-radius: 999px;
  color: var(--ink2);
}
.pub-stats {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 6vw, 44px);
  margin: 22px 0 4px;
}
.pub-stats div {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pub-stats b {
  font: 800 24px/1.1 var(--mono);
}
.pub-stats span {
  font: 600 10px/1.4 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink3);
}
.pub-bio {
  color: var(--ink2);
  max-width: 34em;
  margin: 16px auto 0;
  white-space: pre-line;
}
.pub-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}
.pub-ctas .btn {
  justify-content: center;
  text-align: center;
  line-height: 1.3;
}
.pub-ctas-center {
  margin: 26px 0 0;
}

/* Lignes de prods */
.pub-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}
.pub-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px;
  border: 1px solid var(--edge);
  border-radius: 12px;
  background: var(--panel);
}
.pub-row-play {
  position: relative;
  width: 58px;
  height: 58px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel2);
  cursor: pointer;
}
.pub-row-play img,
.pub-row-play .pub-cover-vide {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pub-row-ic {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.32);
}
.pub-row-ic::before {
  content: '';
  border-left: 13px solid #fff;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  margin-left: 3px;
}
.pub-row-play.on .pub-row-ic::before {
  border: 0;
  width: 12px;
  height: 14px;
  margin: 0;
  background: linear-gradient(90deg, #fff 0 4px, transparent 4px 8px, #fff 8px 12px);
}
.pub-row-txt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.pub-row-txt b {
  font: 800 16px/1.25 var(--mono);
  overflow-wrap: break-word;
}
.pub-row-txt span {
  color: var(--ink3);
  font-size: 13px;
}
.pub-pill {
  flex: none;
  font: 700 13px/1 var(--mono);
  padding: 9px 12px;
  border: 1px solid var(--edge2);
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}
.pub-cover-vide {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1b2a33, #2a1720);
  font: 900 26px var(--display);
  color: var(--ink2);
}

/* Cartes de services */
.pub-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 12px;
}
.pub-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 10px 14px;
  border: 1px solid var(--edge);
  border-radius: 14px;
  background: var(--panel);
  text-decoration: none;
}
.pub-card-img {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 9px;
  overflow: hidden;
  background: linear-gradient(135deg, #14222a, #23131b);
}
.pub-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pub-card-img em,
.pub-offre-img em {
  position: absolute;
  left: 8px;
  bottom: 8px;
  font: 700 11px/1 var(--mono);
  font-style: normal;
  letter-spacing: 0.08em;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.72);
  color: var(--led);
}
.pub-card b {
  font: 800 17px/1.3 var(--mono);
  overflow-wrap: break-word;
  padding: 0 4px;
}
.pub-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
  color: var(--ink3);
  font: 600 13px var(--mono);
}

/* Vidéos */
.pub-vids {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
@media (min-width: 720px) {
  .pub-vids {
    grid-template-columns: repeat(5, 1fr);
  }
}
.pub-vid {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel2);
  text-decoration: none;
}
.pub-vid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pub-vid span {
  position: absolute;
  inset: auto 0 0;
  padding: 26px 8px 8px;
  font: 700 12px/1.25 var(--mono);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  overflow-wrap: break-word;
}
.pub-vid em {
  position: absolute;
  top: 6px;
  left: 6px;
  font: 700 11px var(--mono);
  font-style: normal;
  text-shadow: 0 1px 3px #000;
}

/* Avis */
.pub-reviews {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.pub-review {
  padding: 14px 16px;
  border: 1px solid var(--edge);
  border-radius: 12px;
  background: var(--panel);
}
.pub-review > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.pub-review p {
  margin: 8px 0 0;
  color: var(--ink2);
}
.pub-stars {
  color: var(--gold);
  letter-spacing: 2px;
}
.pub-stars i {
  font-style: normal;
  color: var(--ink3);
}

/* Prod */
.pub-prod {
  display: grid;
  gap: 24px;
  padding-top: 28px;
}
@media (min-width: 820px) {
  .pub-prod {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 44px;
    align-items: start;
    padding-top: 48px;
  }
  .pub-prod-media {
    position: sticky;
    top: 90px;
  }
}
.pub-prod-cover,
.pub-prod-video {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--edge2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  display: block;
}
.pub-prod-cover {
  aspect-ratio: 1;
  object-fit: cover;
}
.pub-prod-video {
  max-height: 78vh;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  background: #000;
}
.pub-by {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font: 700 12px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--led);
  text-decoration: none;
}
.pub-facts {
  font-family: var(--mono);
  color: var(--ink2);
  margin: 10px 0 0;
}
.pub-counts {
  display: flex;
  gap: 18px;
  margin: 8px 0 0;
  color: var(--ink3);
  font: 600 14px var(--mono);
}
.pub-counts b {
  color: var(--ink);
}
.pub-warn {
  display: inline-block;
  margin: 12px 0 0;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--rec);
  color: var(--rec);
  font: 700 12px var(--mono);
}
.pub-listen {
  width: 100%;
  justify-content: center;
  margin-top: 20px;
}
.pub-prod-info .pub-bio {
  margin-left: 0;
}
.pub-prod-info .pub-ctas {
  justify-content: flex-start;
}
.pub-lics {
  display: grid;
  gap: 8px;
}
.pub-lic {
  border: 1px solid var(--edge2);
  border-radius: 12px;
  background: var(--panel);
}
.pub-lic summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
}
.pub-lic summary::-webkit-details-marker {
  display: none;
}
.pub-lic summary > span {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.pub-lic summary b {
  font: 800 18px/1.2 var(--mono);
}
.pub-lic-prix {
  white-space: nowrap;
}
.pub-lic dl,
.pub-tier dl {
  margin: 0;
  padding: 0 16px 14px;
  display: grid;
  gap: 6px;
}
.pub-lic dl div,
.pub-tier dl div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}
.pub-lic dt,
.pub-tier dt {
  color: var(--ink2);
}
.pub-lic dd,
.pub-tier dd {
  margin: 0;
  font: 700 14px var(--mono);
}

/* Service */
.pub-offre {
  display: grid;
  gap: 20px;
  padding-top: 24px;
}
@media (min-width: 820px) {
  .pub-offre {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 40px;
    align-items: center;
    padding-top: 48px;
  }
}
.pub-offre-img {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--edge2);
}
.pub-offre-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pub-offre-info h1 {
  font-family: var(--mono);
  font-stretch: 100%;
  font-size: clamp(28px, 5.4vw, 42px);
  line-height: 1.12;
}
.pub-offre-info .pub-bio {
  margin-left: 0;
}
.pub-seller {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 10px 12px;
  border: 1px solid var(--edge);
  border-radius: 12px;
  background: var(--panel);
  text-decoration: none;
}
.pub-seller > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.pub-seller > span span {
  color: var(--ink3);
  font-size: 13px;
}
.pub-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 10px;
  margin-top: 28px;
}
.pub-tier {
  border: 1px solid var(--edge2);
  border-radius: 14px;
  background: var(--panel);
  padding-top: 16px;
}
.pub-tier > .label {
  display: block;
  padding: 0 16px;
}
.pub-tier-prix {
  display: block;
  font: 800 34px/1 var(--mono);
  padding: 12px 16px 14px;
}
.pub-tier ul {
  margin: 0;
  padding: 0 16px 16px 34px;
  color: var(--ink2);
  font-size: 14px;
}

/* Bandeau final, page introuvable */
.pub-band {
  text-align: center;
  padding: 56px 16px 64px;
  border-top: 1px solid var(--edge);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.pub-band p {
  margin: 0;
  font: 800 clamp(20px, 3.4vw, 28px) / 1.25 var(--display);
  max-width: 22em;
}
.pub-gone {
  margin: 48px auto;
  max-width: 640px;
}

/* Lecteur d'extrait (bas de l'écran) */
.pub-player {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 12px 8px;
  border-radius: 14px;
  border: 1px solid var(--edge2);
  background: rgba(24, 24, 29, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
  z-index: 20;
}
.pub-player[hidden] {
  display: none;
}
.pub-player img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--panel2);
}
.pub-player-txt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.pub-player-txt b {
  font: 800 14px/1.3 var(--mono);
  overflow-wrap: break-word;
}
.pub-player-txt span {
  font-size: 12px;
  color: var(--ink3);
}
.pub-play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.pub-play::before {
  content: '';
  border-left: 13px solid var(--body);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  margin-left: 3px;
}
.pub-play.on::before {
  border: 0;
  width: 12px;
  height: 14px;
  margin: 0;
  background: linear-gradient(90deg, var(--body) 0 4px, transparent 4px 8px, var(--body) 8px 12px);
}
.pub-player-bar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: var(--edge2);
  overflow: hidden;
}
.pub-player-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--led);
}
