/* =====================================================================
   LOVE OR LIE — style du client web (prototype).
   Palette CHALEUREUSE et PREMIUM type application de rencontre : dégradés
   rose → corail, surfaces claires, blanc, touches dorées. Cadre « faux
   smartphone » immersif (inspiré de Followoo), interface ORIGINALE.
   ===================================================================== */
:root {
  --accent: #ff3d6e;            /* rose signature */
  --accent-2: #ff7a59;          /* corail */
  --rose-clair: #ffd9e2;
  --or: #ffb547;
  --vert: #2fbf71;
  --rouge: #ff3b30;
  --grad: linear-gradient(135deg, #ff3d6e 0%, #ff7a59 100%);
  --grad-doux: linear-gradient(135deg, #ff6b8b 0%, #ffa36b 100%);

  --texte: #2a1620;            /* texte foncé sur surfaces claires */
  --doux: rgba(42, 22, 32, .60);
  --tres-doux: rgba(42, 22, 32, .40);
  --ecran: #fff5f7;            /* fond d'écran clair et chaud */
  --carte: #ffffff;
  --carte-2: #fff0f3;
  --bord: rgba(42, 22, 32, .10);
  --rayon: 22px;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  /* Fond autour du téléphone : romantique, chaud. */
  background: #2a0d18 radial-gradient(circle at 50% -10%, #ff5e7e, #c81d4e 42%, #7a0f33 100%);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--texte);
  overflow: hidden;
  user-select: none;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; }

/* ---------- Cadre du téléphone ---------- */
.cadre { height: 100%; display: grid; place-items: center; padding: 16px; }
.telephone {
  position: relative; overflow: hidden;
  width: 390px; height: 844px; max-height: calc(100vh - 32px);
  border-radius: 54px; background: #000;
  box-shadow: 0 0 0 11px #11080c, 0 0 0 13px #3a2630, 0 30px 80px rgba(120, 10, 40, .5);
  display: flex; flex-direction: column;
}
.ilot {
  position: absolute; z-index: 60; top: 11px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 32px; border-radius: 20px; background: #000;
}
@media (max-width: 460px) {
  .cadre { padding: 0; }
  .telephone { width: 100vw; height: 100dvh; max-height: none; border-radius: 0; box-shadow: none; }
  .ilot { display: none; }
}

/* ---------- Barre d'état ---------- */
.barre-etat {
  position: relative; z-index: 50; height: 50px; flex: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 28px 0 34px; font-weight: 700; font-size: 15px;
  color: var(--texte); background: var(--ecran);
}
.barre-etat .droite { display: flex; align-items: center; gap: 7px; }
.marque { font-weight: 900; letter-spacing: -.3px; }
.marque .or { color: var(--accent); }
.pile { width: 24px; height: 12px; border: 1.5px solid currentColor; border-radius: 4px; position: relative; opacity: .85; }
.pile::after { content: ""; position: absolute; right: -4px; top: 3px; width: 2px; height: 6px; border-radius: 0 1px 1px 0; background: currentColor; }
.pile b { position: absolute; inset: 1.5px; width: 75%; border-radius: 1.5px; background: currentColor; }

/* ---------- Zone des écrans ---------- */
.zone { position: relative; flex: 1; overflow: hidden; background: var(--ecran); }
.ecran {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  opacity: 0; pointer-events: none; transform: translateX(16px);
  transition: opacity .28s, transform .32s cubic-bezier(.2, .8, .2, 1);
  overflow-y: auto; overflow-x: hidden; background: var(--ecran);
}
.ecran.actif { opacity: 1; pointer-events: auto; transform: none; }
.ecran::-webkit-scrollbar { width: 0; }

.entete {
  flex: none; padding: 14px 20px 14px; display: flex; align-items: center; gap: 12px;
  position: sticky; top: 0; z-index: 5; color: #fff;
  background: var(--grad);
  box-shadow: 0 6px 18px rgba(255, 61, 110, .25);
}
.entete h1 { font-size: 22px; font-weight: 800; letter-spacing: -.5px; }
.entete .sous { font-size: 12px; color: rgba(255, 255, 255, .85); font-weight: 500; }
.retour { font-size: 22px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .22); color: #fff; }
.corps { flex: 1; padding: 14px 18px 94px; }

/* ---------- Puce « fictif » ---------- */
.puce-fiction {
  display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 800;
  color: #fff; background: rgba(42, 22, 32, .55); padding: 3px 9px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .4px; backdrop-filter: blur(4px);
}

/* ---------- Onboarding ---------- */
.onb { padding: 22px 24px 40px; text-align: center; background: var(--ecran); min-height: 100%; }
.onb .grosse { font-size: 30px; font-weight: 900; margin: 14px 0 6px; line-height: 1.1; color: var(--texte); }
.onb p.intro { color: var(--doux); font-size: 14px; line-height: 1.5; margin-bottom: 18px; }
.champ { text-align: left; margin: 14px 0; }
.champ label { font-size: 12px; font-weight: 800; color: var(--doux); display: block; margin-bottom: 6px; }
.champ input {
  width: 100%; padding: 13px 15px; border-radius: 14px; border: 1.5px solid var(--bord);
  background: #fff; color: var(--texte);
}
.champ input:focus { outline: none; border-color: var(--accent); }
.choix { display: flex; flex-wrap: wrap; gap: 8px; }
.choix button {
  padding: 9px 14px; border-radius: 999px; background: #fff;
  border: 1.5px solid var(--bord); font-size: 13px; font-weight: 700; color: var(--texte);
}
.choix button.sel { background: var(--grad); border-color: transparent; color: #fff; }
.avatars { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 8px 0; }
.av-opt { width: 54px; height: 54px; border-radius: 50%; border: 3px solid transparent; display: grid; place-items: center; font-size: 26px; background: var(--carte-2); }
.av-opt.sel { border-color: var(--accent); }

.btn {
  width: 100%; padding: 15px; border-radius: 16px; font-weight: 800; font-size: 16px;
  background: var(--grad); color: #fff; margin-top: 10px;
  box-shadow: 0 10px 24px rgba(255, 61, 110, .35);
}
.btn.secondaire { background: var(--carte-2); color: var(--accent); box-shadow: none; border: 1.5px solid var(--rose-clair); }
.btn:disabled { opacity: .5; }
.btn.danger { background: #fff; color: var(--rouge); border: 1.5px solid var(--rouge); box-shadow: none; }

/* ---------- Deck de swipe ---------- */
.deck { position: relative; height: 100%; min-height: 520px; padding: 6px 4px; }
.carte-profil {
  position: absolute; inset: 0 0 94px 0; border-radius: 26px; overflow: hidden;
  background: var(--carte); box-shadow: 0 18px 40px rgba(120, 10, 40, .28);
  display: flex; flex-direction: column; justify-content: flex-end;
  will-change: transform; touch-action: none;
}
.carte-profil .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--carte); }
.carte-profil .voile { position: absolute; inset: 0; background: linear-gradient(to top, rgba(40,6,20,.92) 4%, rgba(40,6,20,.15) 52%, rgba(40,6,20,.2)); }
.carte-profil .emoji { display: none; }
.carte-profil .infos { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px 20px; color: #fff; }
.carte-profil .nom { font-size: 26px; font-weight: 900; display: flex; align-items: baseline; gap: 8px; }
.carte-profil .nom span { font-size: 18px; font-weight: 500; color: rgba(255,255,255,.85); }
.carte-profil .job { font-size: 13.5px; color: rgba(255,255,255,.85); margin: 2px 0 8px; }
.carte-profil .bio { font-size: 13.5px; line-height: 1.45; color: rgba(255,255,255,.95); }
.carte-profil .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.carte-profil .tags span { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.22); backdrop-filter: blur(4px); }
.carte-profil .fiction-coin { position: absolute; top: 14px; left: 14px; }
.tampon {
  position: absolute; top: 28px; font-size: 26px; font-weight: 900; padding: 6px 14px; border-radius: 12px;
  border: 4px solid; opacity: 0; transform: rotate(-16deg); letter-spacing: 1px; color: #fff;
}
.tampon.like { left: 18px; color: var(--vert); border-color: var(--vert); background: rgba(47,191,113,.15); }
.tampon.nope { right: 18px; color: var(--rouge); border-color: var(--rouge); background: rgba(255,59,48,.15); transform: rotate(16deg); }

.deck-actions { position: absolute; bottom: 20px; left: 0; right: 0; display: flex; justify-content: center; gap: 36px; z-index: 20; }
.rond-action { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: 0 10px 24px rgba(120,10,40,.3); cursor: pointer; border: 1px solid rgba(0,0,0,.05); transition: transform .12s ease; }
.rond-action:active { transform: scale(.9); }
.rond-action svg { width: 30px; height: 30px; }
.rond-action.nope { color: var(--rouge); }
.rond-action.like { color: var(--vert); }
.deck-vide { text-align: center; color: var(--doux); padding-top: 120px; }

/* ---------- Listes (matchs / carnet) ---------- */
.ligne {
  display: flex; align-items: center; gap: 13px; padding: 12px 14px; border-radius: 18px;
  background: var(--carte); margin-bottom: 10px; box-shadow: 0 4px 14px rgba(120,10,40,.08);
}
.pastille { width: 54px; height: 54px; border-radius: 50%; background-size: cover; background-position: center; flex: none; box-shadow: 0 2px 8px rgba(120,10,40,.15); }
.ligne .nom { font-weight: 800; font-size: 15px; }
.ligne .apercu { font-size: 12.5px; color: var(--doux); margin-top: 2px; }
.badge { margin-left: auto; font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 999px; }
.badge.actif { background: rgba(47,191,113,.16); color: #1e8a4e; }
.badge.fin { background: rgba(255,61,110,.14); color: var(--accent); }
.badge.bloque { background: rgba(255,59,48,.14); color: var(--rouge); }
.badge.parti { background: rgba(120,120,130,.18); color: #6a6a74; }

/* Casting vivant : ruban "Nouveau" sur les cartes fraichement arrivees */
.carte-profil .ruban-nouveau {
  position: absolute; top: 14px; right: 14px; z-index: 6;
  background: linear-gradient(135deg,#ff3d6e,#ff7a59); color: #fff;
  font-size: 12px; font-weight: 800; letter-spacing: .3px;
  padding: 5px 11px; border-radius: 999px; box-shadow: 0 6px 16px rgba(255,61,110,.45);
}

/* Avatars joueuse = vraies photos (plus d'emoji) */
.av-opt.photo { background-position: center; background-size: cover; background-repeat: no-repeat; color: transparent; overflow: hidden; }

/* Bouton d'aide "?" dans l'en-tete Decouvrir */
.aide-btn {
  margin-left: auto; width: 34px; height: 34px; border-radius: 50%; flex: none; cursor: pointer;
  border: 2px solid rgba(255,255,255,.6); color: #fff; background: rgba(255,255,255,.18);
  font-weight: 900; font-size: 17px; line-height: 1;
}

/* Fenetre d'aide "Comment jouer" */
.aide-overlay {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center;
  background: rgba(20,6,20,.55); padding: 22px;
}
.aide-carte {
  background: var(--ecran, #fff5f7); color: #2a1030; border-radius: 22px;
  padding: 22px 20px; max-width: 320px; width: 100%; box-shadow: 0 20px 50px rgba(120,10,40,.45);
}
.aide-carte h2 { margin: 0 0 12px; font-size: 20px; }
.aide-carte p { margin: 0 0 10px; font-size: 14px; line-height: 1.55; }
.aide-carte .btn { margin-top: 8px; }

/* Inscription guidée, étape par étape (modèle Bumble/Hinge) */
.onb-step { text-align: left; }
.onb-progress { height: 6px; border-radius: 999px; background: rgba(255,61,110,.16); margin: 26px 0 8px; overflow: hidden; }
.onb-progress span { display: block; height: 100%; background: linear-gradient(135deg,#ff3d6e,#ff7a59); transition: width .35s ease; }
.onb-count { font-size: 12px; color: var(--doux, #b08); font-weight: 700; letter-spacing: .3px; margin-bottom: 20px; }
.onb-q { font-size: 23px; font-weight: 900; margin-bottom: 6px; line-height: 1.2; }
.onb-step .intro { text-align: left; margin: 0 0 14px; }
.onb-input { width: 100%; box-sizing: border-box; padding: 15px 16px; font-size: 17px; border-radius: 14px; border: 2px solid rgba(255,61,110,.22); background: #fff; margin-top: 8px; }
.onb-input:focus { outline: none; border-color: var(--accent, #ff3d6e); }
.onb-step .avatars { margin-top: 6px; }
.onb-step .choix { flex-direction: column; }
.onb-step .choix button { width: 100%; text-align: left; }
.onb-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; }
.onb-nav .btn { flex: 1; margin: 0; width: auto; }
.onb-nav .btn.secondaire { flex: 0 0 auto; width: auto; padding-left: 22px; padding-right: 22px; }

/* ---------- Chat ---------- */
.fil { flex: 1; padding: 14px 14px 10px; display: flex; flex-direction: column; gap: 8px; background: var(--ecran); }
.bulle { max-width: 78%; padding: 10px 14px; border-radius: 18px; font-size: 14px; line-height: 1.4; }
.bulle.moi { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 5px; box-shadow: 0 3px 10px rgba(255,61,110,.3); }
.bulle.lui { align-self: flex-start; background: #fff; color: var(--texte); border-bottom-left-radius: 5px; box-shadow: 0 2px 8px rgba(120,10,40,.08); }
.bulle.sys { align-self: center; background: rgba(255,181,71,.18); color: #b5700a; font-size: 12px; text-align: center; border-radius: 12px; }
.bulle.simule { outline: 1px dashed rgba(255,181,71,.6); }
.indice-saisie { align-self: flex-start; color: var(--tres-doux); font-size: 13px; padding: 4px 6px; }
.barre-saisie {
  flex: none; display: flex; gap: 8px; padding: 10px 12px 14px; align-items: center;
  background: #fff; border-top: 1px solid var(--bord);
}
.barre-saisie input { flex: 1; padding: 12px 15px; border-radius: 999px; border: 1.5px solid var(--bord); background: var(--ecran); color: var(--texte); }
.barre-saisie input:focus { outline: none; border-color: var(--accent); }
.barre-saisie .envoi { width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 18px; flex: none; box-shadow: 0 4px 12px rgba(255,61,110,.35); }
.jauge-quota { font-size: 11px; color: var(--doux); text-align: center; padding: 4px; background: #fff; }
.jauge-quota b { color: var(--accent); }
.flash-indice { position: absolute; left: 50%; top: 74px; transform: translateX(-50%); z-index: 40; background: var(--grad); color: #fff; padding: 10px 16px; border-radius: 14px; font-size: 13px; font-weight: 700; box-shadow: 0 8px 24px rgba(255,61,110,.4); animation: pop .4s; max-width: 86%; text-align: center; }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -8px); } }

/* ---------- Confiance / jauge ---------- */
.confiance { display: flex; align-items: center; gap: 8px; font-size: 11px; color: rgba(255,255,255,.9); }
.confiance .barre { flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,.3); overflow: hidden; }
.confiance .barre b { display: block; height: 100%; background: #fff; transition: width .5s; }

/* ---------- Carnet d'enquête ---------- */
.indice-carte { display: flex; gap: 11px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: var(--carte); margin-bottom: 9px; box-shadow: 0 3px 12px rgba(120,10,40,.07); }
.indice-carte .ic { font-size: 20px; flex: none; }
.indice-carte .lab { font-size: 13.5px; line-height: 1.4; }
.indice-carte .k { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; }
.k.indice { color: #2f7fd0; } .k.alerte { color: var(--rouge); } .k.contradiction { color: #c8820a; }
.k.promesse { color: var(--accent); } .k.fait { color: #1e8a4e; }

/* ---------- Carte scénarisée (rendez-vous / fin) ---------- */
.scene { padding: 20px; background: var(--ecran); min-height: 100%; }
.scene .texte { font-size: 15.5px; line-height: 1.55; background: var(--carte); padding: 16px; border-radius: 18px; margin-bottom: 14px; box-shadow: 0 4px 14px rgba(120,10,40,.08); }
.scene .opt { width: 100%; text-align: left; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1.5px solid var(--bord); margin-bottom: 9px; font-size: 14px; font-weight: 600; color: var(--texte); }
.scene .opt:active { background: var(--grad); color: #fff; border-color: transparent; }
.fin-carte { text-align: center; padding: 30px 22px; background: var(--ecran); min-height: 100%; }
.fin-carte .titre { font-size: 26px; font-weight: 900; margin: 10px 0; color: var(--accent); }
.fin-carte .texte { font-size: 15px; line-height: 1.6; color: var(--texte); }

/* ---------- Boutique ---------- */
.offre { padding: 16px; border-radius: 18px; background: var(--carte); margin-bottom: 11px; box-shadow: 0 4px 14px rgba(120,10,40,.08); }
.offre .t { font-weight: 800; font-size: 15px; }
.offre .n { font-size: 12.5px; color: var(--doux); margin: 4px 0 10px; line-height: 1.4; }
.offre .prix { font-weight: 900; color: var(--accent); }
.avert-simu { font-size: 11.5px; color: #b5700a; background: rgba(255,181,71,.14); border: 1px solid rgba(255,181,71,.4); padding: 10px 12px; border-radius: 12px; margin-bottom: 14px; line-height: 1.4; }

/* ---------- Barre d'onglets (dock) ---------- */
.dock {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 30; display: flex; justify-content: space-around;
  padding: 8px 6px calc(10px + env(safe-area-inset-bottom)); background: #fff;
  border-top: 1px solid var(--bord); box-shadow: 0 -4px 16px rgba(120,10,40,.06);
}
.dock button { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; color: var(--tres-doux); font-weight: 700; flex: 1; }
.dock button .ic { display: flex; align-items: center; justify-content: center; height: 24px; }
.dock button .ic svg { width: 23px; height: 23px; }
.dock button.actif { color: var(--accent); }

/* ---------- Divers ---------- */
.centre { text-align: center; }
.mini { font-size: 12px; color: var(--doux); }
.sep { height: 1px; background: var(--bord); margin: 16px 0; }
.toast { position: absolute; bottom: 86px; left: 50%; transform: translateX(-50%); z-index: 70; background: #2a1620; color: #fff; padding: 11px 18px; border-radius: 14px; font-size: 13px; font-weight: 600; opacity: 0; transition: opacity .3s; max-width: 90%; text-align: center; }
.toast.on { opacity: 1; }
.cache { display: none !important; }
