/* ==========================================================================
   astrofr — Celestial Clean Design System
   Modern light-theme astrology portal
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
    --bg: #F8F5F2;
    --bg-alt: #F2ECE8;
    --surface: #FFFFFF;
    --primary: #3B245C;
    --primary-light: #5A3A77;
    --accent: #8068F4;
    --accent-soft: #EEE8FF;
    --gold: #C98BA0;
    --gold-soft: #F7E3EA;
    --text: #2C2239;
    --text-secondary: #7B7483;
    --text-muted: #9B95A1;
    --border: #E9DFDB;
    --border-light: #F2EBE8;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
    --shadow-card: 0 2px 12px rgba(59,36,92,0.05);
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;

    /* Echelle globale de l'interface. 1 = rendu d'origine (16px racine).
       1.25 = agrandissement type "zoom 125%". Rollback : remettre a 1. */
    --ui-scale: 1.25;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
html {
    /* Taille de police racine = base de tout le dimensionnement en rem
       (et de Tailwind). Piloter l'echelle via --ui-scale au :root. */
    font-size: calc(var(--ui-scale, 1) * 100%);
    /* Coupe le pan horizontal sur mobile (les slots pivotes de la roue
       zodiacale etendent le scrollable overflow) sans creer de scroll
       container, contrairement a overflow-x: hidden. */
    overflow-x: clip;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg);
    color: var(--text);
    /* clip (et non hidden) : le clipping horizontal est deja assure par html ;
       hidden ferait du body un scroll container et casserait position: sticky. */
    overflow-x: clip;
}

::selection {
    background: var(--accent-soft);
    color: var(--primary);
}

/* --------------------------------------------------------------------------
   3. Scrollbar
   -------------------------------------------------------------------------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
* { scrollbar-width: thin; scrollbar-color: var(--border) var(--bg); }

/* --------------------------------------------------------------------------
   4. Typography
   -------------------------------------------------------------------------- */
.text-hero {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.text-section {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.25;
    letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.site-header {
    background: rgba(248, 245, 242, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: rgba(248, 245, 242, 0.96);
    box-shadow: var(--shadow-sm);
}

.logo-text {
    color: var(--primary);
}

.nav-link {
    position: relative;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    /* 11 entrees : taille reduite pour tenir dans le conteneur a 1280px,
       taille confortable retrouvee au-dela */
    font-size: 0.8125rem;
    letter-spacing: 0.01em;
}

@media (min-width: 1420px) {
    .nav-link {
        font-size: 0.875rem;
        letter-spacing: 0.025em;
    }
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    transition: width 0.3s ease;
}

.nav-link:hover { color: var(--primary); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--primary); }

/* --------------------------------------------------------------------------
   6. Cards
   -------------------------------------------------------------------------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: var(--shadow-card);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border);
}

.card:focus-within {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   7. Zodiac Sign Grid
   -------------------------------------------------------------------------- */
.sign-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.sign-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.sign-card:hover .sign-icon {
    transform: scale(1.1);
}

.sign-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.sign-glyph {
    display: block;
    color: inherit;
    line-height: 1;
    font-family: "Segoe UI Symbol", "Noto Sans Symbols", "Apple Symbols", "Arial Unicode MS", sans-serif;
    transform: translateY(-1px);
}

.sign-icon img,
.sign-icon svg {
    width: 32px;
    height: 32px;
}

/* Per-sign accent colors */
.sign-belier .sign-icon     { background: #F7D9E1; color: #8068F4; }
.sign-taureau .sign-icon    { background: #D7F0DF; color: #8068F4; }
.sign-gemeaux .sign-icon    { background: #F6E8A8; color: #8068F4; }
.sign-cancer .sign-icon     { background: #DEE5FF; color: #8068F4; }
.sign-lion .sign-icon       { background: #F7D9E1; color: #8068F4; }
.sign-vierge .sign-icon     { background: #D7F0DF; color: #8068F4; }
.sign-balance .sign-icon    { background: #F6E8A8; color: #8068F4; }
.sign-scorpion .sign-icon   { background: #DEE5FF; color: #8068F4; }
.sign-sagittaire .sign-icon { background: #F7D9E1; color: #8068F4; }
.sign-capricorne .sign-icon { background: #D7F0DF; color: #8068F4; }
.sign-verseau .sign-icon    { background: #F6E8A8; color: #8068F4; }
.sign-poissons .sign-icon   { background: #DEE5FF; color: #8068F4; }

/* Element badge */
.element-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
}

.element-feu   { background: #F7D9E1; color: #7D4D60; }
.element-terre { background: #D7F0DF; color: #4E7D62; }
.element-air   { background: #F6E8A8; color: #8A7440; }
.element-eau   { background: #DEE5FF; color: #5E63A8; }

/* --------------------------------------------------------------------------
   8. Buttons
   -------------------------------------------------------------------------- */
.btn-primary {
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary-light);
    box-shadow: 0 4px 16px rgba(128, 104, 244, 0.24);
    transform: translateY(-1px);
}

.btn-primary:active { transform: translateY(0); }

.btn-secondary {
    background: var(--surface);
    color: var(--primary);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--bg-alt);
    border-color: var(--accent);
    color: var(--accent);
}

.btn-gold {
    background: linear-gradient(135deg, #B97992, var(--gold), #D79EB1);
    background-size: 200% 200%;
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-gold:hover {
    background-position: 100% 100%;
    box-shadow: 0 4px 16px rgba(201, 139, 160, 0.28);
    transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   9. Score Stars
   -------------------------------------------------------------------------- */
.score-stars {
    display: inline-flex;
    gap: 2px;
}

.score-star {
    width: 0.875rem;
    height: 0.875rem;
}

.score-star--filled { color: var(--accent); }
.score-star--empty { color: var(--border); }

/* --------------------------------------------------------------------------
   10. Section Backgrounds
   -------------------------------------------------------------------------- */
.section-alt {
    background-color: var(--bg-alt);
}

.section-dark {
    background: linear-gradient(135deg, #5A3A77 0%, var(--primary) 48%, #2A183F 100%);
    color: #fff;
}

.section-dark .text-secondary-dark { color: rgba(255,255,255,0.7); }
.section-dark .text-muted-dark { color: rgba(255,255,255,0.5); }

/* --------------------------------------------------------------------------
   11. Compatibility Selector
   -------------------------------------------------------------------------- */
.compat-select {
    appearance: none;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    transition: border-color 0.2s ease;
}

.compat-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

/* --------------------------------------------------------------------------
   12. Form Inputs
   -------------------------------------------------------------------------- */
.form-input {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: var(--text);
    transition: border-color 0.2s ease;
    width: 100%;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-input::placeholder { color: var(--text-muted); }

/* --------------------------------------------------------------------------
   13. Dividers
   -------------------------------------------------------------------------- */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.divider-accent {
    height: 3px;
    width: 60px;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    border-radius: 2px;
}

/* --------------------------------------------------------------------------
   14. Animations
   -------------------------------------------------------------------------- */
@keyframes fade-in {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fade-in 0.5s ease-out forwards;
}

.animate-fade-in-delay-1 { animation: fade-in 0.5s ease-out 0.1s forwards; opacity: 0; }
.animate-fade-in-delay-2 { animation: fade-in 0.5s ease-out 0.2s forwards; opacity: 0; }
.animate-fade-in-delay-3 { animation: fade-in 0.5s ease-out 0.3s forwards; opacity: 0; }

/* --------------------------------------------------------------------------
   15. Horoscope Mini Card (daily overview)
   -------------------------------------------------------------------------- */
.horoscope-mini-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    transition: all 0.2s ease;
}

.horoscope-mini-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: #f2f4f6;
    color: #45464d;
    border-top: 1px solid #e0e3e5;
}

.site-footer a { color: #45464d; transition: color 0.2s ease; text-decoration: none; }
.site-footer a:hover { color: #131b2e; }
.site-footer .footer-heading { color: #131b2e; letter-spacing: 0.12em; font-size: 0.6875rem; font-weight: 600; }
.site-footer .border-white\/10 { border-color: #e0e3e5 !important; }
.site-footer .text-white\/50 { color: #76777d !important; }

/* --------------------------------------------------------------------------
   17. Mobile Menu (cosmic dark)
   -------------------------------------------------------------------------- */
.mobile-menu-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    background: linear-gradient(180deg, #101018, #0a0a0f);
    border-bottom: 1px solid rgba(139, 92, 246, 0.25);
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.6);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    max-width: 24rem;
    margin: 0 auto;
    padding: 1.1rem 1.25rem 1.4rem;
}

.mobile-nav__link {
    display: block;
    padding: 0.72rem 1rem;
    border-left: 2px solid transparent;
    border-radius: 0 0.6rem 0.6rem 0;
    color: #d4d4dc;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, padding-left 0.18s ease;
}

.mobile-nav__link:hover,
.mobile-nav__link:active {
    color: #f5f5f7;
    background: rgba(139, 92, 246, 0.12);
    border-left-color: rgba(192, 132, 252, 0.8);
    padding-left: 1.25rem;
}

.mobile-nav__link.is-current {
    color: #c084fc;
    font-weight: 600;
    background: rgba(139, 92, 246, 0.10);
    border-left-color: #c084fc;
}

/* --------------------------------------------------------------------------
   18. Focus Styles (Accessibility)
   -------------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   19. Hero Decorative Gradient
   -------------------------------------------------------------------------- */
.hero-gradient {
    background: transparent;
}

.zodiac-hero-section {
    padding-top: 3rem;
    padding-bottom: 4.5rem;
}

.zodiac-hero-wrap {
    max-width: 1280px;
}

.zodiac-hero-eyebrow {
    margin: 0 0 1rem;
    color: #8a63ff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.zodiac-hero-title {
    margin: 0;
    color: #3a2472;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.625rem, 6vw, 4.75rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: 0;
}

.zodiac-hero-subtitle {
    margin: 24px 0 52px;
    color: #7f8492;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.125rem;
    line-height: 1.5;
}

.zodiac-hero-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(140px, 1fr));
    gap: 24px;
    justify-content: center;
}

.zodiac-hero-card {
    min-height: 214px;
    padding: 28px 18px 24px;
    background: var(--surface);
    border: 1px solid #ece3df;
    border-radius: 24px;
    box-shadow: 0 1px 0 rgba(58, 36, 114, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.zodiac-hero-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(58, 36, 114, 0.06);
    border-color: #e5d9d5;
}

.zodiac-hero-badge {
    width: 68px;
    height: 68px;
    margin: 0 0 22px;
}

.zodiac-hero-symbol {
    display: block;
    font-size: 2.375rem;
    line-height: 1;
    color: #8a63ff;
    font-family: "Segoe UI Symbol", "Noto Sans Symbols", "Apple Symbols", "Arial Unicode MS", sans-serif;
    transform: translateY(-1px);
}

.zodiac-hero-badge img,
.zodiac-hero-badge svg {
    width: 38px;
    height: 38px;
}

.zodiac-hero-name {
    margin: 0 0 8px;
    color: #3a2472;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.375rem;
    font-weight: 500;
    line-height: 1.2;
}

.zodiac-hero-dates {
    margin: 0;
    color: #9c9aa5;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    line-height: 1.35;
}

@media (max-width: 1100px) {
    .zodiac-hero-grid {
        grid-template-columns: repeat(4, minmax(140px, 1fr));
    }
}

@media (max-width: 760px) {
    .zodiac-hero-section {
        padding-top: 2rem;
        padding-bottom: 3rem;
    }

    .zodiac-hero-wrap {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .zodiac-hero-subtitle {
        margin-bottom: 32px;
    }

    .zodiac-hero-grid {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
        gap: 16px;
    }

    .zodiac-hero-card {
        min-height: 190px;
        padding: 22px 14px 20px;
        border-radius: 20px;
    }

    .zodiac-hero-badge {
        width: 60px;
        height: 60px;
        margin-bottom: 18px;
    }

    .zodiac-hero-symbol {
        font-size: 2.125rem;
    }

    .zodiac-hero-badge img,
    .zodiac-hero-badge svg {
        width: 34px;
        height: 34px;
    }

    .zodiac-hero-name {
        font-size: 1.25rem;
    }

    .zodiac-hero-dates {
        font-size: 0.9375rem;
    }
}

/* --------------------------------------------------------------------------
   20. Home Sections
   -------------------------------------------------------------------------- */
.home-period-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 2rem;
    color: var(--text-muted);
    font-family: Inter, sans-serif;
    font-size: 0.95rem;
}

.home-period-nav a {
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.home-period-nav a:hover,
.home-period-nav__active {
    color: var(--accent) !important;
}

.home-section-head {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 2rem;
    align-items: end;
    margin-bottom: 2.5rem;
}

.home-section-head--compact {
    align-items: start;
}

.home-section-head--stacked {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    max-width: 52rem;
}

.home-section-kicker {
    margin: 0 0 0.75rem;
    color: var(--accent);
    font-family: Inter, sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.home-section-title {
    margin: 0;
    color: var(--primary);
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2rem, 3vw, 3.1rem);
    font-weight: 600;
    line-height: 1.05;
}

.home-section-meta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.home-section-copy {
    margin: 0;
    color: var(--text-secondary);
    font-family: Inter, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
}

.home-section-copy--narrow {
    max-width: 40rem;
    margin-top: 1rem;
}

.home-inline-link {
    color: var(--accent);
    font-family: Inter, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.home-inline-link:hover {
    color: var(--primary);
}

.home-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.horoscope-mini-card--editorial {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.35rem 1.4rem;
    border-radius: 20px;
}

.horoscope-mini-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.horoscope-mini-card__icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    margin: 0;
}

.horoscope-mini-card__icon img,
.horoscope-mini-card__icon svg {
    width: 26px;
    height: 26px;
}

.sign-glyph--overview {
    font-size: 1.9375rem;
}

.horoscope-mini-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.horoscope-mini-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.horoscope-mini-card__title {
    margin: 0;
    color: var(--primary);
    font-family: "Cormorant Garamond", serif;
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1;
}

.horoscope-mini-card__label {
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-family: Inter, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.horoscope-mini-card__excerpt {
    margin: 0;
    color: var(--text-secondary);
    font-family: Inter, sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
}

.home-tools-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1.25rem;
}

.feature-panel {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 28px;
    box-shadow: var(--shadow-card);
    padding: 2rem 2rem 1.9rem;
}

.feature-panel--primary {
    background:
        radial-gradient(circle at top right, rgba(124, 99, 246, 0.12), transparent 34%),
        linear-gradient(145deg, rgba(255,255,255,0.96) 0%, rgba(247,239,245,0.96) 100%);
    border-color: #eadfdc;
    color: var(--primary);
    grid-row: span 2;
}

.feature-panel--soft {
    background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,1) 100%);
}

.feature-panel__eyebrow {
    margin-bottom: 0.85rem;
    color: var(--accent);
    font-family: Inter, sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.feature-panel__title {
    margin: 0 0 0.85rem;
    color: var(--primary);
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.9rem, 2.2vw, 2.7rem);
    font-weight: 600;
    line-height: 1.04;
}

.feature-panel__title--light {
    color: var(--primary);
}

.feature-panel__copy {
    margin: 0;
    color: var(--text-secondary);
    font-family: Inter, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
}

.feature-panel__copy--light {
    color: var(--text-secondary);
}

.feature-panel__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1.4rem 0 1.5rem;
}

.feature-panel__tags span {
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(124, 99, 246, 0.08);
    color: var(--primary);
    font-family: Inter, sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
}

.feature-panel__highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.35rem;
}

.feature-panel__highlight {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-height: 126px;
    padding: 1rem;
    border: 1px solid rgba(124, 99, 246, 0.1);
    border-radius: 20px;
    background: rgba(255,255,255,0.72);
}

.feature-panel__highlight-label {
    color: var(--accent);
    font-family: Inter, sans-serif;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.feature-panel__highlight-value {
    color: var(--primary);
    font-family: "Cormorant Garamond", serif;
    font-size: 1.28rem;
    font-weight: 600;
    line-height: 1.12;
}

.feature-panel__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.feature-panel__note {
    color: var(--text-secondary);
    font-family: Inter, sans-serif;
    font-size: 0.88rem;
}

.feature-panel__compat-preview {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.75rem;
    align-items: center;
    margin: 1.4rem 0 1.25rem;
}

.feature-panel__compat-heart {
    color: var(--accent);
    font-size: 1.35rem;
}

.feature-panel__cta {
    display: inline-flex;
}

.compat-preview-sign {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.9rem 0.95rem;
    border: 1px solid var(--border-light);
    border-radius: 18px;
    background: rgba(255,255,255,0.82);
}

.compat-preview-sign__label {
    color: var(--text-muted);
    font-family: Inter, sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.compat-preview-sign__value {
    color: var(--primary);
    font-family: "Cormorant Garamond", serif;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1;
}

.feature-panel__microcopy {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    font-family: Inter, sans-serif;
    font-size: 0.94rem;
    line-height: 1.65;
}

.feature-links {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.feature-link-card {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.05rem;
    border: 1px solid var(--border-light);
    border-radius: 18px;
    color: var(--primary);
    background: rgba(255,255,255,0.88);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-link-card:hover {
    transform: translateY(-1px);
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.feature-link-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
}

.feature-link-card__content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.feature-link-card__title {
    color: var(--primary);
    font-family: Inter, sans-serif;
    font-size: 0.96rem;
    font-weight: 600;
    line-height: 1.35;
}

.feature-link-card__meta {
    color: var(--text-secondary);
    font-family: Inter, sans-serif;
    font-size: 0.84rem;
    line-height: 1.55;
}

.home-sign-guides-grid,
.home-explore-grid {
    display: grid;
    gap: 1rem;
}

.home-sign-guides-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-explore-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.home-sign-guide-card {
    padding: 1.2rem 1.2rem 1.1rem;
    border-radius: 20px;
}

.home-sign-guide-card__top {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.home-sign-guide-card__icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    margin: 0;
}

.home-sign-guide-card__icon img,
.home-sign-guide-card__icon svg {
    width: 22px;
    height: 22px;
}

.sign-glyph--guide {
    font-size: 1.875rem;
}

.home-sign-guide-card__title {
    margin: 0 0 0.3rem;
    color: var(--primary);
    font-family: "Cormorant Garamond", serif;
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1;
}

.home-sign-guide-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.home-sign-guide-card__quality {
    color: var(--text-muted);
    font-family: Inter, sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.home-sign-guide-card__meta,
.home-sign-guide-card__copy,
.home-explore-card__copy {
    margin: 0;
    font-family: Inter, sans-serif;
    color: var(--text-secondary);
}

.home-sign-guide-card__meta {
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
}

.home-sign-guide-card__copy {
    font-size: 0.92rem;
    line-height: 1.5;
}

.home-explore-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 260px;
    padding: 1.7rem;
    border-radius: 24px;
    text-align: left;
    background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,1) 100%);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-explore-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
    border-color: var(--border);
}

.home-explore-card__top {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.home-explore-card__icon {
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    flex-shrink: 0;
    color: var(--accent);
    font-size: 1.3rem;
    line-height: 1;
}

.home-explore-card--tarot .home-explore-card__icon {
    background: #f3e6f1;
}

.home-explore-card--transits .home-explore-card__icon {
    background: #ece9ff;
}

.home-explore-card--blog .home-explore-card__icon {
    background: #f7e8df;
}

.home-explore-card__kicker {
    margin: 0;
    color: var(--text-muted);
    font-family: Inter, sans-serif;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-explore-card__title {
    margin: 0 0 0.7rem;
    color: var(--primary);
    font-family: "Cormorant Garamond", serif;
    font-size: 1.7rem;
    font-weight: 600;
    line-height: 1.05;
}

.home-explore-card__copy {
    margin-bottom: auto;
    font-size: 0.95rem;
    line-height: 1.72;
}

.home-explore-card__link {
    margin-top: 1.1rem;
    color: var(--accent);
    font-family: Inter, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
}

@media (max-width: 1100px) {
    .home-section-head,
    .home-tools-grid {
        grid-template-columns: 1fr;
    }

    .home-overview-grid,
    .home-explore-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-sign-guides-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .home-period-nav {
        gap: 0.75rem;
        flex-wrap: wrap;
        font-size: 0.9rem;
    }

    .home-section-head {
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .home-section-title {
        font-size: 2rem;
    }

    .home-overview-grid,
    .home-explore-grid,
    .feature-panel__highlights,
    .feature-panel__compat-preview {
        grid-template-columns: 1fr;
    }

    .home-sign-guides-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-panel {
        padding: 1.4rem;
        border-radius: 22px;
    }

    .feature-panel__compat-heart {
        display: none;
    }

    .compat-preview-sign__value {
        font-size: 1.45rem;
    }

    .horoscope-mini-card__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.55rem;
    }

    .home-section-head--stacked {
        max-width: 100%;
    }
}

@media (max-width: 560px) {
    .home-sign-guides-grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   21. Centered Section Titles
   -------------------------------------------------------------------------- */
.home-section-title--centered {
    margin: 0 0 1.5rem;
    color: var(--primary);
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
}

.home-section-copy--centered {
    margin: 0 auto;
    max-width: 36rem;
    color: var(--text-secondary);
    font-family: Inter, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    text-align: center;
}

/* --------------------------------------------------------------------------
   22. Quick Nav Bar
   -------------------------------------------------------------------------- */
.quick-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.quick-nav__item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 999px;
    color: var(--primary);
    font-family: Inter, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.quick-nav__item:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.quick-nav__icon {
    font-size: 1.1rem;
    color: var(--accent);
}

.quick-nav__label {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   23. Tarot Section
   -------------------------------------------------------------------------- */
.tarot-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.tarot-card-preview {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.tarot-card-preview__visual {
    width: 80px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-soft), rgba(128, 104, 244, 0.12));
    border-radius: 12px;
    margin-bottom: 0.5rem;
}

.tarot-card-preview__symbol {
    font-size: 2.5rem;
    color: var(--accent);
}

.tarot-card-preview__kicker {
    margin: 0;
    color: var(--accent);
    font-family: Inter, sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.tarot-card-preview__title {
    margin: 0;
    color: var(--primary);
    font-family: "Cormorant Garamond", serif;
    font-size: 1.6rem;
    font-weight: 600;
}

.tarot-card-preview__copy {
    margin: 0;
    color: var(--text-secondary);
    font-family: Inter, sans-serif;
    font-size: 0.92rem;
    line-height: 1.6;
    max-width: 28rem;
}

.tarot-card-preview__cta {
    margin-top: 0.5rem;
}

.tarot-types {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tarot-type-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 18px;
    transition: all 0.2s ease;
}

.tarot-type-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.tarot-type-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.85rem;
}

.tarot-type-card__title {
    margin: 0 0 0.25rem;
    color: var(--primary);
    font-family: "Cormorant Garamond", serif;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.2;
}

.tarot-type-card__copy {
    margin: 0;
    color: var(--text-secondary);
    font-family: Inter, sans-serif;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   24. Compatibility Section
   -------------------------------------------------------------------------- */
.compat-selector {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.compat-selector__heart {
    color: var(--accent);
    font-size: 1.4rem;
}

.compat-popular__title {
    margin: 0 0 1rem;
    color: var(--text-secondary);
    font-family: Inter, sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.compat-popular__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
}

.compat-popular__link {
    display: block;
    padding: 0.75rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    color: var(--primary);
    font-family: "Cormorant Garamond", serif;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.compat-popular__link:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   25. Signs Grid (simplified)
   -------------------------------------------------------------------------- */
.signs-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.sign-list-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1.1rem;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    transition: all 0.2s ease;
}

.sign-list-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.sign-list-card__symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    font-size: 1.5rem;
    font-family: "Segoe UI Symbol", "Noto Sans Symbols", "Apple Symbols", "Arial Unicode MS", sans-serif;
    line-height: 1;
}

.sign-list-card--pink .sign-list-card__symbol   { background: #F7D9E1; color: var(--accent); }
.sign-list-card--green .sign-list-card__symbol  { background: #D7F0DF; color: var(--accent); }
.sign-list-card--yellow .sign-list-card__symbol { background: #F6E8A8; color: var(--accent); }
.sign-list-card--blue .sign-list-card__symbol   { background: #DEE5FF; color: var(--accent); }

.sign-list-card__name {
    margin: 0;
    color: var(--primary);
    font-family: "Cormorant Garamond", serif;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.2;
}

.sign-list-card__dates {
    margin: 0;
    color: var(--text-muted);
    font-family: Inter, sans-serif;
    font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   26. Theme Astral Teaser
   -------------------------------------------------------------------------- */
.theme-teaser {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 3rem;
    align-items: center;
}

.theme-teaser__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.25rem 0;
}

.theme-teaser__tags span {
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-family: Inter, sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
}

.theme-teaser__visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-teaser__chart {
    width: 220px;
    height: 220px;
}

.theme-teaser__svg {
    width: 100%;
    height: 100%;
    color: var(--accent);
}

/* --------------------------------------------------------------------------
   27. Explore Grid (new)
   -------------------------------------------------------------------------- */
.explore-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.explore-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 1.6rem;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.explore-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.explore-card__icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.explore-card__icon--purple { background: var(--accent-soft); color: var(--accent); }
.explore-card__icon--red    { background: #FEE2E2; color: #DC2626; }
.explore-card__icon--green  { background: #D7F0DF; color: #059669; }
.explore-card__icon--gold   { background: #F7E3EA; color: var(--gold); }

.explore-card__title {
    margin: 0;
    color: var(--primary);
    font-family: "Cormorant Garamond", serif;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.15;
    transition: color 0.2s ease;
}

.explore-card:hover .explore-card__title {
    color: var(--accent);
}

.explore-card__copy {
    margin: 0;
    color: var(--text-secondary);
    font-family: Inter, sans-serif;
    font-size: 0.88rem;
    line-height: 1.6;
}

.explore-card__link {
    margin-top: auto;
    padding-top: 0.5rem;
    color: var(--accent);
    font-family: Inter, sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   28. Responsive — New Sections
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
    .tarot-grid,
    .theme-teaser {
        grid-template-columns: 1fr;
    }

    .explore-grid,
    .signs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .quick-nav {
        gap: 0.6rem;
    }

    .quick-nav__item {
        padding: 0.6rem 1.1rem;
    }

    .compat-selector {
        flex-direction: column;
        align-items: stretch;
    }

    .compat-selector__heart {
        text-align: center;
    }

    .theme-teaser__visual {
        display: none;
    }
}

@media (max-width: 560px) {
    .explore-grid,
    .signs-grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   29. Error Pages
   -------------------------------------------------------------------------- */
.error-illustration {
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* --------------------------------------------------------------------------
   22. Utility: Subtle gradient text
   -------------------------------------------------------------------------- */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================================================
   COSMIC DARK — ported from astro-ia / AI Studio mockup
   ============================================================ */

.cosmic-body {
    --bg: #050814;
    --surface: rgba(255,255,255,0.05);
    --primary: #a855f7;
    --primary-light: #c084fc;
    --accent: #a855f7;
    --accent-soft: rgba(168,85,247,0.15);
    --gold: #ec4899;
    --border: rgba(255,255,255,0.1);
    --border-light: rgba(255,255,255,0.05);
    --text: #e6e9f2;
    --text-secondary: #b8c0d0;
    --text-muted: #939db0;
    background-color: #030712 !important;
    color: var(--text);
    font-family: 'Outfit', system-ui, sans-serif;
}
html { background-color: #030712; }

.cosmic-body ::selection {
    background: rgba(168,85,247,0.3);
    color: #fff;
}

/* ---- BACKGROUND ---- */
.cosmic-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: #030712;
}
.cosmic-bg__veil {
    position: absolute;
    inset: 0;
    background: rgba(5, 8, 20, 0.82);
    backdrop-filter: blur(1px);
}
.cosmic-bg__orb {
    position: absolute;
    width: 24rem;
    height: 24rem;
    border-radius: 9999px;
    filter: blur(100px);
    opacity: 0.4;
}
.cosmic-bg__orb--purple {
    top: 15%;
    left: 15%;
    background: rgba(147, 51, 234, 0.4);
}
.cosmic-bg__orb--blue {
    bottom: 15%;
    right: 15%;
    background: rgba(37, 99, 235, 0.35);
}

/* ---- HEADER / NAV override ---- */
.cosmic-body .site-header {
    background: rgba(5, 8, 20, 0.6) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    box-shadow: none !important;
}
.cosmic-body .site-header.scrolled {
    background: rgba(5, 8, 20, 0.85) !important;
}
.cosmic-body .logo-text { color: #ffffff !important; }
.cosmic-body .nav-link { color: #cbd5e1 !important; }
.cosmic-body .nav-link:hover,
.cosmic-body .nav-link.active { color: #c084fc !important; }
.cosmic-body .nav-link::after { background: #c084fc !important; }

/* ---- TYPO ---- */
.cosmic-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.75rem, 4vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin: 0;
}
.cosmic-title--md { font-size: clamp(1.25rem, 2.5vw, 1.5rem); font-weight: 700; }
.cosmic-title--xl {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-weight: 700;
}
.cosmic-gradient-text {
    background: linear-gradient(to right, #818cf8, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
    /* Le degrade n'est peint que sur la boite du texte : sans cette marge
       interne, les jambages (g, q, p) sortent de la boite et disparaissent
       sur les titres a interligne serre. La marge negative garde la mise en page. */
    padding-bottom: 0.14em;
    margin-bottom: -0.14em;
}
.cosmic-lede {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #cbd5e1;
    max-width: 32rem;
    margin: 0;
}
.cosmic-lede--sm { font-size: 1rem; line-height: 1.65; }

.cosmic-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #c084fc;
    font-weight: 500;
    font-size: 0.8125rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0;
}
.cosmic-eyebrow__dash {
    display: inline-block;
    width: 32px;
    height: 1px;
    background: #c084fc;
}

/* ---- BUTTONS ---- */
.btn-cosmic {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 28px;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 9999px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
}
.btn-cosmic--primary {
    color: #ffffff;
    background: linear-gradient(to right, #6366f1, #a855f7, #ec4899);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}
.btn-cosmic--primary:hover { opacity: 0.92; box-shadow: 0 0 22px rgba(168, 85, 247, 0.55); }
.btn-cosmic--ghost {
    color: #ffffff;
    border-color: rgba(255,255,255,0.2);
    background: transparent;
}
.btn-cosmic--ghost:hover { background: rgba(255,255,255,0.08); }
.btn-cosmic--sm { padding: 10px 20px; font-size: 0.875rem; }
.btn-cosmic.is-disabled { opacity: 0.5; pointer-events: none; }

/* ---- SECTIONS ---- */
.cosmic-main { max-width: 80rem; margin: 0 auto; padding: 0 1.25rem 6rem; }
/* La home n'a pas de fil d'Ariane : petite respiration de hero sous le header. */
.hero-cosmic { margin-top: 2rem; }
.cosmic-section { margin-bottom: 8rem; }
.cosmic-section:last-child { margin-bottom: 0; }
.cosmic-section__wrap { width: 100%; }
.cosmic-section__wrap--narrow { max-width: 48rem; margin: 0 auto; text-align: center; }
.cosmic-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}
.cosmic-section__head--center {
    justify-content: center;
    text-align: center;
    margin-bottom: 2.5rem;
}

.cosmic-icon-btn {
    padding: 10px;
    border-radius: 9999px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 0;
}
.cosmic-icon-btn:hover { background: rgba(255,255,255,0.1); color: #ffffff; }

/* ---- CARD ---- */
.cosmic-card {
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}

/* ============================================================
   HERO — split + cwheel
   ============================================================ */
.hero-cosmic__wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
}
.hero-cosmic__text { display: flex; flex-direction: column; gap: 1.5rem; }
.hero-cosmic__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; padding-top: 0.5rem; }
.hero-cosmic__wheel { display: flex; justify-content: center; align-items: center; position: relative; }

/* ---- ROUE ZODIACALE ---- */
.cwheel {
    position: relative;
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cwheel__outer {
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    border: 1px solid rgba(168, 85, 247, 0.3);
    box-shadow: 0 0 50px rgba(168, 85, 247, 0.2);
    animation: cwheel-rotate 120s linear infinite;
}
.cwheel__inner {
    position: absolute;
    inset: 2.5rem;
    border-radius: 9999px;
    border: 1px dashed rgba(192, 132, 252, 0.3);
    animation: cwheel-counter-rotate 80s linear infinite;
    pointer-events: none;
}

/* ---- CORE (remplace la photo galaxie) ---- */
.cwheel__core {
    position: absolute;
    inset: 3.5rem;
    border-radius: 9999px;
    overflow: hidden;
    border: 1px solid rgba(168, 85, 247, 0.2);
    background: #060919;
    box-shadow: inset 0 0 80px rgba(168, 85, 247, 0.3);
    pointer-events: none;
}
.cwheel__nebula {
    position: absolute;
    border-radius: 9999px;
    pointer-events: none;
}
.cwheel__nebula--purple {
    top: 25%;
    left: 25%;
    width: 60%;
    height: 60%;
    background: rgba(168, 85, 247, 0.3);
    filter: blur(45px);
}
.cwheel__nebula--indigo {
    bottom: 25%;
    right: 25%;
    width: 50%;
    height: 50%;
    background: rgba(99, 102, 241, 0.2);
    filter: blur(50px);
}
.cwheel__nebula--pink {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30%;
    height: 30%;
    background: rgba(236, 72, 153, 0.2);
    filter: blur(30px);
}

.cwheel__constellation-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.4;
    mix-blend-mode: screen;
    overflow: visible;
}
.cwheel__constellation {
    width: 140%;
    height: 140%;
    animation: cwheel-constellation-spin 250s linear infinite;
    transform-origin: 50% 50%;
}
@keyframes cwheel-constellation-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cwheel__overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 9999px;
}
.cwheel__overlay--gradient {
    background: linear-gradient(to top right, rgba(168, 85, 247, 0.1), transparent);
    mix-blend-mode: overlay;
}
.cwheel__overlay--vignette {
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.9);
}

/* ---- SLOT / SPOT / ICON + LABEL ---- */
.cwheel__slot {
    position: absolute;
    inset: 0;
    transform-origin: 50% 50%;
    pointer-events: none;
}
.cwheel__spot {
    position: absolute;
    top: 0.5rem;
    left: 50%;
    margin-left: -1.5rem;
    width: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    text-decoration: none;
    transition: transform 0.3s ease;
    pointer-events: auto;
}
.cwheel__spot:hover { transform: scale(1.12); }
.cwheel__icon {
    display: inline-flex;
    line-height: 0;
    transition: filter 0.3s ease;
}
.cwheel__spot:hover .cwheel__icon svg {
    filter: url(#glow-symbol) brightness(1.3) !important;
}
.cwheel__label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.5625rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    color: rgba(216, 180, 254, 0.5);
    line-height: 1;
    text-align: center;
    transition: color 0.3s ease;
}
.cwheel__spot:hover .cwheel__label { color: rgba(216, 180, 254, 0.95); }

@keyframes cwheel-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes cwheel-counter-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

/* ============================================================
   ACCUEIL : « Votre signe ? » (bloc Le ciel d'aujourd'hui)
   12 liens vers /horoscope/{signe} + apercu du signe choisi (module SkyPicker).
   ============================================================ */
.sky-score { display: inline-flex; gap: 4px; vertical-align: middle; }
.sky-score__dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.16); }
.sky-score__dot.is-on { background: var(--sign, #c084fc); }

.sky-pick { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem; align-items: start; }
.sky-pick__choices { min-width: 0; }
.sky-pick__legend { margin: 0 0 0.8rem; font-family: 'Playfair Display', Georgia, serif; font-size: 1.4rem; font-weight: 600; color: #fff; }
.sky-pick__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.sky-pick__chip {
    display: flex; align-items: center; gap: 0.55rem;
    padding: 0.65rem 0.75rem; min-height: 44px;
    border: 1px solid rgba(255,255,255,0.08); border-radius: 12px;
    background: rgba(255,255,255,0.02);
    color: #d4d4dc; font-size: 0.9rem; font-weight: 500; text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.sky-pick__chip svg { flex: none; }
.sky-pick__chip:hover { border-color: color-mix(in srgb, var(--sign) 45%, transparent); color: #fff; }
.sky-pick__chip[aria-current="true"] { border-color: var(--sign); background: rgba(255,255,255,0.06); color: #fff; }
.sky-pick__chip:focus-visible { outline: 2px solid #c4b5fd; outline-offset: 2px; }
.sky-pick__panels { scroll-margin-top: 6rem; }
.sky-pick__panel {
    padding: 1.6rem 1.8rem 1.8rem;
    border: 1px solid rgba(255,255,255,0.08); border-top: 2px solid var(--sign); border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
}
.sky-pick__head { display: flex; align-items: center; gap: 1rem; line-height: 0; }
.sky-pick__name { font-family: 'Playfair Display', Georgia, serif; font-size: 2rem; font-weight: 600; line-height: 1; color: #fff; margin: 0; }
.sky-pick__dates { font-size: 0.8rem; line-height: 1.3; color: #a1a1aa; margin: 0.35rem 0 0; }
.sky-pick__text { font-size: 1.02rem; line-height: 1.65; color: #e4e4ec; margin: 1.1rem 0 1.2rem; }
.sky-pick__scores { display: flex; flex-wrap: wrap; gap: 0.6rem 1.75rem; margin: 0 0 1.1rem; }
.sky-pick__scores div { display: flex; align-items: center; gap: 0.55rem; }
.sky-pick__scores dt { font-size: 0.78rem; color: #a1a1aa; }
.sky-pick__scores dd { margin: 0; line-height: 0; }
.sky-pick__hook { font-size: 0.92rem; line-height: 1.5; color: #d4d4dc; margin: 0 0 1.4rem; }
.sky-pick__hook span { color: #a1a1aa; }
@media (max-width: 860px) {
    .sky-pick { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
    .sky-pick__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.4rem; }
    .sky-pick__chip { flex-direction: column; justify-content: center; gap: 0.3rem; padding: 0.55rem 0.1rem; font-size: 0.7rem; text-align: center; }
    .sky-pick__panel { padding: 1.25rem 1rem 1.25rem; }
    .sky-pick__name { font-size: 1.9rem; }
    .sky-pick .sky-pick__cta { display: flex; justify-content: center; width: 100%; padding-left: 0.5rem; padding-right: 0.5rem; font-size: 0.8rem; line-height: 1.3; text-align: center; }
}

/* ============================================================
   TAROT
   ============================================================ */
.tarot-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 1.5rem;
}
.tarot-feature {
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.3s ease;
}
.tarot-feature:hover { border-color: rgba(168, 85, 247, 0.5); }
.tarot-feature__image {
    width: 46%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.4rem;
    border-radius: 1rem;
    background: radial-gradient(circle at 50% 40%, rgba(139, 92, 246, 0.28), rgba(10, 10, 15, 0.55));
}
.tarot-feature__image img {
    max-width: 100%;
    max-height: 320px;
    width: auto;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    filter: drop-shadow(0 0 18px rgba(139, 92, 246, 0.4));
    transition: transform 0.6s ease;
}
.tarot-feature:hover .tarot-feature__image img { transform: scale(1.05); }
.tarot-feature__body {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tarot-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.tarot-mini {
    padding: 1.5rem;
    text-decoration: none;
    transition: background 0.3s ease;
}
.tarot-mini:hover { background: rgba(255,255,255,0.1); }
.tarot-mini__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: rgba(168, 85, 247, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c084fc;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}
.tarot-mini:hover .tarot-mini__icon { transform: scale(1.1); }
.tarot-mini__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.5rem;
    font-family: 'Outfit', sans-serif;
}
.tarot-mini__desc {
    font-size: 0.875rem;
    color: #c4ccda;
    margin: 0;
    line-height: 1.55;
}

/* ============================================================
   COMPATIBILITÉ
   ============================================================ */
.compat-cosmic { padding: 2rem; }
.compat-cosmic__row {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.compat-cosmic__select {
    flex: 1 1 0;
    min-width: 180px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 9999px;
    padding: 12px 24px;
    color: #ffffff;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    transition: border-color 0.2s ease;
    font-family: inherit;
    font-size: 0.9375rem;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c084fc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 38px;
}
.compat-cosmic__select:focus { border-color: rgba(168, 85, 247, 0.6); }
.compat-cosmic__select option {
    background: #050814;
    color: #ffffff;
}
.compat-cosmic__heart {
    color: #c084fc;
    line-height: 0;
    display: inline-flex;
}
.compat-cosmic__cta { padding: 12px 44px; }

/* ============================================================
   LES 12 SIGNES
   ============================================================ */
.signs-grid-card { padding: 2rem; }
.signs-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}
.sign-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* icones alignees en haut, meme si les dates passent sur 2 lignes */
    text-align: center;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid transparent;
    transition: background 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}
.sign-tile:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
}
.sign-tile__icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid color-mix(in srgb, var(--sign, #a855f7) 28%, rgba(255,255,255,0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.sign-tile__icon svg {
    transition: transform 0.3s ease, filter 0.2s ease;
}
.sign-tile:hover .sign-tile__icon {
    border-color: color-mix(in srgb, var(--sign, #a855f7) 55%, transparent);
    box-shadow: 0 0 22px color-mix(in srgb, var(--sign, #a855f7) 22%, transparent);
}
.sign-tile:hover .sign-tile__icon svg { transform: scale(1.1); }
.sign-tile__name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
}
.sign-tile__dates {
    font-size: 0.75rem;
    line-height: 1.45;
    color: #aab2c2;
    text-wrap: balance;
}

/* ============================================================
   FOOTER override
   ============================================================ */
.cosmic-body .site-footer {
    background: rgba(5, 8, 20, 0.85) !important;
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,0.08) !important;
    color: #b8c0d0 !important;
    padding: 4rem 0 2rem !important;
}
.cosmic-body .site-footer a { color: #b8c0d0 !important; }
.cosmic-body .site-footer a:hover { color: #c084fc !important; }
.cosmic-body .site-footer .footer-heading {
    color: #ffffff !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.875rem !important;
    letter-spacing: 0.04em !important;
}
.cosmic-body .site-footer .border-white\/10 { border-color: rgba(255,255,255,0.08) !important; }
.cosmic-body .site-footer .text-white\/50 { color: #9aa3b5 !important; }

/* Pictos reseaux du footer : nettement plus visibles que le texte legal. */
.cosmic-body .site-footer .footer-social-link {
    display: inline-flex;
    color: #d4d4dc !important;
    transition: color 0.18s ease, transform 0.15s ease;
}
.cosmic-body .site-footer .footer-social-link:hover {
    color: #c084fc !important;
    transform: translateY(-1px);
}

/* ============================================================
   HOROSCOPE SHOW — cosmic adaptation
   ============================================================ */
.horoscope-cosmic { padding: 0 1.25rem 6rem; max-width: 48rem; margin: 0 auto; }
.horoscope-cosmic__hero { text-align: center; margin-bottom: 3rem; }
.horoscope-cosmic__mark {
    width: 120px;
    height: 120px;
    border-radius: 9999px;
    background: linear-gradient(to bottom right, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));
    border: 1px solid rgba(168, 85, 247, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.25);
}
.horoscope-cosmic__mark svg { filter: drop-shadow(0 0 12px rgba(168, 85, 247, 0.8)); }
.horoscope-cosmic__mark svg.zi-tint { filter: drop-shadow(0 0 10px color-mix(in srgb, var(--zi) 55%, transparent)); }
.horoscope-cosmic__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 0.5rem;
    line-height: 1;
}
.horoscope-cosmic__date {
    color: #94a3b8;
    margin: 0 0 0.25rem;
    font-size: 1rem;
}
.horoscope-cosmic__meta {
    color: #c084fc;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
    margin: 0;
}

.horoscope-cosmic__scores {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 1rem;
    backdrop-filter: blur(8px);
}
.horoscope-cosmic__score { text-align: center; }
.horoscope-cosmic__score-label {
    font-size: 0.625rem;
    color: #94a3b8;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.horoscope-cosmic__score-stars {
    font-size: 0.9375rem;
    letter-spacing: 2px;
    background: linear-gradient(to right, #a855f7, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.horoscope-cosmic__article { margin-bottom: 2.5rem; }
.horoscope-cosmic__article-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.horoscope-cosmic__article-body {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.8;
}

.horoscope-cosmic__advice {
    padding: 1.5rem 2rem;
    border-radius: 1rem;
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-left: 3px solid #a855f7;
    margin: 2rem 0;
    backdrop-filter: blur(8px);
}
.horoscope-cosmic__advice-label {
    color: #c084fc;
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.horoscope-cosmic__advice-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.25rem;
    color: #ffffff;
    line-height: 1.5;
    margin: 0;
}

.horoscope-cosmic__footnotes {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 1.5rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.horoscope-cosmic__footnote {
    color: #94a3b8;
    font-size: 0.8125rem;
    line-height: 1.6;
    margin: 0;
}
.horoscope-cosmic__footnote-label {
    color: #c084fc;
    font-size: 0.625rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    margin-right: 0.5rem;
}

.horoscope-cosmic__others {
    padding: 2rem 0;
    text-align: center;
}
.horoscope-cosmic__others-label {
    color: #c084fc;
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 1.25rem;
}
.horoscope-cosmic__others-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}
.horoscope-cosmic__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 16px;
    border-radius: 9999px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.8125rem;
    backdrop-filter: blur(8px);
}
.horoscope-cosmic__pill:hover {
    border-color: rgba(168, 85, 247, 0.5);
    background: rgba(168, 85, 247, 0.1);
    color: #ffffff;
}
.horoscope-cosmic__pill--active {
    background: linear-gradient(to right, rgba(99, 102, 241, 0.25), rgba(168, 85, 247, 0.25));
    border-color: rgba(168, 85, 247, 0.5);
    color: #ffffff;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .signs-grid { grid-template-columns: repeat(4, 1fr); }
    .tarot-grid { grid-template-columns: 1fr; }
    .tarot-feature { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .hero-cosmic__wrap { grid-template-columns: 1fr; }
    .cosmic-main { padding: 0 1rem 4rem; }
    .cosmic-section { margin-bottom: 5rem; }
    .signs-grid { grid-template-columns: repeat(3, 1fr); }
    .tarot-mini-grid { grid-template-columns: 1fr; }
    .horoscope-cosmic__scores { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .signs-grid { grid-template-columns: repeat(2, 1fr); }
    .daily-card { flex-basis: 260px; }
}

/* ============ PERIOD NAV (cosmic) ============ */
.period-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    max-width: 720px;
    margin: 0 auto;
    padding: 1.5rem 2rem 0.5rem;
    flex-wrap: wrap;
}
.period-nav__tab {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.25s ease;
    backdrop-filter: blur(6px);
}
.period-nav__tab:hover {
    border-color: rgba(192, 132, 252, 0.6);
    color: #ffffff;
    background: rgba(192, 132, 252, 0.08);
}
.period-nav__tab--active,
.period-nav__tab--active:hover {
    background: linear-gradient(to right, #6366f1, #a855f7, #ec4899);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.45);
}
.period-nav__date {
    text-align: center;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 1.25rem;
    margin-bottom: 1.5rem;
}

/* ============ STUB PAGE (cosmic) ============ */
.stub-page {
    text-align: center;
    padding: 6rem 1.25rem 5rem;
}
.stub-page__inner {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.stub-page__breadcrumb {
    font-family: 'Inter', sans-serif;
    font-size: 0.6875rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 3rem;
}
.stub-page__breadcrumb-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}
.stub-page__breadcrumb-link:hover {
    color: #ffffff;
    border-bottom-color: #c084fc;
}
.stub-page__breadcrumb-sep {
    margin: 0 0.65rem;
    color: rgba(255, 255, 255, 0.25);
}
.stub-page__breadcrumb-current {
    color: rgba(255, 255, 255, 0.7);
}
.stub-page__illus {
    display: inline-flex;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 18px rgba(192, 132, 252, 0.35));
}
.stub-page__kicker {
    margin-bottom: 1.25rem;
    justify-content: center;
}
.stub-page__title {
    margin: 0 auto 1.5rem;
    text-align: center;
}
.stub-page__lede {
    margin: 0 auto 2rem;
    max-width: 540px;
    text-align: center;
}
.stub-page__tag {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.5);
    background: rgba(251, 191, 36, 0.06);
    padding: 0.5rem 1.1rem;
    border-radius: 9999px;
    margin-bottom: 2.5rem;
}
.stub-page__cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}
@media (max-width: 640px) {
    .stub-page { padding: 4rem 1rem 3rem; }
    .stub-page__breadcrumb { margin-bottom: 2rem; }
}

/* --------------------------------------------------------------------------
   Boutons de partage social (partial share-buttons.php) — thème cosmic
   -------------------------------------------------------------------------- */
.share-cosmic {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
}
.share-cosmic__label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-right: 0.35rem;
}
.share-cosmic__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.share-cosmic__btn:hover,
.share-cosmic__btn:focus-visible {
    color: #c084fc;
    border-color: rgba(168, 85, 247, 0.5);
    background: rgba(168, 85, 247, 0.12);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.35);
    transform: translateY(-1px);
    outline: none;
}
.share-cosmic__btn svg {
    width: 18px;
    height: 18px;
    display: block;
}
.share-cosmic__btn [hidden] {
    display: none;
}
.share-cosmic__btn[hidden] {
    display: none;
}

/* ==========================================================================
   Guide : sommaire sticky (rail) + contenu, reutilisable (piliers, blog)
   Accents surchargeables par page via --guide-accent / --guide-* .
   ========================================================================== */
.guide-layout {
    --guide-accent: #c084fc;
    --guide-toc-link: #cbd5e1;
    --guide-border: rgba(192, 132, 252, 0.22);
    --guide-bg: rgba(20, 20, 28, 0.55);
    --guide-active-bg: rgba(139, 92, 246, 0.12);
}

.guide-layout__main { min-width: 0; }

.guide-toc {
    border: 1px solid var(--guide-border);
    border-radius: 1rem;
    background: var(--guide-bg);
    padding: 0.9rem 1rem;
}
.guide-toc__title {
    margin: 0 0 0.7rem;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--guide-accent);
    font-weight: 600;
}
.guide-toc ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.guide-toc li { margin: 0; }
/* Double classe = specificite superieure aux styles de page (.num-guide a,
   .chiro-guide a, .blog-prose a) qui soulignent les liens du contenu. */
.guide-toc ol a,
.guide-toc ol a:hover {
    text-decoration: none;
    border-bottom: none;
}
.guide-toc ol a {
    display: block;
    padding: 0.28rem 0.5rem;
    border-left: 2px solid transparent;
    border-radius: 0 0.35rem 0.35rem 0;
    color: var(--guide-toc-link);
    font-size: 0.82rem;
    line-height: 1.35;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.guide-toc ol a:hover { color: var(--guide-accent); }
.guide-toc ol a.is-active {
    color: var(--guide-accent);
    font-weight: 600;
    border-left-color: var(--guide-accent);
    background: var(--guide-active-bg);
}
/* Sous-sections (h3, ex. blog) : leger retrait */
.guide-toc li.lvl-3 a {
    padding-left: 1.4rem;
    font-size: 0.78rem;
    opacity: 0.9;
}

.guide-cta {
    display: block;
    text-align: center;
    margin-top: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 0.7rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.guide-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px -12px rgba(236, 72, 153, 0.6);
}

/* Partage compact dans le rail : label au-dessus, petites icones sur UNE ligne.
   Sur mobile, la barre du haut est masquee : seul le dock bas (au scroll) sert. */
@media (max-width: 1023px) {
    .guide-layout__aside [data-share-dock-ref] { display: none; }
}
.guide-layout__aside .share-cosmic {
    margin-top: 0.9rem;
    flex-wrap: wrap;
    gap: 0.3rem;
}
.guide-layout__aside .share-cosmic__label {
    flex-basis: 100%;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    margin-bottom: 0.15rem;
}
.guide-layout__aside .share-cosmic__btn {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}
.guide-layout__aside .share-cosmic__btn svg {
    width: 14px;
    height: 14px;
}

/* Barre de partage fixe en bas (mobile) : apparait quand la barre de partage
   du haut est sortie de l'ecran (module ShareDock, app.js). */
.share-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    /* Sous le header (z-50) : le menu mobile ouvert doit recouvrir le dock. */
    z-index: 40;
    padding: 0.55rem 1rem calc(0.55rem + env(safe-area-inset-bottom));
    background: rgba(10, 10, 15, 0.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(192, 132, 252, 0.18);
    transform: translateY(100%);
    transition: transform 0.25s ease;
}
.share-dock.is-visible { transform: translateY(0); }
.share-dock .share-cosmic {
    margin: 0;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.45rem;
}
.share-dock .share-cosmic__label { display: none; }
.share-dock .share-cosmic__btn { width: 36px; height: 36px; flex-shrink: 0; }
.share-dock .share-cosmic__btn svg { width: 16px; height: 16px; }
@media (min-width: 1024px) {
    .share-dock { display: none; }
}

/* Bouton « retour en haut » (partial to-top.php, public/js/to-top.js).
   z-index 30 : SOUS le dock de partage (40), le header et son menu mobile (50)
   et l'overlay d'attente de la chiromancie (9999). */
.to-top {
    --to-top-lift: 0px;
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    bottom: calc(1rem + env(safe-area-inset-bottom));
    z-index: 30;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(139, 92, 246, 0.45);
    background: rgba(20, 20, 28, 0.72);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(calc(10px - var(--to-top-lift)));
    transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.2s ease,
        box-shadow 0.2s ease, visibility 0s linear 0.25s;
}
.to-top[hidden] { display: none; }
.to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(calc(0px - var(--to-top-lift)));
    transition-delay: 0s;
}
.to-top.is-visible.is-dimmed { opacity: 0.45; }
.to-top.is-visible:hover,
.to-top.is-visible:focus-visible {
    opacity: 1;
    border-color: rgba(236, 72, 153, 0.7);
    box-shadow: 0 8px 26px rgba(139, 92, 246, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transform: translateY(calc(-2px - var(--to-top-lift)));
}
.to-top:focus-visible {
    outline: 2px solid #c084fc;
    outline-offset: 3px;
}
.to-top-target:focus { outline: none; }
@media (min-width: 1024px) {
    .to-top {
        right: max(1.5rem, env(safe-area-inset-right));
        bottom: calc(1.5rem + env(safe-area-inset-bottom));
    }
}
/* Au-dessus du dock de partage mobile quand il est affiche : 12 px au-dessus
   de son bord haut (--share-dock-h = hauteur mesuree par to-top.js, zone
   sure comprise ; le dock n'existe que sous 1024 px). */
@media (max-width: 1023.98px) {
    .to-top.is-lifted {
        --to-top-lift: calc(var(--share-dock-h, 55px) + 0.75rem - 1rem - env(safe-area-inset-bottom));
    }
}
@media (prefers-reduced-motion: reduce) {
    .to-top { transition: opacity 0.15s linear, visibility 0s linear 0.15s; }
    .to-top.is-visible { transition-delay: 0s; }
}
@media print {
    .to-top { display: none !important; }
}

/* Ancrage des titres sous le header fixe (au clic d'une entree du sommaire) */
[data-scrollspy-content] h2 { scroll-margin-top: 96px; }

/* Desktop : rail sommaire a DROITE, sticky ; contenu a gauche. */
@media (min-width: 1024px) {
    .guide-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 3rem;
        align-items: start;
    }
    .guide-layout__main { grid-column: 1; grid-row: 1; }
    .guide-layout__aside {
        grid-column: 2;
        grid-row: 1;
        position: sticky;
        top: 96px;
    }
}

/* ==========================================================================
   Bloc « articles du journal » (partial related-articles.php) : maillage
   interne des pages du site vers le blog. Liste editoriale (image + titre +
   date), sans carte encadree ; en ligne compacte sur mobile.
   ========================================================================== */
.rel-articles { max-width: 1120px; margin: 4rem auto 0; color: #e7e5f2; font-family: 'Outfit', system-ui, sans-serif; }
.rel-articles--padded { padding: 0 1.25rem; }
.rel-articles__head { margin: 0 0 1.4rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,0.1); }
.rel-articles__kicker { margin: 0 0 0.4rem; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #a78bfa; }
.rel-articles__title { margin: 0; font-family: 'Playfair Display', Georgia, serif; font-weight: 600; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; color: #f5f5f7; }
.rel-articles__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0; }
.rel-card { border-bottom: 1px solid rgba(255,255,255,0.08); }
.rel-card:last-child { border-bottom: 0; }
.rel-card__link { display: flex; gap: 0.95rem; align-items: flex-start; padding: 0.85rem 0; text-decoration: none; color: inherit; }
.rel-card__media { position: relative; flex: 0 0 96px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden;
    background: linear-gradient(135deg, #241a3a, #3a1e3a 60%, #1e2540); }
.rel-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.rel-card__body { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.rel-card__cat { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #9d9cb0; }
.rel-card__title { margin: 0; font-family: 'Playfair Display', Georgia, serif; font-weight: 500; font-size: 0.85rem; line-height: 1.32; color: #f5f5f7; transition: color 0.2s ease; }
.rel-card__date { font-size: 0.72rem; color: #8b8b96; }
.rel-card__link:hover .rel-card__title, .rel-card__link:focus-visible .rel-card__title { color: #c4b5fd; }
.rel-card__link:hover .rel-card__media img { transform: scale(1.04); }
.rel-card__link:focus-visible { outline: 2px solid #8b5cf6; outline-offset: 4px; border-radius: 10px; }
.rel-articles__more { margin: 1.1rem 0 0; font-size: 0.9rem; }
.rel-articles__more a { color: #b07fe6; text-decoration: none; border-bottom: 1px solid rgba(176,127,230,0.35); padding-bottom: 1px; }
.rel-articles__more a:hover { color: #ec4899; border-bottom-color: rgba(236,72,153,0.5); }

/* « À lire aussi » : 3 liens discrets (maillage des articles non indexes), partial lire-aussi.php. */
.lire-aussi { max-width: 1120px; margin: 2rem auto 0; font-family: 'Outfit', system-ui, sans-serif; }
.lire-aussi__label { margin: 0 0 0.5rem; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #a78bfa; }
.lire-aussi__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.lire-aussi__list a { color: #c9c6dc; font-size: 0.95rem; text-decoration: none; border-bottom: 1px solid rgba(176,127,230,0.3); }
.lire-aussi__list a:hover { color: #ec4899; border-bottom-color: rgba(236,72,153,0.5); }

/* Tablette et plus : grille de vignettes 16:9, titre sous l'image. */
@media (min-width: 640px) {
    .rel-articles__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; }
    .rel-card, .rel-card:last-child { border-bottom: 0; }
    .rel-card__link { flex-direction: column; gap: 0.8rem; padding: 0; }
    .rel-card__media { flex: none; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; }
    .rel-card__title { font-size: 1.12rem; }
    .rel-card__cat { font-size: 0.66rem; }
    .rel-card__date { font-size: 0.78rem; }
}
@media (min-width: 900px) {
    .rel-articles__grid--thirds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1080px) {
    .rel-articles__grid--quarters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* Colonne etroite (page signe avec sommaire lateral) : 2 vignettes par ligne au plus. */
@media (min-width: 640px) {
    .rel-articles--column .rel-articles__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
    .rel-card__media img, .rel-card__title { transition: none; }
    .rel-card__link:hover .rel-card__media img { transform: none; }
}

/* ===== Couleurs des signes (2026-10-19) =====
   Source unique : App\Helpers\ZodiacIcons::COLORS -> variables --sign-{slug} (layout.php).
   Touches sobres seulement : picto teinte, lisere, pastille, lueur au survol.
   Jamais de carte remplie de la couleur ni de badge d'element. */
.zi-tint {
    color: var(--zi, #a78bfa);
    overflow: visible;
    filter: drop-shadow(0 0 3px color-mix(in srgb, var(--zi, #a78bfa) 40%, transparent));
    transition: filter 200ms ease;
}
a:hover .zi-tint,
a:focus-visible .zi-tint,
button:hover .zi-tint,
label:hover .zi-tint,
.zi-glow-on-hover:hover .zi-tint {
    filter: drop-shadow(0 0 4px color-mix(in srgb, var(--zi, #a78bfa) 65%, transparent))
            drop-shadow(0 0 10px color-mix(in srgb, var(--zi, #a78bfa) 35%, transparent));
}
.sign-dot {
    display: inline-block;
    flex: none;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--sign, #a78bfa);
    box-shadow: 0 0 6px color-mix(in srgb, var(--sign, #a78bfa) 60%, transparent);
}
@media (prefers-reduced-motion: reduce) {
    .zi-tint { transition: none; }
}

/* ==========================================================================
   Carte « short en vidéo » (templates/partials/short-card.php), la même sur le blog,
   les hubs horoscope et les pages par signe (30/10/2026). Réglée sur la largeur de sa
   colonne (container query) : lecteur centré + texte dessous sous 540 px de colonne,
   lecteur de 230 px à gauche dès 540 px, de 300 px dès 760 px.
   ========================================================================== */
.short-card { container-type: inline-size; max-width: 860px; margin: 0 auto 2.4rem; --short-accent: #8b5cf6; }
.short-card__inner {
    display: grid; grid-template-columns: 1fr; justify-items: center; gap: 1.2rem; padding: 1.1rem;
    border-radius: 18px; border: 1px solid color-mix(in srgb, var(--short-accent) 32%, transparent);
    background: radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--short-accent) 18%, transparent), transparent 58%),
        linear-gradient(160deg, rgba(20, 20, 28, 0.92), rgba(26, 26, 36, 0.78));
}
.short-card__frame {
    position: relative; width: min(300px, 82%); aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden;
    background: #0a0a0f; border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 22px 48px -22px color-mix(in srgb, var(--short-accent) 70%, transparent);
}
.short-card__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.short-card__side { display: flex; flex-direction: column; align-items: center; gap: 0.7rem; max-width: 30rem; text-align: center; }
.short-card__kicker { font-family: 'Outfit', sans-serif; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
    color: color-mix(in srgb, var(--short-accent) 55%, #ffffff); }
.short-card__title { font-family: 'Playfair Display', Georgia, serif; font-size: 1.4rem; font-weight: 500; line-height: 1.2; color: #f5f5f7; text-wrap: balance; }
.short-card__lead { color: #c9c9d4; font-size: 0.95rem; line-height: 1.65; }
.short-card__cta {
    display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; margin-top: 0.3rem; padding: 0.55rem 1.2rem;
    border-radius: 9999px; color: #fff; font-size: 0.9rem; font-weight: 600; text-decoration: none; white-space: nowrap;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899); box-shadow: 0 10px 24px -12px rgba(236, 72, 153, 0.7);
}
.short-card__cta::before { content: ''; width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent #fff; }
.short-card__cta:hover { filter: brightness(1.1); }
.short-card__cta:focus-visible { outline: 2px solid #c4b5fd; outline-offset: 3px; }
.short-card__note { color: #9a9aa8; font-size: 0.8rem; }
@container (min-width: 540px) {
    .short-card__inner { grid-template-columns: 230px minmax(0, 1fr); justify-items: stretch; align-items: center; gap: 1.6rem; padding: 1.3rem; }
    .short-card__frame { width: 100%; }
    .short-card__side { align-items: flex-start; text-align: left; }
}
@container (min-width: 760px) {
    .short-card__inner { grid-template-columns: 300px minmax(0, 1fr); gap: 2.2rem; padding: 1.5rem; }
    .short-card__title { font-size: 1.65rem; }
}
/* vidéo horizontale (16:9) : lecteur pleine largeur, texte dessous, quelle que soit la colonne */
.short-card--wide .short-card__inner { grid-template-columns: 1fr; justify-items: center; }
.short-card--wide .short-card__frame { width: 100%; aspect-ratio: 16 / 9; }
.short-card--wide .short-card__side { align-items: center; text-align: center; max-width: 40rem; }
/* blog (07/11/2026) : le lecteur seul en grand, surtitre et lien d'abonnement discrets dessous */
.short-card--compact .short-card__inner { grid-template-columns: 1fr; justify-items: center; gap: 0.9rem; padding: 1.2rem 1rem 1rem; }
.short-card--compact .short-card__frame { width: min(380px, 100%, calc((100svh - 150px) * 9 / 16)); min-width: min(260px, 100%); }
.short-card--compact .short-card__side { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0.4rem 1.1rem; max-width: none; text-align: center; }
.short-card__sub { color: #c9c9d4; font-size: 0.85rem; text-decoration: underline; text-underline-offset: 3px;
    text-decoration-color: color-mix(in srgb, var(--short-accent) 60%, transparent); }
.short-card__sub:hover { color: #fff; }
.short-card__sub:focus-visible { outline: 2px solid #c4b5fd; outline-offset: 3px; border-radius: 3px; }
/* image d'intro + bouton lecture, le lecteur YouTube n'arrive qu'au clic (ShortCard, app.js) */
.short-card__play { position: absolute; inset: 0; display: block; cursor: pointer; }
.short-card__play img { width: 100%; height: 100%; object-fit: cover; display: block; }
.short-card__play-icon {
    position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; transform: translate(-50%, -50%);
    border-radius: 50%; background: rgba(10, 10, 15, 0.55); border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); transition: transform 0.2s ease, background 0.2s ease;
}
.short-card__play-icon::after {
    content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%);
    border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent #fff;
}
.short-card__play:hover .short-card__play-icon { transform: translate(-50%, -50%) scale(1.08); background: color-mix(in srgb, var(--short-accent) 70%, rgba(10, 10, 15, 0.4)); }
.short-card__play:focus-visible { outline: 3px solid #c4b5fd; outline-offset: -3px; }
@media (prefers-reduced-motion: reduce) { .short-card__play-icon { transition: none; } }
