@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ════════════════════════════════════════
   THÈME : NOIR + JAUNE VIF
════════════════════════════════════════ */
:root {
  --yellow:      #ffe600;   /* jaune vif : accents */
  --yellow-deep: #ffd000;   /* hover / dégradés */
  --yellow-dim:  rgba(255, 230, 0, 0.12);
  --yellow-line: rgba(255, 230, 0, 0.35);

  --bg:       #1c1c1c;      /* carte principale */
  --surface:  #262626;      /* cartes intérieures */
  --surface2: #303030;      /* éléments dans les cartes */
  --line:     rgba(255, 255, 255, 0.09);

  --text:  #f5f5f2;
  --text2: #b4b4a8;
  --text3: #76766b;

  --radius:    20px;
  --radius-sm: 14px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #101010;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── ENCADRÉ (cadre sombre, écran noir) ── */
.phone-frame {
  position: relative;
  width: min(600px, calc(100vw - 32px));
  min-height: calc(100vh - 48px);
  margin: 24px auto;
  background:
    radial-gradient(420px 260px at 50% 0%, rgba(255,230,0,0.09), transparent 70%),
    var(--bg);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
}

/* une seule carte : le contenu est directement dedans, la page défile */
.phone-screen {
  position: relative;
  padding: 0 18px;
}

/* bandeau pédagogique */
.edu-banner {
  position: sticky;
  top: 10px;
  z-index: 40;
  width: fit-content;
  max-width: calc(100% - 32px);
  margin: 10px auto 0;
  padding: 6px 14px;
  background: var(--yellow);
  color: #111;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 22px;
  position: relative;
}

/* ── HERO ── */
.hero {
  padding: 48px 0 28px;
  text-align: center;
}

.hero > .container > * {
  opacity: 0;
  animation: rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero > .container > .ghost-icon   { animation-delay: 0.05s; }
.hero > .container > .brand-title  { animation-delay: 0.15s; }
.hero > .container > .hero-sub     { animation-delay: 0.25s; }
.hero > .container > .badge-row    { animation-delay: 0.35s; }
.hero > .container > .access-card  { animation-delay: 0.45s; }
.hero > .container > .pricing-card { animation-delay: 0.55s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ghost-icon {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin: 0 auto 18px;
  font-size: 2.6rem;
  background: var(--yellow);
  border-radius: 26px;
  box-shadow: 0 0 0 6px var(--yellow-dim), 0 12px 40px rgba(255,230,0,0.25);
}

.brand-title {
  font-size: clamp(2.1rem, 6vw, 3rem);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.05;
  color: var(--yellow);
  margin-bottom: 14px;
}

.hero-sub {
  font-size: clamp(0.95rem, 2.2vw, 1.08rem);
  font-weight: 600;
  color: var(--text);
  max-width: 460px;
  margin: 0 auto 24px;
  line-height: 1.5;
}

/* ── BADGES ── */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}
.badge {
  background: var(--yellow-dim);
  border: 1px solid var(--yellow-line);
  color: var(--yellow);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.78rem;
  font-weight: 700;
}
.badge.badge-counter {
  background: var(--surface2);
  border-color: var(--line);
  color: var(--text2);
}

/* ── CARTES ── */
.access-card,
.pricing-card,
.feature-card,
.quiz-wrapper,
.res-card,
.res-header,
.res-stat-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.access-card:hover,
.pricing-card:hover,
.res-stat-item:hover {
  border-color: var(--yellow-line);
}

.access-card {
  padding: 16px 20px;
  margin-bottom: 12px;
  text-align: left;
  background: rgba(100, 30, 20, 0.3);
  border: 1px solid rgba(180, 60, 40, 0.35);
  border-radius: var(--radius-sm);
}
.access-card:hover {
  border-color: rgba(180, 60, 40, 0.6);
  box-shadow: 0 8px 24px rgba(180, 60, 40, 0.12);
}
.access-card-title { font-size: 0.82rem; font-weight: 800; margin-bottom: 6px; }
.access-card-desc  { font-size: 0.78rem; color: var(--text); line-height: 1.55; }

.pricing-card {
  padding: 22px 26px;
  text-align: center;
  margin-bottom: 8px;
}
.pricing-title { font-size: 1.05rem; font-weight: 800; margin-bottom: 4px; color: var(--yellow); }
.pricing-desc  { font-size: 0.86rem; color: var(--text2); }

/* ── FEATURES ── */
.features { padding: 0 0 40px; }

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.feature-card {
  padding: 16px 12px;
  text-align: center;
  border-radius: var(--radius-sm);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.25s, box-shadow 0.25s;
}
.feature-card.visible { opacity: 1; transform: translateY(0); }
.feature-card.visible:hover {
  border-color: var(--yellow-line);
  box-shadow: 0 8px 24px rgba(255,230,0,0.08);
}
.feature-card:nth-child(2) { transition-delay: 0.08s; }
.feature-card:nth-child(3) { transition-delay: 0.16s; }
.feature-card:nth-child(4) { transition-delay: 0.24s; }

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
}
.feature-icon.red    { background: #e02424; }
.feature-icon.purple { background: #9333ea; }
.feature-icon.blue   { background: #2563eb; }
.feature-icon.teal   { background: #10b981; }

.feature-card h3 { font-size: 0.8rem; font-weight: 800; margin-bottom: 2px; }
.feature-card p  { font-size: 0.68rem; color: var(--text2); line-height: 1.4; }

/* ── ANON NOTICE ── */
.anon-notice {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  text-align: center;
  margin-bottom: 12px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.anon-notice.visible { opacity: 1; transform: translateY(0); }
.anon-check { font-size: 0.8rem; margin-right: 4px; }
.anon-notice strong { font-size: 0.8rem; font-weight: 800; color: #10b981; }
.anon-notice p { font-size: 0.7rem; color: var(--text2); margin-top: 2px; }

/* ── QUIZ ── */
.quiz-wrapper {
  padding: 18px 20px;
  margin-bottom: 14px;
  min-height: 0;
  border-radius: var(--radius-sm);
}

.quiz-progress-bar {
  height: 4px;
  background: var(--surface2);
  border-radius: 999px;
  margin-bottom: 8px;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  width: 25%;
  background: var(--yellow);
  border-radius: 999px;
  transition: width 0.5s ease;
}
.quiz-progress-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text3);
  text-align: right;
  margin-bottom: 10px;
}

.quiz-step {
  display: none;
  text-align: center;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.quiz-step.active { display: block; opacity: 1; transform: translateX(0); }
.quiz-step.exit   { opacity: 0; transform: translateX(-24px); }

.quiz-icon { font-size: 1.6rem; margin-bottom: 6px; line-height: 1.2; }

.quiz-question {
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 14px;
}
.quiz-highlight { color: var(--yellow); }

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 320px;
  margin: 0 auto;
}

.quiz-btn {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.quiz-btn.yes {
  background: var(--yellow);
  color: #111;
  border: 2px solid var(--yellow);
}
.quiz-btn.yes:hover {
  background: var(--yellow-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,230,0,0.28);
}
.quiz-btn.no {
  background: transparent;
  color: var(--text2);
  border: 2px solid var(--line);
}
.quiz-btn.no:hover { border-color: var(--text3); color: var(--text); transform: translateY(-2px); }

.quiz-legal {
  font-size: 0.74rem;
  color: var(--text3);
  line-height: 1.55;
  margin: 0 auto 12px;
  max-width: 360px;
}

/* ── CTA ── */
.cta-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.cta-block.active { opacity: 1; transform: translateY(0); }

.cta-ready {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text2);
  text-align: center;
}

.snap-input {
  width: 100%;
  padding: 16px 18px;
  background: var(--surface2);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.snap-input::placeholder { color: var(--text3); }
.snap-input:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 4px var(--yellow-dim);
}

.cta-btn {
  width: 100%;
  padding: 17px;
  background: var(--yellow);
  color: #111;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1.02rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.cta-btn:hover {
  background: var(--yellow-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255,230,0,0.3);
}
.cta-sub { font-size: 0.76rem; color: var(--text3); text-align: center; }

/* ── FOOTER ── */
footer {
  padding: 28px 0 32px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--text3);
  font-size: 0.8rem;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 10px;
  flex-wrap: wrap;
}
footer a { color: var(--text2); font-weight: 600; text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--yellow); }

/* ════════════════════════════════════════
   PAGE DE RÉSULTATS
════════════════════════════════════════ */
.results-section {
  padding: 36px 0 56px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.results-section.visible { opacity: 1; transform: translateY(0); }

.res-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  margin-bottom: 14px;
}
.res-avatar-wrap { position: relative; flex-shrink: 0; }
.res-avatar {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  font-size: 1.9rem;
  background: var(--surface2);
  border: 2px solid var(--yellow);
  border-radius: 50%;
}
.res-online-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background: var(--yellow);
  border: 2px solid var(--surface);
  border-radius: 50%;
}
.res-header-info { flex: 1; }
.res-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.res-username {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--yellow);
  margin-bottom: 8px;
  word-break: break-all;
}
.res-badges-row { display: flex; flex-wrap: wrap; gap: 6px; }
.res-badge,
.res-badge.green, .res-badge.yellow, .res-badge.blue {
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--yellow-dim);
  color: var(--yellow);
  border: 1px solid var(--yellow-line);
}

.res-card { padding: 22px; margin-bottom: 14px; }
.res-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.res-card-head h3 {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 800;
}
.res-card-icon { font-size: 1.15rem; }
.res-count-pill {
  background: var(--yellow);
  color: #111;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 9px;
}
.res-lock-badge {
  background: var(--yellow-dim);
  border: 1px solid var(--yellow-line);
  color: var(--yellow);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  white-space: nowrap;
}

/* score */
.res-score-card { border-color: var(--yellow-line); }
.res-score-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.res-score-header h3 { flex: 1; font-size: 1rem; font-weight: 800; }
.res-score-value { font-size: 1.8rem; font-weight: 900; line-height: 1; color: var(--yellow); }
.res-score-max { font-size: 0.9rem; color: var(--text3); font-weight: 600; }
.res-score-bar-wrap {
  height: 10px;
  background: var(--surface2);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}
.res-score-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--yellow-deep), var(--yellow));
  border-radius: 999px;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.res-score-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.res-tag {
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text2);
  padding: 5px 12px;
}
.res-tag.active { background: var(--yellow-dim); border-color: var(--yellow-line); color: var(--yellow); }

/* stats */
.res-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.res-stat-item { padding: 16px 8px; text-align: center; border-radius: var(--radius-sm); }
.res-stat-icon  { font-size: 1.2rem; margin-bottom: 4px; }
.res-stat-val   { font-size: 1.4rem; font-weight: 900; color: var(--yellow); }
.res-stat-label { font-size: 0.7rem; color: var(--text3); }

/* amis */
.friends-grid { display: flex; flex-direction: column; gap: 10px; }
.friend-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--surface2);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, transform 0.2s;
}
.friend-item:hover { border-color: var(--yellow-line); transform: translateY(-1px); }
.friend-avatar-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  background: var(--yellow-dim);
  border: 1px solid var(--yellow-line);
  border-radius: 50%;
}
.friend-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.friend-name { font-size: 0.92rem; font-weight: 800; line-height: 1.3; }
.friend-meta { font-size: 0.76rem; color: var(--text3); }
.blurred-text { filter: blur(5px); user-select: none; }
.friends-more-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.friends-more-avatars { display: flex; }
.friends-more-avatars span { font-size: 1.05rem; margin-right: -4px; filter: grayscale(1) opacity(0.5); }
.friends-more-label { font-size: 0.8rem; color: var(--text3); }

/* snaps */
.snaps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.snap-thumb {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background: var(--surface2);
}
.snap-fake-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.snap-color-1 { background: linear-gradient(160deg, #ffe600, #6b5a00); filter: blur(8px) brightness(0.55); }
.snap-color-2 { background: linear-gradient(160deg, #ffd000, #3a3000); filter: blur(8px) brightness(0.5); }
.snap-color-3 { background: linear-gradient(160deg, #fff27a, #5a4a00); filter: blur(8px) brightness(0.5); }
.snap-color-4 { background: linear-gradient(160deg, #ffc400, #2a2200); filter: blur(8px) brightness(0.55); }
.snap-color-5 { background: linear-gradient(160deg, #ffe600, #4a3d00); filter: blur(8px) brightness(0.5); }
.snap-blur-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.25);
}
.snap-blur-overlay span { font-size: 1.4rem; }
.snap-time {
  position: absolute;
  bottom: 6px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.64rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  z-index: 3;
}
.snap-more-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--surface2);
  border: 2px dashed var(--yellow-line);
}
.snap-more-count { font-size: 1.4rem; font-weight: 900; color: var(--yellow); }
.snap-more-thumb .snap-time { position: static; margin-top: 2px; color: var(--text3); }

/* localisation */
.res-loc-card { padding-bottom: 0; overflow: hidden; }
.loc-map-fake {
  position: relative;
  height: 150px;
  margin: 0 -22px;
  background-color: #0f0f0f;
  background-image:
    linear-gradient(rgba(255,230,0,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,230,0,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
}
.loc-blur-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  backdrop-filter: blur(5px);
  background: rgba(10,10,10,0.55);
}
.loc-pin-pulse { position: relative; }
.loc-pin-pulse::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: rgba(255,230,0,0.25);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50%      { transform: scale(1.4); opacity: 0; }
}
.loc-pin { font-size: 2rem; position: relative; }
.loc-address { font-size: 0.85rem; font-weight: 700; }
.loc-updated { font-size: 0.74rem; color: var(--text3); }
.loc-updated strong { color: var(--yellow); }

/* activité */
.activity-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.activity-row:last-child { border-bottom: none; }
.activity-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--yellow);
  box-shadow: 0 0 8px rgba(255,230,0,0.6);
}
.activity-info { flex: 1; display: flex; flex-direction: column; }
.activity-label { font-size: 0.8rem; color: var(--text3); }
.activity-val   { font-size: 0.88rem; font-weight: 800; }
.activity-icon  { font-size: 1rem; }

/* déblocage */
.unlock-block {
  background: linear-gradient(160deg, rgba(255,230,0,0.12), rgba(255,230,0,0.02));
  border: 1px solid var(--yellow-line);
  border-radius: var(--radius);
  padding: 26px 24px;
  margin-top: 6px;
}
.unlock-header { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.unlock-icon { font-size: 2rem; }
.unlock-title { font-size: 1.1rem; font-weight: 800; color: var(--yellow); margin-bottom: 2px; }
.unlock-subtitle { font-size: 0.82rem; color: var(--text2); }
.unlock-subtitle strong { color: var(--text); }
.unlock-features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  margin-bottom: 20px;
}
.unlock-features li { font-size: 0.8rem; color: var(--text2); line-height: 1.4; }
.unlock-btn {
  width: 100%;
  padding: 0;
  background: var(--yellow);
  color: #111;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  margin-bottom: 14px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.unlock-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255,230,0,0.3); }
.unlock-btn-text {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 22px 10px;
  gap: 14px;
}
.unlock-label { font-size: 1rem; font-weight: 800; }
.unlock-price { font-size: 1.3rem; font-weight: 900; }
.unlock-btn-sub {
  width: 100%;
  padding: 9px 22px;
  background: rgba(0,0,0,0.1);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}
.unlock-trust {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.72rem;
  color: var(--text3);
}

/* ════════════════════════════════════════
   FENÊTRES D'INFORMATION
════════════════════════════════════════ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }

.modal-card {
  display: none;
  width: min(420px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 30px 28px 26px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  scrollbar-width: thin;
  scrollbar-color: var(--yellow-line) transparent;
}
.modal-icon { font-size: 2.6rem; text-align: center; margin-bottom: 10px; }
.modal-card h2 {
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 20px;
}
.modal-card h3 { font-size: 0.88rem; font-weight: 800; margin: 16px 0 6px; }
.modal-card p  { font-size: 0.8rem; color: var(--text2); line-height: 1.65; }
.placeholder   { color: var(--yellow); }
.modal-close {
  margin-top: 24px;
  padding: 10px 28px;
  background: var(--yellow);
  color: #111;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.modal-close:hover { background: var(--yellow-deep); transform: translateY(-1px); }

/* ════════════════════════════════════════
   OVERLAY « TERMINAL »
════════════════════════════════════════ */
.term-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.term-overlay.active { display: flex; opacity: 1; }
.term-overlay.exit   { opacity: 0; pointer-events: none; }

.term-window {
  width: 100%;
  max-width: 520px;
  background: #111;
  border: 1px solid var(--yellow-line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 0 0 4px var(--yellow-dim), 0 20px 50px rgba(0,0,0,0.6);
}
.term-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: #1a1a1a;
  border-bottom: 1px solid var(--line);
}
.term-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.term-dot.red    { background: #ffb800; }
.term-dot.yellow { background: var(--yellow); }
.term-dot.green  { background: #fff6a8; }
.term-title {
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.72rem;
  color: var(--text3);
  margin: 0 auto;
}
.term-body {
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.76rem;
  line-height: 1.7;
  padding: 16px 18px;
  min-height: 240px;
  max-height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}
.term-body::-webkit-scrollbar { display: none; }

.term-line {
  display: flex;
  align-items: center;
  white-space: pre-wrap;
  word-break: break-all;
  animation: line-in 0.12s ease forwards;
}
@keyframes line-in {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}
.term-color-white  { color: #ececec; }
.term-color-green  { color: var(--yellow); }
.term-color-yellow { color: #ffb800; }
.term-color-cyan   { color: #fff6a8; }

.term-scan-bar {
  display: inline-block;
  width: 120px;
  height: 10px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
}
.term-scan-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--yellow);
  border-radius: 3px;
  transition: width 0.06s linear;
}
.term-scan-label { color: #ffb800; font-size: 0.74rem; }

.term-progress-wrap {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.term-pct {
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 2rem;
  font-weight: 900;
  color: var(--yellow);
  letter-spacing: -1px;
}
.term-progress-bar-outer {
  width: 100%;
  height: 8px;
  background: var(--surface2);
  border-radius: 999px;
  overflow: hidden;
}
.term-progress-bar-inner {
  height: 100%;
  width: 0;
  background: var(--yellow);
  border-radius: 999px;
  transition: width 0.08s linear;
}

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 600px) {
  .hero { padding: 32px 0 20px; }
  .container { padding: 0 16px; }
  .access-card, .pricing-card { padding: 18px; }
  .quiz-wrapper { padding: 22px 16px; }
  .quiz-question { font-size: 0.95rem; }
  .feature-card { padding: 18px 10px; }
  .res-header { flex-direction: column; text-align: center; }
  .res-badges-row { justify-content: center; }
  .res-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .unlock-features { grid-template-columns: 1fr; }
  .unlock-btn-text { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .features-grid { gap: 10px; }
  .res-username { font-size: 1.25rem; }
}

/* ════════════════════════════════════════
   ÉTAPE « NOM » : on retire l'en-tête pour remonter le champ
════════════════════════════════════════ */
.input-step .hero-sub,
.input-step .badge-row,
.input-step .access-card { display: none; }
.input-step .hero { padding-bottom: 8px; }
.input-step .brand-title { margin-bottom: 0; }
/* le logo reste visible à l'étape du nom, en plus petit */
.input-step .ghost-icon { width: clamp(38px, 5.4dvh, 56px); height: clamp(38px, 5.4dvh, 56px); font-size: clamp(1.15rem, 2.8dvh, 1.7rem); margin-bottom: clamp(4px, 0.9dvh, 8px); }

/* ════════════════════════════════════════
   TÉLÉPHONE (<= 600px) : plein écran.
   Les tailles s'adaptent à la HAUTEUR de l'écran (dvh) :
   le contenu remplit l'espace sur un grand téléphone
   et reste compact sur un petit, sans défilement.
════════════════════════════════════════ */
@media (max-width: 600px) {
  :root { --radius: 16px; --radius-sm: 12px; }

  html { -webkit-text-size-adjust: 100%; }
  body { background: var(--bg); -webkit-tap-highlight-color: transparent; }
  button, a, input { touch-action: manipulation; }

  /* plein écran : plus de carte flottante */
  .phone-frame {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .phone-screen {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  }
  .container { padding: 0 clamp(14px, 4.5vw, 22px); }

  /* bandeau */
  .edu-banner {
    position: static;
    margin: clamp(8px, 1.4dvh, 14px) auto 0;
    padding: 4px 12px;
    font-size: 0.66rem;
    box-shadow: none;
  }

  /* en-tête */
  .hero { padding: clamp(10px, 3dvh, 30px) 0 clamp(6px, 1.4dvh, 14px); }
  .ghost-icon {
    width: clamp(50px, 7.4dvh, 76px);
    height: clamp(50px, 7.4dvh, 76px);
    font-size: clamp(1.5rem, 3.8dvh, 2.3rem);
    border-radius: 28%;
    margin-bottom: clamp(8px, 1.6dvh, 16px);
    box-shadow: 0 0 0 5px var(--yellow-dim), 0 10px 30px rgba(255,230,0,0.2);
  }
  .brand-title {
    font-size: clamp(1.85rem, 4.7dvh, 2.5rem);
    letter-spacing: -1px;
    margin-bottom: clamp(6px, 1.2dvh, 12px);
  }
  .hero-sub {
    font-size: clamp(0.84rem, 2.1dvh, 1rem);
    line-height: 1.4;
    margin-bottom: clamp(10px, 2.2dvh, 22px);
  }
  .badge-row { gap: 6px; margin-bottom: clamp(10px, 2dvh, 20px); }
  .badge-counter { display: none; }
  .badge { padding: clamp(5px, 0.9dvh, 9px) 12px; font-size: clamp(0.68rem, 1.7dvh, 0.8rem); }
  .access-card { padding: clamp(11px, 1.9dvh, 18px) 14px; margin-bottom: 0; }
  .access-card-title { font-size: clamp(0.78rem, 1.9dvh, 0.92rem); margin-bottom: 3px; }
  .access-card-desc { font-size: clamp(0.7rem, 1.75dvh, 0.82rem); line-height: 1.45; }

  /* zone centrale : le questionnaire se centre dans l'espace restant */
  .features { flex: 1; display: flex; padding: 0 0 clamp(6px, 1.4dvh, 14px); }
  .features > .container { width: 100%; display: flex; flex-direction: column; justify-content: center; }

  /* questionnaire */
  .quiz-wrapper { padding: clamp(12px, 2dvh, 20px) 16px; margin-bottom: 0; }
  .quiz-progress-bar { height: 5px; }
  .quiz-progress-label { margin-bottom: clamp(8px, 1.6dvh, 16px); font-size: 0.72rem; }
  .quiz-icon { font-size: clamp(1.5rem, 4dvh, 2.3rem); margin-bottom: clamp(4px, 1dvh, 10px); }
  .quiz-question { font-size: clamp(0.92rem, 2.4dvh, 1.12rem); margin-bottom: clamp(12px, 2.4dvh, 22px); }
  .quiz-options { gap: clamp(8px, 1.3dvh, 12px); max-width: none; }
  .quiz-btn {
    min-height: clamp(46px, 6.4dvh, 58px);
    padding: 10px 14px;
    font-size: clamp(0.86rem, 2.1dvh, 1rem);
  }
  .quiz-btn:active { transform: scale(0.98); }
  .quiz-legal { font-size: clamp(0.7rem, 1.7dvh, 0.82rem); margin-bottom: clamp(10px, 2dvh, 18px); }

  /* cartes + bloc anonyme (étape du nom) */
  .features-grid { gap: clamp(6px, 1.1dvh, 10px); margin-bottom: clamp(6px, 1.1dvh, 10px); }
  .feature-card {
    display: grid;
    grid-template-columns: clamp(32px, 4.6dvh, 44px) 1fr;
    grid-template-rows: auto auto;
    column-gap: 10px;
    align-content: center;
    align-items: center;
    padding: clamp(9px, 1.7dvh, 16px) 11px;
    text-align: left;
  }
  .feature-icon { grid-row: 1 / span 2; width: clamp(32px, 4.6dvh, 44px); height: clamp(32px, 4.6dvh, 44px); margin: 0; }
  .feature-icon svg { width: 50%; height: 50%; }
  .feature-card h3 { font-size: clamp(0.74rem, 1.85dvh, 0.9rem); margin: 0; line-height: 1.25; align-self: end; }
  .feature-card p { font-size: clamp(0.64rem, 1.55dvh, 0.76rem); line-height: 1.3; align-self: start; }
  .anon-notice { padding: clamp(9px, 1.6dvh, 15px) 12px; margin-bottom: clamp(6px, 1.1dvh, 10px); }
  .anon-notice strong { font-size: clamp(0.8rem, 1.9dvh, 0.95rem); }
  .anon-notice p { font-size: clamp(0.66rem, 1.6dvh, 0.78rem); margin-top: 1px; }

  /* saisie du nom */
  .cta-block { gap: clamp(8px, 1.2dvh, 12px); }
  .cta-ready { font-size: clamp(0.76rem, 1.7dvh, 0.88rem); }
  .snap-input { min-height: clamp(44px, 5.4dvh, 52px); padding: 10px 14px; font-size: 16px; } /* 16px : évite le zoom auto d'iOS */
  .cta-btn { min-height: clamp(46px, 5.8dvh, 54px); padding: 10px; font-size: 0.95rem; }
  .cta-btn:active { transform: scale(0.98); }
  .cta-sub { font-size: clamp(0.66rem, 1.5dvh, 0.76rem); }

  /* pied de page : collé en bas de l'écran */
  footer { margin-top: auto; padding: clamp(4px, 1dvh, 10px) 0 clamp(8px, 1.6dvh, 16px); }
  footer p { font-size: 0.7rem; }
  .footer-links { gap: 0 10px; margin-top: 0; }
  footer a { display: inline-block; padding: 7px 3px; font-size: 0.72rem; }

  /* résultats */
  .results-section { padding: 12px 0 24px; }
  .res-header { padding: 14px; gap: 12px; margin-bottom: 10px; }
  .res-avatar { width: 54px; height: 54px; font-size: 1.5rem; }
  .res-username { font-size: 1.3rem; }
  .res-card { padding: 16px; margin-bottom: 10px; }
  .res-card-head { margin-bottom: 12px; }
  .res-stats-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
  .res-stat-item { padding: 10px 4px; }
  .res-stat-val { font-size: 1.2rem; }
  .res-stat-label { font-size: 0.64rem; }
  .res-tag { font-size: 0.7rem; padding: 4px 10px; }
  .friends-grid { gap: 8px; }
  .friend-item { padding: 8px 12px; gap: 12px; }
  .friend-avatar-icon { width: 36px; height: 36px; font-size: 1.2rem; }
  .friend-name { font-size: 0.86rem; }
  .friend-meta { font-size: 0.72rem; }
  .friend-item:nth-child(n+5) { display: none; }
  .friends-more-row { margin-top: 10px; padding-top: 10px; }
  .snaps-grid { gap: 8px; }
  .snap-thumb { aspect-ratio: 1 / 1; }
  .snap-more-count { font-size: 1.2rem; }
  .res-loc-card .loc-map-fake { height: 110px; margin: 0 -16px; }
  .activity-row { padding: 10px 0; }
  .unlock-block { padding: 18px 16px; }
  .unlock-features { grid-template-columns: 1fr; gap: 5px; margin-bottom: 16px; }
  .unlock-btn { min-height: 54px; }
  .unlock-btn-text { flex-direction: row; padding: 14px 18px 8px; }

  /* écran de chargement */
  .term-overlay {
    padding: calc(16px + env(safe-area-inset-top)) 14px calc(16px + env(safe-area-inset-bottom));
    gap: 20px;
  }
  .term-body { min-height: 210px; max-height: 300px; font-size: 0.74rem; }
  .term-pct { font-size: 1.8rem; }

  /* fenêtres d'info : feuille qui monte du bas */
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal-card {
    width: 100%;
    max-height: 88vh;
    max-height: 88dvh;
    padding: 20px 20px calc(18px + env(safe-area-inset-bottom));
    border-radius: 20px 20px 0 0;
    border-bottom: none;
    animation: sheet-up 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .modal-icon { font-size: 2rem; margin-bottom: 4px; }
  .modal-card h2 { font-size: 1.2rem; margin-bottom: 8px; }
  .modal-card h3 { margin: 12px 0 4px; font-size: 0.84rem; }
  .modal-card p { font-size: 0.78rem; line-height: 1.55; }
  .modal-close { width: 100%; min-height: 48px; margin-top: 16px; }
}

@keyframes sheet-up {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* écrans tactiles : pas d'effets de survol « collants » */
@media (hover: none) {
  .quiz-btn.yes:hover, .quiz-btn.no:hover, .cta-btn:hover,
  .feature-card.visible:hover, .friend-item:hover,
  .unlock-btn:hover, .modal-close:hover { transform: none; box-shadow: none; }
}

/* petits téléphones (hauteur <= 700px) : on allège l'en-tête pour tout faire tenir */
@media (max-width: 600px) and (max-height: 700px) {
  .hero-sub { display: none; }
  .badge-counter { display: none; }
  .feature-card { padding: 7px 10px; }
  .features-grid { gap: 5px; margin-bottom: 5px; }
  .anon-notice { padding: 7px 12px; margin-bottom: 5px; }
  .cta-block { gap: 8px; }
}

/* ════════════════════════════════════════
   PAGE DE RÉSULTATS (nouvelle mise en page)
════════════════════════════════════════ */
.res-title-block { text-align: center; margin: 22px 0 16px; }
.res-title { font-size: 1.35rem; font-weight: 800; line-height: 1.3; }
.res-title-sub { font-size: 0.8rem; color: var(--text2); margin-top: 6px; }

.res-alert {
  background: #ffe6e6;
  border: 1px solid #f3b4b4;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}
.res-alert-title { font-size: 0.9rem; font-weight: 800; color: #d92d2d; margin-bottom: 6px; }
.res-alert p { font-size: 0.74rem; color: #b83232; line-height: 1.5; }

.res-section-head { display: flex; align-items: center; gap: 8px; margin: 26px 0 12px; }
.res-section-icon { font-size: 1.05rem; }
.res-section-head h3 { flex: 1; font-size: 1rem; font-weight: 800; }
.res-pill {
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 0.66rem;
  font-weight: 800;
  color: var(--text2);
  white-space: nowrap;
}

.res-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.map-blur {
  position: relative;
  height: 190px;
  border-radius: 10px;
  overflow: hidden;
  background: #1c2540;
  margin-bottom: 6px;
}
.map-blur::before {
  content: '';
  position: absolute;
  inset: -20px;
  background:
    radial-gradient(60px 50px at 22% 30%, rgba(255, 190, 70, 0.55), transparent 70%),
    radial-gradient(70px 55px at 58% 42%, rgba(60, 200, 120, 0.4), transparent 70%),
    radial-gradient(80px 60px at 80% 74%, rgba(255, 120, 90, 0.45), transparent 70%),
    radial-gradient(70px 60px at 15% 80%, rgba(120, 110, 220, 0.45), transparent 70%),
    #1c2540;
  filter: blur(12px);
}
.map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.9rem;
  z-index: 1;
}
.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding: 12px 14px;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.info-label { font-size: 0.72rem; font-weight: 700; color: var(--text2); }
.info-val { font-size: 0.78rem; font-weight: 800; }
.info-val.green { color: #10b981; }
.blurred-bar {
  width: 130px;
  height: 10px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 3px;
  filter: blur(3px);
}

.locked-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.locked-tile {
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: repeating-linear-gradient(135deg, #1b1b1b 0 10px, #232323 10px 20px);
}
.locked-grid-square .locked-tile { aspect-ratio: 1 / 1; }
.locked-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 6px;
  background: #0d0d0d;
  border-radius: 8px;
}
.locked-lock { font-size: 1rem; line-height: 1; }
.locked-label {
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--text3);
  text-align: center;
  line-height: 1.2;
}
.locked-more {
  margin-top: 8px;
  padding: 11px 12px;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text2);
}

@media (max-width: 600px) {
  .res-title-block { margin: 14px 0 12px; }
  .res-title { font-size: 1.15rem; }
  .res-title-sub { font-size: 0.74rem; }
  .res-alert { padding: 12px 14px; }
  .res-section-head { margin: 18px 0 8px; }
  .res-section-head h3 { font-size: 0.92rem; }
  .map-blur { height: 140px; }
  .info-row { padding: 10px 12px; margin-top: 6px; }
  .locked-grid { gap: 6px; }
  .locked-inner { padding: 6px 4px; }
  .locked-label { font-size: 0.44rem; }
}

.unlock-price { white-space: nowrap; }

/* ════════════════════════════════════════
   AMIS RÉCEMMENT AJOUTÉS : même rendu que le modèle
════════════════════════════════════════ */
.friends-grid { gap: 8px; }
.friend-item,
.friend-item:hover {
  gap: 14px;
  padding: 14px 18px;
  background: #2a2d34;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  transform: none;
}
.friend-item:hover { border-color: rgba(255, 255, 255, 0.22); }
.friend-item:nth-child(n+5) { display: flex; }   /* les 7 amis, y compris sur téléphone */

.friend-avatar-icon {
  width: 38px;
  height: 38px;
  font-size: 1.7rem;
  background: none;
  border: none;
  border-radius: 0;
  filter: blur(1.6px) saturate(0.85);
}
.friend-info { gap: 2px; }
.friend-name {
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  filter: blur(3.5px);
}
.friend-meta { font-size: 0.74rem; color: #8b9099; }

@media (max-width: 600px) {
  .friends-grid { gap: 8px; }
  .friend-item { padding: 12px 14px; gap: 12px; }
  .friend-avatar-icon { width: 34px; height: 34px; font-size: 1.55rem; }
  .friend-name { font-size: 0.76rem; }
  .friend-meta { font-size: 0.72rem; }
  .friend-item:nth-child(n+5) { display: flex; }
}

/* avatars dessinés (SVG), floutés */
.friend-avatar-icon { display: block; width: 40px; height: 40px; font-size: 0; filter: blur(1.3px); flex-shrink: 0; }
.friend-avatar-icon svg { display: block; width: 100%; height: 100%; }
@media (max-width: 600px) {
  .friend-avatar-icon { width: 38px; height: 38px; }
}

/* flou « lisible à moitié », comme le modèle */
.friend-name {
  font-size: 0.74rem;
  font-weight: 800;
  color: #ececee;
  filter: blur(3px);
  letter-spacing: 0.2px;
}
.friend-avatar-icon { filter: blur(1.9px); opacity: 0.92; }

/* avatars : flou maximal (on ne distingue que les couleurs et les silhouettes) */
.friend-avatar-icon { width: 44px; height: 44px; filter: blur(3.6px) saturate(1.05); opacity: 0.95; }
@media (max-width: 600px) {
  .friend-avatar-icon { width: 42px; height: 42px; }
}

/* avatars : ronds, petits, très flous */
.friend-avatar-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: #3b3f48;
  filter: none;
  opacity: 1;
}
.friend-avatar-icon svg {
  filter: blur(4.2px) saturate(1.05);
  transform: scale(1.22) translateY(2px);
}
@media (max-width: 600px) {
  .friend-avatar-icon { width: 30px; height: 30px; }
}

/* ════════════════════════════════════════
   COHÉRENCE : noir + jaune uniquement
   (plus de rouge / vert / bleu / violet)
════════════════════════════════════════ */

/* émojis restants : teintés en jaune monochrome */
.emo,
.res-section-icon, .map-pin, .locked-lock, .unlock-icon, .modal-icon {
  filter: grayscale(1) sepia(1) saturate(6) hue-rotate(12deg) brightness(1.08);
}

/* carte « Accès illimité » */
.access-card {
  background: var(--yellow-dim);
  border: 1px solid var(--yellow-line);
}
.access-card:hover { border-color: var(--yellow); box-shadow: 0 8px 24px rgba(255, 230, 0, 0.1); }
.access-card-desc { color: var(--text2); }

/* bloc anonyme */
.anon-notice {
  background: var(--yellow-dim);
  border: 1px solid var(--yellow-line);
}
.anon-check, .anon-notice strong { color: var(--yellow); font-weight: 800; }

/* cartes d'options : pastilles jaunes, icônes sombres */
.feature-icon.red, .feature-icon.purple,
.feature-icon.blue, .feature-icon.teal { background: var(--yellow); }
.feature-icon svg { stroke: #111; }

/* encadré d'activité */
.res-alert {
  background: var(--yellow-dim);
  border: 1px solid var(--yellow-line);
}
.res-alert-title { color: var(--yellow); }
.res-alert p { color: var(--text2); }

/* valeurs de la localisation */
.info-val.green { color: var(--yellow); }

/* carte floutée : tons ambre au lieu de multicolore */
.map-blur { background: #26241a; }
.map-blur::before {
  background:
    radial-gradient(60px 50px at 22% 30%, rgba(255, 230, 0, 0.45), transparent 70%),
    radial-gradient(70px 55px at 58% 42%, rgba(255, 190, 0, 0.35), transparent 70%),
    radial-gradient(80px 60px at 80% 74%, rgba(255, 210, 60, 0.4), transparent 70%),
    radial-gradient(70px 60px at 15% 80%, rgba(200, 160, 0, 0.35), transparent 70%),
    #26241a;
}

/* étiquettes et pastilles : neutres ou jaunes */
.res-pill { color: var(--text2); }

/* nom obligatoire */
.cta-error {
  margin: -2px 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--yellow);
  text-align: center;
}
.cta-error[hidden] { display: none; }
.snap-input.invalid { border-color: var(--yellow); box-shadow: 0 0 0 4px var(--yellow-dim); }
.snap-input.shake { animation: input-shake 0.4s ease; }
@keyframes input-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}


/* cartes d'amis : même noir que les autres cartes */
.friend-item,
.friend-item:hover {
  background: var(--surface);
  border-color: var(--line);
}
.friend-item:hover { border-color: var(--yellow-line); }
.friend-avatar-icon { background: #3a3a3a; }
.friend-meta { color: var(--text3); }

/* ════════════════════════════════════════
   FICHE DE DÉBLOCAGE
════════════════════════════════════════ */
.unlock-card {
  margin-top: 28px;
  padding: 28px 20px 22px;
  text-align: center;
  background: linear-gradient(165deg, #1f1f1f 0%, #141414 100%);
  border: 1px solid var(--yellow-line);
  border-radius: var(--radius);
}
.unlock-card-icon { font-size: 2.2rem; line-height: 1; margin-bottom: 10px; }
.unlock-card-title { font-size: 1.5rem; font-weight: 800; color: var(--yellow); margin-bottom: 8px; line-height: 1.2; }
.unlock-card-sub { font-size: 0.82rem; color: var(--text2); line-height: 1.5; margin-bottom: 16px; }
.unlock-card-sub strong { color: var(--yellow); }

.unlock-note {
  padding: 10px 14px;
  margin-bottom: 14px;
  background: var(--yellow-dim);
  border: 1px solid var(--yellow-line);
  border-radius: 10px;
}
.unlock-note-title { font-size: 0.78rem; font-weight: 800; color: var(--yellow); }
.unlock-note-text { font-size: 0.78rem; font-weight: 700; color: var(--text); margin-top: 2px; }

.unlock-box {
  padding: 16px 16px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.unlock-box-title { font-size: 0.92rem; font-weight: 800; margin-bottom: 12px; }
.unlock-list { list-style: none; text-align: left; display: grid; gap: 7px; }
.unlock-list li { position: relative; padding-left: 18px; font-size: 0.76rem; color: var(--text); line-height: 1.35; }
.unlock-list li::before { content: '✓'; position: absolute; left: 0; color: var(--yellow); font-weight: 800; }

.unlock-price-box { padding: 22px 16px 16px; }
.unlock-card-price { font-size: 2.6rem; font-weight: 900; color: var(--yellow); letter-spacing: -1px; line-height: 1; text-shadow: 0 0 24px rgba(255, 230, 0, 0.3); }
.unlock-price-sub { font-size: 0.72rem; font-weight: 700; color: var(--text2); margin-top: 10px; }

.unlock-info { text-align: center; background: var(--yellow-dim); border-color: var(--yellow-line); }
.unlock-info-title { font-size: 0.8rem; font-weight: 800; color: var(--yellow); margin-bottom: 4px; }
.unlock-info p { font-size: 0.74rem; color: var(--text2); line-height: 1.5; }

.unlock-card-btn {
  display: block;
  width: 100%;
  min-height: 50px;
  margin-top: 18px;
  padding: 14px;
  background: var(--yellow);
  color: #111;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
text-align: center;
box-sizing: border-box;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(255, 230, 0, 0.18);
  transition: transform 0.15s, background 0.15s;
}
.unlock-card-btn:hover { background: var(--yellow-deep); transform: translateY(-2px); }
.unlock-card-btn:active { transform: scale(0.98); }
.unlock-card-foot { margin-top: 14px; font-size: 0.68rem; color: var(--text3); line-height: 1.5; }

@media (max-width: 600px) {
  .unlock-card { margin-top: 20px; padding: 22px 14px 18px; }
  .unlock-card-title { font-size: 1.3rem; }
  .unlock-box { padding: 14px 14px; margin-bottom: 10px; }
  .unlock-card-price { font-size: 2.3rem; }
}
@media (hover: none) {
  .unlock-card-btn:hover { transform: none; }
}

/* chrono */
.unlock-timer .unlock-note-text { font-size: 0.95rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.unlock-note-caption { margin-top: 4px; font-size: 0.66rem; color: var(--text3); }

/* ════════════════════════════════════════
   TERMINAL : vraies couleurs de terminal
════════════════════════════════════════ */
.term-window {
  background: #0c0c0c;
  border: 1px solid #333;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}
.term-topbar { background: #1e1e1e; border-bottom: 1px solid #2c2c2c; }
.term-dot.red    { background: #ff5f57; }
.term-dot.yellow { background: #febc2e; }
.term-dot.green  { background: #28c840; }
.term-title { color: #8b8b8b; }

.term-body { color: #d4d4d4; }
.term-color-white  { color: #d4d4d4; }
.term-color-green  { color: #2ee86b; }
.term-color-yellow { color: #f1c40f; }
.term-color-cyan   { color: #00d7ff; }
.term-color-red    { color: #ff5555; }

.term-scan-bar  { background: #262626; }
.term-scan-fill { background: linear-gradient(90deg, #2ee86b, #00d7ff); }
.term-scan-label { color: #f1c40f; }

