@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600&display=swap');

/* ============================================================
   HOME PAGE — Dark Cosmic Theme
   Ce fichier ne se charge que sur la home page.
   Les overrides de body/.navbar n'affectent pas les autres pages.
   ============================================================ */

:root {
    --bg-deep: #0f0c1a;
    --bg-surface: #1a1626;
    --accent-glow: #b983ff;
    --accent-gold: #d4af37;
    --text-main: #ffffff;
    --text-secondary: #b3b0bc;
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-hover: rgba(255, 255, 255, 0.08);
}

/* --- TYPOGRAPHIE & BASE --- */
body {
    font-family: 'Manrope', 'Lato', sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-main);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-serif {
    font-family: 'Cinzel', serif;
    letter-spacing: 0.03em;
}

a { transition: all 0.3s ease; }

.text-secondary-custom { color: var(--text-secondary) !important; }
.text-gold { color: var(--accent-gold) !important; }
.text-glow { color: var(--accent-glow) !important; }
.bg-surface { background-color: var(--bg-surface); }

/* --- NAVBAR (override AbstractFrontPage) --- */
.navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    padding: 1.5rem 0;
    background: linear-gradient(to bottom, rgba(15, 12, 26, 0.95), transparent) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(15, 12, 26, 0.98) !important;
    border-bottom-color: var(--glass-border);
    padding: 1rem 0;
}

.navbar-brand {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--text-main) !important;
    letter-spacing: 0.05em;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main) !important;
}

.navbar-toggler {
    border: none;
    color: white;
    box-shadow: none !important;
}

/* Bouton "Espace Praticien" dans la nav */
.nav-btn-glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main) !important;
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.nav-btn-glass:hover {
    background: var(--glass-hover);
    border-color: var(--accent-glow);
    box-shadow: 0 0 15px rgba(185, 131, 255, 0.2);
}

/* --- ARRIÈRE-PLAN NÉBULEUSE --- */
.nebula-container {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.nebula {
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    animation: breathe 12s infinite alternate ease-in-out;
}

.nebula-1 { top: -10%; left: -10%; background: #5b247a; }
.nebula-2 { top: 30%; right: -15%; background: #2a2a72; opacity: 0.25; }

@keyframes breathe {
    0%   { transform: scale(1);    opacity: 0.30; }
    100% { transform: scale(1.15); opacity: 0.45; }
}

/* --- HERO SECTION --- */
.hero-section {
    padding: 12rem 0 8rem;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.6;
    font-family: 'Manrope', 'Lato', sans-serif;
}

/* --- PORTAIL DE RECHERCHE --- */
.search-portal {
    background: rgba(20, 16, 30, 0.4);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.5rem;
}

.search-portal:focus-within {
    border-color: rgba(185, 131, 255, 0.4);
    background: rgba(20, 16, 30, 0.6);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(185, 131, 255, 0.15);
}

.search-primary {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
}

.search-icon-main {
    font-size: 1.5rem;
    color: var(--accent-glow);
    opacity: 0.8;
}

.search-input {
    background: transparent;
    border: none;
    color: var(--text-main);
    padding: 0.5rem 1.5rem;
    width: 100%;
    font-size: 1.25rem;
    font-weight: 300;
    font-family: 'Manrope', 'Lato', sans-serif;
}

.search-input:focus {
    outline: none;
    box-shadow: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.btn-search {
    background: var(--text-main);
    color: var(--bg-deep);
    border: none;
    border-radius: 20px;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    white-space: nowrap;
    font-family: 'Cinzel', serif;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-search:hover {
    background: var(--accent-gold);
    transform: scale(1.02);
}

.search-suggestions {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1.2rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.suggestion-label {
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-right: 0.5rem;
    opacity: 0.6;
}

.suggestion-pill {
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.suggestion-pill:hover {
    color: var(--text-main);
    background: rgba(185, 131, 255, 0.1);
    border-color: rgba(185, 131, 255, 0.3);
}

/* --- BANDEAU HOROSCOPE --- */
.horoscope-ticker {
    background: linear-gradient(90deg, rgba(15,12,26,0.3), rgba(26,22,38,0.8), rgba(15,12,26,0.3));
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.horoscope-track {
    display: inline-block;
    animation: scrollTicker 180s linear infinite;
}

.horoscope-track:hover { animation-play-state: paused; }

.horoscope-item {
    display: inline-block;
    vertical-align: middle;
    padding: 0 2rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.horoscope-item strong { color: var(--text-main); }

.horoscope-item-cta {
    display: inline-block;
    color: var(--accent-glow);
    font-weight: 600;
    margin-left: 0.75rem;
    border-bottom: 1px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.horoscope-item:hover .horoscope-item-cta {
    color: var(--accent-gold);
    border-bottom-color: var(--accent-gold);
}

@keyframes scrollTicker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- CARTES UNIVERS (glass) --- */
.section-title {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-main);
}

.universe-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: var(--text-main);
}

.universe-card:hover {
    background: var(--glass-hover);
    border-color: rgba(185, 131, 255, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: var(--text-main);
}

.universe-icon {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.universe-card:hover .universe-icon {
    color: var(--accent-gold);
}

.universe-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    font-family: 'Cinzel', serif;
}

.universe-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
    font-family: 'Manrope', 'Lato', sans-serif;
}

/* --- UNIVERS SECONDAIRES (cartes compactes) --- */
.universe-card-sm {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.25rem 0.75rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: var(--text-main);
}

.universe-card-sm:hover {
    background: var(--glass-hover);
    border-color: rgba(185, 131, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    color: var(--text-main);
}

.universe-card-sm-icon {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.universe-card-sm:hover .universe-card-sm-icon {
    color: var(--accent-glow);
}

.universe-card-sm-title {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    color: var(--text-main);
    font-family: 'Cinzel', serif;
    line-height: 1.2;
}

.universe-card-sm-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.35;
    font-family: 'Manrope', 'Lato', sans-serif;
}

/* --- TAGS THÉMATIQUES --- */
.tag-pill {
    background: linear-gradient(145deg, rgba(26,22,38,0.8), rgba(15,12,26,0.9));
    border: 1px solid rgba(185, 131, 255, 0.2);
    color: var(--text-secondary);
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
    display: inline-block;
    margin: 0.4rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.tag-pill::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.tag-pill:hover::before { left: 100%; }

.tag-pill:hover {
    background: rgba(185, 131, 255, 0.1);
    color: var(--text-main);
    border-color: var(--accent-glow);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(185, 131, 255, 0.25);
}

/* --- PRATICIENS (liste minimaliste) --- */
.pro-card {
    background: transparent;
    border-bottom: 1px solid var(--glass-border);
    padding: 2rem 0;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pro-card:hover {
    border-bottom-color: var(--accent-glow);
    background: linear-gradient(90deg, var(--glass-bg), transparent);
    padding-left: 0.5rem;
}

.pro-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.pro-card:hover .pro-avatar {
    border-color: var(--accent-glow);
}

.pro-card h4 {
    font-family: 'Cinzel', serif;
    color: var(--text-main);
    font-size: 1.1rem;
}

.pro-card .pro-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* --- COMMENT ÇA MARCHE --- */
.how-section {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.step-card {
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
}

.step-number {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Cinzel', serif;
    font-size: 5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.03);
    z-index: 0;
    line-height: 1;
}

.step-content {
    position: relative;
    z-index: 1;
}

.step-icon {
    font-size: 2.5rem;
    color: var(--accent-glow);
    margin-bottom: 1.5rem;
}

.step-card h4 {
    font-family: 'Cinzel', serif;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- STATISTIQUES --- */
.stat-box {
    text-align: center;
    padding: 1.5rem;
    border-right: 1px solid var(--glass-border);
}

.stat-box:last-child { border-right: none; }

.stat-number {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stats-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

/* --- BLOG CARDS --- */
.blog-card {
    background: rgba(26, 22, 38, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.blog-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.blog-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.blog-content { padding: 1.5rem; }

.blog-category {
    color: var(--accent-glow);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
    font-weight: 600;
}

.blog-card h4 {
    font-family: 'Cinzel', serif;
    color: var(--text-main);
    font-size: 1.05rem;
    margin-top: 0.5rem;
}

.blog-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- PRO CTA --- */
.pro-cta-section {
    background: linear-gradient(135deg, rgba(26, 22, 38, 0.95) 0%, rgba(91, 36, 122, 0.6) 100%);
    border: 1px solid var(--accent-glow);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    padding: 4rem 3rem;
    box-shadow: 0 0 40px rgba(91, 36, 122, 0.2);
}

.pro-cta-bg {
    position: absolute;
    top: -30%; right: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    opacity: 0.25;
    filter: blur(50px);
    pointer-events: none;
}

.pro-benefits-list {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.pro-benefits-list li {
    color: var(--text-main);
    font-size: 1.05rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-family: 'Manrope', 'Lato', sans-serif;
}

.pro-benefits-list li i {
    color: var(--accent-gold);
    font-size: 1.2rem;
    margin-right: 12px;
    flex-shrink: 0;
}

.btn-cta-primary {
    background: var(--text-main);
    color: var(--bg-deep);
    border: none;
    border-radius: 20px;
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Cinzel', serif;
    width: 100%;
    transition: all 0.3s ease;
    display: block;
    text-align: center;
    text-decoration: none;
}

.btn-cta-primary:hover {
    background: var(--accent-gold);
    color: var(--bg-deep);
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

/* --- FOOTER OVERRIDES --- */
footer {
    background: rgba(15, 12, 26, 0.95) !important;
    border-top: 1px solid var(--glass-border);
    position: relative;
    z-index: 1;
}

footer h5 {
    font-family: 'Cinzel', serif;
    color: var(--text-main) !important;
}

footer a {
    color: var(--text-secondary) !important;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

footer a:hover {
    color: var(--accent-gold) !important;
}

footer .text-white {
    color: var(--text-secondary) !important;
}

footer .border-secondary {
    border-color: var(--glass-border) !important;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .search-portal {
        padding: 1rem;
        border-radius: 20px;
    }

    .search-primary {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 0.5rem;
    }

    .search-input {
        padding: 0.5rem 0;
        text-align: center;
        font-size: 1.1rem;
    }

    .btn-search {
        width: 100%;
        padding: 1rem;
    }

    .pro-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .stat-box {
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }

    .stat-box:last-child { border-bottom: none; }

    .pro-cta-section {
        padding: 2.5rem 1.5rem;
    }

    .section-title {
        font-size: 1.7rem;
    }
}
