/* ==========================================================================
   1. CSS Variables
   ========================================================================== */
:root {
    /* Analogous Color Palette (Base: Teal/Greenish) */
    --color-primary: #4ECCA3;        /* Teal/Greenish - Main interactive elements */
    --color-primary-dark: #3A9F7D;   /* Darker Teal - Hover/active states */
    --color-primary-light: #A8E6CF;  /* Lighter Teal/Mint - Subtle backgrounds, accents */

    --color-accent: #FF8C42;         /* Bright Orange - Contrasting accent for CTAs, badges */
    --color-accent-dark: #E07B39;    /* Darker Orange */

    /* Neumorphism & General Backgrounds */
    --color-neumorphic-bg: #EAF0F6;  /* Very Light Cool Gray - Base for neumorphic elements */
    --color-bg-light: #FFFFFF;       /* White - General page background */
    --color-bg-alt: #F7F9FC;         /* Off-White/Very Light Gray - Alternating sections */

    /* Shadows for Neumorphism */
    --color-shadow-light: rgba(255, 255, 255, 0.9);
    --color-shadow-dark: rgba(190, 200, 215, 0.65);
    --color-inner-shadow-light: rgba(255, 255, 255, 0.7);
    --color-inner-shadow-dark: rgba(190, 200, 215, 0.8);

    /* Text Colors */
    --color-text-dark: #2D3748;      /* Dark Gray/Blue - Default text on light backgrounds */
    --color-text-medium: #4A5568;    /* Medium Gray - Slightly lighter text */
    --color-text-light: #FFFFFF;     /* White - Text on dark backgrounds */
    --color-text-muted: #718096;     /* Light Gray - Subtitles, meta info */
    --color-text-link: var(--color-primary-dark);
    --color-text-link-hover: var(--color-primary);

    /* Overlays & Borders */
    --color-bg-dark-overlay: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
    --color-border: #DDE3EA;

    /* Fonts */
    --font-primary: 'Poppins', Arial, sans-serif;
    --font-secondary: 'Work Sans', Arial, sans-serif;

    /* Spacing & Sizing */
    --spacing-unit: 8px;
    --header-height: 75px;
    --content-max-width: 1200px;

    /* Borders & Radii */
    --border-radius-sm: 5px;
    --border-radius-md: 10px;
    --border-radius-lg: 15px;
    --neumorphic-radius: 20px; /* Common for neumorphic elements */

    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-medium: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;

    /* Box Shadows (Neumorphic and Standard) */
    --box-shadow-neumorphic: 6px 6px 12px var(--color-shadow-dark), -6px -6px 12px var(--color-shadow-light);
    --box-shadow-neumorphic-inset: inset 5px 5px 10px var(--color-shadow-dark), inset -5px -5px 10px var(--color-shadow-light);
    --box-shadow-neumorphic-pressed: inset 3px 3px 6px var(--color-shadow-dark), inset -3px -3px 6px var(--color-shadow-light);
    --box-shadow-card: 0 5px 15px rgba(0, 0, 0, 0.08);
    --text-shadow-subtle: 0 1px 3px rgba(0,0,0,0.1);
    --text-shadow-on-dark-bg: 1px 1px 3px rgba(0,0,0,0.6); /* For light text on dark/image backgrounds */
}

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

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

body {
    font-family: var(--font-secondary);
    color: var(--color-text-dark);
    background-color: var(--color-bg-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Prevent horizontal scroll from AOS or other animations */
}

.main-container {
    width: 100%;
    overflow: hidden; /* Contains floats and margins */
}

/* ==========================================================================
   3. Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--color-text-dark);
    line-height: 1.3;
    margin-bottom: calc(var(--spacing-unit) * 2); /* 16px */
    text-shadow: var(--text-shadow-subtle);
}

h1 { font-size: 2.8rem; margin-bottom: calc(var(--spacing-unit) * 3); } /* 44.8px */
h2 { font-size: 2.2rem; } /* 35.2px */
h3 { font-size: 1.6rem; } /* 25.6px */
h4 { font-size: 1.3rem; } /* 20.8px */

p {
    margin-bottom: calc(var(--spacing-unit) * 2); /* 16px */
    font-size: 1rem; /* 16px */
}

a {
    color: var(--color-text-link);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover, a:focus {
    color: var(--color-text-link-hover);
    text-decoration: underline;
}

ul, ol {
    list-style-position: inside;
    margin-bottom: calc(var(--spacing-unit) * 2);
    padding-left: calc(var(--spacing-unit) * 2);
}
ul li, ol li {
    margin-bottom: var(--spacing-unit);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.responsive-img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   4. Layout Utilities
   ========================================================================== */
.container {
    width: 90%;
    max-width: var(--content-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-unit);
    padding-right: var(--spacing-unit);
}

.section-padding {
    padding-top: calc(var(--spacing-unit) * 8); /* 64px */
    padding-bottom: calc(var(--spacing-unit) * 8);
}

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

.text-center {
    text-align: center;
}

.section-title {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 1.5); /* 12px */
    color: var(--color-text-dark);
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: calc(var(--spacing-unit) * 5); /* 40px */
    color: var(--color-text-medium);
    font-size: 1.1rem;
}

/* Basic Columns (like Bulma structure in HTML) */
.columns {
    display: flex;
    flex-wrap: wrap;
    margin-left: calc(-1 * var(--spacing-unit));
    margin-right: calc(-1 * var(--spacing-unit));
    margin-top: calc(-1 * var(--spacing-unit));
}
.columns:not(:last-child) {
    margin-bottom: calc(var(--spacing-unit) * 2);
}
.column {
    display: block;
    flex-basis: 0;
    flex-grow: 1;
    flex-shrink: 1;
    padding: var(--spacing-unit);
}
.column.is-one-third { flex: none; width: 33.3333%; }
.column.is-half { flex: none; width: 50%; }
.column.is-two-thirds { flex: none; width: 66.6667%; }
.column.is-full { flex: none; width: 100%; }

.columns.is-multiline { flex-wrap: wrap; }
.columns.is-centered { justify-content: center; }
.columns.is-vcentered { align-items: center; }

/* ==========================================================================
   5. Global Components (Buttons, Forms, Cards)
   ========================================================================== */

/* Buttons */
.btn, button, input[type="submit"], input[type="button"] {
    display: inline-block;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 3); /* 12px 24px */
    border-radius: var(--border-radius-md);
    transition: all var(--transition-medium);
    background-color: var(--color-neumorphic-bg); /* Base for neumorphic buttons */
    color: var(--color-text-dark);
    box-shadow: var(--box-shadow-neumorphic);
}

.btn:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover {
    box-shadow: var(--box-shadow-neumorphic-inset);
    color: var(--color-primary);
}
.btn:active, button:active, input[type="submit"]:active, input[type="button"]:active,
.btn.active, button.active, input[type="submit"].active, input[type="button"].active {
    box-shadow: var(--box-shadow-neumorphic-pressed);
    transform: translateY(1px);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border-color: var(--color-primary);
    box-shadow: 3px 3px 6px color-mix(in srgb, var(--color-primary) 70%, black),
                -3px -3px 6px color-mix(in srgb, var(--color-primary) 70%, white);
}
.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-text-light);
    box-shadow: inset 2px 2px 4px color-mix(in srgb, var(--color-primary-dark) 80%, black),
                inset -2px -2px 4px color-mix(in srgb, var(--color-primary-dark) 80%, white 40%);
}

.btn-secondary {
    background-color: var(--color-accent);
    color: var(--color-text-light);
    border-color: var(--color-accent);
     box-shadow: 3px 3px 6px color-mix(in srgb, var(--color-accent) 70%, black),
                -3px -3px 6px color-mix(in srgb, var(--color-accent) 70%, white);
}
.btn-secondary:hover {
    background-color: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    color: var(--color-text-light);
    box-shadow: inset 2px 2px 4px color-mix(in srgb, var(--color-accent-dark) 80%, black),
                inset -2px -2px 4px color-mix(in srgb, var(--color-accent-dark) 80%, white 40%);
}

.btn-link {
    background-color: transparent;
    box-shadow: none;
    color: var(--color-text-link);
    padding: calc(var(--spacing-unit)*0.5) 0;
    border-radius: 0;
    font-weight: 500;
}
.btn-link:hover {
    color: var(--color-text-link-hover);
    text-decoration: underline;
    box-shadow: none;
}
.btn-submit { /* Specific class from HTML form */
    width: 100%;
    margin-top: var(--spacing-unit);
}


/* Forms */
.neumorphic-form .form-group {
    margin-bottom: calc(var(--spacing-unit) * 2.5); /* 20px */
}

.neumorphic-form label {
    display: block;
    font-family: var(--font-primary);
    font-weight: 500;
    margin-bottom: var(--spacing-unit);
    color: var(--color-text-medium);
}

.neumorphic-form input[type="text"],
.neumorphic-form input[type="email"],
.neumorphic-form input[type="tel"],
.neumorphic-form input[type="password"],
.neumorphic-form textarea,
.neumorphic-form select {
    width: 100%;
    padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 2); /* 12px 16px */
    font-family: var(--font-secondary);
    font-size: 1rem;
    color: var(--color-text-dark);
    background-color: var(--color-neumorphic-bg);
    border: none; /* Neumorphic usually no border, relies on shadow */
    border-radius: var(--border-radius-lg); /* Larger radius for neumorphism */
    box-shadow: var(--box-shadow-neumorphic-inset);
    transition: box-shadow var(--transition-medium);
}
.neumorphic-form input[type="text"]::placeholder,
.neumorphic-form input[type="email"]::placeholder,
.neumorphic-form textarea::placeholder {
    color: var(--color-text-muted);
}
.neumorphic-form input[type="text"]:focus,
.neumorphic-form input[type="email"]:focus,
.neumorphic-form input[type="tel"]:focus,
.neumorphic-form input[type="password"]:focus,
.neumorphic-form textarea:focus,
.neumorphic-form select:focus {
    outline: none;
    box-shadow: var(--box-shadow-neumorphic-inset), 0 0 0 2px var(--color-primary-light); /* Focus ring */
}
.neumorphic-form textarea {
    min-height: 120px;
    resize: vertical;
}
.neumorphic-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23333745'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right calc(var(--spacing-unit) * 2) center;
    background-size: 1.5em;
    padding-right: calc(var(--spacing-unit) * 5);
}

/* Cards */
.card {
    background-color: var(--color-neumorphic-bg);
    border-radius: var(--neumorphic-radius);
    box-shadow: var(--box-shadow-neumorphic);
    padding: calc(var(--spacing-unit) * 2.5); /* 20px */
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
    display: flex;
    flex-direction: column;
    height: 100%; /* Make cards in a row same height if needed by parent flex */
    overflow: hidden; /* Important for neumorphic appearance with images */
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 10px 10px 20px var(--color-shadow-dark), -10px -10px 20px var(--color-shadow-light);
}
.card .card-image, .card .image-container { /* As per strict rule */
    width: 100%; /* Fill the card width */
    margin-bottom: calc(var(--spacing-unit) * 2);
    border-radius: var(--border-radius-lg); /* Apply radius to image container */
    overflow: hidden; /* Clip image to rounded corners */
    height: 200px; /* Fixed height as per requirement */
    display: flex;
    align-items: center;
    justify-content: center;
}
.card .card-image img, .card .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover fixed height container */
    display: block;
}
.card .card-content {
    flex-grow: 1; /* Allows content to fill remaining space, useful for button alignment */
    display: flex;
    flex-direction: column;
    text-align: center; /* Center text content inside card */
}
.card .card-content h3, .card .card-content h4 {
    margin-top: 0;
    color: var(--color-text-dark);
}
.card .card-content p {
    font-size: 0.95rem;
    color: var(--color-text-medium);
    flex-grow: 1; /* Pushes button to bottom if card has varying text length */
}
.card .card-content .btn {
    margin-top: auto; /* Pushes button to bottom */
    align-self: center; /* Center button if it's not full width */
}

.neumorphic-img {
    border-radius: var(--neumorphic-radius);
    box-shadow: var(--box-shadow-neumorphic);
    padding: var(--spacing-unit); /* Optional: creates a small "frame" */
    background-color: var(--color-neumorphic-bg);
}
.neumorphic-img img {
    border-radius: calc(var(--neumorphic-radius) - var(--spacing-unit)); /* If padding is used */
}


/* Progress Indicators */
.progress-indicator-container {
    margin: calc(var(--spacing-unit) * 2) 0;
}
.progress-indicator-container label {
    display: block;
    margin-bottom: calc(var(--spacing-unit) * 0.5);
    font-size: 0.9rem;
    color: var(--color-text-medium);
}
.neumorphic-progress {
    width: 100%;
    height: 20px;
    appearance: none;
    border: none;
    border-radius: var(--border-radius-lg);
    background-color: var(--color-neumorphic-bg);
    box-shadow: var(--box-shadow-neumorphic-inset);
    overflow: hidden; /* Ensures progress bar respects border-radius */
}
.neumorphic-progress::-webkit-progress-bar {
    background-color: transparent; /* Handled by the element itself */
    border-radius: var(--border-radius-lg);
}
.neumorphic-progress::-webkit-progress-value {
    background-color: var(--color-primary);
    border-radius: var(--border-radius-lg) 0 0 var(--border-radius-lg); /* Smooth edge */
    transition: width var(--transition-slow);
    box-shadow: var(--box-shadow-neumorphic); /* Slight pop to the bar */
}
.neumorphic-progress::-moz-progress-bar { /* Firefox */
    background-color: var(--color-primary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-neumorphic);
}
.progress-indicator-container span {
    display: block;
    text-align: right;
    font-size: 0.9rem;
    color: var(--color-primary-dark);
    margin-top: calc(var(--spacing-unit) * 0.5);
}


/* ==========================================================================
   6. Header & Navigation
   ========================================================================== */
.site-header {
    background-color: var(--color-neumorphic-bg);
    padding: var(--spacing-unit) 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

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

.site-header .logo {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    text-shadow: 1px 1px 0px var(--color-shadow-light), -1px -1px 0px var(--color-shadow-dark);
}
.site-header .logo:hover {
    color: var(--color-primary-dark);
}

.main-nav .nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.main-nav .nav-links li {
    margin-left: calc(var(--spacing-unit) * 3); /* 24px */
}

.main-nav .nav-links a {
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--color-text-medium);
    text-decoration: none;
    padding: calc(var(--spacing-unit) * 0.5) var(--spacing-unit);
    border-radius: var(--border-radius-sm);
    transition: color var(--transition-fast), background-color var(--transition-fast);
}

.main-nav .nav-links a:hover,
.main-nav .nav-links a.active {
    color: var(--color-primary-dark);
    background-color: color-mix(in srgb, var(--color-primary-light) 40%, transparent);
}

.nav-toggle { /* Burger Menu Button */
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-unit);
    z-index: 1001; /* Above nav links on mobile */
    box-shadow: none;
}
.nav-toggle:hover { box-shadow: none; }
.nav-toggle:active { box-shadow: none; transform: none; }


.nav-toggle .hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-text-dark);
    position: relative;
    transition: transform var(--transition-medium), background-color var(--transition-medium);
}
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-text-dark);
    position: absolute;
    left: 0;
    transition: transform var(--transition-medium), top var(--transition-medium);
}
.nav-toggle .hamburger::before { top: -8px; }
.nav-toggle .hamburger::after { top: 8px; }

/* Active state for burger menu */
.nav-toggle.active .hamburger {
    background-color: transparent; /* Middle bar disappears */
}
.nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}
.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}


/* ==========================================================================
   7. Hero Section
   ========================================================================== */
.hero-section {
    padding-top: calc(var(--header-height) + var(--spacing-unit) * 5); /* Header_height + 40px */
    padding-bottom: calc(var(--spacing-unit) * 8); /* 64px */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    color: var(--color-text-light); /* Ensured by user requirement */
    display: flex;
    align-items: center;
    min-height: 80vh; /* Give it some decent height */
}

.hero-overlay { /* For background image readability */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg-dark-overlay);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px; /* Limit width of hero text for readability */
}

.hero-content h1 {
    color: var(--color-text-light); /* Ensured by user requirement */
    font-size: 3.2rem; /* Larger for hero */
    font-weight: 700;
    margin-bottom: calc(var(--spacing-unit) * 2.5);
    text-shadow: var(--text-shadow-on-dark-bg);
}

.hero-content p {
    color: var(--color-text-light); /* Ensured by user requirement */
    font-size: 1.25rem;
    margin-bottom: calc(var(--spacing-unit) * 4);
    line-height: 1.8;
    text-shadow: var(--text-shadow-on-dark-bg);
}

.contact-form-hero {
    background-color: rgba(234, 240, 246, 0.9); /* Semi-transparent Neumorphic BG */
    padding: calc(var(--spacing-unit) * 3);
    border-radius: var(--neumorphic-radius);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2); /* Softer shadow for on-image form */
    max-width: 550px;
    margin: calc(var(--spacing-unit) * 3) auto 0;
}
.contact-form-hero h2 {
    color: var(--color-text-dark); /* Override hero text color */
    text-shadow: none; /* Override hero text shadow */
    font-size: 1.8rem;
    margin-bottom: calc(var(--spacing-unit) * 2.5);
}
.contact-form-hero .form-group label {
    color: var(--color-text-medium); /* Darker labels */
    text-align: left;
}
.contact-form-hero .neumorphic-form input,
.contact-form-hero .neumorphic-form select {
    background-color: var(--color-neumorphic-bg); /* Solid BG for inputs */
}
.contact-form-hero .btn-submit {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}
.contact-form-hero .btn-submit:hover {
    background-color: var(--color-primary-dark);
}

.parallax-shape { /* For subtle parallax effects if used */
    position: absolute;
    bottom: 10%;
    right: 5%;
    width: 150px;
    height: 150px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: 0; /* Behind hero-overlay potentially, or adjust */
    /* JS would typically handle parallax movement */
}


/* ==========================================================================
   8. Individual Section Styles
   ========================================================================== */

/* Methodology Section */
#methodologie .features-grid .feature-box h3 {
    color: var(--color-primary-dark);
}
#methodologie .progress-indicator-container {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-top: calc(var(--spacing-unit) * 4);
}
#methodologie .progress-indicator-container h4 {
    text-align: center;
    margin-bottom: var(--spacing-unit);
    color: var(--color-text-dark);
}

/* Pricing Section */
#tarifs .pricing-plans .pricing-card {
    text-align: center;
}
#tarifs .pricing-card h3 {
    color: var(--color-primary-dark);
    font-size: 1.8rem;
}
#tarifs .pricing-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin: var(--spacing-unit) 0 calc(var(--spacing-unit) * 2);
}
#tarifs .pricing-card .price .period {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-muted);
}
#tarifs .pricing-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: calc(var(--spacing-unit) * 3);
    text-align: left; /* List items text align left */
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}
#tarifs .pricing-card ul li {
    padding: calc(var(--spacing-unit) * 0.75) 0;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-medium);
}
#tarifs .pricing-card ul li:last-child {
    border-bottom: none;
}
#tarifs .pricing-card.popular {
    position: relative;
    border: 2px solid var(--color-accent); /* Highlight popular plan */
    box-shadow: 0 0 25px color-mix(in srgb, var(--color-accent) 30%, transparent);
    transform: scale(1.05); /* Make it slightly larger */
}
#tarifs .pricing-card.popular .popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-accent);
    color: var(--color-text-light);
    padding: var(--spacing-unit) calc(var(--spacing-unit) * 1.5);
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Resources Section */
#ressources .carousel-title, #ressources .tools-title {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 3);
    color: var(--color-text-dark);
}
#ressources .carousel {
    display: flex; /* Basic setup for a JS-driven carousel */
    overflow-x: auto; /* Allow horizontal scrolling if JS fails or for touch */
    padding-bottom: var(--spacing-unit); /* Space for scrollbar */
    gap: calc(var(--spacing-unit) * 2);
}
#ressources .carousel-item {
    flex: 0 0 auto; /* Prevent shrinking/growing */
    width: 300px; /* Or responsive width */
    margin-right: calc(var(--spacing-unit) * 2); /* If gap not supported */
}
/* Hide scrollbar (optional, can affect usability) */
#ressources .carousel::-webkit-scrollbar { display: none; }
#ressources .carousel { -ms-overflow-style: none; scrollbar-width: none; }

#ressources .tools-showcase {
    margin-top: calc(var(--spacing-unit) * 5);
}
#ressources .tool-preview.card .card-content h4 {
    color: var(--color-primary-dark);
}


/* External Links Section */
#external-links .external-link-card.card {
    min-height: 180px; /* Give cards some consistent minimum height */
}
#external-links .external-link-card h4 a {
    color: var(--color-primary-dark);
    font-weight: 600;
}
#external-links .external-link-card h4 a:hover {
    color: var(--color-primary);
}


/* Community Section */
#communaute .column img {
    border-radius: var(--neumorphic-radius); /* Already has neumorphic-img */
}
#communaute .column h3 {
    margin-top: 0; /* For column next to image */
    color: var(--color-text-dark);
}
#communaute .column ul {
    padding-left: calc(var(--spacing-unit) * 2.5);
    list-style-type: disc; /* Or custom icons */
}
#communaute .column ul li {
    color: var(--color-text-medium);
}

/* Events Calendar Section */
#evenements .events-list .event-item.card {
    margin-bottom: calc(var(--spacing-unit) * 3);
    display: flex;
    flex-direction: row; /* Horizontal layout for event items */
    align-items: flex-start;
}
#evenements .event-item .card-image {
    flex: 0 0 200px; /* Fixed width for image */
    height: auto; /* Auto height for image container */
    max-height: 160px; /* Limit image height */
    margin-right: calc(var(--spacing-unit) * 2.5);
    margin-bottom: 0;
}
#evenements .event-item .card-image img {
    border-radius: var(--border-radius-md);
}
#evenements .event-item .card-content {
    text-align: left;
    flex: 1;
}
#evenements .event-item .event-date {
    font-size: 0.9rem;
    color: var(--color-accent-dark);
    font-weight: 600;
    margin-bottom: var(--spacing-unit);
}
#evenements .event-item .btn {
    margin-top: var(--spacing-unit);
    align-self: flex-start; /* Align button to left */
}


/* History Section - Timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}
.timeline::after { /* The central line */
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--color-primary-light);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: var(--border-radius-sm);
}
.timeline-item {
    padding: var(--spacing-unit) calc(var(--spacing-unit) * 5); /* 8px 40px */
    position: relative;
    background-color: inherit;
    width: 50%;
}
/* The circle on the timeline */
.timeline-item .timeline-icon {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--color-neumorphic-bg);
    border: 4px solid var(--color-primary);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: var(--box-shadow-neumorphic);
}
/* Place the Ccontainer to the left */
.timeline-item[data-aos="fade-right"] { left: 0; }
/* Place the container to the right */
.timeline-item[data-aos="fade-left"] { left: 50%; }

/* Fix the circle for containers on the right side */
.timeline-item[data-aos="fade-left"] .timeline-icon {
    left: -10px;
}
.timeline-content.card {
    position: relative;
    padding: calc(var(--spacing-unit) * 2);
}
.timeline-content h4 {
    margin-top: 0;
    color: var(--color-primary-dark);
}


/* Sustainability Section */
#sustainability .card .card-content h3 {
    color: var(--color-primary-dark);
}

/* Media Section */
#media .media-mentions .media-card.card {
    text-align: center;
}
#media .media-card .card-image { /* Logos */
    height: 60px; /* Adjust for logo size */
    margin-bottom: var(--spacing-unit);
}
#media .media-card .card-image img {
    object-fit: contain; /* Logos should be contained */
    max-height: 50px; /* Max logo height */
    width: auto;
    margin: 0 auto;
}
#media .media-card blockquote {
    font-style: italic;
    color: var(--color-text-medium);
    margin-bottom: var(--spacing-unit);
    border-left: 3px solid var(--color-primary-light);
    padding-left: var(--spacing-unit);
}
#media .media-card cite {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-weight: 600;
}

/* Contact Section (minimal in index) */
#contact .contact-info-minimal {
    margin: calc(var(--spacing-unit) * 3) 0;
}
#contact .contact-info-minimal p {
    margin-bottom: var(--spacing-unit);
    font-size: 1.05rem;
}
#contact .text-link {
    color: var(--color-primary-dark);
    font-weight: 500;
}
#contact .text-link:hover {
    color: var(--color-primary);
}


/* ==========================================================================
   9. Footer
   ========================================================================== */
.site-footer {
    background-color: var(--color-text-dark);
    color: var(--color-text-light);
    padding: calc(var(--spacing-unit) * 6) 0 calc(var(--spacing-unit) * 2);
    font-size: 0.95rem;
}
.site-footer .footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: calc(var(--spacing-unit) * 3);
    margin-bottom: calc(var(--spacing-unit) * 4);
}
.site-footer .footer-column {
    flex: 1;
    min-width: 200px; /* Ensure columns don't get too narrow */
    margin-bottom: calc(var(--spacing-unit) * 2);
}
.site-footer .footer-column h4 {
    color: var(--color-primary-light);
    font-size: 1.2rem;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    text-shadow: none;
}
.site-footer .footer-column p {
    color: var(--color-text-muted); /* Light gray on dark bg */
    margin-bottom: var(--spacing-unit);
    line-height: 1.6;
}
.site-footer .footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.site-footer .footer-column ul li {
    margin-bottom: var(--spacing-unit);
}
.site-footer .footer-column ul a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}
.site-footer .footer-column ul a:hover {
    color: var(--color-primary-light);
    text-decoration: underline;
}
.site-footer .social-links-text a {
    /* Text links, no icons, as per requirement */
    display: inline-block; /* Or block if one per line */
    margin-right: var(--spacing-unit); /* If inline */
}
.site-footer .footer-bottom {
    text-align: center;
    padding-top: calc(var(--spacing-unit) * 2);
    border-top: 1px solid var(--color-text-medium); /* Muted border */
    color: var(--color-text-muted);
}
.site-footer .footer-bottom p {
    margin: 0;
}


/* ==========================================================================
   10. Specific Page Styles
   ========================================================================== */

/* Success Page */
.success-page-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: calc(var(--spacing-unit) * 2);
    background-color: var(--color-bg-alt);
}
.success-page-container .card {
    max-width: 500px;
    width: 100%;
}
.success-page-container h1 {
    color: var(--color-primary);
    font-size: 2.5rem;
}
.success-page-container p {
    font-size: 1.1rem;
    margin-bottom: calc(var(--spacing-unit) * 3);
}


/* Privacy & Terms Pages */
.privacy-page-container,
.terms-page-container,
.about-page-container,
.contacts-page-container {
    padding-top: calc(var(--header-height) + var(--spacing-unit) * 4); /* Offset for fixed header + extra space */
    padding-bottom: calc(var(--spacing-unit) * 6);
}
.privacy-page-container .container h1,
.terms-page-container .container h1,
.about-page-container .container h1,
.contacts-page-container .container h1 {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 4);
}
.privacy-page-container .container h2,
.terms-page-container .container h2,
.about-page-container .container h2,
.contacts-page-container .container h2 {
    margin-top: calc(var(--spacing-unit) * 3);
    color: var(--color-primary-dark);
}

/* Contacts page specific */
.contacts-page-container .contact-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: calc(var(--spacing-unit) * 3);
    margin-bottom: calc(var(--spacing-unit) * 4);
}
.contacts-page-container .contact-detail-card {
    text-align: center;
}
.contacts-page-container .contact-detail-card .icon {
    font-size: 2.5rem; /* Placeholder for icon font or SVG */
    color: var(--color-primary);
    margin-bottom: var(--spacing-unit);
}
.contacts-page-container .map-container {
    height: 400px;
    border-radius: var(--neumorphic-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow-neumorphic);
    margin-top: calc(var(--spacing-unit) * 3);
}
.contacts-page-container .map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}


/* Cookie Consent Popup (basic styling from HTML, ensure it works) */
#cookieConsentPopup a:hover {
    color: var(--color-primary-light);
}
#cookieConsentPopup button:hover {
    background-color: #3e8e41; /* Darker green */
}


/* ==========================================================================
   11. Responsive Media Queries
   ========================================================================== */
@media (max-width: 992px) { /* Tablets and larger phones */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hero-content h1 { font-size: 2.8rem; }
    .hero-content p { font-size: 1.15rem; }

    .column.is-one-third, .column.is-half, .column.is-two-thirds {
        width: 50%;
    }
    .column.is-full-mobile { width: 100%; }

    .timeline::after { left: 30px; }
    .timeline-item { width: 100%; padding-left: calc(var(--spacing-unit) * 8); padding-right: calc(var(--spacing-unit) * 2); }
    .timeline-item[data-aos="fade-right"], .timeline-item[data-aos="fade-left"] { left: 0; }
    .timeline-item .timeline-icon, .timeline-item[data-aos="fade-left"] .timeline-icon {
        left: 20px; /* Adjust icon position */
    }
    #evenements .event-item .card-image { flex-basis: 150px; }
}


@media (max-width: 768px) { /* Smaller tablets and mobile */
    :root { --header-height: 65px; }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .hero-content h1 { font-size: 2.4rem; }
    .hero-content p { font-size: 1.1rem; }
    .section-padding { padding-top: calc(var(--spacing-unit) * 6); padding-bottom: calc(var(--spacing-unit) * 6); }

    /* Mobile Navigation */
    .main-nav .nav-toggle { display: block; }
    .main-nav .nav-links {
        display: none; /* Hidden by default */
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--color-neumorphic-bg);
        padding: var(--spacing-unit) 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        border-top: 1px solid var(--color-border);
    }
    .main-nav .nav-links.active { display: flex; } /* Shown when burger is active */
    .main-nav .nav-links li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    .main-nav .nav-links a {
        display: block;
        padding: calc(var(--spacing-unit) * 1.5) var(--spacing-unit); /* 12px 8px */
        border-bottom: 1px solid var(--color-border);
    }
    .nav-links.active{
        width: 200px;
        left: -125px;
    }
    .main-nav .nav-links li:last-child a { border-bottom: none; }

    .columns .column {
        width: 100% !important; /* Stack columns */
        flex-basis: auto !important;
    }
    .columns:not(:last-child) { margin-bottom: 0; } /* Remove bottom margin if columns stack */

    #tarifs .pricing-card.popular { transform: scale(1); } /* No scaling on mobile */

    #evenements .event-item.card {
        flex-direction: column;
    }
    #evenements .event-item .card-image {
        width: 100%; /* Full width image on mobile */
        flex-basis: auto;
        margin-right: 0;
        margin-bottom: var(--spacing-unit);
        max-height: 200px; /* Control height */
    }

    .site-footer .footer-content { flex-direction: column; text-align: center; }
    .site-footer .footer-column { min-width: 100%; }
    .site-footer .footer-column ul { text-align: center; }
    .site-footer .social-links-text { text-align: center; }
    .site-footer .social-links-text a { margin: 0 calc(var(--spacing-unit) * 0.5); }
}

@media (max-width: 480px) { /* Small mobile devices */
    html { font-size: 15px; }
    .hero-content h1 { font-size: 2rem; }
    .hero-content p { font-size: 1rem; }
    .contact-form-hero { padding: calc(var(--spacing-unit) * 2); }

    .timeline::after { left: 20px; }
    .timeline-item { padding-left: calc(var(--spacing-unit) * 6); }
    .timeline-item .timeline-icon, .timeline-item[data-aos="fade-left"] .timeline-icon { left: 10px; }
}