/* Reset et Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #6B46C1;
    --color-primary-dark: #553C9A;
    --color-primary-light: #A78BFA;
    --color-gold: #F59E0B;
    --color-gold-light: #FBBF24;
    --color-bg-dark: #0F0F0F;
    --color-bg-darker: #050505;
    --color-bg-card: #1A1A1A;
    --color-text: #F5F5F5;
    --color-text-secondary: #A3A3A3;
    --color-border: #2A2A2A;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(107, 70, 193, 0.5);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--color-bg-darker) 0%, var(--color-bg-dark) 100%);
    color: var(--color-text);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px rgba(107, 70, 193, 0.5));
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--color-text);
    transition: all 0.3s;
    border-radius: 2px;
}

.menu-toggle:hover span {
    background: var(--color-primary-light);
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: var(--color-bg-card);
    border-left: 1px solid var(--color-border);
    z-index: 2000;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.sidebar.open {
    right: 0;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h2 {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close-menu {
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.close-menu:hover {
    background: var(--color-border);
}

.sidebar-menu {
    list-style: none;
    padding: 1rem 0;
}

.sidebar-menu li {
    margin: 0.5rem 0;
}

.menu-link {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.menu-link:hover,
.menu-link.active {
    background: rgba(107, 70, 193, 0.1);
    border-left-color: var(--color-primary);
    color: var(--color-primary-light);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    min-height: calc(100vh - 200px);
}

.page {
    display: none;
    animation: fadeIn 0.5s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Home Cards */
.home-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.home-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.home-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.home-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
    border-color: var(--color-primary);
}

.home-card:hover::before {
    opacity: 1;
}

.home-card .card-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 15px rgba(107, 70, 193, 0.5));
    position: relative;
    z-index: 1;
}

.home-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.home-card p {
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.card-button {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.card-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(107, 70, 193, 0.4);
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
}

/* Tarot Container */
.tarot-container {
    min-height: 500px;
}

/* Sélection de domaine */
.domain-selection {
    text-align: center;
    padding: 2rem 0;
}

.domain-selection h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--color-text);
}

.domains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.domain-card {
    background: var(--color-bg-card);
    border: 2px solid var(--color-border);
    border-radius: 16px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.domain-card:hover {
    border-color: var(--color-primary);
    background: rgba(107, 70, 193, 0.1);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.domain-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.domain-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

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

/* Sélection de cartes */
.cards-selection {
    padding: 2rem 0;
}

.selection-header {
    text-align: center;
    margin-bottom: 2rem;
}

.selection-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.selected-domain-info {
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

.back-to-domains-btn,
.back-to-cards-btn,
.back-to-cross-btn {
    background: transparent;
    border: 2px solid var(--color-border);
    color: var(--color-text);
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 1rem;
}

.back-to-domains-btn:hover,
.back-to-cards-btn:hover,
.back-to-cross-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary-light);
}

.cards-grid-container {
    max-height: 600px;
    overflow-y: auto;
    padding: 1rem;
    margin-bottom: 2rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tarot-card-back {
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 140/220;
}

.tarot-card-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.tarot-card-back:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.tarot-card-back.selected {
    border: 3px solid var(--color-gold);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
}

.tarot-card-back.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--color-gold);
    color: var(--color-bg-dark);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.selected-cards-info {
    text-align: center;
    padding: 1.5rem;
    background: var(--color-bg-card);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.selected-cards-info p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.selected-cards-info span {
    color: var(--color-gold);
    font-weight: 600;
}

.reset-selection-btn,
.continue-to-cross-btn {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin: 0.5rem;
}

.reset-selection-btn:hover,
.continue-to-cross-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

/* Disposition en croix */
.cross-layout {
    padding: 2rem 0;
}

.cross-header {
    text-align: center;
    margin-bottom: 3rem;
}

.cross-header h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.cross-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    min-height: 500px;
}

.cross-position {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cross-position .position-label {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.cross-gauche {
    grid-column: 1;
    grid-row: 2;
}

.cross-haut {
    grid-column: 2;
    grid-row: 1;
}

.cross-centre {
    grid-column: 2;
    grid-row: 2;
}

.cross-droite {
    grid-column: 3;
    grid-row: 2;
}

.cross-bas {
    grid-column: 2;
    grid-row: 3;
}

.cross-card-slot {
    width: 100%;
    max-width: 140px;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cross-card {
    width: 100%;
    aspect-ratio: 140/220;
}

.cross-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--color-primary);
}

.empty-slot {
    width: 100%;
    height: 100%;
    background: var(--color-bg-card);
    border: 2px dashed var(--color-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.card-name-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    padding: 1rem;
    text-align: center;
    font-size: 0.9rem;
}

.interpret-btn {
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 100%);
    color: var(--color-bg-dark);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: block;
    margin: 2rem auto;
    box-shadow: var(--shadow-md);
}

.interpret-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.interpret-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Résultat de l'interprétation */
.interpretation-result {
    padding: 2rem 0;
}

.interpretation-header {
    text-align: center;
    margin-bottom: 2rem;
}

.interpretation-header h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.interpretation-content {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    min-height: 300px;
}

.interpretation-text {
    color: var(--color-text);
    line-height: 1.8;
    font-size: 1.1rem;
    white-space: pre-wrap;
}

.interpretation-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.interpretation-error {
    text-align: center;
    padding: 2rem;
    color: var(--color-text-secondary);
}

.interpretation-error p {
    margin-bottom: 1rem;
}

.save-reading-btn {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: block;
    margin: 1rem auto;
    box-shadow: var(--shadow-md);
}

.save-reading-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.new-reading-btn {
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 100%);
    color: var(--color-bg-dark);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: block;
    margin: 2rem auto 0;
    box-shadow: var(--shadow-md);
}

.new-reading-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.tarot-shuffle {
    text-align: center;
    padding: 3rem 0;
}

.shuffle-animation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.card-back {
    width: 80px;
    height: 120px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--color-gold);
    animation: float 2s ease-in-out infinite;
}

.card-back:nth-child(2) {
    animation-delay: 0.2s;
}

.card-back:nth-child(3) {
    animation-delay: 0.4s;
}

.card-back:nth-child(4) {
    animation-delay: 0.6s;
}

.card-back:nth-child(5) {
    animation-delay: 0.8s;
}

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

.shuffle-btn {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-md);
}

.shuffle-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.shuffle-btn:active {
    transform: scale(0.98);
}

/* Cards Layout */
.cards-layout {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.card-item {
    position: relative;
    cursor: pointer;
    transition: transform 0.5s;
}

.card-item.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-inner {
    position: relative;
    width: 140px;
    height: 220px;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.card-front,
.card-back-img {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.card-front {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--color-gold);
}

.card-front::before {
    content: '🃏';
    font-size: 4rem;
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.5));
}

.card-back-img {
    transform: rotateY(180deg);
    object-fit: cover;
}

/* Tirage 3 cartes */
.layout-3 {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Tirage 5 cartes (croix) */
.layout-5 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.layout-5 .card-item:nth-child(1) {
    grid-column: 2;
    grid-row: 1;
}

.layout-5 .card-item:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
}

.layout-5 .card-item:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
}

.layout-5 .card-item:nth-child(4) {
    grid-column: 3;
    grid-row: 2;
}

.layout-5 .card-item:nth-child(5) {
    grid-column: 2;
    grid-row: 3;
}

/* Interpretation */
.interpretation {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2.5rem;
    margin-top: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.interpretation h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--color-gold);
}

.card-interpretation {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
}

.card-interpretation:last-child {
    border-bottom: none;
}

.card-interpretation h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary-light);
}

.card-interpretation .card-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-gold);
}

.card-interpretation p {
    color: var(--color-text-secondary);
    line-height: 1.8;
}

.new-reading-btn {
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 100%);
    color: var(--color-bg-dark);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: block;
    margin: 2rem auto 0;
    box-shadow: var(--shadow-md);
}

.new-reading-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

/* Zodiac Selection */
.zodiac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.zodiac-sign {
    background: var(--color-bg-card);
    border: 2px solid var(--color-border);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.zodiac-sign:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.zodiac-sign .sign-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    display: block;
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin: 0 auto 0.5rem;
}

.zodiac-sign .sign-icon-fallback {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    display: block;
}

.zodiac-sign .sign-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
}

.zodiac-sign .sign-dates {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-top: 0.5rem;
}

/* Horoscope Result */
.horoscope-result {
    animation: fadeIn 0.5s;
}

.selected-sign {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--color-bg-card);
    border-radius: 16px;
    border: 1px solid var(--color-border);
}

.selected-sign .sign-icon {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    width: 80px;
    height: 80px;
    object-fit: contain;
    display: block;
    margin: 0 auto 0.5rem;
}

.selected-sign .sign-icon-fallback {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    display: block;
}

.selected-sign .sign-name {
    font-size: 2rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.horoscope-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: var(--color-bg-card);
    border: 2px solid var(--color-border);
    color: var(--color-text);
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover,
.tab-btn.active {
    border-color: var(--color-primary);
    background: rgba(107, 70, 193, 0.1);
    color: var(--color-primary-light);
}

.horoscope-content {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2.5rem;
    min-height: 300px;
    line-height: 1.8;
    color: var(--color-text-secondary);
}

.horoscope-content h3 {
    color: var(--color-gold);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Spinner de chargement */
.horoscope-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    min-height: 300px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.horoscope-loading p {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
}

/* Texte de l'horoscope */
.horoscope-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--color-text);
}

/* Détails de l'horoscope */
.horoscope-details {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.horoscope-detail-item {
    padding: 0.75rem;
    background: rgba(107, 70, 193, 0.1);
    border-radius: 8px;
    border-left: 3px solid var(--color-primary);
}

.horoscope-detail-item strong {
    color: var(--color-gold);
    margin-right: 0.5rem;
}

/* Message d'erreur */
.horoscope-error {
    text-align: center;
    padding: 2rem;
    color: var(--color-text-secondary);
}

.horoscope-error p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.retry-btn {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
}

.retry-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.back-btn {
    background: transparent;
    border: 2px solid var(--color-border);
    color: var(--color-text);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: block;
    margin: 2rem auto 0;
}

.back-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary-light);
}

/* Sites Grid */
.sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.site-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: var(--color-text);
    display: block;
}

.site-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.site-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
    border-color: var(--color-primary);
}

.site-card:hover::before {
    opacity: 1;
}

.site-card .site-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 15px rgba(107, 70, 193, 0.5));
    position: relative;
    z-index: 1;
}

.site-card .site-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.site-card .site-desc {
    color: var(--color-text-secondary);
    position: relative;
    z-index: 1;
}

/* Footer */
.footer {
    background: var(--color-bg-card);
    border-top: 1px solid var(--color-border);
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
    color: var(--color-text-secondary);
}

.footer-small {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .home-cards {
        grid-template-columns: 1fr;
    }

    .domains-grid {
        grid-template-columns: 1fr;
    }

    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 0.75rem;
    }

    .cross-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        min-height: 400px;
    }

    .cross-card-slot {
        max-width: 100px;
        min-height: 160px;
    }

    .cross-card img {
        max-width: 100px;
    }

    .zodiac-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sites-grid {
        grid-template-columns: 1fr;
    }

    .interpretation {
        padding: 1.5rem;
    }
}

/* Loading Animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--color-primary);
    animation: spin 1s linear infinite;
}
