:root {
  --primary-color: #FFFF00; /* Bright Yellow */
  --secondary-color: #0052FF; /* Deep Blue */
  --accent-color-1: #FF00FF; /* Magenta */
  --accent-color-2: #00FFFF; /* Cyan */
  --accent-color-green: #32CD32; /* Lime Green */

  --text-dark: #1E1E1E;
  --text-darker: #111111;
  --text-light: #FFFFFF;
  --text-grey: #333333;
  --text-grey-light: #CCCCCC;

  --bg-dark: #1E1E1E;
  --bg-darker: #111111;
  --bg-light: #F5F5F5;
  --bg-white: #FFFFFF;

  --border-color-strong: #000000;
  --border-color-accent: var(--primary-color);
  --border-color-medium: #444444;

  --font-heading: 'Archivo Black', sans-serif;
  --font-body: 'Roboto', sans-serif;

  --shadow-brutal: 5px 5px 0px var(--border-color-strong);
  --shadow-brutal-light: 3px 3px 0px rgba(0,0,0,0.7);
  --shadow-brutal-accent: 5px 5px 0px var(--primary-color);
  --shadow-brutal-inset: inset 3px 3px 0px rgba(0,0,0,0.2);

  --navbar-height: 52px; /* Default Bulma navbar height */
  --section-padding: 4rem 1.5rem;
  --section-padding-compact: 2.5rem 1.5rem;
  --transition-speed: 0.2s;
}

/* === GLOBAL STYLES === */
html {
  scroll-behavior: smooth;
  background-color: var(--bg-light);
}

body {
  font-family: var(--font-body);
  color: var(--text-grey);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* Prevent horizontal scroll from skewed elements */
  padding-top: 0px !important;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6,
.title, .subtitle {
  font-family: var(--font-heading);
  color: var(--text-darker);
  font-weight: 400; /* Archivo Black is bold by default */
  line-height: 1.2;
}

.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; }
.title.is-5 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.title.is-6 { font-size: 1rem; margin-bottom: 0.5rem; }

.subtitle {
  font-family: var(--font-body);
  color: #555555;
  font-weight: 400;
  line-height: 1.6;
}

.content p, .content ul, .content ol {
    margin-bottom: 1.25em;
    line-height: 1.7;
}
.content ul {
    list-style: disc outside;
    margin-left: 2em;
}

/* === GENERAL SECTION STYLING === */
.section {
  padding: var(--section-padding);
}

.section-title {
  margin-bottom: 3rem !important;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 5px;
  background-color: var(--primary-color);
  margin: 0.75rem auto 0;
  transform: skewX(-20deg);
}
.has-text-centered .section-title::after {
  margin-left: auto;
  margin-right: auto;
}
.has-background-grey-darker .section-title,
.has-background-black .section-title {
  color: var(--primary-color) !important;
}
.has-background-grey-darker .section-title::after,
.has-background-black .section-title::after {
  background-color: var(--secondary-color);
}
.has-background-light .section-title,
.has-background-white .section-title {
  color: var(--text-darker) !important;
}
.has-background-light .section-title::after,
.has-background-white .section-title::after {
  background-color: var(--secondary-color);
}


/* === GLOBAL BUTTON STYLES === */
.button, button, input[type="submit"], input[type="button"] {
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--border-color-strong);
    box-shadow: var(--shadow-brutal-light);
    transition: all var(--transition-speed) ease-in-out;
    cursor: pointer;
    padding: 0.8em 1.8em;
    border-radius: 0; /* Brutalist sharp edges */
}
.button:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover {
    transform: translate(-3px, -3px);
    box-shadow: 7px 7px 0px var(--border-color-strong);
}
.button:active, button:active, input[type="submit"]:active, input[type="button"]:active {
    transform: translate(0, 0);
    box-shadow: var(--shadow-brutal-light);
}
.button.is-primary {
    background-color: var(--primary-color);
    color: var(--text-dark);
    border-color: var(--border-color-strong);
}
.button.is-primary:hover {
     background-color: #e6e600; /* Slightly darker yellow */
}
.button.is-primary.is-outlined {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
}
.button.is-primary.is-outlined:hover {
    background-color: var(--primary-color);
    color: var(--text-dark);
    transform: none;
    box-shadow: none;
}
.brutal-button { /* Specific class from HTML */
    background-color: var(--primary-color);
    color: var(--text-dark) !important;
    border: 2px solid var(--border-color-strong) !important;
    box-shadow: var(--shadow-brutal-light) !important;
}
.brutal-button:hover {
    transform: translate(-4px, -4px);
    box-shadow: 9px 9px 0px var(--border-color-strong) !important;
}
.brutal-button:active {
    transform: translate(0px, 0px);
    box-shadow: 3px 3px 0px var(--border-color-strong) !important;
}

/* === FORM STYLES === */
.brutal-input,
.brutal-textarea {
    background-color: var(--bg-white);
    border: 2px solid var(--border-color-strong);
    box-shadow: var(--shadow-brutal-inset);
    padding: 0.75em 1em;
    font-family: var(--font-body);
    color: var(--text-dark);
    width: 100%;
    transition: box-shadow var(--transition-speed) ease, border-color var(--transition-speed) ease;
    border-radius: 0;
    font-size: 1rem;
}
.brutal-input:focus,
.brutal-textarea:focus {
    outline: none;
    box-shadow: var(--shadow-brutal-inset), 0 0 0 3px var(--secondary-color);
    border-color: var(--secondary-color);
}

/* === HEADER & NAVIGATION === */
.header.is-fixed-top {
    background-color: var(--bg-darker) !important;
    box-shadow: 0 3px 6px rgba(0,0,0,0.25);
    border-bottom: 3px solid var(--primary-color);
    z-index: 1024;
}
.navbar.is-dark { background-color: var(--bg-darker) !important; }
.navbar-item, .navbar-link {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--text-light) !important;
    transition: color var(--transition-speed) ease, background-color var(--transition-speed) ease;
    padding: 0.75rem 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.navbar-item:hover, .navbar-link:hover, .navbar-item.is-active {
    background-color: var(--primary-color) !important;
    color: var(--text-dark) !important;
}
.navbar-brand .navbar-item {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    padding-left: 0;
}
.navbar-brand .navbar-item:hover { background-color: transparent !important; }
.navbar-brand .navbar-item span { color: var(--secondary-color); }

.navbar-burger {
    color: var(--text-light);
    border: 2px solid var(--primary-color);
    background-color: var(--bg-dark);
    border-radius: 0;
    width: 3.25rem; height: 3.25rem;
}
.navbar-burger:hover { background-color: var(--primary-color); color: var(--text-dark); }
.navbar-burger span { background-color: var(--primary-color) !important; height: 3px; left: calc(50% - 8px); width: 16px; }
.navbar-burger:hover span { background-color: var(--text-dark) !important; }
.navbar-burger span:nth-child(1) { top: calc(50% - 6px); }
.navbar-burger span:nth-child(2) { top: calc(50% - 1px); }
.navbar-burger span:nth-child(3) { top: calc(50% + 4px); }

.navbar-menu {
    background-color: var(--bg-darker);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-left: 2px solid var(--primary-color);
    border-right: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

/* === HERO SECTION === */
#hero {
    position: relative;
    color: var(--text-light); /* Ensured by HTML inline style text-white */
    /* background-attachment: fixed; in HTML for parallax */
}
#hero .hero-body { z-index: 1; position: relative; }
#hero .title.is-1 {
    font-size: 3.8rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
    color: var(--text-light) !important;
}
#hero .subtitle.is-3 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
    max-width: 800px; margin-left: auto; margin-right: auto;
    color: var(--text-light) !important;
}

/* === QUICK CONTACT FORM (TOP) === */
#quick-contact-form-section {
    padding-top: calc(var(--navbar-height) + 3rem) !important;
    padding-bottom: 3rem !important;
    background-color: var(--bg-darker) !important; /* As per HTML */
}
#quick-contact-form-section .title {
    color: var(--primary-color) !important;
    text-shadow: 1px 1px 2px #000;
    margin-bottom: 2rem !important;
}
#quick-contact-form-section .brutal-input,
#quick-contact-form-section .textarea.brutal-input {
    background-color: #2a2a2a;
    color: var(--text-light);
    border-color: var(--primary-color);
    box-shadow: inset 2px 2px 0px rgba(0,0,0,0.3);
}
#quick-contact-form-section .brutal-input::placeholder,
#quick-contact-form-section .textarea.brutal-input::placeholder {
    color: #999;
}
#quick-contact-form-section .brutal-input:focus,
#quick-contact-form-section .textarea.brutal-input:focus {
    border-color: var(--secondary-color);
    box-shadow: inset 2px 2px 0px rgba(0,0,0,0.3), 0 0 0 3px var(--secondary-color);
}

/* === À PROPOS SECTION === */
#about .image.is-square img {
    border: 5px solid var(--primary-color);
    box-shadow: var(--shadow-brutal);
    object-fit: cover;
    width: 100%; height: 100%;
}
#about .content p { color: var(--text-grey); }

/* === CARD STYLES (Projects, Blog) === */
.card.brutal-card {
    background-color: var(--bg-dark);
    border: 3px solid var(--primary-color);
    box-shadow: var(--shadow-brutal-light);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform var(--transition-speed) ease-out, box-shadow var(--transition-speed) ease-out;
    border-radius: 0;
    overflow: hidden; /* Clip content like image */
}
.card.brutal-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 10px 10px 0px var(--primary-color);
}
.card.brutal-card .card-image {
    border-bottom: 3px solid var(--primary-color);
    overflow: hidden;
    padding:0; /* remove bulma padding */
}
.card.brutal-card .card-image figure.image { margin: 0; }
.card.brutal-card .card-image img {
    width: 100%;
    height: 220px; /* Fixed height for card images */
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.card.brutal-card:hover .card-image img {
    transform: scale(1.05);
}
.card.brutal-card .card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.card.brutal-card .card-content .title {
    font-family: var(--font-heading);
    margin-bottom: 0.75rem;
}
.card.brutal-card .card-content .title.is-4,
.card.brutal-card .card-content .title.is-5 {
    color: var(--primary-color) !important;
}
.card.brutal-card .card-content .subtitle.is-6 {
    color: var(--text-grey-light) !important;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}
.card.brutal-card .card-content .button.is-small.is-outlined {
    border-color: var(--secondary-color);
    color: var(--secondary-color) !important; /* Override !important from .navbar-item */
    background-color: transparent;
    align-self: flex-start;
    box-shadow: none;
    border-width: 2px;
    font-weight: 700;
    padding: 0.5em 1em;
}
.card.brutal-card .card-content .button.is-small.is-outlined:hover {
    background-color: var(--secondary-color) !important;
    color: var(--text-light) !important;
    transform: none;
    box-shadow: none;
}

/* === METHODOLOGY (TIMELINE) SECTION === */
.timeline .timeline-item .timeline-marker {
    border: 2px solid var(--border-color-strong);
    box-shadow: var(--shadow-brutal-light);
    background-color: var(--primary-color); /* Default marker bg */
}
.timeline .timeline-item .timeline-marker.is-icon { color: var(--text-dark); }
.timeline .timeline-item .timeline-marker.is-primary { background-color: var(--secondary-color); border-color: var(--border-color-strong); color: var(--text-light); }
.timeline .timeline-item .timeline-marker.is-warning { background-color: var(--primary-color); border-color: var(--border-color-strong); color: var(--text-dark); } /* Yellow */
.timeline .timeline-item .timeline-marker.is-info { background-color: var(--accent-color-2); border-color: var(--border-color-strong); color: var(--text-dark); }    /* Cyan */
.timeline .timeline-item .timeline-marker.is-success { background-color: var(--accent-color-green); border-color: var(--border-color-strong); color: var(--text-dark); } /* Lime Green */
.timeline .timeline-header .tag {
    background-color: var(--secondary-color);
    color: var(--text-light);
    font-family: var(--font-heading);
    font-size: 1.25rem !important;
    border: 2px solid var(--border-color-strong);
    box-shadow: var(--shadow-brutal-light);
    border-radius: 0;
    padding: 0.5em 1em;
}
.timeline .timeline-item .timeline-content {
    background-color: var(--bg-white);
    padding: 1.5rem;
    border: 2px solid var(--border-color-strong);
    box-shadow: var(--shadow-brutal);
    margin-left: 25px;
    border-radius: 0;
}
.timeline .timeline-item .timeline-content .heading {
    font-family: var(--font-heading);
    color: var(--text-darker);
    margin-bottom: 0.5rem;
}
.timeline .timeline-item .timeline-content p:not(.heading) { color: var(--text-grey); }

/* === EXTERNAL RESOURCES SECTION === */
.resource-card.box {
    background-color: var(--bg-white);
    border: 2px solid var(--border-color-strong);
    box-shadow: var(--shadow-brutal);
    margin-bottom: 1.5rem;
    transition: transform var(--transition-speed) ease-out, box-shadow var(--transition-speed) ease-out;
    border-radius: 0;
}
.resource-card.box:hover {
    transform: translateY(-4px);
    box-shadow: 9px 9px 0px var(--border-color-strong);
}
.resource-card .media-content .content p strong a {
    color: var(--secondary-color);
    font-weight: 700;
    text-decoration: none;
}
.resource-card .media-content .content p strong a:hover {
    text-decoration: underline;
    color: var(--primary-color);
}
.resource-card .media-content .content p small { color: #555; }
.resource-card .media-content .content p { color: var(--text-grey); }

/* === PARTNERS SECTION === */
.partner-logos img {
    max-height: 50px; width: auto; margin: 1rem;
    filter: grayscale(80%) opacity(0.6);
    transition: all var(--transition-speed) ease;
}
.partner-logos img:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.15);
}

/* === AWARDS SECTION === */
.awards-list { list-style: none; padding-left: 0; }
.awards-list li {
    padding: 1.25rem; margin-bottom: 1.25rem;
    border-left: 6px solid var(--primary-color);
    background-color: var(--bg-light);
    box-shadow: 4px 4px 0px rgba(0,0,0,0.1);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    color: var(--text-grey);
}
.awards-list li:hover {
    transform: translateX(6px);
    box-shadow: 7px 7px 0px rgba(0,0,0,0.15);
}
.awards-list li strong {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    display: block; margin-bottom: 0.35rem;
}

/* === FOOTER === */
.footer {
    background-color: var(--bg-darker);
    color: var(--text-grey-light);
    padding: 3rem 1.5rem 2rem; /* Adjusted padding */
    border-top: 6px solid var(--primary-color);
}
.footer .title.is-5, .footer .title.is-6 {
    font-family: var(--font-heading);
    color: var(--text-light) !important;
    margin-bottom: 1.25rem;
}
.footer .title.is-5 span { color: var(--primary-color); }
.footer p { font-size: 0.95rem; line-height: 1.6; color: var(--text-grey-light); }
.footer ul { list-style: none; margin-left: 0; }
.footer ul li { margin-bottom: 0.6rem; }
.footer .footer-link {
    color: var(--text-grey-light);
    transition: color var(--transition-speed) ease;
    text-decoration: none;
    font-weight: 500;
}
.footer .footer-link:hover { color: var(--primary-color); text-decoration: underline; }
.footer hr { background-color: var(--border-color-medium); height: 2px; border: none; margin: 2.5rem 0; }
.footer .has-text-centered p { font-size: 0.9rem; }

/* === COOKIE CONSENT POPUP === */
#cookieConsentPopup {
    /* Inline styles in HTML are primary, but can be augmented */
    font-family: var(--font-body);
    border-top: 3px solid var(--primary-color) !important;
}
#cookieConsentPopup p { color: var(--text-light); margin-bottom: 1rem; line-height: 1.5; }
#cookieConsentPopup #acceptCookieButton {
    /* .button.is-primary already styled */
    box-shadow: var(--shadow-brutal-light) !important;
    border: 2px solid var(--border-color-strong) !important;
}
#cookieConsentPopup #acceptCookieButton:hover {
    transform: translate(-2px, -2px) !important;
    box-shadow: 7px 7px 0px var(--border-color-strong) !important;
}

/* === SUCCESS PAGE (success.html) === */
body.success-page {
    display: flex; flex-direction: column;
    min-height: 100vh;
    background-color: var(--bg-darker);
}
.success-page .hero.is-fullheight .hero-body {
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; text-align: center;
}
.success-page .success-container {
    background-color: var(--bg-light);
    padding: 3rem 2rem;
    border: 3px solid var(--primary-color);
    box-shadow: var(--shadow-brutal);
    text-align: center;
    max-width: 600px;
    width: 90%;
    border-radius: 0;
}
.success-page .success-container .title {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}
.success-page .success-container .subtitle {
    color: var(--text-dark);
    margin-bottom: 2.5rem;
}

/* === PRIVACY & TERMS PAGES === */
body.privacy-page main,
body.terms-page main {
    padding-top: calc(var(--navbar-height) + 3rem);
    padding-bottom: 3rem;
    background-color: var(--bg-white);
    color: var(--text-dark);
}
body.privacy-page .section,
body.terms-page .section {
    background-color: var(--bg-white);
}
body.privacy-page .content h1, body.privacy-page .content h2, body.privacy-page .content h3,
body.terms-page .content h1, body.terms-page .content h2, body.terms-page .content h3 {
    font-family: var(--font-heading);
    color: var(--text-darker);
    margin-top: 2em; margin-bottom: 1em;
}
body.privacy-page .content p, body.privacy-page .content ul, body.privacy-page .content li,
body.terms-page .content p, body.terms-page .content ul, body.terms-page .content li {
    color: var(--text-grey);
    line-height: 1.8;
}

/* === SCROLL REVEAL ANIMATIONS === */
.scroll-reveal-section, [data-scrollreveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.5, 0, 0, 1), transform 0.7s cubic-bezier(0.5, 0, 0, 1);
}
.scroll-reveal-section.is-visible, [data-scrollreveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}
.card.brutal-card[data-scrollreveal] { /* Stagger card animation */
    transition-delay: calc(var(--card-index, 0) * 0.1s); /* Needs JS to set --card-index */
}


/* === RESPONSIVE ADJUSTMENTS === */
@media screen and (max-width: 1023px) { /* Bulma tablet breakpoint */
    .navbar-menu.is-active {
        position: absolute; width: 100%; left: 0;
        top: 100%; /* Position below navbar */
        border-top: 3px solid var(--primary-color);
    }
    .navbar-menu .navbar-item { border-bottom: 1px solid var(--border-color-medium); }
    .navbar-menu .navbar-item:last-child { border-bottom: none; }
    .navbar-end .navbar-item .button { width: 100%; margin-top: 0.5rem; text-align: center; justify-content: center;}
}

@media screen and (max-width: 768px) { /* Bulma mobile breakpoint */
    .section { padding: var(--section-padding-compact); }
    .title.is-1 { font-size: 2.5rem; }
    .title.is-2 { font-size: 2rem; }
    .title.is-3 { font-size: 1.75rem; }
    #hero .title.is-1 { font-size: 2.8rem; }
    #hero .subtitle.is-3 { font-size: 1.2rem; }
    .timeline .timeline-item .timeline-content { margin-left: 15px; padding: 1rem; }
    .columns.is-centered .column.is-two-thirds { width: 90%; }
    .quick-contact-form-section .field.is-horizontal .field-body { flex-direction: column; }
    .quick-contact-form-section .field.is-horizontal .field-body .field:not(:last-child) { margin-bottom: 0.75rem;}
}
*{
    opacity: 1 !important;
}