/* =========================================================
   Près de Toi — Landing page
   Design tokens + components
   ========================================================= */

:root {
  /* Surfaces */
  --bg:              #0A0810;
  --bg-header:       #0C0913;
  --bg-footer:       #08060D;
  --surface:         #0D0A14;
  --surface-phone:   #1A1424;
  --surface-act:     #1F172B;
  --surface-badge:   #171221;

  /* Brand */
  --rose:            #FF2E7E;
  --rose-soft:       #FF4D96;
  --rose-text:       #FFC9DE;
  --rose-dim:        #FF7FB2;
  --violet:          #8C4DFF;
  --grad:            linear-gradient(90deg, #FF2E7E 0%, #8C4DFF 100%);

  /* Text */
  --text:            #A79FB8;
  --text-strong:     #B0A7BE;
  --text-faint:      #8A8199;
  --text-mute:       #7A7188;
  --text-copy:       #6F677D;
  --text-on-dark:    #9A93A8;
  --white:           #FFFFFF;
  --amber:           #FFC44D;

  /* Lines */
  --line:            rgba(255, 255, 255, .08);
  --line-2:          rgba(255, 255, 255, .12);
  --line-3:          rgba(255, 255, 255, .14);
  --line-4:          rgba(255, 255, 255, .24);

  /* Type */
  --font-display: "Anton", "Arial Narrow", Impact, sans-serif;
  --font-serif:   "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body:    "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --page-max: 1440px;
  --gutter:   64px;

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ============================ Reset ============================ */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 24px;
  top: -100px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--rose);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 20px; }

/* ============================ Buttons ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}

.btn--gradient {
  background: var(--grad);
  color: var(--white);
  box-shadow: 0 6px 22px -4px rgba(255, 46, 126, .35);
}
.btn--gradient.btn--lg { box-shadow: 0 10px 30px -6px rgba(255, 46, 126, .5); }

.btn--gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -6px rgba(255, 46, 126, .55);
}
.btn--gradient:active { transform: translateY(0); }

.btn--ghost {
  color: var(--white);
  border: 1.5px solid var(--line-4);
  background: transparent;
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, .06);
  transform: translateY(-2px);
}

.btn--sm { padding: 12px 22px; font-size: 15px; }
.btn--lg { padding: 18px 34px; font-size: 17px; }
.btn--ghost.btn--lg { padding: 18px 30px; }

/* ============================ Header ============================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), backdrop-filter .25s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--page-max);
  height: 88px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .2px;
  color: var(--white);
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-strong);
  transition: color .2s var(--ease);
}
.nav__link:hover { color: var(--white); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: none;
}
.login {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  transition: color .2s var(--ease);
}
.login:hover { color: var(--rose-text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
}
.nav-toggle__bar {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.site-header.is-open .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.is-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================ Hero ============================ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 880px;
  padding: 64px 96px;
  background: var(--bg);
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: drift 18s var(--ease) infinite alternate;
}
.hero__glow--rose {
  width: 760px;
  height: 760px;
  left: -200px;
  top: -240px;
  background: radial-gradient(circle, rgba(255, 46, 126, .38) 0%, rgba(255, 46, 126, 0) 100%);
}
.hero__glow--violet {
  width: 820px;
  height: 820px;
  left: 720px;
  top: 180px;
  background: radial-gradient(circle, rgba(122, 64, 255, .38) 0%, rgba(122, 64, 255, 0) 100%);
  animation-delay: -6s;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(40px, 30px, 0) scale(1.08); }
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 48px;
  width: 100%;
  max-width: calc(var(--page-max) - 192px);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 580px;
  flex: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 9px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 46, 126, .1);
  border: 1px solid rgba(255, 102, 166, .32);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2px;
  color: var(--rose-text);
}
.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--rose);
  box-shadow: 0 0 10px rgba(255, 46, 126, .9);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .55; transform: scale(.82); }
}

.hero__title {
  display: flex;
  flex-direction: column;
  font-weight: 400;
}
.hero__line {
  font-family: var(--font-display);
  font-size: clamp(46px, 5.84vw, 84px);
  line-height: 1;
  letter-spacing: -2px;
  color: var(--white);
  text-transform: uppercase;
}
.hero__flourish {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1.08;
  color: var(--rose-soft);
  text-shadow:
    0 0 70px rgba(255, 77, 153, .10),
    0 0 34px rgba(255, 77, 153, .22),
    0 0 16px rgba(255, 89, 166, .45),
    0 0 6px  rgba(255, 128, 191, .70);
}

.hero__sub {
  max-width: 560px;
  font-size: clamp(16px, 1.26vw, 18px);
  line-height: 1.72;
  color: var(--text);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 14px;
  background: var(--surface-badge);
  border: 1px solid var(--line-2);
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.store-badge:hover { transform: translateY(-2px); background: #1D1729; }
.store-badge__icon { width: 22px; height: 22px; flex: none; }
.store-badge__icon--play { width: 20px; height: 20px; }
.store-badge__text { display: flex; flex-direction: column; gap: 1px; }
.store-badge__kicker { font-size: 9px; font-weight: 500; color: var(--text-on-dark); }
.store-badge__title  { font-size: 15px; font-weight: 700; color: var(--white); }

.trust {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.trust__avatars {
  display: flex;
  align-items: center;
  flex: none;
}
.trust__avatars span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: url("assets/avatars.jpg") no-repeat;
  background-size: 300% 100%;
  box-shadow: 0 0 0 2px var(--bg);
}
.trust__avatars span:nth-child(1) { background-position: 0% 50%; }
.trust__avatars span:nth-child(2) { background-position: 50% 50%; margin-left: -10px; }
.trust__avatars span:nth-child(3) { background-position: 100% 50%; margin-left: -10px; }
.trust__star { width: 15px; height: 15px; flex: none; }
.trust__text { font-size: 14px; font-weight: 600; color: var(--text-strong); }

/* ---------------------- Hero visual ---------------------- */
.hero__visual-wrap {
  --vs: 1;
  width: calc(620px * var(--vs));
  height: calc(700px * var(--vs));
  flex: none;
  margin-left: auto;
}

.hero__visual {
  position: relative;
  width: 620px;
  height: 700px;
  transform: scale(var(--vs));
  transform-origin: top left;
}

.visual__glow {
  position: absolute;
  left: 34px;
  top: 90px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255, 46, 126, .30) 0%,
    rgba(140, 77, 255, .22) 55%,
    rgba(140, 77, 255, 0) 100%);
}

/* Phone mockup */
.phone {
  position: absolute;
  left: 160px;
  top: 34px;
  z-index: 2;
  width: 300px;
  height: 620px;
  padding: 9px;
  border-radius: 46px;
  background: var(--surface-phone);
  border: 1.5px solid var(--line-3);
  box-shadow:
    0 30px 70px -14px rgba(255, 46, 126, .32),
    0 22px 50px -12px rgba(0, 0, 0, .75);
}

.phone__screen {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border-radius: 38px;
  background: var(--surface);
  overflow: hidden;
}

.phone__photo { height: 340px; flex: none; }
.phone__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }

.phone__info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  padding: 20px;
}

.phone__name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 23px;
  font-weight: 800;
  color: var(--white);
}
.phone__verified { width: 18px; height: 18px; flex: none; }

.chip {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 46, 126, .14);
  font-size: 12px;
  font-weight: 600;
  color: var(--rose-dim);
}
.chip__icon { width: 13px; height: 13px; flex: none; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-strong);
}

.phone__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: auto;
}
.act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.act svg { width: 24px; height: 24px; }
.act:hover { transform: scale(1.07); }

.act--pass {
  background: var(--surface-act);
  border: 1.5px solid var(--line-3);
}
.act--like {
  background: var(--grad);
  box-shadow: 0 10px 30px -6px rgba(255, 46, 126, .5);
}

/* Floating photo cards */
.photo-card {
  position: absolute;
  z-index: 1;
  width: 196px;
  height: 262px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line-3);
  box-shadow: 0 26px 60px -18px rgba(0, 0, 0, .8);
  animation: float 7s ease-in-out infinite;
}
.photo-card img { width: 100%; height: 100%; object-fit: cover; }
.photo-card--left  { left: 0;   top: 226px; }
.photo-card--right { left: 424px; top: 192px; animation-delay: -3.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

/* Glass chip */
.float-chip {
  position: absolute;
  right: 36px;
  top: 36px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .20);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 26px -6px rgba(0, 0, 0, .5);
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
}
.float-chip__icon { width: 14px; height: 14px; flex: none; }

/* ============================ Footer ============================ */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  padding: 84px var(--gutter) 40px;
  background: var(--bg-footer);
  overflow: hidden;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  width: 100%;
  max-width: calc(var(--page-max) - 128px);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 340px;
  flex: none;
}
.footer__brand-row { display: flex; align-items: center; gap: 10px; }
.footer__mark { width: 26px; height: 26px; flex: none; }
.footer__wordmark { font-size: 19px; font-weight: 800; color: var(--white); }
.footer__tagline { font-size: 14px; line-height: 1.72; color: var(--text-faint); }

.footer__badges { display: flex; flex-wrap: wrap; gap: 10px; }
.mini-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--line-2);
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  transition: background-color .2s var(--ease);
}
.mini-badge:hover { background: rgba(255, 255, 255, .13); }
.mini-badge svg { width: 16px; height: 16px; flex: none; }

.footer__links { display: flex; gap: 56px; }
.footer__col { display: flex; flex-direction: column; gap: 14px; }
.footer__col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-mute);
}
.footer__col a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: color .2s var(--ease);
}
.footer__col a:hover { color: var(--white); }

.footer__giant {
  width: 100%;
  font-family: var(--font-display);
  font-size: clamp(56px, 13.9vw, 200px);
  line-height: 1;
  letter-spacing: -4px;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  background: linear-gradient(90deg,
    rgba(255, 46, 126, .24) 0%,
    rgba(255, 255, 255, .10) 50%,
    rgba(140, 77, 255, .22) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer__divider {
  width: 100%;
  max-width: calc(var(--page-max) - 128px);
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--line);
}

.footer__legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: calc(var(--page-max) - 128px);
}
.footer__copyright { font-size: 13px; color: var(--text-copy); }
.footer__social { display: flex; align-items: center; gap: 18px; }
.footer__social a { display: inline-flex; transition: transform .2s var(--ease); }
.footer__social a:hover { transform: translateY(-2px); }
.footer__social svg { width: 18px; height: 18px; }

/* ============================ Entrance ============================
   Load-time stagger only — below-the-fold content is never hidden,
   so the page stays readable without JS and in print/PDF exports. */
@media (prefers-reduced-motion: no-preference) {
  .site-header { animation: fade-in .5s var(--ease) both; }
  .hero__copy > * { animation: rise .7s var(--ease) both; }
  .hero__copy > *:nth-child(1) { animation-delay: .05s; }
  .hero__copy > *:nth-child(2) { animation-delay: .12s; }
  .hero__copy > *:nth-child(3) { animation-delay: .20s; }
  .hero__copy > *:nth-child(4) { animation-delay: .28s; }
  .hero__copy > *:nth-child(5) { animation-delay: .34s; }
  .hero__copy > *:nth-child(6) { animation-delay: .40s; }
  .hero__visual-wrap { animation: rise .9s var(--ease) both; animation-delay: .16s; }
  .float-chip { animation: rise .6s var(--ease) both; animation-delay: .62s; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* ============================ Responsive ============================ */
@media (max-width: 1400px) {
  :root { --gutter: 48px; }
  .hero { padding: 64px 64px; }
  .hero__inner { gap: 32px; }
  .hero__copy { width: 520px; }
  .hero__visual-wrap { --vs: .9; }
}

@media (max-width: 1180px) {
  .hero {
    min-height: 0;
    padding: 72px 48px 88px;
  }
  .hero__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 56px;
  }
  .hero__copy { width: 100%; max-width: 640px; }
  .hero__visual-wrap { --vs: .84; margin: 0 auto; }

  .footer__top { flex-direction: column; gap: 48px; }
  .footer__brand { width: 100%; max-width: 420px; }
}

@media (max-width: 960px) {
  :root { --gutter: 24px; }

  .header__inner { height: 72px; }
  .nav-toggle { display: flex; }
  .login { display: none; }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px 24px 18px;
    background: rgba(12, 9, 19, .97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
  }
  .site-header.is-open .nav { display: flex; }
  .nav__link {
    padding: 15px 0;
    font-size: 16px;
    border-top: 1px solid rgba(255, 255, 255, .06);
  }

  .hero { padding: 56px 24px 72px; }
  .hero__visual-wrap { --vs: .74; }

  .footer__links { flex-wrap: wrap; gap: 40px 48px; }
  .footer__giant { letter-spacing: -2px; }
  .footer__legal { flex-direction: column; align-items: flex-start; gap: 18px; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }

  /* Compact header so the nav toggle always fits */
  .header__inner { gap: 12px; }
  .brand { gap: 8px; }
  .brand__mark { width: 26px; height: 26px; }
  .brand__name { font-size: 18px; }
  .btn--sm { padding: 10px 16px; font-size: 14px; }
  .nav-toggle { width: 40px; padding: 0 8px; }

  /* Hero visual: phone only — decorative cards dropped, chip moves below */
  .hero__visual-wrap { --vs: 1; width: 300px; height: auto; margin: 0 auto; }
  .hero__visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 300px;
    height: auto;
    transform: none;
  }
  .phone { position: static; }
  .visual__glow { left: -120px; top: -60px; }
  .photo-card { display: none; }
  .float-chip { position: static; }

  .cta-row .btn { width: 100%; }
  .store-badge { flex: 1 1 auto; justify-content: center; }

  .site-footer { padding: 64px 20px 32px; gap: 48px; }
  .footer__links { gap: 32px 40px; }
}

/* ============================ A11y / motion ============================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* =========================================================
   Profils à proximité — carrousel
   ========================================================= */
.nearby {
  position: relative;
  padding: 88px 96px 92px;
  overflow: hidden;
}
.nearby__glow {
  position: absolute;
  top: -150px;
  left: 50%;
  width: 920px;
  height: 620px;
  margin-left: -460px;
  background: radial-gradient(circle, rgba(140, 77, 255, .22) 0%, rgba(140, 77, 255, 0) 70%);
  pointer-events: none;
}
.nearby__head {
  position: relative;
  z-index: 1;
  max-width: calc(var(--page-max) - 192px);
  margin: 0 auto 34px;
}
.nearby__kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--rose-text);
}
.nearby__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 4px rgba(255, 46, 126, .18);
  animation: nearbyPulse 1.8s var(--ease) infinite;
}
@keyframes nearbyPulse {
  0%, 100% { opacity: .6; transform: scale(.9); }
  50%      { opacity: 1;  transform: scale(1.1); }
}
.nearby__title {
  margin: 16px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(32px, 3.4vw, 48px);
  line-height: 1.04;
  letter-spacing: -.5px;
  text-transform: uppercase;
  color: var(--white);
}
.nearby__sub {
  max-width: 560px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
}

.nearby__carousel {
  position: relative;
  z-index: 1;
  max-width: calc(var(--page-max) - 192px);
  margin: 0 auto;
}
.nearby__viewport {
  overflow: hidden;
  padding: 6px 0 12px;
  cursor: grab;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26px, #000 calc(100% - 26px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 26px, #000 calc(100% - 26px), transparent 100%);
}
.nearby__viewport.is-dragging { cursor: grabbing; }
.nearby__viewport img { -webkit-user-drag: none; }
.nearby__track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.nearby__group {
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0 18px 0 0;
  list-style: none;
}

.nearby-card {
  flex: 0 0 auto;
  width: 250px;
}
.nearby-card__hit {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 22px;
  background: linear-gradient(180deg, #17111F, #100B18);
  text-align: left;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.nearby-card__hit:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 46, 126, .45);
  box-shadow: 0 18px 38px -18px rgba(255, 46, 126, .5);
}
.nearby-card__media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--surface-phone);
}
.nearby-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.nearby-card__hit:hover .nearby-card__media img { transform: scale(1.05); }
.nearby-card__live {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(10, 8, 16, .68);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 11px;
  font-weight: 700;
  color: var(--white);
}
.nearby-card__live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #37D67A;
  box-shadow: 0 0 0 3px rgba(55, 214, 122, .22);
}
.nearby-card__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 15px 16px;
}
.nearby-card__name {
  font-size: 16px;
  font-weight: 800;
  color: var(--white);
}
.nearby-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--rose-dim);
}
.nearby-card__meta svg { width: 13px; height: 13px; flex: none; }
.nearby-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--grad);
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
}

/* =========================================================
   Modale « Télécharger l'APK »
   ========================================================= */
.apk-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 18px;
}
.apk-modal[hidden] { display: none !important; }
.apk-modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(7, 3, 12, .82);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}
.apk-modal__card {
  position: relative;
  z-index: 2;
  width: min(100%, 390px);
  padding: 28px 21px 19px;
  border: 1px solid var(--line-3);
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 0%, rgba(140, 77, 255, .2), transparent 35%),
    linear-gradient(165deg, #2B1737, #150C20 70%);
  box-shadow: 0 25px 75px rgba(0, 0, 0, .58);
  text-align: center;
}
.apk-modal__close {
  position: absolute;
  top: 11px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 50%;
  background: rgba(255, 255, 255, .055);
  color: rgba(255, 255, 255, .72);
  font-size: 19px;
  line-height: 1;
}
.apk-modal__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 13px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 19px;
  background: linear-gradient(135deg, var(--rose), var(--violet));
  box-shadow: 0 13px 28px rgba(221, 63, 151, .24);
  font-size: 29px;
}
.apk-modal__title {
  margin: 0 30px 9px;
  font-size: 23px;
  line-height: 1.18;
  letter-spacing: -.4px;
  color: var(--white);
}
.apk-modal__copy {
  margin: 0 auto;
  color: #EADCEA;
  font-size: 14px;
  line-height: 1.5;
}
.apk-modal__tips {
  display: block;
  margin: 15px 0;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 15px;
  background: rgba(255, 255, 255, .045);
  text-align: left;
}
.apk-modal__tips strong { display: block; margin-bottom: 4px; color: #fff; font-size: 13px; }
.apk-modal__tips span { display: block; color: #D4C4D6; font-size: 12px; line-height: 1.48; }
.apk-modal__primary,
.apk-modal__cancel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border-radius: 15px;
  font-size: 13px;
  font-weight: 700;
}
.apk-modal__primary {
  border: 1px solid rgba(255, 255, 255, .18);
  background: linear-gradient(110deg, var(--rose), #E74DB8 52%, var(--violet));
  box-shadow: 0 12px 27px rgba(221, 63, 151, .22);
  color: #fff;
}
.apk-modal__primary:disabled { opacity: .58; cursor: wait; }
.apk-modal__cancel {
  min-height: 40px;
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .018);
  color: var(--text-faint);
}
.apk-modal__status {
  min-height: 17px;
  margin: 5px 0 0;
  color: #FFC0D5;
  font-size: 12px;
  line-height: 1.4;
}
html.apk-modal-open { overscroll-behavior: contain; }

@media (max-width: 960px) {
  .nearby { padding: 64px 22px 72px; }
  .nearby__head { margin-bottom: 24px; }
  .nearby-card { width: 214px; }
  .nearby__group { gap: 14px; padding-right: 14px; }
}


/* =========================================================
   Consentement cookies publicitaires — Meta Pixel
   ========================================================= */
.meta-consent[hidden] { display: none !important; }
.meta-consent {
  position: fixed;
  z-index: 10001;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: min(760px, calc(100% - 36px));
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 20px;
  background: rgba(20, 12, 29, .97);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .48);
  color: #F7EFFA;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.meta-consent__copy { min-width: 0; }
.meta-consent__copy h2 {
  margin: 0 0 6px;
  color: #FFFFFF;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 800;
}
.meta-consent__copy p {
  margin: 0;
  color: #D8CBDD;
  font-size: 12px;
  line-height: 1.55;
}
.meta-consent__actions {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}
.meta-consent__button {
  min-height: 42px;
  padding: 0 15px;
  border-radius: 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.meta-consent__button--secondary {
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .04);
  color: #F7EFFA;
}
.meta-consent__button--primary {
  border: 1px solid transparent;
  background: linear-gradient(110deg, var(--rose), #E74DB8 52%, var(--violet));
  color: #FFFFFF;
}
.meta-consent__button:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 3px;
}
@media (max-width: 620px) {
  .meta-consent {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: calc(100% - 24px);
    padding: 17px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .meta-consent__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .meta-consent__button { min-height: 44px; }
}
