.imn-horoscope-page {
    --imn-purple-500: #5532f0;
    --imn-purple-600: #4423d8;
    --imn-purple-050: #f2efff;
    --imn-ink-900: #15131c;
    --imn-ink-700: #403c4b;
    --imn-neutral-100: #f5f4f7;
    --imn-neutral-000: #fff;
    --imn-astro-gold: #f3b63f;
    --imn-astro-night: #21144f;
    --imn-radius-md: 14px;
    --imn-radius-lg: 22px;
    --imn-shadow-card: 0 18px 50px rgb(21 19 28 / 10%);
    max-width: 1040px;
    margin: 40px auto;
    padding: 0 20px;
    color: var(--imn-ink-900);
}

.imn-horoscope-page *,
.imn-horoscope-page *::before,
.imn-horoscope-page *::after {
    box-sizing: border-box;
}

.imn-horoscope-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    overflow: hidden;
    padding: clamp(28px, 6vw, 64px);
    border-radius: var(--imn-radius-lg);
    color: var(--imn-neutral-000);
    background:
        radial-gradient(circle at 12% 22%, rgb(255 255 255 / 35%) 0 1px, transparent 2px),
        radial-gradient(circle at 76% 28%, rgb(243 182 63 / 75%) 0 2px, transparent 3px),
        radial-gradient(circle at 55% 78%, rgb(255 255 255 / 25%) 0 1px, transparent 2px),
        linear-gradient(135deg, var(--imn-astro-night), var(--imn-purple-500) 70%, #7658ff);
    background-size: 74px 74px, 130px 130px, 96px 96px, auto;
    box-shadow: 0 24px 70px rgb(68 35 216 / 24%);
}

.imn-horoscope-hero::after {
    position: absolute;
    inset: auto -8% -48% auto;
    width: 320px;
    height: 320px;
    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: 50%;
    box-shadow:
        0 0 0 34px rgb(255 255 255 / 5%),
        0 0 0 72px rgb(255 255 255 / 3%);
    content: "";
}

.imn-horoscope-hero h1 {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 8px 0 12px;
    color: inherit;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.imn-horoscope-hero p {
    position: relative;
    z-index: 1;
    max-width: 650px;
    margin: 0;
    color: rgb(255 255 255 / 84%);
    font-size: clamp(1rem, 2vw, 1.15rem);
}

.imn-horoscope-hero__eyebrow {
    color: var(--imn-astro-gold) !important;
    font-size: 0.78rem !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.imn-horoscope-hero__symbol {
    position: relative;
    z-index: 1;
    display: grid;
    width: clamp(92px, 14vw, 150px);
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 28%);
    border-radius: 50%;
    color: var(--imn-astro-gold);
    background: rgb(255 255 255 / 10%);
    box-shadow: inset 0 0 30px rgb(255 255 255 / 8%);
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    font-family: "Arial Unicode MS", "Segoe UI Symbol", sans-serif;
    font-variant-emoji: text;
    line-height: 1;
    backdrop-filter: blur(8px);
}

.imn-horoscope-page nav {
    margin: 22px 0;
}

.imn-horoscope-page nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    list-style: none;
}

.imn-horoscope-page nav a {
    display: block;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--imn-purple-600);
    background: var(--imn-purple-050);
    font-variant-emoji: text;
    font-weight: 600;
    text-decoration: none;
    transition: transform 160ms ease, color 160ms ease, background 160ms ease;
}

.imn-horoscope-page nav a:hover {
    transform: translateY(-2px);
    color: var(--imn-neutral-000);
    background: var(--imn-purple-500);
}

.imn-horoscope-page nav a[aria-current="page"] {
    color: var(--imn-neutral-000);
    background: var(--imn-purple-500);
    box-shadow: 0 8px 24px rgb(85 50 240 / 22%);
}

.imn-horoscope-page :is(a, button, select):focus-visible {
    outline: 3px solid var(--imn-purple-500);
    outline-offset: 3px;
}

.imn-horoscope-daily-selector {
    display: grid;
    max-width: 380px;
    gap: 7px;
    margin: 24px 0 4px;
    color: var(--imn-ink-700);
    font-weight: 650;
}

.imn-horoscope-daily-selector select {
    min-height: 50px;
    padding: 9px 42px 9px 14px;
    border: 1px solid rgb(85 50 240 / 35%);
    border-radius: 13px;
    color: var(--imn-ink-900);
    background: var(--imn-neutral-000);
    font: inherit;
}

.imn-horoscope-page article {
    margin-top: 24px;
    padding: clamp(20px, 4vw, 40px);
    border: 1px solid rgb(85 50 240 / 8%);
    border-radius: var(--imn-radius-lg);
    background: var(--imn-neutral-000);
    box-shadow: var(--imn-shadow-card);
}

.imn-horoscope-daily,
.imn-horoscope-weekly__article {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.imn-horoscope-daily > .imn-horoscope-page__lead,
.imn-horoscope-daily > .imn-horoscope-page__long,
.imn-horoscope-daily > .imn-horoscope-daily__title,
.imn-horoscope-weekly__article > :is(h3, .imn-horoscope-page__lead) {
    grid-column: 1 / -1;
}

.imn-horoscope-daily__title {
    margin: 0;
    color: var(--imn-purple-600);
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-variant-emoji: text;
}

.imn-horoscope-daily[hidden],
.imn-horoscope-weekly__article[hidden] {
    display: none !important;
}

.imn-horoscope-page__lead {
    margin: 0;
    padding: 18px 20px;
    border-left: 4px solid var(--imn-astro-gold);
    border-radius: 0 var(--imn-radius-md) var(--imn-radius-md) 0;
    color: var(--imn-ink-900);
    background: #fff9eb;
    font-size: clamp(1.05rem, 2vw, 1.22rem);
    font-weight: 600;
    line-height: 1.55;
}

.imn-horoscope-content-card {
    position: relative;
    overflow: hidden;
    padding: 20px;
    border-radius: var(--imn-radius-md);
    background: var(--imn-neutral-100);
}

.imn-horoscope-content-card::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--imn-purple-500);
    content: "";
}

.imn-horoscope-content-card--amour::before {
    background: #ff7657;
}

.imn-horoscope-content-card--finances::before {
    background: #16806f;
}

.imn-horoscope-content-card--bien-etre::before {
    background: #2686d9;
}

.imn-horoscope-content-card--le-conseil-de-la-semaine::before {
    background: var(--imn-astro-gold);
}

.imn-horoscope-content-card h2,
.imn-horoscope-content-card h4 {
    margin: 0 0 8px;
    color: var(--imn-purple-600);
    font-size: 1.08rem;
}

.imn-horoscope-content-card p {
    margin: 0;
    color: var(--imn-ink-700);
    line-height: 1.65;
}

.imn-horoscope-weekly {
    margin: 52px 0 0;
    padding: clamp(22px, 4vw, 40px);
    border: 1px solid rgb(85 50 240 / 12%);
    border-radius: var(--imn-radius-lg);
    background:
        radial-gradient(circle at 92% 8%, rgb(243 182 63 / 20%), transparent 28%),
        var(--imn-purple-050);
}

.imn-horoscope-weekly__eyebrow {
    margin: 0;
    color: var(--imn-purple-500);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.imn-horoscope-weekly > h2 {
    margin: 8px 0 0;
    color: var(--imn-ink-900);
    font-size: clamp(1.5rem, 3vw, 2.3rem);
}

.imn-horoscope-weekly__selector {
    display: grid;
    max-width: 380px;
    gap: 7px;
    margin-top: 22px;
    color: var(--imn-ink-700);
    font-weight: 600;
}

.imn-horoscope-weekly__selector select {
    min-height: 48px;
    padding: 8px 42px 8px 13px;
    border: 1px solid rgb(85 50 240 / 35%);
    border-radius: 12px;
    color: var(--imn-ink-900);
    background: var(--imn-neutral-000);
    font: inherit;
}

.imn-horoscope-weekly__article h3 {
    margin: 0;
    color: var(--imn-purple-600);
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.imn-horoscope-source-note {
    margin-top: 24px;
    color: var(--imn-ink-700);
    font-size: 0.86rem;
    text-align: center;
}

.imn-horoscope-source-note a {
    color: var(--imn-purple-600);
}

.imn-horoscope-footer {
    --imn-footer-purple: #5532f0;
    --imn-footer-purple-dark: #21144f;
    --imn-footer-purple-soft: #f2efff;
    --imn-footer-gold: #f3b63f;
    --imn-footer-ink: #15131c;
    box-sizing: border-box;
    width: min(1120px, calc(100% - 32px));
    margin: 48px auto 24px;
    padding: clamp(20px, 4vw, 38px);
    border: 1px solid rgb(85 50 240 / 12%);
    border-radius: 24px;
    color: var(--imn-footer-ink);
    background:
        radial-gradient(circle at 92% 8%, rgb(243 182 63 / 22%), transparent 24%),
        linear-gradient(135deg, #fff, var(--imn-footer-purple-soft));
    box-shadow: 0 22px 64px rgb(33 20 79 / 12%);
}

.imn-horoscope-footer *,
.imn-horoscope-footer *::before,
.imn-horoscope-footer *::after {
    box-sizing: border-box;
}

.imn-horoscope-footer__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

.imn-horoscope-footer__heading p {
    margin: 0;
    color: var(--imn-footer-purple);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.imn-horoscope-footer__heading h2 {
    margin: 5px 0 0;
    color: var(--imn-footer-ink);
    font-size: clamp(1.45rem, 3vw, 2.25rem);
}

.imn-horoscope-footer__heading > a,
.imn-horoscope-footer__preview a {
    color: var(--imn-footer-purple);
    font-weight: 750;
    text-decoration: none;
}

.imn-horoscope-footer__signs {
    display: grid;
    grid-template-columns: repeat(12, minmax(52px, 1fr));
    gap: 7px;
    margin-top: 22px;
}

.imn-horoscope-footer__signs a {
    display: grid;
    min-height: 64px;
    place-items: center;
    padding: 7px 4px;
    border: 1px solid transparent;
    border-radius: 14px;
    color: var(--imn-footer-purple-dark);
    background: #fff;
    font-variant-emoji: text;
    text-decoration: none;
    transition: transform 150ms ease, color 150ms ease, background 150ms ease;
}

.imn-horoscope-footer__signs a:hover,
.imn-horoscope-footer__signs a[aria-current="true"] {
    color: #fff;
    background: var(--imn-footer-purple);
    box-shadow: 0 9px 24px rgb(85 50 240 / 20%);
    transform: translateY(-2px);
}

.imn-horoscope-footer__signs span {
    font-size: 1.25rem;
}

.imn-horoscope-footer__signs small {
    font-size: .62rem;
    font-weight: 650;
}

.imn-horoscope-footer__preview {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    margin-top: 16px;
    padding: 20px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--imn-footer-purple-dark), var(--imn-footer-purple));
}

.imn-horoscope-footer__preview > span {
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 20%);
    border-radius: 50%;
    color: var(--imn-footer-gold);
    background: rgb(255 255 255 / 8%);
    font-size: 2.1rem;
    font-variant-emoji: text;
}

.imn-horoscope-footer__preview h3 {
    margin: 0 0 5px;
    color: #fff;
    font-size: 1.2rem;
}

.imn-horoscope-footer__preview p {
    margin: 0 0 10px;
    color: rgb(255 255 255 / 84%);
    line-height: 1.55;
}

.imn-horoscope-footer__preview a {
    color: var(--imn-footer-gold);
}

.imn-horoscope-footer :is(a, button):focus-visible {
    outline: 3px solid var(--imn-footer-gold);
    outline-offset: 3px;
}

@media (max-width: 720px) {
    .imn-horoscope-hero {
        grid-template-columns: 1fr;
    }

    .imn-horoscope-hero__symbol {
        position: absolute;
        right: 18px;
        bottom: 14px;
        width: 76px;
        opacity: 0.3;
    }

    .imn-horoscope-daily,
    .imn-horoscope-weekly__article {
        grid-template-columns: 1fr;
    }

    .imn-horoscope-daily > *,
    .imn-horoscope-weekly__article > * {
        grid-column: 1;
    }

    .imn-horoscope-footer {
        width: calc(100% - 20px);
        max-width: 680px;
        margin-block: 30px 18px;
        border-radius: 20px;
    }

    .imn-horoscope-footer__heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .imn-horoscope-footer__signs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .imn-horoscope-footer__preview {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .imn-horoscope-page *,
    .imn-horoscope-page *::before,
    .imn-horoscope-page *::after,
    .imn-horoscope-footer *,
    .imn-horoscope-footer *::before,
    .imn-horoscope-footer *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
