/* ───────────── Base ───────────── */
:root {
  --bg: #0e0e10;
  --bg-2: #18181b;
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.78);
  --text-3: rgba(255, 255, 255, 0.5);
  --line: rgba(255, 255, 255, 0.1);
  --accent: #00aff0;
  --accent-2: #0a8fd1;
  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: #050506; }
body {
  font-family: var(--font);
  color: var(--text);
  background: #050506;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }

/* Colonne type « appli » : pleine largeur sur téléphone, centrée sur ordinateur */
.app {
  position: relative;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  overflow: hidden;
}
@media (min-width: 520px) {
  body {
    background:
      radial-gradient(1200px 600px at 50% -10%, rgba(0, 175, 240, 0.12), transparent 60%),
      #050506;
  }
  .app { box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(0, 0, 0, 0.6); }
}

/* ───────────── Couverture ───────────── */
.hero { position: relative; height: 62vh; min-height: 440px; max-height: 640px; }
.page-gate .hero { height: 52vh; min-height: 380px; }
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 20%;
}
.hero::after {
  content: ""; position: absolute; inset: 0 0 -2px;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, transparent 18%),
    linear-gradient(to bottom, transparent 45%, rgba(14, 14, 16, 0.75) 75%, var(--bg) 97%);
}
.hero-text {
  position: absolute; left: 0; right: 0; bottom: 14px; z-index: 2;
  text-align: center; padding: 0 20px;
}
.name {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 34px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.1;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}
.verified { width: 24px; height: 24px; flex: none; }
.online {
  position: relative; width: 12px; height: 12px; flex: none; margin-left: 2px;
  border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 2.5px rgba(14, 14, 16, 0.85);
}
.online::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: #22c55e; animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: 0.7; } 80%, 100% { transform: scale(2.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .online::after { animation: none; } }
.handle { margin-top: 2px; font-size: 15px; font-weight: 500; color: var(--text-2); }

/* Langues */
.langs {
  position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; z-index: 3;
  display: flex; gap: 2px; padding: 3px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.langs a { font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.75); padding: 5px 7px; border-radius: 999px; }
.langs a[aria-current] { background: #fff; color: #000; }

/* ───────────── Contenu ───────────── */
.content { position: relative; z-index: 2; padding: 6px 16px calc(28px + env(safe-area-inset-bottom)); }

/* Rangée d'icônes rondes */
.socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 4px 0 18px; }
.social {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: #000;
  transition: transform 0.15s ease;
}
.social:active { transform: scale(0.92); }
.social svg { width: 21px; height: 21px; fill: currentColor; }
.social-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); color: #fff; }
.social-tiktok { background: #000; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.social-x { background: #000; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.social-telegram { background: #26a5e4; color: #fff; }
.social-snapchat { background: #fffc00; color: #000; }

.about {
  text-align: center;
  font-size: 15px; font-weight: 500; line-height: 1.5;
  color: var(--text-2);
  margin: 0 6px 20px;
}

/* Grande carte « Contenu exclusif » */
.tiles { display: grid; gap: 12px; }
.tile {
  position: relative; display: block;
  aspect-ratio: 16 / 5; min-height: 96px;
  border-radius: 20px; overflow: hidden;
  isolation: isolate;
  box-shadow: 0 10px 30px rgba(0, 175, 240, 0.18);
  animation: buzz 1.6s ease-in-out 0.8s infinite;
}
.tile:active { animation: none; transform: scale(0.985); }
/* Petite vibration douce toutes les ~1,6 s */
@keyframes buzz {
  0%, 60%, 100% { transform: none; }
  64% { transform: translateX(-2px) rotate(-0.6deg); }
  70% { transform: translateX(2px) rotate(0.6deg); }
  76% { transform: translateX(-2px) rotate(-0.4deg); }
  82% { transform: translateX(1px) rotate(0.3deg); }
  88% { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .tile { animation: none; } }
.tile-bg { position: absolute; inset: -16px; width: calc(100% + 32px); height: calc(100% + 32px); object-fit: cover; object-position: center 25%; filter: blur(14px) saturate(1.1); }
.tile-shade { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(0, 175, 240, 0.55), rgba(5, 40, 80, 0.75)); }
.tile-row {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 0 16px;
}
.tile-lock svg { width: 38px; height: 38px; flex: none; color: #fff; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3)); }
.tile-cta {
  flex: none;
  padding: 11px 18px; border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
}

/* Cartes blanches façon liste */
.cards { display: grid; gap: 10px; margin-top: 12px; }
.card {
  display: flex; align-items: center; gap: 12px;
  min-height: 64px; padding: 10px 12px;
  border-radius: 16px;
  background: #fff; color: #111;
  transition: transform 0.15s ease;
}
.card:active { transform: scale(0.985); }
.card-ico { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; }
.card-ico.social-tiktok, .card-ico.social-x { box-shadow: none; }
.card-ico svg { width: 21px; height: 21px; fill: currentColor; }
.card-body { flex: 1; min-width: 0; text-align: center; display: flex; flex-direction: column; }
.card-title { font-size: 15.5px; font-weight: 700; }
.card-sub { font-size: 12.5px; font-weight: 500; color: #666; }
.card-more { width: 20px; height: 20px; flex: none; fill: #9a9a9a; }

/* Galerie */
.gallery { margin-top: 26px; }
.section-title { font-size: 20px; font-weight: 700; margin: 0 2px 12px; }
.gallery-track {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track img { width: 38%; flex: none; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px; scroll-snap-align: start; }

/* ───────────── Entrée ───────────── */
.gate-card {
  margin-top: 8px;
  background: #fff; color: #111;
  border-radius: 24px;
  padding: 26px 20px 20px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.gate-card h2 { font-size: 24px; font-weight: 700; }
.gate-card p { margin-top: 4px; font-size: 14.5px; line-height: 1.5; color: #666; }
.btn {
  display: grid; place-items: center;
  width: 100%; min-height: 52px; border-radius: 14px;
  border: 0; cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 600;
  transition: transform 0.15s ease, background 0.15s;
}
.btn:active { transform: scale(0.985); }
.btn-primary { margin-top: 18px; background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(0, 175, 240, 0.35); }
.btn-primary:hover { background: var(--accent-2); }
.btn-light { background: #f0f0f2; color: #222; }
.btn-light:hover { background: #e6e6ea; }

/* ───────────── Fenêtre « Contenu sensible » ───────────── */
html.no-scroll, html.no-scroll body { overflow: hidden; }
.popup {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 0.2s ease;
}
.popup[hidden] { display: none; }
.popup.open { opacity: 1; }
.popup-card {
  width: 100%; max-width: 360px;
  background: #fff; color: #111;
  border-radius: 24px;
  padding: 26px 20px 20px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transform: translateY(12px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.popup.open .popup-card { transform: none; }
.popup-ico {
  width: 52px; height: 52px; margin: 0 auto 12px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #f0f0f2; color: #111;
}
.popup-ico svg { width: 24px; height: 24px; }
.popup-card h2 { font-size: 20px; font-weight: 700; }
.popup-card p { margin-top: 6px; font-size: 14px; line-height: 1.55; color: #666; }
.popup-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.popup-actions .btn { margin-top: 0; min-height: 48px; }

/* Aide « ouvrir dans le navigateur » */
.hint { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: #f3f3f5; color: #333; font-size: 13.5px; line-height: 1.5; text-align: center; }
.page-links .hint { background: var(--bg-2); color: var(--text-2); }
.hint a { display: inline-block; margin-top: 6px; color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.foot { margin-top: 30px; text-align: center; font-size: 12px; color: var(--text-3); }

a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Apparition douce */
.content > * { animation: up 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
.content > *:nth-child(2) { animation-delay: 0.06s; }
.content > *:nth-child(3) { animation-delay: 0.12s; }
.content > *:nth-child(4) { animation-delay: 0.18s; }
.content > *:nth-child(5) { animation-delay: 0.24s; }
@keyframes up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .content > * { animation: none; } }
