/* Astrologia — page test
   Univers : nuit étoilée, dégradé violet foncé → rose, symboles qui brillent en rose. */

@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/poppins-400.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/poppins-600.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 800; font-display: swap; src: url(../fonts/poppins-800.woff2) format('woff2'); }

:root {
  --nuit: #0b0220;
  --rose: #ff5fa8;
  --rose-clair: #ffd6ec;
  --violet-vif: #9b3fe0;
  --texte: #fff6fb;
  --texte-doux: rgba(255, 236, 247, .8);
  --carte: rgba(255, 255, 255, .07);
  --carte-forte: rgba(255, 255, 255, .11);
  --bord: rgba(255, 185, 225, .24);
  --lueur: drop-shadow(0 0 4px rgba(255, 95, 168, .95)) drop-shadow(0 0 12px rgba(255, 95, 168, .55));
  --rayon: 22px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--texte);
  background: var(--nuit);
  -webkit-tap-highlight-color: transparent;
}

button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--rose-clair); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }

/* ---------- Ciel étoilé ---------- */

.ciel {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(172deg, #0b0220 0%, #1b0636 28%, #3a0e56 55%, #7d2477 80%, #d4549a 100%);
}
.ciel::before,
.ciel::after {
  content: '';
  position: absolute;
  inset: 0;
  background-repeat: repeat;
}
.ciel::before {
  background-image:
    radial-gradient(1px 1px at 22px 34px, #fff 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 140px 82px, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 236px 150px, #ffe3f1 50%, transparent 52%),
    radial-gradient(1.6px 1.6px at 70px 210px, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 190px 250px, #fff 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 262px 22px, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 110px 140px, #ffd6ec 50%, transparent 52%);
  background-size: 280px 280px;
  opacity: .85;
}
.ciel::after {
  background-image:
    radial-gradient(1.8px 1.8px at 60px 70px, #fff 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 300px 190px, #fff 50%, transparent 52%),
    radial-gradient(2px 2px at 180px 330px, #ffd6ec 50%, transparent 52%),
    radial-gradient(1.3px 1.3px at 340px 40px, #fff 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 20px 300px, #fff 50%, transparent 52%);
  background-size: 390px 390px;
  animation: scintille 3.5s ease-in-out infinite alternate;
}
@keyframes scintille { from { opacity: .25; } to { opacity: 1; } }

.etincelle {
  position: absolute;
  width: 16px;
  height: 16px;
  fill: #ffe6f3;
  filter: var(--lueur);
  animation: brille 3s ease-in-out infinite;
}
.e1 { top: 9%;  left: 8%;  width: 14px; height: 14px; }
.e2 { top: 16%; right: 9%; width: 20px; height: 20px; animation-delay: -1.2s; }
.e3 { top: 47%; left: 4%;  width: 11px; height: 11px; animation-delay: -2s; }
.e4 { top: 63%; right: 6%; width: 15px; height: 15px; animation-delay: -.6s; }
.e5 { bottom: 9%; left: 22%; width: 12px; height: 12px; animation-delay: -1.7s; }
@keyframes brille {
  0%, 100% { opacity: .35; transform: scale(.75) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.1) rotate(20deg); }
}

/* ---------- Mise en page ---------- */

.app {
  flex: 1;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left));
}

.ecran { animation: entree .4s ease-out both; }
@keyframes entree { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

h1, h2 { margin: 0; font-weight: 800; letter-spacing: -.01em; line-height: 1.15; text-wrap: balance; }

.glyphe { display: block; fill: var(--rose-clair); filter: var(--lueur); }

/* ---------- Accueil ---------- */

.ecran-accueil {
  min-height: calc(100dvh - 90px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
}
.logo {
  margin: 0;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--rose-clair);
  text-shadow: 0 0 10px rgba(255, 95, 168, .8);
}
.roue {
  --taille: min(64vw, 250px);
  position: relative;
  width: var(--taille);
  height: var(--taille);
  margin: 4px 0;
}
.roue-tour {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 185, 225, .25);
  animation: tourne 60s linear infinite;
}
.roue-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(var(--taille) * .13);
  height: calc(var(--taille) * .13);
  margin: calc(var(--taille) * -.065);
  transform: rotate(calc(var(--i) * 30deg)) translateY(calc(var(--taille) * -.43)) rotate(calc(var(--i) * -30deg));
}
.roue-item .glyphe { width: 100%; height: 100%; }
.roue-coeur {
  position: absolute;
  inset: 26%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 140, 200, .55), rgba(155, 63, 224, .25) 60%, transparent 72%);
  box-shadow: 0 0 60px rgba(255, 95, 168, .35);
}
.roue-coeur svg { width: 38%; height: 38%; fill: #fff; filter: var(--lueur); animation: pulse 2.4s ease-in-out infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }

h1 { font-size: clamp(1.75rem, 8vw, 2.3rem); }
.h1-doux, .h2-doux { font-weight: 600; color: var(--rose-clair); }
.h1-doux { font-size: .62em; white-space: nowrap; }
.h2-doux { font-size: .6em; }
.accroche { margin: 0; max-width: 30ch; color: var(--texte-doux); }
.mini { margin: -6px 0 0; font-size: .82rem; color: var(--texte-doux); }

/* ---------- Boutons ---------- */

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 62px;
  padding: 14px 24px;
  border: 0;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease;
}
.btn:active { transform: scale(.97); }
.btn-principal {
  background: linear-gradient(135deg, #ff74b5 0%, #e0389b 50%, #9b3fe0 100%);
  box-shadow: 0 10px 30px rgba(255, 79, 160, .42), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn-secondaire {
  background: rgba(255, 255, 255, .1);
  border: 1.5px solid rgba(255, 190, 225, .5);
}
.ecran-accueil .btn { max-width: 340px; font-size: 1.2rem; animation: respire 2.4s ease-in-out infinite; }
@keyframes respire {
  0%, 100% { box-shadow: 0 10px 30px rgba(255, 79, 160, .42), inset 0 1px 0 rgba(255, 255, 255, .35); }
  50% { box-shadow: 0 10px 44px rgba(255, 79, 160, .75), inset 0 1px 0 rgba(255, 255, 255, .35); }
}
.lien {
  display: block;
  margin: 6px auto 0;
  padding: 12px;
  border: 0;
  background: none;
  font-weight: 600;
  color: var(--rose-clair);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

/* ---------- Quiz ---------- */

.quiz-tete { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.retour {
  flex: none;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--bord);
  border-radius: 50%;
  background: var(--carte);
  font-size: 1.7rem;
  line-height: 1;
  padding-bottom: 4px;
  cursor: pointer;
}
.progression { flex: 1; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.progression-barre {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff74b5, #ffb3d9);
  box-shadow: 0 0 10px rgba(255, 95, 168, .8);
  transition: width .35s ease;
}
.etape { flex: none; font-weight: 600; font-size: .9rem; color: var(--texte-doux); }

.ecran h2 { font-size: clamp(1.5rem, 7vw, 1.9rem); margin-bottom: 18px; }

.formulaire { display: grid; gap: 14px; }
.champ {
  width: 100%;
  min-height: 62px;
  padding: 14px 20px;
  border: 1.5px solid var(--bord);
  border-radius: 20px;
  background: var(--carte);
  font: 600 1.15rem/1.3 'Poppins', system-ui, sans-serif;
  color: var(--texte);
  text-align: left;
  color-scheme: dark;
  -webkit-appearance: none;
  appearance: none;
}
.champ::placeholder { color: rgba(255, 236, 247, .45); font-weight: 400; }
.champ::-webkit-date-and-time-value { text-align: left; }
.champ:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px rgba(255, 95, 168, .3); }
.aide { margin: -4px 0 4px; font-size: .85rem; color: var(--texte-doux); }
.btn:disabled { opacity: .45; box-shadow: none; cursor: default; }
.btn:disabled:active { transform: none; }

.signe-revele {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255, 95, 168, .28), rgba(155, 63, 224, .24));
  border: 1.5px solid rgba(255, 185, 225, .55);
  animation: entree .35s ease-out both;
}
.signe-revele .duo-rond { flex: none; width: 56px; height: 56px; }
.signe-revele .duo-rond .glyphe { width: 30px; height: 30px; }
.signe-revele p { margin: 0; font-size: 1.05rem; }
.signe-revele strong { font-weight: 800; }

.choix { display: grid; gap: 12px; }
.option {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 16px;
  align-items: center;
  padding: 14px 20px;
  border: 1.5px solid var(--bord);
  border-radius: var(--rayon);
  background: var(--carte);
  text-align: left;
  cursor: pointer;
  transition: transform .15s ease;
}
.option:active { transform: scale(.97); }
.option-emoji { grid-row: span 2; font-size: 2.1rem; line-height: 1; }
.option-nom { font-weight: 800; font-size: 1.2rem; line-height: 1.25; }
.option-detail { font-size: .88rem; color: var(--texte-doux); }
.option.choisi { border-color: var(--rose); background: linear-gradient(160deg, rgba(255, 95, 168, .38), rgba(155, 63, 224, .3)); }

/* ---------- Calcul ---------- */

.ecran-calcul {
  min-height: calc(100dvh - 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.calcul-anim { position: relative; width: 210px; height: 210px; margin-bottom: 28px; }
.orbite { position: absolute; border-radius: 50%; border: 1px solid rgba(255, 185, 225, .2); }
.orbite::before,
.orbite::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px #fff, 0 0 18px var(--rose);
}
.orbite::before { top: -4px; left: calc(50% - 4px); }
.orbite::after { bottom: -4px; left: calc(50% - 4px); width: 5px; height: 5px; }
.o1 { inset: 0; animation: tourne 1.6s linear infinite; }
.o2 { inset: 30px; animation: tourne 1.1s linear infinite reverse; }
.o2::before { background: var(--rose-clair); }
.o3 { inset: 62px; animation: tourne .8s linear infinite; }
.calcul-centre {
  position: absolute;
  inset: 82px;
  fill: #fff;
  filter: var(--lueur);
  animation: pulse 1s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { transform: scale(.8) rotate(0deg); } 50% { transform: scale(1.25) rotate(45deg); } }
.ecran-calcul .calcul-titre { margin-bottom: 6px; }
.calcul-phrase { margin: 0 0 22px; color: var(--texte-doux); min-height: 1.5em; }
.calcul-barre { width: min(240px, 70vw); height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.calcul-barre span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #ff74b5, #ffd6ec);
  box-shadow: 0 0 10px var(--rose);
}
.ecran-calcul:not([hidden]) .calcul-barre span { animation: remplir 2s linear forwards; }
@keyframes remplir { to { width: 100%; } }

/* ---------- Résultat ---------- */

.ecran-resultat { text-align: center; }
.surtitre {
  margin: 0 0 12px;
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--rose-clair);
  text-shadow: 0 0 10px rgba(255, 95, 168, .8);
}
.duo { display: flex; align-items: flex-start; justify-content: center; gap: 14px; margin: 0 0 10px; }
.duo-signe { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 112px; }
.duo-rond {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 185, 225, .45);
  background: radial-gradient(circle at 35% 30%, rgba(255, 140, 200, .35), rgba(155, 63, 224, .2) 70%);
  box-shadow: 0 0 30px rgba(255, 95, 168, .35), inset 0 0 20px rgba(255, 95, 168, .2);
}
.duo-rond .glyphe { width: 46px; height: 46px; }
.duo-signe figcaption { display: flex; flex-direction: column; line-height: 1.25; overflow-wrap: anywhere; }
.duo-signe figcaption strong { font-weight: 800; font-size: 1.05rem; }
.duo-signe figcaption span { font-size: .85rem; color: var(--texte-doux); }
.duo-plus { margin-top: 24px; font-size: 1.8rem; font-weight: 800; color: var(--rose-clair); text-shadow: 0 0 12px var(--rose); }

.pastille {
  display: inline-block;
  margin: 0 0 12px;
  padding: 5px 14px;
  border-radius: 99px;
  font-size: .85rem;
  font-weight: 600;
  background: rgba(255, 95, 168, .2);
  border: 1px solid rgba(255, 95, 168, .45);
}
.ecran-resultat .resultat-titre { font-size: clamp(1.6rem, 7.5vw, 2rem); margin-bottom: 14px; }

.lignes { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; text-align: left; }
.lignes li {
  position: relative;
  padding: 12px 14px 12px 40px;
  border-radius: 18px;
  font-size: .96rem;
  background: var(--carte);
  border: 1px solid rgba(255, 185, 225, .14);
  color: var(--texte);
}
.lignes li::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 17px;
  width: 14px;
  height: 14px;
  background: var(--rose-clair);
  clip-path: path('M7 0C7.6 4.7 9.3 6.4 14 7C9.3 7.6 7.6 9.3 7 14C6.4 9.3 4.7 7.6 0 7C4.7 6.4 6.4 4.7 7 0Z');
  filter: drop-shadow(0 0 4px var(--rose));
}

.accroche-rapport { margin: 0 0 16px; padding: 0 6px; font-weight: 600; font-size: 1.02rem; line-height: 1.45; color: var(--rose-clair); }

.rapport {
  margin: 0 0 14px;
  padding: 14px;
  border-radius: var(--rayon);
  background: var(--carte-forte);
  border: 1.5px dashed rgba(255, 185, 225, .45);
  text-align: left;
}
.rapport-titre { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-weight: 800; font-size: 1.1rem; }
.rapport-titre .cadenas { flex: none; width: 40px; height: 40px; }
.rapport-titre .cadenas svg { width: 19px; height: 19px; }
.rapport-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rapport-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 10px 14px;
  border-radius: 16px;
  background: var(--carte);
  border: 1px solid rgba(255, 185, 225, .14);
}
.rapport-nom { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; line-height: 1.3; }
.rapport-nom::before {
  content: '';
  flex: none;
  width: 14px;
  height: 14px;
  background: var(--rose-clair);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3h.5A2.5 2.5 0 0 1 20 12.5v7a2.5 2.5 0 0 1-2.5 2.5h-11A2.5 2.5 0 0 1 4 19.5v-7A2.5 2.5 0 0 1 6.5 10H7Zm2.2 0h5.6V7a2.8 2.8 0 0 0-5.6 0v3Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3h.5A2.5 2.5 0 0 1 20 12.5v7a2.5 2.5 0 0 1-2.5 2.5h-11A2.5 2.5 0 0 1 4 19.5v-7A2.5 2.5 0 0 1 6.5 10H7Zm2.2 0h5.6V7a2.8 2.8 0 0 0-5.6 0v3Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.flou-texte { flex: 0 0 34%; display: grid; gap: 7px; filter: blur(3px); }
.flou-texte i { display: block; height: 8px; border-radius: 99px; background: rgba(255, 214, 236, .65); }
.flou-texte i:last-child { width: 70%; }
.score-flou {
  flex: none;
  padding: 0 6px;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .04em;
  color: #ffd6ec;
  filter: blur(7px);
  user-select: none;
}
.cadenas {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(20, 4, 43, .55);
  border: 1.5px solid rgba(255, 185, 225, .6);
  box-shadow: 0 0 20px rgba(255, 95, 168, .5);
}
.cadenas svg { fill: #fff; }

.reserver {
  margin: 0 0 12px;
  padding: 20px 18px 16px;
  border-radius: var(--rayon);
  background: linear-gradient(160deg, rgba(255, 95, 168, .28), rgba(155, 63, 224, .24));
  border: 1.5px solid rgba(255, 185, 225, .55);
}
.reserver-titre { margin: 0 0 14px; font-weight: 600; font-size: 1.05rem; line-height: 1.45; }
.reserver-note { margin: 12px 0 0; font-size: .8rem; line-height: 1.4; color: var(--texte-doux); }

/* ---------- Pied de page, toast ---------- */

.pied {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  padding: 18px 16px max(18px, env(safe-area-inset-bottom));
  font-size: .82rem;
  color: var(--texte-doux);
}
.pied a { color: var(--rose-clair); }
.pied-liens { display: inline-flex; gap: 14px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  transform: translate(-50%, 20px);
  max-width: calc(100% - 32px);
  padding: 12px 20px;
  border-radius: 99px;
  background: #fff;
  color: #3a0e56;
  font-weight: 600;
  font-size: .95rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

.noscript { text-align: center; padding: 40px 0; }

/* ---------- Page confidentialité ---------- */

.page-texte h1 { font-size: 1.8rem; margin: 18px 0 4px; }
.page-texte h2 { font-size: 1.15rem; margin: 26px 0 8px; color: var(--rose-clair); }
.page-texte p, .page-texte li { color: var(--texte-doux); }
.page-texte ul { padding-left: 20px; }
.page-texte li { margin-bottom: 8px; }
.page-texte strong { color: var(--texte); }
.page-texte a { color: var(--rose-clair); }
.retour-accueil { font-weight: 600; text-decoration: none; }
.maj { margin-top: 0; font-size: .85rem; }

/* Petits écrans (iPhone SE…) */
@media (max-height: 680px) {
  .roue { --taille: min(52vw, 200px); }
  .ecran-accueil { gap: 14px; }
  .option { padding: 11px 18px; }
  .option-emoji { font-size: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .ecran-calcul:not([hidden]) .calcul-barre span { animation: none; width: 100%; }
}
