/*
Theme Name: Antrefemme Custom - Esoteric
Description: Thème ésotérique enchanteur avec palette verte mystique
Version: 2.0
Author: Votre nom
*/

/* Variables CSS personnalisables - Thème Ésotérique */
:root {
    /* Palette Enchantée */
    --primary-color: #4A6741;        /* Vert Sauge Principal */
    --secondary-color: #2D5A45;      /* Vert Émeraude */
    --accent-color: #D4AF37;         /* Or Ancien */
    --text-color: #2C3E50;           /* Bleu-gris foncé */
    --text-light: #7A8471;           /* Vert Mousse */
    --mystic-purple: #4A3B5C;        /* Violet Aubergine */
    --cream-mystic: #F7F5F0;         /* Crème Mystique */
    --border-color: #B8C5A6;         /* Vert doux */
    --white: #FFFFFF;
    --shadow-color: rgba(74, 103, 65, 0.15);
    
    /* Typographie Mystique */
    --font-primary: 'Georgia', 'Times New Roman', serif;
    --font-heading: 'Playfair Display', 'Georgia', serif;
    --font-mystique: 'Cinzel', 'Times New Roman', serif;
    --font-size-base: 17px;
    --line-height-base: 1.7;
    
    /* Espacements */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 48px;
    --spacing-xl: 72px;
    
    /* Layout Enchanté */
    --container-width: 1200px;
    --border-radius: 12px;
    --border-radius-soft: 20px;
    --box-shadow: 0 4px 20px var(--shadow-color);
    --box-shadow-soft: 0 2px 12px rgba(74, 103, 65, 0.08);
    --glow-effect: 0 0 20px rgba(212, 175, 55, 0.3);
    
    /* Transitions Magiques */
    --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Gradients Mystiques */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, #F4D03F 100%);
    --gradient-mystic: linear-gradient(135deg, var(--mystic-purple) 0%, var(--primary-color) 100%);
}

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

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-color);
    background: url('/wp-content/uploads/2025/08/background-mystique.jpg') center center / cover no-repeat fixed,
                linear-gradient(135deg, var(--cream-mystic) 0%, #F9F7F4 100%);
    background-attachment: fixed;
    position: relative;
    min-height: 100vh;
}

/* Texture mystique subtile en arrière-plan - désactivée pour laisser place à l'image de fond */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(74, 103, 65, 0.01) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.01) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Titres Mystiques */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
    color: var(--text-color);
    position: relative;
}

h1 { 
    font-size: 3rem; 
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8), 0 0 10px rgba(74, 103, 65, 0.3);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    font-weight: 600;
}

h2 { 
    font-size: 2.4rem;
    color: var(--primary-color);
    text-shadow: 1px 1px 3px rgba(74, 103, 65, 0.1);
}

h3 { 
    font-size: 1.8rem;
    color: var(--secondary-color);
}

h4 { 
    font-size: 1.4rem;
    color: var(--primary-color);
}

h5 { 
    font-size: 1.2rem;
    color: var(--text-color);
}

h6 { 
    font-size: 1.1rem;
    color: var(--text-light);
    font-style: italic;
}

/* Decoration mystique pour les titres h2 */
h2::before {
    content: '✦';
    color: var(--accent-color);
    margin-right: var(--spacing-sm);
    font-size: 0.8em;
    opacity: 0.8;
}

h2::after {
    content: '✦';
    color: var(--accent-color);
    margin-left: var(--spacing-sm);
    font-size: 0.8em;
    opacity: 0.8;
}

/* Liens Enchantés */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
}

a:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 8px rgba(74, 103, 65, 0.3);
}

/* Effet de surbrillance mystique pour certains liens */
.entry-content a,
.widget a {
    background: linear-gradient(135deg, transparent 0%, rgba(212, 175, 55, 0.1) 50%, transparent 100%);
    background-size: 0% 100%;
    background-repeat: no-repeat;
    background-position: left center;
    transition: background-size var(--transition-medium);
    padding: 2px 4px;
    border-radius: 4px;
}

.entry-content a:hover,
.widget a:hover {
    background-size: 100% 100%;
}

/* Paragraphes */
p {
    margin-bottom: var(--spacing-md);
}

/* Header Mystique avec menu en haut */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition-medium);
}

/* Navigation en haut */
.top-navigation {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.95) 0%, rgba(160, 82, 45, 0.95) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(139, 69, 19, 0.3);
    border-bottom: 1px solid rgba(255, 140, 0, 0.3);
}

/* Section titre en dessous */
.site-branding-section {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(247,245,240,0.95) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(74, 103, 65, 0.1);
    border-bottom: 1px solid rgba(184, 197, 166, 0.3);
    overflow: hidden;
    position: relative;
}

/* Effet de scroll sur la bannière */
.site-branding-section.scrolled {
    transform-origin: top center;
}

.site-title {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-description {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: var(--gradient-accent);
    opacity: 0.6;
}

.site-branding {
    text-align: center;
    padding: var(--spacing-lg) 0;
    position: relative;
}

.site-branding::before {
    content: '✦';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent-color);
    font-size: 1.2rem;
    opacity: 0.7;
    animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.2); }
}

.site-title {
    font-family: var(--font-mystique);
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(74, 103, 65, 0.1);
    letter-spacing: 2px;
    position: relative;
}

.site-title a {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition-medium);
    text-decoration: none;
}

.site-title a:hover {
    filter: brightness(1.2);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.site-description {
    color: var(--text-light);
    font-style: italic;
    font-size: 1.1rem;
    letter-spacing: 1px;
    position: relative;
}

.site-description::before,
.site-description::after {
    content: '◈';
    color: var(--accent-color);
    margin: 0 var(--spacing-sm);
    opacity: 0.6;
    font-size: 0.8rem;
}

/* Navigation Mystique */
.main-navigation {
    position: relative;
    overflow: hidden;
}

/* Style spécifique pour la navigation en haut */
.top-navigation {
    position: relative;
    overflow: hidden;
}

.main-navigation::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: var(--transition-slow);
}

.main-navigation:hover::before {
    left: 100%;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.main-navigation li {
    margin: 0 var(--spacing-md);
}

.main-navigation a {
    display: block;
    padding: 18px 0;
    color: var(--text-color);
    font-weight: 500;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: var(--transition-medium);
    position: relative;
}

/* Style spécifique pour les liens de la navigation en haut */
.top-navigation a {
    color: #F5F3E7; /* Couleur claire sur fond brun */
    font-weight: 600;
}

.top-navigation a:hover {
    color: #FF8C00; /* Orange accent au survol */
    text-shadow: 0 0 10px rgba(255, 140, 0, 0.5);
}

.top-navigation .current-menu-item a {
    color: #F5F3E7; /* Garde la couleur blanche/crème pour la page active */
    font-weight: 700;
    text-shadow: 0 0 8px rgba(245, 243, 231, 0.3); /* Léger effet lumineux */
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: var(--transition-medium);
}

.main-navigation a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after {
    width: 80%;
}

.main-navigation .current-menu-item a {
    color: var(--primary-color);
    font-weight: 600;
}

/* Content Mystique */
.site-main {
    padding: var(--spacing-xl) 0;
    min-height: calc(100vh - 300px);
    position: relative;
}

.site-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: var(--gradient-accent);
    opacity: 0.4;
}

.content-area {
    width: 70%;
    float: left;
    padding-right: 40px;
}

.widget-area {
    width: 30%;
    float: right;
}

/* Widgets Mystiques */
.widget {
    background: rgba(255, 255, 255, 0.6);
    border-radius: var(--border-radius-soft);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--box-shadow-soft);
    border: 1px solid rgba(184, 197, 166, 0.3);
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-accent);
    opacity: 0.7;
}

.widget:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
    border-color: var(--border-color);
}

.widget h3 {
    color: var(--primary-color);
    font-family: var(--font-mystique);
    text-align: center;
    margin-bottom: var(--spacing-md);
    font-size: 1.3rem;
    letter-spacing: 1px;
}

.widget h3::before,
.widget h3::after {
    content: '◈';
    color: var(--accent-color);
    font-size: 0.7rem;
    margin: 0 var(--spacing-sm);
    opacity: 0.6;
}

.entry {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius-soft);
    box-shadow: var(--box-shadow-soft);
    border: 1px solid rgba(184, 197, 166, 0.2);
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.entry::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-accent);
    opacity: 0.8;
}

.entry:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
    border-color: var(--border-color);
}

.entry-title {
    margin-bottom: var(--spacing-md);
    font-size: 2.2rem;
    font-family: var(--font-heading);
    line-height: 1.3;
}

.entry-title a {
    text-decoration: none;
    color: var(--text-color);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition-medium);
}

.entry-title a:hover {
    filter: brightness(1.2);
    text-shadow: 0 0 15px rgba(74, 103, 65, 0.2);
}

.entry-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
    font-style: italic;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.entry-meta::before {
    content: '✨';
    color: var(--accent-color);
    font-size: 0.8rem;
}

.entry-meta::after {
    content: '✨';
    color: var(--accent-color);
    font-size: 0.8rem;
}

.entry-content {
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: 20px;
}

/* Footer Mystique */
.site-footer {
    background: var(--gradient-mystic);
    color: var(--cream-mystic);
    text-align: center;
    padding: var(--spacing-xl) 0;
    clear: both;
    position: relative;
    overflow: hidden;
    margin-top: var(--spacing-xl);
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-accent);
}

.site-footer::after {
    content: '★ ✦ ★';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent-color);
    background: var(--mystic-purple);
    padding: 0 var(--spacing-md);
    font-size: 0.9rem;
}

.site-footer p {
    margin: 0;
    font-style: italic;
    letter-spacing: 1px;
}

/* Responsive Mystique */
@media (max-width: 768px) {
    .content-area,
    .widget-area {
        width: 100%;
        float: none;
        padding-right: 0;
    }
    
    .main-navigation ul {
        flex-direction: column;
    }
    
    .main-navigation li {
        margin: 0;
        border-bottom: 1px solid rgba(184, 197, 166, 0.3);
    }
    
    .site-title {
        font-size: 2.5rem;
    }
    
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.9rem; }
    
    .entry {
        padding: var(--spacing-md);
    }
    
    .site-branding {
        padding: var(--spacing-md) 0;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 2rem;
    }
    
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    
    .entry-title {
        font-size: 1.6rem;
    }
    
    .entry-meta {
        font-size: 0.8rem;
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-xs);
    }
}