:root {
    /* Color Palette */
    /* Color Palette */
    --primary: #059669;
    /* Emerald Green (Professional/Civic) */
    --primary-hover: #047857;
    --secondary: #1F2937;
    /* Dark Grey/Blue */
    --accent: #F59E0B;
    /* Amber/Yellow for contrast */
    --light: #F9FAFB;
    --white: #FFFFFF;
    --dark: #111827;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --container-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--secondary);
    line-height: 1.6;
    background-color: var(--white);
}

img {
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* Components */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.btn-primary {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary);
    color: var(--white);
    font-weight: 600;
    border-radius: 5px;
    border: 2px solid var(--primary);
}

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

.btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    background-color: transparent;
    color: var(--white);
    font-weight: 600;
    border-radius: 5px;
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary);
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary);
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--dark);
}

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

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary);
}

.hamburger {
    display: none;
    cursor: pointer;
}

/* Hero */
#hero {
    height: 100vh;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.55), rgba(31, 41, 55, 0.65)), url('../assets/img/background-voeux.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Programme */
.program-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.program-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: var(--white);
    aspect-ratio: 16/9;
    /* More panoramic gallery look */
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.program-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

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

.program-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 70%, transparent 100%);
    color: var(--white);
    transition: all 0.4s ease;
}

.program-card:hover .program-content {
    background: linear-gradient(to top, rgba(5, 150, 105, 0.95) 0%, rgba(5, 150, 105, 0.5) 70%, transparent 100%);
}

.program-content h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.news-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.news-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.news-card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-date {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
}

.news-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--dark);
    line-height: 1.4;
}

.news-card-text {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    flex: 1;
}

.news-card-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    font-size: 0.95rem;
}

/* Info */
.bg-light {
    background-color: var(--light);
}

.split-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}

.text-content {
    flex: 1;
}

.image-content {
    flex: 1;
}

.lead {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--primary);
}

.btn-text {
    display: inline-block;
    margin-top: 20px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

/* Photos */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item {
    background: linear-gradient(135deg, var(--white) 0%, var(--light) 100%);
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    color: var(--secondary);
    border-radius: 15px;
    border: 1px solid rgba(5, 150, 105, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item:hover {
    transform: translateY(-10px);
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 15px 40px rgba(5, 150, 105, 0.3);
}

.gallery-item .icon {
    font-size: 3rem;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.gallery-item:hover .icon {
    transform: scale(1.2);
}

.gallery-item span {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.3;
}

.gallery-item img {
    display: none;
}

/* Video */
.video-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.video-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
}

.play-button {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.bg-dark {
    background-color: var(--dark);
}

.text-white {
    color: var(--white);
}

.bg-dark .section-title {
    color: var(--white);
}

/* Verbatim */
.testimonials-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding-bottom: 20px;
}

.testimonial {
    min-width: 300px;
    flex: 1;
    background: var(--light);
    padding: 30px;
    border-radius: 10px;
    border-left: 5px solid var(--primary);
}

.testimonial blockquote {
    font-style: italic;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.testimonial cite {
    font-weight: 600;
    color: var(--primary);
}

/* Contact */
.bg-primary {
    background-color: var(--primary);
}

.bg-primary .section-title {
    color: var(--white);
}

.game-primary .section-title::after {
    background-color: var(--white);
}

.contact-wrapper {
    display: flex;
    gap: 60px;
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    color: var(--secondary);
}

.contact-info {
    flex: 1;
}

.contact-info h2 {
    font-family: var(--font-heading);
    margin-bottom: 20px;
}

.contact-details {
    margin-top: 30px;
}

.contact-details li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-frame {
    flex: 1;
}

.map-container {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    height: 350px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Removed Form Styles */

/* Footer */
footer {
    background-color: #111;
    color: #888;
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    color: var(--white);
    font-size: 1.2rem;
}

.legal a {
    margin: 0 10px;
    font-size: 0.9rem;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays if needed */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: flex;
        position: absolute;
        top: 60px;
        right: 0;
        height: 100vh;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.3s ease-in;
    }

    .nav-links.active {
        transform: translateX(0%);
    }

    .hamburger {
        display: block;
        z-index: 2000;
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px;
        background-color: var(--dark);
        transition: 0.3s;
    }

    /* Hamburger Animation */
    .hamburger.toggle span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.toggle span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.toggle span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .split-layout {
        flex-direction: column;
    }

    .contact-wrapper {
        flex-direction: column;
    }

    .program-grid {
        grid-template-columns: 1fr;
    }
}