/* Bioteos — Design System
   Palette: deep biotech green + cream + algae glow
   Typo: Space Grotesk
*/
/* JetBrains Mono loaded asynchronously in HTML <head> */

@font-face {
  font-family: 'Space Grotesk';
  src: url('fonts/SpaceGrotesk-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('fonts/SpaceGrotesk-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('fonts/SpaceGrotesk-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('fonts/SpaceGrotesk-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('fonts/SpaceGrotesk-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Core palette */
  --ink: #0a1f14;          /* deep forest */
  --ink-2: #143024;
  --moss: #1a4d2e;
  --leaf: #2d7d4a;
  --algae: #84d49a;        /* signature glow */
  --algae-bright: #a8e6b8;
  --mist: #e8f5ec;
  --cream: #f6f4ee;
  --paper: #fbfaf6;
  --line: rgba(10, 31, 20, 0.12);
  --line-soft: rgba(10, 31, 20, 0.06);
  --muted: rgba(10, 31, 20, 0.6);
  --muted-2: rgba(10, 31, 20, 0.45);

  /* Type */
  --font-sans: 'Space Grotesk', -apple-system, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 22px;

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01', 'ss02';
}
a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--algae); color: var(--ink); }

/* Layout */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.full-bleed { width: 100%; }

/* Type scale */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--algae);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--algae);
}
h1, h2, h3, h4 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; }
.h-display {
  font-size: clamp(48px, 8vw, 132px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.92;
}
.h-1 { font-size: clamp(40px, 5.5vw, 88px); letter-spacing: -0.035em; }
.h-2 { font-size: clamp(32px, 4vw, 60px); letter-spacing: -0.03em; }
.h-3 { font-size: clamp(24px, 2.4vw, 36px); }
.h-4 { font-size: clamp(18px, 1.4vw, 22px); font-weight: 500; }

.lede { font-size: clamp(17px, 1.4vw, 22px); color: var(--muted); max-width: 60ch; line-height: 1.45; }
.small { font-size: 13px; }
.mono { font-family: var(--font-mono); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: all 200ms cubic-bezier(.2,.6,.2,1);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--moss); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-algae { background: var(--algae); color: var(--ink); }
.btn-algae:hover { background: var(--algae-bright); transform: translateY(-1px); }
.btn-ghost { padding: 10px 0; }
.btn-ghost:hover { color: var(--leaf); }
.btn .arrow { transition: transform 220ms cubic-bezier(.2,.6,.2,1); }
.btn:hover .arrow { transform: translateX(4px); }

/* Nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(251, 250, 246, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 250ms, background 250ms;
  will-change: background, border-color;
}
.nav.scrolled { border-bottom-color: var(--line-soft); }
.nav.dark {
  background: rgba(10, 31, 20, 0.55);
  color: var(--paper);
}
.nav.dark .nav-link { color: var(--paper); }
.nav.dark .lang-switch { color: var(--paper); border-color: rgba(255,255,255,0.18); }
/* Logo blanc sur fond sombre (hero) */
.nav.dark .nav-logo { filter: brightness(0) invert(1); }

.nav-brand {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0; /* logo ne rétrécit jamais */
}
.nav-logo {
  height: 36px !important;
  width: auto !important;
  flex-shrink: 0;
}
.nav-brand .mark {
  width: 22px; height: 22px;
  position: relative;
  display: inline-block;
}
.nav-brand .mark svg { width: 100%; height: 100%; }
.nav-links {
  display: flex;
  gap: clamp(12px, 2.2vw, 36px);
  list-style: none;
  min-width: 0;
  overflow: visible; /* doit rester visible pour que les dropdowns s'affichent */
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  opacity: 0.8;
  transition: opacity 180ms;
  white-space: nowrap;
}
.nav-link:hover, .nav-link[aria-current="page"] { opacity: 1; }
.nav-link[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  opacity: 0.4;
}
.nav-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  cursor: pointer;
}
.lang-switch button { font: inherit; padding: 2px 6px; border-radius: 999px; opacity: 0.5; }
.lang-switch button.active { opacity: 1; background: var(--ink); color: var(--paper); }
.nav.dark .lang-switch button.active { background: var(--paper); color: var(--ink); }

@media (max-width: 1280px) {
  .nav-links { display: none; }
}

/* ─── HAMBURGER BUTTON ─── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  z-index: 101;
}
.nav-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 300ms cubic-bezier(.4,0,.2,1), opacity 200ms, background 250ms;
  transform-origin: center;
}
.nav.dark .nav-burger span { background: var(--paper); }
.nav-burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ─── MOBILE DRAWER ─── */
.nav-drawer {
  position: fixed;
  top: 73px;
  left: 0; right: 0; bottom: 0;
  background: var(--paper);
  z-index: 99;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(.4,0,.2,1);
  pointer-events: none;
  border-top: 1px solid var(--line-soft);
}
.nav-drawer.open {
  transform: translateX(0);
  pointer-events: auto;
}
body.nav-open { overflow: hidden; }

.drawer-body {
  display: flex;
  flex-direction: column;
  padding-bottom: 48px;
}

.drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 24px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
  transition: background 150ms;
  text-decoration: none;
}
.drawer-link:hover,
.drawer-link:active { background: var(--mist); }
.drawer-link .chev {
  width: 12px; height: 12px;
  opacity: 0.45;
  transition: transform 250ms cubic-bezier(.4,0,.2,1);
  flex-shrink: 0;
}
.drawer-accordion.open > .drawer-toggle .chev { transform: rotate(180deg); opacity: 1; }

.drawer-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms cubic-bezier(.4,0,.2,1);
  background: var(--cream);
}
.drawer-accordion.open > .drawer-sub { max-height: 640px; }

.drawer-sub-link {
  display: block;
  padding: 12px 24px 12px 36px;
  font-size: 14px;
  color: var(--ink);
  opacity: 0.72;
  border-bottom: 1px solid var(--line-soft);
  transition: opacity 150ms, background 150ms;
}
.drawer-sub-link:hover { opacity: 1; background: rgba(10,31,20,0.04); }

.drawer-actions {
  padding: 24px 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.drawer-cta {
  width: 100%;
  justify-content: center;
  padding: 14px 24px;
  font-size: 15px;
}
.drawer-lang {
  justify-content: center;
}

@media (max-width: 1280px) {
  .nav-burger { display: flex; }
  .nav-actions { gap: 10px; }
}
@media (max-width: 520px) {
  /* Sur téléphone : cache lang + CTA dans la barre (ils sont dans le drawer) */
  .nav-actions .lang-switch { display: none; }
  .nav-actions .btn { display: none; }
}
@media (min-width: 1281px) {
  .nav-drawer { display: none !important; }
  .nav-burger { display: none !important; }
}

/* ─── DROPDOWN ─── */
.nav-item { position: relative; list-style: none; }
.nav-link--has-dropdown { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.nav-link--has-dropdown .chev {
  width: 10px; height: 10px;
  transition: transform 200ms;
  opacity: 0.6;
}
.nav-item.open .chev,
.nav-item:focus-within .chev { transform: rotate(180deg); opacity: 1; }

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 270px;
  background: var(--ink);
  border-radius: 14px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 180ms, transform 180ms, visibility 180ms;
  pointer-events: none;
  box-shadow: 0 24px 64px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.06);
  z-index: 200;
}
/* Invisible bridge above dropdown to keep hover alive over the gap */
.dropdown::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0; right: 0;
  height: 12px;
}
.nav-item:focus-within .dropdown,
.nav-item.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.nav-item.open .chev { transform: rotate(180deg); opacity: 1; }

.dropdown-section { padding: 10px 4px 4px; }
.dropdown-section + .dropdown-section {
  margin-top: 4px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.dropdown-label {
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  padding: 0 10px 8px;
}
.dropdown-link {
  display: block;
  padding: 9px 10px;
  font-size: 13.5px;
  font-weight: 400;
  color: rgba(255,255,255,0.82);
  border-radius: 8px;
  transition: background 150ms, color 150ms;
  line-height: 1.35;
}
.dropdown-link:hover {
  background: rgba(255,255,255,0.07);
  color: var(--algae);
}
.dropdown-link small {
  display: block;
  font-size: 11px;
  opacity: 0.45;
  margin-top: 1px;
}

/* Footer */
.footer {
  background: var(--ink);
  color: var(--mist);
  padding: 80px var(--gutter) 32px;
  margin-top: 0;
}
.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .h-3 { color: var(--paper); margin-top: 24px; max-width: 14ch; }
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; opacity: 0.75; transition: opacity 180ms; }
.footer-col a:hover { opacity: 1; color: var(--algae); }
.footer-bottom {
  max-width: var(--container);
  margin: 32px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  opacity: 0.5;
  font-family: var(--font-mono);
}
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Sections */
.section {
  padding: clamp(80px, 10vw, 160px) 0;
  content-visibility: auto;
  contain-intrinsic-size: 0 600px;
}
.section-dark { background: var(--ink); color: var(--paper); }
.section-cream { background: var(--cream); }
.section-mist { background: var(--mist); }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 64px;
}
/* Dans le contexte section-head, les titres sont plus petits pour rester sur 1-2 lignes */
.section-head .h-1 { font-size: clamp(28px, 3.2vw, 50px); line-height: 1.05; }
.section-head .h-2 { font-size: clamp(24px, 2.8vw, 42px); line-height: 1.08; }
@media (max-width: 1024px) {
  .section-head { grid-template-columns: 1fr; }
}

/* Cards */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 300ms cubic-bezier(.2,.6,.2,1), border-color 200ms;
}
.card:hover { transform: translateY(-2px); border-color: var(--leaf); }

/* Drop zones (image-slot styling overlay) */
image-slot {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
}

/* Algae glow utilities */
.glow-algae {
  box-shadow: 0 0 80px rgba(132, 212, 154, 0.4), 0 0 160px rgba(132, 212, 154, 0.15);
}
.text-algae { color: var(--algae); }
.text-mist { color: var(--mist); }
.text-muted { color: var(--muted); }

/* Scroll-reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms cubic-bezier(.2,.6,.2,1), transform 800ms cubic-bezier(.2,.6,.2,1);
}
[data-reveal].in {
  opacity: 1;
  transform: translateY(0);
}

/* Marquee */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  background: var(--paper);
}
.marquee-track {
  display: flex;
  gap: 80px;
  animation: marquee 40s linear infinite;
  width: max-content;
}
.marquee-item {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 80px;
}
.marquee-item::after {
  content: '';
  width: 6px; height: 6px;
  background: var(--algae);
  border-radius: 50%;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* Hero stage */
.hero-stage {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--gutter) clamp(40px, 6vw, 80px);
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,31,20,0.5) 0%, rgba(10,31,20,0.2) 35%, rgba(10,31,20,0.85) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: var(--container); margin: 0 auto; width: 100%; }

/* Stat tile */
.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat .num {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat .label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 24ch;
}
.section-dark .stat .label { color: rgba(255,255,255,0.55); }

/* Pill / badge */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-dark .pill { border-color: rgba(255,255,255,0.18); color: rgba(255,255,255,0.7); }

/* Live dot */
.live-dot {
  width: 8px; height: 8px;
  background: var(--algae);
  border-radius: 50%;
  position: relative;
}
.live-dot::after {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 50%;
  background: var(--algae);
  opacity: 0.4;
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.7); opacity: 0.6; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* QAI gauge */
.qai-card {
  background: linear-gradient(180deg, rgba(132,212,154,0.06), transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(20px);
}
.section-dark .qai-card,
.hero-stage .qai-card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
  color: var(--paper);
}

/* Forms */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field textarea,
.field select {
  font: inherit;
  font-size: 16px;
  padding: 14px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  outline: none;
  transition: border-color 200ms;
  border-radius: 0;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-bottom-color: var(--ink);
}
.field textarea { resize: vertical; min-height: 120px; }

/* Misc */
hr.rule { border: none; border-top: 1px solid var(--line); }
.section-dark hr.rule { border-color: rgba(255,255,255,0.12); }

/* Accent SVG / index numbering */
.idx {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ═══════════════════════════════════════════════
   UI/UX Pro Max — Améliorations accessibilité & UX
   ═══════════════════════════════════════════════ */

/* Skip link — keyboard navigation */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: top 150ms;
}
.skip-link:focus { top: 0; }

/* Focus visible — anneaux de focus accessibles */
:focus-visible {
  outline: 2px solid var(--algae);
  outline-offset: 3px;
  border-radius: 3px;
}
a:focus-visible,
button:focus-visible { border-radius: var(--radius-sm); }
.btn:focus-visible { border-radius: 999px; }

/* Cursor pointer sur tout ce qui est cliquable */
a, button, [role="button"], .cap, .faq-item summary,
.lang-switch button, .filter-chip { cursor: pointer; }

/* Touch targets minimum 44×44px */
.btn { min-height: 44px; }
.nav-link { min-height: 44px; display: inline-flex; align-items: center; }
.lang-switch { min-height: 36px; }

/* Reduced motion — respecter les préférences système */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  html { scroll-behavior: auto; }
}

/* Amélioration contraste texte muted (ratio ≥ 4.5:1) */
.lede { color: #4a6355; }
.section-dark .lede { color: rgba(255,255,255,0.82); }
.eyebrow { color: #4a6355; }
.section-dark .eyebrow { color: var(--algae); }

/* ── Texte sur fonds sombres (var(--ink)) ─────────────────────────────────
   Sections qui utilisent background:var(--ink) sans la classe .section-dark
   → forcer tous les textes en clair                                        */
.hero .pill {
  color: rgba(255,255,255,0.75);
  border-color: rgba(255,255,255,0.22);
}
.hero .eyebrow { color: rgba(255,255,255,0.55); }

/* Toute section avec fond sombre déclaré inline hérite aussi des règles */
[style*="background: var(--ink)"] .lede,
[style*="background:var(--ink)"] .lede { color: rgba(255,255,255,0.75); }
[style*="background: var(--ink)"] .eyebrow,
[style*="background:var(--ink)"] .eyebrow { color: var(--algae); }
[style*="background: var(--ink)"] h2,
[style*="background: var(--ink)"] h3,
[style*="background: var(--ink)"] h4,
[style*="background:var(--ink)"] h2,
[style*="background:var(--ink)"] h3 { color: var(--paper); }
[style*="background: var(--ink)"] p:not([style]),
[style*="background:var(--ink)"] p:not([style]) { color: rgba(255,255,255,0.72); }

/* CTA final */
.cta-final {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(80px, 10vw, 160px) var(--gutter);
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(132,212,154,0.18), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(132,212,154,0.08), transparent 50%);
}
.cta-final-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  align-items: end;
}
.cta-final h2 {
  font-size: clamp(40px, 5.5vw, 88px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
  max-width: 18ch;
}
.cta-final h2 em { font-style: normal; color: var(--algae); }
.cta-final .lede { color: rgba(255,255,255,0.75); }
.cta-final .eyebrow { color: rgba(255,255,255,0.55); }
@media (max-width: 880px) {
  .cta-final-inner { grid-template-columns: 1fr; }
}

/* Hover state unifié sur les liens de navigation du footer */
.footer-col a {
  transition: color 180ms ease, opacity 180ms ease;
  text-underline-offset: 3px;
}
.footer-col a:hover { opacity: 1; color: var(--algae); text-decoration: underline; }

/* Séparation visuelle des sections d'action */
.btn-algae:focus-visible { box-shadow: 0 0 0 3px rgba(132,212,154,0.5); }
.btn-primary:focus-visible { box-shadow: 0 0 0 3px rgba(10,31,20,0.3); }

/* Amélioration lisibilité des formulaires */
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-bottom-color: var(--leaf);
  outline: none;
}
.field label { color: #4a6355; }

/* Caps list — visibilité du lien */
.cap {
  transition: background 200ms, border-color 200ms;
}
.cap:hover { background: var(--mist); border-color: var(--leaf); }
.cap:focus-visible { outline: 2px solid var(--algae); outline-offset: 2px; border-radius: var(--radius); }

/* Logo grid — texte visible */
.logo-grid .cell {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #4a6355;
  opacity: 1;
}

/* FAQ — amélioration interactive */
.faq-item summary:hover .faq-q { color: var(--leaf); }
.faq-item[open] summary .faq-icon { color: var(--algae); }

/* ── TESTIMONIAL CARD (client highlight) ──────────────────────── */
.temoignage-card {
  display: grid;
  grid-template-columns: 1fr 340px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(10,31,20,0.15);
}
.temoignage-card-body {
  background: var(--ink);
  padding: 48px 52px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.temoignage-card-body::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 500px 400px at -10% 110%, rgba(132,212,154,0.12), transparent 65%);
  pointer-events: none;
}
.temoignage-card-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
  position: relative; z-index: 1;
}
.temoignage-card-logo .logo-mark {
  width: 32px; height: 32px;
  border-radius: 6px;
  background: #009a3d;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.temoignage-card-logo .logo-mark span {
  color: white; font-weight: 800; font-size: 14px; letter-spacing: -0.02em;
}
.temoignage-card-logo .logo-name {
  font-size: 13px; font-weight: 600;
  color: rgba(251,250,246,0.75); letter-spacing: -0.01em; line-height: 1.3;
}
.temoignage-card-logo .logo-name small {
  display: block; font-size: 11px; font-weight: 400;
  color: rgba(251,250,246,0.4); letter-spacing: 0;
}
.temoignage-card-quote {
  font-size: clamp(15px, 1.5vw, 19px);
  font-weight: 300; letter-spacing: -0.015em; line-height: 1.6;
  color: rgba(251,250,246,0.88);
  position: relative; z-index: 1; flex: 1;
}
.temoignage-card-quote::before {
  content: '\201C';
  font-size: 2em; line-height: 0; vertical-align: -0.35em;
  color: var(--algae); margin-right: 4px;
}
.temoignage-card-author {
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid rgba(132,212,154,0.18);
  position: relative; z-index: 1;
}
.temoignage-card-author strong {
  display: block; font-size: 15px; font-weight: 600;
  color: var(--paper); margin-bottom: 4px;
}
.temoignage-card-author span {
  font-size: 12px; color: rgba(251,250,246,0.45);
  font-family: var(--font-mono); letter-spacing: 0.04em;
}
.temoignage-card-photo {
  position: relative; overflow: hidden;
}
.temoignage-card-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  filter: grayscale(12%); display: block;
}
.temoignage-card-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,31,20,0.3) 0%, transparent 40%);
  pointer-events: none;
}
@media (max-width: 820px) {
  .temoignage-card { grid-template-columns: 1fr; }
  .temoignage-card-photo { min-height: 280px; }
  .temoignage-card-photo::after { background: linear-gradient(0deg, rgba(10,31,20,0.5) 0%, transparent 50%); }
  .temoignage-card-body { padding: 36px 28px; }
}

/* Responsive : texte hero lisible sur mobile */
@media (max-width: 640px) {
  .hero-title { font-size: clamp(44px, 14vw, 80px); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-product { display: none; }
}
