/* style.css */

/*------------------------------------------------------------------
[Table of Contents]

1. Root Variables
2. Global Styles
   - Typography
   - Links
   - Buttons
   - Forms
   - Utility Classes
3. Layout (Bulma enhancements if any)
4. Header / Navigation
5. Main Content & Sections
   - General Section Styling
   - Hero Section (#hero)
   - Contact Form Top (#contact-form-top)
   - External Resources (#external-resources)
   - Webinars (#webinars)
     - Timeline
   - Clientele (#clientele)
   - Sustainability (#sustainability)
   - Testimonials (#testimonials)
     - Testimonial Slider & Cards
   - Media (#media)
   - Behind the Scenes (#behind-the-scenes)
6. Card Component Styling
7. Footer
8. Parallax & Backgrounds
9. Animations & Transitions (General)
10. Specific Page Styles
    - success.html
    - privacy.html, terms.html
11. Cookie Consent Popup
12. Responsive Design (Media Queries)
-------------------------------------------------------------------*/

/* 1. Root Variables
-------------------------------------------------------------------*/
:root {
    --primary-color: #0D65A0; /* Steel Blue - Analogous 2 */
    --primary-color-darker: #0A5080;
    --secondary-color: #0DA065; /* Sea Green - Analogous 1 */
    --secondary-color-darker: #0A8050;
    --accent-color: #F0A500; /* Orange-Yellow - Accent */
    --accent-color-darker: #D08D00;

    --base-color-main: #0D8A8A; /* Tealish Blue - Base */

    --text-color: #333333; /* Dark Gray for readability */
    --text-light-color: #FFFFFF;
    --text-muted-color: #555555;
    --section-title-color: #222222; /* Darker for titles */
    --hero-text-color: #FFFFFF;

    --bg-light-color: #FFFFFF;
    --bg-medium-color: #F4F7F6; /* Light gray for subtle section backgrounds */
    --bg-dark-color: #1A202C; /* Very Dark Blue/Gray */

    --border-color: #D1D5DB; /* Light Gray for borders */
    --biomorphic-radius-smooth: 20px; /* For general smooth curves */
    --biomorphic-radius-varied: 15px 35px 20px 30px; /* For more organic shapes */
    --biomorphic-radius-button: 30px;

    --font-family-headings: 'Playfair Display', serif;
    --font-family-body: 'Source Sans Pro', sans-serif;

    --header-height: 70px; /* Approximate, adjust as needed */
    --section-padding-vertical: 4rem;
    --section-padding-horizontal: 1.5rem;
}

/* 2. Global Styles
-------------------------------------------------------------------*/
html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size */
}

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

/* Typography */
h1, h2, h3, h4, h5, h6,
.title, .subtitle {
    font-family: var(--font-family-headings);
    color: var(--section-title-color);
    font-weight: 700;
}

.title.is-1 { font-size: 3rem; margin-bottom: 1.5rem; }
.title.is-2 { font-size: 2.5rem; margin-bottom: 1.25rem; }
.title.is-3 { font-size: 2rem; margin-bottom: 1rem; }
.title.is-4 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.subtitle { color: var(--text-muted-color); font-family: var(--font-family-body); font-weight: 400; }

p {
    margin-bottom: 1.25rem;
    color: var(--text-color);
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
}
a:hover {
    color: var(--primary-color-darker);
    text-decoration: underline;
}
a.read-more {
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: underline;
    display: inline-block;
    padding: 0.25em 0;
    transition: color 0.3s ease, letter-spacing 0.3s ease;
}
a.read-more:hover {
    color: var(--accent-color-darker);
    letter-spacing: 0.5px;
}


/* Buttons */
.button, button, input[type="submit"], input[type="button"] {
    font-family: var(--font-family-body);
    font-weight: 600;
    border-radius: var(--biomorphic-radius-button);
    padding: 0.75em 1.75em;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.button:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.button:active, button:active, input[type="submit"]:active, input[type="button"]:active {
    transform: translateY(-1px) scale(0.99);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.button.is-primary {
    background-color: var(--primary-color);
    color: var(--text-light-color);
}
.button.is-primary:hover {
    background-color: var(--primary-color-darker);
    color: var(--text-light-color);
}

.button.is-secondary {
    background-color: var(--secondary-color);
    color: var(--text-light-color);
}
.button.is-secondary:hover {
    background-color: var(--secondary-color-darker);
    color: var(--text-light-color);
}

.button.is-accent {
    background-color: var(--accent-color);
    color: var(--text-light-color);
}
.button.is-accent:hover {
    background-color: var(--accent-color-darker);
    color: var(--text-light-color);
}

.button.is-biomorphic {
    /* Additional biomorphic styling if needed beyond border-radius */
    /* Example: slightly asymmetric padding or specific border effect */
}


/* Forms */
.input.is-biomorphic,
.textarea.is-biomorphic {
    border-radius: var(--biomorphic-radius-smooth);
    border: 1px solid var(--border-color);
    padding: 0.75em 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: var(--font-family-body);
}
.input.is-biomorphic:focus,
.textarea.is-biomorphic:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.125em rgba(var(--primary-color), 0.25);
}
.label {
    color: var(--text-color);
    font-weight: 600;
}

/* Utility Classes */
.image-centered {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
}
.content-over-parallax {
    position: relative;
    z-index: 2;
}
.text-shadow-strong {
    text-shadow: 2px 2px 5px rgba(0,0,0,0.6);
}
.section-title {
    color: var(--section-title-color);
    margin-bottom: 1rem; /* Default margin for section titles */
    padding-bottom: 0.5rem;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 0.5rem auto 1.5rem; /* center the line */
}


/* 3. Layout
-------------------------------------------------------------------*/
.container {
    max-width: 1140px; /* Standard container width */
    margin: 0 auto;
    padding-left: var(--section-padding-horizontal);
    padding-right: var(--section-padding-horizontal);
}

/* 4. Header / Navigation
-------------------------------------------------------------------*/
.header.sticky-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.navbar {
    min-height: var(--header-height);
}
.navbar-item.logo-text {
    font-family: var(--font-family-headings);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
}
.navbar-item, .navbar-link {
    font-family: var(--font-family-body);
    font-weight: 600;
    color: var(--text-color);
    transition: color 0.3s ease, background-color 0.3s ease;
}
.navbar-item:hover, .navbar-link:hover {
    color: var(--primary-color);
    background-color: transparent; /* Override Bulma's default hover bg */
}
.navbar-burger {
    color: var(--primary-color);
}
.navbar-menu {
    box-shadow: none; /* remove default bulma shadow on mobile */
}

/* 5. Main Content & Sections
-------------------------------------------------------------------*/
/* General Section Styling */
.section {
    padding-top: var(--section-padding-vertical);
    padding-bottom: var(--section-padding-vertical);
    position: relative; /* For parallax children or overlays */
}
.section:nth-child(even) { /* Alternate section background for visual rhythm */
    /* background-color: var(--bg-medium-color); */
}


/* Hero Section (#hero) */
#hero {
    color: var(--hero-text-color);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden; /* For parallax effect */
}
.hero-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7)); /* Dark overlay for text readability */
    z-index: 1;
}
#hero .container {
    position: relative;
    z-index: 2; /* Content above overlay */
}
.hero-title {
    color: var(--hero-text-color) !important; /* Important to override Bulma's .title color */
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}
.hero-subtitle {
    color: var(--hero-text-color) !important; /* Important to override Bulma's .subtitle color */
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
#hero .button.is-primary {
    background-color: var(--accent-color); /* Use accent for hero CTA */
    border-color: var(--accent-color);
}
#hero .button.is-primary:hover {
    background-color: var(--accent-color-darker);
    border-color: var(--accent-color-darker);
}

/* Contact Form Top (#contact-form-top) */
.contact-form-section--top {
    background-color: var(--bg-medium-color);
    padding-top: calc(var(--section-padding-vertical) / 1.5);
    padding-bottom: calc(var(--section-padding-vertical) / 1.5);
}
.contact-form-section--top .section-title {
    margin-bottom: 1rem;
}
.contact-form-section--top .subtitle {
    margin-bottom: 2rem;
}


/* External Resources (#external-resources) */
#external-resources .card.resource-card {
    background-color: var(--bg-light-color);
    border-radius: var(--biomorphic-radius-smooth);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* For equal height columns */
    display: flex;
    flex-direction: column;
}
#external-resources .card.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
#external-resources .card.resource-card .card-content {
    flex-grow: 1;
    text-align: left;
}
#external-resources .card.resource-card .title.is-5 a {
    color: var(--primary-color);
}
#external-resources .card.resource-card .title.is-5 a:hover {
    color: var(--primary-color-darker);
}


/* Webinars (#webinars) */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 2rem auto;
}
.timeline::before { /* Central line */
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--border-color);
    border-radius: 3px;
}
.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 50%;
}
.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 30px; /* Space from center line */
}
.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 30px; /* Space from center line */
}
.timeline-marker {
    position: absolute;
    top: 0;
    width: 20px;
    height: 20px;
    background-color: var(--secondary-color);
    border: 3px solid var(--bg-light-color);
    border-radius: var(--biomorphic-radius-varied); /* Biomorphic shape */
    z-index: 10;
    box-shadow: 0 0 0 3px var(--secondary-color);
    transform: scale(1.1);
}
.timeline-item:nth-child(odd) .timeline-marker {
    right: -10px; /* Position on the central line */
}
.timeline-item:nth-child(even) .timeline-marker {
    left: -10px; /* Position on the central line */
}
.timeline-marker.is-active {
    background-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--accent-color);
    animation: pulseMarker 1.5s infinite;
}
@keyframes pulseMarker {
    0% { transform: scale(1.1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1.1); }
}
.timeline-content.card {
    position: relative;
    padding: 1.5rem;
    background-color: var(--bg-light-color);
    border-radius: var(--biomorphic-radius-smooth);
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    text-align: left;
}
.timeline-content.card .title.is-4 {
    color: var(--primary-color);
}


/* Clientele (#clientele) */
#clientele .client-logos img {
    max-height: 75px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}
#clientele .client-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}
.additionnal-client-text {
    margin-top: 2rem;
    color: var(--text-muted-color);
}

/* Sustainability (#sustainability) */
#sustainability .image-centered {
    border-radius: var(--biomorphic-radius-smooth);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: 1.5rem;
}
#sustainability .section--biomorphic-bg {
    background-size: cover;
    background-position: center;
}

/* Testimonials (#testimonials) */
.testimonial-slider {
    position: relative;
    /* JS will handle showing/hiding cards */
}
.testimonial-card.card {
    background-color: var(--bg-medium-color);
    border-radius: var(--biomorphic-radius-smooth);
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.testimonial-card .card-image { /* Container for the avatar image */
    width: 100px; /* Avatar size */
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.testimonial-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-muted-color);
    margin-bottom: 1rem;
}
.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
}
.slider-nav .button {
    margin: 0 0.5rem;
}

/* Media (#media) */
#media .media-logos img {
    max-height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}
#media .media-logos img:hover {
    transform: scale(1.05);
}
.additionnal-media-text {
    margin-top: 2rem;
    color: var(--text-muted-color);
}

/* Behind the Scenes (#behind-the-scenes) */
#behind-the-scenes .image-container img {
    border-radius: var(--biomorphic-radius-smooth);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
#behind-the-scenes h3.title.is-4 {
    color: var(--secondary-color);
    margin-top: 1.5rem;
}
#behind-the-scenes h3.title.is-4:first-of-type {
    margin-top: 0;
}


/* 6. Card Component Styling (General, if not covered above)
-------------------------------------------------------------------*/
.card { /* General card defaults, if not Bulma's or overridden */
    background-color: var(--bg-light-color);
    border-radius: var(--biomorphic-radius-smooth);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden; /* Important for child elements with border-radius */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers card-image and card-content horizontally */
    text-align: center; /* Centers text content */
}
.card .card-image { /* Generic image container in a card */
    width: 100%; /* Default to full width of card */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* For object-fit */
}
/* If image needs fixed height and cover:
.card .card-image {
    height: 200px;
}
.card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
*/
.card .card-content {
    padding: 1.5rem;
    width: 100%; /* Ensure content takes up width */
}


/* 7. Footer
-------------------------------------------------------------------*/
.footer {
    background-color: var(--bg-dark-color);
    color: var(--text-light-color);
    padding: 3rem 1.5rem 2rem;
}
.footer .footer-title {
    color: var(--text-light-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.footer p, .footer ul li a {
    color: #A0AEC0; /* Lighter gray for footer text */
    font-size: 0.95rem;
}
.footer ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}
.footer ul li {
    margin-bottom: 0.5rem;
}
.footer ul li a:hover {
    color: var(--accent-color);
    text-decoration: none;
}
.footer .content p { /* Copyright text */
    color: #718096; /* Even lighter gray for less prominent text */
    font-size: 0.9rem;
    margin-top: 2rem;
}


/* 8. Parallax & Backgrounds
-------------------------------------------------------------------*/
.section-parallax {
    background-attachment: fixed; /* Simple parallax */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    color: var(--text-light-color); /* Default text color for parallax sections */
}
.section-parallax .section-title,
.section-parallax .subtitle,
.section-parallax p,
.section-parallax .title,
.section-parallax .timeline-content.card .title,
.section-parallax .timeline-content.card p,
.section-parallax .timeline-content.card .subtitle {
    color: var(--text-color); /* Override for content within cards or specific elements */
}
.section-parallax .timeline-content.card {
    background-color: rgba(255, 255, 255, 0.9); /* Slightly transparent card on parallax */
}

/* Ensure text on image BG always has overlay */
.background-overlay-light { /* For parallax where text might be dark */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255,255,255,0.1), rgba(255,255,255,0.3));
    z-index: 1;
}

/* 9. Animations & Transitions (General - Animate.css used mostly)
-------------------------------------------------------------------*/
.animate__animated {
    animation-duration: 0.8s;
}
.animate__delay-0_2s { animation-delay: 0.2s; }
.animate__delay-0_4s { animation-delay: 0.4s; }
.animate__delay-0_5s { animation-delay: 0.5s; }
.animate__delay-0_6s { animation-delay: 0.6s; }
.animate__delay-0_8s { animation-delay: 0.8s; }
.animate__delay-1s { animation-delay: 1s; }
.animate__delay-1_5s { animation-delay: 1.5s; }
.animate__delay-2s { animation-delay: 2s; }


/* 10. Specific Page Styles
-------------------------------------------------------------------*/
/* success.html */
body.success-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--bg-medium-color);
}
.success-page .main-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.success-page main {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}
.success-content {
    background-color: var(--bg-light-color);
    padding: 3rem;
    border-radius: var(--biomorphic-radius-smooth);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 600px;
}
.success-content .icon {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

/* privacy.html, terms.html */
body.privacy-page main,
body.terms-page main {
    padding-top: calc(var(--header-height) + 2rem); /* Ensure content below sticky header */
    padding-bottom: 2rem;
}
.legal-content-container {
    background-color: var(--bg-light-color);
    padding: 2rem;
    border-radius: var(--biomorphic-radius-smooth);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-top: 2rem; /* Spacing from potential page title */
}
.legal-content-container h1,
.legal-content-container h2 {
    margin-bottom: 1.5rem;
}
.legal-content-container p {
    margin-bottom: 1rem;
    line-height: 1.8;
}
.legal-content-container ul {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 1rem;
}


/* 11. Cookie Consent Popup
-------------------------------------------------------------------*/
#cookieConsentPopup {
    /* Base styles are inline, this is for enhancements if needed */
    font-family: var(--font-family-body);
}
#cookieConsentPopup p a {
    color: var(--secondary-color); /* Match button color */
}
#acceptCookieConsent {
    background-color: var(--secondary-color);
    border-radius: var(--biomorphic-radius-button);
    padding: 0.5em 1.2em;
    text-transform: uppercase;
}
#acceptCookieConsent:hover {
    background-color: var(--secondary-color-darker);
}


/* 12. Responsive Design (Media Queries)
-------------------------------------------------------------------*/
@media screen and (max-width: 1023px) { /* Bulma's $desktop breakpoint */
    .navbar-menu {
        background-color: var(--bg-light-color);
        box-shadow: 0 8px 16px rgba(10,10,10,.1);
        padding: 0.5rem 0;
        border-radius: 0 0 var(--biomorphic-radius-smooth) var(--biomorphic-radius-smooth);
    }
    .navbar-item {
        padding: 0.75rem 1rem;
    }
    .timeline::before {
        left: 10px; /* Adjust timeline for mobile */
        transform: translateX(0);
    }
    .timeline-item {
        width: 100%;
        padding-left: 40px; /* Space from the line */
        padding-right: 0;
        left: 0 !important; /* Override inline style from JS if any, or general rule */
    }
    .timeline-item:nth-child(even) {
        padding-left: 40px; /* Space from the line */
    }
    .timeline-marker {
        left: 0px !important; /* Position on the line */
    }
    .timeline-item:nth-child(odd) .timeline-marker,
    .timeline-item:nth-child(even) .timeline-marker {
        right: auto;
        left: 0px; /* Marker on left for all items */
    }
}

@media screen and (max-width: 768px) { /* Bulma's $tablet breakpoint */
    :root {
        --section-padding-vertical: 3rem;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .title.is-1 { font-size: 2.5rem; }
    .title.is-2 { font-size: 2rem; }
    .title.is-3 { font-size: 1.75rem; }

    .columns.is-multiline .column.is-one-quarter,
    .columns.is-multiline .column.is-one-third {
        width: 50% !important; /* Make client/media logos 2 per row */
    }
    #external-resources .column.is-one-third {
        width: 100% !important; /* Resource cards full width on mobile */
    }

    #contact-form-top .column.is-two-thirds,
    #sustainability .column.is-two-thirds {
        width: 100% !important;
    }
    .footer .columns {
        text-align: center;
    }
    .footer .column {
        margin-bottom: 1.5rem;
    }

}
@media screen and (max-width: 480px) {
    .columns.is-multiline .column.is-one-quarter,
    .columns.is-multiline .column.is-one-third {
        width: 100% !important; /* Make client/media logos 1 per row on very small screens */
    }
    .button, button, input[type="submit"], input[type="button"] {
        padding: 0.6em 1.2em;
        font-size: 0.85rem;
    }
    #cookieConsentPopup {
        padding: 10px;
    }
    #cookieConsentPopup p {
        font-size: 0.8em;
        margin-bottom: 8px;
    }
    #acceptCookieConsent {
        padding: 8px 15px;
    }
}