/* ===========================================================
   JEU-COUPLE.FR — style commun à toutes les pages du site
   =========================================================== */
:root {
  --bg: #0e0b0c;
  --surface: #171314;
  --surface-2: #201a1c;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f4eeea;
  --muted: #a3958f;
  --accent: #e0436b;
  --accent-2: #ff7a3d;
  --gold: #e8c26a;
  --violet: #9d8cf2;
  --teal: #4fb6c4;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --radius: 20px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(1100px 600px at 50% -10%, rgba(224, 67, 107, 0.12), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---- Fond animé (halos qui bougent lentement) ---- */
.bg-blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-blobs span {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  animation: blob 22s ease-in-out infinite alternate;
}
.bg-blobs span:nth-child(1) { background: #e0436b; top: -160px; left: -120px; }
.bg-blobs span:nth-child(2) { background: #7b3cff; top: 30%; right: -200px; animation-duration: 28s; opacity: 0.22; }
.bg-blobs span:nth-child(3) { background: #ff7a3d; bottom: -220px; left: 25%; animation-duration: 25s; opacity: 0.18; }
@keyframes blob {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(80px, 60px) scale(1.15); }
  100% { transform: translate(-60px, 30px) scale(0.95); }
}
.fx-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

/* ---- En-tête ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(14, 11, 12, 0.6);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em; }
.logo-mark { width: 30px; height: 30px; color: var(--accent); filter: drop-shadow(0 0 10px rgba(224, 67, 107, 0.6)); }
.logo small { font-family: var(--sans); font-size: 0.75rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.nav { display: flex; gap: 22px; font-size: 0.92rem; }
.nav a { text-decoration: none; color: var(--muted); transition: color 0.2s; }
.nav a:hover { color: var(--text); }
@media (max-width: 720px) { .nav { display: none; } }

/* ---- Boutons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 13px 24px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.25s ease, background 0.2s, border-color 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #ff5e8a);
  box-shadow: 0 10px 30px rgba(224, 67, 107, 0.35);
}
.btn.primary:hover { box-shadow: 0 14px 40px rgba(224, 67, 107, 0.55); transform: translateY(-2px); }
.btn.ghost { background: rgba(255, 255, 255, 0.03); border-color: var(--line-strong); color: var(--text); }
.btn.ghost:hover { border-color: rgba(255, 255, 255, 0.35); }
.btn.block { width: 100%; }
.btn:disabled { opacity: 0.4; cursor: default; transform: none; box-shadow: none; }

/* ---- Héros ---- */
.hero { position: relative; z-index: 1; padding: 80px 0 60px; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(232, 194, 106, 0.35);
  background: rgba(232, 194, 106, 0.06);
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 22px 0 18px;
}
.hero h1 .glow {
  background: linear-gradient(120deg, #ff9ab4, var(--accent) 40%, var(--accent-2) 70%, var(--gold));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }
.hero p.lead { max-width: 640px; margin: 0 auto 30px; color: var(--muted); font-size: 1.12rem; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- Compteur de parties ---- */
.counter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.95rem;
  color: var(--muted);
}
.counter[hidden] { display: none; }
.counter b { font-size: 1.15rem; color: var(--text); font-variant-numeric: tabular-nums; }
.counter .pulse { width: 9px; height: 9px; border-radius: 50%; background: #46d17a; box-shadow: 0 0 0 0 rgba(70, 209, 122, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(70, 209, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(70, 209, 122, 0); } }

/* ---- Sections ---- */
section.block { position: relative; z-index: 1; padding: 60px 0; }
.section-title { text-align: center; margin-bottom: 36px; }
.section-title h2 { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3rem); font-weight: 600; margin: 0 0 8px; line-height: 1.1; }
.section-title p { color: var(--muted); margin: 0 auto; max-width: 620px; }

/* ---- Cartes de jeux ---- */
.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.game-card {
  --c: var(--accent);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  border-radius: 24px;
  text-decoration: none;
  background: var(--surface);
  background:
    radial-gradient(400px 200px at 30% 0%, color-mix(in srgb, var(--c) 18%, transparent), transparent 70%),
    var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.25s ease, border-color 0.3s, box-shadow 0.3s;
  will-change: transform;
}
.game-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.10), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.game-card:hover::before { opacity: 1; }
.game-card:hover { border-color: color-mix(in srgb, var(--c) 60%, transparent); box-shadow: 0 20px 60px -20px var(--c); }
.game-card .icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--c);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 30px -8px var(--c);
}
.game-card .icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.game-card h3 { margin: 4px 0 0; font-family: var(--serif); font-size: 1.7rem; font-weight: 600; line-height: 1.1; }
.game-card p { margin: 0; color: var(--muted); font-size: 0.95rem; flex: 1; }
.game-card .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.game-card .tag { font-size: 0.72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); color: var(--muted); }
.game-card .go { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--c); }
.game-card .go::after { content: '→'; transition: transform 0.2s; }
.game-card:hover .go::after { transform: translateX(4px); }
.game-card .plays { font-size: 0.78rem; color: var(--muted); }

/* ---- Personnages de l'accueil ---- */
.hero-persos { display: flex; justify-content: center; align-items: flex-end; gap: 4px; height: 170px; margin: 34px auto 0; }
.hero-persos .perso { height: 100%; aspect-ratio: 100 / 130; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.5)); }
.hero-coeur { align-self: center; font-size: 2.6rem; color: var(--accent); text-shadow: 0 0 26px var(--accent); animation: bat 1.4s ease-in-out infinite; }
@keyframes bat { 15% { transform: scale(1.18); } 30% { transform: scale(1); } 45% { transform: scale(1.1); } }

/* ---- Mini-illustrations des jeux ---- */
.vitrine { position: relative; height: 120px; margin: -26px -26px 4px; border-radius: 24px 24px 0 0; overflow: hidden; background: radial-gradient(300px 140px at 50% 100%, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%), rgba(0, 0, 0, 0.25); border-bottom: 1px solid var(--line); }
/* Le Parcours : un petit plateau en serpentin, avec un pion qui avance */
.v-parcours { display: grid; grid-template-columns: repeat(6, 24px); grid-template-rows: 24px 24px; gap: 14px 14px; justify-content: center; align-content: center; }
.v-parcours i { border-radius: 50%; background: #9d8cf2; box-shadow: 0 0 14px -3px #9d8cf2; }
.v-parcours i:nth-child(3n) { background: #ef5a4c; box-shadow: 0 0 14px -3px #ef5a4c; }
.v-parcours i:nth-child(4n) { background: #e8c26a; box-shadow: 0 0 14px -3px #e8c26a; }
.v-parcours i:nth-child(5n) { background: #ff5d3d; }
.v-parcours i:nth-child(7n) { background: #4fb6c4; }
.v-parcours i:nth-child(7) { grid-area: 2 / 6; } .v-parcours i:nth-child(8) { grid-area: 2 / 5; } .v-parcours i:nth-child(9) { grid-area: 2 / 4; }
.v-parcours i:nth-child(10) { grid-area: 2 / 3; } .v-parcours i:nth-child(11) { grid-area: 2 / 2; } .v-parcours i:nth-child(12) { grid-area: 2 / 1; }
.v-parcours .pion { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 14px #fff, 0 0 0 3px var(--accent); top: 37px; left: calc(50% - 98px); animation: pion 7s ease-in-out infinite; }
@keyframes pion { 0%, 6% { transform: translate(0, 0); } 30% { transform: translate(190px, 0); } 42% { transform: translate(190px, 38px); } 75%, 100% { transform: translate(0, 38px); } }
/* Quiz : un écran télé à ampoules */
.v-quiz { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: radial-gradient(300px 140px at 50% 0%, rgba(143, 123, 255, 0.5), transparent 70%), #120d33; }
.v-quiz .tele { display: flex; flex-direction: column; align-items: center; padding: 6px 26px; border-radius: 12px; background: linear-gradient(180deg, #2b1f6b, #150f3a); outline: 3px dotted #ffcf5a; outline-offset: 3px; animation: ampoules 0.8s steps(2) infinite; }
.v-quiz .tele span { font-size: 0.55rem; letter-spacing: 0.3em; color: #ffcf5a; font-weight: 800; }
.v-quiz .tele b { font-size: 1.8rem; line-height: 1; font-weight: 800; background: linear-gradient(180deg, #fff, #ffb43a); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes ampoules { 50% { outline-color: #fff3c4; } }
.v-quiz .rep { display: flex; gap: 8px; }
.v-quiz .rep i { font-style: normal; font-size: 0.7rem; font-weight: 800; color: #ffcf5a; padding: 4px 30px; background: #1c1552; clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 8px 100%, 0 50%); }
.v-quiz .rep i:last-child { background: #12a24c; color: #fff; animation: clignote-rep 1.2s steps(2) infinite; }
@keyframes clignote-rep { 50% { filter: brightness(1.4); } }
/* Désirs : cartes en éventail, celle du dessus glisse */
.v-desirs i { position: absolute; left: 50%; top: 14px; width: 70px; height: 94px; margin-left: -35px; border-radius: 12px; background: linear-gradient(170deg, #fffaf4, #f7e6dc); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), inset 0 0 0 2px rgba(242, 196, 107, 0.7); }
.v-desirs .c1 { transform: rotate(-16deg) translateX(-34px); filter: brightness(0.7); }
.v-desirs .c2 { transform: rotate(14deg) translateX(34px); filter: brightness(0.8); }
.v-desirs .c3 { display: grid; place-items: center; animation: glisse 3.4s ease-in-out infinite; }
.v-desirs .c3 span { color: #e0436b; font-size: 2rem; }
@keyframes glisse { 0%, 40% { transform: none; opacity: 1; } 60% { transform: translateX(70px) rotate(18deg); opacity: 0; } 61% { transform: none; opacity: 0; } 80%, 100% { opacity: 1; } }
/* Dés : deux dés qui roulent sur le velours */
.v-des { background: radial-gradient(300px 140px at 50% 60%, #9b1b3d, #3a0514); }
.v-des i { position: absolute; top: 36px; width: 50px; height: 50px; border-radius: 12px; background-color: #fffaf0; box-shadow: inset -4px -5px 8px rgba(0, 0, 0, 0.18), 0 10px 18px rgba(0, 0, 0, 0.5); background-image: radial-gradient(circle at 25% 25%, #a3002a 0 5px, transparent 5.5px), radial-gradient(circle at 50% 50%, #a3002a 0 5px, transparent 5.5px), radial-gradient(circle at 75% 75%, #a3002a 0 5px, transparent 5.5px); }
.v-des .d1 { left: calc(50% - 64px); animation: roule 3s ease-in-out infinite; }
.v-des .d2 { left: calc(50% + 14px); background-color: #f2c46b; animation: roule 3s ease-in-out -0.4s infinite; }
@keyframes roule { 0%, 60%, 100% { transform: rotate(-10deg); } 75% { transform: translateY(-26px) rotate(170deg); } 88% { transform: rotate(350deg); } }
@media (prefers-reduced-motion: reduce) {
  .v-parcours .pion, .v-quiz .tele, .v-desirs .c3, .v-des i, .hero-coeur { animation: none; }
}


/* ---- Mini-illustrations des nouveaux jeux ---- */
.v-strip { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 2rem; }
.v-strip span { animation: vole-habit 3s ease-in-out infinite; }
.v-strip span:nth-child(2) { animation-delay: -0.7s; } .v-strip span:nth-child(3) { animation-delay: -1.4s; } .v-strip span:nth-child(4) { animation-delay: -2.1s; }
@keyframes vole-habit { 50% { transform: translateY(-14px) rotate(-18deg); } }
.v-tarot { background: radial-gradient(300px 140px at 50% 100%, rgba(155, 123, 255, 0.4), transparent 70%), #140e33; }
.v-tarot i { position: absolute; left: 50%; top: 16px; width: 56px; height: 88px; margin-left: -28px; border-radius: 8px; border: 2px solid #e8c26a; background: radial-gradient(circle, #e8c26a 0 5px, transparent 6px), repeating-conic-gradient(rgba(232, 194, 106, 0.25) 0 8deg, transparent 8deg 20deg), linear-gradient(145deg, #3a2470, #1a1040); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5); transform-origin: 50% 120%; }
.v-tarot i:nth-child(1) { transform: rotate(-18deg); } .v-tarot i:nth-child(3) { transform: rotate(18deg); }
.v-tarot i:nth-child(2) { animation: tarot-bouge 3s ease-in-out infinite; }
@keyframes tarot-bouge { 50% { transform: translateY(-8px); box-shadow: 0 0 24px #e8c26a; } }
.v-cal { display: grid; grid-template-columns: repeat(5, 34px); gap: 6px; justify-content: center; align-content: center; }
.v-cal i { height: 34px; border-radius: 6px; display: grid; place-items: center; font-style: normal; font-size: 0.8rem; font-weight: 700; color: #8a1c44; background: linear-gradient(150deg, #fff5e6, #f0d9b5); border: 1px solid #f2c46b; }
.v-cal i:nth-child(n+5) { background: linear-gradient(150deg, #4a2034, #2a0f1c); color: rgba(255, 220, 230, 0.4); }
.v-cal i:nth-child(4) { animation: porte-appel 1.6s ease-in-out infinite; }
@keyframes porte-appel { 50% { box-shadow: 0 0 14px #f2c46b; transform: scale(1.1); } }
.v-roles { display: grid; place-items: center; background: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0 6px, rgba(255, 120, 120, 0.1) 12px, rgba(0, 0, 0, 0.3) 20px), linear-gradient(180deg, #8c0f1c, #3a0509); }
.v-roles::before { content: ''; position: absolute; left: 50%; top: -20px; width: 120px; height: 160px; transform: translateX(-50%); background: linear-gradient(180deg, rgba(255, 230, 180, 0.35), transparent); clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%); }
.v-roles span { position: relative; font-size: 3rem; animation: balance-masque 3s ease-in-out infinite; }
@keyframes balance-masque { 50% { transform: rotate(-10deg) scale(1.08); } }
.v-distance { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 2.2rem; background: radial-gradient(300px 140px at 50% 100%, rgba(58, 123, 213, 0.4), transparent 70%), #0a1020; }
.v-distance i { position: relative; width: 90px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #3a7bd5, #ff6fa0); box-shadow: 0 0 10px #ff6fa0; }
.v-distance i::after { content: '♥'; position: absolute; top: 50%; left: 0; transform: translate(-50%, -55%); font-size: 1rem; color: #ff6fa0; animation: coeur-voyage 2s ease-in-out infinite; }
@keyframes coeur-voyage { 50% { left: 100%; } }
.v-massage { display: grid; place-items: center; background: radial-gradient(300px 140px at 50% 50%, rgba(201, 128, 107, 0.35), transparent 70%), #12201f; }
.v-massage i { width: 80px; height: 80px; border-radius: 50%; border: 2px solid #e8b49a; box-shadow: 0 0 20px rgba(232, 180, 154, 0.6), inset 0 0 20px rgba(111, 194, 176, 0.4); animation: respiration 6s ease-in-out infinite; }
@keyframes respiration { 50% { transform: scale(1.3); opacity: 0.6; } }
.v-roue { display: grid; place-items: center; background: #0b0418; }
.v-roue i { width: 96px; height: 96px; border-radius: 50%; background: conic-gradient(#ff2e88 0 30deg, #16b8d6 30deg 60deg, #a24bff 60deg 90deg, #e8a400 90deg 120deg, #ff6a1f 120deg 150deg, #5a4bd6 150deg 180deg, #16a86a 180deg 210deg, #d6339c 210deg 240deg, #3f73e0 240deg 270deg, #e01f2f 270deg 300deg, #00a896 300deg 330deg, #b3122e 330deg); border: 3px solid #ffd23f; box-shadow: 0 0 20px #ff2e88; animation: tourne-roue 6s cubic-bezier(.3, .1, .2, 1) infinite; }
@keyframes tourne-roue { to { transform: rotate(720deg); } }
@media (prefers-reduced-motion: reduce) {
  .v-strip span, .v-tarot i, .v-cal i, .v-roles span, .v-distance i::after, .v-massage i, .v-roue i { animation: none; }
}

/* ---- Atouts ---- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.feature { padding: 22px; border-radius: 20px; background: rgba(255, 255, 255, 0.02); border: 1px solid var(--line); }
.feature h3 { margin: 0 0 6px; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.93rem; }

/* ---- Texte (SEO, guides) ---- */
.prose { max-width: 760px; margin: 0 auto; color: #d9cfca; }
.prose h2 { font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--text); margin: 40px 0 10px; line-height: 1.15; }
.prose h3 { font-size: 1.15rem; color: var(--text); margin: 26px 0 6px; }
.prose p, .prose li { color: #cdbfb9; }
.prose a { color: #ff8fab; }

/* ---- FAQ ---- */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, 0.02); padding: 0 20px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 1.3rem; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* ---- Pied de page ---- */
.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); margin-top: 40px; color: var(--muted); font-size: 0.88rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* ---- Apparition au défilement ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2, .8, .2, 1); }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
