/* Noir Olive - Main Stylesheet */
:root {
    --bg-color: #000000;
    --text-color: #f1f1f1;
    --text-muted: #a0a0a0;
    --accent-color: #d4af37;
    /* Gold-ish for Noir Olive feel */
    --accent-hover: #b59020;
    --card-bg: #111111;
    --border-color: #222222;
    --font-primary: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

/* Header shrink on scroll */
header.scrolled {
    padding: 5px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

header.scrolled .logo img {
    height: 60px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 75px;
    width: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo a {
    display: block;
}

.logo img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links li {
    position: relative;
}

.nav-links li a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    display: inline-block;
    transition: color 0.3s ease;
}

/* Modern underline animation */
.nav-links li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), #f4d03f);
    transform: translateX(-50%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links li a:hover::before,
.nav-links li a.active::before {
    width: 100%;
}

/* Glow effect on hover */
.nav-links li a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Active page indicator */
.nav-links li a.active {
    color: var(--accent-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-color);
}

.mobile-menu-btn:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

.mobile-menu-btn i {
    transition: transform 0.3s ease;
}

.mobile-menu-btn.active i {
    transform: rotate(90deg);
}

/* Hero Section */
.hero {
    height: 100vh;
    /* Full height for impact */
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../assets/hero-bg.jpg') no-repeat center center/cover;
    /* Kept placeholder BG, but black logo will sit on overlay */
    background-color: #000;
    /* Fallback */
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    /* Darker overlay to make content pop */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo-container {
    width: 100%;
    display: flex;
    justify-content: center;
    perspective: 1000px;
    /* Enable 3D space */
}

#logo-wrapper {
    width: 90%;
    max-width: 800px;
    margin-bottom: 2rem;
    will-change: transform;
    transform-style: preserve-3d;
    /* Entrance Animation */
    animation: fadeInScale 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-logo {
    width: 100%;
    height: auto;
    display: block;
    /* Continuous Floating Animation */
    animation: floatLogo 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.3));
    /* Shadow for depth */
}

/* Entrance Animation */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

/* Floating Animation */
@keyframes floatLogo {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Activities Section */
.activities {
    padding: 80px 0 40px 0;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.activity-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.activity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), #f0c040);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.activity-card:hover::before {
    transform: scaleX(1);
}

.activity-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
}

.activity-card h3 {
    margin: 20px 0;
    font-size: 1.5rem;
    text-transform: uppercase;
}

/* Mobile: Apply premium effects by default (no hover needed) */
@media (max-width: 768px) {
    .activity-card::before {
        transform: scaleX(1);
    }

    .activity-card {
        border-color: rgba(212, 175, 55, 0.6);
        box-shadow: 0 12px 35px rgba(212, 175, 55, 0.25);
    }
}

.activity-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.activity-images img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

/* News Section */
.latest-news {
    padding: 40px 0 80px 0;
    background-color: #050505;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), #f0c040);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: 10;
}

.news-card:hover::before {
    transform: scaleX(1);
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
}

.news-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

/* Mobile: Apply premium effects by default (no hover needed) */
@media (max-width: 768px) {
    .news-card::before {
        transform: scaleX(1);
    }

    .news-card {
        border-color: rgba(212, 175, 55, 0.6);
        box-shadow: 0 12px 35px rgba(212, 175, 55, 0.25);
    }
}

/* Styles for actualites.php grid */
.news-image {
    position: relative;
    width: 100%;
    height: 250px;
    /* Fixed height for uniformity */
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
    /* Zoom effect on hover */
}


.news-content {
    padding: 20px;
}

.news-category {
    font-size: 0.8rem;
    color: white;
    background-color: var(--accent-color);
    padding: 2px 8px;
    text-transform: uppercase;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    border-radius: 2px;
}

.news-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: block;
}

.news-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.read-more {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 24px;
    background-color: var(--accent-color);
    color: var(--bg-color);
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border-radius: 2px;
    transition: all 0.3s ease;
    border: 1px solid var(--accent-color);
}

.read-more:hover {
    background-color: transparent;
    color: var(--accent-color);
}

/* Main Activity Image */
.main-activity-img {
    width: 100%;
    max-width: 900px;
    /* Limit max width for better aesthetic */
    margin: 0 auto 40px auto;
    /* Center image */
    max-height: 600px;
    /* Limit height instead of aspect-ratio */
    object-fit: contain;
    /* Show full image without cropping */
    display: block;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    padding: 10px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.main-activity-img:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
}

/* Mobile: Apply premium effects by default (no hover needed) */
@media (max-width: 768px) {
    .main-activity-img {
        border-color: rgba(212, 175, 55, 0.6);
        box-shadow: 0 15px 40px rgba(212, 175, 55, 0.25);
    }
}

/* Footer */
/* Footer */
footer {
    padding: 60px 0 40px;
    border-top: 1px solid var(--border-color);
    background-color: #080808;
    /* Slightly lighter than black for separation */
    color: var(--text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

.footer-col {
    text-align: left;
}

.footer-col.center-col {
    text-align: center;
    border-left: 1px solid #222;
    border-right: 1px solid #222;
}

.footer-col.right-col {
    text-align: right;
}

.footer-heading {
    color: white;
    text-transform: uppercase;
    font-size: 1.1rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.footer-brand {
    font-size: 2.5rem;
    /* Increased size significantly */
    font-weight: 700;
    /* Bold for impact */
    color: var(--accent-color);
    margin-bottom: 25px;
    letter-spacing: 3px;
    line-height: 1.2;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color 0.3s, padding-left 0.3s;
}

.footer-nav a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact-info p {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.copyright {
    font-size: 0.8rem;
    color: #555;
    margin-top: 20px;
}


/* Gallery Grid Uniformity */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-img {
    width: 100%;
    height: 300px;
    /* Fixed height for uniformity */
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.gallery-img:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
    filter: brightness(1.1);
}

/* Mobile: Apply premium effects by default (no hover needed) */
@media (max-width: 768px) {
    .gallery-img {
        border-color: rgba(212, 175, 55, 0.6);
        box-shadow: 0 12px 35px rgba(212, 175, 55, 0.25);
    }
}

/* Lightbox Modal */
#lightbox {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#lightbox.active {
    opacity: 1;
    pointer-events: all;
}

#lightbox-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--accent-color);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s;
    user-select: none;
}

.lightbox-nav:hover {
    background: var(--accent-color);
    color: black;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* =========================================
   ARTICLE DETAIL - STANDARD LAYOUT
   ========================================= */

/* Article Wrapper */
.article-detail-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

/* Shared Buttons - Desktop */
.share-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #222;
    color: #ccc;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background-color: var(--accent-color);
    color: #000;
    transform: translateY(-3px);
}

/* Shared Buttons - Mobile Sticky */
.mobile-share-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    border-top: 1px solid #333;
    padding: 10px 0;
    z-index: 9999;
    justify-content: space-evenly;
}

.mobile-share-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ccc;
    font-size: 1.2rem;
}

.mobile-share-link span {
    font-size: 0.75rem;
    margin-top: 4px;
}

/* Toast */
.copy-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: #000;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 10000;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #000;
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-logo {
        max-width: 100%;
    }

    .activity-images {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Mobile Typography & Spacing */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    /* Contact Page Respo */
    .contact-card {
        padding: 25px !important;
        margin: 0 15px;
    }

    .contact-card .social-btn {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }

    .footer-col,
    .footer-col.center-col,
    .footer-col.right-col {
        text-align: center;
        border: none;
    }

    /* Article Mobile */
    .mobile-share-bar {
        display: flex;
    }

    .share-actions {
        display: none;
        /* Hide desktop shares on mobile to avoid clutter */
    }

    .article-detail-wrapper {
        padding-bottom: 60px;
        /* Space for sticky bar */
    }
}