@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* --- Reset & Base --- */
:root {
    --primary-color: #1e4620; /* Deep Forest Green */
    --primary-light: #2e6932;
    --accent-color: #3b8e56; /* Emerald Accent */
    --text-color: #162c1a; /* Very dark green-grey */
    --text-muted: #4e6552;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.78);
    --glass-border: rgba(255, 255, 255, 0.4);
    --card-shadow: 0 10px 30px rgba(13, 35, 18, 0.06);
    --transition-speed: 0.4s;
    
    /* Default fallback gradient */
    --bg-from: #f4faf7;
    --bg-to: #cbece0;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-from), var(--bg-to));
    background-attachment: fixed;
    transition: background var(--transition-speed) ease-in-out;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.25;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

/* --- Layout --- */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

main {
    flex: 1;
    padding: 3rem 0;
}

/* --- Header / Navigation --- */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    padding: 0.5rem 0;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* --- Menu Button & Drawer (Mobile) --- */
.menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 110;
}

.menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Menu Toggle states */
.menu-btn.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-btn.open span:nth-child(2) {
    opacity: 0;
}
.menu-btn.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    z-index: 105;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 90px 2rem 2rem 2rem;
    overflow-y: auto;
}

.drawer.open {
    right: 0;
}

.drawer-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.drawer-link {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0;
}

.drawer-link:hover, .drawer-link.active {
    color: var(--accent-color);
    padding-left: 5px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(3px);
    z-index: 102;
    display: none;
}

.overlay.show {
    display: block;
}

/* --- Hero Section (Accueil) --- */
.hero {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.hero-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--card-shadow);
}

.hero-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.hero-bio {
    font-size: 1.15rem;
    color: var(--text-color);
    margin-bottom: 2rem;
}

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

/* --- Glass Cards --- */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(13, 35, 18, 0.09);
}

.section-title {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.glass-card p {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

.glass-card p:last-child {
    margin-bottom: 0;
}

/* --- Music Player Bar --- */
.music-bar {
    background: rgba(30, 70, 32, 0.08);
    border-left: 4px solid var(--accent-color);
    padding: 1.25rem 1.5rem;
    border-radius: 0 12px 12px 0;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.music-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.music-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    animation: pulse 2s infinite ease-in-out;
}

.music-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary-color);
}

.music-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.music-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(30, 70, 32, 0.2);
}

.music-btn:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: translateY(-1px);
}

/* --- Media Cards / YouTube Embeds --- */
.media-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

.media-grid.two-cols {
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

.video-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-info {
    padding: 1.25rem;
}

.video-card-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

/* --- Navigation Buttons --- */
.page-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3.5rem;
    gap: 1rem;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1.6rem;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--primary-color);
    box-shadow: var(--card-shadow);
}

.nav-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 70, 32, 0.15);
}

.nav-btn.prev::before {
    content: '←';
    font-size: 1.1rem;
}

.nav-btn.next::after {
    content: '→';
    font-size: 1.1rem;
}

.nav-btn.home-btn {
    background: var(--accent-color);
    color: var(--white);
}

.nav-btn.home-btn:hover {
    background: var(--primary-color);
}

/* --- Footer --- */
footer {
    background: rgba(255, 255, 255, 0.5);
    border-top: 1px solid var(--glass-border);
    padding: 2.5rem 0;
    margin-top: auto;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.footer-quote {
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Photo Gallery & Lightbox --- */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.photo-card {
    background: linear-gradient(110deg, rgba(255, 255, 255, 0.35) 8%, rgba(255, 255, 255, 0.6) 18%, rgba(255, 255, 255, 0.35) 33%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    aspect-ratio: 4/3;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.5s ease;
}

.photo-card img.loaded {
    opacity: 1;
}

.photo-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 20px rgba(13, 35, 18, 0.08);
}

.photo-card:hover img {
    transform: scale(1.05);
}

@keyframes shimmer {
    to {
        background-position-x: -200%;
    }
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 200;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background-color: rgba(10, 25, 13, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    animation: zoom 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes zoom {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-lightbox:hover {
    color: var(--accent-color);
}

/* --- Homepage Carousel --- */
.carousel-container {
    position: relative;
    max-width: 800px;
    width: 100%;
    height: 450px;
    max-height: 56.25vw;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    background: #000;
    aspect-ratio: 16 / 9;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s ease;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.5s ease;
}

.carousel-slide img:hover {
    transform: scale(1.03);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    font-size: 1.5rem;
    padding: 0.6rem 1rem;
    cursor: pointer;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    transition: background 0.3s ease, transform 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--accent-color);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: 15px; }
.next-btn { right: 15px; }

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.dot.active, .dot:hover {
    background: var(--accent-color);
    transform: scale(1.2);
}

/* --- Homepage Card Custom Classes --- */
.home-video-banner-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    margin-top: 1.5rem;
    box-shadow: 0 10px 30px rgba(26, 67, 30, 0.08);
}

.home-mission-card {
    padding: 2.5rem;
    border-left: 5px solid var(--primary-color);
}

.home-gallery-card {
    padding: 2.5rem;
}

/* --- Animations --- */
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.9; }
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .nav-desktop {
        display: none;
    }
    .menu-btn {
        display: block;
    }
    .hero h1 {
        font-size: 2.75rem;
    }
    .intro-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    main {
        padding: 2rem 0;
    }
    .hero-content {
        padding: 2rem;
    }
    .hero h1 {
        font-size: 2.25rem;
    }
    .glass-card {
        padding: 1.75rem;
    }
    .media-grid.two-cols {
        grid-template-columns: 1fr;
    }
    .music-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .music-btn {
        width: 100%;
        justify-content: center;
    }
    .page-nav {
        flex-direction: column;
        gap: 1rem;
    }
    .nav-btn {
        width: 100%;
        justify-content: center;
    }

    /* Mobile overrides for homepage custom cards */
    .home-video-banner-card {
        padding: 1.25rem;
        border-radius: 12px;
        margin-top: 1rem;
    }
    .home-mission-card {
        padding: 1.5rem 1.25rem;
        border-left-width: 4px;
    }
    .home-gallery-card {
        padding: 1.5rem 1.25rem;
    }
}
