/* =========================================
   STYLE GLOBAL DU SITE DE BEN BASH BIR
   ========================================= */

:root {
    --bg-main: #0B111A;
    --bg-card: rgba(19, 27, 38, 0.5); 
    --text-primary: #F3F4F6;
    --text-secondary: #9CA3AF;
    --accent-gold: #D4AF37; /* L'OR MAT */
    --border-color: #1F2937;
}

body { 
    margin: 0; 
    background-color: var(--bg-main); 
    color: var(--text-primary); 
    font-family: 'Inter', sans-serif; 
    line-height: 1.8; 
    -webkit-font-smoothing: antialiased; 
    padding-top: 170px; 
}

/* --- LE FILIGRANE ANKH EN OR --- */
body::after {
    content: ""; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.06; pointer-events: none; 
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23D4AF37'%3E%3Cpath d='M12,2C9.24,2 7,4.24 7,7C7,9.76 9.24,12 12,12C14.76,12 17,9.76 17,7C17,4.24 14.76,2 12,2M12,4C13.66,4 15,5.34 15,7C15,8.66 13.66,10 12,10C10.34,10 9,8.66 9,7C9,5.34 10.34,4 12,4M11,14V22H13V14H17V12H7V14H11Z' /%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: center center; background-size: 90vh; transform: rotate(-5deg); 
}

.container { max-width: 900px; margin: 0 auto; padding: 20px 20px 100px 20px; position: relative; z-index: 2; }

/* --- TOUS LES GRANDS TITRES EN OR --- */
h2 { color: var(--accent-gold) !important; text-shadow: 0 2px 6px rgba(0,0,0,0.8); }

/* --- EN-TÊTE / NAVIGATION FIXE --- */
.main-header { 
    position: fixed; top: 0; left: 0; width: 100%; display: flex; justify-content: space-between; align-items: center; 
    padding: 15px 40px; background-color: rgba(11, 17, 26, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-color); z-index: 1000; box-sizing: border-box; 
}
.brand-section { display: flex; align-items: center; gap: 18px; }
.logo-img { width: 75px; height: 75px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent-gold); box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15); }
.brand-text h1 { margin: 0; font-size: 1.2rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.brand-text p { margin: 2px 0 0 0; color: var(--text-secondary); font-size: 0.9rem; }

.header-nav { display: flex; align-items: center; }
.main-nav { display: flex; align-items: center; flex-wrap: wrap; } 
.main-nav a { color: var(--text-secondary); text-decoration: none; margin-left: 25px; font-size: 0.9rem; font-weight: 500; transition: color 0.2s; position: relative; display: flex; align-items: center; gap: 6px; }
.main-nav a:hover, .main-nav a.active { color: var(--accent-gold); }
.main-nav a.active::after { content: ''; position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; background-color: var(--accent-gold); border-radius: 50%; }
.main-nav i { font-size: 0.95rem; }

.social-nav { display: flex; gap: 8px; margin-left: 30px; padding-left: 30px; border-left: 1px solid var(--border-color); }
.social-nav a { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-gold); text-decoration: none; font-size: 0.8rem; font-weight: 500; border: 1px solid var(--accent-gold); padding: 5px 12px; border-radius: 20px; transition: all 0.2s ease; }
.social-nav a:hover { background-color: var(--accent-gold); color: #000; }

.top-actions { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; margin-top: 10px; max-width: 800px; margin-left: auto; margin-right: auto; }
.back-link { display: inline-flex; align-items: center; color: var(--text-secondary); text-decoration: none; font-size: 0.95rem; transition: color 0.2s; }
.back-link:hover { color: var(--accent-gold); }
.translate-btn { background-color: transparent; color: var(--accent-gold); border: 1px solid var(--accent-gold); padding: 8px 16px; border-radius: 20px; font-family: 'Inter', sans-serif; font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: all 0.2s ease; }
.translate-btn:hover { background-color: var(--accent-gold); color: #000; }

/* --- BOUTON D'ACHAT DES LIVRES (FORCÉ EN OR) --- */
.buy-btn { 
    display: inline-block !important; background-color: var(--accent-gold) !important; color: #000 !important; 
    padding: 15px 30px !important; border-radius: 30px !important; text-decoration: none !important; 
    font-weight: 600 !important; font-size: 1.05rem !important; transition: all 0.3s ease !important; 
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3) !important; 
}
.buy-btn:hover { background-color: var(--text-primary) !important; transform: translateY(-3px) !important; box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2) !important; }

/* --- DESIGN DES LIVRES & ARTICLES --- */
.post-container { background-color: rgba(19, 27, 38, 0.5); backdrop-filter: blur(5px); padding: 50px; border-radius: 16px; border: 1px solid var(--border-color); max-width: 800px; margin: 0 auto; position: relative; z-index: 2; }
.post-header { margin-bottom: 40px; text-align: center; border-bottom: 1px solid var(--border-color); padding-bottom: 30px; }
.post-date { color: var(--accent-gold); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 15px; }
.post-body { color: var(--text-secondary); font-size: 1.05rem; text-align: justify; }
.post-body p { margin-bottom: 20px; }
.post-body h3, .book-content h3 { color: var(--text-primary); font-size: 1.4rem; margin-top: 50px; margin-bottom: 20px; border-left: 4px solid var(--accent-gold); padding-left: 15px; }
.highlight-question { background-color: rgba(212, 175, 55, 0.05); border: 1px solid var(--border-color); padding: 30px; border-radius: 8px; color: var(--text-primary); text-align: center; margin-top: 40px; font-size: 1.15rem; line-height: 1.6; }
.signature { text-align: right; font-weight: 600; color: var(--accent-gold); margin-top: 40px; font-size: 0.95rem; letter-spacing: 1px; }

.book-hero { display: grid; grid-template-columns: 1fr 2fr; gap: 50px; align-items: flex-start; margin-bottom: 80px; background-color: rgba(0, 0, 0, 0.4); backdrop-filter: blur(3px); padding: 40px; border-radius: 16px; border: 1px solid var(--border-color); }
.book-cover { background-color: rgba(8, 12, 19, 0.7); padding: 20px; border-radius: 8px; display: flex; justify-content: center; border: 1px solid var(--border-color); }
.book-cover img { width: 100%; max-width: 220px; border-radius: 4px; box-shadow: 0 15px 35px rgba(0,0,0,0.6); }
.book-subtitle { color: var(--accent-gold); font-size: 1.1rem; margin-bottom: 25px; font-weight: 500; font-style: italic; }
.book-meta { display: flex; gap: 20px; margin-bottom: 30px; color: var(--text-primary); font-size: 0.95rem; border-bottom: 1px solid var(--border-color); padding-bottom: 20px; }
.book-intro { color: var(--text-primary); margin-bottom: 30px; font-size: 1.05rem; }
.book-content p { color: var(--text-primary); margin-bottom: 20px; font-size: 1.05rem; text-align: justify; }

.themes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.theme-box { background-color: rgba(0, 0, 0, 0.4); backdrop-filter: blur(3px); padding: 25px; border-radius: 12px; border: 1px solid var(--border-color); transition: transform 0.3s ease, border-color 0.3s ease; }
.theme-box:hover { transform: translateY(-3px); border-color: #374151; }
.theme-box h4 { margin: 0 0 10px 0; color: var(--accent-gold); font-size: 1.1rem; }
.theme-box p { margin: 0; font-size: 0.95rem; text-align: left; color: var(--text-primary); }

.bottom-actions { display: flex; justify-content: space-between; align-items: center; max-width: 800px; margin: 60px auto 0 auto; padding-top: 30px; border-top: 1px solid var(--border-color); position: relative; z-index: 2; }
.bottom-link { display: inline-flex; align-items: center; color: var(--text-secondary); text-decoration: none; font-size: 0.95rem; transition: color 0.2s; }
.bottom-link:hover { color: var(--accent-gold); }
/* =========================================
   NOUVEAUTÉS : ANKH & CONTACT
   ========================================= */

/* --- SÉPARATEUR ANKH STYLISÉ --- */
.ankh-separator {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--accent-gold);
    margin: 80px auto;
    max-width: 600px;
    opacity: 0.8;
}
.ankh-separator::before,
.ankh-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--accent-gold);
    opacity: 0.3;
}
.ankh-separator::before { margin-right: 20px; }
.ankh-separator::after { margin-left: 20px; }
.ankh-separator i { font-size: 1.8rem; text-shadow: 0 0 10px rgba(212, 175, 55, 0.4); }

/* --- ESPACE D'ÉCHANGE (CONTACT) --- */
.contact-section {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(145deg, rgba(19, 27, 38, 0.8), rgba(0, 0, 0, 0.4));
    border-radius: 16px;
    border: 1px solid var(--accent-gold);
    margin-bottom: 60px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.contact-section h2 { font-size: 2.2rem; color: var(--accent-gold) !important; margin-bottom: 15px; }
.contact-section p { font-size: 1.15rem; color: var(--text-primary); max-width: 600px; margin: 0 auto 30px auto; line-height: 1.6; }
/* --- MOBILE RESPONSIVE OPTIMISÉ --- */
@media (max-width: 1050px) { 
    .main-header { flex-direction: column; align-items: flex-start; gap: 20px; position: static; padding: 20px; } 
    body { padding-top: 0; } 
    .header-nav { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; border-top: 1px solid var(--border-color); padding-top: 20px; } 
    .main-nav { display: flex; flex-wrap: wrap; gap: 15px; margin-left: 0; } 
    .main-nav a { margin-left: 0; font-size: 1rem; }
    .social-nav { margin-left: 0; padding-left: 0; border-left: none; flex-wrap: wrap; } 
    .translate-btn { margin-left: 0; margin-top: 10px; width: 100%; text-align: center; } 
}
/* --- LECTEUR AUDIO ET POÉSIE --- */
.custom-audio-player { display: flex; align-items: center; gap: 15px; background-color: rgba(0, 0, 0, 0.4); backdrop-filter: blur(3px); border: 1px solid var(--accent-gold); padding: 15px 20px; border-radius: 12px; margin-bottom: 40px; box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
.play-btn { background-color: var(--accent-gold); color: #000; border: none; width: 45px; height: 45px; border-radius: 50%; cursor: pointer; display: flex; justify-content: center; align-items: center; font-size: 1.1rem; transition: transform 0.2s ease, background-color 0.2s; }
.play-btn:hover { transform: scale(1.05); background-color: var(--text-primary); color: #000; }
.audio-info { flex-grow: 1; }
.audio-title { color: var(--text-primary); font-size: 0.95rem; font-weight: 600; display: block; margin-bottom: 8px; }
.audio-progress-bg { width: 100%; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; cursor: pointer; }
.audio-progress-bar { width: 0%; height: 100%; background: var(--accent-gold); transition: width 0.1s linear; pointer-events: none; }
.poeme-texte { font-size: 1.15rem; line-height: 1.8; text-align: left; padding-left: 20px; border-left: 2px solid var(--accent-gold); font-style: italic; color: var(--text-primary); }
@media (max-width: 768px) { 
    .post-container { padding: 30px 20px; } 
    .post-header h2 { font-size: 1.6rem; padding-top: 5px; } 
    .book-hero { grid-template-columns: 1fr; gap: 30px; padding: 25px; } 
    .themes-grid { grid-template-columns: 1fr; }
    .top-actions, .bottom-actions { flex-direction: column; align-items: flex-start; gap: 20px; } 
}
/* ==========================================
   BARRE DE PARTAGE UNIVERSELLE
   ========================================== */
.share-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 50px 0;
    padding: 25px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.share-text {
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-style: italic;
}

.share-buttons {
    display: flex;
    gap: 15px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--accent-gold);
    font-size: 1.2rem;
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.share-btn:hover {
    transform: translateY(-3px);
    background-color: var(--accent-gold);
    color: #000;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}