/* Styles principaux pour le site IRMA */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;700&family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --primary: #6842ef;
    --secondary: #ff8c00;
    --dark: #2d2d5f;
    --light: #f9f7ff;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    background-color: var(--light);
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
}

/* Boutons */
.btn-primary {
    background-color: var(--primary);
    color: white;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    background-color: #5535d4;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-secondary:hover {
    background-color: #e67e00;
    transform: translateY(-2px);
}

/* Header et navigation */
.header-wrapper {
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-link {
    font-weight: 500;
    position: relative;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
}

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

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Sidebar du tableau de bord */
.sidebar {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.sidebar-link i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

.sidebar-link:hover, .sidebar-link.active {
    background-color: rgba(104, 66, 239, 0.1);
    color: var(--primary);
}

/* Sections principales */
.about-section {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Cartes et éléments réutilisables */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Badge de crédits */
.credit-badge {
    background-color: #f8f4ff;
    color: var(--primary);
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.credit-badge:hover {
    background-color: rgba(104, 66, 239, 0.15);
    transform: translateY(-2px);
}

/* Formulaires */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(104, 66, 239, 0.2);
}

/* Toast notifications */
#toast-container {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 9999;
}

/* Style pour les sections héros avec ciel étoilé */
.py-16.bg-gradient-to-b.from-purple-800.to-purple-600.text-white {
    position: relative;
    overflow: hidden;
}

.py-16.bg-gradient-to-b.from-purple-800.to-purple-600.text-white:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    radial-gradient(circle at 40% 70%, rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    radial-gradient(circle at 60% 20%, rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    radial-gradient(circle at 80% 40%, rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    radial-gradient(circle at 10% 50%, rgba(255, 255, 255, 0.4) 1px, transparent 1px),
    radial-gradient(circle at 30% 90%, rgba(255, 255, 255, 0.4) 1px, transparent 1px),
    radial-gradient(circle at 70% 10%, rgba(255, 255, 255, 0.4) 1px, transparent 1px),
    radial-gradient(circle at 90% 60%, rgba(255, 255, 255, 0.4) 1px, transparent 1px),
    radial-gradient(circle at 15% 75%, rgba(255, 255, 255, 0.3) 1px, transparent 1px),
    radial-gradient(circle at 45% 5%, rgba(255, 255, 255, 0.3) 1px, transparent 1px),
    radial-gradient(circle at 75% 85%, rgba(255, 255, 255, 0.3) 1px, transparent 1px),
    radial-gradient(circle at 95% 25%, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
    background-size: 250px 250px;
    opacity: 0.3;
    z-index: 1;
}

.py-16.bg-gradient-to-b.from-purple-800.to-purple-600.text-white > .container {
    position: relative;
    z-index: 2;
}

/* Style pour le trait-bar (utilisé dans la page thème astral) */
.trait-bar {
    width: 100%;
    height: 10px;
    background-color: #e2e8f0;
    border-radius: 5px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.trait-bar-fill {
    height: 100%;
    background-color: var(--primary);
    border-radius: 5px;
}

/* Style pour prediction-card (utilisé dans la page thème astral) */
.prediction-card {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    background-color: #f8f4ff;
}

.prediction-card.positive {
    border-left: 4px solid #48bb78;
}

.prediction-card.neutral {
    border-left: 4px solid #4299e1;
}

.prediction-card.challenge {
    border-left: 4px solid #ed8936;
}

/* === STYLES POUR LE BLOG ET LES ARTICLES === */

/* Cartes d'articles */
.blog-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.blog-image {
    border-radius: 12px 12px 0 0;
    height: 200px;
    object-fit: cover;
    width: 100%;
}

/* Contenu des articles */
.article-content {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.article-image {
    border-radius: 12px 12px 0 0;
    height: 400px;
    object-fit: cover;
    width: 100%;
}

/* Badges de catégories */
.category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 0.5rem;
}

.category-astrology {
    background-color: rgba(104, 66, 239, 0.1);
    color: var(--primary);
}

.category-horoscope {
    background-color: rgba(255, 140, 0, 0.1);
    color: var(--secondary);
}

.category-spirituality {
    background-color: rgba(72, 187, 120, 0.1);
    color: #48bb78;
}

.category-tarot {
    background-color: rgba(237, 100, 166, 0.1);
    color: #ed64a6;
}

/* Sidebar */
.sidebar-widget {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    padding: 1.5rem;
}

.sidebar-widget h4 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(104, 66, 239, 0.1);
}

.widget-post {
    display: flex;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.widget-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.widget-post-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 1rem;
}

/* Tags */
.tag-link {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: rgba(104, 66, 239, 0.1);
    color: var(--dark);
    border-radius: 20px;
    font-size: 0.875rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background-color: var(--primary);
    color: white;
}

/* Pagination */
.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin: 0 0.25rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-link:hover {
    background-color: rgba(104, 66, 239, 0.1);
    color: var(--primary);
}

.pagination-link.active {
    background-color: var(--primary);
    color: white;
}

/* Auteur */
.author-box {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
}

/* Boîtes de mise en évidence */
.highlight-box {
    background-color: #f8f4ff;
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

/* Tableaux d'articles */
.article-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.article-table th {
    background-color: var(--primary);
    color: white;
    padding: 0.75rem;
    text-align: left;
}

.article-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.article-table tr:nth-child(even) {
    background-color: #f8f4ff;
}

/* Articles similaires */
.related-post {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.related-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.related-post-image {
    border-radius: 12px 12px 0 0;
    height: 180px;
    object-fit: cover;
    width: 100%;
}

/* Icônes de signes */
.sign-icon {
    font-size: 2rem;
    margin-right: 1rem;
    display: inline-block;
    vertical-align: middle;
}

/* =============================================================================
   CORRECTIONS CSS POUR L'INTERFACE IIRMAA
   ============================================================================= */

/* 1. CORRECTION DU Z-INDEX POUR LE MESSAGE BETA ET LA NAVIGATION
   ========================================================================== */

/* Message d'information beta - Z-index élevé pour passer au-dessus de tout */
.bg-yellow-100.border-b.border-yellow-200 {
    z-index: 9999 !important; /* Priorité absolue */
    position: fixed !important;
    top: 0 !important;
    width: 100% !important;
}

/* Header sticky - Z-index inférieur au message beta */
.header-wrapper.sticky {
    z-index: 9998 !important; /* Juste en-dessous du message beta */
    left: 0;
    right: 0;
    top: 32px !important; /* Décalage pour tenir compte du message beta */
}

/* Ajustement du body pour compenser les éléments fixés */
body {
    padding-top: 72px !important; /* 32px (message) + 40px (header approximatif) */
}

/* Responsive - Ajustements spécifiques */
@media (max-width: 768px) {
    body {
        padding-top: 80px !important; /* Plus d'espace sur mobile */
    }

    .header-wrapper.sticky {
        position: fixed !important;
        top: 77px !important; /* Ajustement pour mobile */
    }

    .bg-video {
        display: none;
    }
}

/* 2. CORRECTION DE L'IMAGE ZODIAC WHEEL EN RESPONSIVE
   ========================================================================== */

/* Container principal du zodiaque */
.zodiac-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 600px;
    margin: 2rem auto;
}

/* Image de la roue du zodiaque */
.zodiac-wheel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    border-radius: 50%;
    animation: rotate 60s linear infinite;
    background: radial-gradient(ellipse at center, #1a1045 0%, #0d0526 100%);
    box-shadow: 0 0 30px rgba(104,66,239,0.4);
    overflow: visible;
}

/* Responsive - Réorganisation complète pour mobile */
@media (max-width: 768px) {
    .zodiac-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        height: auto;
    }

    /* Image centrée et dimensionnée correctement */
    .zodiac-wheel {
        position: relative !important;
        transform: none;
        left: 140px !important;
        top: 120px !important;
        width: 280px !important;
        height: 280px !important;
        margin: 0;
        flex-shrink: 0;
    }

    /* Container pour les signes en grille */
    .zodiac-signs-mobile {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        width: 100%;
        max-width: 400px;
    }

    /* Signes repositionnés pour mobile */
    .zodiac-item {
        position: static !important;
        transform: none !important;
        margin: 0 !important;
        padding: 0.75rem !important;
        border-radius: 0.5rem;
        background: radial-gradient(ellipse at center, #1a1045 0%, #0d0526 100%);
        border: 2px solid transparent;
        transition: all 0.3s ease;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        flex: none;
    }
}

/* 3. CORRECTION DU HOVER POUR LES ZODIAC ITEMS
   ========================================================================== */

/* État normal des signes du zodiaque */
.zodiac-item {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: radial-gradient(ellipse at center, #1a1045 0%, #0d0526 100%);
    border-radius: 0.5rem;
    color: white;
    text-decoration: none;
    z-index: 4;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

/* Hover - Fond orange au lieu du contour */
.zodiac-item:hover {
    transform: scale(1.2);
    background: linear-gradient(135deg, #ff8c00 0%, #ffaa33 100%) !important;
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.8);
    border-color: transparent !important; /* Suppression du contour orange */
}

/* Mobile - Hover plus subtil */
@media (max-width: 768px) {
    .zodiac-item:hover {
        transform: scale(1.05) !important;
        background: linear-gradient(135deg, #ff8c00 0%, #ffaa33 100%) !important;
        box-shadow: 0 4px 12px rgba(255, 140, 0, 0.4);
    }
}

/* 4. CORRECTION DE LA NEWSLETTER SECTION
   ========================================================================== */

/* Container principal de la newsletter */
.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: row; /* Force la disposition horizontale */
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Champ email */
.newsletter-form input[type="email"] {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 0 !important; /* Suppression des coins arrondis */
    background-color: white;
    color: #2d3748;
    font-size: 1rem;
    outline: none;
    margin: 0;
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px #6842ef;
}

/* Bouton d'inscription */
.newsletter-form button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 0 !important; /* Suppression des coins arrondis */
    background-color: #ff8c00;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    margin: 0;
}

.newsletter-form button:hover {
    background-color: #e67e00;
    transform: translateY(-1px);
}

/* Responsive - Passage en colonne pour très petits écrans */
@media (max-width: 480px) {
    .newsletter-form {
        flex-direction: column;
        border-radius: 0.5rem;
    }

    .newsletter-form input[type="email"] {
        border-radius: 0.5rem 0.5rem 0 0 !important;
        border-bottom: 1px solid #e2e8f0;
    }

    .newsletter-form button {
        border-radius: 0 0 0.5rem 0.5rem !important;
    }
}

/* Responsive - Tablettes */
@media (min-width: 481px) and (max-width: 768px) {
    .newsletter-form {
        max-width: 400px;
    }

    .newsletter-form input[type="email"] {
        padding: 0.875rem 1.25rem;
    }

    .newsletter-form button {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* 5. AMÉLIORATIONS SUPPLÉMENTAIRES POUR L'ACCESSIBILITÉ
   ========================================================================== */

/* Focus visible pour l'accessibilité */
.zodiac-item:focus {
    outline: 3px solid #ff8c00;
    outline-offset: 2px;
}

/* Amélioration du contraste pour les textes */
.zodiac-item .sign-label small {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Animation plus fluide pour la roue */
@media (prefers-reduced-motion: reduce) {
    .zodiac-wheel {
        animation: none;
    }
}

/* 6. CORRECTIONS POUR LA COHÉRENCE GÉNÉRALE
   ========================================================================== */

/* Espacement cohérent pour les sections */
section.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

@media (max-width: 768px) {
    section.py-16 {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
}

/* Amélioration de la lisibilité des textes sur fond coloré */
.bg-purple-800 {
    background: linear-gradient(135deg, #6842ef 0%, #8b5cf6 100%);
}

/* Correction de l'alignement des boutons CTA */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 7. OPTIMISATIONS PERFORMANCE
   ========================================================================== */

/* Optimisation des transformations CSS */
.zodiac-item {
    will-change: transform, background-color;
}

/* Réduction des repaints pour les animations */
.zodiac-wheel {
    will-change: transform;
}

/* Amélioration du rendu des fonts */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}