/* Test de compatibilité des prénoms : formulaire à deux prénoms, jauge circulaire, sous-scores. */

.compat-form { display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
.compat-names-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.compat-names-row .heart { color: var(--violet); font-size: 26px; text-align: center; }
.compat-form .kit-input { width: 100%; }
.compat-message { min-height: 1.4em; color: #ff9b9b; font-size: 14px; margin: 0; }

.compat-visual { display: flex; align-items: center; justify-content: center; }
.compat-hearts { position: relative; width: min(320px, 70vw); aspect-ratio: 1; }
.compat-hearts svg { width: 100%; height: 100%; filter: drop-shadow(0 0 40px rgba(255, 77, 141, 0.35)); }

.compat-result {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 26px;
    align-items: center;
    margin-top: 6px;
    padding: 22px;
    border-radius: 18px;
    border: 1px solid var(--line-gold-2);
    background: rgba(255, 255, 255, 0.02);
}
.compat-gauge {
    width: 190px;
    aspect-ratio: 1;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(closest-side, var(--bg) 78%, transparent 79%),
        conic-gradient(var(--violet) calc(var(--p) * 1%), rgba(255, 255, 255, 0.08) 0);
}
.compat-pct { font-family: var(--serif); font-size: 46px; color: var(--gold-hi); }
.compat-names { font-family: var(--serif); font-size: 28px; margin: 0 0 4px; color: var(--text); }
.compat-names span { color: var(--violet); }
.compat-verdict { margin: 0 0 14px; color: var(--body); }
.compat-subs { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.compat-subs li { display: grid; grid-template-columns: 96px 1fr 48px; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); }
.compat-subs .bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.compat-subs .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--gold)); }
.compat-subs b { color: var(--text); font-weight: 500; text-align: right; }
.compat-num { font-size: 14px; color: var(--dim); margin: 0; }

.how-card ol { margin: 0; padding-left: 20px; color: var(--body); display: grid; gap: 8px; font-size: 15px; }

@media (max-width: 700px) {
    .compat-result { grid-template-columns: 1fr; text-align: center; }
    .compat-gauge { margin: 0 auto; width: 170px; }
    .compat-subs li { grid-template-columns: 84px 1fr 44px; text-align: left; }
}

/* Champs encadrés (le thème ne les encadre que dans .ask-field). */
.compat-form .kit-input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line-gold-3);
    border-radius: 14px;
}
.compat-form .kit-input:focus { border-color: rgba(226, 199, 126, 0.7); box-shadow: 0 0 0 3px rgba(226, 199, 126, 0.12); }

/* Mobile : le thème passe .hero-copy en display: contents et ordonne ses enfants. */
@media (max-width: 899px) {
    .compat-form { order: 3; width: 100%; max-width: 560px; text-align: left; }
    .compat-result { order: 4; width: 100%; max-width: 560px; }
}
