/* Reset et base */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --fg: #0a0a0a;
    --muted: #6b7280;
    --bg: #fff;
    --accent: #111827;
    --primary: #667eea;
    --secondary: #764ba2;
}

html {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Inter, Arial, sans-serif;
    line-height: 1.6;
}

body {
    color: var(--fg);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}


/* Typography */

h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    margin: 28px 0 12px;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 16px 0 8px;
}

p {
    line-height: 1.7;
    margin: 12px 0;
}

ul {
    padding-left: 24px;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s ease;
}


/* Header */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 20px 0;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge a {
    color: white;
}

.badge a:hover {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}

.meta {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}


/* Hero */

.hero {
    text-align: center;
    margin-bottom: 60px;
    color: white;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}


/* Grilles */

.signs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.periods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 12px;
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 16px 0;
}


/* Cartes */

.sign-card {
    background: white;
    border-radius: 16px;
    padding: 32px 24px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sign-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.sign-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.sign-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 16px;
}

.sign-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2d3748;
}

.sign-card p {
    color: #718096;
    font-size: 0.9rem;
}

.period-card {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.period-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.period-card.active {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
    cursor: default;
}

.period-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.period-card p {
    opacity: 0.9;
    font-size: 0.9rem;
}

.hour-card {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 8px;
    padding: 12px 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hour-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.city-card {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 8px;
    padding: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.city-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.city-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.city-card p {
    opacity: 0.8;
    font-size: 0.85rem;
}


/* Sections */

.other-periods,
.mirror-hours,
.cities-section {
    margin-bottom: 60px;
}

.other-periods h2,
.mirror-hours h2,
.cities-section h2 {
    color: white;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 24px;
    text-align: center;
}

.cities-more {
    text-align: center;
    margin-top: 20px;
}

.btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}


/* Navigation des périodes */

.period-navigation {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    margin-top: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.period-navigation h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 16px;
    text-align: center;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.2);
}


/* Navigation des horoscopes */

.mirror-navigation,
.horoscope-navigation {
    margin: 24px 0;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-button {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.nav-button.prev {
    background: rgba(254, 243, 199, 0.2);
    border-color: rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}

.nav-button.prev:hover {
    background: rgba(254, 243, 199, 0.3);
    border-color: rgba(251, 191, 36, 0.5);
}

.nav-button.next {
    background: rgba(219, 234, 254, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

.nav-button.next:hover {
    background: rgba(219, 234, 254, 0.3);
    border-color: rgba(59, 130, 246, 0.5);
}


/* Contenu des horoscopes */

.horoscope-content {
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.horoscope-content h1 {
    color: #2d3748;
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.horoscope-content h2 {
    color: #4a5568;
    font-size: 1.5rem;
    margin: 32px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

.horoscope-content p {
    color: #4a5568;
    margin-bottom: 16px;
    line-height: 1.7;
}

.horoscope-content ul {
    margin: 16px 0;
    padding-left: 24px;
}

.horoscope-content li {
    color: #4a5568;
    margin-bottom: 8px;
}


/* FAQ */

.faq {
    background: #f7fafc;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
}

.faq h3 {
    color: #2d3748;
    margin-bottom: 16px;
}

.faq-item {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-question {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.faq-answer {
    color: #4a5568;
    line-height: 1.6;
}


/* Footer */

.footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 60px;
    padding: 20px 0;
}


/* Utilitaires */

hr {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 24px 0;
}

.card {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}


/* Responsive */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .signs-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 16px;
    }
    .periods-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .cities-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 8px;
    }
    .nav-links {
        flex-direction: column;
        align-items: center;
    }
    .container {
        padding: 16px;
    }
    .horoscope-content {
        padding: 24px;
    }
    .horoscope-content h1 {
        font-size: 2rem;
    }
}