/* ============================================================
   Horoscope Formulaire v2.0 — Design moderne cosmique
   ============================================================ */

/* ---- Conteneur principal ---- */
.horoform-wrap {
    max-width: 600px;
    margin: 30px auto;
    margin-bottom: 60px !important;
    font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    color: #fff;
    -webkit-font-smoothing: antialiased;
}

/* ---- Carte d'étape ---- */
.horoform-step {
    background: linear-gradient(160deg, #1b0140 0%, #0c1a50 60%, #1b0140 100%);
    border-radius: 20px;
    padding: 44px 36px;
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

/* Lueur centrale subtile */
.horoform-step::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.08) 0%, transparent 65%);
    pointer-events: none;
}

.horoform-step-center {
    text-align: center;
}

/* ---- Étoiles décoratives ---- */
.horoform-stars {
    text-align: center;
    font-size: 22px;
    letter-spacing: 18px;
    color: #d4af37;
    margin-bottom: 18px;
}

/* ---- Titres ---- */
.horoform-title {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    color: #d4af37;
    margin: 0 0 10px;
    line-height: 1.3;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.25);
}

.horoform-subtitle {
    text-align: center;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.62);
    margin: 0 0 32px;
    line-height: 1.5;
}

.horoform-step-title {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 22px;
}

/* ---- Boutons ---- */
.horoform-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    white-space: nowrap;
    min-width: 200px;
}

/* Facebook bleu */
.horoform-btn-facebook {
    background: #1877f2;
    color: #fff;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    display:block;
}
.horoform-btn-facebook:hover {
    background: #1561cc;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(24, 119, 242, 0.42);
    color: #fff;
}

/* Bouton "Générer" doré */
.horoform-btn-generate {
    background: linear-gradient(135deg, #d4af37 0%, #f5d060 100%);
    color: #1b0140;
    width: 100%;
    font-size: 18px;
    padding: 18px 28px;
    margin-top: 28px;
    border-radius: 14px;
}
.horoform-btn-generate:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(212, 175, 55, 0.38);
}

/* Télécharger */
.horoform-btn-download {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
}
.horoform-btn-download:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

/* Secondaire / Recommencer */
.horoform-btn-secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
    padding: 10px 22px;
    min-width: auto;
}
.horoform-btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

/* ---- Mentions vie privée ---- */
.horoform-privacy {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.38);
    margin-top: 16px;
    line-height: 1.6;
}

/* ---- Notice d'erreur config ---- */
.horoform-notice {
    background: rgba(255, 210, 0, 0.1);
    border: 1px solid rgba(255, 210, 0, 0.35);
    border-radius: 10px;
    padding: 14px 18px;
    color: #ffd700;
    font-size: 14px;
    text-align: center;
}
.horoform-notice a {
    color: #ffd700;
    text-decoration: underline;
}

/* ---- Carte utilisateur (étape 2) ---- */
.horoform-user-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 14px;
    padding: 14px 20px;
    margin-bottom: 30px;
}

.horoform-user-photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #d4af37;
    flex-shrink: 0;
}

.horoform-user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.horoform-user-name {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.horoform-user-badge {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.48);
}

/* ---- Sélecteurs de date ---- */
.horoform-date-row {
    display: flex;
    gap: 14px;
}

.horoform-date-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.horoform-date-col label {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.horoform-select {
    width: 100%;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    text-align: center;
}
.horoform-select:focus {
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}
.horoform-select option {
    background: #1b0140;
    color: #fff;
}

/* ---- Spinner de chargement ---- */
.horoform-spinner {
    width: 52px;
    height: 52px;
    border: 4px solid rgba(212, 175, 55, 0.2);
    border-top-color: #d4af37;
    border-radius: 50%;
    animation: horoSpin 0.9s linear infinite;
    margin: 0 auto 22px;
}
@keyframes horoSpin {
    to { transform: rotate(360deg); }
}

.horoform-loading-text {
    color: rgba(255, 255, 255, 0.65);
    font-style: italic;
    margin: 0;
}

/* ---- Résultat ---- */
.horoform-result-title {
    text-align: center;
    color: #d4af37;
    font-size: 20px;
    margin: 0 0 20px;
}

.horoform-result-img-wrap {
    text-align: center;
    margin-bottom: 28px;
}

.horoform-result-img {
    max-width: 100%;
    max-height: 520px;
    border-radius: 14px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55);
}

.horoform-result-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.horoform-result-actions .horoform-btn {
    width: 100%;
    max-width: 340px;
}

/* ---- Erreur ---- */
.horoform-error-text {
    color: rgba(255, 100, 100, 0.9);
    margin-bottom: 18px;
}

/* ---- Page de partage (horoscope déjà créé) ---- */
.horoform-shared {
    text-align: center;
}
.horoform-shared-inner {
    display: inline-block;
    max-width: 480px;
}
.horoform-shared-label {
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
    margin-bottom: 14px;
}
.horoform-shared-img {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    margin-bottom: 22px;
}
.horoform-shared-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}
.horoform-shared-actions .horoform-btn {
    width: 100%;
    max-width: 320px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 520px) {
    .horoform-step {
        padding: 28px 18px;
        border-radius: 16px;
    }
    .horoform-title {
        font-size: 22px;
    }
    .horoform-date-row {
        gap: 8px;
    }
    .horoform-user-card {
        flex-direction: column;
        text-align: center;
    }
    .horoform-user-info {
        align-items: center;
    }
    .horoform-btn-generate {
        font-size: 16px;
        padding: 16px;
    }
}
