/* =========================================================
   COSMIC HOROSCOPE — Design system
   Thème sombre mystique. Toutes les pages partagent ce CSS.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Palette générale */
    --bg-deep:        #0b0420;
    --bg-mid:         #150a35;
    --bg-soft:        #1e1042;
    --bg-card:        rgba(28, 18, 60, 0.55);
    --bg-card-strong: rgba(28, 18, 60, 0.78);
    --bg-glass:       rgba(46, 32, 88, 0.45);
    --border-soft:    rgba(167, 139, 250, 0.18);
    --border-strong:  rgba(167, 139, 250, 0.35);

    /* Texte */
    --text-primary:   #f4ecff;
    --text-secondary: #c9bfe6;
    --text-muted:     #8c81b0;

    /* Accents */
    --accent:         #a78bfa;       /* violet principal */
    --accent-glow:    #c4b5fd;
    --accent-deep:    #7c3aed;
    --accent-pink:    #f0abfc;
    --gold:           #fde68a;

    /* Couleurs par signe (peuvent être surchargées par .sign--xxx) */
    --sign-color:     #a78bfa;
    --sign-glow:      rgba(167, 139, 250, 0.55);
    --sign-soft:      rgba(167, 139, 250, 0.18);

    /* Rayons & ombres */
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --shadow-card: 0 20px 50px -20px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--border-soft);
    --shadow-glow: 0 0 30px var(--sign-glow);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    background: var(--bg-deep);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    padding-bottom: 110px; /* place pour la nav du bas */
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* =========================================================
   FOND COSMIQUE (placeholder en attendant les vraies images)
   - Couche 1 : dégradés cosmiques
   - Couche 2 : étoiles générées dynamiquement
   - Couche 3 : .cosmic-bg-image (le user pourra y mettre une vraie image)
   ========================================================= */
.cosmic-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse at 20% 15%, rgba(124, 58, 237, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 90%, rgba(168, 85, 247, 0.30) 0%, transparent 55%),
        radial-gradient(ellipse at 70% 20%, rgba(192, 132, 252, 0.18) 0%, transparent 45%),
        linear-gradient(180deg, #0a041e 0%, #150836 50%, #0a041e 100%);
    overflow: hidden;
}

/* Calque image (le user pourra mettre son visuel ici via background-image inline) */
.cosmic-bg-image {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-size: cover;
    background-position: center;
    opacity: 0.35;
    pointer-events: none;
    mix-blend-mode: screen;
}

.cosmic-stars {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.cosmic-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    opacity: 0.6;
    animation: twinkle 3.5s ease-in-out infinite;
}
.cosmic-star.lg { width: 3px; height: 3px; }
.cosmic-star.xl {
    width: 4px; height: 4px;
    box-shadow: 0 0 8px rgba(255,255,255,0.8);
}

@keyframes twinkle {
    0%, 100% { opacity: 0.25; transform: scale(1); }
    50%      { opacity: 1;    transform: scale(1.4); }
}

/* Lune décorative (placeholder) */
.cosmic-moon {
    position: fixed;
    top: 60px;
    right: -40px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 35%, #fdf2c0 0%, #c4a14e 35%, #2d1a4a 75%),
        #1e1042;
    box-shadow:
        inset -25px -25px 60px rgba(0,0,0,0.55),
        0 0 80px rgba(252, 211, 77, 0.18);
    opacity: 0.55;
    pointer-events: none;
    z-index: -1;
}

@media (max-width: 600px) {
    .cosmic-moon { width: 150px; height: 150px; top: 30px; right: -30px; }
}

/* =========================================================
   STRUCTURE
   ========================================================= */
.page {
    max-width: 480px;
    margin: 0 auto;
    padding: 40px 20px 20px;
    position: relative;
    z-index: 1;
}

@media (min-width: 800px) {
    .page { max-width: 720px; }
}

/* =========================================================
   EN-TÊTE D'ACCUEIL
   ========================================================= */
.home-header {
    margin-bottom: 30px;
    animation: fadeUp 0.7s ease both;
}

.home-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: 3rem;
    line-height: 1.05;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.home-date {
    margin-top: 10px;
    color: var(--accent-glow);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.4px;
}

.home-subtitle {
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 320px;
}

/* =========================================================
   CARTE "MESSAGE COSMIQUE DU JOUR"
   ========================================================= */
.cosmic-message {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-card);
    animation: fadeUp 0.8s ease both;
}

.cosmic-message__icon {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--accent-deep), var(--accent));
    box-shadow: 0 0 25px rgba(167, 139, 250, 0.55);
    font-size: 1.6rem;
    color: #fff;
}

.cosmic-message__body { flex: 1; min-width: 0; }
.cosmic-message__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.cosmic-message__text {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.cosmic-message__play {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 50%;
    border: 2px solid var(--border-strong);
    background: var(--bg-glass);
    color: var(--text-primary);
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}
.cosmic-message__play:hover {
    transform: scale(1.06);
    background: var(--accent-deep);
    box-shadow: 0 0 25px rgba(167, 139, 250, 0.5);
}
.cosmic-message__play-meta {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* =========================================================
   TITRE DE SECTION
   ========================================================= */
.section-bar {
    margin: 36px 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.section-bar h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-bar h2 .star { color: var(--accent); }
.section-bar small { color: var(--text-muted); font-size: 0.85rem; }

/* =========================================================
   GRILLE DES SIGNES (page d'accueil)
   ========================================================= */
.zodiac-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

@media (max-width: 480px) {
    .zodiac-grid { gap: 12px; }
}

.zodiac-card {
    --c: var(--sign-color);
    --g: var(--sign-glow);
    background: linear-gradient(180deg, rgba(40, 25, 80, 0.55), rgba(20, 12, 45, 0.55));
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 16px 12px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeUp 0.6s ease both;
    position: relative;
    overflow: hidden;
}
.zodiac-card:hover {
    transform: translateY(-4px);
    border-color: var(--c);
    box-shadow: 0 12px 30px -10px var(--g);
}
.zodiac-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-md);
    background: radial-gradient(circle at 50% 0%, var(--g), transparent 70%);
    opacity: 0.35;
    pointer-events: none;
}

.zodiac-card__symbol {
    font-size: 2.2rem;
    color: var(--c);
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 0 0 18px var(--g);
}

.zodiac-card__name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 2px;
}
.zodiac-card__dates {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.3;
    margin-bottom: 10px;
}
.zodiac-card__cta {
    margin-top: auto;
    width: 100%;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(167, 139, 250, 0.10);
    border: 1px solid var(--border-soft);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.25s ease, color 0.25s ease;
}
.zodiac-card:hover .zodiac-card__cta {
    background: var(--c);
    color: #fff;
}

/* Délais d’animation décalés */
.zodiac-card:nth-child(1)  { animation-delay: .05s; }
.zodiac-card:nth-child(2)  { animation-delay: .10s; }
.zodiac-card:nth-child(3)  { animation-delay: .15s; }
.zodiac-card:nth-child(4)  { animation-delay: .20s; }
.zodiac-card:nth-child(5)  { animation-delay: .25s; }
.zodiac-card:nth-child(6)  { animation-delay: .30s; }
.zodiac-card:nth-child(7)  { animation-delay: .35s; }
.zodiac-card:nth-child(8)  { animation-delay: .40s; }
.zodiac-card:nth-child(9)  { animation-delay: .45s; }
.zodiac-card:nth-child(10) { animation-delay: .50s; }
.zodiac-card:nth-child(11) { animation-delay: .55s; }
.zodiac-card:nth-child(12) { animation-delay: .60s; }

/* =========================================================
   PAGE DE SIGNE — Header
   ========================================================= */
.sign-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-bottom: 18px;
    animation: fadeUp 0.5s ease both;
}
.sign-header > :first-child { justify-self: start; }
.sign-header > :last-child  { justify-self: end; }
.sign-header__actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border-soft);
    color: var(--text-primary);
    display: inline-grid;
    place-items: center;
    transition: background 0.25s ease, transform 0.25s ease;
    text-decoration: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.icon-btn:hover {
    background: var(--accent-deep);
    transform: scale(1.05);
}

/* Bouton favori (étoile cliquable) */
.fav-btn {
    color: var(--text-secondary);
    transition: color 0.25s ease, transform 0.25s ease;
}
.fav-btn:hover { color: var(--gold); transform: scale(1.1); }
.fav-btn.is-fav {
    color: var(--gold);
    background: rgba(253, 230, 138, 0.15);
    border-color: var(--gold);
    box-shadow: 0 0 18px rgba(253, 230, 138, 0.4);
    animation: favPop 0.35s ease;
}
@keyframes favPop {
    0%   { transform: scale(0.85); }
    60%  { transform: scale(1.18); }
    100% { transform: scale(1); }
}

.sign-emblem {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 50%, var(--sign-glow) 0%, transparent 70%),
                rgba(30, 16, 66, 0.7);
    border: 2px solid var(--sign-color);
    font-size: 2.3rem;
    color: var(--sign-color);
    text-shadow: 0 0 20px var(--sign-glow);
    box-shadow: 0 0 30px var(--sign-glow), inset 0 0 20px rgba(255,255,255,0.05);
    position: relative;
}
.sign-emblem::before {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1px dashed var(--border-strong);
    animation: rotate 30s linear infinite;
    opacity: 0.6;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.sign-title {
    text-align: center;
    margin: 18px 0 26px;
    animation: fadeUp 0.6s ease both;
}
.sign-title h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}
.sign-title .sign-date {
    margin-top: 4px;
    color: var(--sign-color);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* =========================================================
   LECTEUR AUDIO
   ========================================================= */
.audio-player {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-card);
    animation: fadeUp 0.65s ease both;
}
.audio-player__play {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--accent-deep), var(--accent));
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.4);
}
.audio-player__play:hover { transform: scale(1.07); }
.audio-player__play.playing {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
}
.audio-player__body { flex: 1; min-width: 0; }
.audio-player__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.audio-player__subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.audio-player__bar {
    width: 100%;
    height: 4px;
    background: rgba(167, 139, 250, 0.18);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}
.audio-player__bar-fill {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-glow));
    border-radius: 999px;
    transition: width 0.2s linear;
}
.audio-player__time {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
}
.audio-player__icon-wave {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(167, 139, 250, 0.15);
    display: grid;
    place-items: center;
    color: var(--accent-glow);
    font-size: 1rem;
}

/* =========================================================
   SCORES (chance / énergie / humeur)
   ========================================================= */
.scores {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
    animation: fadeUp 0.7s ease both;
}
.score-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 14px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
    min-width: 0;
    overflow: hidden;
}
.score-card > div { min-width: 0; }
.score-card__icon {
    width: 38px; height: 38px; flex: 0 0 38px;
    border-radius: 10px;
    display: grid; place-items: center;
    font-size: 1rem;
    background: rgba(167, 139, 250, 0.15);
    color: var(--accent-glow);
}
.score-card.--luck   .score-card__icon { background: rgba(192, 132, 252, 0.18); color: #e9d5ff; }
.score-card.--energy .score-card__icon { background: rgba(248, 113, 113, 0.18); color: #fca5a5; }
.score-card.--mood   .score-card__icon { background: rgba(253, 224, 71, 0.18);  color: #fde68a; }

.score-card__label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.score-card__value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1;
    white-space: nowrap;
}

/* =========================================================
   SECTIONS DU HOROSCOPE
   ========================================================= */
.horoscope-sections {
    display: flex;
    flex-direction: column;
    gap: 14px;
    animation: fadeUp 0.75s ease both;
}

.h-section {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    gap: 14px;
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
    position: relative;
}
.h-section:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
    background: var(--bg-card-strong);
}

.h-section__icon {
    width: 44px; height: 44px; flex: 0 0 44px;
    border-radius: 14px;
    display: grid; place-items: center;
    font-size: 1.15rem;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-deep), var(--accent));
    box-shadow: 0 0 15px rgba(167, 139, 250, 0.35);
}
.h-section.--love   .h-section__icon { background: linear-gradient(135deg, #be185d, #f472b6); box-shadow: 0 0 15px rgba(244,114,182,0.35); }
.h-section.--work   .h-section__icon { background: linear-gradient(135deg, #1d4ed8, #60a5fa); box-shadow: 0 0 15px rgba(96,165,250,0.35); }
.h-section.--health .h-section__icon { background: linear-gradient(135deg, #047857, #34d399); box-shadow: 0 0 15px rgba(52,211,153,0.35); }
.h-section.--money  .h-section__icon { background: linear-gradient(135deg, #b45309, #fbbf24); box-shadow: 0 0 15px rgba(251,191,36,0.35); }

.h-section__body { flex: 1; min-width: 0; }
.h-section__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.h-section__text {
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: -webkit-line-clamp 0.3s ease, line-clamp 0.3s ease;
}
.h-section.expanded .h-section__text {
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
}

.h-section__chevron {
    align-self: center;
    color: var(--text-muted);
    font-size: 1rem;
    transition: transform 0.25s ease, color 0.25s ease;
}
.h-section.expanded .h-section__chevron {
    transform: rotate(90deg);
    color: var(--accent-glow);
}

.h-section__actions {
    margin-top: 10px;
    display: none;
    gap: 8px;
}
.h-section.expanded .h-section__actions { display: flex; }

.h-btn {
    background: rgba(167, 139, 250, 0.12);
    border: 1px solid var(--border-soft);
    color: var(--text-secondary);
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease, color 0.2s ease;
}
.h-btn:hover { background: var(--accent-deep); color: #fff; }
.h-btn.playing { background: linear-gradient(135deg, #16a34a, #22c55e); color: #fff; border-color: transparent; }

/* =========================================================
   CONSEIL DES ASTRES (bandeau bas)
   ========================================================= */
.advice-banner {
    margin-top: 18px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.25), rgba(192, 132, 252, 0.15));
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    backdrop-filter: blur(10px);
    animation: fadeUp 0.8s ease both;
}
.advice-banner__icon {
    color: var(--accent-glow);
    font-size: 1.4rem;
}
.advice-banner__body { flex: 1; }
.advice-banner__title {
    color: var(--accent-glow);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
}
.advice-banner__text {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.5;
}
.advice-banner__star {
    color: var(--accent);
    font-size: 1rem;
}

/* =========================================================
   ÉCRAN DE CHARGEMENT — BOULE DE CRISTAL
   ========================================================= */
.crystal-loader {
    text-align: center;
    padding: 20px 0;
    animation: fadeUp 0.6s ease both;
}

.crystal-ball {
    width: 240px;
    height: 240px;
    margin: 0 auto;
    position: relative;
    display: grid;
    place-items: center;
}

.crystal-ball__orb {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 25%, rgba(255,255,255,0.55) 0%, transparent 30%),
        radial-gradient(circle at 65% 70%, rgba(192, 132, 252, 0.55) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.85) 0%, rgba(30, 16, 66, 0.95) 80%);
    box-shadow:
        0 0 60px rgba(167, 139, 250, 0.7),
        inset 0 0 50px rgba(192, 132, 252, 0.35),
        inset -20px -20px 60px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
    animation: orb-pulse 4s ease-in-out infinite;
}

.crystal-ball__orb::before,
.crystal-ball__orb::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.crystal-ball__orb::before {
    inset: 15%;
    background:
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.15), transparent 70%);
    animation: swirl 8s linear infinite;
    box-shadow: inset 0 0 40px rgba(192,132,252,0.4);
}
.crystal-ball__orb::after {
    top: 15%; left: 25%;
    width: 30%; height: 20%;
    background: rgba(255,255,255,0.45);
    filter: blur(6px);
    transform: rotate(-25deg);
}

@keyframes orb-pulse {
    0%, 100% { box-shadow: 0 0 60px rgba(167,139,250,0.7), inset 0 0 50px rgba(192,132,252,0.35), inset -20px -20px 60px rgba(0,0,0,0.4); }
    50%      { box-shadow: 0 0 90px rgba(192,132,252,0.9), inset 0 0 70px rgba(192,132,252,0.55), inset -20px -20px 60px rgba(0,0,0,0.4); }
}

@keyframes swirl {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Socle de la boule */
.crystal-ball__base {
    position: absolute;
    bottom: -16px;
    width: 130px;
    height: 26px;
    background: linear-gradient(180deg, #4a2e7a, #1b0d3a);
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}
.crystal-ball__base::before {
    content: "";
    position: absolute;
    inset: 3px 8px;
    background: linear-gradient(180deg, #6b46c1, #2d1a4a);
    border-radius: 50%;
}

/* Messages mystiques qui défilent dans la boule */
.crystal-messages {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
}
.crystal-message {
    position: absolute;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    font-style: italic;
    color: rgba(255,255,255,0.85);
    text-align: center;
    padding: 0 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    text-shadow: 0 0 12px rgba(192, 132, 252, 0.7);
    line-height: 1.3;
    max-width: 200px;
}
.crystal-message.show { opacity: 1; transform: translateY(0); }
.crystal-message.show.--big { font-size: 1.25rem; font-weight: 600; color: #fff; }

/* Barre de progression */
.crystal-progress {
    margin: 50px auto 0;
    max-width: 360px;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    backdrop-filter: blur(10px);
}
.crystal-progress__label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.crystal-progress__label strong {
    color: var(--text-primary);
    font-weight: 600;
}
.crystal-progress__bar {
    width: 100%;
    height: 6px;
    background: rgba(167,139,250,0.15);
    border-radius: 999px;
    overflow: hidden;
}
.crystal-progress__fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-deep), var(--accent-glow));
    border-radius: 999px;
    box-shadow: 0 0 12px rgba(192,132,252,0.7);
    transition: width 0.4s ease;
}
.crystal-progress__hint {
    margin-top: 10px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-style: italic;
}
.crystal-progress__hint .star {
    color: var(--accent-glow);
    margin: 0 4px;
    animation: twinkle 1.5s ease-in-out infinite;
}

/* Carte info "Lecture / Écoute" sous le loader */
.loader-info {
    margin: 24px auto 0;
    max-width: 360px;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    text-align: center;
    gap: 10px;
    backdrop-filter: blur(10px);
}
.loader-info__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.loader-info__item i {
    font-size: 1.4rem;
    color: var(--accent-glow);
    background: rgba(167,139,250,0.15);
    width: 44px; height: 44px;
    border-radius: 12px;
    display: grid; place-items: center;
}
.loader-info__item strong {
    font-size: 0.85rem;
    color: var(--text-primary);
}
.loader-info__item span {
    font-size: 0.72rem;
    color: var(--text-muted);
}
.loader-info__sep {
    color: var(--accent);
    font-size: 1.2rem;
}

.loader-tagline {
    margin-top: 18px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.82rem;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    padding: 10px 18px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.loader-tagline-wrap { text-align: center; }

/* =========================================================
   BARRE DE NAVIGATION INFÉRIEURE
   ========================================================= */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(11, 4, 32, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-soft);
    z-index: 50;
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
}
.bottom-nav__inner {
    max-width: 480px;
    margin: 0 auto;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 4px;
    padding: 0 12px;
}

@media (min-width: 800px) {
    .bottom-nav__inner { max-width: 720px; }
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 4px;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 500;
    border-radius: 12px;
    transition: color 0.25s ease, background 0.25s ease;
}
.nav-item i {
    font-size: 1.1rem;
    transition: transform 0.25s ease;
}
.nav-item:hover { color: var(--text-secondary); }
.nav-item.active {
    color: var(--accent-glow);
    background: rgba(167, 139, 250, 0.12);
}
.nav-item.active i { transform: scale(1.1); }

/* =========================================================
   ANIMATIONS PARTAGÉES
   ========================================================= */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   COULEURS PAR SIGNE
   ========================================================= */
.sign--aries       { --sign-color: #c4b5fd; --sign-glow: rgba(196,181,253,0.55); }
.sign--taurus      { --sign-color: #fbbf24; --sign-glow: rgba(251,191,36,0.55); }
.sign--gemini      { --sign-color: #93c5fd; --sign-glow: rgba(147,197,253,0.55); }
.sign--cancer      { --sign-color: #67e8f9; --sign-glow: rgba(103,232,249,0.55); }
.sign--leo         { --sign-color: #fb923c; --sign-glow: rgba(251,146,60,0.55); }
.sign--virgo       { --sign-color: #86efac; --sign-glow: rgba(134,239,172,0.55); }
.sign--libra       { --sign-color: #f9a8d4; --sign-glow: rgba(249,168,212,0.55); }
.sign--scorpio     { --sign-color: #e879f9; --sign-glow: rgba(232,121,249,0.55); }
.sign--sagittarius { --sign-color: #fb7185; --sign-glow: rgba(251,113,133,0.55); }
.sign--capricorn   { --sign-color: #5eead4; --sign-glow: rgba(94,234,212,0.55); }
.sign--aquarius    { --sign-color: #22d3ee; --sign-glow: rgba(34,211,238,0.55); }
.sign--pisces      { --sign-color: #c4b5fd; --sign-glow: rgba(196,181,253,0.55); }

/* =========================================================
   RESPONSIVE — mobile first, Z Fold 6 plié compatible
   ========================================================= */

/* Petits téléphones (iPhone SE, etc.) */
@media (max-width: 400px) {
    .page { padding: 30px 16px 20px; }
    .home-title { font-size: 2.4rem; }
    .sign-title h1 { font-size: 2.5rem; }
    .zodiac-card__symbol { font-size: 1.9rem; }
    .zodiac-card__name { font-size: 1rem; }

    /* Scores : on resserre tout pour rentrer dans 3 cartes */
    .scores { gap: 8px; }
    .score-card { padding: 12px 8px; gap: 8px; }
    .score-card__icon {
        width: 34px; height: 34px; flex: 0 0 34px; font-size: 0.9rem;
        border-radius: 9px;
    }
    .score-card__label { font-size: 0.6rem; letter-spacing: 0.6px; }
    .score-card__value { font-size: 1.2rem; }
    .score-card__value small { font-size: 0.55em !important; }
}

/* Z Fold 6 plié (~344 px de large) */
@media (max-width: 360px) {
    .page { padding: 26px 12px 20px; }
    .scores { gap: 6px; }
    .score-card {
        padding: 10px 6px;
        flex-direction: column;
        gap: 6px;
        text-align: center;
        align-items: center;
        justify-content: center;
    }
    .score-card__icon {
        width: 32px; height: 32px; flex: 0 0 32px; font-size: 0.85rem;
    }
    .score-card__label { font-size: 0.58rem; }
    .score-card__value { font-size: 1.1rem; }
}

/* Écrans ultra étroits (Galaxy Fold 1ère gen, ~280 px) */
@media (max-width: 300px) {
    .home-title { font-size: 2rem; }
    .sign-title h1 { font-size: 2.1rem; }
    .crystal-ball, .crystal-ball__orb { width: 180px; height: 180px; }
    .zodiac-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 800px) {
    .zodiac-grid { grid-template-columns: repeat(4, 1fr); }
    .sign-title h1 { font-size: 3.6rem; }
}

/* Sécurité : aucun débordement horizontal */
html, body { overflow-x: hidden; max-width: 100vw; }

/* =========================================================
   MODALES (Astro Insights, Profil)
   ========================================================= */
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(11, 4, 32, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    animation: modalFadeIn 0.25s ease;
}
.modal.show { display: flex; }

@keyframes modalFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal__sheet {
    background: linear-gradient(180deg, #1b0e3d 0%, #0e0524 100%);
    border-top: 1px solid var(--border-strong);
    border-radius: 24px 24px 0 0;
    width: 100%;
    max-width: 480px;
    max-height: 88vh;
    overflow-y: auto;
    padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
    box-shadow: 0 -20px 60px rgba(0,0,0,0.6);
    animation: sheetSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

@media (min-width: 800px) {
    .modal__sheet { max-width: 560px; }
}

@keyframes sheetSlideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

.modal__handle {
    width: 44px;
    height: 4px;
    background: rgba(167,139,250,0.4);
    border-radius: 999px;
    margin: 0 auto 16px;
}

.modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border-soft);
    color: var(--text-secondary);
    display: grid;
    place-items: center;
    font-size: 0.9rem;
    z-index: 2;
}
.modal__close:hover { color: var(--text-primary); background: var(--accent-deep); }

.modal__header {
    text-align: center;
    margin: 6px 0 22px;
}
.modal__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.modal__subtitle {
    color: var(--accent-glow);
    font-size: 0.85rem;
}

/* ----- Astro Insights : phase de lune ----- */
.insight-moon {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-bottom: 14px;
}
.moon-visual {
    width: 70px; height: 70px; flex: 0 0 70px;
    border-radius: 50%;
    position: relative;
    background: radial-gradient(circle at 30% 30%, #fdf2c0 0%, #c4a14e 50%, #2d1a4a 90%);
    box-shadow:
        inset -15px -15px 30px rgba(0,0,0,0.5),
        0 0 30px rgba(252, 211, 77, 0.35);
    overflow: hidden;
}
.moon-visual__shadow {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #0a041e;
    transition: transform 0.4s ease;
}
.insight-moon__body { flex: 1; min-width: 0; }
.insight-moon__name {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--text-primary);
}
.insight-moon__pct {
    color: var(--accent-glow);
    font-size: 0.82rem;
    margin-top: 2px;
}
.insight-moon__desc {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.45;
    margin-top: 8px;
}

/* ----- Astro Insights : énergie planétaire ----- */
.insight-energy {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-bottom: 14px;
}
.insight-energy__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.insight-energy__title i { color: var(--accent-glow); }

.energy-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.energy-row:last-child { margin-bottom: 0; }
.energy-row__name {
    width: 75px;
    font-size: 0.82rem;
    color: var(--text-secondary);
}
.energy-row__bar {
    flex: 1;
    height: 6px;
    background: rgba(167,139,250,0.15);
    border-radius: 999px;
    overflow: hidden;
}
.energy-row__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-deep), var(--accent-glow));
    border-radius: 999px;
    transition: width 0.6s ease;
}
.energy-row__value {
    width: 36px;
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

/* ----- Astro Insights : signes compatibles ----- */
.insight-compat {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-bottom: 14px;
}
.insight-compat__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.insight-compat__title i { color: #f0abfc; }

.compat-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.compat-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: rgba(167,139,250,0.12);
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.82rem;
    transition: background 0.2s ease, color 0.2s ease;
}
.compat-chip:hover { background: var(--accent-deep); color: #fff; }
.compat-chip span { font-size: 1rem; }

/* ----- Astro Insights : conseil universel ----- */
.insight-tip {
    background: linear-gradient(135deg, rgba(124,58,237,0.30), rgba(192,132,252,0.18));
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.insight-tip__icon {
    font-size: 1.4rem;
    color: var(--accent-glow);
    margin-top: 2px;
}
.insight-tip__body {
    flex: 1;
}
.insight-tip__title {
    color: var(--accent-glow);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
}
.insight-tip__text {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ----- Profil ----- */
.profile-section {
    margin-bottom: 18px;
}
.profile-section__label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.profile-fav-sign {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.profile-fav-sign__icon {
    width: 50px; height: 50px;
    border-radius: 14px;
    display: grid; place-items: center;
    font-size: 1.6rem;
    background: rgba(167,139,250,0.15);
    color: var(--accent-glow);
}
.profile-fav-sign__name {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    color: var(--text-primary);
}
.profile-fav-sign__hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.profile-fav-sign__arrow {
    margin-left: auto;
    color: var(--text-muted);
}

.profile-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}
.profile-toggle__label { font-size: 0.9rem; color: var(--text-primary); }
.profile-toggle__hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.profile-toggle__body { flex: 1; min-width: 0; }

.switch {
    position: relative;
    width: 46px;
    height: 26px;
    flex: 0 0 46px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch__slider {
    position: absolute;
    inset: 0;
    background: rgba(167,139,250,0.25);
    border-radius: 999px;
    transition: background 0.25s ease;
    cursor: pointer;
}
.switch__slider::before {
    content: "";
    position: absolute;
    height: 20px; width: 20px;
    left: 3px; top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.25s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.switch input:checked + .switch__slider { background: var(--accent-deep); }
.switch input:checked + .switch__slider::before { transform: translateX(20px); }

.profile-meta {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 20px;
    line-height: 1.5;
}
.profile-meta strong { color: var(--accent-glow); }

/* Toast léger pour notifications */
.toast {
    position: fixed;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(28, 18, 60, 0.95);
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: 999px;
    font-size: 0.85rem;
    backdrop-filter: blur(10px);
    z-index: 200;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* =========================================================
   Sélecteur de voix (segmented control homme/femme)
   ========================================================= */
.voice-seg {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    background: rgba(11, 4, 32, 0.55);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 6px;
    margin-top: 6px;
}
.voice-seg__btn {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 12px 8px;
    border-radius: calc(var(--radius-md) - 4px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.25s ease, color 0.25s ease, transform 0.15s ease;
    min-width: 0;
}
.voice-seg__btn i {
    font-size: 1.05rem;
    opacity: 0.85;
}
.voice-seg__btn:hover {
    color: var(--text-primary);
    background: rgba(167, 139, 250, 0.10);
}
.voice-seg__btn.is-active {
    background: linear-gradient(135deg, var(--accent-deep), #5b21b6);
    color: #fff;
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.35);
}
.voice-seg__hint {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.72rem;
    margin-top: 8px;
    line-height: 1.4;
}

/* =========================================================
   Bouton "Partager" dans le header signe
   ========================================================= */
.share-btn-icon {
    color: var(--text-secondary);
    transition: color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.share-btn-icon:hover {
    color: var(--accent-glow);
    background: rgba(167, 139, 250, 0.18);
    transform: scale(1.08);
}

/* =========================================================
   Modale de partage : aperçu d'image + grille de boutons sociaux
   ========================================================= */
.share-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 360px;
    margin: 0 auto 18px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(11, 4, 32, 0.6);
    border: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}
.share-preview__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    animation: fadeUp 0.4s ease both;
}
.share-preview__skeleton {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 20px;
    text-align: center;
}
.share-preview__skeleton i {
    font-size: 1.6rem;
    color: var(--accent-glow);
}

.share-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}
@media (max-width: 360px) {
    .share-actions {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}
.share-btn {
    -webkit-appearance: none;
    appearance: none;
    background: rgba(28, 18, 60, 0.6);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 12px 6px;
    color: var(--text-primary);
    font: inherit;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: transform 0.18s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    min-width: 0;
}
.share-btn:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
    background: rgba(46, 32, 88, 0.7);
}
.share-btn__icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    transition: background 0.25s ease, color 0.25s ease;
}
.share-btn__label {
    display: block;
    line-height: 1.1;
    text-align: center;
}

/* Variantes par réseau */
.share-btn--native    .share-btn__icon { background: linear-gradient(135deg, #7c3aed, #c4b5fd); color: #fff; }
.share-btn--whatsapp  .share-btn__icon { background: #25D366; color: #fff; }
.share-btn--facebook  .share-btn__icon { background: #1877F2; color: #fff; }
.share-btn--twitter   .share-btn__icon { background: #000;    color: #fff; }
.share-btn--telegram  .share-btn__icon { background: #229ED9; color: #fff; }
.share-btn--linkedin  .share-btn__icon { background: #0A66C2; color: #fff; }
.share-btn--download  .share-btn__icon { background: linear-gradient(135deg, #f0abfc, #c084fc); color: #1a0a3a; }
.share-btn--copy      .share-btn__icon { background: rgba(255,255,255,0.12); color: #fff; }

.share-btn:hover .share-btn__icon {
    box-shadow: 0 8px 20px rgba(0,0,0,0.45);
}

.share-hint {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.5;
    padding: 4px 6px 8px;
}

/* =========================================================
   Bloc d'erreur quand l'IA n'a pas pu générer l'horoscope
   ========================================================= */
.horoscope-error {
    margin: 24px auto;
    padding: 32px 22px;
    max-width: 520px;
    text-align: center;
    background: rgba(20, 8, 50, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: horoscope-error-in .35s ease-out;
}
@keyframes horoscope-error-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.horoscope-error__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    color: #fff;
    background: linear-gradient(135deg, #ff6b6b, #c084fc);
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.35);
}
.horoscope-error__title {
    margin: 0 0 8px;
    font-size: 1.25rem;
    color: #fff;
    font-weight: 600;
}
.horoscope-error__text {
    margin: 0 0 22px;
    color: var(--text-muted, rgba(255,255,255,0.7));
    font-size: 0.95rem;
    line-height: 1.55;
}
.horoscope-error__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border: none;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a0a3a;
    background: linear-gradient(135deg, #f0abfc, #c084fc);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
    box-shadow: 0 6px 18px rgba(192, 132, 252, 0.4);
}
.horoscope-error__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(192, 132, 252, 0.5);
}
.horoscope-error__btn:active {
    transform: translateY(0);
}

/* Hide states */
[hidden] { display: none !important; }
