:root {
    /* Color Palette - Split Complementary & Neutrals */
    --primary-color: #1abc9c; /* Teal - Green Cyan */
    --primary-color-dark: #16a085; /* Darker Teal */
    --accent-color-1: #e67e22; /* Carrot - Orange */
    --accent-color-2: #8e44ad; /* Wisteria - Purple */

    --background-light: #e0e5ec; /* Slightly off-white for Neumorphism base */
    --background-dark: #2c3e50; /* Midnight Blue */
    --surface-light: #f0f3f6; /* Lighter surface for raised elements */
    --surface-dark: #34495e; /* Darker surface for dark mode elements */

    --text-light-bg: #333b48; /* Dark Gray for text on light backgrounds */
    --text-dark-bg: #ecf0f1; /* Light Gray (Clouds) for text on dark backgrounds */
    --text-accent: var(--primary-color);
    --text-muted: #7f8c8d; /* Asbestos - muted gray */

    /* Fonts */
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Rubik', sans-serif;

    /* Neumorphic Shadows */
    --shadow-light: -8px -8px 16px rgba(255, 255, 255, 0.7);
    --shadow-dark: 8px 8px 16px rgba(0, 0, 0, 0.15);
    --shadow-inset-light: inset -6px -6px 12px rgba(255, 255, 255, 0.6);
    --shadow-inset-dark: inset 6px 6px 12px rgba(0, 0, 0, 0.1);

    /* Neo-Brutalism Elements */
    --brutalist-border: 2px solid var(--text-light-bg);
    --brutalist-shadow: 4px 4px 0px var(--text-light-bg);
    --brutalist-shadow-dark-bg: 4px 4px 0px var(--text-dark-bg); /* For elements on dark backgrounds */


    /* Spacing */
    --spacing-unit: 1rem; /* 16px */
    --spacing-xs: calc(var(--spacing-unit) * 0.5);  /* 8px */
    --spacing-sm: var(--spacing-unit);             /* 16px */
    --spacing-md: calc(var(--spacing-unit) * 1.5); /* 24px */
    --spacing-lg: calc(var(--spacing-unit) * 2);   /* 32px */
    --spacing-xl: calc(var(--spacing-unit) * 3);   /* 48px */

    /* Transitions */
    --transition-speed-fast: 0.2s;
    --transition-speed-normal: 0.3s;
    --transition-easing: cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Bouncy */
    --transition-easing-smooth: ease-in-out;

    --navbar-height: 52px; /* Bulma default approx */
}

/* Global Styles */
html {
    scroll-behavior: smooth;
    font-size: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--background-light);
    color: var(--text-light-bg);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#main-container {
    width: 100%;
    overflow: hidden;
}

/* Headings */
h1, h2, h3, h4, h5, h6,
.title, .subtitle {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--text-light-bg);
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

.title.is-1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
.title.is-2 { font-size: clamp(2rem, 4vw, 3rem); }
.title.is-3 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
.title.is-4 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
.title.is-5 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); }

.subtitle {
    color: var(--text-muted);
    font-weight: 400;
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-light-bg);
    font-size: 1rem; /* Ensure base paragraph size */
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed-fast) var(--transition-easing-smooth);
}

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

.section {
    padding: var(--spacing-xl) var(--spacing-md);
}

.container {
    /* Bulma handles container, but can be overridden if needed */
}

/* Utility Classes */
.has-text-primary { color: var(--primary-color) !important; }
.has-text-accent-1 { color: var(--accent-color-1) !important; }
.has-text-accent-2 { color: var(--accent-color-2) !important; }
.has-text-light { color: var(--text-dark-bg) !important; }
.has-text-dark { color: var(--text-light-bg) !important; }

.section-title {
    margin-bottom: var(--spacing-lg);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}
.section-title.has-text-white,
.section-dark .section-title {
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
    color: var(--text-dark-bg);
}

.section-dark {
    background-color: var(--background-dark);
}
.section-dark .title,
.section-dark .subtitle,
.section-dark p,
.section-dark .label,
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4, .section-dark h5, .section-dark h6 {
    color: var(--text-dark-bg);
}
.section-dark .subtitle {
    color: rgba(236, 240, 241, 0.8); /* Lighter muted for dark bg */
}
.section-dark a {
    color: var(--primary-color);
}
.section-dark a:hover {
    color: #2ecc71; /* Lighter primary for hover on dark */
}

.section-light-accent {
    background-color: #f7f9fa;
}

/* Header & Navbar */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030; /* Above Bulma's default modal z-index */
    background-color: rgba(240, 243, 246, 0.85); /* Match surface-light with alpha */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.navbar {
    background-color: transparent;
    min-height: var(--navbar-height);
}
.navbar-brand .navbar-item.logo-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-light-bg);
}
.navbar-brand .logo-accent {
    color: var(--primary-color);
}
.navbar-item {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--text-light-bg);
    transition: color var(--transition-speed-fast) ease-in-out, background-color var(--transition-speed-fast) ease-in-out;
}
.navbar-item:hover, .navbar-item.is-active {
    background-color: transparent;
    color: var(--primary-color);
}
.navbar-burger {
    color: var(--text-light-bg);
}
@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: var(--surface-light);
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        padding: var(--spacing-sm) 0;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
    }
}

/* Global Button Styles */
.button, button, input[type="submit"], input[type="button"] {
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: 8px; /* Softer radius for neumorphism, sharper for brutalism */
    padding: calc(var(--spacing-sm) * 0.9) calc(var(--spacing-lg) * 0.9);
    transition: all var(--transition-speed-normal) var(--transition-easing);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border: none;
    line-height: 1.4;
    box-shadow: var(--brutalist-shadow); /* Default brutalist shadow */
    background-color: var(--surface-light); /* Base for non-primary */
    color: var(--text-light-bg);
}
.button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 6px 6px 0px var(--text-light-bg);
}
.button:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 2px 2px 0px var(--text-light-bg);
}

.button.is-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--brutalist-shadow-dark-bg); /* Use dark bg shadow because button is dark */
}
.button.is-primary:hover {
    background-color: var(--primary-color-dark);
    box-shadow: 6px 6px 0px var(--primary-color-dark);
}
.button.is-primary:active {
    box-shadow: 2px 2px 0px var(--primary-color-dark);
}

.button.is-primary.is-outlined {
    background-color: transparent;
    color: var(--primary-color);
    border: var(--brutalist-border);
    border-color: var(--primary-color);
    box-shadow: none; /* Outlined often has no shadow or different one */
}
.button.is-primary.is-outlined:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--brutalist-shadow-dark-bg);
}
.button.is-link { /* For "Lire la suite" type links if styled as buttons */
    background-color: var(--accent-color-2);
    color: white;
    box-shadow: var(--brutalist-shadow-dark-bg);
}
.button.is-link:hover {
    background-color: #732d91; /* Darker accent-2 */
    box-shadow: 6px 6px 0px #732d91;
}
.button.is-link.is-outlined {
    background-color: transparent;
    color: var(--accent-color-2);
    border: 2px solid var(--accent-color-2);
    box-shadow: none;
}
.button.is-link.is-outlined:hover {
    background-color: var(--accent-color-2);
    color: white;
    box-shadow: var(--brutalist-shadow-dark-bg);
}

/* Neumorphic Styles */
.neumorphic, .neumorphic-panel, .neumorphic-form, .neumorphic-indented {
    background-color: var(--background-light); /* Base for neumorphic elements */
    border-radius: 20px;
    box-shadow: var(--shadow-dark), var(--shadow-light);
    padding: var(--spacing-md);
    transition: transform var(--transition-speed-normal) var(--transition-easing-smooth),
                box-shadow var(--transition-speed-normal) var(--transition-easing-smooth);
}
.neumorphic:hover, .neumorphic-panel:hover {
    transform: translateY(-4px);
    box-shadow: 10px 10px 20px rgba(0,0,0,0.17), -10px -10px 20px rgba(255,255,255,0.75);
}
.neumorphic-indented {
    box-shadow: var(--shadow-inset-dark), var(--shadow-inset-light);
}
.neumorphic-input, .neumorphic-textarea {
    background-color: var(--background-light);
    border: none;
    border-radius: 10px;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 1rem;
    color: var(--text-light-bg);
    box-shadow: var(--shadow-inset-dark), var(--shadow-inset-light);
    transition: box-shadow var(--transition-speed-fast) ease-in-out;
    width: 100%;
}
.neumorphic-input:focus, .neumorphic-textarea:focus {
    outline: none;
    box-shadow: var(--shadow-inset-dark), var(--shadow-inset-light),
                0 0 0 2px var(--primary-color); /* Focus ring */
}

/* Card Styles */
.card { /* Bulma card base */
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--surface-light); /* Default card background */
    border-radius: 15px; /* Softer than general neumorphic components for subtlety */
    overflow: hidden; /* Important for images and footers */
}
.card.neumorphic { /* If a card needs the full neumorphic treatment */
    background-color: var(--background-light);
    border-radius: 20px;
    box-shadow: var(--shadow-dark), var(--shadow-light);
}
.card .card-image { /* Container for the image */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Ensure image respects border radius if applied directly */
}
.card .card-image img {
    display: block;
    width: 100%;
    object-fit: cover;
    /* Height is best controlled by section or specific card type */
    /* border-top-left-radius: 15px;
    border-top-right-radius: 15px; */ /* If image is flush with top */
}
.card .card-content {
    flex-grow: 1;
    padding: var(--spacing-md);
    text-align: left; /* Default text alignment for cards */
}
.card .card-content .title, .card .card-content h3 {
    margin-bottom: var(--spacing-xs);
    color: var(--text-light-bg);
}
.card .card-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-sm);
}
.card .card-footer {
    border-top: 1px solid #e0e5ec; /* Light separator */
    margin-top: auto; /* Push footer to bottom */
    background-color: transparent;
}
.card .card-footer-item {
    font-weight: 600;
}

/* Hero Section */
#hero {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    color: #FFFFFF; /* Ensured white text as per requirement */
}
#hero .hero-body {
    padding-top: calc(var(--navbar-height) + var(--spacing-xl));
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--navbar-height)); /* Full viewport height minus navbar */
    position: relative; /* For z-index of content over pseudo-element if needed */
    z-index: 2;
}
#hero .hero-title {
    font-size: clamp(2.8rem, 6vw, 4rem);
    font-weight: 800;
    color: #FFFFFF !important;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    margin-bottom: var(--spacing-md);
}
#hero .hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    color: #FFFFFF !important;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.6);
    margin-bottom: var(--spacing-lg);
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}
#hero .highlight {
    color: var(--primary-color);
    /* text-shadow: 1px 1px 3px rgba(var(--primary-color), 0.5); */
}
#hero .hero-button { /* Using Bulma button classes */
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.1rem;
}

/* Insights Section */
#insights .card.neumorphic .card-image img {
    height: 220px;
}
#insights .card.neumorphic .button.is-link.is-outlined {
    margin-top: var(--spacing-sm);
}

/* Innovation Section */
#innovation h3.title.is-3 { margin-bottom: var(--spacing-sm); }
#innovation .innovation-stats .title.is-1 { font-size: clamp(2.5rem, 5vw, 3.5rem); margin-bottom: 0; }
#innovation .innovation-stats .heading { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }
#innovation figure.image img {
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    object-fit: cover;
}

/* Workshops Section (Accordion) */
.accordion-container { max-width: 800px; margin: 0 auto; }
.accordion-item.neumorphic-panel { margin-bottom: var(--spacing-md); }
.accordion-header {
    background-color: transparent;
    color: var(--text-light-bg);
    cursor: pointer;
    padding: var(--spacing-md);
    width: 100%; text-align: left; border: none; outline: none;
    display: flex; justify-content: space-between; align-items: center;
    font-family: var(--font-heading);
}
.accordion-header .title.is-5 { margin-bottom: 0; font-weight: 700; }
.accordion-icon {
    font-size: 1.5rem; font-weight: bold;
    transition: transform var(--transition-speed-normal) var(--transition-easing);
    color: var(--primary-color);
}
.accordion-item.active .accordion-icon { transform: rotate(45deg); }
.accordion-content {
    padding: 0 var(--spacing-md) var(--spacing-md) var(--spacing-md);
    max-height: 0; overflow: hidden;
    transition: max-height var(--transition-speed-normal) ease-in-out,
                padding var(--transition-speed-normal) ease-in-out;
}
.accordion-content p { font-size: 0.95rem; color: var(--text-muted); }

/* Case Studies Section */
#casestudies .card.neumorphic .card-image img { height: 240px; }
#casestudies .tag { font-weight: bold; text-transform: uppercase; font-size: 0.8rem; }

/* Testimonials Section */
#testimonials .testimonial-card.neumorphic-indented { padding: var(--spacing-lg); }
#testimonials .testimonial-quote {
    font-size: 1.05rem; font-style: italic; line-height: 1.8; position: relative;
    padding-left: var(--spacing-lg); color: var(--text-light-bg);
}
#testimonials .testimonial-quote::before {
    content: '“'; font-family: Georgia, serif; font-size: 3.5rem;
    color: var(--primary-color); position: absolute; left: -10px; top: -15px; opacity: 0.6;
}
#testimonials .testimonial-author { text-align: right; font-weight: 600; color: var(--primary-color); font-size: 0.95rem; }
#testimonials .testimonial-author strong { color: var(--text-light-bg); }

/* Pricing Section */
#pricing .pricing-card.neumorphic {
    text-align: center;
    border: 3px solid transparent; /* For popular plan border */
    background-color: var(--surface-dark); /* Cards on dark section background */
     --shadow-light-dark-bg: -8px -8px 16px rgba(255, 255, 255, 0.05);
     --shadow-dark-dark-bg: 8px 8px 16px rgba(0, 0, 0, 0.3);
    box-shadow: var(--shadow-dark-dark-bg), var(--shadow-light-dark-bg);
}
#pricing .pricing-card.neumorphic:hover {
    box-shadow: 12px 12px 24px rgba(0,0,0,0.35), -12px -12px 24px rgba(255,255,255,0.07);
}
#pricing .pricing-card .card-header { background-color: rgba(255,255,255, 0.05); border-bottom: 1px solid rgba(255,255,255,0.1); }
#pricing .pricing-card .card-header-title { color: var(--text-dark-bg); justify-content: center; }
#pricing .pricing-card .price { font-size: clamp(2.5rem,5vw,3.2rem); margin: var(--spacing-md) 0; color: var(--text-dark-bg); }
#pricing .pricing-card .price .is-size-5 { font-size: 1rem; opacity: 0.8; color: var(--text-dark-bg); }
#pricing .pricing-card .feature-list { list-style: none; padding: 0; margin-bottom: var(--spacing-lg); }
#pricing .pricing-card .feature-list li { padding: var(--spacing-xs) 0; border-bottom: 1px dashed rgba(255,255,255,0.15); color: var(--text-dark-bg); font-size: 0.95rem; }
#pricing .pricing-card .feature-list li:last-child { border-bottom: none; }
#pricing .pricing-card .card-footer-item.button { width: 100%; border-radius: 0 0 17px 17px; } /* Match card radius */

#pricing .popular-plan {
    border-color: var(--primary-color);
    transform: scale(1.03);
}
#pricing .popular-plan .card-header { background-color: var(--primary-color); }
#pricing .popular-plan .card-header-title { color: white !important; }
#pricing .popular-plan .price, #pricing .popular-plan .price .is-size-5 { color: var(--primary-color) !important; }
.section-dark #pricing .popular-plan .price, .section-dark #pricing .popular-plan .price .is-size-5 {
    color: var(--primary-color) !important; /* Keep popular plan price in primary color */
}


/* External Resources Section */
#external-resources .resource-card.neumorphic-panel { padding: var(--spacing-md); }
#external-resources .resource-card .title.is-5 a { color: var(--text-light-bg); font-weight: 700; }
#external-resources .resource-card .title.is-5 a:hover { color: var(--primary-color); }
#external-resources .resource-card p.is-size-6 { color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; }

/* Contact Section */
.neumorphic-form { padding: var(--spacing-lg); }
.neumorphic-form .label { font-family: var(--font-heading); font-weight: 600; color: var(--text-light-bg); margin-bottom: var(--spacing-xs); }
/* Input/Textarea styles already defined under .neumorphic-input */
.contact-details p { margin-bottom: var(--spacing-xs); font-size: 1.05rem; }
.contact-details p strong { font-family: var(--font-heading); }

/* Footer */
.footer {
    background-color: var(--background-dark);
    color: rgba(236, 240, 241, 0.7); /* Softer white for footer text */
    padding: var(--spacing-xl) var(--spacing-md);
}
.footer .title.footer-title { color: var(--text-dark-bg); font-size: 1.1rem; margin-bottom: var(--spacing-sm); text-transform: uppercase; letter-spacing: 0.5px; }
.footer p, .footer ul li { font-size: 0.9rem; margin-bottom: var(--spacing-xs); }
.footer a { color: rgba(236, 240, 241, 0.9); }
.footer a:hover { color: var(--primary-color); }
.footer hr { background-color: rgba(255,255,255,0.1); height: 1px; margin: var(--spacing-lg) 0; }
.footer .content p { text-align: center; font-size: 0.85rem; }
.footer .column ul { list-style: none; padding-left: 0; margin-left: 0; }

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s var(--transition-easing-smooth), transform 0.7s var(--transition-easing-smooth);
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
/* Data-delay specific transitions (optional) */
.animate-on-scroll[data-delay="100"].is-visible { transition-delay: 0.1s; }
.animate-on-scroll[data-delay="200"].is-visible { transition-delay: 0.2s; }
.animate-on-scroll[data-delay="300"].is-visible { transition-delay: 0.3s; }
.animate-on-scroll[data-delay="400"].is-visible { transition-delay: 0.4s; }

/* Privacy & Terms Pages */
.privacy-content-page, .terms-content-page {
    padding-top: calc(var(--navbar-height) + var(--spacing-lg));
    padding-bottom: var(--spacing-xl);
    background-color: white; /* Clean background for text content */
}
.privacy-content-page .container, .terms-content-page .container {
    max-width: 800px;
}
.privacy-content-page h1, .terms-content-page h1 { text-align: center; margin-bottom: var(--spacing-lg); }
.privacy-content-page h2, .terms-content-page h2 { margin-top: var(--spacing-lg); margin-bottom: var(--spacing-sm); color: var(--primary-color); }
.privacy-content-page p, .terms-content-page p { margin-bottom: var(--spacing-md); line-height: 1.8; font-size: 1.05rem; color: #444; }
.privacy-content-page ul, .terms-content-page ul { margin-left: var(--spacing-md); margin-bottom: var(--spacing-md); list-style: disc; }
.privacy-content-page li, .terms-content-page li { margin-bottom: var(--spacing-xs); color: #444; }

/* Success Page */
.success-page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    background-color: var(--background-light);
    padding: var(--spacing-lg);
}
.success-page-container .success-card {
    max-width: 550px;
    width: 100%;
    padding: var(--spacing-xl) var(--spacing-lg); /* More padding for success card */
}
.success-page-container .success-icon {
    font-size: 4.5rem; /* Larger icon */
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    /* Example: using a checkmark character if no icon font */
}
.success-page-container .success-icon::before {
    content: '✔'; /* Simple checkmark */
    display: block;
    line-height: 1;
}
.success-page-container .title {
    color: var(--text-light-bg);
    margin-bottom: var(--spacing-sm);
}
.success-page-container p {
    color: var(--text-muted);
    margin-bottom: var(--spacing-lg);
    font-size: 1.1rem;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .section {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
    .columns.is-multiline .column {
        margin-bottom: var(--spacing-md); /* Space between stacked cards */
    }
    #hero .hero-body {
        padding-top: calc(var(--navbar-height) + var(--spacing-lg));
    }
    #innovation .columns.is-vcentered.reverse-columns-mobile {
        flex-direction: column-reverse; /* Manual reverse for non-Bulma is-flex */
    }
    #innovation .columns.is-vcentered.reverse-columns-mobile .column:first-child {
        margin-top: var(--spacing-lg); /* Space when image stacks below text */
    }
}

/* Cookie Popup - if styles are not inline in HTML */
/*
#cookie-popup {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background-color: rgba(0,0,0,0.9); color: white;
    padding: var(--spacing-sm) var(--spacing-md); text-align: center; z-index: 9999;
    font-family: var(--font-body);
}
#cookie-popup p { margin: 0 0 var(--spacing-xs) 0; font-size: 0.9rem; color: white; }
#cookie-popup a { color: var(--primary-color); text-decoration: underline; }
#accept-cookie {
    background-color: var(--primary-color); color: white; border: none;
    padding: var(--spacing-xs) var(--spacing-sm); border-radius: 5px; cursor: pointer;
    font-size: 0.9rem; font-weight: 500;
}
*/