/* ==========================================================================
   GloSynTech — prototype design system
   Cream editorial base, large serif headlines, deep green + amber accents
   ========================================================================== */

:root {
  --cream: #f6f3ee;
  --cream-2: #efeae2;
  --ink: #171614;
  --ink-soft: #4c4a45;
  --ink-mute: #8a867e;
  --line: #dcd6cb;
  --green: #1d5c4a;
  --green-deep: #0e3d30;
  --amber: #d99a2b;
  --terracotta: #c25e3a;
  --white: #fffdf9;
  --radius: 14px;
  --radius-lg: 22px;
  --font-display: "Syne", "Space Grotesk", sans-serif;
  --font-sans: "Inter", -apple-system, sans-serif;
  --font-mono: "Space Grotesk", monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

h1, h2, h3 { font-weight: 400; }

/* ===== Reveal-on-scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s var(--ease-out) var(--reveal-delay, 0s),
    transform 0.9s var(--ease-out) var(--reveal-delay, 0s),
    filter 1s var(--ease-out) var(--reveal-delay, 0s),
    letter-spacing 1.1s var(--ease-out) var(--reveal-delay, 0s);
}
.reveal.in-view { opacity: 1; transform: none; filter: none; }

/* Variantes directionnelles */
.reveal[data-reveal="left"] { transform: translateX(-52px); }
.reveal[data-reveal="right"] { transform: translateX(52px); }
.reveal[data-reveal="zoom"] {
  transform: translateY(24px) scale(0.92);
  filter: blur(7px);
}
/* Déclaré après les variantes pour l'emporter à spécificité égale */
.reveal.in-view[data-reveal] { transform: none; filter: none; }

/* Titres découpés : chaque mot monte en cascade */
.split.reveal { transform: none; opacity: 1; }
.split .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.split .wi {
  display: inline-block;
  transform: translateY(120%);
  transition: transform 0.85s var(--ease-out);
  transition-delay: var(--wd, 0s);
}
.split--fine .wi {
  transform: translateY(0);
  opacity: 0;
  filter: blur(5px);
  transition: opacity 0.7s var(--ease-out), filter 0.7s var(--ease-out);
  transition-delay: var(--wd, 0s);
}
.split.in-view .wi,
.in-view .split .wi { transform: none; opacity: 1; filter: none; }

/* Barre de progression de lecture */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 200;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--amber), var(--terracotta));
  transform: scaleX(0);
  transform-origin: left;
}

/* Éléments en parallaxe (pilotés par JS) */
[data-parallax] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .split .wi, .split--fine .wi {
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
}

/* ===== Buttons & links ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.35s var(--ease-out), background 0.3s, color 0.3s, box-shadow 0.35s;
  white-space: nowrap;
}
.btn-dark {
  background: var(--ink);
  color: var(--cream);
}
.btn-dark:hover {
  background: var(--green-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(14, 61, 48, 0.25);
}
.btn-lg { padding: 15px 32px; font-size: 15px; }
button.btn { border: none; cursor: pointer; font-family: inherit; }

.link-underline {
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}
.link-underline:hover { color: var(--green); border-color: var(--green); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.link-arrow::after {
  content: "→";
  transition: transform 0.3s var(--ease-out);
}
.link-arrow:hover { color: var(--green); }
.link-arrow:hover::after { transform: translateX(5px); }
.link-arrow--light { color: var(--cream); }
.link-arrow--light:hover { color: var(--amber); }
/* ===== Brand ===== */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  flex-shrink: 0;
}
.brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 9px);
  grid-template-rows: repeat(2, 9px);
  gap: 2px;
  flex-shrink: 0;
  transition: transform 0.5s var(--ease-out);
}
.brand:hover .brand-mark { transform: rotate(90deg); }
.brand-mark span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50% 50% 50% 0;
}
.brand-mark span:nth-child(1) { background: var(--green); }
.brand-mark span:nth-child(2) { background: var(--amber); border-radius: 50% 50% 0 50%; }
.brand-mark span:nth-child(3) { background: var(--terracotta); border-radius: 50% 0 50% 50%; }
.brand-mark span:nth-child(4) { background: var(--ink); border-radius: 0 50% 50% 50%; }
.brand-mark--light span:nth-child(4) { background: var(--cream); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
/* Flou sur ::before — pas sur le header lui-même, sinon position:fixed
   des descendants (menu mobile) se calcule dans la barre 72px et le panneau
   n'a plus de hauteur visible. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(246, 243, 238, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: none;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.main-nav { display: flex; gap: 4px; align-self: stretch; align-items: stretch; }
/* static : les panneaux se positionnent par rapport au header (sticky) */
.nav-item { position: static; display: flex; }
.nav-item > a {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  color: var(--ink-soft);
  position: relative;
  padding: 0 12px;
  transition: color 0.25s;
}
.nav-item > a::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px;
  bottom: 22px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.nav-item:hover > a { color: var(--ink); }
.nav-item:hover > a::after { transform: scaleX(1); transform-origin: left; }

/* Dropdown panels (mega menu, centré sous le header) */
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 90px rgba(23, 22, 20, 0.2);
  opacity: 0;
  transform: translate(-50%, 16px) scale(0.985);
  transform-origin: top center;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
  z-index: 110;
  overflow: hidden;
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
  pointer-events: auto;
}

.dropdown--mega {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 26px;
  width: min(960px, calc(100vw - 48px));
  padding: 26px;
}
.dropdown-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-content: start;
  min-width: 0;
}
.dropdown-link {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 18px 40px 18px 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s;
}
.dropdown-link::after {
  content: "→";
  position: absolute;
  right: 16px;
  top: 20px;
  font-size: 15px;
  color: var(--green);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.dropdown-link:hover {
  background: var(--cream);
  border-color: var(--line);
}
.dropdown-link:hover::after { opacity: 1; transform: translateX(0); }
.dropdown-link strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.dropdown-link span {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.45;
}
.dropdown-footer {
  grid-column: 1 / -1;
  display: block;
  margin-top: 6px;
  padding: 14px 18px 2px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--green);
  transition: color 0.25s;
}
.dropdown-footer:hover { color: var(--green-deep); }

/* Featured image that crossfades per hovered link */
.dropdown-media {
  position: relative;
  min-height: 300px;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--cream-2);
}
.dropdown-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 0.5s var(--ease-out), transform 1.2s var(--ease-out);
}
.dropdown-media img.is-active {
  opacity: 1;
  transform: scale(1);
}
.dropdown-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 15, 13, 0.18) 0%, transparent 30%, transparent 52%, rgba(16, 15, 13, 0.72) 100%);
  pointer-events: none;
}
.dropdown-media-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(16, 15, 13, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 5px 12px;
}
.dropdown-media-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--white);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}
.nav-cta { display: none; }

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: var(--white);
}
.lang-btn {
  border: 0;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.lang-btn.is-active { background: var(--ink); color: var(--cream); }

.nav-toggle { display: none; }

/* ===== Hero ===== */
.hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 90px 32px 40px;
  text-align: center;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 5.2vw, 66px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--green) 15%, var(--amber) 60%, var(--terracotta) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-line {
  display: block;
  overflow: hidden;
}
.hero-line > span,
.hero-line > em {
  display: inline-block;
  transform: translateY(110%);
  animation: hero-rise 1.1s var(--ease-out) forwards;
}
.hero-line:nth-child(2) > em { animation-delay: 0.12s; }

@keyframes hero-rise {
  to { transform: translateY(0); }
}

.hero-sub {
  max-width: 520px;
  margin: 26px auto 0;
  font-size: 17px;
  color: var(--ink-soft);
  opacity: 0;
  animation: hero-fade 1s var(--ease-out) 0.45s forwards;
}
.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 34px;
  opacity: 0;
  animation: hero-fade 1s var(--ease-out) 0.6s forwards;
}
@keyframes hero-fade {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.hero-media {
  display: grid;
  grid-template-columns: 1.9fr 1fr;
  gap: 24px;
  margin-top: 72px;
  text-align: left;
}
.hero-img {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}
.hero-img:hover img { transform: scale(1.035); }
.hero-img--wide { aspect-ratio: 16 / 10; }
.hero-img--tall { aspect-ratio: auto; }

.hero-chip {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(23, 22, 20, 0.14);
  animation: chip-float 5s ease-in-out infinite;
}
.hero-chip--alt { animation-delay: 2.5s; }
@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.chip-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.chip-dot--live {
  background: var(--terracotta);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(194, 94, 58, 0.5); }
  60% { box-shadow: 0 0 0 7px rgba(194, 94, 58, 0); }
}

/* ===== Marquee ===== */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 80px;
  padding: 20px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 42px;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}
.marquee-track i {
  font-style: normal;
  font-size: 8px;
  color: var(--amber);
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ===== Values ===== */
.values {
  max-width: 1280px;
  margin: 0 auto;
  padding: 110px 32px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4.2vw, 50px);
  letter-spacing: -0.025em;
  line-height: 1.08;
}
.values .section-title { text-align: center; margin-bottom: 72px; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
}
.value-card h3 {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 26px 0 12px;
}
.value-card p {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.value-icon {
  width: 76px;
  height: 76px;
  color: var(--ink);
  transition: color 0.4s, transform 0.6s var(--ease-out);
}
.value-icon svg { width: 100%; height: 100%; }
.value-card:hover .value-icon {
  color: var(--green);
  transform: rotate(6deg) scale(1.05);
}

/* Les icônes se dessinent trait par trait à l'apparition */
.value-icon svg * {
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
}
.value-card.in-view .value-icon svg * {
  animation: icon-draw 1.7s var(--ease-out) forwards;
}
.value-card.in-view .value-icon svg *:nth-child(2) { animation-delay: 0.18s; }
.value-card.in-view .value-icon svg *:nth-child(3) { animation-delay: 0.36s; }
.value-card.in-view .value-icon svg *:nth-child(4) { animation-delay: 0.54s; }
.value-card.in-view .value-icon svg *:nth-child(5) { animation-delay: 0.72s; }
@keyframes icon-draw {
  to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .value-icon svg * {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    animation: none !important;
  }
}

/* ===== Product band ===== */
.product-band {
  position: relative;
  overflow: hidden;
  padding: 110px 32px 0;
  min-height: 620px;
}
.product-band-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 61, 48, 0.25), rgba(14, 61, 48, 0.55));
}
.product-band-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: end;
}
.product-band-copy {
  color: var(--cream);
  padding-bottom: 90px;
}
.product-band-copy h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 4.6vw, 58px);
  letter-spacing: -0.02em;
  margin: 18px 0 14px;
}
.product-band-copy p { max-width: 380px; font-size: 16px; opacity: 0.92; }

/* Dashboard mock */
.dashboard {
  background: #101614;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 26px;
  color: #e8e6df;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.35);
}
.dashboard-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.dash-title { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.dash-logo {
  width: 10px; height: 10px;
  border-radius: 50% 50% 50% 0;
  background: var(--amber);
}
.dash-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #b8b4a9;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 4px 12px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.dash-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dash-label {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #9d998e;
}
.dash-value {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: #fffdf9;
}
.dash-trend {
  font-size: 12px;
  font-weight: 600;
}
.dash-trend.up { color: #6fc7a2; }
.dash-chart {
  grid-column: 1 / -1;
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 16px;
}
.dash-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.dash-legend { display: flex; gap: 16px; }
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #b8b4a9;
}
.legend-swatch {
  display: inline-block;
  width: 16px; height: 0;
  border-top: 2px solid #6fc7a2;
  border-radius: 2px;
}
.legend-swatch--prev { border-top-style: dashed; border-top-color: #6a675e; }

.line-chart {
  width: 100%;
  height: 190px;
  margin-top: 14px;
  overflow: visible;
}
.chart-grid line {
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 1;
}
.chart-axis text {
  font-family: var(--font-mono);
  font-size: 10px;
  fill: #7e7a70;
}
.chart-axis--y text { text-anchor: end; }
.chart-axis--x text { text-anchor: middle; }
.chart-axis--x text:first-child { text-anchor: start; }
.chart-axis--x text:last-child { text-anchor: end; }

.chart-line {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chart-line--now {
  stroke: #6fc7a2;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
}
.chart-line--prev {
  stroke: #6a675e;
  stroke-dasharray: 4 6;
  opacity: 0;
  transition: opacity 0.8s var(--ease-out) 0.9s;
}
.chart-area {
  fill: url(#areaFill);
  opacity: 0;
  transition: opacity 1s var(--ease-out) 0.7s;
}
.chart-dots circle {
  fill: #101614;
  stroke: #6fc7a2;
  stroke-width: 2;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}
.chart-dots .dot-hl {
  fill: #6fc7a2;
  animation: pulse 2s ease-in-out infinite;
}

.in-view .chart-line--now { animation: chart-draw 1.8s var(--ease-out) 0.3s forwards; }
.in-view .chart-line--prev { opacity: 0.8; }
.in-view .chart-area { opacity: 1; }
.in-view .chart-dots circle { opacity: 1; }
.in-view .chart-dots circle:nth-child(1) { transition-delay: 0.45s; }
.in-view .chart-dots circle:nth-child(2) { transition-delay: 0.6s; }
.in-view .chart-dots circle:nth-child(3) { transition-delay: 0.75s; }
.in-view .chart-dots circle:nth-child(4) { transition-delay: 0.9s; }
.in-view .chart-dots circle:nth-child(5) { transition-delay: 1.05s; }
.in-view .chart-dots circle:nth-child(6) { transition-delay: 1.2s; }
.in-view .chart-dots circle:nth-child(7) { transition-delay: 1.35s; }
.in-view .chart-dots circle:nth-child(8) { transition-delay: 1.5s; }

@keyframes chart-draw {
  to { stroke-dashoffset: 0; }
}

.chart-tooltip {
  position: absolute;
  top: 58px;
  right: 22%;
  background: #1c2420;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s var(--ease-out) 1.7s, transform 0.5s var(--ease-out) 1.7s;
  pointer-events: none;
}
.in-view .chart-tooltip { opacity: 1; transform: none; }
.chart-tooltip::after {
  content: "";
  position: absolute;
  bottom: -5px; left: 50%;
  width: 8px; height: 8px;
  background: #1c2420;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  transform: translateX(-50%) rotate(45deg);
}
.chart-tooltip strong {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #b8b4a9;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.chart-tooltip span {
  font-family: var(--font-mono);
  font-size: 15px;
  color: #fffdf9;
}
.chart-tooltip em {
  font-style: normal;
  font-size: 11px;
  color: #6fc7a2;
  margin-left: 4px;
}

/* ===== Industries carousel ===== */
.industries {
  max-width: 1280px;
  margin: 0 auto;
  padding: 110px 32px 90px;
}
.industries-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 44px;
}
.industries-head .section-title { max-width: 560px; }

.carousel-nav { display: flex; gap: 10px; }
.carousel-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.3s, color 0.3s, transform 0.3s;
}
.carousel-btn svg { width: 20px; height: 20px; }
.carousel-btn:hover { background: var(--ink); color: var(--cream); transform: translateY(-2px); }
.carousel-btn:disabled { opacity: 0.35; pointer-events: none; }

.carousel {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 6px;
}
.carousel::-webkit-scrollbar { display: none; }

.industry-card,
.product-card {
  position: relative;
  flex: 0 0 min(320px, 78vw);
  aspect-ratio: 3 / 4.2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  scroll-snap-align: start;
  cursor: pointer;
}
.product-card { aspect-ratio: 3 / 2; }
/* Entrée inclinée : les cartes se redressent en arrivant */
.industry-card.reveal,
.product-card.reveal {
  transform: translateY(56px) rotate(2.8deg);
  transform-origin: bottom left;
  transition-duration: 1.1s;
}
.industry-card.reveal:nth-child(even),
.product-card.reveal:nth-child(even) {
  transform: translateY(56px) rotate(-2.8deg);
  transform-origin: bottom right;
}
.industry-card.reveal.in-view,
.product-card.reveal.in-view { transform: none; }
.industry-card img,
.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.industry-card:hover img,
.product-card:hover img { transform: scale(1.06); }
.industry-card::after,
.product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 15, 13, 0.32) 0%, transparent 38%, transparent 55%, rgba(16, 15, 13, 0.72) 100%);
}
.industry-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  color: var(--white);
}
.industry-overlay h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.industry-overlay p {
  margin-top: auto;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.industry-card:hover .industry-overlay p,
.product-card:hover .industry-overlay p,
.product-card:focus-within .industry-overlay p { opacity: 1; transform: none; }

.product-overlay .product-name {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 10px;
}
.product-cta {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--amber);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.product-card:hover .product-cta,
.product-card:focus-within .product-cta { opacity: 1; transform: none; }

.carousel-sub {
  max-width: 560px;
  margin: 0 0 38px;
  color: var(--ink-soft);
  font-size: 16px;
}

.carousel-progress {
  margin-top: 34px;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.carousel-progress span {
  display: block;
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, var(--terracotta), var(--green));
  transition: width 0.35s var(--ease-out);
}

/* ===== Solutions ===== */
.solutions {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 32px 120px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.solutions-visual { position: sticky; top: calc(var(--header-h) + 40px); }

.qc-mock {
  background: var(--cream-2);
  border-radius: var(--radius-lg);
  padding: 40px 34px;
  position: relative;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 22px 22px;
}
.qc-msg {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 13.5px;
  line-height: 1.55;
  box-shadow: 0 10px 30px rgba(23, 22, 20, 0.08);
  position: relative;
  max-width: 88%;
}
.qc-msg--user { margin-left: auto; }
.qc-msg--ai { margin-top: 26px; }
.qc-avatar {
  position: absolute;
  top: -12px; left: -12px;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #b78657, #7d5636);
}
.qc-avatar--ai {
  background: var(--green);
  border-radius: 8px;
  background-image: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.55) 2px, transparent 2.5px),
                    radial-gradient(circle at 70% 30%, rgba(255,255,255,0.55) 2px, transparent 2.5px),
                    radial-gradient(circle at 30% 70%, rgba(255,255,255,0.55) 2px, transparent 2.5px),
                    radial-gradient(circle at 70% 70%, rgba(255,255,255,0.55) 2px, transparent 2.5px);
}
.qc-file {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 500;
}
.qc-file small { color: var(--ink-mute); font-weight: 400; }
.qc-file-icon {
  width: 26px; height: 32px;
  border-radius: 4px;
  background: var(--cream-2);
  border: 1px solid var(--line);
  position: relative;
  flex-shrink: 0;
}
.qc-file-icon::after {
  content: "";
  position: absolute;
  inset: 8px 5px;
  background: repeating-linear-gradient(180deg, var(--line) 0 1.5px, transparent 1.5px 5px);
}
.qc-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--terracotta);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  padding: 10px 18px;
  margin: 22px 0 0 20%;
  box-shadow: 0 10px 26px rgba(194, 94, 58, 0.35);
  animation: chip-float 4s ease-in-out infinite;
}
.qc-badge-mark {
  width: 12px; height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Accordion */
.sol-item { border-top: 1px solid var(--ink); }
.sol-item:last-child { border-bottom: 1px solid var(--ink); }
.sol-head {
  width: 100%;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
}
.sol-head h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.015em;
  transition: color 0.3s;
}
.sol-head::after {
  content: "+";
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 300;
  transition: transform 0.4s var(--ease-out);
}
.sol-item.is-open .sol-head::after { transform: rotate(45deg); }
.sol-head:hover h3 { color: var(--green); }

.sol-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.55s var(--ease-out);
}
.sol-item.is-open .sol-body { max-height: 420px; }
.sol-body > p {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.sol-body ul { list-style: none; margin-bottom: 20px; }
.sol-body li {
  position: relative;
  padding: 6px 0 6px 30px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.sol-body li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 16px; height: 16px;
  border: 1.4px solid var(--green);
  border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.2 8.9 L6.5 11.2 L11.8 5.3' fill='none' stroke='%231d5c4a' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}
.sol-body .link-arrow { margin-bottom: 26px; }

/* ===== Features & outcomes (checklist) ===== */
.features {
  max-width: 1280px;
  margin: 0 auto;
  padding: 110px 32px;
}
.features .section-title { text-align: center; margin-bottom: 56px; }
.feature-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 72px;
  max-width: 1040px;
  margin: 0 auto;
}
.feature-grid li {
  position: relative;
  padding: 14px 0 14px 38px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.feature-grid li::before {
  content: "";
  position: absolute;
  left: 0; top: 16px;
  width: 18px; height: 18px;
  border: 1.4px solid var(--green);
  border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.2 8.9 L6.5 11.2 L11.8 5.3' fill='none' stroke='%231d5c4a' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
}

/* ===== FAQ ===== */
.faq {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 32px 120px;
}
.faq .section-title { text-align: center; margin-bottom: 56px; }
.faq .sol-body p { font-size: 15px; color: var(--ink-soft); }

/* ===== Stats band ===== */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--cream-2);
}
.stats-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 5vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--green-deep);
}
.stat-num small {
  font-size: 0.42em;
  font-weight: 600;
  margin-left: 4px;
  color: var(--green);
}
.stat-label {
  display: block;
  margin: 14px auto 0;
  max-width: 260px;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ===== How it works ===== */
.how {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 32px 110px;
}
.how .section-title { text-align: center; }
.how-sub {
  text-align: center;
  max-width: 520px;
  margin: 18px auto 0;
  color: var(--ink-soft);
  font-size: 16px;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}
.how-step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 30px 38px;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.how-step:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(23, 22, 20, 0.1);
}
.how-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--terracotta);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 13px;
  margin-bottom: 22px;
}
/* Le badge numéroté rebondit après l'arrivée de la carte */
.how-step.reveal .how-num {
  opacity: 0;
  transform: scale(0.4);
}
.how-step.reveal.in-view .how-num {
  animation: num-pop 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards;
}
@keyframes num-pop {
  to { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .how-step.reveal .how-num { opacity: 1; transform: none; animation: none !important; }
}
.how-step h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 10px;
}
.how-step p { font-size: 14.5px; color: var(--ink-soft); }

/* ===== Solution visual panels ===== */
.sol-panel { display: none; }
.sol-panel.is-active {
  display: block;
  animation: panel-in 0.6s var(--ease-out);
}
@keyframes panel-in {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* SynTrack : carte animée */
.track-map {
  background: var(--green-deep);
  border-radius: var(--radius-lg);
  padding: 28px;
  color: var(--cream);
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 24px 24px;
}
.track-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
  font-size: 14px;
}
.track-eta {
  font-family: var(--font-mono);
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 4px 12px;
  color: #a8d8c2;
}
.track-svg { width: 100%; height: auto; }
.track-route-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 2;
}
.track-route {
  fill: none;
  stroke: var(--amber);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 7 9;
  animation: route-march 1.2s linear infinite;
}
@keyframes route-march {
  to { stroke-dashoffset: -16; }
}
.track-stop {
  fill: var(--green-deep);
  stroke: var(--cream);
  stroke-width: 2;
}
.track-stop--end {
  fill: var(--amber);
  stroke: var(--amber);
  animation: pulse 2s ease-in-out infinite;
}
.track-mover {
  fill: var(--cream);
  stroke: var(--green-deep);
  stroke-width: 2;
}
.track-label {
  font-family: var(--font-mono);
  font-size: 12px;
  fill: rgba(255, 255, 255, 0.75);
  text-anchor: middle;
}
.track-label--end { fill: var(--amber); }
.track-log {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 11px 15px;
  font-size: 13px;
}

/* SynField : mobile */
.sol-panel[data-panel="field"] {
  background: var(--cream-2);
  border-radius: var(--radius-lg);
  padding: 44px;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 22px 22px;
}
.phone {
  max-width: 300px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 18px 16px 22px;
  box-shadow: 0 30px 60px rgba(23, 22, 20, 0.16);
}
.phone-notch {
  width: 84px; height: 7px;
  background: var(--cream-2);
  border-radius: 999px;
  margin: 0 auto 16px;
}
.phone-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px 14px;
  border-bottom: 1px solid var(--line);
}
.phone-head strong { font-family: var(--font-display); font-size: 15px; font-weight: 700; }
.phone-offline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--terracotta);
  background: rgba(194, 94, 58, 0.1);
  border-radius: 999px;
  padding: 4px 10px;
}
.phone-offline i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--terracotta);
  animation: pulse 1.8s ease-in-out infinite;
}
.phone-list { padding: 6px 0; }
.phone-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--cream-2);
  opacity: 0;
  transform: translateX(14px);
}
.sol-panel.is-active .phone-row { animation: row-in 0.55s var(--ease-out) forwards; }
.sol-panel.is-active .phone-row:nth-child(2) { animation-delay: 0.15s; }
.sol-panel.is-active .phone-row:nth-child(3) { animation-delay: 0.3s; }
@keyframes row-in {
  to { opacity: 1; transform: none; }
}
.phone-row strong { display: block; font-size: 13px; }
.phone-row small { font-size: 11.5px; color: var(--ink-mute); }
.phone-row-icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
}
.phone-row-icon--ok {
  background: rgba(29, 92, 74, 0.12);
  position: relative;
}
.phone-row-icon--ok::after {
  content: "";
  position: absolute;
  left: 9px; top: 6px;
  width: 6px; height: 10px;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(42deg);
}
.phone-row-icon--wait {
  border: 2px dashed var(--amber);
  animation: spin 4s linear infinite;
}
.phone-sync { padding-top: 12px; text-align: center; }
.phone-sync small { font-size: 11px; color: var(--ink-mute); }
.phone-sync-bar {
  height: 4px;
  border-radius: 999px;
  background: var(--cream-2);
  overflow: hidden;
  margin-bottom: 8px;
}
.phone-sync-bar span {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), #6fc7a2);
  animation: sync-slide 2.2s ease-in-out infinite;
}
@keyframes sync-slide {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(280%); }
}

/* SynBoard : mini dashboard */
.board-mini {
  background: #101614;
  border-radius: var(--radius-lg);
  padding: 28px;
  color: #e8e6df;
}
.board-mini-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  font-size: 14px;
}
.board-mini-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.board-mini-kpis > div {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 14px;
}
.board-kpi-num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 20px;
  color: #fffdf9;
}
.board-kpi-num span { font-size: 13px; color: #9d998e; }
.board-mini-kpis small {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #9d998e;
}
.board-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 110px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: 0;
  padding: 14px 14px 0;
}
.board-bars span {
  flex: 1;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, #6fc7a2, #1d5c4a);
  height: var(--h);
  transform: scaleY(0);
  transform-origin: bottom;
}
.board-bars span:last-child { background: linear-gradient(180deg, #f0c169, #d99a2b); }
.sol-panel.is-active .board-bars span { animation: bar-grow 0.9s var(--ease-out) forwards; }
.sol-panel.is-active .board-bars span:nth-child(2) { animation-delay: 0.08s; }
.sol-panel.is-active .board-bars span:nth-child(3) { animation-delay: 0.16s; }
.sol-panel.is-active .board-bars span:nth-child(4) { animation-delay: 0.24s; }
.sol-panel.is-active .board-bars span:nth-child(5) { animation-delay: 0.32s; }
.sol-panel.is-active .board-bars span:nth-child(6) { animation-delay: 0.4s; }
@keyframes bar-grow {
  to { transform: scaleY(1); }
}
.product-showcase-frame.in-view .phone-row {
  animation: row-in 0.55s var(--ease-out) forwards;
}
.product-showcase-frame.in-view .phone-row:nth-child(2) { animation-delay: 0.15s; }
.product-showcase-frame.in-view .phone-row:nth-child(3) { animation-delay: 0.3s; }
.product-showcase-frame.in-view .board-bars span {
  animation: bar-grow 0.9s var(--ease-out) forwards;
}
.product-showcase-frame.in-view .board-bars span:nth-child(2) { animation-delay: 0.08s; }
.product-showcase-frame.in-view .board-bars span:nth-child(3) { animation-delay: 0.16s; }
.product-showcase-frame.in-view .board-bars span:nth-child(4) { animation-delay: 0.24s; }
.product-showcase-frame.in-view .board-bars span:nth-child(5) { animation-delay: 0.32s; }
.product-showcase-frame.in-view .board-bars span:nth-child(6) { animation-delay: 0.4s; }
@media (prefers-reduced-motion: reduce) {
  .product-showcase-frame .phone-row {
    opacity: 1;
    transform: none;
    animation: none !important;
  }
  .product-showcase-frame .board-bars span {
    transform: scaleY(1);
    animation: none !important;
  }
}
.board-bars-labels {
  display: flex;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 8px 14px 10px;
}
.board-bars-labels span {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #7e7a70;
}

/* ===== Testimonial ===== */
.testimonial {
  border-top: 1px solid var(--line);
  background: var(--green-deep);
  color: var(--cream);
}
.testimonial-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 110px 32px;
  text-align: center;
}
.testimonial-quote-mark {
  display: block;
  font-family: var(--font-display);
  font-size: 90px;
  font-weight: 700;
  line-height: 0.4;
  color: var(--amber);
  margin-bottom: 26px;
}
.testimonial blockquote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(21px, 2.8vw, 30px);
  line-height: 1.42;
  letter-spacing: -0.01em;
}
.testimonial-author {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 42px;
  text-align: left;
}
.testimonial-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--terracotta));
  color: var(--green-deep);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
}
.testimonial-author strong { display: block; font-size: 15px; }
.testimonial-author small { font-size: 13px; color: rgba(246, 243, 238, 0.65); }

/* ===== CTA ===== */
.cta {
  text-align: center;
  padding: 130px 32px 150px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 50% at 50% 110%, rgba(29, 92, 74, 0.14), transparent),
    var(--cream);
}
.cta-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.8vw, 60px);
  letter-spacing: -0.03em;
  line-height: 1.06;
  text-transform: uppercase;
}
/* Le titre final se « met au point » : flou + espacement qui se resserre */
.cta-title.reveal {
  filter: blur(12px);
  letter-spacing: 0.06em;
  transform: translateY(20px);
}
.cta-title.reveal.in-view {
  filter: none;
  letter-spacing: -0.03em;
  transform: none;
}
.cta-title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--green) 15%, var(--amber) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cta p {
  margin: 22px auto 36px;
  max-width: 460px;
  color: var(--ink-soft);
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--cream-2);
  padding: 70px 32px 34px;
}
.footer-top {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
}
.footer-cols {
  display: flex;
  gap: 80px;
  flex-wrap: wrap;
}
.footer-cols h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-mute);
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-cols a {
  display: block;
  font-size: 14px;
  color: var(--ink-soft);
  padding: 5px 0;
  transition: color 0.25s;
}
.footer-cols a:hover { color: var(--green); }

.footer-legal {
  max-width: 1280px;
  margin: 34px auto 0;
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}
.footer-legal a {
  font-size: 13px;
  color: var(--ink-mute);
  transition: color 0.25s;
}
.footer-legal a:hover { color: var(--green); }

.footer-bottom {
  max-width: 1280px;
  margin: 56px auto 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-mute);
}

/* ===== Responsive =====
   Paliers : 1120px (desktop compact), 920px (tablette portrait / hamburger),
   560px (mobile). */

@media (max-width: 1120px) {
  .header-inner { gap: 20px; padding: 0 24px; }
  .nav-item > a { padding: 0 9px; }
  .nav-item > a::after { left: 9px; right: 9px; }

  .values-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 36px; }
  .how-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

  .product-band-inner { grid-template-columns: 1fr; }
  .product-band-copy { padding-bottom: 0; }

  .solutions { grid-template-columns: 1fr; gap: 44px; padding-bottom: 90px; }
  .solutions-visual {
    position: static;
    max-width: 620px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 920px) {
  .header-inner { gap: 12px; padding: 0 16px; }
  .header-actions { margin-left: auto; gap: 8px; }

  .main-nav { display: none; }
  .header-actions .btn { display: none; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
    position: relative;
    z-index: 102;
    width: 44px;
    height: 44px;
    align-items: center;
    background: none;
    border: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-toggle span {
    width: 22px; height: 1.6px;
    background: var(--ink);
    transition: transform 0.3s var(--ease-out);
  }
  body.nav-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  body.nav-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

  body.nav-open { overflow: hidden; }
  body.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0; bottom: 0;
    background: var(--cream);
    padding: 20px 24px calc(24px + env(safe-area-inset-bottom));
    gap: 2px;
    z-index: 101;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: mobile-nav-in 0.35s var(--ease-out);
  }
  .nav-item { display: block; }
  .nav-item > a {
    display: block;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--ink);
    padding: 16px 36px 16px 4px;
    border-bottom: 1px solid var(--line);
  }
  .nav-item > a::after { display: none; }
  .nav-item:has(.dropdown) > a::before {
    content: "+";
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 500;
    line-height: 1;
    color: var(--ink-mute);
  }
  .nav-item.is-expanded > a::before { content: "−"; }

  .dropdown {
    display: none;
    position: static;
    left: auto;
    top: auto;
    width: 100%;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    overflow: visible;
    padding: 0 0 8px;
    transition: none;
  }
  .nav-item:hover .dropdown,
  .nav-item:focus-within .dropdown,
  .nav-item.is-expanded .dropdown {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-item.is-expanded .dropdown { display: block; }
  .dropdown--mega {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
  }
  .dropdown-links {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 4px 0 8px 12px;
  }
  .dropdown-media { display: none; }
  .dropdown-link {
    padding: 12px 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .dropdown-link::after { display: none; }
  .dropdown-link:hover::after { display: none; transform: none; }
  .dropdown-link strong { font-size: 17px; }
  .dropdown-link span { font-size: 14px; }
  .dropdown-footer {
    margin-top: 4px;
    padding: 12px 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .nav-cta {
    display: inline-flex;
    justify-content: center;
    margin-top: 28px;
    padding: 16px 24px;
    font-size: 16px;
  }

  .hero { padding-top: 48px; }
  .hero-media { grid-template-columns: 1fr; margin-top: 52px; }
  .hero-img--tall { aspect-ratio: 4 / 3; }
  .hero-img--tall img { object-position: 50% 22%; }

  .marquee { margin-top: 56px; }

  .values { padding: 80px 24px; }
  .values-grid { grid-template-columns: 1fr; gap: 48px; }
  .values .section-title { margin-bottom: 52px; }

  .features { padding: 80px 24px; }
  .features .section-title { margin-bottom: 44px; }
  .feature-grid { grid-template-columns: 1fr; gap: 0; max-width: 640px; }

  .faq { padding: 20px 24px 80px; }

  .stats-inner { grid-template-columns: 1fr; gap: 40px; padding: 56px 24px; }

  .product-band { padding: 80px 24px 0; }

  .dashboard-grid { grid-template-columns: 1fr 1fr; }
  .dash-card:nth-child(3) { grid-column: 1 / -1; }
  .chart-tooltip { display: none; }

  .industries { padding: 80px 24px 70px; }
  .industries-head { flex-direction: column; align-items: flex-start; }

  .how { padding: 0 24px 80px; }
  .how-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 44px; }

  .solutions { padding: 20px 24px 80px; }
  .sol-panel[data-panel="field"] { padding: 28px; }

  .testimonial-inner { padding: 80px 24px; }
  .cta { padding: 90px 24px 110px; }

  .site-footer { padding: 56px 24px 28px; }
  .footer-cols { gap: 44px; }
}

@keyframes mobile-nav-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 560px) {
  .header-inner { padding: 0 16px; gap: 12px; }
  .brand { font-size: 18px; }
  .lang-btn { padding: 5px 10px; }

  .hero { padding: 36px 16px 32px; }
  .hero-sub { font-size: 15.5px; }
  .hero-cta {
    flex-direction: column;
    gap: 18px;
    margin-top: 28px;
  }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-media { gap: 14px; margin-top: 40px; }
  .hero-img { border-radius: var(--radius); }
  .hero-chip { left: 12px; bottom: 12px; padding: 8px 13px; font-size: 12px; }

  .marquee-track span { font-size: 17px; }
  .marquee-track { gap: 28px; }

  .values { padding: 64px 16px; }
  .stats-inner { padding: 48px 16px; }
  .stat-label { font-size: 13.5px; }

  .product-band { padding: 64px 16px 0; min-height: 0; }
  .dashboard { padding: 16px; }
  .dashboard-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .dash-card { padding: 12px; }
  .dash-value { font-size: 22px; }
  .line-chart { height: 140px; }
  .dash-legend { gap: 10px; }

  .industries { padding: 64px 16px 56px; }
  .industry-card,
  .product-card { flex: 0 0 82vw; }

  .how { padding: 0 16px 64px; }
  .how-step { padding: 26px 22px 30px; }

  .solutions { padding: 12px 16px 64px; }
  .sol-head h3 { font-size: 20px; }
  .track-map { padding: 18px; }
  .sol-panel[data-panel="field"] { padding: 18px; }
  .board-mini { padding: 18px; }
  .board-mini-kpis { gap: 8px; }
  .board-kpi-num { font-size: 16px; }
  .qc-mock { padding: 28px 18px; }
  .qc-msg { max-width: 100%; }

  .testimonial-inner { padding: 64px 16px; }
  .cta { padding: 72px 16px 90px; }
  .cta .btn { width: 100%; max-width: 340px; justify-content: center; }

  .site-footer { padding: 48px 16px 24px; }
  .footer-top { flex-direction: column; gap: 40px; }
  .footer-cols { gap: 32px 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ===== Subpage utilities (added for Symfony pages) ===== */
.sol-tag {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}
.values-grid--4 { grid-template-columns: repeat(2, 1fr); }
.how-grid--4 { grid-template-columns: repeat(4, 1fr); }
.how-step .link-arrow { margin-top: 18px; }

.product-showcase {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 32px 110px;
}
.product-showcase .section-title { text-align: center; margin-bottom: 48px; }
.product-showcase-frame {
  display: flex;
  justify-content: center;
  max-width: 920px;
  margin: 0 auto;
}
.product-showcase-frame .dashboard,
.product-showcase-frame .board-mini,
.product-showcase-frame .qc-mock,
.product-showcase-frame .track-map { width: 100%; }
.product-band-mock { min-width: 0; }
.product-band-mock .track-map {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.35);
}

.section-title--light { color: var(--cream); margin-bottom: 22px; }
.testimonial-inner .about-africa-text {
  max-width: 640px;
  margin: 0 auto;
  font-size: 16.5px;
  line-height: 1.7;
  color: rgba(246, 243, 238, 0.85);
}

/* ===== Contact ===== */
.contact {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 32px 130px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 64px;
  align-items: start;
}
.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
}
.contact-form label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 22px;
}
.contact-form label > span { display: block; margin-bottom: 8px; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  margin-top: 8px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(29, 92, 74, 0.25);
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form .btn { margin-top: 8px; }
.contact-note {
  display: block;
  margin-top: 18px;
  font-size: 13px;
  color: var(--ink-mute);
}
.contact-success {
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 14.5px;
  color: var(--green-deep);
  margin-bottom: 24px;
}
.contact-channels h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.02em;
  margin-bottom: 26px;
}
.channel-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  margin-bottom: 18px;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.channel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(23, 22, 20, 0.1);
}
.channel-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}
.channel-card strong span { color: var(--green); }
.channel-card small {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  display: block;
}
.channel-card--static:hover { transform: none; box-shadow: none; }

/* ===== Case studies ===== */
.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}
.case-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.case-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(23, 22, 20, 0.1);
}
.case-card > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.case-card-body {
  padding: 26px 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.case-card-body h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.case-card-body p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: auto;
}
.case-card-body .link-arrow { align-self: flex-start; }
.case-tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
}

/* ===== Legal pages ===== */
.legal-sections {
  max-width: 860px;
  margin: 64px auto 0;
}
.legal-section {
  border-top: 1px solid var(--line);
  padding: 34px 0 8px;
}
.legal-section:last-child { border-bottom: 1px solid var(--line); }
.legal-section h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.legal-section p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 14px;
}

/* ===== Blog post ===== */
.blog-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-mute);
  margin-top: 22px;
}

@media (max-width: 920px) {
  .case-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1120px) {
  .how-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .product-showcase { padding-bottom: 80px; }
}
@media (max-width: 560px) {
  .contact { padding: 24px 16px 90px; }
  .contact-grid { gap: 32px; }
  .how-grid--4 { grid-template-columns: 1fr; }
  .values-grid--4 { grid-template-columns: 1fr; }
}

/* ===== Enrichment utilities ===== */
.section-band {
  background: var(--cream-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Hero media on subpages (single wide image + chip) */
.hero-media--single {
  max-width: 880px;
  margin: 64px auto 0;
  text-align: left;
}

/* Checkpoints strip (industry journey) */
.checkpoints {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 56px;
}
.checkpoint {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 22px 28px;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.checkpoint:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(23, 22, 20, 0.1);
}
.checkpoint::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -22px;
  width: 22px;
  height: 1px;
  background: var(--line);
}
.checkpoint:last-child::after { display: none; }
.checkpoint-num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green-deep);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
}
.checkpoint h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Blog pull-quote callout */
.blog-callout {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 44px;
  background: var(--green-deep);
  color: var(--cream);
  border-radius: var(--radius-lg);
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
}

/* Filter chips (blog) */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0;
}
.filter-chip {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.filter-chip:hover { border-color: var(--green); color: var(--green); }
.filter-chip.is-active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* Product chips (produits mobilisés) */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}
.chip-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-deep);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}
.chip-link::after { content: "→"; transition: transform 0.3s var(--ease-out); }
.chip-link:hover { border-color: var(--green); background: var(--white); color: var(--green); }
.chip-link:hover::after { transform: translateX(4px); }

/* Tags inside step cards (roles, scenarios) */
.how-step .case-tag {
  display: inline-block;
  margin-bottom: 18px;
}

@media (max-width: 920px) {
  .checkpoints { grid-template-columns: 1fr 1fr; }
  .checkpoint::after { display: none; }
}
@media (max-width: 560px) {
  .checkpoints { grid-template-columns: 1fr; }
  .blog-callout { padding: 30px 24px; }
}

/* ===== Lead modal ===== */
body.lead-open { overflow: hidden; }

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out), visibility 0.3s;
}
.lead-modal.is-open { visibility: visible; opacity: 1; }

.lead-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 22, 20, 0.55);
  backdrop-filter: blur(6px);
}

.lead-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(23, 22, 20, 0.22);
  padding: clamp(28px, 4vw, 44px);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.35s var(--ease-out);
}
.lead-modal.is-open .lead-modal__dialog { transform: none; }

.lead-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.lead-modal__close:hover { background: var(--cream-2); color: var(--ink); }
.lead-modal__close svg { width: 18px; height: 18px; }

.lead-progress {
  height: 3px;
  border-radius: 999px;
  background: var(--line);
  margin-bottom: 26px;
  overflow: hidden;
}

/* Honeypot : invisible pour les humains, rempli par les bots */
.lead-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}
.lead-progress span {
  display: block;
  height: 100%;
  width: 33%;
  background: linear-gradient(100deg, var(--green), var(--amber));
  border-radius: 999px;
  transition: width 0.4s var(--ease-out);
}

.lead-eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}
.lead-h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 10px;
}
.lead-sub {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.lead-step.is-active { animation: lead-step-in 0.4s var(--ease-out); }
@keyframes lead-step-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.lead-fieldset { border: none; margin: 0; padding: 0; }
.lead-legend {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.lead-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.lead-pill { position: relative; }
.lead-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.lead-pill span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease-out);
}
.lead-pill span:hover { border-color: var(--green); }
.lead-pill input:checked + span { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.lead-pill input:focus-visible + span { box-shadow: 0 0 0 2px var(--green); }

.lead-field { margin-bottom: 18px; }
.lead-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.lead-field input,
.lead-field select,
.lead-field textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.lead-field textarea { resize: vertical; min-height: 90px; }
.lead-field input:focus,
.lead-field select:focus,
.lead-field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(29, 92, 74, 0.25);
}
.lead-field input.lead-invalid,
.lead-field select.lead-invalid,
.lead-field textarea.lead-invalid {
  border-color: var(--terracotta);
}

.lead-error {
  margin: 4px 0 14px;
  font-size: 13px;
  color: var(--terracotta);
}

.lead-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
}
.lead-actions:has([data-lead-submit]:not([hidden])) { justify-content: flex-end; }
.lead-btn {
  min-width: 120px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.lead-btn--primary {
  background: var(--ink);
  color: var(--cream);
  border: 1px solid var(--ink);
}
.lead-btn--primary:hover { background: var(--green-deep); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(14, 61, 48, 0.25); }
.lead-btn--ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--line);
}
.lead-btn--ghost:hover { color: var(--ink); border-color: var(--ink); }

.lead-success { text-align: center; padding: 16px 0 8px; }
.lead-success__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--green-deep);
  color: var(--cream);
  font-size: 26px;
}
.lead-success .btn { margin-top: 22px; }

@media (prefers-reduced-motion: reduce) {
  .lead-modal,
  .lead-modal__dialog,
  .lead-progress span,
  .lead-step.is-active { transition: none; animation: none; }
}

@media (max-width: 560px) {
  .lead-modal { padding: 10px; }
  .lead-modal__dialog { max-height: calc(100vh - 20px); }
  .lead-actions { flex-direction: column-reverse; }
  .lead-btn { width: 100%; }
}

/* ===== Article (blog post) ===== */
.article {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 32px 110px;
}

.article-hero {
  max-width: 860px;
  margin: 0 auto;
  padding-top: 56px;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 34px;
  transition: color 0.25s;
}
.article-back:hover { color: var(--green); }

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-mute);
}
.article-meta .case-tag { margin: 0; }

.article-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4.5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 22px;
  text-wrap: balance;
}

.article-standfirst {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.article-byline {
  font-size: 14px;
  color: var(--ink-mute);
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.article-cover {
  max-width: 1000px;
  margin: 48px auto 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(23, 22, 20, 0.14);
}
.article-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.article-body {
  max-width: 720px;
  margin: 68px auto 0;
}

.article-body p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin: 0 0 26px;
}

.article-body h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 3vw, 30px);
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--ink);
  margin: 56px 0 18px;
}

/* Lettrine sur le premier paragraphe */
.article-body p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.4em;
  line-height: 0.82;
  float: left;
  margin: 8px 12px 0 0;
  color: var(--green);
}

.article-pullquote {
  margin: 56px 0;
  padding: 8px 0 8px 30px;
  border-left: 4px solid var(--green);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.article-takeaways {
  max-width: 720px;
  margin: 64px auto;
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
}
.article-takeaways h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 22px;
}
.article-takeaways ul { list-style: none; }
.article-takeaways li {
  position: relative;
  padding-left: 32px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.article-takeaways li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 700;
}
.article-takeaways li:last-child { margin-bottom: 0; }

.article-back-bottom {
  max-width: 720px;
  margin: 0 auto;
  padding-top: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .article-body p:first-of-type::first-letter { float: none; font-size: inherit; }
}

@media (max-width: 560px) {
  .article { padding-left: 16px; padding-right: 16px; }
  .article-hero { padding-top: 32px; }
  .article-title { font-size: clamp(26px, 8vw, 34px); }
  .article-standfirst { font-size: 17px; }
  .article-cover { border-radius: var(--radius); }
  .article-body { margin-top: 48px; }
  .article-body p { font-size: 16px; }
  .article-pullquote { padding-left: 22px; }
  .article-takeaways { padding: 28px 24px; }
}

/* ===== Blog card meta + pagination ===== */
.blog-card-meta {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-mute);
  margin: 10px 0 16px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 44px;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-soft);
  background: var(--white);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.pagination a:hover { border-color: var(--green); color: var(--green); }
.pagination .is-current { background: var(--ink); color: var(--cream); border-color: var(--ink); }
