:root {
    --primary-color: #1a365d;
    --secondary-color: #c5a880;
    --text-color: #2d3748;
    --bg-color: #f7fafc;
    --white: #ffffff;
    --font-heading: 'Merriweather', serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--secondary-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--secondary-color);
}

.hero {
    min-height: 75vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 140px 5% 4rem 5%;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(26, 54, 93, 0.8), rgba(26, 54, 93, 0.6));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    animation: fadeInUp 1s ease-out forwards;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    font-weight: 300;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #b0956f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(197, 168, 128, 0.4);
}

section {
    padding: 6rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 1rem auto 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.text-content h2 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.text-content p {
    margin-bottom: 1.5rem;
    color: #4a5568;
}

.image-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.image-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

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

/* Blog Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.blog-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.1);
}

.blog-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-date {
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.4;
    text-decoration: none;
}

.blog-title:hover {
    color: var(--secondary-color);
}

.blog-desc {
    color: #4a5568;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.blog-link i {
    margin-left: 0.5rem;
    transition: var(--transition);
}

.blog-link:hover {
    color: var(--secondary-color);
}

.blog-link:hover i {
    transform: translateX(5px);
}

footer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 3rem 5%;
    margin-top: 4rem;
}

footer p {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Badges de Spécialité */
.badge-container {
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    background-color: #edf2f7;
    color: var(--primary-color);
    border: 1px solid #e2e8f0;
}
.badge-egypt { background-color: #feebc8; color: #c05621; border-color: #fbd38d; }
.badge-paleo { background-color: #c6f6d5; color: #276749; border-color: #9ae6b4; }
.badge-classic { background-color: #bee3f8; color: #2b6cb0; border-color: #90cdf4; }
.badge-prehist { background-color: #e9d8fd; color: #553c9a; border-color: #d6bcfa; }
.badge-method { background-color: #fed7d7; color: #c53030; border-color: #feb2b2; }

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 1rem 5%;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    }
    .nav-links.active {
        display: flex;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Badges de Spécialité */
.badge-container {
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    background-color: #edf2f7;
    color: var(--primary-color);
    border: 1px solid #e2e8f0;
}
.badge-egypt { background-color: #feebc8; color: #c05621; border-color: #fbd38d; }
.badge-paleo { background-color: #c6f6d5; color: #276749; border-color: #9ae6b4; }
.badge-classic { background-color: #bee3f8; color: #2b6cb0; border-color: #90cdf4; }
.badge-prehist { background-color: #e9d8fd; color: #553c9a; border-color: #d6bcfa; }
.badge-method { background-color: #fed7d7; color: #c53030; border-color: #feb2b2; }

/* Styling for article tags, categories and badges */
.tags-scroll-container::-webkit-scrollbar { display: none; }
.article-tag { 
    display: inline-flex;
    align-items: center;
    padding: 4px 10px; 
    border-radius: 6px; 
    font-size: 0.75rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 0.5px;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}
.article-tag:hover {
    transform: scale(1.05);
    opacity: 0.9;
}
.tag-egyptologie { background: #fee2e2; color: #991b1b; }
.tag-prehistoire { background: #ffedd5; color: #9a3412; }
.tag-antiquite { background: #fef3c7; color: #92400e; }
.tag-moyen-age { background: #dcfce7; color: #166534; }
.tag-vikings { background: #e0f2fe; color: #075985; }
.tag-ameriques { background: #fae8ff; color: #86198f; }
.tag-femmes { background: #fce7f3; color: #9d174d; }
.tag-methodologie { background: #f3e8ff; color: #6b21a8; }
.tag-patrimoine { background: #e0e7ff; color: #3730a3; }
.tag-decouverte { background: #dbeafe; color: #1e3a8a; }
.tag-anthropologie { background: #d9f99d; color: #3f6212; }
.tag-ethnologie { background: #fef08a; color: #854d0e; }
.tag-orient { background: #ffedd5; color: #c2410c; }
.tag-asie { background: #fce7f3; color: #be185d; }
.tag-default { background: #f1f5f9; color: #475569; }

/* Evenements special categories */
.tag-cours { background: #dcfce7; color: #166534; }
.tag-seminaire { background: #e0f2fe; color: #075985; }
.tag-conferencier { background: #fef3c7; color: #92400e; }
.tag-colloque { background: #fae8ff; color: #86198f; }
.tag-exposition { background: #ffedd5; color: #9a3412; }
.tag-proche-orient { background: #fee2e2; color: #991b1b; }
.tag-philosophie { background: #fce7f3; color: #9d174d; }
.tag-litterature { background: #f3e8ff; color: #6b21a8; }

.badge-orient { background: #fbd38d; color: #9c4221; border-color: #fbd38d; }
.badge-americas { background: #feb2b2; color: #9b2c2c; border-color: #feb2b2; }
.badge-bible { background: #fefcbf; color: #b7791f; border-color: #fefcbf; }
.badge-ethno { background: #b2f5ea; color: #285e61; border-color: #b2f5ea; }
.badge-other { background: #e2e8f0; color: #4a5568; border-color: #e2e8f0; }
