/* Aperçu interactif de l'app. Mêmes jetons que site.css (brand-assets/theplacetobe/DESIGN.md),
   et une mise en page qui reprend celle des écrans mobiles réels. */
:root {
  --canvas: #08080a;
  --surface: #0b0b0e;
  --card: #151518;
  --elevated: #1c1c20;
  --border: #28282e;
  --border-elevated: #32323a;
  --text: #ffffff;
  --muted: #9e9ea7;
  --ghost: #8a8a93;
  --amber: #ffaa00;
  --orange: #ff5500;
  --magenta: #e1007a;
  --sunset: linear-gradient(135deg, #ffaa00 0%, #ff5500 50%, #e1007a 100%);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
  font-family: "Outfit", system-ui, sans-serif;
  margin: 0;
}
p {
  margin: 0;
}
img {
  display: block;
  max-width: 100%;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

/* ---- Mise en page de la page ---- */
.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
}
.intro {
  display: none;
}
.mobile-banner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  height: 44px;
  padding: 0 0.75rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--muted);
}
.mobile-banner span {
  flex: 1;
}
.mobile-banner a {
  display: inline-flex;
  text-decoration: none;
}
.mini-cta {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--sunset);
  color: #fff !important;
  font-weight: 700;
  font-size: 12.5px;
}
.device-wrap {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
}
.device {
  flex: 1;
  min-height: 0;
  position: relative;
}
@media (min-width: 900px) {
  .page {
    grid-template-columns: minmax(0, 420px) auto;
    gap: 4.5rem;
    padding: 2rem;
    justify-content: center;
    background:
      radial-gradient(700px 500px at 75% 40%, rgba(255, 85, 0, 0.13), transparent 70%),
      radial-gradient(600px 500px at 85% 80%, rgba(225, 0, 122, 0.1), transparent 70%),
      var(--canvas);
  }
  .intro {
    display: block;
  }
  .mobile-banner {
    display: none;
  }
  .device-wrap {
    width: auto;
    height: auto;
  }
  .device {
    flex: none;
    width: 392px;
    height: min(830px, calc(100vh - 4rem));
    border-radius: 54px;
    padding: 12px;
    background: linear-gradient(145deg, #434343, #1c1c1c);
    box-shadow:
      0 40px 90px -30px rgba(255, 85, 0, 0.35),
      0 20px 60px -20px rgba(0, 0, 0, 0.9),
      inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  }
  .device .app {
    border-radius: 42px;
  }
}
.back-home {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  margin-bottom: 2.5rem;
  color: var(--muted);
}
.back-home:hover {
  color: var(--text);
}
.eyebrow {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.8rem;
}
.intro h1 {
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.intro .lede {
  color: var(--muted);
  margin-top: 1rem;
  font-size: 17px;
  line-height: 1.55;
}
.tips {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 2rem;
  display: grid;
  gap: 0.7rem;
  color: var(--muted);
  font-size: 15px;
}
.tips li {
  padding-left: 1.4rem;
  position: relative;
}
.tips li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sunset);
}
.tips b {
  color: var(--text);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 50px;
  padding: 0 1.3rem;
  border-radius: 1rem;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}
.btn-primary {
  background: var(--sunset);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(255, 85, 0, 0.6);
}

/* ==== L'app ==== */
.app {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--canvas);
  font-size: 15px;
  line-height: 1.4;
}
@media (min-width: 900px) {
  .app {
    inset: 12px;
  }
}
.loading {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--ghost);
}
.view {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding-bottom: 110px;
}
.view::-webkit-scrollbar {
  display: none;
}
.view[hidden] {
  display: none;
}
.pad {
  padding-inline: 16px;
}
.status-gap {
  height: 18px;
}
@media (min-width: 900px) {
  .status-gap {
    height: 34px;
  }
}

/* ---- Barre d'onglets flottante ---- */
.tabbar {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 5px;
  border-radius: 999px;
  background: rgba(21, 21, 24, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.8);
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 7px 0 6px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  transition: background 0.2s;
}
.tab svg {
  width: 22px;
  height: 22px;
}
.tab[aria-selected="true"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.tab[aria-selected="true"] svg {
  color: var(--orange);
}

/* ---- En-têtes ---- */
.app-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 6px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.02em;
}
.logo img {
  width: 24px;
  height: 24px;
}
.logo b {
  color: var(--orange);
  font-weight: 700;
}
.round-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--card);
  border: 1px solid var(--border);
}
.round-btn svg {
  width: 20px;
  height: 20px;
}
.badge-count {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--magenta);
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.page-title {
  text-align: center;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 18px;
  padding: 12px 0 10px;
}
.row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 13px;
  font-weight: 600;
}
.pill svg {
  width: 14px;
  height: 14px;
}
.pill .accent {
  color: var(--orange);
}
.h-title {
  font-size: 22px;
  font-weight: 700;
  margin-top: 14px;
}
.h-sub {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 0 14px;
  height: 48px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  width: 100%;
}
.search svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
.search input::placeholder {
  color: var(--ghost);
}
.search input:focus {
  outline: none;
}
.section-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 16px;
  margin: 22px 16px 10px;
}
.section-label svg {
  width: 16px;
  height: 16px;
  color: var(--amber);
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 85, 0, 0.6);
  }
  70%,
  100% {
    box-shadow: 0 0 0 8px rgba(255, 85, 0, 0);
  }
}

/* ---- Rangées horizontales ---- */
.hscroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 16px 4px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 16px;
  scrollbar-width: none;
}
.hscroll::-webkit-scrollbar {
  display: none;
}
.hscroll > * {
  scroll-snap-align: start;
  flex: none;
}

/* Stories */
.story-bubble {
  width: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--muted);
}
.story-ring {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  padding: 3px;
  background: var(--sunset);
}
.story-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--canvas);
  background: var(--card);
}
.story-ring .now {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
}
.story-bubble span.name {
  max-width: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Offres flash */
.offer-card {
  width: 268px;
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid rgba(255, 85, 0, 0.55);
  background: linear-gradient(135deg, rgba(255, 85, 0, 0.1), transparent 60%), var(--card);
}
.offer-card img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  flex: none;
}
.offer-card b {
  font-size: 13.5px;
}
.offer-card p {
  font-size: 13px;
  color: var(--amber);
  font-weight: 600;
  margin: 2px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.offer-card small {
  color: var(--ghost);
  font-size: 11.5px;
}

/* Cartes "En vedette" */
.feature-card {
  position: relative;
  width: 270px;
  height: 200px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
}
.feature-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(8, 8, 10, 0.95));
}
.feature-card .tags {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  display: flex;
  gap: 6px;
}
.tag {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(8, 8, 10, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tag.hot {
  background: var(--orange);
  border-color: var(--orange);
}
.feature-card .meta {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  z-index: 1;
}
.feature-card h3 {
  font-size: 16px;
  line-height: 1.2;
}
.feature-card small {
  color: #c9c9d0;
  font-size: 12px;
}

/* Cartes lieu compactes */
.place-mini {
  width: 160px;
}
.place-mini img {
  width: 160px;
  height: 110px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--card);
}
.place-mini b {
  display: block;
  margin-top: 7px;
  font-size: 14px;
}
.place-mini small {
  color: var(--muted);
  font-size: 12px;
}

/* Lignes de liste */
.list {
  display: grid;
  gap: 10px;
  padding: 0 16px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--border);
}
.row img {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
  flex: none;
  background: var(--elevated);
}
.row .rank {
  width: 28px;
  flex: none;
  text-align: center;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  color: var(--orange);
}
.row .txt {
  min-width: 0;
  flex: 1;
}
.row b {
  display: block;
  font-size: 14.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row small {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
}
.row small.dist {
  color: var(--ghost);
}
.chev {
  color: var(--ghost);
  width: 18px;
  height: 18px;
  flex: none;
}
.star {
  color: var(--amber);
}
.empty {
  padding: 30px 16px;
  text-align: center;
  color: var(--ghost);
  font-size: 14px;
}

/* Filtres */
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 16px 4px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar {
  display: none;
}
.chip {
  flex: none;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.chip[aria-pressed="true"] {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 4px;
  gap: 4px;
  margin-top: 10px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
}
.segmented button {
  text-align: center;
  padding: 8px 0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.segmented button[aria-pressed="true"] {
  background: var(--orange);
  color: #fff;
}

/* ---- Carte d'Explorer ----
   Pas de fond de carte téléchargé : un canevas sombre, la lagune esquissée et les quartiers
   nommés suffisent à se repérer, pour quelques Ko au lieu de plusieurs Mo de tuiles. */
.explore-top {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 0 16px 10px;
  background: linear-gradient(180deg, var(--canvas) 70%, transparent);
}
.map {
  position: relative;
  height: 300px;
  margin: 0 16px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 85, 0, 0.08), transparent 55%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 32px),
    #101014;
}
.map svg.lagoon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.map .district {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
  pointer-events: none;
}
.pin {
  position: absolute;
  transform: translate(-50%, -100%);
  width: 26px;
  height: 26px;
  border-radius: 50% 50% 50% 0;
  rotate: -45deg;
  display: grid;
  place-items: center;
  background: var(--card);
  border: 2px solid var(--orange);
  box-shadow: 0 6px 14px -4px rgba(0, 0, 0, 0.8);
  transition: scale 0.2s var(--ease-out);
}
.pin svg {
  rotate: 45deg;
  width: 12px;
  height: 12px;
  color: var(--amber);
}
.pin.event {
  border-color: var(--magenta);
}
.pin.event svg {
  color: #ff4fa8;
}
.pin.active {
  scale: 1.3;
  background: var(--orange);
  z-index: 3;
}
.pin.active svg {
  color: #fff;
}
.me {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--orange);
  border: 3px solid #fff;
  box-shadow: 0 0 0 10px rgba(255, 85, 0, 0.2);
}
.map-card {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 4;
}
.map-card .row {
  background: rgba(21, 21, 24, 0.94);
  backdrop-filter: blur(10px);
}
.result-count {
  color: var(--ghost);
  font-size: 12.5px;
  padding: 14px 16px 8px;
}

/* ==== Pages de détail (glissent depuis la droite) ==== */
.overlay {
  position: absolute;
  inset: 0;
  z-index: 40;
  background: var(--canvas);
  overflow-y: auto;
  scrollbar-width: none;
  padding-bottom: 100px;
  animation: slideIn 0.35s var(--ease-out);
}
.overlay::-webkit-scrollbar {
  display: none;
}
@keyframes slideIn {
  from {
    transform: translateX(40%);
    opacity: 0;
  }
}
.cover {
  position: relative;
  aspect-ratio: 16 / 11;
  background: var(--card);
}
.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 10, 0.45) 0%, transparent 25%, transparent 50%, var(--canvas) 100%);
}
.cover .top {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
}
@media (min-width: 900px) {
  .cover .top {
    top: 36px;
  }
}
.glass-btn {
  height: 40px;
  min-width: 40px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(8, 8, 10, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13.5px;
  font-weight: 700;
}
.glass-btn svg {
  width: 18px;
  height: 18px;
}
.glass-btn.follow {
  background: var(--orange);
  border-color: var(--orange);
}
.glass-btn.follow.on {
  background: rgba(8, 8, 10, 0.6);
  border-color: rgba(255, 255, 255, 0.14);
}
.cover .title {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 10px;
  z-index: 2;
}
.cover h2 {
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.cover .title small {
  color: var(--muted);
  font-size: 14px;
}
.flash-banner {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 14px 16px 0;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--orange);
  background: linear-gradient(135deg, rgba(255, 85, 0, 0.14), transparent 70%), var(--card);
}
.flash-banner svg {
  width: 20px;
  height: 20px;
  color: var(--amber);
  flex: none;
}
.flash-banner b {
  display: block;
  color: var(--amber);
  font-size: 14px;
}
.flash-banner small {
  color: var(--ghost);
  font-size: 12px;
}
.brief {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 16px 0;
}
.brief div {
  padding: 12px 6px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  text-align: center;
}
.brief svg {
  width: 18px;
  height: 18px;
  color: var(--amber);
  margin: 0 auto 4px;
}
.brief span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ghost);
}
.brief b {
  display: block;
  font-size: 14.5px;
  margin-top: 2px;
}
.brief small {
  display: block;
  font-size: 11px;
  color: var(--ghost);
}
.info-line {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 14px 16px 0;
  color: var(--muted);
  font-size: 14px;
}
.info-line svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 2px;
  color: var(--orange);
}
.desc {
  margin: 14px 16px 0;
  color: #c9c9d0;
  font-size: 14.5px;
  line-height: 1.55;
}
.tagline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 16px 0;
}
.tagline span {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--elevated);
  font-size: 12px;
  color: var(--muted);
}
.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  height: 190px;
  margin: 0 16px;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  background: var(--card);
}
.gallery img:first-child {
  grid-row: span 2;
}
.presence {
  display: flex;
  align-items: center;
  gap: 12px;
  width: calc(100% - 32px);
  margin: 18px 16px 0;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--orange);
  background: var(--card);
}
.presence .ic {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 85, 0, 0.15);
  color: var(--amber);
  flex: none;
}
.presence .ic svg {
  width: 18px;
  height: 18px;
}
.presence b {
  display: block;
  color: var(--amber);
  font-size: 14.5px;
}
.presence small {
  color: var(--ghost);
  font-size: 12px;
}
.review {
  padding: 14px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--border);
}
.review-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.initials {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sunset);
  font-size: 11px;
  font-weight: 700;
  flex: none;
}
.review-head b {
  font-size: 13.5px;
}
.review-head small {
  color: var(--ghost);
  font-size: 12px;
  margin-left: auto;
}
.verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--orange);
  background: rgba(255, 85, 0, 0.12);
  color: var(--amber);
  font-size: 10.5px;
  font-weight: 700;
}
.verified svg {
  width: 11px;
  height: 11px;
}
.review .stars {
  color: var(--amber);
  letter-spacing: 1px;
  font-size: 13px;
  margin: 6px 0 4px;
}
.review p {
  font-size: 14px;
  color: #d6d6dc;
}
.review-foot {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--ghost);
}
.review-foot button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ghost);
}
.review-foot button.liked {
  color: var(--magenta);
}
.review-foot svg {
  width: 15px;
  height: 15px;
}
.review-foot .reply-toggle {
  color: var(--amber);
  font-weight: 600;
}
.reply-box {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--elevated);
  border-left: 2px solid var(--orange);
  font-size: 13.5px;
  color: #c9c9d0;
}
.reply-box b {
  display: block;
  color: var(--amber);
  font-size: 12.5px;
  margin-bottom: 2px;
}
.locked {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--ghost);
}
.locked svg {
  width: 13px;
  height: 13px;
}
.actionbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 8px;
  padding: 12px 14px 18px;
  background: linear-gradient(180deg, transparent, var(--canvas) 30%);
}
.act {
  height: 48px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
  background: var(--card);
  border: 1px solid var(--border);
}
.act svg {
  width: 17px;
  height: 17px;
}
.act.primary {
  background: var(--sunset);
  border: 0;
}
.venue-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: calc(100% - 32px);
  margin: 14px 16px 0;
  padding: 10px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--border);
}
.venue-link img {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  object-fit: cover;
}
.venue-link .txt {
  flex: 1;
  min-width: 0;
}
.venue-link small {
  display: block;
  color: var(--ghost);
  font-size: 12px;
}

/* ---- Visionneuse de story ---- */
.story-viewer {
  position: absolute;
  inset: 0;
  z-index: 60;
  background: #000;
  animation: zoomIn 0.3s var(--ease-out);
}
@keyframes zoomIn {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
}
.story-viewer > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story-viewer .shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 22%, transparent 75%, rgba(0, 0, 0, 0.7));
}
.bars {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  gap: 4px;
  z-index: 2;
}
@media (min-width: 900px) {
  .bars {
    top: 30px;
  }
}
.bars i {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
}
.bars i b {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
}
.bars i.done b {
  width: 100%;
}
.bars i.run b {
  animation: fill 5s linear forwards;
}
@keyframes fill {
  to {
    width: 100%;
  }
}
.story-top {
  position: absolute;
  top: 24px;
  left: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}
@media (min-width: 900px) {
  .story-top {
    top: 42px;
  }
}
.story-top .txt {
  flex: 1;
  font-size: 13px;
  line-height: 1.25;
}
.story-top small {
  color: rgba(255, 255, 255, 0.75);
}
.story-tap {
  position: absolute;
  top: 80px;
  bottom: 90px;
  width: 50%;
  z-index: 1;
}
.story-tap.prev {
  left: 0;
}
.story-tap.next {
  right: 0;
}
.story-bottom {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 22px;
  z-index: 2;
}
.story-bottom button {
  width: 100%;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--orange);
  background: rgba(8, 8, 10, 0.55);
  backdrop-filter: blur(8px);
  color: var(--amber);
  font-weight: 700;
  text-align: center;
}

/* ---- Feuille du bas et message éphémère ---- */
.scrim {
  position: absolute;
  inset: 0;
  z-index: 70;
  background: rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.25s;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
}
.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 71;
  padding: 10px 20px 28px;
  border-radius: 26px 26px 0 0;
  background: var(--elevated);
  border-top: 1px solid var(--border-elevated);
  animation: up 0.35s var(--ease-out);
}
@keyframes up {
  from {
    transform: translateY(100%);
  }
}
.sheet .grab {
  width: 40px;
  height: 4px;
  border-radius: 4px;
  background: var(--border-elevated);
  margin: 0 auto 16px;
}
.sheet .ic {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 85, 0, 0.15);
  color: var(--amber);
  margin-bottom: 12px;
}
.sheet .ic svg {
  width: 22px;
  height: 22px;
}
.sheet h3 {
  font-size: 20px;
}
.sheet p {
  color: var(--muted);
  font-size: 14.5px;
  margin-top: 6px;
  line-height: 1.5;
}
.sheet .btns {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}
.sheet .btns a,
.sheet .btns button {
  height: 50px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}
.sheet .btns a {
  background: var(--sunset);
}
.sheet .btns button {
  color: var(--muted);
}
.toast {
  position: absolute;
  left: 50%;
  bottom: 96px;
  z-index: 80;
  transform: translateX(-50%);
  max-width: calc(100% - 40px);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #08080a;
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  animation: up2 0.3s var(--ease-out);
}
@keyframes up2 {
  from {
    opacity: 0;
    transform: translate(-50%, 12px);
  }
}

/* ---- Profil ---- */
.profile-head {
  text-align: center;
  padding: 10px 16px 0;
}
.avatar-ring {
  width: 96px;
  height: 96px;
  margin: 6px auto 10px;
  border-radius: 50%;
  padding: 3px;
  background: var(--sunset);
}
.avatar-ring span {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--card);
  border: 3px solid var(--canvas);
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 28px;
}
.profile-head h2 {
  font-size: 20px;
}
.profile-head p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 3px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 16px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--border);
}
.stats div {
  padding: 12px 0;
  text-align: center;
}
.stats div + div {
  border-left: 1px solid var(--border);
}
.stats b {
  display: block;
  font-family: "Outfit", sans-serif;
  font-size: 19px;
}
.stats small {
  color: var(--ghost);
  font-size: 11.5px;
}
.points-card {
  margin: 0 16px;
  padding: 16px;
  border-radius: 18px;
  background: var(--sunset);
}
.points-card small {
  opacity: 0.85;
  font-size: 12.5px;
}
.points-card b {
  display: block;
  font-family: "Outfit", sans-serif;
  font-size: 34px;
  line-height: 1.1;
}
.badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 0 16px;
}
.badge-tile {
  padding: 12px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--border);
}
.badge-tile .medal {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sunset);
  margin-bottom: 8px;
}
.badge-tile .medal svg {
  width: 17px;
  height: 17px;
}
.badge-tile.todo .medal {
  background: var(--elevated);
  color: var(--ghost);
}
.badge-tile b {
  display: block;
  font-size: 14px;
}
.badge-tile small {
  color: var(--ghost);
  font-size: 12px;
}
.meter {
  height: 5px;
  border-radius: 5px;
  background: var(--elevated);
  margin-top: 8px;
  overflow: hidden;
}
.meter i {
  display: block;
  height: 100%;
  background: var(--sunset);
}
.demo-note {
  margin: 20px 16px 0;
  padding: 16px;
  border-radius: 18px;
  border: 1px dashed var(--border-elevated);
  color: var(--muted);
  font-size: 14px;
}
.demo-note b {
  display: block;
  color: var(--text);
  font-size: 15px;
  margin-bottom: 4px;
}
.demo-note a {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 48px;
  margin-top: 12px;
  border-radius: 999px;
  background: var(--sunset);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

/* Notifications */
.notif {
  display: flex;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.notif .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--magenta);
  margin-top: 6px;
  flex: none;
}
.notif.read .dot {
  background: transparent;
}
.notif b {
  display: block;
  font-size: 14px;
}
.notif p {
  color: var(--muted);
  font-size: 13.5px;
}
.notif small {
  color: var(--ghost);
  font-size: 11.5px;
}
.sub-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
}
@media (min-width: 900px) {
  .sub-head {
    padding-top: 34px;
  }
}
.sub-head h2 {
  flex: 1;
  text-align: center;
  font-size: 18px;
  margin-right: 40px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition: none !important;
  }
  .bars i.run b {
    animation: none;
    width: 100%;
  }
}

/* Pastille de statut sur la couverture d'un événement : texte en casse normale. */
.cover-tag {
  align-self: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--orange);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}
.filter-dot {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 10px;
}
.sheet-label {
  margin-top: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ghost);
}
.sheet-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
