/* Style principal pour Everos */
:root {
    /* Palette de couleurs */
    --primary-dark: #0c131b;
    --primary-medium: #1e2a3a;
    --primary-light: #344966;
    --accent-gold: #c9a96e;
    --accent-red: #8b2635;
    --accent-blue: #3282b8;
    --accent-green: #4a6c6f;
    --text-light: #f0f4f8;
    --text-medium: #b8c4d0;
    --text-dark: #2c3e50;
    
    /* Polices */
    --font-display: 'Cinzel', serif;
    --font-body: 'Spectral', serif;
    
    /* Espacements */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
}

/* Reset et base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%; /* Pour faciliter les calculs rem (1rem = 10px) */
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #f9f7f3;
    background-image: url('https://www.transparenttextures.com/patterns/parchment.png');
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-dark);
}

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

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilitaires */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 3.2rem;
    text-align: center;
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 8rem;
    height: 3px;
    background-color: var(--accent-gold);
}

.btn {
    display: inline-block;
    padding: 1rem 2.4rem;
    background-color: var(--primary-light);
    color: var(--text-light);
    border: 1px solid transparent;
    border-radius: 3px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--primary-dark);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-gold);
    border-color: var(--accent-gold);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid var(--text-light);
}

.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-dark);
}

.btn-small {
    padding: 0.7rem 1.5rem;
    font-size: 1.3rem;
}

/* Header et Navigation */
.main-header {
    position: relative;
}

.hero-banner {
    height: 100vh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    background: url('https://images.unsplash.com/photo-1536152470836-b943b246224c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-banner .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-light);
    padding: 0 var(--spacing-md);
    max-width: 800px;
}

.main-title {
    font-size: 8rem;
    font-weight: 900;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.2em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    color: var(--text-light);
}

.tagline {
    font-size: 2.4rem;
    font-weight: 300;
    margin-bottom: var(--spacing-md);
}

.main-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 5%;
}

.logo-container {
    z-index: 101;
}

.logo {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text-light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.menu-toggle {
    display: none;
    font-size: 2.4rem;
    color: var(--text-light);
    cursor: pointer;
    z-index: 101;
}

.nav-menu {
    display: flex;
}

.nav-menu li {
    position: relative;
    margin-left: var(--spacing-md);
}

.nav-link {
    color: var(--text-light);
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: var(--spacing-xs) 0;
    position: relative;
}

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

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

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-medium);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: var(--spacing-xs) 0;
    border-radius: 3px;
    z-index: 100;
}

.nav-menu li:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    top: calc(100% + 10px);
}

.dropdown-content a {
    color: var(--text-medium);
    padding: var(--spacing-xs) var(--spacing-sm);
    display: block;
    text-align: center;
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-gold);
}

/* Carousel à la Une */
.featured-carousel {
    padding: var(--spacing-lg) 0;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    max-width: 1200px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    flex: 0 0 100%;
    max-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
}

.carousel-slide.active {
    opacity: 1;
    position: relative;
}

.slide-content {
    position: relative;
    height: 550px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background-size: cover;
    background-position: center;
    background-color: var(--primary-medium); /* Couleur de fallback */
}

.slide-content img {
    display: none; /* On n'utilise plus les balises img */
}

.slide-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-md);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    color: var(--text-light);
}

.slide-info h3 {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-xs);
}

.slide-info p {
    margin-bottom: var(--spacing-sm);
    font-size: 1.8rem;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: var(--spacing-sm);
}

.carousel-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary-light);
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.carousel-btn:hover {
    color: var(--accent-gold);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    margin: 0 var(--spacing-sm);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--text-medium);
    margin: 0 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: var(--primary-light);
}

/* Panthéon Divin */
.pantheon-preview {
    padding: var(--spacing-lg) 0;
    background-color: var(--primary-medium);
    color: var(--text-light);
}

.pantheon-preview .section-title {
    color: var(--text-light);
}

.pantheon-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: var(--spacing-md) 0;
}

.deity-icon {
    z-index: 1;
    position: relative;
    width: 120px;
    height: 120px;
    margin: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.deity-icon:hover {
    transform: scale(1.1) !important; /* L'important garantit que le hover override l'animation JavaScript */
}

.icon-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 3px solid var(--accent-gold);
}

.obsidienne .icon-image {
    background-image: url('https://images.unsplash.com/photo-1518709268805-4e9042af9f23?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=80');
    background-color: #c62f35; /* Couleur de secours Obsidienne - rouge volcanique */
    background-size: cover;
    background-position: center;
}

.mantha .icon-image {
    background-image: url('https://images.unsplash.com/photo-1448375240586-882707db888b?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=80');
    background-color: #2d5a3d; /* Couleur de secours Mantha - vert forêt */
    background-size: cover;
    background-position: center;
}

.labir .icon-image {
    background-image: url('https://images.unsplash.com/photo-1473580044384-7ba9967e16a0?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=80');
    background-color: #2e5984; /* Couleur de secours Labir - bleu océan */
    background-size: cover;
    background-position: center;
}

.hisangarde .icon-image {
    background-image: url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=80');
    background-color: #7a7a7a; /* Couleur de secours Hisangarde - gris montagne */
    background-size: cover;
    background-position: center;
}

.eromnia .icon-image {
    background-image: url('https://images.unsplash.com/photo-1518837695005-2083093ee35b?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=80');
    background-color: #bf7c2e; /* Couleur de secours Eromnia - or désert */
    background-size: cover;
    background-position: center;
}

.light .icon-image {
    background-image: url('https://images.unsplash.com/photo-1513002749550-c59d786b8e6c?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=80');
    background-color: #bfbf7c; /* Couleur de secours Light - jaune lumière */
    background-size: cover;
    background-position: center;
}

.elzeryn .icon-image {
    background-image: url('https://images.unsplash.com/photo-1486078695445-0497c2dc4236?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=80');
    background-color: #7c2ebf; /* Couleur de secours Elzeryn - violet arcane */
    background-size: cover;
    background-position: center;
}

.deity-tooltip {
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    background-color: var(--primary-dark);
    border: 1px solid var(--accent-gold);
    padding: var(--spacing-sm);
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
    text-align: center;
}

.deity-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: var(--accent-gold) transparent transparent transparent;
}

.deity-icon:hover .deity-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: 140%;
    pointer-events: none; /* S'assure que le tooltip n'interfère pas avec les événements de souris */
    z-index: 100; /* S'assure que le tooltip est bien visible au-dessus des autres éléments */
}

.deity-tooltip h3 {
    color: var(--accent-gold);
    margin-bottom: var(--spacing-xs);
    font-size: 1.8rem;
}

.deity-tooltip p {
    font-size: 1.4rem;
    color: var(--text-medium);
}

/* Mises à jour récentes */
.recent-updates {
    padding: var(--spacing-lg) 0;
}

.updates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-md);
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 var(--spacing-sm);
}

.update-card {
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.update-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.update-image {
    height: 180px;
    overflow: hidden;
}

.update-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.update-card:hover .update-image img {
    transform: scale(1.05);
}

.update-content {
    padding: var(--spacing-sm);
}

.update-date {
    display: block;
    font-size: 1.2rem;
    color: var(--text-medium);
    margin-bottom: var(--spacing-xs);
}

.update-content h3 {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-xs);
}

.update-content p {
    margin-bottom: var(--spacing-sm);
    font-size: 1.4rem;
}

/* Call to Action */
.call-to-action {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('https://images.unsplash.com/photo-1542273917363-3b1817f69a2d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    padding: var(--spacing-xl) 0;
    text-align: center;
    color: var(--text-light);
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.cta-content h2 {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-light);
}

.cta-content p {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
}

/* Footer */
.main-footer {
    background-color: var(--primary-dark);
    color: var(--text-medium);
    padding: var(--spacing-lg) 0 var(--spacing-sm);
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: var(--spacing-md);
}

.footer-section h3 {
    color: var(--text-light);
    font-size: 1.8rem;
    margin-bottom: var(--spacing-sm);
    position: relative;
    padding-bottom: var(--spacing-xs);
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-gold);
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: var(--text-medium);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.social-icons {
    display: flex;
    gap: var(--spacing-xs);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--accent-gold);
    color: var(--primary-dark);
}

.footer-section p {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    margin-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.4rem;
}

/* Media Queries */
@media screen and (max-width: 1024px) {
    html {
        font-size: 58%;
    }
    
    .main-title {
        font-size: 6rem;
    }
    
    .deity-icon {
        width: 100px;
        height: 100px;
        margin: 15px;
    }
}

@media screen and (max-width: 768px) {
    html {
        font-size: 55%;
    }
    
    .main-title {
        font-size: 5rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--primary-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.5s ease;
        z-index: 100;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin: var(--spacing-sm) 0;
    }
    
    .dropdown-content {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        box-shadow: none;
        display: none;
    }
    
    .nav-menu li:hover .dropdown-content {
        display: block;
    }
    
    .slide-content {
        height: 450px;
    }
    
    .slide-info h3 {
        font-size: 2.4rem;
    }
    
    .slide-info p {
        font-size: 1.6rem;
    }
    
    .pantheon-circle {
        max-width: 600px;
    }
    
    .deity-icon {
        width: 80px;
        height: 80px;
        margin: 10px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
    }
    
    .footer-container {
        flex-direction: column;
    }
}

@media screen and (max-width: 480px) {
    html {
        font-size: 50%;
    }

/* Info Card Styles (pour les shortcodes) */
.info-card {
    background: white;
    border-radius: 8px;
    padding: var(--spacing-lg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.info-card-icon {
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: var(--spacing-sm);
}

.info-card-title {
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
}

.info-card-content {
    margin-bottom: var(--spacing-md);
}

.info-card-link {
    color: var(--primary-light);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-card-link:hover {
    color: var(--accent-gold);
}
    
    .main-title {
        font-size: 4rem;
    }
    
    .slide-content {
        height: 350px;
    }
    
    .updates-grid {
        grid-template-columns: 1fr;
    }
    
    .deity-icon {
        width: 70px;
        height: 70px;
        margin: 8px;
    }
}
