/* assets/css/styles.css */
/* ----------------------------------------------------------
   1. RESET & BASE
---------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Ubuntu", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #f7f8fa;
  color: #111111;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

/* ----------------------------------------------------------
   2. DESIGN TOKENS
---------------------------------------------------------- */

:root {
  /* Brand colours */
  --color-primary: #2DA9E1;          /* Minexx blue */
  --color-primary-dark: #2286b4;
  --color-primary-soft: #e4f4fd;
  --color-neutral-0: #ffffff;
  --color-neutral-25: #fcfdff;
  --color-neutral-50: #f7f8fa;
  --color-neutral-200: #e2e4ea;
  --color-neutral-400: #939598;      /* Minexx grey */
  --color-neutral-800: #111111;      /* charcoal */

  /* MineSmart accent */
  --color-minesmart: #0F7FA8;
  --color-minesmart-soft: #e3f4fa;

  /* Spacing (px) */
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;
  --space-64: 64px;
  --space-96: 96px;

  /* Radius & shadows */
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.05);

  /* Typography */
  --font-display: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --fs-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.8rem);
  --fs-sm: clamp(0.875rem, 0.84rem + 0.2vw, 0.95rem);
  --fs-md: clamp(1rem, 0.96rem + 0.2vw, 1.05rem);
  --fs-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.35rem);
  --fs-xl: clamp(1.5rem, 1.3rem + 0.7vw, 1.9rem);
  --fs-2xl: clamp(2rem, 1.7rem + 1vw, 2.6rem);
  --fs-3xl: clamp(2.5rem, 2rem + 1.4vw, 2.8rem);

  /* Layout */
  --max-width: 1120px;

  /* Motion */
  --transition-fast: 150ms ease-out;
  --transition-med: 220ms ease-out;
}

/* ----------------------------------------------------------
   3. ACCESSIBILITÉ & LOADER
---------------------------------------------------------- */

.skip-link {
  position: absolute;
  top: -40px;
  left: 16px;
  padding: var(--space-8) var(--space-16);
  background: var(--color-neutral-0);
  color: var(--color-neutral-800);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  z-index: 1000;
}

.skip-link:focus-visible {
  top: 16px;
}

/* Loader */

#page-loader {
  position: fixed;
  inset: 0;
  background: rgba(247, 248, 250, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity var(--transition-med);
}

#page-loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-inner {
  display: flex;
  gap: var(--space-8);
}

.loader-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background-color: var(--color-primary);
  animation: loader-bounce 900ms infinite alternate;
}

.loader-dot:nth-child(2) {
  animation-delay: 150ms;
}

.loader-dot:nth-child(3) {
  animation-delay: 300ms;
}

@keyframes loader-bounce {
  from {
    transform: translateY(0);
    opacity: 0.4;
  }
  to {
    transform: translateY(-6px);
    opacity: 1;
  }
}

/* Container */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-16);
}

/* ----------------------------------------------------------
   4. TECHNICAL PERFORMANCE BLOCK
---------------------------------------------------------- */

.technical-review {
  background: var(--color-neutral-0);
  border-bottom: 1px solid var(--color-neutral-200);
  font-size: var(--fs-sm);
}

.technical-review__inner {
  padding-block: var(--space-8);
}

.technical-review__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
}

.technical-review__title {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}

.technical-review__subtitle {
  margin: 2px 0 0;
  color: var(--color-neutral-400);
}

.technical-review__toggle {
  border-radius: 999px;
  border: 1px solid var(--color-neutral-200);
  padding: var(--space-8) var(--space-16);
  background: var(--color-neutral-0);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-neutral-800);
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast);
}

.technical-review__toggle::after {
  content: "▼";
  font-size: 0.7em;
}

.technical-review__toggle[aria-expanded="true"]::after {
  content: "▲";
}

.technical-review__toggle:hover,
.technical-review__toggle:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
}

.technical-review__body {
  margin-top: var(--space-16);
  padding-top: var(--space-16);
  border-top: 1px dashed var(--color-neutral-200);
}

.technical-review__grid {
  display: grid;
  gap: var(--space-24);
}

.technical-review__section h3 {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 var(--space-12);
}

.technical-review__scores {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.score-item {
  padding: var(--space-8) var(--space-12);
  border-radius: 999px;
  background: var(--color-primary-soft);
  display: flex;
  align-items: baseline;
  gap: var(--space-8);
}

.score-label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.score-value {
  font-size: var(--fs-sm);
  font-weight: 600;
}

/* ----------------------------------------------------------
   5. HEADER & NAVIGATION (RETRACTABLE)
---------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  backdrop-filter: blur(8px);
  background: rgba(247, 248, 250, 0.96);
  border-bottom: 1px solid rgba(226, 228, 234, 0.9);
  transition:
    background var(--transition-med),
    border-color var(--transition-med),
    box-shadow var(--transition-med),
    transform var(--transition-med);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 18px;
  gap: var(--space-32);
  transition: padding-block var(--transition-med);
}

/* Logo + tagline horizontal */

.site-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-16);
}

.site-logo__image {
  height: 72px;
  width: auto;
  flex-shrink: 0;
  transition: height var(--transition-med), transform var(--transition-med);
}

.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;
}

/* Shrink state (desktop + mobile) */

.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;
}

.site-header--shrink .site-logo__image {
  height: 54px;
  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;
}

/* Desktop nav */

.site-nav {
  margin-left: auto;
}

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

.site-nav__list a {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-neutral-800);
  text-decoration: none;
  position: relative;
  padding-block: var(--space-4);
}

/* underline animé */

.site-nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  border-radius: 999px;
  background: var(--color-primary);
  transition: width var(--transition-med), background var(--transition-med);
}

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

/* MineSmart – entrée de menu spécifique */

.site-nav__list a[data-nav="minesmart"] {
  color: var(--color-minesmart);
  font-weight: 800;
}

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

.site-nav__list a[data-nav="minesmart"]:hover,
.site-nav__list a[data-nav="minesmart"]:focus-visible {
  color: #0d6d91;
}

.site-nav__list a[data-nav="minesmart"]:hover::after,
.site-nav__list a[data-nav="minesmart"]:focus-visible::after {
  background: #0d6d91;
}

/* Mobile nav toggle */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 4px;
  margin-left: var(--space-16);
  cursor: pointer;
  appearance: none;
}

/* 2-bar hamburger */

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--color-neutral-800);
  transition: transform var(--transition-med), opacity var(--transition-med);
}

.nav-toggle__bar + .nav-toggle__bar {
  margin-top: 4px;
}

.site-header--open .nav-toggle__bar:first-child {
  transform: translateY(3px) rotate(45deg);
}

.site-header--open .nav-toggle__bar:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* ----------------------------------------------------------
   6. HERO
---------------------------------------------------------- */

.hero {
  padding-block: var(--space-48);
  background:
    radial-gradient(circle at top right, rgba(45, 169, 225, 0.16), transparent 55%),
    var(--color-neutral-50);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-32);
  align-items: center;
}

.eyebrow {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-primary-dark);
  margin: 0;
}

.hero__content h1 {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  line-height: 1.15;
  letter-spacing: 0.03em;
  margin: var(--space-8) 0 var(--space-16);
}

.hero__lead {
  font-size: var(--fs-lg);
  color: var(--color-neutral-800);
  margin: 0 0 var(--space-24);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-16);
  margin-bottom: var(--space-24);
}

.hero__highlights {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: grid;
  gap: var(--space-8);
  font-size: var(--fs-sm);
}

.hero__highlights li::before {
  content: "●";
  display: inline-block;
  margin-right: var(--space-8);
  color: var(--color-primary);
  font-size: 0.6em;
  vertical-align: middle;
}

.hero__visual {
  display: flex;
  align-items: stretch;
}

/* Hero image : centrée, pas de double cadre, arrondis conservés */

.hero .image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-neutral-200);
  background: var(--color-neutral-0);
  box-shadow: none;
}

.hero .image-placeholder img {
  max-height: 100%;
  height: auto;
  width: auto;
  object-fit: contain;
}

/* ----------------------------------------------------------
   7. SECTIONS & GRID
---------------------------------------------------------- */

.section {
  padding-block: var(--space-48);
}

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

.section__header {
  margin-bottom: var(--space-32);
}

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

.section__header h2 {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  letter-spacing: 0.04em;
  margin: 0 0 var(--space-8);
}

.section__kicker {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--color-neutral-400);
}

.section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-16);
  margin-top: var(--space-24);
}

/* Grid */

.grid {
  display: grid;
  gap: var(--space-24);
}

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

/* ----------------------------------------------------------
   8. CARDS & ICONS
---------------------------------------------------------- */

.card {
  background: var(--color-neutral-0);
  border-radius: var(--radius-lg);
  padding: var(--space-24);
  box-shadow: var(--shadow-soft);
}

/* Header de carte + icône Minexx */

.card__header {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.card__icon {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 12px;
  padding: 0;
}

/* Taille standardisée du symbole Minexx dans les cartes */

.card__icon .icon {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  display: block;
}

.card__icon .icon use {
  transform: translateY(-1px);
}

/* MineSmart : alignement spécifique pour la carte principale */

#minesmart .card__header {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

#minesmart .card__icon {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#minesmart .card__icon .icon {
  width: 28px;
  height: 28px;
}

/* Base icon */

.icon {
  fill: var(--color-primary);
}

.icon--minesmart {
  fill: none;
  stroke: var(--color-minesmart);
}

/* Card typographie */

.card__subheading {
  margin-top: var(--space-16);
  margin-bottom: var(--space-8);
  font-family: var(--font-display);
  font-size: var(--fs-md);
}

.card--pillar h3,
.card--impact h3,
.card--insight h3 {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  margin: 0;
}

.card__tagline {
  font-size: var(--fs-sm);
  color: var(--color-neutral-400);
  margin: 0 0 var(--space-16);
}

.card__list {
  margin: 0 0 var(--space-16);
  padding-left: 1.1em;
  font-size: var(--fs-sm);
}

.card__link {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-primary);
  position: relative;
}

.card__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  border-radius: 999px;
  background: var(--color-primary);
  transition: width var(--transition-med);
}

.card__link:hover::after,
.card__link:focus-visible::after {
  width: 100%;
}

.card--impact {
  border-top: 3px solid var(--color-primary);
}

.card--insight {
  border-left: 3px solid var(--color-primary);
}

.card--form {
  background: var(--color-neutral-50);
}

/* Lists */

.pill-list {
  list-style: none;
  padding-left: 0;
  margin: var(--space-16) 0 0;
  display: grid;
  gap: var(--space-8);
  font-size: var(--fs-sm);
}

.pill-list li {
  padding: var(--space-8) var(--space-12);
  border-radius: 999px;
  background: var(--color-neutral-50);
}

.feature-list {
  padding-left: 1.1em;
  margin: var(--space-16) 0 0;
  display: grid;
  gap: var(--space-8);
  font-size: var(--fs-sm);
}

/* ----------------------------------------------------------
   9. IMAGE PLACEHOLDERS (fond blanc uni)
---------------------------------------------------------- */

.image-placeholder {
  width: 100%;
  min-height: 300px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-neutral-200);
  background: var(--color-neutral-0);
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-16);
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--color-neutral-400);
  transition:
    border-color var(--transition-med),
    transform var(--transition-fast);
}

.image-placeholder p {
  max-width: 32rem;
  margin: 0;
}

.image-placeholder:hover {
  border-color: var(--color-primary);
  transform: translateY(-1px);
}

/* Full-width placeholders */

.image-placeholder--full {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-neutral-200);
  min-height: 420px;
  margin-top: var(--space-32);
  margin-bottom: var(--space-32);
  background: var(--color-neutral-0);
  background-attachment: scroll;
}

.image-placeholder--full p {
  max-width: 36rem;
  margin: 0;
  font-size: 10px;
  line-height: 1.4;
  color: var(--color-neutral-400);
  opacity: 0.35;
}

/* MineSmart image : même logique que Hero (centrée, sans double bloc) */

.minesmart-block .image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-neutral-200);
  background: var(--color-neutral-0);
}

.minesmart-block .image-placeholder img {
  max-height: 100%;
  height: auto;
  width: auto;
  object-fit: contain;
}

/* Cartes visuelles génériques (si utilisées) */

.card--visual {
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.card--visual .image-placeholder {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* ----------------------------------------------------------
   10. SECTIONS SPÉCIALES
---------------------------------------------------------- */

.impact__visual,
.insights__visual {
  margin-top: var(--space-32);
}

.impact__cta {
  margin-top: var(--space-32);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-16);
  align-items: center;
  justify-content: space-between;
}

/* Proof */

.proof-grid {
  align-items: stretch;
}

/* MineSmart section highlight */

.section--minesmart {
  background: linear-gradient(
    135deg,
    var(--color-minesmart-soft),
    var(--color-neutral-0)
  );
  border-top: 3px solid var(--color-minesmart);
}

.section--minesmart .section__header h2 {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.section--minesmart .section__header h2 .icon--minesmart {
  width: 32px;
  height: 32px;
}

.section--minesmart .card {
  border: 1px solid rgba(15, 127, 168, 0.15);
}

/* ----------------------------------------------------------
   11. FAQ
---------------------------------------------------------- */

.faq {
  display: grid;
  gap: var(--space-8);
}

.faq-item {
  border-radius: var(--radius-lg);
  background: var(--color-neutral-0);
  box-shadow: var(--shadow-soft);
}

.faq-item__button {
  width: 100%;
  text-align: left;
  padding: var(--space-16) var(--space-24);
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  font-size: var(--fs-sm);
}

.faq-item__button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}

.faq-item__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-12);
}
/* FAQ icon: Minexx symbol only (no blue circle) */
/* Remove blue circle behind FAQ icons */
.faq-item__icon-circle {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ensure the Minexx logo renders cleanly */
.faq-item__icon-img {
  width: 22px;
  height: 22px;
  display: block;
}

.faq-item__icon-circle .icon--small {
  width: 24px !important;
  height: 24px !important;
  fill: var(--color-primary);   /* solid Minexx blue */
  stroke: none;                 /* avoid “A”/outline look */
}

/* + / - en couleurs Minexx */

.faq-item__icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  position: relative;
  flex-shrink: 0;
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  background: var(--color-primary);
  border-radius: 2px;
}

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

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

.faq-item__button[aria-expanded="true"] .faq-item__icon::after {
  opacity: 0;
}

.faq-item__panel {
  padding: 0 var(--space-24) var(--space-16);
  border-top: 1px solid var(--color-neutral-200);
  font-size: var(--fs-sm);
}

/* ----------------------------------------------------------
   12. FORMULAIRE / CONTACT
---------------------------------------------------------- */

.contact-form {
  display: grid;
  gap: var(--space-16);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-row label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-neutral-400);
}

.form-row input,
.form-row select,
.form-row textarea {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-neutral-200);
  padding: var(--space-8) var(--space-12);
  font-size: var(--fs-sm);
  background: var(--color-neutral-0);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast);
}

.form-row input:focus-visible,
.form-row select:focus-visible,
.form-row textarea:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary-soft);
  background: #ffffff;
}

.form-row--actions {
  align-items: flex-start;
}

.form-helper {
  margin: 0;
  font-size: var(--fs-xs);
  color: var(--color-neutral-400);
}

.contact__visual {
  margin-top: var(--space-24);
}

/* ----------------------------------------------------------
   13. BOUTONS
---------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  padding: var(--space-12) var(--space-24);
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 500;
  border: 1px solid transparent;
  transition:
    background var(--transition-med),
    color var(--transition-med),
    border-color var(--transition-med),
    box-shadow var(--transition-med),
    transform var(--transition-fast);
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-neutral-0);
  box-shadow: var(--shadow-soft);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  outline: none;
}

.btn--ghost {
  background: transparent;
  border-color: var(--color-neutral-200);
  color: var(--color-neutral-800);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
  outline: none;
}

/* Bouton MineSmart */

.btn--minesmart {
  background: var(--color-minesmart);
  color: var(--color-neutral-0);
  border-color: var(--color-minesmart);
}

.btn--minesmart:hover,
.btn--minesmart:focus-visible {
  background: #0d6d91;
  border-color: #0d6d91;
  transform: translateY(-1px);
}

/* ----------------------------------------------------------
   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);
}

/* 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;
}

/* utilitaire accessibilité – texte seulement pour lecteurs d’écran */

.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;
}

/* ----------------------------------------------------------
   15. BOUTON BACK TO TOP
---------------------------------------------------------- */

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: var(--color-primary);
  color: var(--color-neutral-0);
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity var(--transition-med),
    transform var(--transition-med),
    background var(--transition-med);
  z-index: 950;
}

.back-to-top--visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--color-primary-dark);
  outline: none;
}

/* ----------------------------------------------------------
   16. BREAKPOINTS
---------------------------------------------------------- */

/* <= 480px */

@media (max-width: 480px) {
  .site-header__inner {
    padding-block: var(--space-12);
  }

  .site-logo__image {
    height: 64px;
  }

  .site-header--shrink .site-logo__image {
    height: 52px;
  }

  .site-logo__tagline {
    display: none;
  }

  .hero {
    padding-block: var(--space-32);
  }

  .image-placeholder {
    min-height: 260px;
  }
}

/* <= 767px : mobile nav, sections empilées */

@media (max-width: 767px) {
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: rgba(247, 248, 250, 0.98);
    border-bottom: 1px solid var(--color-neutral-200);
    transform-origin: top;
    transform: scaleY(0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-med), transform var(--transition-med);
  }

  .site-nav__list {
    flex-direction: column;
    padding: var(--space-16);
    gap: var(--space-12);
  }

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

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

  .hero__visual {
    order: -1;
  }

  .section {
    padding-block: var(--space-32);
  }

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

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

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

  .back-to-top {
    bottom: 16px;
    right: 16px;
  }
}

/* >= 768px */

@media (min-width: 768px) {
  .technical-review__grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

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

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

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

  .image-placeholder {
    min-height: 360px;
  }

  .grid--contact {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
  }
}

/* >= 1024px */

@media (min-width: 1024px) {
  .hero {
    padding-block: var(--space-64);
  }

  .image-placeholder {
    min-height: 420px;
  }

  .section {
    padding-block: var(--space-64);
  }

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

  .contact__visual {
    max-width: 540px;
    margin-inline: auto;
  }
}

/* >= 1440px */

@media (min-width: 1440px) {
  .hero__inner {
    gap: var(--space-48);
  }
}


/* FAQ icon: Minexx symbol inside a soft blue circle */
.faq-item__icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--color-primary-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

/* Make sure label is icon + text in a row */
.faq-item__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-12);
}

/* + / – toggle styled in Minexx colours */
.faq-item__icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid var(--color-primary);
  position: relative;
  flex-shrink: 0;
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  background: var(--color-primary);
  border-radius: 999px;
}

.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 open, hide the vertical bar so it becomes a minus */
.faq-item__button[aria-expanded="true"] .faq-item__icon::after {
  opacity: 0;
}



/* Minexx symbol for FAQ */
.faq-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: var(--space-12);
}

.icon--faq {
  width: 22px;     /* good size for FAQ */
  height: 22px;
  fill: #2DA9E1;   /* Minexx blue */
}

/* label layout: icon + text */
.faq-item__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-12);
}

/* + / – toggle button */
.faq-item__toggle {
  width: 18px;
  height: 18px;
  position: relative;
  flex-shrink: 0;
}

.faq-item__toggle::before,
.faq-item__toggle::after {
  content: "";
  position: absolute;
  background: var(--color-primary);
  border-radius: 1px;
}

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

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

/* when open → minus */
.faq-item__button[aria-expanded="true"] .faq-item__toggle::after {
  opacity: 0;
}

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

.section--news {
  /* pas de padding horizontal ici : on garde le même style que .section */
}

.cards--news {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.card--news {
  background: #fff;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

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

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

.card__excerpt {
  margin: 12px 0 16px;
  font-size: 0.95rem;
}


/* CTA Buttons System */
.btn-primary {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background-color: #1AA7E1;
    border: none;
    text-decoration: none;
    transition: background 0.2s ease-in-out;
}

.btn-primary:hover {
    background-color: #118ac0;
}

.btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    color: #000;
    background-color: #fff;
    border: 2px solid #E3E8EF;
    text-decoration: none;
    transition: background 0.2s ease-in-out, border-color 0.2s;
}

.btn-secondary:hover {
    background-color: #f5f7fa;
    border-color: #cfd5dd;
}


/* ========================= */
/*     COOKIE CONSENT BAR    */
/* ========================= */

.cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 9999;
  background: rgba(7, 16, 26, 0.94);
  color: #f9fbff;
  padding: 24px 16px;
  display: none; /* shown via JS */
  backdrop-filter: blur(6px);
}

.cookie-banner__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.cookie-banner__description {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

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

.cookie-btn {
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  outline: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cookie-btn--primary {
  background-color: #0e2236;
  color: #ffffff;
}

.cookie-btn--primary:hover {
  background-color: #08141f;
}

.cookie-btn--secondary {
  background-color: #e9edf3;
  color: #07101a;
}

.cookie-btn--secondary:hover {
  background-color: #dde3ec;
}

/* Responsive */
@media (min-width: 768px) {
  .cookie-banner__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .cookie-banner__text {
    max-width: 60%;
  }

  .cookie-banner__actions {
    justify-content: flex-end;
  }
}

/* ========================= */
/*        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;
}

/* ========================= */
/*       ABOUT METRICS       */
/* ========================= */

.about-metrics {
  margin-top: var(--space-48);
  padding: var(--space-32);
  background-color: var(--color-neutral-25);
  border-radius: 24px;
}

.about-metrics__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-8);
}

.about-metrics__subtitle {
  font-size: 0.95rem;
  color: var(--color-neutral-500);
  margin-bottom: var(--space-24);
}

.about-metrics__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-24);
}

.about-metrics__item {
  background-color: #ffffff;
  border-radius: 20px;
  padding: var(--space-24);
  box-shadow: 0 8px 24px rgba(7, 16, 26, 0.06);
}

.about-metrics__value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: var(--space-8);
}

.about-metrics__label {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-neutral-700);
}

/* Responsive layout for smaller screens */
@media (max-width: 1024px) {
  .about-metrics__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .about-metrics {
    padding: var(--space-24);
  }

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

  .about-metrics__value {
    font-size: 1.75rem;
  }
}


/* ========================= */
/*    ABOUT METRICS (KPIs)   */
/* ========================= */

/* Remove grey background, padding, and rounded corners */
.about-metrics {
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin-top: 0 !important;
}

/* Align the KPI grid with the content above */
.about-metrics_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin: 40px 0;
}

/* Card styling refined to be consistent with Minexx cards */
.about-metrics_item {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 2px 4px rgba(7, 16, 26, 0.05);
    text-align: left;
}

/* KPI value */
.about-metrics_value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
}

/* KPI label */
.about-metrics_label {
    font-size: 1rem;
    line-height: 1.45;
    color: var(--color-text);
}


/* Ensure the KPIs always sit well below the section above */
.about-metrics {
    margin-top: 64px !important; /* adjust if needed */
    position: relative;
    z-index: 1;
}

/* Fix possible negative margin inheritance from previous blocks */
.section {
    position: relative;
    z-index: 2;
}

/* Make sure KPI cards never overlap visually */
.about-metrics_grid {
    gap: 40px !important;
}

/* Prevent any overlap due to transform or shadows */
.about-metrics_item {
    box-sizing: border-box;
}


/* Reduce vertical spacing above the KPI grid by 50% */
.about-metrics {
    margin-top: 32px !important; /* previously 64px */
}

/* Reduce spacing between KPI rows */
.about-metrics_grid {
    row-gap: 24px !important; /* previously ~48px depending on your setup */
    column-gap: 24px !important;
}