/* assets/css/styles.css */
/* -------------------------------------------------------
   Minexx Global — Core Stylesheet
   -------------------------------------------------------
   - Design system tokens
   - Global resets
   - Layout utilities
   - Header & navigation
   - Hero & key sections
   - Cards, grids, metrics
   - Latest News carousel
   - FAQ, footer
   - Cookie / first-visit overlay
-------------------------------------------------------- */

/* ------------------------------- */
/*           ROOT TOKENS           */
/* ------------------------------- */

:root {
  /* Colors (Minexx Brand) */
  --color-bg: #040812;
  --color-surface: #07101a;
  --color-surface-alt: #0e1725;
  --color-section-alt: #050b18;

  --color-primary: #1eb5ff;       /* Minexx electric blue */
  --color-primary-soft: #10283b;
  --color-primary-soft-alt: #102031;

  --color-accent: #3de2ff;
  --color-accent-soft: rgba(61, 226, 255, 0.12);

  --color-neutral-50: #f5f7fa;
  --color-neutral-100: #e2e4ea;
  --color-neutral-200: #cfd3de;
  --color-neutral-300: #a4acbc;
  --color-neutral-400: #939598;      /* Minexx grey */
  --color-neutral-500: #6c7280;
  --color-neutral-700: #252c3a;
  --color-neutral-900: #02040a;

  --color-border-subtle: rgba(255, 255, 255, 0.08);

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-alt: "Ubuntu", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.0625rem;
  --fs-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.35rem);
  --fs-xl: clamp(1.5rem, 1.4rem + 0.6vw, 1.9rem);
  --fs-xxl: clamp(2rem, 1.8rem + 1vw, 2.6rem);
  --fs-display: clamp(2.4rem, 2rem + 2vw, 3.4rem);

  /* Spacing */
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 1.75rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 18px 45px rgba(0, 0, 0, 0.4);
  --shadow-elevated: 0 22px 55px rgba(0, 0, 0, 0.65);

  /* Transitions */
  --transition-fast: 0.15s ease-out;
  --transition-base: 0.2s ease-out;
  --transition-slow: 0.25s ease-out;

  /* Layout */
  --container-width: 1120px;
  --section-padding-y: clamp(4rem, 5vw, 5.5rem);
}

/* ------------------------------- */
/*       GLOBAL RESET / BASE       */
/* ------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--color-neutral-100);
  background: radial-gradient(circle at top, #172740 0, #040812 45%, #010208 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html, body {
  overflow-x: hidden;
}

/* Remove default margin on headings, paragraphs, lists */
h1,
h2,
h3,
h4,
p,
ul {
  margin: 0;
}

/* Smooth anchor scrolling offset fix for sticky header */
:target {
  scroll-margin-top: 96px;
}

/* Global link styles */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

/* Images */
img {
  max-width: 100%;
  display: block;
}

/* Buttons reset */
button {
  font-family: inherit;
}

/* ------------------------------- */
/*           LAYOUT WRAP           */
/* ------------------------------- */

.main-wrapper {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ------------------------------- */
/*            UTILITIES            */
/* ------------------------------- */

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

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

.text-muted {
  color: var(--color-neutral-400);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(21, 112, 239, 0.08);
  color: var(--color-accent);
}

/* ------------------------------- */
/*          TYPOGRAPHY             */
/* ------------------------------- */

h1,
h2,
h3,
h4 {
  font-family: var(--font-alt);
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--fs-display);
  line-height: 1.05;
}

h2 {
  font-size: var(--fs-xxl);
  line-height: 1.15;
}

h3 {
  font-size: var(--fs-lg);
  line-height: 1.3;
}

p {
  font-size: var(--fs-base);
  color: var(--color-neutral-100);
}

/* Section headers */

.section {
  padding: var(--section-padding-y) 0;
}

.section--tight {
  padding: 2.5rem 0;
}

.section--alt {
  background: radial-gradient(circle at top, #101a2b 0, #050912 45%, #020308 100%);
}

.section__header {
  margin-bottom: 2.5rem;
}

.section__header--center {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.75rem;
}

.section__title {
  font-size: var(--fs-xxl);
  margin-bottom: 0.75rem;
}

.section__title span.section__title-highlight {
  color: var(--color-primary);
}

.section__kicker {
  color: var(--color-neutral-400);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.8rem;
}

/* Update to use the main section subtitle style */
.section__subtitle {
  max-width: 640px;
  margin: 0 auto;
  color: var(--color-neutral-200);
  font-size: var(--fs-md);
}

/* ------------------------------- */
/*             HEADER              */
/* ------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(20px);
  background: linear-gradient(to bottom, rgba(4, 8, 18, 0.96) 0%, rgba(4, 8, 18, 0.9) 60%, rgba(4, 8, 18, 0) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem 0;
}

/* Logo */

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.site-logo__mark {
  width: 32px;
  height: 32px;
}

.site-logo__wordmark {
  height: 16px;
}

.site-logo__text {
  display: flex;
  flex-direction: column;
}

.site-logo__name {
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.site-logo__tagline {
  font-size: 0.68rem;
  color: var(--color-neutral-400);
}

/* Navigation */

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-nav__link {
  position: relative;
  font-size: 0.9rem;
  color: var(--color-neutral-200);
  padding: 0.4rem 0;
  transition: color var(--transition-base);
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: var(--color-neutral-50);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #1eb5ff, #3de2ff);
  border-radius: 999px;
  transition: width var(--transition-base);
}

.site-nav__link:hover::after,
.site-nav__link:focus-visible::after {
  width: 60%;
}

/* Header CTAs */

.site-header__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-alt);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background-color var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-fast),
    color var(--transition-base);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #1eb5ff, #3de2ff);
  color: #02040a;
  box-shadow: 0 14px 30px rgba(0, 144, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0, 144, 255, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--color-neutral-50);
  border-color: rgba(255, 255, 255, 0.12);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.04);
}

/* Link-style CTA */

.link-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--color-primary);
  text-decoration: none;
}

.link-cta span {
  transition: transform var(--transition-fast);
}

.link-cta:hover span {
  transform: translateX(3px);
}

/* Mobile nav toggle */

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(7, 16, 26, 0.9);
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  cursor: pointer;
  padding: 0;
}

.nav-toggle__bar {
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  position: relative;
}

/* ------------------------------- */
/*              HERO               */
/* ------------------------------- */

.hero {
  position: relative;
  padding: 4.5rem 0 4rem;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.3fr);
  gap: 3rem;
  align-items: center;
}

/* Hero content */

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.75rem 0.2rem 0.2rem;
  border-radius: 999px;
  background: radial-gradient(circle at left, rgba(61, 226, 255, 0.16), rgba(4, 8, 18, 0.4));
  border: 1px solid rgba(61, 226, 255, 0.35);
  margin-bottom: 1.1rem;
}

.hero__eyebrow-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #3de2ff, #0080c0);
  box-shadow: 0 0 16px rgba(61, 226, 255, 0.9);
}

.hero__eyebrow-icon svg {
  width: 14px;
  height: 14px;
  color: #02040a;
}

.hero__eyebrow-text {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-neutral-100);
}

.hero__title {
  margin-bottom: 1.25rem;
}

.hero__title span {
  color: var(--color-primary);
}

.hero__lead {
  font-size: var(--fs-lg);
  color: var(--color-neutral-200);
  margin-bottom: 1.75rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
  margin-bottom: 2rem;
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero-meta-item__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-neutral-500);
}

.hero-meta-item__value {
  font-size: 0.98rem;
  color: var(--color-neutral-100);
}

/* Hero CTAs */

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

/* Hero visual */

.hero__visual {
  position: relative;
  isolation: isolate;
}

.hero-card {
  position: relative;
  border-radius: 22px;
  background: radial-gradient(circle at top left, #193551 0, #050b16 50%, #020308 100%);
  border: 1px solid rgba(61, 226, 255, 0.2);
  box-shadow: var(--shadow-elevated);
  padding: 1.75rem 1.75rem 1.6rem;
  overflow: hidden;
}

/* Hero card header */

.hero-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.4rem;
}

.hero-card__title-group {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.hero-card__title {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-neutral-50);
}

.hero-card__subtitle {
  font-size: 0.78rem;
  color: var(--color-neutral-400);
}

.hero-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(61, 226, 255, 0.4);
}

/* Mini map / visual */

.hero-card__map {
  position: relative;
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.1rem;
  border-radius: 16px;
  background: radial-gradient(circle at top, rgba(61, 226, 255, 0.16), rgba(8, 15, 30, 0.95));
  border: 1px solid rgba(61, 226, 255, 0.35);
  display: grid;
  grid-template-columns: 1.8fr 1.4fr;
  gap: 1rem;
}

/* ... (MAP and chips omitted for brevity in this snippet; kept in full file) */

/* ------------------------------- */
/*        ABOUT / WHO WE ARE       */
/* ------------------------------- */

.section--about {
  position: relative;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: flex-start;
}

.about-intro {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-intro p {
  color: var(--color-neutral-200);
}

/* Philosophy card */

.about-philosophy {
  margin-top: 1.5rem;
  padding: 1.4rem 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: radial-gradient(circle at top, rgba(16, 63, 110, 0.7), rgba(4, 9, 19, 0.9));
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
}

.about-philosophy__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-neutral-400);
  margin-bottom: 0.5rem;
}

.about-philosophy__headline {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  color: var(--color-neutral-50);
}

/* About metrics (KPIs) */

.about-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
}

.metric {
  padding: 0.7rem 1.4rem 0.8rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: linear-gradient(145deg, rgba(10, 21, 38, 0.9), rgba(2, 5, 12, 0.95));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.7);
}

.metric__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-neutral-400);
  margin-bottom: 0.3rem;
}

.metric__value {
  font-size: 1.35rem;
  font-weight: 600;
  color: #ffffff;
}

.metric__detail {
  font-size: 0.8rem;
  color: var(--color-neutral-300);
  margin-top: 0.25rem;
}

/* Who we are "under-grid" spacing adjustments */
.about-metrics-wrapper {
  margin-top: 1.75rem;
}

/* ------------------------------- */
/*        GRID / CARD SYSTEM       */
/* ------------------------------- */

.grid {
  display: grid;
  gap: 1.7rem;
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  position: relative;
  border-radius: 16px;
  padding: 1.5rem 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: radial-gradient(circle at top, rgba(17, 31, 54, 0.9), rgba(4, 7, 16, 0.98));
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65);
}

/* Card header */

.card__header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.6rem;
}

.card__eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-primary);
}

/* Placeholder image inside cards */

.card__image {
  margin: 1rem 0 1.1rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: radial-gradient(circle at top, rgba(48, 87, 131, 0.8), rgba(2, 4, 10, 0.95));
}

.card__image img {
  display: block;
  width: 100%;
  max-height: 180px;
  object-fit: cover;
}

/* Card content */

.card__body {
  color: var(--color-neutral-200);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.card__meta {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-neutral-500);
}

/* Business pillars specific layout */

.business-grid {
  margin-top: 0.5rem;
}

/* Sustainability cards, insights cards reuse card styles */

/* ------------------------------- */
/*        LATEST NEWS SECTION      */
/* ------------------------------- */

.section--news {
  padding: 4.5rem 0;
  background: radial-gradient(circle at top, #101a2b 0, #050912 45%, #020308 100%);
}

.section--news .section__header--center {
  margin-bottom: 2rem;
}

.section--news .section__title {
  text-align: center;
}

.section--news .section__subtitle {
  text-align: center;
}

/* Wrapper for full-width feel */

.news-wrapper {
  width: 100%;
  max-width: 100%;
}

/* Header with arrows aligned to container edges */

.section-header--news {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

/* Align "Latest News" text and description centrally,
   while keeping the arrows right-aligned inside container width */

.section-header--news .section__title {
  margin: 0 auto;
}

.section-header--news + .section__subtitle {
  text-align: center;
}

/* Controls (arrows) */

.news-controls {
  display: flex;
  gap: 0.5rem;
}

.news-arrow {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid #d7dde7;
  background: #ffffff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #07101a;
  transition:
    background var(--transition-base),
    border-color var(--transition-base),
    transform var(--transition-fast);
}

.news-arrow:hover {
  background: #f1f4f9;
  border-color: #c4ccd9;
  transform: translateY(-1px);
}

/* Horizontally scrollable area */

.news-scroller {
  margin-top: 1.5rem;
  padding-bottom: 0.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  max-width: 100%;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar visually while keeping scroll behavior */

.news-scroller::-webkit-scrollbar {
  height: 0;
}

.news-scroller {
  scrollbar-width: none;
}

.news-scroller::-webkit-scrollbar-track {
  background: transparent;
}

.news-scroller::-webkit-scrollbar-thumb {
  background: transparent;
}

/* Inner track with cards */

.news-track {
  display: inline-flex;
  gap: 1.75rem;
  padding: 0 0.25rem;
}

/* News card */

.card--news {
  flex: 0 0 320px;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(7, 16, 26, 0.04);
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
}

.card--news .card__image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card--news .card__content {
  padding: 1.2rem 1.25rem 1.4rem;
}

.card--news h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: #07101a;
}

.card__date {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0094d9;
  margin-bottom: 0.6rem;
}

.card__excerpt {
  font-size: 0.94rem;
  line-height: 1.5;
  margin-bottom: 0.9rem;
  color: #333b4a;
}

.card--news .btn-secondary {
  font-size: 0.78rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-color: #e0e4ee;
  color: #07101a;
}

/* ------------------------------- */
/*            FAQ SECTION          */
/* ------------------------------- */

.section#faq {
  position: relative;
}

.section#faq .section__header--center {
  max-width: 640px;
}

/* Optional subtle top divider */

.section#faq::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 50%;
  width: 40%;
  max-width: 440px;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(30, 181, 255, 0), rgba(30, 181, 255, 0.7), rgba(30, 181, 255, 0));
  opacity: 0.4;
}

/* FAQ container */

.faq {
  margin-top: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Individual FAQ item */

.faq-item {
  border-radius: 14px;
  background: radial-gradient(circle at top left, rgba(25, 54, 95, 0.35), rgba(5, 10, 24, 0.98));
  border: 1px solid rgba(61, 226, 255, 0.18);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75);
}

/* Button that toggles the FAQ */

.faq-item__button {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.5rem;
  cursor: pointer;
  text-align: left;
}

/* Icon circle on the left */

.faq-item__label {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex: 1;
}

/* Replace blue circle with Minexx mark, keep sizing similar */
.faq-item__icon-circle {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon--faq {
  width: 20px;
  height: 20px;
}

/* Question text */

.faq-item__label span:last-child,
.faq-item__label-text {
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--color-neutral-50);
}

/* Expand/collapse indicator */

.faq-item__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(61, 226, 255, 0.4);
  position: relative;
}

/* Plus/minus lines */

.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  background: rgba(61, 226, 255, 0.85);
  border-radius: 999px;
  transition: transform var(--transition-base);
}

.faq-item__icon::before {
  width: 10px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-item__icon::after {
  width: 2px;
  height: 10px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* When FAQ is expanded, hide the vertical stroke (turning plus into minus) */

.faq-item__button[aria-expanded="true"] .faq-item__icon::after {
  transform: translate(-50%, -50%) scaleY(0);
}

/* FAQ Panel */

.faq-item__panel {
  padding: 0 1.5rem 1.2rem;
  border-top: 1px solid rgba(61, 226, 255, 0.2);
}

.faq-item__panel p {
  font-size: 0.95rem;
  color: var(--color-neutral-200);
}

/* ------------------------------- */
/*             FOOTER              */
/* ------------------------------- */

.site-footer {
  padding: 2.75rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: radial-gradient(circle at top, #101727 0, #020308 55%, #000000 100%);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer__brand {
  max-width: 360px;
}

.footer__brand p {
  font-size: 0.9rem;
  color: var(--color-neutral-400);
}

.footer__nav {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(120px, auto);
  gap: 2rem;
}

.footer__nav-group-title {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-neutral-200);
  margin-bottom: 0.75rem;
}

.footer__nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__nav-list li {
  margin-bottom: 0.4rem;
}

.footer__nav-list a {
  font-size: 0.88rem;
  color: var(--color-neutral-400);
}

.footer__nav-list a:hover {
  color: var(--color-neutral-100);
}

/* Footer bottom bar */

.footer__bottom {
  margin-top: 2.4rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.footer__legal {
  display: inline-flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--color-neutral-500);
}

.footer__social {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.footer__social-link {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-neutral-200);
}

/* ------------------------------- */
/*  FIRST VISIT / TESTING BANNER   */
/* ------------------------------- */

.testing-banner {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none; /* shown via JS on first load */
  align-items: flex-start;
  justify-content: center;
  padding: 1.5rem;
  background: radial-gradient(circle at top, rgba(1, 9, 27, 0.98), rgba(0, 0, 0, 0.96));
}

.testing-banner--visible {
  display: flex;
}

.testing-banner__inner {
  width: 100%;
  max-width: 780px;
  margin-top: 2.5rem;
  border-radius: 18px;
  background: radial-gradient(circle at top, rgba(22, 52, 94, 0.98), rgba(4, 9, 20, 0.98));
  border: 1px solid rgba(61, 226, 255, 0.35);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.9);
  padding: 1.75rem 1.8rem 1.6rem;
  position: relative;
  overflow: hidden;
}

/* Left accent glow */

.testing-banner__inner::before {
  content: "";
  position: absolute;
  inset: -20% auto auto -15%;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle at center, rgba(61, 226, 255, 0.32), rgba(24, 91, 154, 0));
  opacity: 0.9;
  pointer-events: none;
}

/* Title row */

.testing-banner__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.testing-banner__icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #3de2ff, #0080c0);
  box-shadow: 0 0 24px rgba(61, 226, 255, 1);
}

/* icon uses same base style as hero icon */

.testing-banner__title {
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-neutral-50);
}

/* Subtext row */

.testing-banner__body {
  margin-bottom: 1rem;
}

.testing-banner__body p {
  font-size: 0.9rem;
  color: var(--color-neutral-100);
}

.testing-banner__list {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--color-neutral-200);
}

/* Metrics or test labels */

.testing-banner__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 1.5rem;
  margin: 0.8rem 0 1.2rem;
}

.testing-banner__metric-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(226, 228, 234, 0.85);
}

.testing-banner__metric-value {
  font-size: 0.92rem;
  font-weight: 500;
}

/* CTA row */

.testing-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
  align-items: center;
}

/* Buttons inside the banner */

.testing-banner__btn-primary {
  background: linear-gradient(135deg, #1eb5ff, #3de2ff);
  color: #02040a;
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.testing-banner__btn-secondary {
  background: transparent;
  color: var(--color-neutral-100);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
}

/* ------------------------------- */
/*        RESPONSIVE QUERIES       */
/* ------------------------------- */

@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.2fr);
  }

  .hero__visual {
    margin-top: 2.5rem;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__nav {
    grid-auto-flow: row;
  }
}

@media (max-width: 768px) {
  .site-header__inner {
    padding: 0.75rem 0;
  }

  .site-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    padding: 1rem 1.5rem 1.25rem;
    background: radial-gradient(circle at top, #101727 0, #020308 55%, #000000 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition:
      opacity var(--transition-base),
      transform var(--transition-base);
  }

  .site-nav--open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero {
    padding-top: 3.25rem;
  }

  .hero__title {
    font-size: clamp(2.1rem, 6vw, 2.6rem);
  }

  .hero__lead {
    font-size: 1.02rem;
  }

  .hero__meta {
    gap: 1rem 1.5rem;
  }

  .about-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid--3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    padding: 3rem 0;
  }

  .footer__inner {
    flex-direction: column;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Testing banner on mobile */
  .testing-banner__inner {
    margin-top: 1.5rem;
    padding: 1.4rem 1.4rem 1.3rem;
  }
}

@media (max-width: 640px) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .section-header--news {
    flex-direction: row;
    align-items: center;
  }

  .section-header--news .section__title {
    text-align: center;
  }

  .section-header--news + .section__subtitle {
    text-align: center;
  }

  .footer__nav {
    width: 100%;
  }
}

/* Fine adjustment for the "Who we are" metrics to avoid overlap on smaller widths */
@media (max-width: 640px) {
  .about-metrics {
    padding: 0.75rem 0.25rem 0.4rem;
    gap: 0.85rem;
  }

  .metric {
    padding: 0.65rem 1.1rem 0.75rem;
  }
}

/* Ensure FAQ layout and metrics stack nicely on small screens */
@media (max-width: 640px) {
  .faq-item__button {
    padding: 0.95rem 1.1rem;
    align-items: flex-start;
  }

  .testing-banner__metrics {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* To ensure the "Trusted by ecosystems" grid and FAQ don't collide vertically
   if any custom changes were made to the HTML structure, we keep a small margin */
@media (max-width: 640px) {
  .about-metrics-wrapper {
    margin-top: 1.25rem;
  }
}

/* If columns overlap on very narrow devices, we allow wrapping with minimal impact */
@media (max-width: 480px) {
  .about-metrics {
    display: flex;
    flex-direction: column;
  }

  .metric {
    width: 100%;
  }
}

/* Additional safeguard against column overlap on small laptop widths */
@media (max-width: 900px) and (min-width: 641px) {
  .about-metrics {
    padding: var(--space-2) 0;
    column-gap: 24px !important;
  }
}


/* ========================================= */
/*  HEADER TWEAKS (logo size + shrink state) */
/* ========================================= */

/* Logo plus compact par défaut */
.site-header__logo img {
  height: 32px;
  width: auto;
}

/* Header bien plus compact quand on scrolle */
.site-header--shrink .site-header__inner {
  padding-block: 8px;
}

.site-header--shrink .site-header__logo img {
  height: 26px;
}

/* On garde une transition douce */
.site-header,
.site-header__inner,
.site-header__logo img {
  transition:
    background-color var(--transition-med),
    padding-block var(--transition-med),
    height var(--transition-med),
    box-shadow var(--transition-med),
    transform var(--transition-fast);
}

/* =============================== */
/*  NAV : accent sur lien MineSmart */
/* =============================== */

.site-nav__link--accent {
  color: var(--color-primary);
}

.site-nav__link--accent:hover,
.site-nav__link--accent:focus-visible {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* Sur mobile, on garde aussi l'accent */
.site-header__nav-toggle[aria-expanded="true"]
  + .site-header__nav
  .site-nav__link--accent {
  color: var(--color-primary);
}

/* ============================= */
/*  COOKIE BANNER – bottom bar   */
/* ============================= */

.cookie-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 9999;
  padding: 16px;
  pointer-events: none; /* pour ne pas bloquer le scroll autour */
}

.cookie-banner__inner {
  pointer-events: auto;
  max-width: 1120px;
  margin: 0 auto;
  background: var(--color-neutral-950);
  color: var(--color-neutral-0);
  border-radius: 12px;
  padding: 16px 24px 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cookie-banner__title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.cookie-banner__text {
  font-size: 0.9rem;
  margin: 0;
  color: var(--color-neutral-200);
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie-banner__manage {
  margin-left: auto;
}

/* Animation de disparition */
.cookie-banner--hidden {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity var(--transition-med),
    transform var(--transition-med);
}

/* Responsive : pile + boutons en colonne sur petit écran */
@media (max-width: 640px) {
  .cookie-banner__inner {
    padding-inline: 16px;
  }

  .cookie-banner__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__manage {
    margin-left: 0;
  }
}

/* ===================================== */
/* FIX COOKIE BANNER BACKGROUND OVERLAP  */
/* ===================================== */

/* Force la bannière à être au-dessus de TOUT */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999999 !important; /* plus haut que tous les autres éléments */
  pointer-events: auto;
  backdrop-filter: blur(6px);
}

/* Empêche les sections ou blocs de passer au-dessus */
section,
.division,
.card,
.card--feature,
.card--proof,
.about-metrics,
.about-metrics__item {
  position: relative;
  z-index: 1;
}

/* Le conteneur interne de la bannière doit avoir son propre fond opaque */
.cookie-banner__inner {
  background: #0b111d !important; /* couleur neutre Minexx 950 */
  border: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 2;
  position: relative;
}

/* ========================= */
/*       COOKIE BANNER       */
/* ========================= */

.cookie-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  padding: 0 16px 16px;
  pointer-events: none;          /* évite de bloquer toute la page */
  transform: translateY(24px);
  opacity: 0;
  transition: transform 220ms ease-out, opacity 220ms ease-out;
}

/* Etat visible */
.cookie-banner--visible {
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner__inner {
  pointer-events: auto;
  max-width: 1120px;             /* aligné sur ton container principal */
  width: 100%;
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  background:
    radial-gradient(circle at top left,
      rgba(0, 148, 217, 0.18),
      transparent 55%)
    ,
    #05070c;                     /* sombre, cohérent avec le site */
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* Colonne texte */
.cookie-banner__main {
  flex: 1 1 auto;
}

.cookie-banner__eyebrow {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f5f7fa;
  margin: 0 0 6px;
}

.cookie-banner__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #e5edf7;
}

/* Colonne boutons */
.cookie-banner__actions {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.cookie-banner__btn {
  min-width: 160px;
  justify-content: center;
}

/* Lien de gestion */
.cookie-banner__manage {
  border: none;
  background: none;
  padding: 0;
  margin: 4px 0 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: #f5f7fa;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: opacity 150ms ease;
}

.cookie-banner__manage:hover,
.cookie-banner__manage:focus-visible {
  opacity: 0.8;
}

/* On force les autres sections à passer "sous" la bannière */
main,
section,
footer {
  position: relative;
  z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .cookie-banner {
    padding-inline: 12px;
  }

  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    padding: 16px 16px 14px;
    gap: 12px;
  }

  .cookie-banner__actions {
    align-items: stretch;
  }

  .cookie-banner__btn {
    width: 100%;
  }

  .cookie-banner__manage {
    text-align: left;
  }
}

/* Mise en avant de MineSmart dans le menu */
.site-nav__list a[href="#minesmart"] {
  color: var(--color-minesmart);
  font-weight: 800;
}

.site-nav__list a[href="#minesmart"]::after {
  background: var(--color-minesmart);
}

/* Logo dans le header – taille de base */
.site-logo__image {
  height: 64px;            /* au lieu de 72px */
  width: auto;
  flex-shrink: 0;
  transition:
    height var(--transition-med),
    transform var(--transition-med);
}

/* Tagline : inchangée, mais tu peux vérifier qu'elle reste lisible */
.site-logo__tagline {
  margin: 0;
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1.4;
  color: var(--color-neutral-400);
  max-width: 240px;
}

.site-header--shrink {
  background: rgba(247, 248, 250, 0.98);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.site-header--shrink .site-header__inner {
  padding-block: 8px;      /* header plus compact */
}

.site-header--shrink .site-logo__image {
  height: 48px;            /* plus petit qu’à l’état normal */
  transform: translateY(1px);
}

.site-header--shrink .site-logo__tagline {
  font-size: 11px;
}

/* Réduction du menu au shrink */
.site-header--shrink .site-nav__list a {
  padding-block: 2px;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.site-header--shrink .site-nav__list {
  gap: 20px;
}

/* ------------------------------------------------------------------
   HEADER – ÉTAT NORMAL
-------------------------------------------------------------------*/

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(
    to bottom,
    #030b18 0%,
    rgba(3, 11, 24, 0.96) 60%,
    rgba(3, 11, 24, 0.90) 100%
  );
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition:
    background 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.site-header__inner {
  max-width: 1120px;
  margin-inline: auto;
  padding-block: 18px;              /* hauteur de base */
  padding-inline: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  transition:
    padding-block 200ms ease,
    gap 200ms ease;
}

/* Logo + tagline ------------------------------------------------- */

.site-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-logo__image {
  height: 60px;                     /* taille de base du logo */
  width: auto;
  flex-shrink: 0;
  transition:
    height 200ms ease,
    transform 200ms ease;
}

.site-logo__tagline {
  margin: 0;
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1.3;
  color: var(--color-neutral-300);
  max-width: 220px;
}

/* Navigation ------------------------------------------------------ */

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-block: 4px;
  font-size: 13px;                  /* taille de base */
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #ffffff;
  position: relative;
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.site-nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  margin-inline: auto;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--color-primary);
  transition: width 180ms ease;
}

.site-nav__list a:hover::after,
.site-nav__list a:focus-visible::after {
  width: 100%;
}

/* Mise en avant de MineSmart (sans changer la couleur de base) */
.site-nav__list a[href="#minesmart"] {
  font-weight: 800;
}
.site-nav__list a[href="#minesmart"]::after {
  background: var(--color-minesmart);
}

/* ------------------------------------------------------------------
   HEADER – ÉTAT RÉDUIT AU SCROLL
-------------------------------------------------------------------*/

.site-header--shrink {
  background: rgba(247, 248, 250, 0.96);    /* fond clair déjà utilisé */
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  border-bottom-color: rgba(0, 0, 0, 0.04);
}

.site-header--shrink .site-header__inner {
  padding-block: 8px;                      /* header plus fin */
  gap: 20px;
}

/* logo & tagline plus petits */
.site-header--shrink .site-logo__image {
  height: 40px;                            /* logo shrinké */
  transform: translateY(1px);
}

.site-header--shrink .site-logo__tagline {
  font-size: 11px;
  max-width: 200px;
}

/* nav plus compacte */
.site-header--shrink .site-nav__list {
  gap: 20px;
}

.site-header--shrink .site-nav__list a {
  font-size: 11px;
  padding-block: 2px;
}

/* sur fond clair, légère adaptation du texte */
.site-header--shrink .site-nav__list a {
  color: #07101a;
}

.site-header--shrink .site-nav__list a::after {
  bottom: -4px;
}


/* ----------------------------------------------------------
   Ajustements du header en mode shrink
----------------------------------------------------------*/

/* on masque la baseline quand le header est réduit */
.site-header--shrink .site-logo__tagline {
  display: none;
}

/* on centre encore mieux le logo */
.site-header--shrink .site-logo {
  gap: 8px;
}

/* légère réduction supplémentaire de la hauteur si tu veux */
.site-header--shrink .site-header__inner {
  padding-block: 6px;
}

/* ----------------------------------------------------------
   Réduction de l’espace entre les liens du menu
----------------------------------------------------------*/
.site-nav__list {
  display: flex;
  align-items: center;
  gap: 18px; /* anciennement 48px ou + → réduit */
}

/* encore plus compact quand le header est réduit */
.site-header--shrink .site-nav__list {
  gap: 14px; /* menu plus serré en shrink */
}


/* ----------------------------------------------------------
   Dual CTA Section
----------------------------------------------------------*/
.cta-duo {
  display: flex;
  gap: 48px; /* plus d’espace horizontal */
  margin: 40px 0 28px; /* espace au-dessus et sous les CTA */
  align-items: center;
  flex-wrap: wrap;
}

.cta {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 28px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease, border 0.25s ease;
}

/* Primary CTA */
.cta--primary {
  background: #009FFF; /* bleu Minexx */
  color: #fff;
}
.cta--primary:hover {
  background: #38b6ff;
}

/* Secondary CTA */
.cta--secondary {
  border: 1px solid #fff;
  color: #fff;
}
.cta--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Third CTA */
.cta--third {
  border: 1px solid #38b6ff;
  color: #38b6ff;
}
.cta--third:hover {
  background: #38b6ff;
    color: #fff;
    text-decoration:none;
}

.about-section ul,
.section ul {
  margin-top: 12px !important; /* espace entre CTA et bullets */
}

.cta-followup {
  padding-top: 12px;
}

/* Dual CTA row */
.cta-duo {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;              /* espace horizontal entre les deux boutons */
  margin-top: 24px;       /* espace après le paragraphe */
  margin-bottom: 16px;    /* espace avant la liste */
  align-items: center;
}

/* S'assurer que les boutons ne s’étirent pas trop */
.cta-duo a,
.cta-duo .btn,
.cta-duo .btn--primary,
.cta-duo .btn--secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

/* Liste qui suit les CTA */
.cta-followup {
  margin-top: 4px;        /* petit espace au-dessus de la liste */
}

/* Mobile : boutons l'un sous l'autre mais bien groupés */
@media (max-width: 768px) {
  .cta-duo {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .cta-duo a,
  .cta-duo .btn,
  .cta-duo .btn--primary,
  .cta-duo .btn--secondary {
    width: 100%;
    max-width: 320px;     /* pour garder un look propre */
  }
}

/* --- DEFAULT NAV LINK --- */
.nav__link {
  color: #ffffff;
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}

/* --- HOVER UNDERLINE (white) --- */
.nav__link:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
}

/* --- ACTIVE LINK (DISCOVER MINESMART) --- */
.nav__link.active {
  color: #3BA7FF; /* bleu Minexx */
  font-weight: 600;
}

.nav__link.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: #ffffff; /* underline stays white */
  border-radius: 2px;
}

.nav__link:hover {
  color: #87c9ff;
}

/* FORCE Discover Minesmart blue + underline */
nav .nav-list li a[href*="minesmart"],
header .nav-list li a[href*="minesmart"],
.nav-list li a[href*="minesmart"] {
    color: #33A3FF !important;   /* Minexx blue */
    position: relative !important;
}

/* White underline for active Discover Minesmart */
nav .nav-list li a[href*="minesmart"]::after,
header .nav-list li a[href*="minesmart"]::after,
.nav-list li a[href*="minesmart"]::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    transform: scaleX(1);
    transform-origin: left;
}

/* Hover underline animation */
nav .nav-list li a:hover::after,
header .nav-list li a:hover::after,
.nav-list li a:hover::after {
    transform: scaleX(1);
    transition: transform 0.25s ease;
}

/* =========================================================== */
/*         PREMIUM MINEXX HEADER — SHRINK ON SCROLL            */
/* =========================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: radial-gradient(120% 220% at 10% 0%, #06101f 0%, #020713 55%);
  padding: 28px 0;
  transition:
    padding 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* -------- LOGO -------- */
.site-logo__image {
  height: 62px;   /* taille normale */
  transition: height 0.25s ease, transform 0.25s ease;
}

.site-logo__tagline {
  margin-left: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #d7d7d7;
  transition: opacity 0.25s ease;
}

/* -------- NAVIGATION -------- */
.site-nav__list {
  display: flex;
  gap: 3rem; /* ESPACEMENT que tu voulais réduire */
  align-items: center;
}

.site-nav__list a {
  text-decoration: none;
  color: #ffffff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 4px 0;
  position: relative;
  transition: color 0.2s ease, font-size 0.2s ease;
}

/* Ligne animée sous chaque item */
.site-nav__list a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #33A3FF;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-nav__list a:hover::after,
.site-nav__list a:focus-visible::after {
  transform: scaleX(1);
}

/* =========================================================== */
/*                  SHRINKED VERSION (ON SCROLL)               */
/* =========================================================== */

.site-header--scrolled {
  padding: 10px 0;
  background: rgba(2, 7, 19, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.5);
}

.site-header--scrolled .site-logo__image {
  height: 40px; /* shrink logo */
  transform: translateY(1px);
}

.site-header--scrolled .site-logo__tagline {
  opacity: 0;
}

.site-header--scrolled .site-nav__list {
  gap: 2rem; /* réduire les espacements au scroll */
}

.site-header--scrolled .site-nav__list a {
  font-size: 0.74rem;
}

/* =========================================================== */
/*    DISCOVER MINESMART — ACTIVE + custom underline/colour     */
/* =========================================================== */

.nav_link.active {
  color: #33A3FF !important;
}

.nav_link.active::after {
  background: #ffffff !important;
  transform: scaleX(1) !important;
}

/* =========================================================== */
/* Responsive header consistency                               */
/* =========================================================== */

@media (max-width: 960px) {
  .site-header {
    padding: 20px 0;
  }

  .site-header--scrolled {
    padding: 8px 0;
  }

  .site-logo__image {
    height: 48px;
  }

  .site-header--scrolled .site-logo__image {
    height: 34px;
  }

  .site-nav__list {
    gap: 1.6rem;
  }

  .site-header--scrolled .site-nav__list {
    gap: 1.2rem;
  }
}

/* ===========================================================
   SHRINKED VERSION (ON SCROLL) — FIXED
   =========================================================== */

.site-header--scrolled {
  padding: 14px 0;                 /* un peu plus haut pour respirer */
  background: #020713;             /* fond plein, plus de bande claire */
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
  backdrop-filter: none;           /* on enlève le blur pour éviter les artefacts */
}

.site-header--scrolled .site-logo__image {
  height: 40px;                    /* logo réduit mais lisible */
  transform: translateY(1px);
}

.site-header--scrolled .site-logo__tagline {
  opacity: 0;
}

.site-header--scrolled .site-nav__list {
  gap: 2rem;                       /* léger resserrage sur scroll */
}

.site-header--scrolled .site-nav__list a {
  font-size: 0.74rem;
}

/* =========================================
   NAV LINKS – ÉTAT PAR DÉFAUT
   ========================================= */
.site-nav__link {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  transition: color 180ms ease, opacity 180ms ease, transform 160ms ease;
}

.site-nav__link:hover,
.site-nav__link:focus {
  opacity: 1;
  color: #ffffff;
}

/* lien actif (ex : Discover MineSmart) */
.site-nav__link.nav_link--active {
  color: #2ca7ff;                 /* bleu Minexx */
}

/* =========================================
   NAV LINKS – HEADER RÉDUIT AU SCROLL
   ========================================= */
.site-header--scrolled .site-nav__list a {
  font-size: 0.78rem;             /* légèrement plus petit qu’en haut de page */
}

.site-header--scrolled .site-nav__link {
  color: #ffffff;                 /* texte bien contrasté */
  opacity: 0.95;                  /* quasi plein, mais un peu plus soft */
}

.site-header--scrolled .site-nav__link:hover,
.site-header--scrolled .site-nav__link:focus {
  opacity: 1;
  color: #ffffff;
}


/* =========================================
   NAVIGATION – STYLES PAR DÉFAUT
   ========================================= */

/* liens du menu (desktop) */
.site-nav__list a,
.nav-link,
.nav_link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  text-decoration: none;
  transition:
    color 180ms ease,
    opacity 180ms ease,
    transform 160ms ease;
}

.site-nav__list a:hover,
.site-nav__list a:focus,
.nav-link:hover,
.nav-link:focus,
.nav_link:hover,
.nav_link:focus {
  color: #ffffff;
  opacity: 1;
}

/* lien actif : Discover MineSmart en bleu + soulignement blanc */
.nav_link--active,
.nav-link--active,
.site-nav__list a.nav_link--active {
  color: #2ca7ff; /* bleu Minexx */
  position: relative;
}

.nav_link--active::after,
.nav-link--active::after,
.site-nav__list a.nav_link--active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.45rem;
  height: 2px;
  background: #ffffff;
}

/* =========================================
   NAVIGATION – HEADER RÉDUIT AU SCROLL
   ========================================= */

.site-header--scrolled {
  background: #020713;
}

/* au scroll : on garde le texte BIEN lisible */
.site-header--scrolled .site-nav__list a,
.site-header--scrolled .nav-link,
.site-header--scrolled .nav_link {
  color: #ffffff !important;
  opacity: 0.95 !important;
  font-size: 0.78rem; /* un poil plus petit mais toujours lisible */
}

/* hover au scroll : léger boost d’opacité */
.site-header--scrolled .site-nav__list a:hover,
.site-header--scrolled .site-nav__list a:focus,
.site-header--scrolled .nav-link:hover,
.site-header--scrolled .nav-link:focus,
.site-header--scrolled .nav_link:hover,
.site-header--scrolled .nav_link:focus {
  opacity: 1 !important;
}


.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: radial-gradient(circle at top center, #0d1826 0%, #050811 55%, #050811 100%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition:
    padding 200ms ease,
    background-color 200ms ease,
    box-shadow 200ms ease,
    transform 200ms ease;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1rem;
}

.site-header--compact .site-header__inner {
  padding-block: 0.45rem;
}

/* Logo */
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}

.site-logo__image {
  height: 40px;
  width: auto;
  transition: transform 200ms ease;
}

.site-header--compact .site-logo__image {
  transform: scale(0.82);
}

.site-logo__tagline {
  font-size: 0.68rem;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

/* Nav desktop  */
.site-nav {
  display: flex;
  align-items: center;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding-block: 0.25rem;
  transition:
    color 160ms ease,
    opacity 160ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: #2da9e1; /* bleu Minexx */
  transition: width 170ms ease-out;
}

/* Hover / focus */
.site-nav a:hover,
.site-nav a:focus-visible {
  color: #ffffff;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  width: 100%;
}

/* Lien accent MineSmart */
.nav-link--accent {
  color: #2da9e1;
}

.nav-link--accent::after {
  background: #ffffff;
}

/* Active (section en cours) – tu peux l'ajouter dynamiquement si tu veux */
.site-nav a.nav-link--active {
  color: #ffffff;
}

.site-nav a.nav-link--active::after {
  width: 100%;
}

/* Compact header (scroll) */
.site-header--compact {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

.site-header--compact .site-nav a {
  color: rgba(255, 255, 255, 0.78);
}


/* Bouton burger par défaut : caché en desktop */
.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  padding: 0.25rem;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  transition:
    transform 180ms ease,
    opacity 160ms ease,
    background-color 160ms ease;
}

/* État ouvert : transformation du burger */
.nav-toggle--open .nav-toggle__bar:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle--open .nav-toggle__bar:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* --- MOBILE --- */
@media (max-width: 900px) {
  .site-header__inner {
    padding-block: 0.75rem;
  }

  .site-logo__tagline {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height, 72px) 0 auto 0;
    padding: 1.5rem 1.5rem 2rem;
    display: none;              /* fermé par défaut */
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    background: radial-gradient(circle at top center, #0d1826 0%, #050811 55%, #050811 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
    z-index: 95;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition:
      opacity 180ms ease-out,
      transform 180ms ease-out;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .site-nav a {
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    padding-block: 0.15rem;
  }

  /* État ouvert */
  .site-nav--open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* Quand le menu est ouvert, on évite que le body scrolle en dessous si tu veux */
  body.site-nav-open {
    overflow: hidden;
  }
}


/* -------------------------------------------
   HERO – version "full background" avec photo
   ------------------------------------------- */

.hero {
  position: relative;
  padding-block: var(--space-64); /* un peu plus haut */
  color: var(--color-neutral-0);
  background:
    /* gradient sombre pour la lisibilité du texte */
    linear-gradient(
      115deg,
      rgba(3, 6, 15, 0.96) 18%,
      rgba(3, 6, 15, 0.92) 32%,
      rgba(3, 6, 15, 0.65) 55%,
      rgba(3, 6, 15, 0.25) 75%,
      rgba(3, 6, 15, 0.0) 100%
    ),
    url("../images/minexx-hero-mining-bg.jpeg") center right / cover no-repeat;
}




/* Le contenu passe en une seule colonne, comme Circulor */
/* Le contenu passe en une seule colonne, alignée comme le logo */
.hero__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* collé au bord gauche du container, donc aligné au logo */
}

/* Titre + texte en clair sur fond sombre */
.hero__content h1 {
  color: var(--color-neutral-0);
}

.hero__lead {
  color: var(--color-neutral-200);
}

.cta-followup,
.hero__highlights {
  color: var(--color-neutral-200);
}

/* On masque l'ancienne image d'illustration */
.hero__visual {
  display: none;
}


/* =========================
   Hero
   ========================= */

.hero {
  position: relative;
  padding: 7rem 0 6rem; /* haut / bas du hero */
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(4, 11, 24, 0.96) 0%, rgba(4, 11, 24, 0.25) 55%, rgba(4, 11, 24, 0.9) 100%),
    url("../images/minexx-hero-mining-bg.jpeg") center center / cover no-repeat fixed;
}

.hero2 {
   position: relative;
  padding: 7rem 0 6rem; /* haut / bas du hero */
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(4, 11, 24, 0.96) 0%, rgba(4, 11, 24, 0.25) 55%, rgba(4, 11, 24, 0.9) 100%),
    url("../images/hero2_background.png") center center / cover no-repeat fixed;
}

/* Hero layout : colonne calée à gauche, sans décalage */
.hero__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* Colonne de texte */
.hero__content {
  max-width: 650px;
}

/* =========================
   Hero – responsive
   ========================= */

@media (max-width: 960px) {
  .hero {
    padding: 6rem 0 4rem;
    background-attachment: scroll;
    background-position: center top;
  }

  .hero__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__content {
    max-width: none;
  }
}

/* ALIGNEMENT & GRID – KPIs */

/* =========================
   KPIs – Who we are
   ========================= */

.about-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 1.75rem;  /* espace horizontal entre cartes */
  row-gap: 2.25rem;     /* espace vertical entre lignes de KPI */
  margin-top: 3rem;     /* espace au-dessus du bloc KPI (sous les cartes vision/mission) */
  /*margin-bottom: 3rem;   un peu d'air en bas aussi */
}

@media (max-width: 1024px) {
  .about-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.5rem;
    row-gap: 2rem;
    margin-top: 2.5rem;
  }
}

@media (max-width: 640px) {
  .about-metrics {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 1.75rem;
    margin-top: 2rem;
  }
}

/* Cartes KPI – on réutilise le style "metric" existant */

.metric {
  background: linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.04),
      rgba(0, 0, 0, 0.5)
    );
  border-radius: 20px;
  padding: 1.75rem 1.75rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.metric__value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
}

.metric__label {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-neutral-100);
}

/* ======================================================
   LIGHT MODE — "Who we are" section + KPI cards
   ====================================================== */

/* Section container */
.section-who {
    background: #ffffff;
    color: #1a1a1a;
    padding: 6rem 0;
}

/* Titles */
.section-who h2,
.section-who h3,
.section-who h4 {
    color: #111;
}

/* Subtitle */
.section-who .section_subtitle {
    color: #555;
}

/* Info cards (Vision / Mission / Philosophy) */
.info-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    color: #333;
}

/* Bullet list */
.info-card ul li {
    color: #444;
}

/* KPI GRID */
.kpi-grid {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

/* KPI Cards */
.kpi-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
    border: 1px solid #eaeaea;
}

/* KPI number */
.kpi-card .kpi-number {
    font-size: 2rem;
    font-weight: 800;
    color: #0077cc; /* Bleu clair comme ton exemple */
}

/* KPI text */
.kpi-card .kpi-text {
    margin-top: 1rem;
    line-height: 1.6;
    font-size: 0.95rem;
    color: #444;
}

/* For visual spacing */
.kpi-card p {
    margin: 0;
}

/* =========================================================
   WHO WE ARE – version claire (light mode uniquement ici)
   ========================================================= */

/* Section "Who we are" */
#about.section.section--alt {
  background: #ffffff;
  color: #111111;
}

/* Titre + kicker */
#about .section__header h2 {
  color: #111111;
}

#about .section__kicker {
  color: #666666;
}

/* Cartes Vision / Mission / Philosophy */
#about .card.card--text {
  background: #ffffff;
  border-radius: 16px;
  padding: 2.5rem 2.25rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid #eef0f5;
  color: #333333;
}

#about .card__header h3,
#about .card__subheading {
  color: #111111;
}

#about .card.card--text p {
  color: #444444;
}

/* Pills "Transparency / Innovation / Partnership / Sustainability" */
#about .pill-list {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#about .pill-list li {
  background: #f5f7fb;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  color: #333333;
}

/* =========================================================
   KPIs / Metrics – version claire
   ========================================================= */

#about .about-metrics {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

/* Carte KPI */
#about .metric {
  background: #ffffff;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid #eef0f5;
}

/* Valeur du KPI (nombre avec countup) */
#about .metric__value {
  margin: 0 0 0.75rem;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #28A8E0; /* Bleu clair type B2B SaaS */
}

/* Label du KPI */
#about .metric__label {
  margin: 0;
  color: #444444;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Un peu plus d’air sous le bloc KPIs */
#about .container:last-of-type {
  padding-bottom: 4rem;
}

/* Responsive : resserrer un peu sur mobile */
@media (max-width: 768px) {
  #about .card.card--text {
    padding: 1.75rem 1.5rem;
  }

  #about .about-metrics {
    gap: 1.5rem;
  }

  #about .metric {
    padding: 2rem 1.75rem;
  }
}

/* Grille par défaut : 2 colonnes (desktop) */
.grid--2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

/* Sur mobile : 1 colonne -> Our Philosophy passe sous Our Vision */
@media (max-width: 768px) {
  .grid--2 {
    grid-template-columns: 1fr;
  }
}
/* Grille KPIs – desktop : 4 colonnes */
.about-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

/* Tablette et mobile : 2 colonnes (donc 2 cartes par ligne) */
@media (max-width: 1024px) {
  .about-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* Réduire l'espace avant le bloc KPIs */
.about-metrics {
  margin-top: 2rem !important; /* réduit fortement l'espace */
}

/* Optionnel : resserrer encore sur mobile */
@media (max-width: 768px) {
  .about-metrics {
    margin-top: 1.5rem !important;
  }
}

.grid--2 {
  margin-bottom: 1rem; /* avant KPIs */
}

.card {
  margin-bottom: 0 !important; /* certains templates ajoutent du margin-bottom */
}


/* ========= KPIs – grille responsive ========= */

.about-metrics {
  display: grid;
  gap: 1.5rem;                /* espace entre les cartes */
  margin-top: 2rem;           /* espace avant le bloc (déjà réduit) */
  grid-template-columns: repeat(4, minmax(0, 1fr)); /* desktop */
}

/* Cartes KPI */
.metric {
  min-width: 0;               /* permet à la carte de vraiment rétrécir */
}

/* Tablette (≈ 3 colonnes) */
@media (max-width: 1024px) {
  .about-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Mobile : 2 cards par ligne */
@media (max-width: 768px) {
  .about-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .metric {
    padding: 1.25rem 1rem;    /* un peu plus compact si besoin */
  }
}

/* Très petit écran : on repasse à 1 colonne si nécessaire */
@media (max-width: 380px) {
  .about-metrics {
    grid-template-columns: 1fr;
  }
}


/* ========================================= */
/* BUSINESS PILLARS – 1 par ligne en mobile  */
/* ========================================= */

.business-pillars,
.pillars,
.division-grid,
.grid--4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}

/* Mobile : 1 pilier par ligne */
@media (max-width: 768px) {
  .business-pillars,
  .pillars,
  .division-grid,
  .grid--4 {con
    grid-template-columns: 1fr;
  }
}





/* ============================================
   MineSmart Section - Background Image
=============================================== */
.minesmart-section {
  position: relative;
  padding: 160px 0 200px; /* Ajuste pour plus ou moins d'espace */
  background: url('../images/Minesmart-background.png') center/cover no-repeat;
  overflow: hidden;
}

/* Overlay sombre pour rendre le texte lisible */
.minesmart-section::before {
  content: "";
  position: absolute;
  inset: 0;
  /*background: linear-gradient(
      rgba(0, 0, 0, 0.65),
      rgba(0, 0, 0, 0.80)
  );*/
  z-index: 1;
}

/* S'assurer que le contenu reste au-dessus du fond */
.minesmart-section .container,
.minesmart-section .card {
  position: relative;
  z-index: 2;
}


/* ============================================
   Ecosystem Section - Video Background
=============================================== */

.ecosystem-section {
  position: relative;
  padding: 180px 0 260px; /* ajuste la hauteur */
  overflow: hidden;
}

/* Conteneur vidéo */
.video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.video-bg video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0.55; /* ajuste si tu veux plus ou moins visible */
}

/* Overlay sombre pour la lisibilité */
.ecosystem-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      rgba(0, 0, 0, 0.55),
      rgba(0, 0, 0, 0.80)
  );
  z-index: 1;
}

/* Le contenu doit passer au-dessus de la vidéo */
.ecosystem-section .container,
.ecosystem-section .card {
  position: relative;
  z-index: 2;
}


/* ============================================
   Insights Section - Light Theme (White Cards)
=============================================== */

.insights--light {
  background: #ffffff;
  padding: 100px 0;
}

.insights--light .section__header h2,
.insights--light .section__header p {
  color: #111; /* texte foncé */
}

.insights--light .card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.insights--light .card h3 {
  color: #111;
}

.insights--light .card p {
  color: #444;
}

.insights--light .card strong {
  color: #000;
}

.insights--light .card img {
  opacity: 0.95;
}

/* CTA inside cards */
.insights--light .card a,
.insights--light .card .card__cta {
  color: #0077c8; /* bleu Minexx clair */
  font-weight: 600;
}

.insights--light .card a:hover {
  text-decoration: underline;
}

/* spacing identical to white KPI cards */
.insights--light .cards-grid {
  margin-top: 40px;
  gap: 32px;
}

/* ============================
   PILLARS V2 SECTION (CIRCULOR STYLE)
   ============================ */

.pillars-v2 {
  background: #f5f7fb;
  padding: 100px 0;
}

.pillars-v2__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.pillars-v2__header {
  margin-bottom: 60px;
}

.pillars-v2__kicker {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 10px;
}

.pillars-v2__title {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.25;
  color: #07101a;
}

/* GRID — 2 CARDS PER LINE */

.pillars-v2__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

@media (max-width: 800px) {
  .pillars-v2__grid {
    grid-template-columns: 1fr;
  }
}

/* CARDS */

.pillars-v2__card {
  background: #ffffff;
  border-radius: 30px;
  padding: 48px; /* GRAND PADDING STYLE CIRCULOR */
  border: 1px solid #e1e6ef;
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
}

/* ICONES CSS SIMPLIFIÉES (géométriques) */

.pillars-v2__icon {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  background: #e6ecf5;
  margin-bottom: 24px;
  position: relative;
}

/* Trade icon */
.pillars-v2__icon--trade::after {
  content: "⛏️";
  font-size: 36px;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Algo icon */
.pillars-v2__icon--algo::after {
  content: "📈";
  font-size: 36px;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Industry icon */
.pillars-v2__icon--industry::after {
  content: "🏭";
  font-size: 36px;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Consultancy icon */
.pillars-v2__icon--consult::after {
  content: "🧭";
  font-size: 36px;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* TITLES & TEXT */

.pillars-v2__card-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #07101a;
}

.pillars-v2__subtitle {
  font-size: 1rem;
  color: #111827;
  margin-bottom: 20px;
}

.pillars-v2__list {
  font-size: 0.95rem;
  color: #4b5563;
  padding-left: 20px;
  margin-bottom: 35px;
}

.pillars-v2__list li + li {
  margin-top: 6px;
}

/* CTA PILLULE */

.pillars-v2__cta {
  align-self: flex-start;
  padding: 12px 28px;
  border-radius: 999px;
  border: 1px solid #1e96ff;
  color: #1e96ff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  font-weight: 600;
  transition: 0.2s ease;
}

.pillars-v2__cta:hover {
  background: #1e96ff;
  color: white;
  box-shadow: 0 10px 20px rgba(30,150,255,0.3);
  transform: translateY(-2px);
}

/* =========================================
   Business Pillars V2 – light / Circulor-like
   ========================================= */

.solutions-v2 {
  padding-block: 4rem;
  background-color: #f5f7fb; /* léger fond gris/blanc */
  color: #111827;
}

.solutions-v2 .container {
  max-width: 1160px;
  margin-inline: auto;
}

.solutions-v2__header {
  margin-bottom: 2.5rem;
}

.solutions-v2__header h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

.solutions-v2__kicker {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* grille : 1 colonne mobile, 2 colonnes dès le tablet */
.solutions-v2__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .solutions-v2__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Card */
.solutions-v2__card {
  background-color: #ffffff;
  border-radius: 24px;
  padding: 2.5rem 2.75rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

/* Icone dans un carré arrondi */
.solutions-v2__icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background-color: #e8f2fb; /* bleu très clair */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.solutions-v2__icon svg {
  width: 30px;
  height: 30px;
  stroke: #3aa9e0;      /* Bleu Minexx */
  fill: none;
}

/* Titres & texte */
.solutions-v2__title {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.solutions-v2__intro {
  margin: 0 0 0.9rem;
  font-size: 0.98rem;
  color: #4b5563;
}

/* Liste à puces */
.solutions-v2__list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.95rem;
  color: #374151;
}

.solutions-v2__list li + li {
  margin-top: 0.35rem;
}


/* =========================================
   CONTACT SECTION – LAYOUT FIX
   ========================================= */

/* Carte texte "Partnerships & Enquiries" */
.section--contact .card.card--text {
  padding: var(--space-32);
}

/* Image dans la carte : hauteur contrôlée + arrondis */
.section--contact .card.card--text .card__image {
  margin-top: var(--space-16);
  margin-bottom: var(--space-24);
  border-radius: 24px;
  overflow: hidden;
  background: #0f1723; /* fond sombre derrière le placeholder */
}

.section--contact .card.card--text .card__image img {
  display: block;
  width: 100%;
  height: min(260px, 26vh); /* réduit la hauteur de l’illustration */
  object-fit: cover;
}

/* Alignement du texte et de la liste sous l’image */
.section--contact .card.card--text p {
  /*margin-bottom: var(--space-16); */
}

.section--contact .card.card--text .feature-list {
  margin-top: 0;
}

/* Formulaire : occupe bien toute la hauteur de la colonne */
.section--contact .card.card--form {
  align-self: stretch;
}

/* Grille contact : 2 colonnes sur desktop, 1 sur mobile */
.grid--contact {
  align-items: flex-start;
  gap: var(--space-24);
}

@media (min-width: 960px) {
  .grid--contact {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
  }
}


/* Contact
   ============================== */

.section--contact {
  position: relative;
  padding-block: var(--space-96);
  background:
    radial-gradient(circle at top, rgba(58, 169, 224, 0.12), transparent 55%),
    radial-gradient(circle at bottom, rgba(19, 30, 55, 0.9), #050910);
  color: var(--color-neutral-0);
}

.section--contact .section__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-40);
}

.contact-grid {
  display: grid;
  gap: var(--space-32);
  max-width: 1120px;
  margin: 0 auto;
  align-items: flex-start;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  }
}

/* Bloc texte + visuel */

.contact-block {
  background: radial-gradient(circle at top left, rgba(58, 169, 224, 0.16), transparent 55%),
              rgba(9, 15, 30, 0.96);
  border-radius: 24px;
  padding: var(--space-32) var(--space-32) var(--space-28);
  box-shadow: 0 28px 80px rgba(3, 6, 15, 0.8);
}

.contact-block .card__media {
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: var(--space-24);
}

.contact-block p {
  font-size: var(--fs-sm);
  color: var(--color-neutral-200);
}

.contact-block ul {
  margin-top: var(--space-16);
  padding-left: var(--space-20);
  font-size: var(--fs-sm);
  color: var(--color-neutral-100);
}

/* Carte formulaire fond clair */

.card--form {
  background: #f4f5f8; /* fond gris clair comme l’ancienne version */
  border-radius: 24px;
  padding: 2.5rem 2.5rem 2.75rem;
  box-shadow: 0 24px 70px rgba(3, 6, 15, 0.4);
}

@media (max-width: 599px) {
  .card--form {
    padding: 1.75rem 1.5rem 2.25rem;
  }
}
/* CONTACT BLOCK - FULL LIGHT MODE
   ================================ */

.section--contact {
  background: #f4f5f8; /* fond clair uniforme */
  padding-block: var(--space-96);
  color: var(--color-neutral-900);
}

.section--contact .section__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-48);
}

.contact-grid {
  display: grid;
  gap: var(--space-40);
  max-width: 1120px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* LEFT LIGHT CARD (TEXT + IMAGE) */

.contact-block {
  background: #ffffff;
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
}

.contact-block h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--color-neutral-900);
}

.contact-block .card__media {
  width: 100%;
  height: auto;
  margin-bottom: 1.5rem;
  border-radius: 18px;
  overflow: hidden;
}

.contact-block p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-neutral-700);
  margin-bottom: 1rem;
}

.contact-block ul {
  margin-top: 1rem;
  padding-left: 1.2rem;
  color: var(--color-neutral-700);
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact-block ul li {
  margin-bottom: 0.6rem;
}

/* RIGHT CARD (FORM) */

.card--form {
  background: #ffffff;
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
}

.contact-form .form-row {
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-neutral-500);
}

/* INPUTS */

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  border: 1px solid #d4d9e5;
  background: #ffffff;
  color: var(--color-neutral-900);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #3aa9e0;
  box-shadow: 0 0 0 1px rgba(58, 169, 224, 0.35);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

/* BUTTON ALIGNMENT */

.section--contact .btn.btn--primary {
  margin-top: 0.5rem;
}

.contact-disclaimer {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--color-neutral-500);
}

/* CONTACT – FINAL LIGHT VERSION
   ============================= */

.section.section--contact {
  background: #f4f5f8; /* fond clair global */
  color: var(--color-neutral-900);
}

/* Grille contact : 2 colonnes sur desktop, 1 sur mobile */
.section--contact .grid--contact {
  align-items: flex-start;
  gap: 2.5rem;
}

@media (min-width: 960px) {
  .section--contact .grid--contact {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
  }
}

/* Les deux cartes : même style clair */
.section--contact .card.card--text,
.section--contact .card.card--form {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

/* Carte texte "Partnerships & Enquiries" */
.section--contact .card.card--text {
  padding: 2.5rem 2.5rem 2.75rem;
}

/* Image dans la carte texte */
.section--contact .card.card--text .card__image {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 18px;
  overflow: hidden;
}

.section--contact .card.card--text .card__image img {
  display: block;
  width: 100%;
  height: min(260px, 26vh);
  object-fit: cover;
}

/* Carte formulaire : même padding que l’ancienne version grise */
.section--contact .card.card--form {
  padding: 2.5rem 2.5rem 2.75rem;
}


/* ========================= */
/*        LATEST NEWS        */
/* ========================= */

.section--news {
  padding: 80px 0;
}

/* ⚠️ Override du container UNIQUEMENT dans la section news */
.section--news .container {
  max-width: 100%;
  width: 100%;
}

/* Header de la section Latest News aligné comme "Trusted by ecosystems..." */
.section__header--news {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

/* Colonne texte (titre + kicker) avec la même largeur perceptive
   que les autres gros titres de section */
.section__header--news .section__header-main {
  max-width: 720px; /* ajuste si besoin, mais 700–760px est en général cohérent */
}

/* Espace sous le H2 comme dans les autres sections */
.section__header--news h2 {
  margin-bottom: 12px;
}

.news-controls {
  display: flex;
  gap: 8px;
}

.news-arrow {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid #d7dde7;
  background: #ffffff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #07101a;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.news-arrow:hover {
  background: #f1f4f9;
  border-color: #c4ccd9;
  transform: translateY(-1px);
}

/* === WRAPPER === */
.news-wrapper {
  position: relative;      /* pour les fades */
  overflow: hidden;        /* on cache le débordement latéral */
}

/* === SCROLLER === */
.news-scroller {
  overflow-x: auto;
  overflow-y: visible;
  width: 100%;
  max-width: 100%;
  padding-bottom: 1rem;

  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.news-scroller::-webkit-scrollbar {
  height: 6px;
}

.news-scroller::-webkit-scrollbar-track {
  background: transparent;
}

.news-scroller::-webkit-scrollbar-thumb {
  background: #d0d7e3;
  border-radius: 999px;
}

/* === RAIL HORIZONTAL === */
.news-track {
  display: flex;
  gap: 2rem;
  width: max-content;      /* la largeur suit les cartes */
}

/* === CARTES === */
.card--news {
  flex: 0 0 320px;         /* largeur fixe par carte */
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(7, 16, 26, 0.04);
  display: flex;
  flex-direction: column;
  scroll-snap-align: start; /* aligne la carte au début du viewport */
}

.card--news .card__image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card--news .card__content {
  padding: 20px 20px 24px;
}

.card--news h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.card__date {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0094d9;
  margin-bottom: 10px;
}

.card__excerpt {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 16px;
}

/* === FADES LATERAUX === */
.news-wrapper::before,
.news-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.news-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #f5f7fa 0%, rgba(245, 247, 250, 0) 100%);
}

.news-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #f5f7fa 0%, rgba(245, 247, 250, 0) 100%);
}


/* Centrage du titre Latest News et du kicker */
.section__header--news .section__header-main {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Pour que seule la colonne gauche soit centrée */
.section__header--news h2,
.section__header--news .section__kicker {
  text-align: center;
}

/* Masquer complètement la scrollbar du carrousel */
.news-scroller {
    -ms-overflow-style: none;   /* IE & Edge */
    scrollbar-width: none;      /* Firefox */
}

.news-scroller::-webkit-scrollbar {
    display: none !important;   /* Chrome, Safari, Brave */
}


/* Replace blue FAQ circle with Minexx symbol */
.faq-icon {
    width: 36px;
    height: 36px;
    background-image: url("assets/images/minexx-logo-symbol.svg"); /* ← mets ton vrai chemin */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

    flex-shrink: 0;

    /* Remove previous blue circle styles */
    background-color: transparent !important;
    border-radius: 0 !important;
}


/* ============================================
   CONTACT SECTION – VERSION CLAIRE & LISIBLE
   Surcouche finale pour #contact
   ============================================ */

.section--contact {
  background: #f4f6fb;           /* fond très léger derrière les cartes */
  padding-block: 4.5rem;
}

/* Grille 2 colonnes qui respire bien */
.section--contact .grid--contact {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

/* Cartes : fond blanc, ombre douce, texte foncé */
.section--contact .card.card--text,
.section--contact .card.card--form {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  border: 1px solid #e2e7f0;
  padding: 2.5rem 2.75rem;
  color: #111827; /* texte par défaut bien foncé */
}

/* Texte de la colonne de gauche : lisible */
.section--contact .card.card--text p,
.section--contact .card.card--text li {
  color: #111827;
  opacity: 1;
  font-size: 0.95rem;
  line-height: 1.7;
}

.section--contact .card.card--text ul {
  margin-top: 1.25rem;
}

.section--contact .card.card--text li + li {
  margin-top: 0.4rem;
}

/* Titre “PARTNERSHIPS & ENQUIRIES” légèrement renforcé */
.section--contact .card.card--text .card__header h3 {
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Champs du formulaire harmonisés avec le fond clair */
.section--contact .card.card--form label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7280;
}

.section--contact .card.card--form input,
.section--contact .card.card--form select,
.section--contact .card.card--form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  color: #111827;
  font-size: 0.95rem;
}

.section--contact .card.card--form textarea {
  border-radius: 18px;
  min-height: 7rem;
}

/* Bouton submit */
.section--contact .card.card--form button[type="submit"],
.section--contact .card.card--form input[type="submit"] {
  margin-top: 1.25rem;
  padding: 0.85rem 2.5rem;
  border-radius: 999px;
  background: var(--color-primary, #23a6ff);
  color: #ffffff;
  border: none;
  font-weight: 600;
}

/* Légende sous le formulaire */
.section--contact .card.card--form .form-footnote,
.section--contact .card.card--form small {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: #6b7280;
}

/* Responsive : on empile les deux blocs sur mobile */
@media (max-width: 768px) {
  .section--contact .grid--contact {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .section--contact .card.card--text,
  .section--contact .card.card--form {
    padding: 1.75rem 1.5rem;
    border-radius: 18px;
  }
}


/* ============================
   CONTACT SECTION – HEADER FIX
   ============================ */

.section--contact .section__header {
    text-align: center;
    margin: 0 auto 3rem auto;
    max-width: 720px;          /* garantit un bon centrage */
}

/* Titre */
.section--contact .section__header h2 {
    font-size: 2.6rem;
    line-height: 1.25;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
    letter-spacing: -0.015em;
}

/* Sous-titre */
.section--contact .section__header p {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* SUPPRESSION DU GRADIENT QUI A CRÉÉ LA BARRE GRISE */
.section--contact::before {
    display: none !important;
}


.site-footer {
  position: relative;
  margin-top: var(--space-96);
  padding-block: var(--space-64);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 55%),
    radial-gradient(circle at bottom right, rgba(58, 169, 224, 0.18), transparent 60%),
    var(--color-neutral-900);
  overflow: hidden;
}


/* ----------------------------------------------------------
   14. FOOTER
---------------------------------------------------------- */

.site-footer {
  background: #0b1015;
  color: #f1f3f7;
  padding-block: var(--space-32);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) 2fr;
  gap: var(--space-32);
  align-items: flex-start;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  margin-bottom: var(--space-24);
}

.site-footer__logo {
  height: 64px;
  width: auto;
}

.site-footer__baseline {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
  color: rgba(241, 243, 247, 0.95);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-16);
}

.site-footer__col h3 {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 var(--space-8);
  color: rgba(241, 243, 247, 0.9);
}

.site-footer__col ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-size: var(--fs-xs);
}

.site-footer__col a {
  color: rgba(241, 243, 247, 0.8);
}

.site-footer__col a:hover,
.site-footer__col a:focus-visible {
  text-decoration: underline;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-16);
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(241, 243, 247, 0.08);
  padding-top: var(--space-16);
  font-size: var(--fs-xs);
  margin-top: var(--space-24);
}

/* Réseaux sociaux */

.site-footer__social {
  display: flex;
  gap: var(--space-12);
}

.social-link {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(241, 243, 247, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition:
    background var(--transition-med),
    border-color var(--transition-med),
    transform var(--transition-fast);
}

.social-link:hover,
.social-link:focus-visible {
  background: rgba(241, 243, 247, 0.08);
  border-color: rgba(241, 243, 247, 0.5);
  transform: translateY(-1px);
  outline: none;
}

.social-icon {
  width: 18px;
  height: 18px;
  display: block;
}

/* accessibilité – texte caché visuellement */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive footer */
@media (max-width: 900px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .site-footer__brand {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__bottom {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
}


.footer {
  background: #0d1117;
  padding: 60px 8%;
  color: #fff;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 40px;
  align-items: flex-start;
}

.footer__logo {
  height: 46px;
  margin-bottom: 10px;
}

.footer__tagline {
  font-size: 14px;
  color: #b8b8b8;
  line-height: 1.6;
}

.footer__title {
  font-size: 14px;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.footer__list {
  list-style: none;
  padding: 0;
}

.footer__list li {
  margin-bottom: 10px;
}

.footer__list li a {
  color: #c8c8c8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__list li a:hover {
  color: #ffffff;
}

.footer__divider {
  margin: 40px 0;
  border: none;
  border-bottom: 1px solid #2a2f36;
}

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

.footer__copy {
  color: #b3b3b3;
  font-size: 13px;
}

.footer__social {
  display: flex;
  gap: 16px;
}

.footer__social-link svg {
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.footer__social-link:hover svg {
  opacity: 1;
}


.footer {
  background: #0d1117;
  padding: 60px 8%;
  color: #fff;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 40px;
  align-items: flex-start;
}

.footer__logo {
  height: 46px;
  margin-bottom: 10px;
}

.footer__tagline {
  font-size: 14px;
  color: #b8b8b8;
  line-height: 1.6;
}

.footer__title {
  font-size: 14px;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.footer__list {
  list-style: none;
  padding: 0;
}

.footer__list li {
  margin-bottom: 10px;
}

.footer__list li a {
  color: #c8c8c8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__list li a:hover {
  color: #ffffff;
}

.footer__divider {
  margin: 40px 0;
  border: none;
  border-bottom: 1px solid #2a2f36;
}

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

.footer__copy {
  color: #b3b3b3;
  font-size: 13px;
}

.footer__social {
  display: flex;
  gap: 16px;
}

.footer__social-link svg {
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.footer__social-link:hover svg {
  opacity: 1;
}

/* --- FOOTER LAYOUT PRINCIPAL --- */

.footer {
  background: #0d1117;
  padding: 56px 8%;
  color: #fff;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 32px 40px;
  align-items: flex-start;
}

/* Bloc logo + tagline */
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__logo {
  height: 44px;
}

.footer__tagline {
  font-size: 14px;
  color: #b8b8b8;
  line-height: 1.6;
}

/* Colonnes de navigation */

.footer__nav {
  display: flex;
  flex-direction: column;   /* liens sous le titre */
  align-items: flex-start;
}

.footer__title {
  font-size: 13px;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: #ffffff;
  letter-spacing: 0.08em;
}

.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;   /* vertical */
  gap: 6px;
}

.footer__list li a {
  font-size: 14px;
  color: #c8c8c8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__list li a:hover {
  color: #ffffff;
}

/* Séparateur */

.footer__divider {
  margin: 32px 0 24px;
  border: none;
  border-bottom: 1px solid #262b32;
}

/* Bas de footer */

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer__copy {
  color: #b3b3b3;
  font-size: 13px;
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social-link svg {
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.footer__social-link:hover svg {
  opacity: 1;
  transform: translateY(-1px);
}

/* --- RESPONSIVE --- */

/* Tablette : 2 colonnes + brand en pleine largeur */
@media (max-width: 960px) {
  .footer {
    padding: 40px 6%;
  }

  .footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 28px;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .footer__bottom {
    flex-direction: row;
    align-items: center;
  }
}

/* Mobile : stack vertical + centrage léger */
@media (max-width: 640px) {
  .footer {
    padding: 32px 6% 40px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
  }

  .footer__brand {
    margin-bottom: 8px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer__copy {
    text-align: left;
  }
}

/* Ajustements footer brand */

/* Valeur par défaut (desktop & tablette) */
.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;   /* logo + texte alignés à gauche */
  gap: 6px;
}

.footer__logo {
  height: 80px;              /* un peu plus compact */
}

.footer__tagline {
  font-size: 13px;
  line-height: 1.5;
  color: #c0c4cc;
  text-align: left;          /* pas centré */
}

/* Sur mobile, on garde l’alignement à gauche et on réduit le blanc autour */
@media (max-width: 640px) {
  .footer {
    padding: 28px 6% 36px;
  }

  .footer__brand {
    margin-bottom: 12px;     /* espace modéré avant les colonnes de liens */
  }

  .footer__logo {
    height: 60px;
  }

  .footer__tagline {
    font-size: 12px;
  }
}


/* --- FOOTER : Layout mobile en 2 colonnes --- */

@media (max-width: 640px) {

  /* Conteneur principal du footer */
  .footer__top {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 colonnes */
    gap: 28px 18px; /* espacement lignes x colonnes */
  }

  /* La zone brand (logo + tagline) prend toute la largeur */
  .footer__brand {
    grid-column: 1 / 3; /* Occupe 2 colonnes */
    margin-bottom: 8px;
  }

  /* Les colonnes de liens */
  .footer__col {
    margin: 0;
  }

  .footer__col-title {
    margin-bottom: 8px;
    font-size: 13px;
  }

  .footer__col ul li {
    margin-bottom: 6px;
  }

  .footer__bottom {
    text-align: center;
    margin-top: 32px;
  }

  /* Icône LinkedIn centrée */
  .footer__social {
    display: flex;
    justify-content: center;
    margin-top: 12px;
  }
}


/* ----------------------------- */
/* PARTNERS GRID (Who We Are)   */
/* ----------------------------- */

.partners-container {
  margin-top: 40px;
  margin-bottom: 60px;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.partner-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  height: 280px;
  background-color: #f2f2f2;
  box-shadow: 0 8px 28px rgba(0,0,0,0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.partner-card.large {
  height: 420px;
}

.partner-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 38px rgba(0,0,0,0.18);
}

.partner-name {
  position: absolute;
  bottom: 18px;
  left: 18px;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  text-shadow: 0 3px 8px rgba(0,0,0,0.45);
}

/* Responsive */
@media (max-width: 640px) {
  .partner-card { height: 220px; }
  .partner-card.large { height: 300px; }
  .partner-name { font-size: 16px; }
}


/* Masonry grid */
.impact-grid {
  column-count: 3;
  column-gap: 1.5rem;
  margin: 3rem 0;
}

@media (max-width: 900px) {
  .impact-grid {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .impact-grid {
    column-count: 1;
  }
}

/* Cards */
.impact-card {
  display: block;
  position: relative;
  margin-bottom: 1.5rem;
  break-inside: avoid;
  border-radius: 20px;
  overflow: hidden;
  background: #f3f3f3;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.impact-card img {
  width: 100%;
  height: auto;
  display: block;
}

.impact-card__label {
  position: absolute;
  bottom: 15px;
  left: 15px;
  color: white;
  font-size: 1rem;
  font-weight: 500;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* Optional: different height variants for effect */
.impact-card--large img {
  height: 480px;
  object-fit: cover;
}

.impact-card--medium img {
  height: 360px;
  object-fit: cover;
}


/* --------- IMPACT GRID (Masonry) ---------- */

.impact-grid {
  /* on annule tout flex/grid précédent */
  display: block !important;
  column-count: 3;
  column-gap: 1.5rem;
  margin: 3rem 0;
}

/* Responsive */
@media (max-width: 900px) {
  .impact-grid {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .impact-grid {
    column-count: 1;
  }
}

.impact-card {
  position: relative;
  display: inline-block;      /* nécessaire pour certains navigateurs dans un column layout */
  width: 100%;
  margin-bottom: 1.5rem;
  break-inside: avoid;        /* évite que la carte soit coupée entre 2 colonnes */

  border-radius: 20px;
  overflow: hidden;
  background: #f5f5f5;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

/* image */
.impact-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* étiquette en bas à gauche */
.impact-card__label {
  position: absolute;
  left: 16px;
  bottom: 16px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}
/* Let images create natural staggered heights */
.impact-card {
  aspect-ratio: 4/3;
}

.impact-card--medium {
  aspect-ratio: 3/4;
}

.impact-card--large {
  aspect-ratio: 16/9;
}

.impact-card--tall {
  aspect-ratio: 2/3;
}

/* Masonry-style columns for the impact partners grid */
.impact-grid {
  column-count: 3;          /* 3 columns on desktop */
  column-gap: 24px;         /* horizontal gap between columns */
  margin-top: 32px;
}

/* Tablet */
@media (max-width: 1024px) {
  .impact-grid {
    column-count: 2;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .impact-grid {
    column-count: 1;
  }
}


.impact-card {
  display: block;           /* important for column layout */
  width: 100%;
  margin: 0 0 24px;         /* vertical gap between cards */
  break-inside: avoid;      /* prevent cards from being split between columns */

  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #f8fafc;
  box-shadow: 0 24px 40px rgba(15, 23, 42, 0.12);
}

/* Image fills the card width and decides the height */
.impact-card__image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Title at bottom-left */
.impact-card__label {
  position: absolute;
  left: 20px;
  bottom: 16px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  text-shadow: 0 8px 20px rgba(15, 23, 42, 0.65);
}


.impact-grid {
  column-count: 3;         /* 3 columns on desktop */
  column-gap: 24px;
  width: 100%;
}

@media (max-width: 1024px) {
  .impact-grid { column-count: 2; }
}

@media (max-width: 640px) {
  .impact-grid { column-count: 1; }
}


.impact-card {
  display: inline-block;      /* IMPORTANT for masonry */
  width: 100%;
  margin: 0 0 24px;
  break-inside: avoid;        /* Prevent vertical cutting */
  border-radius: 20px;
  overflow: hidden;
  background: #f8f8f8;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}


/* Masonry container */
.impact-grid {
  column-count: 3;
  column-gap: 32px;            /* spacing between columns */
  margin: 0 40px;               /* LEFT & RIGHT margin you requested */
}

@media (max-width: 1200px) {
  .impact-grid {
    column-count: 2;
    margin: 0 24px;
  }
}

@media (max-width: 640px) {
  .impact-grid {
    column-count: 1;
    margin: 0 16px;
  }
}

/* Cards */
.impact-card {
  display: inline-block;        /* mandatory for masonry */
  width: 100%;
  margin: 0 0 32px;             /* vertical spacing */
  break-inside: avoid;          /* prevent cutting in between columns */
  background: #f7f7f7;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

/* Natural variable image heights */
.impact-card img {
  width: 100%;
  display: block;
  object-fit: cover;
  border-bottom: 1px solid rgba(255,255,255,0.3);
}

/* Allow images to have different heights */
.impact-card--tall img {
  height: 420px;
}

.impact-card--medium img {
  height: 320px;
}

.impact-card--short img {
  height: 240px;
}



/* Masonry container */
.impact-grid {
  column-count: 3;
  column-gap: 32px;
  margin: 0 48px; /* left & right margin */
}

@media (max-width: 1200px) {
  .impact-grid {
    column-count: 2;
    margin: 0 32px;
  }
}

@media (max-width: 680px) {
  .impact-grid {
    column-count: 1;
    margin: 0 16px;
  }
}

/* Cards */
.impact-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 32px;
  break-inside: avoid;
  background: #f8f8f8;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

/* Base image style */
.impact-card img {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* Custom DIFFERENT heights per card */
.impact-card--large img { height: 420px; }
.impact-card--medium img { height: 300px; }
.impact-card img { height: 260px; } /* default size */

/* Label styling */
.impact-card__label {
  position: absolute;
  bottom: 14px;
  left: 18px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  text-shadow: 0 2px 6px rgba(0,0,0,0.35);
}



/* --- Impact grid wrapper ---------------------------------------- */

.impact-grid {
  /* layout */
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 220px;              /* base row height */
  grid-auto-flow: dense;              /* pack items nicely */
  gap: 24px;

  /* positioning & breathing room */
  max-width: 1120px;                  /* keeps it off the edges */
  margin: 40px auto 0;
  padding: 0 16px;
}

/* --- Cards ------------------------------------------------------- */

.impact-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #f5f5f7;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.impact-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* white label at the bottom-left, like your reference */
.impact-card__label {
  position: absolute;
  left: 16px;
  bottom: 16px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

/* --- Size variations -------------------------------------------- */

/* This is the tall central card (Cassiterite) */
.impact-card--large {
  grid-row: span 2;                   /* double height */
}

/* You can tweak this if you want Wolframite taller later */
.impact-card--medium {
  /* for now same height as normal cards */
  grid-row: span 1;
}

/* --- Responsiveness --------------------------------------------- */

/* Tablet: 2 columns, tall card still spans 2 rows */
@media (max-width: 960px) {
  .impact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 210px;
  }
}

/* Mobile: 1 column, give everything the same height */
@media (max-width: 640px) {
  .impact-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 230px;
  }

  .impact-card--large,
  .impact-card--medium {
    grid-row: span 1;                 /* no super-tall cards on small screens */
  }
}


/* ===== Impact mosaic layout ===================================== */

.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  /* 4 equal “tracks” in height – we’ll span them per card */
  grid-template-rows: repeat(4, minmax(0, 130px));
  gap: 24px;                      /* same spacing both ways */

  max-width: 1120px;
  margin: 40px auto 0;
  padding: 0 16px;                /* left / right margin */
}

.impact-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #f5f5f7;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.impact-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.impact-card__label {
  position: absolute;
  left: 16px;
  bottom: 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

/* --- Desktop: explicit layout -----------------------------------
   Order in your HTML:
   1. Gold
   2. Cassiterite
   3. Copper Cathode
   4. Elements
   5. Coltan
   6. Wolframite
*/

/* Gold – left column, mid-height */
.impact-card:nth-child(1) {
  grid-row: 1 / span 3;   /* rows 1→3 */
}

/* Cassiterite – under Gold, ends on the baseline */
.impact-card:nth-child(2) {
  grid-row: 3 / span 2;   /* rows 3→4 */
}

/* Copper Cathode – centre, tallest card */
.impact-card:nth-child(3) {
  grid-row: 1 / span 4;   /* rows 1→4 (taller than Coltan) */
}

/* Elements – centre bottom, same baseline as Cassiterite/Wolframite */
.impact-card:nth-child(4) {
  grid-row: 3 / span 2;   /* rows 3→4 */
}

/* Coltan – right column, shorter than Copper Cathode */
.impact-card:nth-child(5) {
  grid-row: 1 / span 3;   /* rows 1→3 */
}

/* Wolframite – bottom right, same baseline as others */
.impact-card:nth-child(6) {
  grid-row: 3 / span 2;   /* rows 3→4 */
}

/* ===== Responsive behaviour ===================================== */

/* Tablet: 2 columns, simple stacked grid */
@media (max-width: 960px) {
  .impact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;      /* back to auto */
    grid-auto-rows: 220px;
  }

  /* let browser flow them naturally */
  .impact-card {
    grid-row: auto !important;
  }
}

/* Mobile: 1 column */
@media (max-width: 640px) {
  .impact-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 230px;
  }
}


/* === Impact mosaic ================================================= */

.impact-grid {
  --impact-gap: 32px;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 160px)); /* 3 rows, same height tracks */
  gap: var(--impact-gap);

  max-width: 1240px;          /* slightly wider than metrics */
  margin: 40px auto 64px;
  padding: 0 12px;
}

.impact-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #f5f5f7;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.impact-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.impact-card__label {
  position: absolute;
  left: 16px;
  bottom: 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

/* Layout:
   row1: [Gold]   [ Elements (2×2)      ]
   row2: [Cassit] [ Elements continues  ]
   row3: [Copper] [ Coltan ] [ Wolframite ]
*/

/* 1. Gold – top-left */
.impact-card:nth-child(1) {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}

/* 2. Cassiterite – under Gold */
.impact-card:nth-child(2) {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
}

/* 3. Copper Cathode – bottom-left */
.impact-card:nth-child(3) {
  grid-column: 1 / 2;
  grid-row: 3 / 4;
}

/* 4. Elements – big 2×2 block (4 squares) */
.impact-card:nth-child(4) {
  grid-column: 2 / 4;  /* spans columns 2 and 3 */
  grid-row: 1 / 3;     /* spans rows 1 and 2 */
}

/* 5. Coltan – bottom middle */
.impact-card:nth-child(5) {
  grid-column: 2 / 3;
  grid-row: 3 / 4;
}

/* 6. Wolframite – bottom right */
.impact-card:nth-child(6) {
  grid-column: 3 / 4;
  grid-row: 3 / 4;
}

/* === Responsive ==================================================== */

/* Tablet: simpler 2-column grid */
@media (max-width: 960px) {
  .impact-grid {
    max-width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: 220px;
  }

  .impact-card {
    grid-row: auto !important;
    grid-column: auto !important;
  }
}

/* Mobile: single column */
@media (max-width: 640px) {
  .impact-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 230px;
    padding: 0 20px;
  }
}
.division-card__image {
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* carré parfait */
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.division-card__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* crop propre */
    object-position: center;
}

.division-card__image img {
    transition: transform .4s ease;
}

.division-card__image:hover img {
    transform: scale(1.05);
}

/* ---------------------------------------------------------- */
/* CARD IMAGE — ALWAYS SQUARE + SMOOTH ZOOM ON HOVER         */
/* ---------------------------------------------------------- */



/* ---------------------------------------------------------- */
/* MINESMART HERO – lisibilité du texte sur l'image           */
/* ---------------------------------------------------------- */

.minesmart-hero {
  position: relative;
  color: #ffffff;
  overflow: hidden;
}

/* Voile sombre en dégradé par-dessus la photo */
.minesmart-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  /* tu peux ajuster l’angle / l’intensité si besoin */
  background: linear-gradient(
    110deg,
    rgba(4, 11, 20, 0.92) 0%,
    rgba(4, 11, 20, 0.75) 35%,
    rgba(4, 11, 20, 0.35) 65%,
    rgba(4, 11, 20, 0.05) 100%
  );
  z-index: 0;
}

/* Bloc texte au-dessus de l’overlay */
.minesmart-hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;        /* largeur confortable pour la lecture */
  padding: 5rem 0 4rem;    /* espace haut / bas */
}

/* Titre principal */
.minesmart-hero__title {
  font-size: clamp(2.4rem, 3vw, 3.2rem);
  line-height: 1.1;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  margin-bottom: 1.25rem;
}

/* Sous-titre / kicker */
.minesmart-hero__kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.75rem;
}

/* Paragraphe d’intro éventuel */
.minesmart-hero__lead {
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

/* Ajustements mobile */
@media (max-width: 768px) {
  .minesmart-hero::before {
    background: linear-gradient(
      180deg,
      rgba(4, 11, 20, 0.96) 0%,
      rgba(4, 11, 20, 0.8) 40%,
      rgba(4, 11, 20, 0.4) 100%
    );
  }

  .minesmart-hero__content {
    max-width: 100%;
    padding: 4rem 1.5rem 3rem;
  }

  .minesmart-hero__title {
    text-align: left;
    font-size: clamp(1.9rem, 6vw, 2.4rem);
  }
}

/* ---------------------------------
   Generic card image container
   --------------------------------- */
.card__image {
  position: relative;
  margin: 1rem 0 1.1rem;
  border-radius: 0.9rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: radial-gradient(
    circle at top,
    rgba(255, 255, 255, 0.12) 0,
    transparent 60%
  );
}

/* Make all card images perfectly square and ready for zoom */
.card__image img {
  display: block;
  width: 100%;
  /* Force un format carré, peu importe le format d'origine */
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}

/* Zoom effect on hover for every card that contains an image */
.card:hover .card__image img {
  transform: scale(1.06);
}


/* ----------------------------------------------------
   SHRINK HEADER ON SCROLL – MORE COMPACT VERSION
---------------------------------------------------- */
.header {
  transition: all 0.35s ease;
}

.header--shrink {
  padding: 0.3rem 0 !important;   /* Réduction encore plus forte de la hauteur */
  backdrop-filter: blur(12px);
  background: rgba(0, 0, 0, 0.55); /* Plus discret */
}

/* Logo shrink */
.header--shrink .header__logo img {
  height: 20px !important;  /* Réduit encore plus */
  transition: height 0.35s ease;
}

/* Navigation shrink */
.header--shrink .nav__link {
  font-size: 0.65rem !important;  /* Texte plus petit */
  letter-spacing: 0.05em;
  padding: 0.2rem 0 !important;
}

/* Tagline shrink */
.header--shrink .header__tagline {
  font-size: 0.55rem !important; /* Encore plus compact */
  opacity: 0.7;
}


/* ==========================================
   HEADER SHRINK – style quand compact
   ========================================== */

.site-header {
  transition: all 0.25s ease;
}

.site-header--shrink {
  padding: 6px 0;                  /* réduit encore plus */
  backdrop-filter: blur(14px);
  background: rgba(0,0,0,0.55);
}

.site-header--shrink .site-nav a {
  font-size: 10px;                 /* texte encore plus petit */
  letter-spacing: 0.5px;
}

.site-header--shrink .logo img {
  width: 58px;                     /* logo plus petit */
}

/* Highlight DISCOVER MINESMART in Minexx Blue */
.site-nav a[href*="minesmart"],
.site-header--shrink .site-nav a[href*="minesmart"] {
  color: #3AA9E0 !important;
}
/* Hover underline in white for DISCOVER MINESMART */
.site-nav a[href*="minesmart"]::after {
  background-color: #FFFFFF !important;
}


/* =============== SCROLL TO TOP BUTTON =============== */

#scrollToTop {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: #3AA9E0; /* Bleu Minexx */
  color: white;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
}

#scrollToTop.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#scrollToTop:hover {
  background: #1f7cab;
}


/* ===============================
   CONTACT FORM – FIELDS LAYOUT
   =============================== */

.contact-form .form-group {
  margin-bottom: 20px;         /* espacement vertical cohérent entre les champs */
}

.contact-form label {
  display: block;
  margin-bottom: 6px;          /* espace entre le label et le champ */
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Champ "I'm interested in" : on force le bloc complet */
.contact-form select {
  width: 100%;
  display: block;
  height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid #d3d8e1;
  background-color: #f7f8fb;
  font-size: 14px;
  color: #1b2838;
  outline: none;
}

/* Option : améliore le focus clavier */
.contact-form select:focus {
  border-color: #3AA9E0;
  box-shadow: 0 0 0 1px rgba(58, 169, 224, 0.25);
}
/* ===============================
   CONTACT FORM – DISCLAIMER
   =============================== */

.contact-form__disclaimer {
  margin-top: 10px;         /* espace sous le bouton */
  max-width: 360px;         /* évite une ligne trop longue */
  font-size: 12px;
  line-height: 1.5;
  color: rgba(13, 25, 44, 0.7);  /* texte plus lisible mais discret */
}


/* ============================
   FIX SELECT ARROW ALIGNMENT
   ============================ */

.contact-form select {
  appearance: none;              /* retire la flèche native */
  -webkit-appearance: none;
  -moz-appearance: none;

  background-color: #f7f8fb;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%233AA9E0' width='12' height='8' xmlns='http://www.w3.org/2000/svg'><path d='M1 1l5 5 5-5'/></svg>"); 
  background-repeat: no-repeat;
  background-position: right 18px center;       /* position PROPRE */
  background-size: 12px;

  padding-right: 48px;           /* espace pour la flèche */
  border-radius: 999px;
  border: 1px solid #d3d8e1;
  height: 52px;
  font-size: 14px;
  color: #1b2838;
}

/* PARTNERSHIP IMAGE — SQUARE FORMAT */
.partnerships-image-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;     /* carré parfait */
  border-radius: 16px;     /* mêmes arrondis que ton design */
  overflow: hidden;
}

.partnerships-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;       /* crop propre et centré */
  object-position: center; /* meilleure composition visuelle */
  display: block;
}

/* PARTNERSHIP IMAGE — SQUARE FORMAT + HOVER ZOOM */
.partnerships-image-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;        /* carré parfait */
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.partnerships-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;

  transition: transform 0.6s ease;   /* smooth hover */
}

/* Zoom on hover */
.partnerships-image-wrapper:hover img {
  transform: scale(1.08);            /* zoom léger premium */
}

/* ===========================
   CONTACT – CARD TEXTE (PARTNERSHIPS)
   Gestion propre du spacing vertical
   =========================== */

.card--text {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;            /* espace régulier entre chaque bloc (titre, image, texte, liste) */
}

/* Évite les doubles marges internes inutiles */
.card--text > *:first-child {
  margin-top: 0;
}

.card--text > *:last-child {
  margin-bottom: 0;
}

/* Image de partenariats : un peu d'air sous l'image */
.partnerships-image-wrapper {
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
}

.feature-list {
  padding-left: 1.3rem;    /* déjà présent peut-être : alignement puces */
  margin-top: 0;           /* on laisse le gap gérer l’espace */
  margin-bottom: 0;
}


/* GLOBAL WRAPPER FOR THE GRID */
.impact-grid-layout {
  width: 100%;
  max-width: 1280px;       /* same as container */
  margin: 0 auto;          /* center horizontally */
  padding: 0 32px;         /* side margins */
  display: flex;
  flex-direction: column;
  gap: 48px;               /* vertical spacing between rows */
}

/* ROWS */
.impact-row {
  display: flex;
  gap: 32px;               /* horizontal spacing between cards */
}

/* TOP ROW (1/3 - 2/3) */
.impact-row--top .impact-card--one-third {
  flex: 1;
}

.impact-row--top .impact-card--two-third {
  flex: 2;
}

/* BOTTOM ROW (4 EQUAL) */
.impact-row--bottom .impact-card {
  flex: 1;
}

/* CARDS */
.impact-card {
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  position: relative;
}

/* IMAGE BEHAVIOR */
.impact-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;   /* consistent height across cards */
  object-fit: cover;
  transition: transform 0.4s ease;
}

.impact-card:hover img {
  transform: scale(1.05);
}

/* LABEL */
.impact-card__label {
  position: absolute;
  bottom: 14px;
  left: 14px;
  font-size: 14px;
  color: #fff;
  letter-spacing: 0.3px;
  opacity: 0.9;
}

/* -------------------------------------------------------
   WHO WE ARE – IMPACT GRID LAYOUT
   ------------------------------------------------------- */

.impact-grid-layout {
  width: 100%;
  max-width: 1280px;          /* aligné avec .container */
  margin: 64px auto 40px;
  padding: 0 32px;            /* marge gauche / droite */
  display: flex;
  flex-direction: column;
  gap: 48px;                  /* espace vertical entre lignes */
}

.impact-row {
  display: flex;
  gap: 32px;                  /* espacement horizontal entre cartes */
}

/* Ligne du haut : 1/3 – 2/3 */
.impact-row--top .impact-card--one-third {
  flex: 1;
}

.impact-row--top .impact-card--two-third {
  flex: 2;
}

/* Ligne du bas : 4 cartes égales */
.impact-row--bottom .impact-card {
  flex: 1;
}

/* Cartes génériques */
.impact-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #05070b;
  cursor: pointer;
  isolation: isolate;

  /* Fade-in au scroll */
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out,
    box-shadow 0.25s ease-out,
    transform 0.25s ease-out;
}

.impact-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hover / focus premium */
.impact-card:hover,
.impact-card:focus-visible {
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.65);
}

/* Image : taille et zoom */
.impact-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;      /* même hauteur visuelle */
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.impact-card:hover img,
.impact-card:focus-visible img {
  transform: scale(1.05);
}

/* Label en bas à gauche */
.impact-card__label {
  position: absolute;
  bottom: 14px;
  left: 14px;
  font-size: 14px;
  color: #ffffff;
  letter-spacing: 0.3px;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

/* Ripple effect */
.impact-card__ripple {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}

.impact-card__ripple.is-animating {
  animation: impact-ripple 0.6s ease-out forwards;
}

@keyframes impact-ripple {
  from {
    transform: scale(0);
    opacity: 0.5;
  }
  to {
    transform: scale(2.3);
    opacity: 0;
  }
}

/* -------------------------------------------------------
   RESPONSIVE / MASONRY FEEL
   ------------------------------------------------------- */

/* Tablette : grille 2 colonnes, Elements span 2 colonnes */
@media (max-width: 1024px) {
  .impact-grid-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  /* les wrappers de ligne ne doivent plus forcer le flex */
  .impact-row {
    display: contents;
  }

  .impact-card--one-third {
    grid-column: span 1;
  }

  .impact-card--two-third {
    grid-column: span 2;  /* Elements prend toute la largeur */
  }
}

/* Mobile : 1 colonne, cartes empilées */
@media (max-width: 640px) {
  .impact-grid-layout {
    padding: 0 20px;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .impact-card--two-third {
    grid-column: auto;    /* Elements devient full-width comme les autres */
  }
}


/* ================================
   WHO WE ARE – IMPACT GRID LAYOUT
   Correspond à :
   <div class="impact-grid-layout">
     <div class="impact-row impact-row--top"> … </div>
     <div class="impact-row impact-row--bottom"> … </div>
   ================================ */

.impact-grid-layout {
  max-width: 1200px;            /* largeur totale du bloc */
  margin: 56px auto 64px;       /* top depuis le titre, bottom avant les metrics */
  padding: 0 24px;              /* marges gauche / droite */
  display: flex;
  flex-direction: column;
  gap: 32px;                    /* espace vertical entre la ligne du haut et la ligne du bas */
}

/* Chaque ligne du grid */
.impact-row {
  display: flex;
  gap: 32px;                    /* espace horizontal entre les cartes */
}

/* Ligne du haut : Gold = 1/3, Elements = 2/3 */
.impact-row--top .impact-card--one-third {
  flex: 1;
}

.impact-row--top .impact-card--two-third {
  flex: 2;
}

/* Ligne du bas : 4 cartes égales */
.impact-row--bottom .impact-card {
  flex: 1;
}

/* Responsive : une colonne en mobile */
@media (max-width: 960px) {
  .impact-row {
    flex-direction: column;
  }
}

/* ================================
   IMPACT CARDS – STYLE + HOVER EFFECTS
   Correspond à chaque <article class="impact-card …">
   Effets demandés : 
   1) zoom image
   2) légère élévation
   3) ombre renforcée
   ================================ */

.impact-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #060911;
  box-shadow: 0 18px 45px rgba(4, 13, 30, 0.35);
  cursor: pointer;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.impact-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;           /* garanti le crop propre */
  transition: transform 260ms ease;
}

/* Effets au survol : zoom + lift + ombre */
.impact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(4, 13, 30, 0.55);
}

.impact-card:hover img {
  transform: scale(1.05);
}

/* Label en bas à gauche */
.impact-card__label {
  position: absolute;
  left: 20px;
  bottom: 16px;
  color: #ffffff;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

/* ================================
   SPACING VERTICAL AVANT LES METRICS
   Correspond à :
   </div> <!-- impact-grid-layout -->
   <div class="container">  (metrics)
   ================================ */

.impact-grid-layout + .container {
  margin-top: 64px;            /* même espace partout entre grid et KPIs */
}


/* ============================================
   FIX BULLET ALIGNMENT ONLY IN #divisions
   ============================================ */

#divisions .card__list {
  list-style: disc;
  padding-left: 1.2rem !important; /* réduit l'indentation */
  margin-left: 0 !important;
}

#divisions .card__list li {
  margin-bottom: 0.6rem;          /* espace entre les lignes */
  padding-left: 0;                /* supprime le retrait interne */
  text-indent: 0;                 /* corrige les puces modernes */
  line-height: 1.45;
}

#divisions .card__list li::marker {
  color: #3AA9E0;                 /* bleu Minexx pour cohérence */
  font-size: 0.9em;
}



/* Bulleted lists inside cards (divisions, etc.) */
.feature-list {
  list-style-type: disc;
  list-style-position: inside; /* bullet on same text block, no hanging indent */
  padding-left: 0;             /* remove extra left padding */
  margin: 0;
}

.feature-list li {
  margin: 0 0 0.75rem 0;       /* only vertical spacing between bullets */
  padding-left: 0;             /* make sure there’s no extra indent */
}


.division-card .feature-list {
  list-style-type: disc;
  list-style-position: inside;
  padding-left: 0;
  margin: 0;
}

.division-card .feature-list li {
  margin: 0 0 0.75rem 0;
  padding-left: 0;
}

/* ============================================================
   CTA ON WHITE CARD BACKGROUNDS
   (for DISCUSS WITH OUR TEAM / REQUEST A BRIEFING / etc.)
   ============================================================ */
/* ============================================================
   FULL PILL CTA FOR WHITE CARDS (BLUE OUTLINE)
   ============================================================ */

.cta-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.65rem 1.4rem;
  border-radius: 999px;

  border: 1.5px solid #0A66C2;    /* blue outline */
  background: transparent;
  color: #0A66C2;

  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

/* Hover style — soft blue fill & floating like other CTAs */
.cta-card:hover {
  background: rgba(10, 102, 194, 0.08);
  border-color: #0A66C2;
  color: #0A66C2;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(10, 102, 194, 0.15);
}
/* Ghost CTA in insight cards — with lift effect */
.insights--light .card .cta.cta--secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.65rem 1.3rem;
  border-radius: 999px;

  border: 1px solid #0077c8;
  color: #0077c8;
  background: transparent;

  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;

  /* Smooth transitions + lift behaviour */
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.insights--light .card .cta.cta--secondary:hover {
  background: rgba(0, 119, 200, 0.08);
  border-color: #0077c8;

  /* TRUE LIFT EFFECT */


}


/* ============================================================
   READ MORE — Ghost CTA on white cards (with lift effect)
   ============================================================ */

.read-more-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.55rem 1.2rem;
  border-radius: 999px;

  border: 1px solid #0077c8;
  color: #0077c8;
  background: transparent;

  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;

  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.read-more-cta:hover {
  background: rgba(0, 119, 200, 0.08);
  border-color: #0077c8;



}


/* ========================= */
/*        LATEST NEWS FIX    */
/* ========================= */

/* Empêche la section d’ajouter un scroll horizontal à la page */
.section--news {
  padding: 80px 0;
  overflow-x: hidden; /* 👈 important */
}

/* Scroller interne : garde le scroll dans la zone uniquement */
.news-scroller {
  margin-top: 1.5rem;
  padding-bottom: 0.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  max-width: 100%;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

/* Rail des cartes : largeur = largeur des cartes, pas plus */
.news-track {
  display: flex;
  gap: 1.75rem;
  width: max-content;   /* 👈 évite une grande zone vide à droite */
  padding: 0 0.25rem;
}



.section--contact .section__title {
  white-space: nowrap;
}
@media (max-width: 768px) {
  .section--contact .section__title {
    white-space: normal; /* autorise la ligne à se casser sur mobile */
  }
}



/* -------------------------------
   MineSmart – Hero visual + HUD
   ------------------------------- */

.minesmart-visual {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  min-height: 360px;

  isolation: isolate;
}

.minesmart-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  filter: saturate(1.05) contrast(1.05);
}

/* Overlay HUD */
.minesmart-hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Cercle radar central */
.minesmart-hud__ring {
  position: absolute;
  top: 22%;
  right: 18%;
  width: 140px;
  height: 140px;
  border-radius: 50%;

  background: radial-gradient(circle, rgba(0, 205, 255, 0.28) 0, transparent 65%);
  opacity: 0;
  transform: scale(0.7);
  animation: hudRingIn 1.1s ease-out forwards, hudPulse 4.5s ease-in-out 1.1s infinite;
}

/* Cartes dashboards */
.minesmart-hud__card {
  position: absolute;
  width: 46%;
  max-width: 260px;
  height: 92px;
  border-radius: 18px;

  opacity: 0;
  transform: translateY(30px) scale(0.96);
  overflow: hidden;
}

/* Positions */
.minesmart-hud__card--left {
  bottom: 20%;
  left: 8%;
  animation:
    hudCardIn 0.9s cubic-bezier(0.19, 1, 0.22, 1) 0.25s forwards,
    hudFloat 6s ease-in-out 1.15s infinite;
}

.minesmart-hud__card--right {
  bottom: 32%;
  right: 6%;
  animation:
    hudCardIn 0.9s cubic-bezier(0.19, 1, 0.22, 1) 0.45s forwards,
    hudFloat 6.2s ease-in-out 1.35s infinite;
}

.minesmart-hud__card--bottom {
  bottom: 6%;
  left: 50%;
  transform: translate(-50%, 26px) scale(0.96);
  animation:
    hudCardInCentered 0.9s cubic-bezier(0.19, 1, 0.22, 1) 0.65s forwards,
    hudFloat 6.4s ease-in-out 1.55s infinite;
}

/* Pseudo contenu “data” stylisé */
.minesmart-hud__card::before,
.minesmart-hud__card::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.9;
}

/* Lignes horizontales style dashboard */
.minesmart-hud__card::before {
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(0, 205, 255, 0.65),
    rgba(0, 205, 255, 0.65) 1px,
    transparent 1px,
    transparent 7px
  );
  mix-blend-mode: screen;
}

/* Colonnes / digits */
.minesmart-hud__card::after {
  background-image: linear-gradient(
      to right,
      rgba(0, 205, 255, 0.18) 0,
      transparent 40%
    ),
    repeating-linear-gradient(
      to right,
      rgba(0, 205, 255, 0.55),
      rgba(0, 205, 255, 0.55) 2px,
      transparent 2px,
      transparent 10px
    );
  mix-blend-mode: screen;
}

/* Animations */
@keyframes hudRingIn {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes hudPulse {
  0%,
  100% {
    box-shadow: 0 0 22px rgba(0, 205, 255, 0.65);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 42px rgba(0, 205, 255, 0.95);
    opacity: 0.96;
  }
}

@keyframes hudCardIn {
  0% {
    opacity: 0;
    transform: translateY(32px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes hudCardInCentered {
  0% {
    opacity: 0;
    transform: translate(-50%, 32px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

@keyframes hudFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Responsive – on simplifie sur mobile */
@media (max-width: 900px) {
  .minesmart-visual {
    margin-top: 2rem;
    min-height: 260px;
  }

  .minesmart-hud__ring {
    width: 110px;
    height: 110px;
    top: 20%;
    right: 14%;
  }

  .minesmart-hud__card {
    height: 76px;
  }

  .minesmart-hud__card--left,
  .minesmart-hud__card--right {
    width: 52%;
  }

  .minesmart-hud__card--bottom {
    width: 70%;
  }
}

@media (max-width: 640px) {
  /* si tu trouves ça trop “chargé” sur mobile, tu peux carrément cacher le HUD */
  .minesmart-hud {
    display: none;
  }
}



.minesmart-hud__card {
  position: absolute;
  width: 46%;
  max-width: 260px;
  height: 92px;
  border-radius: 18px;

  /* 🔥 Seulement un outline + glow — AUCUN FOND */
  border: 1px solid rgba(0, 205, 255, 0.8);
  background: none;        /* ❗ supprime le fond */
  backdrop-filter: none;   /* ❗ supprime le flou */

  box-shadow:
    0 0 22px rgba(0, 205, 255, 0.5),
    inset 0 0 18px rgba(0, 205, 255, 0.45);

  opacity: 0;
  transform: translateY(30px) scale(0.96);
  overflow: hidden;
}


/* Grille horizontale */
.minesmart-hud__card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(0, 205, 255, 0.65),
    rgba(0, 205, 255, 0.65) 1px,
    transparent 1px,
    transparent 9px
  );
  pointer-events: none;
}

/* Grille verticale */
.minesmart-hud__card::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background-image: repeating-linear-gradient(
    to right,
    rgba(0, 205, 255, 0.55),
    rgba(0, 205, 255, 0.55) 2px,
    transparent 2px,
    transparent 12px
  );
  pointer-events: none;
}


.minesmart-hud__ring {
  position: absolute;
  top: 22%;
  right: 18%;
  width: 140px;
  height: 140px;
  border-radius: 50%;

  /* just outline + soft glow */
  border: 2px solid rgba(0, 205, 255, 0.75);
  background: none !important;        /* ❗ supprime le fond radial */
  box-shadow: 0 0 40px rgba(0, 205, 255, 0.6);

  opacity: 0;
  transform: scale(0.7);
  animation: hudRingIn 1.1s ease-out forwards,
             hudPulse 4.5s ease-in-out 1.1s infinite;
}


/* ============================================================
   HOLOGRAPHIC RADAR ANIMATION (MineSmart HUD)
   ============================================================ */

.hud-radar {
  position: absolute;
  top: 18%;
  right: 14%;
  width: 220px;
  height: 220px;
  pointer-events: none;
  transform: translateZ(0);
}


/* ---- RINGS ---- */

.hud-radar__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(0, 205, 255, 0.45);
  animation: radarExpand 3.2s infinite ease-out;
  mix-blend-mode: screen;
  opacity: 0;
}

.hud-radar__ring:nth-child(1) { animation-delay: 0s; }
.hud-radar__ring:nth-child(2) { animation-delay: 0.4s; }
.hud-radar__ring:nth-child(3) { animation-delay: 0.8s; }
.hud-radar__ring:nth-child(4) { animation-delay: 1.2s; }

@keyframes radarExpand {
  0% {
    transform: scale(0.25);
    opacity: 0.9;
  }
  70% {
    opacity: 0.25;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}


/* ---- FLOATING DOTS ---- */

.hud-radar__dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(0, 205, 255, 0.75);
  filter: blur(1px);
  opacity: 0.85;
  animation: radarFloat 4.3s infinite ease-in-out;
}

.hud-radar__dot:nth-child(5) {
  top: 20%;
  left: 55%;
  animation-delay: 0s;
}

.hud-radar__dot:nth-child(6) {
  top: 50%;
  left: 68%;
  animation-delay: 0.6s;
}

.hud-radar__dot:nth-child(7) {
  top: 72%;
  left: 42%;
  animation-delay: 1.1s;
}

@keyframes radarFloat {
  0%   { transform: translateY(0) translateX(0) scale(1); }
  40%  { transform: translateY(-14px) translateX(4px) scale(1.15); }
  80%  { transform: translateY(8px) translateX(-6px) scale(0.9); }
  100% { transform: translateY(0) translateX(0) scale(1); }
}


/* ---------------------------
   RING ANIMATION IMPROVED
---------------------------- */

.ring-animation {
  position: absolute;
  bottom: 18%;       /* avant trop haut — maintenant parfaitement dégagé */
  left: 55%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 5;
}

/* Grand ring */
.ring {
  position: absolute;
  width: 260px;
  height: 260px;
  border: 2px solid rgba(0, 180, 255, 0.35);
  border-radius: 50%;
  animation: ringPulse 4.5s infinite ease-out;
  backdrop-filter: blur(1px);
}

/* Nouveau petit ring */
.ring2 {
  width: 140px;
  height: 140px;
  border-color: rgba(0, 180, 255, 0.55);
  animation: ringPulseSmall 3.2s infinite ease-out;
}

/* Animation grand ring */
@keyframes ringPulse {
  0% {
    transform: scale(0.6);
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: scale(1.25);
    opacity: 0;
  }
}

/* Animation petit ring */
@keyframes ringPulseSmall {
  0% {
    transform: scale(0.7);
    opacity: 0.5;
  }
  40% {
    opacity: 1;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}


.ring-animation {
  position: absolute;
  bottom: 30%;      /* AU LIEU DE 18% — remonte visiblement l’effet */
  left: 55%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 5;
}



/* --- LEFT RING ANIMATION --- */
.ring-left-animation {
    position: absolute;
    left: 15%;       /* cercle placé à gauche */
    bottom: 35%;     /* ajuste si besoin */
    width: 220px;
    height: 220px;
    pointer-events: none;
    z-index: 5;
}

.ring-left {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(0, 174, 239, 0.6); /* bleu Minexx */
    transform: translate(-50%, -50%);
    animation: ringLeftPulse 4s infinite ease-in-out;
}

/* tailles différentes pour créer l’effet multi-anneaux */
.ring-left.ring-l1 { transform: translate(-50%, -50%) scale(1); }
.ring-left.ring-l2 { transform: translate(-50%, -50%) scale(1.25); opacity: 0.7; }
.ring-left.ring-l3 { transform: translate(-50%, -50%) scale(1.5); opacity: 0.5; }

/* animation */
@keyframes ringLeftPulse {
    0%   { opacity: 0.25; transform: translate(-50%, -50%) scale(1); }
    70%  { opacity: 0.6; transform: translate(-50%, -50%) scale(1.15); }
    100% { opacity: 0.25; transform: translate(-50%, -50%) scale(1); }
}


/* --- LEFT RING ANIMATION (adjusted position + smaller size) --- */
.ring-left-animation {
    position: absolute;
    left: 10%;        /* plus à gauche */
    bottom: 25%;      /* plus bas */
    width: 150px;     /* réduit */
    height: 150px;    /* réduit */
    pointer-events: none;
    z-index: 5;
}

.ring-left {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(0, 174, 239, 0.6);
    transform: translate(-50%, -50%);
    animation: ringLeftPulse 4s infinite ease-in-out;
}

.ring-left.ring-l1 { transform: translate(-50%, -50%) scale(1); }
.ring-left.ring-l2 { transform: translate(-50%, -50%) scale(1.25); opacity: 0.7; }
.ring-left.ring-l3 { transform: translate(-50%, -50%) scale(1.5); opacity: 0.5; }

@keyframes ringLeftPulse {
    0%   { opacity: 0.25; transform: translate(-50%, -50%) scale(1); }
    70%  { opacity: 0.6; transform: translate(-50%, -50%) scale(1.15); }
    100% { opacity: 0.25; transform: translate(-50%, -50%) scale(1); }
}



.section--contact ul {
    list-style: none; /* supprime les puces classiques */
    padding-left: 1.2rem;
}

.section--contact ul li {
    position: relative;
    margin: 0.5rem 0;
}

.section--contact ul li::before {
    content: "•";
    position: absolute;
    left: -1.2rem;
    top: 0;
    color: #007BFF; /* bleu Minexx (à ajuster selon ta palette) */
    font-size: 1.2rem;
    line-height: 1;
}



.section--minesmart ul {
    list-style: none; /* supprime les puces classiques */
    padding-left: 1.2rem;
}

.section--minesmart ul li {
    position: relative;
    margin: 0.5rem 0;
}

.section--minesmart ul li::before {
    content: "•";
    position: absolute;
    left: -1.2rem;
    top: 0;
    color: #007BFF; /* bleu Minexx (à ajuster selon ta palette) */
    font-size: 1.2rem;
    line-height: 1;
}


.footer__link--disabled {
  opacity: 0.6;
  cursor: default;
}




.policy-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}
.policy-modal[hidden] { display: none; }

.policy-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  transition: opacity 0.3s ease;
}

.policy-modal__content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(92%, 820px);
  max-height: 88vh;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(61, 226, 255, 0.25);
  box-shadow: var(--shadow-elevated);
  background: radial-gradient(circle at top left, rgba(17, 31, 54, 0.92), rgba(4, 7, 16, 0.98));
  color: var(--color-neutral-100);
  animation: fadeIn 0.25s ease;
}

.policy-modal__header {
  position: sticky;
  top: 0;
  background: rgba(7, 16, 26, 0.95);
  border-bottom: 1px solid rgba(61, 226, 255, 0.25);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.policy-modal__header h2 {
  font-size: 1.2rem;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}

.policy-modal__close {
  font-size: 1.8rem;
  background: transparent;
  border: none;
  color: var(--color-neutral-300);
  cursor: pointer;
  transition: color 0.2s ease;
}
.policy-modal__close:hover {
  color: var(--color-accent);
}

.policy-modal__body {
  padding: 1.75rem 2rem 2.25rem;
  overflow-y: auto;
  scroll-behavior: smooth;
}
.policy-modal__body h3 {
  color: var(--color-primary);
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
}
.policy-modal__body ul {
  margin: 0.75rem 0 1.25rem 1.25rem;
}
.policy-modal__body li {
  margin-bottom: 0.4rem;
  color: var(--color-neutral-200);
}
.policy-modal__footer-note {
  margin-top: 1.75rem;
  font-size: 0.9rem;
  color: var(--color-neutral-400);
  text-align: center;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === CRITICAL MINERALS GRID === */
.critical-minerals {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

.critical-minerals h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #fff;
}

.minerals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.mineral-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  background-color: #0b1625;
  height: 240px; /* toutes la même hauteur */
  transition: transform 0.3s ease;
}

.mineral-card:hover {
  transform: translateY(-6px);
}

.mineral-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mineral-card .label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .minerals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .minerals-grid {
    grid-template-columns: 1fr;
  }
}


/* --- CRITICAL MINERALS GRID FIX --- */
.impact-grid-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.impact-card {
  position: relative;
  background: #0b1625;
  border-radius: 18px;
  overflow: hidden;
  height: 260px; /* même hauteur pour toutes */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.impact-card:hover {
  transform: translateY(-5px);
}

.impact-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.impact-card__label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
  .impact-grid-layout {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .impact-grid-layout {
    grid-template-columns: 1fr;
  }



  /* Masonry grid */
.impact-grid {
  column-count: 3;
  column-gap: 1.5rem;
  margin: 3rem 0;
}

@media (max-width: 900px) { .impact-grid { column-count: 2; } }
@media (max-width: 600px) { .impact-grid { column-count: 1; } }

.impact-card{
  display: inline-block;
  width: 100%;
  margin-bottom: 1.5rem;
  break-inside: avoid;
}
}


/* ---------------------------------------- */
/*   SUPPLY CHAIN SECTION  (five cards)     */
/* ---------------------------------------- */

.supplychain-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.card--chain {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* ensures text starts left-aligned */
  justify-content: flex-start; /* keeps content at top */
  text-align: left;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: radial-gradient(circle at top, rgba(17, 31, 54, 0.85), rgba(4, 7, 16, 0.95));
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.6);
  padding: 1.5rem;
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
  height: 100%; /* ensures consistent height across cards */
}

.card--chain:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.7);
}


.card--chain h3 {
  font-family: var(--fs-lg); /* Ubuntu */
  font-size: 0.95rem; /* match ecosystem cards */
  font-weight: 700; /* strong uppercase */
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-neutral-50);
  text-align: left;
  margin-bottom: 0.4rem;
}

.card--chain p {
  font-family: var(--font-alt);
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--color-neutral-300);
  text-align: left;
  line-height: 1.45;
}



.card--chain .card__image {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card--chain img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

/* Responsive: stack cards vertically on mobile */
@media (max-width: 1024px) {
  .supplychain-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .supplychain-grid {
    grid-template-columns: 1fr;
  }
}

.card--chain .card__image {
  margin-bottom: 1rem;
}

.card--chain h3 {
  margin-top: 0; /* removes any vertical gap above title */
  margin-bottom: 0.5rem;
}

/* -------------------------------------------------------
   VALUE CHAIN (MineSmart-connected) — NEW SECTION
-------------------------------------------------------- */

.valuechain-section .section__title-highlight {
  color: var(--color-primary);
}

.valuechain-backbone {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  padding: 1.1rem 1.2rem;
  border-radius: 16px;
  border: 1px solid rgba(61, 226, 255, 0.22);
  background: radial-gradient(circle at top left, rgba(24, 91, 154, 0.35), rgba(4, 9, 20, 0.95));
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
  margin: 0 auto 1.75rem;
}

.valuechain-backbone__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(61, 226, 255, 0.3);
  background: rgba(0, 0, 0, 0.28);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-neutral-50);
}

.valuechain-backbone__mark {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
}

.valuechain-backbone__text {
  margin: 0.5rem 0 0;
  color: var(--color-neutral-200);
  font-size: 0.95rem;
  max-width: 560px;
}

.valuechain-backbone__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.valuechain-chip {
  font-size: 0.78rem;
  color: var(--color-neutral-100);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

/* Main layout */
.valuechain-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
}

/* IMPORTANT: allow grid children to shrink on mobile (prevents horizontal overflow) */
.valuechain-layout > * {
  min-width: 0;
}

.valuechain-visual-card,
.valuechain-detail-card {
  border-radius: 18px;
}

/* Visual header */
.valuechain-visual__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
}

.valuechain-visual__kicker {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-neutral-400);
}

.valuechain-visual__hint {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-neutral-200);
}

/* Arc */
.valuechain-arc {
  position: relative;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 1.1rem 0.6rem 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(61, 226, 255, 0.18);
  background: radial-gradient(circle at top, rgba(61, 226, 255, 0.12), rgba(8, 15, 30, 0.92));
  overflow: hidden;
}

.valuechain-arc__line {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 54%;
  height: 2px;
  background: linear-gradient(90deg, rgba(30, 181, 255, 0), rgba(30, 181, 255, 0.9), rgba(61, 226, 255, 0.7), rgba(30, 181, 255, 0));
  opacity: 0.65;
  border-radius: 999px;
}

.valuechain-arc__backbone {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 54%;
  height: 10px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(16, 40, 59, 0.2), rgba(30, 181, 255, 0.15), rgba(16, 40, 59, 0.2));
  border-radius: 999px;
}

.valuechain-arc__pulse {
  position: absolute;
  top: 50%;
  left: 18%;
  width: 120px;
  height: 120px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: radial-gradient(circle at center, rgba(61, 226, 255, 0.22), rgba(61, 226, 255, 0));
  filter: blur(0px);
  animation: valuechainPulse 2.8s ease-in-out infinite;
  pointer-events: none;
  opacity: 0.9;
}

@keyframes valuechainPulse {
  0% { transform: translate(-50%, -50%) scale(0.78); opacity: 0.6; left: 12%; }
  50% { transform: translate(-50%, -50%) scale(1); opacity: 0.95; left: 50%; }
  100% { transform: translate(-50%, -50%) scale(0.78); opacity: 0.6; left: 88%; }
}

/* Nodes */
.valuechain-node {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 0.35rem 0.2rem;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  z-index: 2;
  transition: transform var(--transition-fast);
}

.valuechain-node:hover {
  transform: translateY(-2px);
}

.valuechain-node__dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(61, 226, 255, 0.7);
  background: rgba(4, 8, 18, 0.85);
  box-shadow: 0 0 0 6px rgba(61, 226, 255, 0.08);
}

.valuechain-node__label {
  font-size: 0.78rem;
  color: var(--color-neutral-200);
  text-align: center;
  line-height: 1.15;
  max-width: 92px;
}

.valuechain-node.is-active .valuechain-node__dot {
  background: radial-gradient(circle at center, #3de2ff, #0080c0);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 7px rgba(61, 226, 255, 0.16), 0 0 18px rgba(61, 226, 255, 0.55);
}

.valuechain-node.is-active .valuechain-node__label {
  color: var(--color-neutral-50);
}

/* Strip with thumbnails */
.valuechain-strip {
  margin-top: 1.1rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scrollbar-width: none;
}
.valuechain-strip::-webkit-scrollbar { height: 0; }

.valuechain-strip__track {
  display: inline-flex;
  gap: 0.85rem;
  padding: 0.25rem 0.1rem;
}

.valuechain-mini {
  flex: 0 0 180px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle at top, rgba(17, 31, 54, 0.9), rgba(4, 7, 16, 0.98));
  border-radius: 14px;
  padding: 0.65rem;
  cursor: pointer;
  color: inherit;
  text-align: left;
  transition: transform var(--transition-fast), border-color var(--transition-base);
}

.valuechain-mini:hover { transform: translateY(-2px); border-color: rgba(61, 226, 255, 0.22); }

.valuechain-mini img {
  width: 100%;
  height: 96px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0.6rem;
}

.valuechain-mini span {
  display: block;
  font-size: 0.86rem;
  color: var(--color-neutral-100);
}

.valuechain-mini.is-active {
  border-color: rgba(61, 226, 255, 0.35);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
}

/* Details panel */
.valuechain-detail__eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-neutral-400);
  margin-bottom: 0.45rem;
}

.valuechain-detail__num {
  color: var(--color-accent);
  font-weight: 700;
}

.valuechain-detail__title {
  margin: 0 0 0.45rem;
}

.valuechain-detail__product {
  margin: 0 0 1rem;
  color: var(--color-neutral-200);
}

.valuechain-detail__image {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle at top, rgba(48, 87, 131, 0.7), rgba(2, 4, 10, 0.95));
  margin-bottom: 1rem;
}

.valuechain-detail__image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.valuechain-detail__desc {
  color: var(--color-neutral-200);
  margin: 0.25rem 0 1rem;
}

.valuechain-detail__cta {
  margin-top: 1.1rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .valuechain-layout {
    grid-template-columns: 1fr;
  }
  .valuechain-backbone {
    flex-direction: column;
    align-items: flex-start;
  }
  .valuechain-backbone__chips {
    justify-content: flex-start;
  }
  .valuechain-arc {
    grid-template-columns: repeat(10, minmax(120px, 1fr));
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .valuechain-node {
    scroll-snap-align: start;
  }
}

/* =========================================
   VALUE CHAIN – FIX OVERLAP + CLICK LAYERS
   ========================================= */

/* 1) Les éléments décoratifs ne doivent JAMAIS capter le clic */
.valuechain-arc__line,
.valuechain-arc__backbone {
  pointer-events: none;
  z-index: 0;
}

/* 2) Les nodes au-dessus du décor */
.valuechain-node {
  z-index: 2;
  min-width: 0; /* important en grid */
}

/* 3) Fix chevauchement des labels */
.valuechain-arc {
  gap: 0.6rem;              /* un peu plus d’air */
  align-items: start;
}

.valuechain-node__label {
  display: block;
  max-width: 74px;          /* réduit la largeur pour éviter le “collage” */
  font-size: clamp(0.62rem, 0.75vw, 0.78rem);
  line-height: 1.15;
  word-break: break-word;   /* wrap propre si besoin */
  overflow: hidden;
}

/* Optionnel : sur écrans moyens, on desserre un peu */
@media (max-width: 1100px) {
  .valuechain-arc {
    gap: 0.75rem;
  }
  .valuechain-node__label {
    max-width: 68px;
  }
}

/* Optionnel : sur mobile, on évite l’écrasement -> on autorise le scroll horizontal */
@media (max-width: 820px) {
  .valuechain-arc {
    overflow-x: auto;
    grid-template-columns: repeat(10, minmax(88px, 1fr));
    padding-bottom: 1.5rem;
  }
}

/* =========================================
   VALUE CHAIN – PORTRAIT IMAGE CARDS
   ========================================= */

/* Mini cards (Interactive overview cards) */
.valuechain-mini img {
  aspect-ratio: 3 / 4;        /* PORTRAIT */
  height: auto;
  max-height: none;
  object-fit: cover;
}

/* Card container – un peu plus haut pour respirer */
.valuechain-mini {
  flex: 0 0 180px;
}

/* Detail panel main image (à droite) */
.valuechain-detail__image img {
  aspect-ratio: 3 / 4;        /* PORTRAIT */
  height: auto;
  max-height: 360px;
  object-fit: contain;        /* illustrations → pas coupées */
  background: #fff;           /* fond clean si PNG */
}

/* =========================================
   INTERACTIVE OVERVIEW – LABEL READABILITY
   ========================================= */

/* Labels sous les points */
.valuechain-node__label {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-align: center;
  max-width: 64px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.9;
}

/* Tooltip avec label complet */
.valuechain-node {
  position: relative;
}

.valuechain-node::after {
  content: attr(aria-label);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.7rem;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  background: rgba(6, 12, 26, 0.95);
  border: 1px solid rgba(61, 226, 255, 0.35);
  color: var(--color-neutral-50);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 10;
}

.valuechain-node:hover::after,
.valuechain-node:focus-visible::after {
  opacity: 1;
}

/* =========================================
   VALUE CHAIN — Mobile improvements
   ========================================= */

/* 1) Mobile: make the arc scroll horizontally + snap */
@media (max-width: 720px) {
  .valuechain-visual__header {
    flex-direction: column;
    align-items: flex-start;
    gap: .6rem;
  }

  .valuechain-pills {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: .5rem;
  }

  /* Arc becomes a horizontal scroll area */
  .valuechain-arc {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 16px;
    padding-bottom: .25rem;
    gap: .6rem;
  }

  .valuechain-arc::-webkit-scrollbar {
    display: none;
  }

  /* Each node snaps nicely and has a bit more room */
  .valuechain-node {
    scroll-snap-align: center;
    min-width: 96px;
    padding: .35rem .45rem .6rem;
    touch-action: manipulation;
  }

  /* 2) Labels: readable, 2 lines max, no ugly mid-word breaks */
  .valuechain-node__label {
    max-width: 120px;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.15;
    font-size: 12px;
  }

  /* 3) On mobile: disable hover tooltip (it can overlap / glitch) */
  .valuechain-node::after {
    display: none !important;
  }

  /* Mini-cards: keep them scrollable and finger-friendly */
  .valuechain-strip {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 16px;
  }

  .valuechain-strip::-webkit-scrollbar {
    display: none;
  }

  .valuechain-mini {
    scroll-snap-align: start;
    flex: 0 0 160px; /* adjust width for mobile */
    touch-action: manipulation;
  }

  /* Details image: avoid taking too much vertical space */
  .valuechain-detail__media img {
    max-height: 260px;
    object-fit: contain;
  }
}

/* 4) Also disable tooltip on touch devices (even if width is large) */
@media (hover: none) and (pointer: coarse) {
  .valuechain-node::after {
    display: none !important;
  }

  .valuechain-node__label {
    white-space: normal;
    word-break: normal;
  }
}

/* =========================================
   VALUE CHAIN — Fix vertical height on mobile
   ========================================= */

@media (max-width: 720px) {
  /* Reduce section padding a bit so it fits better on small screens */
  #value-chain.section {
    padding-top: 3.25rem;
    padding-bottom: 3.25rem;
  }

  /* Panneau détails: moins de padding pour gagner de la hauteur utile */
  .valuechain-detail-card {
    padding: 1.15rem 1.15rem;
  }

  /* IMPORTANT: sur mobile, on n'utilise PAS le ratio portrait sur l'image principale */
  .valuechain-detail__image img {
    aspect-ratio: auto !important;   /* stop forcing 3/4 on mobile */
    width: 100%;
    height: clamp(200px, 38vh, 300px); /* hauteur contrôlée */
    max-height: 300px;
    object-fit: contain;             /* illustration non coupée */
    background: #fff;
  }

  /* Le wrapper image doit aussi être maîtrisé */
  .valuechain-detail__image {
    margin-bottom: 0.85rem;
  }
}

@media (max-width: 720px) {
  .valuechain-mini img {
    aspect-ratio: 3 / 4;
    height: 170px;     /* limite la hauteur */
    object-fit: cover;
  }
}

@media (max-width: 640px) {
  /* tighten container spacing */
  .valuechain-section .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* make the overview header stack nicely */
  .valuechain-visual__header {
    align-items: flex-start;
  }

  /* the arc must scroll without “pushing” page width */
  .valuechain-arc {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    padding: 0.85rem 0.75rem;
  }

  /* improve label readability */
  .valuechain-node__label {
    max-width: 110px;
    font-size: 0.74rem;
    line-height: 1.15;
    word-break: break-word;
    hyphens: auto;
  }

  /* thumbnail strip: keep scroll contained + nicer sizing */
  .valuechain-strip {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  .valuechain-strip__track {
    padding-right: 18px; /* avoids last card being half-cut */
  }

  /* make thumbnails less “wide” on small screens */
  .valuechain-mini {
    flex: 0 0 155px; /* was 180px */
  }

  /* detail image: reduce vertical dominance on mobile */
  .valuechain-detail__image img {
    height: 180px; /* was 220px */
  }
}

/* =========================================
   VALUE CHAIN — Square image format
   ========================================= */

/* Image container becomes square */
.valuechain-detail__image {
  aspect-ratio: 1 / 1;              /* carré */
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;              /* fond blanc propre */
}

/* Image inside stays readable */
.valuechain-detail__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;              /* JAMAIS crop */
  padding: 14px;                    /* respiration autour de l’illustration */
  background: transparent;
}

@media (max-width: 640px) {
  .valuechain-detail__image {
    max-height: 280px;
  }
}


/* =========================================
   FIX: Impact grid must follow human reading order
   (Overrides all mosaic / dense / nth-child positioning)
   ========================================= */

.impact-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-template-rows: none !important;   /* remove fixed tracks */
  grid-auto-rows: 240px !important;      /* uniform card height */
  grid-auto-flow: row !important;        /* IMPORTANT: no dense packing */
  gap: 32px !important;
}

.impact-grid .impact-card {
  grid-column: auto !important;
  grid-row: auto !important;
}

/* If you use size modifiers, neutralize them here */
.impact-card--large,
.impact-card--medium {
  grid-row: auto !important;
  grid-column: auto !important;
}

/* Tablet */
@media (max-width: 960px) {
  .impact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: 220px !important;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .impact-grid {
    grid-template-columns: 1fr !important;
    grid-auto-rows: 230px !important;
  }
}