/* --- Base Styles & Variables --- */
:root {
    /* Color Palette */
    --primary-color: #2C0EFA; /* Bleu violet - Used for headings, main links */
    --secondary-color: #34E5C2; /* Turquoise - Used for backgrounds, subtle elements */
    --accent-color: #34E5C2; /* Turquoise - Used for CTAs, highlights */
    --text-dark: #333333; /* For main body text, strong elements */
    --text-medium: #495057; /* For less emphasized text */
    --text-light: #6c757d; /* For subtle text, breadcrumbs */
    --background-light: #f8f9fa; /* General light background */
    --background-grey: #e9ecef; /* Slightly darker grey background */
    --white: #ffffff;

    /* Spacing System (using a modular scale) */
    --spacing-xxs: 4px;
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 48px;
    --spacing-xl: 80px;
    --spacing-xxl: 120px;

    /* Border Radius */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --border-radius-pill: 50px;

    /* Box Shadows (more descriptive names) */
    --shadow-subtle: 0 1px 3px rgba(0,0,0,0.08); /* Lighter shadow for general elements */
    --shadow-card: 0 4px 12px rgba(0,0,0,0.08); /* For cards and distinct blocks */
    --shadow-hover: 0 8px 20px rgba(0,0,0,0.12); /* For hover effects */
    --shadow-accent-btn: 0 4px 15px rgba(52, 229, 194, 0.3);
    --shadow-accent-btn-hover: 0 6px 20px rgba(52, 229, 194, 0.4);

    /* Transitions */
    --transition-fast: all 0.2s ease-out;
    --transition-default: all 0.3s ease;
    --transition-slow: all 0.4s ease-in-out;

    /* Typography Scale (example, can be more detailed) */
    --font-size-base: 1rem; /* 16px */
    --font-size-sm: 0.9rem;
    --font-size-md: 1.1rem;
    --font-size-lg: 1.3rem;
    --font-size-xl: 1.8rem;
    --font-size-xxl: 2.5rem;
    --font-size-hero: 3.5rem;
}

/* --- Reset & Base Styles --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.7; /* Increased for better readability */
    color: var(--text-dark);
    background-color: var(--background-light);
    -webkit-font-smoothing: antialiased; /* Smoother font rendering */
    -moz-osx-font-smoothing: grayscale; /* Smoother font rendering */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md); /* Consistent padding on sides */
}

/* --- Global Elements --- */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-default);
}

a:hover {
    text-decoration: underline;
    color: var(--accent-color);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
    font-weight: 700; /* Ensured consistent bolding */
}

p {
    margin-bottom: var(--spacing-md); /* Slightly more space between paragraphs */
    font-size: var(--font-size-md);
    color: var(--text-medium);
}

strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* --- Buttons --- */
.hero-cta, .cta-button { /* Applied to both specific CTA buttons */
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: var(--spacing-sm) var(--spacing-lg); /* Consistent button padding */
    border-radius: var(--border-radius-pill);
    font-weight: 600;
    font-size: var(--font-size-md);
    transition: var(--transition-default);
    box-shadow: var(--shadow-accent-btn);
    border: none;
    cursor: pointer;
    text-align: center;
    text-transform: uppercase; /* Professional touch */
    letter-spacing: 0.05em; /* Subtle letter spacing */
}

.hero-cta:hover, .cta-button:hover {
    background: #2bc4a5; /* Slightly darker turquoise */
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent-btn-hover);
}

/* --- Section Global Padding --- */
.section-spacing {
    padding: var(--spacing-xl) 0; /* Consistent vertical spacing for all major sections */
}


/* --- 1. Hero Section --- */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: var(--spacing-xxl) 0; /* More vertical padding for visual weight */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 450px; /* Minimum height for large hero */
    text-align: center; /* Ensures content is centered */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="diagonal-dots" patternUnits="userSpaceOnUse" width="10" height="10"><circle cx="2" cy="2" r="1.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23diagonal-dots)"/></svg>');
    opacity: 0.4; /* Slightly higher opacity for more presence */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out forwards;
    max-width: 900px; /* Constrain content width in hero */
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.hero h1 {
    font-size: var(--font-size-hero); /* Very large, impactful heading */
    font-weight: 800; /* Extra bold */
    margin-bottom: var(--spacing-md);
    text-shadow: 0 4px 8px rgba(0,0,0,0.3); /* Softer, more diffuse shadow */
    color: var(--white); /* Ensure hero heading is white */
    letter-spacing: -0.02em; /* Tighter letter spacing for large titles */
}

.hero-intro {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--white); /* Ensure hero intro is white */
    font-weight: 300; /* Lighter font weight for intro text */
}

/* --- Breadcrumb --- */
.breadcrumb {
    background: var(--white);
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--background-grey);
    box-shadow: var(--shadow-subtle);
}

.breadcrumb nav {
    font-size: var(--font-size-sm);
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary-color);
}

.breadcrumb a:hover {
    color: var(--accent-color);
}

/* --- Main Content --- */
.main-content {
    background: var(--white);
    padding: var(--spacing-xl) 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Keeps 2/3 for main, 1/3 for sidebar */
    gap: var(--spacing-lg);
    align-items: flex-start; /* Aligns content to the top */
}

.content-main {
    /* Main blog text area */


.content-main h2 {
    color: var(--primary-color);
    font-size: var(--font-size-xxl); /* Larger title for main content */
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-bottom: var(--spacing-xs);
    font-weight: 700;
}

.content-main h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px; /* Longer underline for main heading */
    height: 5px;
    background: var(--accent-color);
    border-radius: 2px;
}

.content-main h3 {
    color: var(--primary-color);
    font-size: var(--font-size-xl);
    margin: var(--spacing-lg) 0 var(--spacing-md); /* More spacing around subheadings */
    font-weight: 600;
}

.content-main p {
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-md);
    color: var(--text-medium);
}

.content-main ul {
    margin: var(--spacing-md) 0 var(--spacing-md) var(--spacing-lg); /* Indentation for lists */
    list-style: disc;
    color: var(--text-medium);
}

.content-main li {
    margin-bottom: var(--spacing-xs);
    font-size: var(--font-size-md);
}
}
/* --- Sidebar --- */
.sidebar {
    background: var(--background-light); /* Light background for the sidebar */
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    height: fit-content; /* Only takes as much height as its content */
    position: sticky;
    top: var(--spacing-md); /* Stays sticky when scrolling */
    box-shadow: var(--shadow-card); /* Clear distinction from main content */
}

.sidebar h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-xl); /* Prominent sidebar heading */
    font-weight: 700;
}

.info-card {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-sm);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-subtle);
    border: 1px solid var(--background-grey); /* Subtle border for clean lines */
}

.info-card h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
    font-size: var(--font-size-md);
    font-weight: 600;
}

.info-card p {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    margin-bottom: var(--spacing-xs); /* Tighter spacing in info cards */
}

.map-container {
    margin-top: var(--spacing-md); /* Spacing from info cards above */
    padding: var(--spacing-sm); /* Inner padding for the map container */
    background: var(--white); /* White background for map frame */
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-card);
    overflow: hidden; /* Ensures border-radius applies to iframe */
}

.map-container h4 { /* Styling for the map title inside map-container */
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
    font-size: var(--font-size-md);
    font-weight: 600;
}

.map-container p { /* Styling for the map description inside map-container */
    font-size: var(--font-size-sm);
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

.map-container iframe {
    width: 100%;
    height: 300px; /* Fixed height for map */
    border: none;
    display: block; /* Remove extra space below iframe */
    border-radius: var(--border-radius-sm); /* Match inner radius to container */
}


/* --- Image Gallery --- */
.image-gallery {
    padding: var(--spacing-xl) 0; /* Consistent section spacing */
    background-color: var(--background-grey); /* Background to visually separate */
}

.image-gallery h2 { /* Targeting the specific H2 in your HTML for this section */
    text-align: center;
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg); /* Matches your inline style's 40px */
    font-size: var(--font-size-xxl); /* Matches your inline style's 2.2rem */
    font-weight: 700;
}


.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Adjusted minmax for better scaling */
    gap: var(--spacing-md);
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition-default);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.gallery-item img {
    width: 100%;
    height: 250px; /* Fixed height for consistent gallery layout */
    object-fit: cover;
    display: block; /* Remove extra space below image */
    transition: var(--transition-slow); /* Slower, smoother zoom */
}

.gallery-item:hover img {
    transform: scale(1.1); /* More noticeable zoom */
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85)); /* Darker gradient for text contrast */
    color: var(--white);
    padding: var(--spacing-md);
    transform: translateY(100%);
    transition: transform 0.4s ease-out;
    text-align: center;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-caption h4 {
    color: var(--white);
    font-size: var(--font-size-md);
    margin-bottom: var(--spacing-xxs);
    font-weight: 600;
}

.gallery-caption p {
    color: rgba(255,255,255,0.9);
    font-size: var(--font-size-sm);
    margin-bottom: 0;
}


/* --- Features Section (Corrected class name to 'features') --- */
.features { /* Changed from .features-section to .features to match HTML */
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--background-light) 0%, var(--background-grey) 100%);
    margin: var(--spacing-lg) 0; /* Add vertical margin for separation */
    border-radius: var(--border-radius-lg);
    text-align: center; /* Main title in this section needs to be centered if added here */
}

/* If you add a main heading to your features section, style it like this: */
/*
.features h2 {
    font-size: var(--font-size-xxl);
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: var(--spacing-xs);
    font-weight: 700;
}

.features h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: var(--accent-color);
    border-radius: 2px;
}
*/

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Slightly smaller minmax for more cards per row */
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.feature-card {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: var(--transition-default);
    border: 1px solid var(--background-grey);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-sm);
    color: var(--white);
    font-size: 2rem; /* Larger icon */
    box-shadow: var(--shadow-subtle);
}

.feature-card h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
    font-size: var(--font-size-lg);
    font-weight: 600;
}

.feature-card p {
    color: var(--text-medium);
    font-size: var(--font-size-base);
    margin-bottom: 0;
}

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: var(--spacing-xl) 0;
    text-align: center; /* Entire section is centered per your HTML */
    border-radius: var(--border-radius-lg);
    margin: var(--spacing-xl) 0; /* More margin for this important section */
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hexagons" patternUnits="userSpaceOnUse" width="10" height="17.32"><path d="M5 0L10 8.66L5 17.32L0 8.66Z" fill="rgba(255,255,255,0.08)"/></pattern></defs><rect width="100" height="100" fill="url(%23hexagons)"/></svg>');
    opacity: 0.2;
    z-index: 1;
}

.cta-section h2 { /* Adjusted for single column CTA content */
    font-size: var(--font-size-xxl);
    margin-bottom: var(--spacing-md);
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    /* text-align: center; (already inherited from .cta-section) */
}

.cta-section p { /* Adjusted for single column CTA content */
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
    color: var(--white);
    /* text-align: center; (already inherited from .cta-section) */
}

/* The .cta-button class inherits from the general button styles above */
/* If you need specific padding for this one only: */
/*
.cta-button {
    padding: 18px 40px;
    font-size: var(--font-size-md);
}
*/

/* --- Floating Button (Commented out as it's not in your current HTML) --- */
/*
.floating-button {
    position: fixed;
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
    z-index: 1000;
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-pill);
    background-color: var(--accent-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: var(--shadow-hover);
    transition: var(--transition-default);
    cursor: pointer;
    text-decoration: none;
}

.floating-button:hover {
    background-color: #2bc4a5;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(52, 229, 194, 0.5);
}
*/

/* --- Footer --- */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: var(--spacing-md) 0;
    text-align: center;
    font-size: var(--font-size-sm);
}

.footer p {
    color: rgba(255,255,255,0.8);
    margin-bottom: var(--spacing-xs);
}

.footer a {
    color: var(--accent-color);
}

.footer a:hover {
    color: #2bc4a5; /* Turquoise plus claire au hover */
}

/* --- Animations (Your JS applies these via inline styles, consider moving to CSS classes fully) --- */
/* The JS applies initial opacity and transform, and transition.
   The @keyframes is still used by .hero-content.
   If you want to use the .fade-in class directly:
*/
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in { /* This class is now observed by your JS and given an animation via JS */
    /* Instead of setting these properties here, your JS sets them initially and removes them on intersect.
       This is fine, but if you want pure CSS animation on scroll, you'd trigger a class addition here.
       For now, leaving it as is, as your JS handles it.
    */
}


/* --- Responsive Design --- */
@media (max-width: 992px) {
    :root {
        --font-size-hero: 3rem;
        --font-size-xxl: 2.2rem;
    }

    .content-grid {
        grid-template-columns: 1fr; /* Stack main content and sidebar */
        gap: var(--spacing-lg);
    }

    .sidebar {
        position: static; /* Remove sticky on smaller screens */
        margin-top: var(--spacing-lg); /* Add spacing when stacked */
    }

    /* .cta-grid is removed as per HTML */
}

@media (max-width: 768px) {
    :root {
        --spacing-md: 20px;
        --spacing-lg: 30px;
        --spacing-xl: 40px;
        --font-size-hero: 2.5rem;
        --font-size-xxl: 1.8rem;
        --font-size-xl: 1.6rem;
        --font-size-lg: 1.1rem;
        --font-size-md: 1rem;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    .hero {
        padding: var(--spacing-xl) 0;
        min-height: 350px;
    }

    .hero h1 {
        font-size: var(--font-size-hero);
    }

    .hero-intro {
        font-size: var(--font-size-lg);
    }

    .content-main h2 {
        font-size: var(--font-size-xxl);
    }

    .content-main h3 {
        font-size: var(--font-size-xl);
    }

    .gallery-grid {
        grid-template-columns: 1fr; /* Make each gallery item take full width */
    }

    .features-grid {
        grid-template-columns: 1fr; /* Stack features on smaller screens */
    }

    .cta-section h2 {
        font-size: var(--font-size-xxl);
    }

    .cta-section p {
        font-size: var(--font-size-lg);
    }

    /* Floating button removed from here as well unless HTML is added */
}

@media (max-width: 480px) {
    :root {
        --spacing-sm: 10px;
        --spacing-md: 15px;
        --spacing-lg: 20px;
        --spacing-xl: 30px;
        --font-size-hero: 2rem;
        --font-size-xxl: 1.6rem;
        --font-size-xl: 1.4rem;
        --font-size-lg: 1rem;
        --font-size-md: 0.95rem;
    }

    .hero {
        min-height: 280px;
        padding: var(--spacing-lg) 0;
    }

    .hero-cta {
        padding: 12px 25px;
        font-size: var(--font-size-base);
    }

    .map-container iframe {
        height: 250px; /* Slightly smaller map on very small screens */
    }

    /* Floating button removed from here as well unless HTML is added */
}