/*
Theme Name: Guide Hijra
Theme URI: https://guide-hijra.com
Author: Guide Hijra
Description: Thème personnalisé reprenant l'identité visuelle du site statique Guide Hijra
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: guide-hijra
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --primary: #1a6b3c;
    --secondary: #c9a84c;
    --bg-white: #ffffff;
    --off-white: #faf9f6;
    --text-main: #171717;
    --text-light: #555555;
    --dark-accent: #1a1a2e;
    --border-color: #e5e7eb;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--text-main);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* =====================
   NAVIGATION
   ===================== */
#site-header {
    background: var(--off-white);
    border-bottom: 1px solid rgba(201,168,76,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.site-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.site-logo .logo-accent { color: var(--secondary); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--dark-accent);
    padding: 0.4rem 0;
}
.nav-links a:hover, .nav-links a.current { color: var(--primary); }
.nav-links a.current { border-bottom: 2px solid var(--primary); }

.nav-cta {
    background: var(--primary) !important;
    color: #fff !important;
    padding: 0.6rem 1.4rem !important;
    border-radius: 3px;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em;
    border: none;
    transition: background 0.3s !important;
}
.nav-cta:hover { background: #14522e !important; }

/* Mobile nav */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

@media (max-width: 1024px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--off-white);
        padding: 2rem;
        gap: 1.2rem;
        border-top: 1px solid var(--border-color);
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        z-index: 999;
    }
    .nav-links.open a { font-size: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--border-color); }
}

/* =====================
   LAYOUT
   ===================== */
.site-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* =====================
   HERO ARTICLE UNIQUE
   ===================== */
.single-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #0d4a27 100%);
    padding: 5rem 2rem 4rem;
    color: white;
    position: relative;
    overflow: hidden;
}
.single-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l15 30-15 30L15 30z' fill='%23ffffff' fill-opacity='0.03'/%3E%3C/svg%3E");
}
.single-hero .site-container { position: relative; z-index: 1; }
.single-hero .post-category {
    display: inline-block;
    background: rgba(201,168,76,0.25);
    color: var(--secondary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    margin-bottom: 1.2rem;
}
.single-hero h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: white;
    margin-bottom: 1.2rem;
    max-width: 800px;
}
.single-hero .post-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
}
.single-hero .post-meta span { display: flex; align-items: center; gap: 0.4rem; }

/* =====================
   FEATURED IMAGE
   ===================== */
.featured-image-wrap {
    max-width: 900px;
    margin: -2rem auto 0;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}
.featured-image-wrap img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

/* =====================
   ARTICLE CONTENT
   ===================== */
.article-wrap {
    max-width: 780px;
    margin: 3rem auto 5rem;
    padding: 0 2rem;
}

.entry-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #2d2d2d;
}
.entry-content h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin: 2.5rem 0 1rem;
    padding-left: 1rem;
    border-left: 4px solid var(--secondary);
}
.entry-content h3 {
    font-size: 1.35rem;
    color: var(--dark-accent);
    margin: 2rem 0 0.8rem;
}
.entry-content p { margin-bottom: 1.5rem; }
.entry-content ul, .entry-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
    list-style: disc;
}
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 0.5rem; }
.entry-content blockquote {
    border-left: 4px solid var(--secondary);
    background: var(--off-white);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--dark-accent);
}
.entry-content img {
    border-radius: 8px;
    margin: 2rem auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.entry-content a { color: var(--primary); border-bottom: 1px solid rgba(26,107,60,0.3); }
.entry-content a:hover { color: var(--secondary); border-bottom-color: var(--secondary); }
.entry-content strong { font-weight: 700; color: var(--dark-accent); }

/* =====================
   BLOG ARCHIVE (liste articles)
   ===================== */
.archive-hero {
    background: var(--primary);
    padding: 4rem 2rem;
    text-align: center;
    color: white;
}
.archive-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: white;
    margin-bottom: 0.75rem;
}
.archive-hero p { color: rgba(255,255,255,0.8); font-size: 1.1rem; }

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1280px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.post-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.1);
    border-color: rgba(201,168,76,0.3);
}
.post-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.post-card-img-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(26,107,60,0.1), rgba(201,168,76,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}
.post-card-body { padding: 1.5rem; }
.post-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}
.post-card-cat {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--secondary);
}
.post-card-date { font-size: 0.8rem; color: #a3a3a3; }
.post-card-title {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--dark-accent);
    transition: var(--transition);
}
.post-card:hover .post-card-title { color: var(--primary); }
.post-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-card-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.post-card-link:hover { color: var(--secondary); gap: 0.7rem; }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    margin-bottom: 3rem;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    color: var(--dark-accent);
    transition: var(--transition);
}
.pagination a:hover, .pagination .current {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* =====================
   FOOTER
   ===================== */
#site-footer {
    background: var(--dark-accent);
    color: rgba(255,255,255,0.75);
    padding: 4rem 2rem 2rem;
}
.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .site-logo { margin-bottom: 1rem; }
.footer-brand .site-logo { color: white; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 320px; }
.footer-col h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary);
    margin-bottom: 1.2rem;
}
.footer-col ul li { margin-bottom: 0.75rem; }
.footer-col ul a { font-size: 0.9rem; color: rgba(255,255,255,0.65); }
.footer-col ul a:hover { color: white; padding-left: 4px; }
.footer-bottom {
    max-width: 1280px;
    margin: 1.5rem auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-bottom .dua { color: var(--secondary); font-style: italic; font-family: 'Playfair Display', serif; }
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: white; }

@media (max-width: 768px) {
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .posts-grid { grid-template-columns: 1fr; }
}
