/**
 * Mockups « parcours app » (profil → résa → participants → chat).
 * Utilisé sur l’accueil (index) et les landings partenaires (ex. /v/...).
 */

/*
 * style.css met html/body et .mp-main en overflow-x clip/hidden : un ancêtre qui clippe
 * empêche les dépassements visuels (rotation 2D légère, ombres) des .mock-phone — sur mobile
 * la coque du .step-phones-row peut sembler absente ou tronquée.
 */
@media (max-width: 899px) {
  html:has(body.mp-body .journey-wrap) {
    overflow-x: visible;
  }

  body.mp-body:has(.journey-wrap) {
    overflow-x: visible;
  }

  body.mp-body:has(.journey-wrap) .mp-main {
    overflow-x: visible;
  }
}

.journey-wrap {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.journey-phone-col {
  display: none;
}

.phone-device {
  width: 260px;
  height: 530px;
  background: #0a0a0a;
  border-radius: 40px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
.phone-device::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background: #0a0a0a;
  border-radius: 0 0 16px 16px;
  z-index: 30;
}
@media (max-width: 899px) {
  .phone-device {
    width: 190px;
    height: 390px;
    border-radius: 30px;
  }
  .phone-device::before {
    width: 70px;
    height: 18px;
    border-radius: 0 0 12px 12px;
  }
}

.phone-screens-wrap {
  position: absolute;
  inset: 3px;
  border-radius: 37px;
  overflow: hidden;
  background: #111827;
}
@media (max-width: 899px) {
  .phone-screens-wrap {
    border-radius: 27px;
  }
}

.j-screen {
  position: absolute;
  inset: 0;
  padding: 42px 14px 14px;
  opacity: 0;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  will-change: opacity;
  background: #111827;
}
.j-screen.active {
  opacity: 1;
  pointer-events: auto;
}
@media (max-width: 899px) {
  .j-screen {
    padding: 32px 10px 10px;
  }
}

.scr-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.scr-hdr .scr-brand {
  font-family: var(--font-head);
  font-size: 10px;
  color: #ff2e79;
  letter-spacing: 0.5px;
}
.scr-hdr .scr-brand img {
  height: 12px;
  width: auto;
  display: block;
}
.scr-hdr .scr-pg {
  font-size: 7px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.scr-section {
  font-size: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 700;
  margin-bottom: 4px;
}

.scr-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-bottom: 5px;
}
.scr-photo-slot {
  aspect-ratio: 1;
  border-radius: 5px;
  overflow: hidden;
  background: #222;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.scr-photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.scr-photo-slot picture {
  display: block;
  width: 100%;
  height: 100%;
}
.scr-photo-slot.add-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  background: transparent;
  color: rgba(255, 255, 255, 0.3);
  font-size: 11px;
}
.scr-field {
  padding: 4px 7px;
  margin-bottom: 3px;
  background: #1a1a1a;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.scr-field .lbl {
  font-size: 5px;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  display: block;
  margin-bottom: 0;
}
.scr-field .val {
  font-size: 8px;
  color: #fff;
  font-weight: 600;
  display: block;
}
.scr-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin: 4px 0;
}
.scr-tag {
  font-size: 6px;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(255, 46, 121, 0.08);
  color: #ff2e79;
  font-weight: 600;
  border: 1px solid rgba(255, 46, 121, 0.15);
}
.scr-btn {
  display: block;
  width: 100%;
  padding: 6px;
  border-radius: 7px;
  border: none;
  font-weight: 700;
  font-size: 8px;
  text-align: center;
  margin-top: auto;
  cursor: default;
}
.scr-btn-pink {
  background: #ff2e79;
  color: #fff;
}
.scr-btn-gold {
  background: var(--brand-gold, #ff2e79);
  color: #fff;
}
.scr-btn-blue {
  background: #2563eb;
  color: #fff;
}
.scr-btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
}

.scr-evt-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 5px;
}
.scr-evt-img {
  height: 60px;
  background: url("https://images.pexels.com/photos/2209519/pexels-photo-2209519.jpeg?auto=compress&cs=tinysrgb&w=800")
    center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 4px;
}
.scr-evt-img .date-chip {
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 6px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
  line-height: 1.3;
  text-align: center;
  backdrop-filter: blur(4px);
}
.scr-evt-img .price-chip {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 6px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 999px;
}
.scr-evt-body {
  padding: 5px 7px;
}
.scr-evt-body h4 {
  font-size: 8px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 2px;
}
.scr-evt-body .when-line {
  font-size: 6px;
  color: rgba(255, 255, 255, 0.4);
  display: flex;
  gap: 3px;
  align-items: center;
  flex-wrap: wrap;
}
.scr-evt-body .evt-desc {
  font-size: 6px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 2px;
  line-height: 1.3;
}
.scr-evt-btn-row {
  display: flex;
  gap: 4px;
  margin-top: 4px;
  padding: 0 7px 7px;
}
.scr-evt-btn-row .scr-btn {
  flex: 1;
  font-size: 7px;
  padding: 5px;
}
.scr-confirm {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: 7px;
}
.scr-confirm .chk {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7px;
  font-weight: 700;
  flex-shrink: 0;
}
.scr-confirm span {
  font-size: 7px;
  color: #22c55e;
  font-weight: 600;
}

.scr-participants-list {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 5px;
  overflow: hidden;
}
.scr-participant {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}
.scr-participant .p-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #222;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scr-participant .p-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.scr-participant .p-avatar picture {
  display: block;
  width: 100%;
  height: 100%;
}
.scr-participant .p-body {
  flex: 1;
  min-width: 0;
}
.scr-participant .p-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}
.scr-participant .p-name {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
}
.scr-participant .p-age {
  font-size: 8px;
  color: rgba(255, 255, 255, 0.5);
}
.scr-participant .p-like-msg {
  margin-top: 3px;
  padding: 3px 5px;
  background: rgba(255, 46, 121, 0.06);
  border-left: 2px solid #ff2e79;
  border-radius: 3px;
  font-size: 7px;
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
}
.scr-participant .p-like-msg strong {
  color: #ff2e79;
  font-style: normal;
}
.scr-participant .p-btns {
  display: flex;
  gap: 4px;
  margin-top: 5px;
}
.scr-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 5px 8px;
  border-radius: 6px;
  border: none;
  font-size: 7px;
  font-weight: 700;
  cursor: default;
  text-align: center;
  flex: 1;
}
.scr-pill-like {
  background: linear-gradient(135deg, #ff2e79, #e91e6e);
  color: #fff;
}
.scr-pill-profile {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
}
.scr-pill-pass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
}
.scr-pill-cancel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
}
.scr-pill-chat {
  background: #ff2e79;
  color: #fff;
}
.scr-pill-chat .scr-badge {
  background: #ef4444;
  color: #fff;
  font-size: 6px;
  padding: 1px 4px;
  border-radius: 5px;
  margin-left: 2px;
  font-weight: 700;
}

.scr-chat-header {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 22px 10px 5px;
  background: #0d1117;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
.scr-chat-header .ch-back {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}
.scr-chat-header .ch-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.scr-chat-header .ch-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.scr-chat-header .ch-avatar picture {
  display: block;
  width: 100%;
  height: 100%;
}
.scr-chat-header .ch-name {
  font-size: 8px;
  font-weight: 700;
  color: #fff;
}

.scr-chat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  padding: 5px 8px;
  background: #0d1117;
  overflow: hidden;
  justify-content: flex-end;
}
.scr-match-banner {
  background: linear-gradient(135deg, #ff2e79, #ff6ba0);
  border-radius: 8px;
  padding: 6px;
  text-align: center;
  margin-bottom: 2px;
}
.scr-match-banner .mp-title {
  font-size: 8px;
  font-weight: 800;
  color: #fff;
}
.scr-match-banner .mp-sub {
  font-size: 5px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 1px;
}
.scr-match-banner .mp-avatars {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin: 3px 0 1px;
}
.scr-match-banner .mp-av {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  overflow: hidden;
}
.scr-match-banner .mp-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.scr-match-banner .mp-av picture {
  display: block;
  width: 100%;
  height: 100%;
}
.scr-match-banner .mp-heart {
  font-size: 9px;
}

.scr-msg-row {
  display: flex;
  align-items: flex-end;
  gap: 3px;
}
.scr-msg-row.me {
  flex-direction: row-reverse;
}
.scr-msg-row .m-avatar {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
}
.scr-msg-row .m-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.scr-msg-row .m-avatar picture {
  display: block;
  width: 100%;
  height: 100%;
}
.scr-bubble {
  max-width: 80%;
  padding: 4px 7px;
  border-radius: 10px;
  font-size: 7px;
  line-height: 1.35;
}
.scr-bubble.sent {
  background: #ff2e79;
  color: #fff;
  border-bottom-right-radius: 3px;
}
.scr-bubble.recv {
  background: #1e2736;
  color: rgba(255, 255, 255, 0.9);
  border-bottom-left-radius: 3px;
}
.scr-msg-time {
  font-size: 5px;
  color: rgba(255, 255, 255, 0.25);
  text-align: center;
  margin: 1px 0;
}
.scr-chat-input {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px 14px;
  background: #0d1117;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
.scr-chat-input .ci-field {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 4px 8px;
  font-size: 6px;
  color: rgba(255, 255, 255, 0.35);
}
.scr-chat-input .ci-send {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ff2e79;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  flex-shrink: 0;
}

.journey-steps-col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (min-width: 900px) {
  .journey-steps-col {
    gap: 4rem;
  }
}

.journey-step {
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease;
}
@media (min-width: 900px) {
  .journey-step {
    padding: 3rem 2rem;
    text-align: center;
    border: none;
    background: none;
  }
}
.journey-step.is-active {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}
@media (min-width: 900px) {
  .journey-step.is-active {
    background: none;
    border-color: transparent;
  }
}

.step-badges {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}
@media (min-width: 900px) {
  .step-badges {
    justify-content: center;
  }
}

/* Parcours accueil : un mockup centré ; desktop 240×490, mobile réduit pour tenir dans la largeur. */
.step-phones-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  gap: 2.5rem;
  margin-top: 2rem;
  position: relative;
  padding: 1rem 0 1.25rem;
}

/* Même rendu que desktop : pas de calque scale ni container queries. */
.step-phones-row .journey-mock-scale-clip,
.step-phones-row .journey-mock-scale-root {
  display: contents;
}

.step-phones-row > .plat-phone-stage {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  max-width: none;
  min-width: 0;
  box-sizing: border-box;
}

.step-phones-row .mock-phone {
  width: 240px;
  max-width: 240px;
  height: 490px;
  box-sizing: border-box;
  aspect-ratio: auto;
  border-radius: 38px;
  border-width: 3px;
  flex-shrink: 0;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.5s ease;
}

.step-phones-row .mock-phone::before {
  width: 82px;
  height: 22px;
  border-radius: 0 0 15px 15px;
}

.step-phones-row .journey-mock-screen {
  inset: 3px;
  border-radius: 35px;
  padding: 34px 11px 11px;
  background: linear-gradient(180deg, #171f31 0%, #0f172a 50%, #0b1020 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.step-phones-row .journey-mock-screen.scr-fullbleed {
  padding: 0;
  background: #0d1117;
}

@media (max-width: 899px) {
  .step-phones-row {
    justify-content: center;
    margin-top: 1.5rem;
    overflow-x: visible;
    overflow-y: visible;
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
    margin-left: 0;
    margin-right: 0;
  }

  .step-phones-row .mock-phone {
    width: min(210px, calc(100vw - 2.5rem));
    max-width: min(210px, calc(100vw - 2.5rem));
    height: auto;
    aspect-ratio: 240 / 490;
    border-width: 2px;
  }

  .step-phones-row .mock-phone::before {
    width: 68px;
    height: 18px;
    border-radius: 0 0 12px 12px;
  }

  .step-phones-row .journey-mock-screen {
    inset: 2px;
    border-radius: 28px;
    padding: 26px 9px 8px;
  }

  .step-phones-row .journey-mock-screen.scr-fullbleed {
    padding: 0;
  }
}

.journey-step .step-phones-row .mock-phone--tilt-left:hover,
.journey-step .step-phones-row .mock-phone--tilt-right:hover {
  animation-play-state: paused;
  transform: rotateY(0deg) rotateX(2deg) rotateZ(0deg) translateY(0) scale(1.035);
  z-index: 2;
  box-shadow:
    0 0 0 1px rgba(255, 46, 121, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 40px 80px rgba(0, 0, 0, 0.6),
    0 64px 120px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 64px rgba(255, 46, 121, 0.2),
    0 0 80px rgba(96, 165, 250, 0.1);
}

.step-num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: 900;
  font-size: 0.8rem;
  background: #ff2e79;
  color: #fff;
}
.step-num-badge.badge-gold {
  background: #d4af37;
  color: #282118;
}
.step-num-badge.badge-blue {
  background: #2563eb;
  color: #fff;
}
.step-num-badge.badge-green {
  background: #22c55e;
  color: #fff;
}
.step-text {
  display: flex;
  flex-direction: column;
}
.journey-step h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: #fff;
  margin: 0 0 0.6rem;
}
@media (min-width: 900px) {
  .journey-step h3 {
    font-size: 1.6rem;
  }
}
.journey-step p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  margin: 0;
  max-width: 560px;
}
@media (min-width: 900px) {
  .journey-step p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0 auto;
  }
}

/* Pont visuel entre inscription et likes (accueil, /v/…) */
.journey-match-bridge {
  margin: 0 auto;
  max-width: 36rem;
  padding: 1.25rem 1.15rem 1.35rem;
  text-align: center;
  border-radius: 16px;
  border: 1px solid rgba(255, 46, 121, 0.28);
  background: linear-gradient(120deg, rgba(255, 46, 121, 0.14), rgba(251, 191, 36, 0.08));
  box-shadow: 0 14px 40px rgba(255, 46, 121, 0.08);
}
.journey-match-bridge__flash {
  font-family: var(--font-head, Anton, Impact, sans-serif);
  font-size: clamp(1.1rem, 3.2vw, 1.45rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #ffb8d4;
  text-shadow: 0 0 22px rgba(255, 46, 121, 0.45);
  margin: 0;
  line-height: 1.2;
  animation: journey-match-bridge-pulse 2.6s ease-in-out infinite;
}
.journey-match-bridge__sub {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}
.journey-match-bridge__link {
  display: inline-block;
  margin-top: 0.7rem;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--brand-gold, #ff2e79);
  text-decoration: none;
}
.journey-match-bridge__link:hover {
  text-decoration: underline;
}

@keyframes journey-match-bridge-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.82;
  }
}

@media (prefers-reduced-motion: reduce) {
  .journey-match-bridge__flash {
    animation: none;
  }
}
