/* ===========================================================
   MATCHS DE DÉSIRS — boudoir, rideaux de soie, cartes à glisser
   =========================================================== */
body.desirs {
  --theme: #c2185b;
  --theme-2: #ff6fa0;
  --or: #f2c46b;
  --creme: #fff6ee;
  --panneau: rgba(38, 10, 32, 0.85);
  background: radial-gradient(800px 600px at 50% 35%, #4a1240, #1a0816 70%), #12050f;
}

/* ---------- Décor ---------- */
.boudoir { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.rideau {
  position: absolute;
  top: -2%;
  bottom: -2%;
  width: 22vw;
  max-width: 180px;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0 6px, rgba(255, 255, 255, 0.06) 14px, rgba(0, 0, 0, 0.3) 24px),
    linear-gradient(180deg, #8c0f3a, #5a0626 60%, #3a0418);
  box-shadow: inset 0 -40px 60px rgba(0, 0, 0, 0.5);
  animation: rideau 8s ease-in-out infinite alternate;
  opacity: 0.9;
}
.rideau.gauche { left: -4vw; border-radius: 0 0 60% 0 / 0 0 12% 0; transform-origin: 0 0; }
.rideau.droite { right: -4vw; border-radius: 0 0 0 60% / 0 0 0 12%; transform-origin: 100% 0; animation-delay: -4s; }
@keyframes rideau { to { transform: skewX(1.5deg) scaleX(1.04); } }
.bulle-lumiere {
  position: absolute;
  left: var(--x);
  bottom: -40px;
  width: var(--t);
  height: var(--t);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 190, 220, 0.6), rgba(255, 120, 180, 0) 70%);
  animation: monte-bulle var(--d) linear infinite;
}
@keyframes monte-bulle { to { transform: translate(30px, -115vh); } }

/* ---------- Réglages ---------- */
.cadenas { width: 72px; height: 72px; margin: 0 auto; color: var(--theme-2); filter: drop-shadow(0 0 18px rgba(255, 111, 160, 0.7)); animation: battement 1.6s ease-in-out infinite; }
.cadenas svg { width: 100%; height: 100%; }
@keyframes battement { 15% { transform: scale(1.08); } 30% { transform: scale(1); } 45% { transform: scale(1.06); } }

/* ---------- Passer le téléphone ---------- */
.passe { justify-content: center; align-items: center; text-align: center; gap: 14px; }
.passe-persos { display: flex; align-items: flex-end; justify-content: center; gap: 18px; height: clamp(130px, 28dvh, 210px); }
.passe-persos .perso { height: 100%; aspect-ratio: 100 / 130; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5)); }
.passe-persos .perso:last-child { height: 82%; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5)) brightness(0.75); }
.passe h2 { font-family: var(--serif); font-size: clamp(2.2rem, 10vw, 3rem); line-height: 1.05; margin: 0; overflow-wrap: anywhere; }
.passe .eyebrow { color: var(--theme-2); border-color: rgba(255, 111, 160, 0.4); background: rgba(255, 111, 160, 0.08); }
.passe-texte { margin: 0 0 8px; max-width: 360px; color: var(--muted); }
.passe .btn.gros { max-width: 360px; }
.lien-quitter { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 0.85rem; }

/* ---------- Cartes ---------- */
.cartes-ecran { gap: 10px; }
.qui { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.9rem; min-width: 0; }
.qui #qui-nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40vw; }
.qui #progression { color: var(--muted); font-weight: 600; white-space: nowrap; }
.jauge { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; flex: none; }
.jauge span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--theme), var(--or)); transition: width 0.4s ease; }

.pile { position: relative; flex: 1; min-height: 0; margin: 6px 4px 0; }
.carte {
  --c: var(--theme-2);
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px 22px;
  border-radius: 28px;
  text-align: center;
  color: #3a0d22;
  background:
    radial-gradient(400px 220px at 50% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%),
    linear-gradient(170deg, #fffaf4, #f7e6dc);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7), inset 0 0 0 2px rgba(242, 196, 107, 0.7), inset 0 0 0 8px #fffaf4, inset 0 0 0 9px rgba(242, 196, 107, 0.45);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  will-change: transform;
}
.carte.derriere { transform: translateY(14px) scale(0.95); filter: brightness(0.82); pointer-events: none; }
.carte.derriere-2 { transform: translateY(26px) scale(0.9); filter: brightness(0.65); pointer-events: none; }
.carte.arrive { animation: arrive 0.35s ease; }
@keyframes arrive { from { transform: translateY(14px) scale(0.95); } }
.carte .categorie { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; background: var(--c); padding: 5px 12px; border-radius: 999px; box-shadow: 0 6px 16px -4px var(--c); }
.carte .intro { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: #9b5a72; margin: 0; }
.carte .envie { font-family: var(--serif); font-weight: 700; font-size: clamp(1.5rem, min(7vw, 4.2dvh), 2.2rem); line-height: 1.15; margin: 0; overflow-wrap: anywhere; }
.carte .niveau-carte { display: flex; gap: 4px; }
.carte .niveau-carte i { width: 8px; height: 8px; border-radius: 50%; background: rgba(194, 24, 91, 0.2); }
.carte .niveau-carte i.on { background: var(--theme); }
.tampon { position: absolute; top: 26px; padding: 6px 14px; border: 4px solid; border-radius: 12px; font-weight: 800; font-size: 1.5rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0; pointer-events: none; }
.tampon.t-oui { left: 22px; color: #12a24c; transform: rotate(-14deg); }
.tampon.t-non { right: 22px; color: #d81f3c; transform: rotate(14deg); }
.tampon.t-peut { left: 50%; top: auto; bottom: 30px; color: #b07a12; transform: translateX(-50%); }

.astuce { margin: 0; text-align: center; font-size: 0.76rem; color: var(--muted); flex: none; }
.astuce b { color: var(--text); }
.choix { display: flex; justify-content: center; align-items: center; gap: 22px; flex: none; padding-bottom: 4px; }
.choix-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; cursor: pointer; color: var(--muted); font-size: 0.72rem; font-weight: 600; }
.choix-btn svg { width: 64px; height: 64px; padding: 18px; border-radius: 50%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; background: rgba(255, 255, 255, 0.05); border: 2px solid currentColor; transition: transform 0.15s, box-shadow 0.2s; }
.choix-btn.non { color: #ff5a6e; }
.choix-btn.peut { color: var(--or); }
.choix-btn.peut svg { width: 52px; height: 52px; padding: 13px; }
.choix-btn.oui { color: #3ee07f; }
.choix-btn.oui svg { fill: currentColor; fill-opacity: 0.15; }
.choix-btn:active svg { transform: scale(0.9); }
.choix-btn:hover svg { box-shadow: 0 0 24px -4px currentColor; }

/* ---------- Révélation ---------- */
.revelation { align-items: center; text-align: center; gap: 12px; }
.rev-haut { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: none; }
.rev-persos { display: flex; align-items: flex-end; justify-content: center; gap: 6px; height: clamp(100px, 20dvh, 160px); }
.rev-persos .perso { height: 100%; aspect-ratio: 100 / 130; }
.coeur-jauge { position: relative; width: clamp(80px, 16dvh, 120px); align-self: center; }
.coeur-jauge svg { width: 100%; display: block; filter: drop-shadow(0 0 20px rgba(255, 79, 134, 0.6)); }
.coeur-jauge .fond { fill: rgba(255, 255, 255, 0.08); stroke: #ff6fa0; stroke-width: 0.6; }
.coeur-jauge .niveau-coeur { fill: #ff4f86; }
.coeur-jauge b { position: absolute; left: 0; right: 0; top: 34%; font-size: clamp(1rem, 3.4dvh, 1.4rem); font-weight: 800; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5); }
.revelation h2 { font-family: var(--serif); font-size: clamp(1.8rem, 8vw, 2.4rem); line-height: 1.05; margin: 0; }
.revelation .eyebrow { color: var(--or); border-color: rgba(242, 196, 107, 0.4); }
#reveler { max-width: 360px; margin-top: auto; margin-bottom: auto; }
.matchs { flex: 1; min-height: 0; width: 100%; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 4px 2px; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 10px, #000 calc(100% - 14px), transparent); mask-image: linear-gradient(to bottom, transparent, #000 10px, #000 calc(100% - 14px), transparent); }
.match {
  --c: var(--theme-2);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  text-align: left;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 20%, transparent), rgba(255, 255, 255, 0.03));
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  animation: match-entre 0.5s cubic-bezier(.2, 1.3, .4, 1) both;
}
.match .icone { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font-size: 1rem; box-shadow: 0 0 16px -2px var(--c); }
.match .txt { display: flex; flex-direction: column; min-width: 0; }
.match .txt b { font-size: 0.95rem; line-height: 1.25; overflow-wrap: anywhere; }
.match .txt small { font-size: 0.7rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.match.explorer { --c: var(--or); }
@keyframes match-entre { from { opacity: 0; transform: translateY(16px) scale(0.95); } }
.aucun { color: var(--muted); padding: 20px 10px; }

/* ---------- "Ce soir" ---------- */
.ce-soir-voile { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; background: rgba(10, 2, 8, 0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: fadeIn 0.3s ease; }
.ce-soir-carte { width: 100%; max-width: 380px; padding: 30px 24px 22px; border-radius: 28px; text-align: center; color: #3a0d22; background: radial-gradient(400px 200px at 50% 0%, rgba(242, 196, 107, 0.4), transparent 70%), linear-gradient(170deg, #fffaf4, #f7e6dc); box-shadow: 0 0 80px -10px var(--or), inset 0 0 0 2px var(--or), inset 0 0 0 8px #fffaf4, inset 0 0 0 9px rgba(242, 196, 107, 0.6); animation: tourne-carte 0.8s cubic-bezier(.2, 1.2, .4, 1); }
.ce-soir-carte .eyebrow { color: #9b5a1a; border-color: rgba(155, 90, 26, 0.4); background: rgba(242, 196, 107, 0.2); }
.ce-soir-carte p { font-family: var(--serif); font-weight: 700; font-size: clamp(1.6rem, 7vw, 2.1rem); line-height: 1.15; margin: 16px 0 20px; }
@keyframes tourne-carte { from { transform: perspective(800px) rotateY(180deg) scale(0.7); opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; } }

@media (max-height: 640px) {
  .choix-btn svg { width: 54px; height: 54px; padding: 15px; }
  .choix-btn.peut svg { width: 44px; height: 44px; padding: 11px; }
  .carte { padding: 20px 16px; gap: 10px; }
  .astuce { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rideau, .bulle-lumiere, .cadenas { animation: none; }
}
