/* ============================================================
   Timbtrack — design tokens (from the app's src/utils/colors.js)
   ============================================================ */
@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/Montserrat.ttf?v=52a37115") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* brand */
  --navy-900: #0c1424;
  --navy-800: #1b253a;
  --navy-700: #30394e;
  --green-500: #00cc85;
  --green-400: #48c867;
  --teal-500: #339999;
  --blue-500: #5b7fef;
  --blue-400: #7b98f3;
  --amber-500: #ff9f0a;
  --orange-500: #f4770f;
  --red-500: #c94a5c;

  /* neutrals */
  --white: #ffffff;
  --grey-050: #f5f5f5;
  --grey-100: #ebebf5;
  --grey-300: #d1d5db;
  --grey-500: #9e9e9e;
  --ink: #12192a;

  /* semantics */
  --bg: var(--white);
  --bg-alt: var(--grey-050);
  --bg-dark: var(--navy-800);
  --bg-darker: var(--navy-900);
  --text: var(--ink);
  --text-dim: #5b6472;
  --text-on-dark: var(--white);
  --text-on-dark-dim: #b7bec9;
  --border: var(--grey-300);
  --accent: var(--blue-500);
  --accent-light: var(--blue-400);
  --accent-rgb: 91, 127, 239;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 10px rgba(12, 20, 36, 0.06);
  --shadow-md: 0 12px 32px rgba(12, 20, 36, 0.1);
  --shadow-lg: 0 28px 56px rgba(9, 14, 23, 0.22);
  --container: 1180px;
  --header-h: 80px;

  --font: "Montserrat", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Per-profile page theming: swaps the generic --accent used by buttons,
   eyebrows and icon badges to match the profile's brand color. */
body.theme-forestier { --accent: var(--green-500); --accent-light: #59deb0; --accent-rgb: 0, 204, 133; }
body.theme-scieur { --accent: var(--amber-500); --accent-light: #ffb02e; --accent-rgb: 255, 159, 10; }
body.theme-ville { --accent: var(--blue-500); --accent-light: var(--blue-400); --accent-rgb: 91, 127, 239; }
body.theme-reglobois { --accent: var(--orange-500); --accent-light: #ff9c4d; --accent-rgb: 244, 119, 15; }
body.theme-tropical { --accent: var(--teal-500); --accent-light: #4dbdbd; --accent-rgb: 51, 153, 153; }

/* ============================================================
   Reset & base
   ============================================================ */
* { box-sizing: border-box; }
/* overflow-x on body alone isn't enough on mobile browsers: any element wider
   than the screen widens the layout viewport, the fixed header stretches with it
   and the hamburger ends up off-screen. clip keeps the viewport at device width. */
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
/* Long e-mails / URLs inside text must wrap instead of widening the page on phones */
p a, li a { overflow-wrap: anywhere; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; }
section { position: relative; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { line-height: 1.6; color: var(--text-dim); margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

/* ============================================================
   Scroll reveal (subtle, one-time fade + rise on entering viewport)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

.segments-grid .reveal:nth-child(2),
.features-grid .reveal:nth-child(2),
.testimonials-grid .reveal:nth-child(2),
.timeline .reveal:nth-child(2),
.obligations-grid .reveal:nth-child(2),
.profile-picker .reveal:nth-child(2),
.rdue-segments .reveal:nth-child(2) { transition-delay: .08s; }
.segments-grid .reveal:nth-child(3),
.features-grid .reveal:nth-child(3),
.testimonials-grid .reveal:nth-child(3),
.timeline .reveal:nth-child(3),
.obligations-grid .reveal:nth-child(3),
.profile-picker .reveal:nth-child(3),
.rdue-segments .reveal:nth-child(3) { transition-delay: .16s; }
.features-grid .reveal:nth-child(4),
.testimonials-grid .reveal:nth-child(4),
.timeline .reveal:nth-child(4),
.obligations-grid .reveal:nth-child(4) { transition-delay: .24s; }
.features-grid .reveal:nth-child(5) { transition-delay: .3s; }
.features-grid .reveal:nth-child(6) { transition-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .annotation { animation: none; opacity: 1; }
  .annotation-ping { animation: none; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--white); box-shadow: 0 8px 20px rgba(var(--accent-rgb), .35); }
.btn-primary:hover { background: var(--accent-light); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.35); color: var(--text-on-dark); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-outline-dark { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline-dark:hover { border-color: var(--navy-800); background: var(--grey-050); }
.btn-outline-accent { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn-outline-accent:hover { background: var(--accent); color: var(--white); }
.btn-amber { background: var(--amber-500); color: var(--white); box-shadow: 0 8px 20px rgba(255,159,10,.35); }
.btn-amber:hover { background: #ffb02e; }
.btn-green { background: var(--green-500); color: var(--white); box-shadow: 0 8px 20px rgba(0,204,133,.35); }
.btn-green:hover { background: #33d99b; }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: .85rem; }
.btn[disabled] { opacity: .55; cursor: default; pointer-events: none; }
.btn[disabled]:hover { transform: none; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(12,20,36,.06);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 80px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 46px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-size: .88rem;
  font-weight: 600;
  flex-shrink: 0;
}
.nav-links a {
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--text-on-dark-dim);
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.nav-links a:hover { color: var(--navy-800); }
.nav-links a.active {
  background: var(--bg-alt);
  color: var(--navy-800);
}
.site-header.scrolled .nav-links { background: var(--white); border: 1px solid var(--border); }
.site-header.scrolled .nav-links a { color: var(--text-dim); }
.site-header.scrolled .nav-links a:hover { color: var(--navy-800); }

/* Solutions dropdown (groups Forestiers/Scieurs/Collectivités to keep the nav short) */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 14px 9px 16px;
  border-radius: 999px;
  border: none;
  background: none;
  font: inherit;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-on-dark-dim);
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.nav-dropdown-trigger::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s ease;
}
.nav-dropdown-trigger:hover { color: var(--navy-800); }
.nav-dropdown.is-open .nav-dropdown-trigger { background: var(--bg-alt); color: var(--navy-800); }
.nav-dropdown.is-open .nav-dropdown-trigger::after { transform: rotate(225deg) translateY(2px); }
.site-header.scrolled .nav-dropdown-trigger { color: var(--text-dim); }
.site-header.scrolled .nav-dropdown-trigger:hover { color: var(--navy-800); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  min-width: 190px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-dropdown.is-open .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-dropdown-menu a {
  padding: 9px 14px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-dim);
}
.nav-dropdown-menu a:hover { background: var(--bg-alt); color: var(--navy-800); }

.header-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }

.header-cta {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  color: var(--white);
  box-shadow: 0 8px 22px rgba(var(--accent-rgb), .38);
}
.header-cta svg { transition: transform .15s ease; }
.header-cta:hover svg { transform: translateX(3px); }

.lang-switch-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  cursor: pointer;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--text-on-dark-dim);
  transition: color .2s ease, background .2s ease;
}
.lang-switch-trigger:hover { color: var(--white); }
.nav-dropdown.is-open .lang-switch-trigger { background: var(--white); color: var(--navy-900); }
.site-header.scrolled .lang-switch-trigger { background: var(--bg-alt); color: var(--text-dim); }
.site-header.scrolled .lang-switch-trigger:hover { color: var(--navy-800); }
.site-header.scrolled .nav-dropdown.is-open .lang-switch-trigger { background: var(--navy-800); color: var(--white); }

.lang-switch-menu { left: auto; right: 0; min-width: 170px; transform: translate(0, 6px); }
.nav-dropdown.is-open .lang-switch-menu { transform: translate(0, 0); }
.lang-switch-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-dim);
}
.lang-switch-menu button:hover { background: var(--bg-alt); color: var(--navy-800); }
.lang-switch-menu button.is-active { color: var(--blue-500); }

.header-cta-mobile { display: none; }

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: background .2s ease, transform .2s ease, opacity .2s ease;
}
.site-header.scrolled .nav-toggle span { background: var(--navy-800); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  color: var(--text-on-dark);
  padding: calc(var(--header-h) + 88px) 0 120px;
  min-height: 680px;
  overflow: hidden;
}
/* Homepage hero only: fill the viewport */
body.home .hero { min-height: 100vh; display: flex; align-items: center; }
.hero-bg {
  position: absolute;
  top: -12%;
  left: 0;
  right: 0;
  height: 124%;
  background:
    linear-gradient(180deg, rgba(9,14,23,.7) 0, rgba(9,14,23,.15) 200px, transparent 360px),
    linear-gradient(100deg, rgba(9,14,23,.94) 0%, rgba(9,14,23,.8) 32%, rgba(9,14,23,.4) 58%, rgba(9,14,23,.08) 78%),
    var(--hero-image, url("../assets/img/hero-forest.jpg?v=18a31a12")) var(--hero-pos, center 32%) / cover no-repeat;
  z-index: 0;
  will-change: transform;
}
.hero .container { position: relative; z-index: 2; width: 100%; }
.hero-text { max-width: 620px; }
.hero h1 { color: var(--white); }
.hero .lead { color: var(--text-on-dark-dim); font-size: 1.12rem; max-width: 46ch; }
.hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

/* Climate switcher — temperate / tropical variant toggle, sits in the hero */
.climate-switch {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 999px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(9,14,23,.25);
  backdrop-filter: blur(6px);
}
.climate-switch a {
  padding: 10px 20px;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 700;
  color: var(--white);
  transition: background .2s ease, color .2s ease;
}
.climate-switch a:hover { background: rgba(255,255,255,.16); }
.climate-switch a.active { background: var(--white); color: var(--ink); }
/* Climate toggle — light-background variant, used inside tarifs.html panels */
.climate-toggle {
  display: flex;
  width: fit-content;
  gap: 4px;
  padding: 4px;
  margin: 0 auto 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.climate-toggle button {
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.climate-toggle button[data-climate="temperate"].active { background: var(--green-500); color: var(--white); }
.climate-toggle button[data-climate="tropical"].active { background: var(--teal-500); color: var(--white); }
@media (max-width: 480px) {
  .climate-toggle { max-width: 100%; }
  .climate-toggle button { padding: 8px 10px; font-size: .8rem; white-space: normal; }
}
.climate-panel { display: none; }
.climate-panel.active { display: block; }
.pricing-custom {
  max-width: 620px;
  margin: 0 auto;
  padding: 40px 32px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
}
.pricing-custom p { margin-inline: auto; margin-bottom: 24px; }
.btn-teal { background: var(--teal-500); color: var(--white); box-shadow: 0 8px 20px rgba(51,153,153,.35); }
.btn-teal:hover { background: #4dbdbd; }
.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 46px;
  flex-wrap: wrap;
}
.hero-stats div strong { display: block; font-size: 1.6rem; color: var(--white); }
.hero-stats div span { font-size: .82rem; color: var(--text-on-dark-dim); }

/* Direct profile redirection CTAs in the hero */
.hero-profiles { margin-top: 32px; }
.hero-profiles-label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-on-dark-dim);
  margin-bottom: 14px;
}
.hero-rdue-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: .86rem;
  font-weight: 600;
  color: var(--text-on-dark-dim);
  border-bottom: 1px solid transparent;
}
.hero-rdue-link:hover { color: var(--white); border-color: currentColor; }
.hero-rdue-link svg { transition: transform .15s ease; }
.hero-rdue-link:hover svg { transform: translateX(3px); }

.hero-annotations {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none; /* empty space still lets clicks reach the CTA buttons below */
}
.annotation {
  position: absolute;
  display: flex;
  align-items: center;
  transform: translate(-100%, -50%);
  pointer-events: auto; /* the badges themselves are selectable/hoverable */
  opacity: 0;
  animation: annotation-in .7s cubic-bezier(.16,1,.3,1) forwards;
  animation-delay: var(--anno-delay, .5s);
}
.annotation:nth-of-type(1) { --anno-delay: .5s; }
.annotation:nth-of-type(2) { --anno-delay: .8s; }
.annotation:nth-of-type(3) { --anno-delay: 1.1s; }

.annotation-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 190px;
  background: rgba(9,14,23,.9);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
  cursor: default;
  user-select: text;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.annotation-card:hover {
  transform: translateY(-3px);
  background: rgba(9,14,23,1);
  border-color: rgba(255,255,255,.3);
}
.annotation-card svg { flex-shrink: 0; margin-top: 2px; }
.annotation-card strong { display: block; font-size: .82rem; color: var(--white); }
.annotation-card span { font-size: .74rem; line-height: 1.35; color: var(--text-on-dark-dim); }
.annotation-line { width: 46px; height: 1px; background: rgba(255,255,255,.45); flex-shrink: 0; }
.annotation-dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--blue-500);
  flex-shrink: 0;
}
.annotation-ping {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--blue-500);
  animation: dot-ping 2.4s cubic-bezier(0,0,.2,1) infinite;
  animation-delay: var(--anno-delay, .5s);
}

@keyframes annotation-in {
  from { opacity: 0; transform: translate(-100%, -50%) translateY(12px); }
  to { opacity: 1; transform: translate(-100%, -50%) translateY(0); }
}
@keyframes dot-ping {
  0% { transform: scale(1); opacity: .7; }
  75%, 100% { transform: scale(2.4); opacity: 0; }
}

.hero-art {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.12);
  padding: 26px;
  min-height: 340px;
}
.hero-art .glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(220px 220px at 30% 20%, rgba(0,204,133,.35), transparent 70%);
  border-radius: inherit;
}
.hero-art-card {
  position: relative;
  background: rgba(12,20,36,.6);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-art-card svg { flex-shrink: 0; }
.hero-art-card strong { display: block; font-size: .92rem; color: var(--white); }
.hero-art-card span { font-size: .8rem; color: var(--text-on-dark-dim); }

/* ============================================================
   Sections generic
   ============================================================ */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head.left { margin: 0 0 52px; text-align: left; }

/* ============================================================
   Segments (Forestier / Scieur / Ville)
   ============================================================ */
.segments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.segment-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.segment-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.segment-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.segment-card.forestier .segment-icon { background: rgba(0,204,133,.12); color: var(--green-500); }
.segment-card.scieur .segment-icon { background: rgba(255,159,10,.14); color: var(--amber-500); }
.segment-card.ville .segment-icon { background: rgba(91,127,239,.14); color: var(--blue-500); }
.profile-card.forestier .segment-icon { background: var(--green-500); color: var(--white); }
.profile-card.tropical .segment-icon { background: var(--teal-500); color: var(--white); }
.profile-card.scieur .segment-icon { background: var(--amber-500); color: var(--white); }
.profile-card.ville .segment-icon { background: var(--blue-500); color: var(--white); }
.profile-card.reglobois .segment-icon { background: var(--orange-500); color: var(--white); }
.segment-card h3 { margin-bottom: 10px; }
.segment-card ul { margin: 14px 0 22px; display: flex; flex-direction: column; gap: 9px; }
.segment-card ul li { font-size: .9rem; color: var(--text-dim); display: flex; gap: 9px; align-items: flex-start; }
.segment-card ul li svg { flex-shrink: 0; margin-top: 3px; }
.segment-card .segment-link { margin-top: auto; font-weight: 700; font-size: .88rem; display: inline-flex; align-items: center; gap: 6px; }
.segment-card.forestier .segment-link { color: var(--green-500); }
.segment-card.scieur .segment-link { color: var(--amber-500); }
.segment-card.ville .segment-link { color: var(--blue-500); }

/* ============================================================
   Feature grid (platform)
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.features-grid-4 { grid-template-columns: repeat(4, 1fr); }
.features-grid-2 { grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--border);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.feature-card .icon-badge {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-card p { font-size: .9rem; margin-bottom: 0; }

/* Agency service cards — a distinct accent color per capability */
.feature-card.accent-blue { border-top: 3px solid var(--blue-500); }
.feature-card.accent-blue .icon-badge { background: rgba(91,127,239,.12); color: var(--blue-500); }
.feature-card.accent-green { border-top: 3px solid var(--green-500); }
.feature-card.accent-green .icon-badge { background: rgba(0,204,133,.12); color: var(--green-500); }
.feature-card.accent-amber { border-top: 3px solid var(--amber-500); }
.feature-card.accent-amber .icon-badge { background: rgba(255,159,10,.14); color: var(--amber-500); }
.feature-card.accent-teal { border-top: 3px solid var(--teal-500); }
.feature-card.accent-teal .icon-badge { background: rgba(51,153,153,.14); color: var(--teal-500); }

/* Project cards — a live screenshot with an overlapping logo badge */
.project-card {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 0 0 24px;
  overflow: hidden;
}
.project-card .project-shot {
  height: 300px;
  background-size: cover;
  background-position: center 50%;
  position: relative;
  transition: transform .3s ease;
}
.project-card .project-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(185deg, rgba(12,20,36,.05) 0%, rgba(12,20,36,.15) 55%, rgba(12,20,36,.68) 100%);
}
.project-card:hover .project-shot { transform: scale(1.03); }
.project-card .project-logo {
  position: absolute;
  left: 24px;
  bottom: -30px;
  width: auto;
  min-width: 110px;
  height: 64px;
  border-radius: 14px;
  background: var(--white);
  border: 3px solid var(--white);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  z-index: 2;
}
.project-card .project-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.project-card .project-body { padding: 42px 28px 0; display: flex; flex-direction: column; flex-grow: 1; min-height: 192px; }
.project-card p { flex-grow: 1; text-align: left; }
.project-card .btn { align-self: flex-start; margin-top: 16px; }

/* Partner / supporter logo band — plain logos, no cards */
.partner-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 44px;
}
.partner-logos img {
  max-height: 68px;
  max-width: 180px;
  width: auto;
  object-fit: contain;
  opacity: .7;
  filter: grayscale(100%);
  transition: opacity .2s ease, filter .2s ease;
}
.partner-logos img:hover { opacity: 1; filter: none; }

/* FOREST.AI partnership (Timbtrack × GoodForest) */
.forestai-partners { display: flex; align-items: center; justify-content: center; gap: 26px; margin: 4px 0 44px; flex-wrap: wrap; }
.forestai-partners img { max-height: 40px; max-width: 220px; width: auto; object-fit: contain; }
.forestai-partners .forestai-x { font-size: 1.3rem; color: var(--text-dim); font-weight: 300; }
.forestai-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.forestai-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.forestai-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.forestai-card p { font-size: .9rem; color: var(--text-dim); margin-bottom: 0; }
.forestai-card p + p { margin-top: 10px; }
.forestai-card .showcase-list { margin-top: 16px; }

/* Awards / recognition cards */
.award-card { text-align: center; }
.award-logo {
  height: 40px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.award-logo img {
  max-height: 100%;
  max-width: 170px;
  width: auto;
  object-fit: contain;
}
.award-year {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--amber-500);
  margin-bottom: 6px;
}

/* Awards — compact strip (logo + caption), lighter than a card grid */
.awards-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  max-width: 920px;
  margin: 0 auto;
  gap: 40px 24px;
}
.award-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}
.award-item img {
  height: 44px;
  max-width: 130px;
  width: auto;
  object-fit: contain;
  margin-bottom: 12px;
}
.award-item strong { display: block; font-size: .92rem; }
.award-item span { display: block; font-size: .8rem; color: var(--text-dim); }

/* Paid / "Pro" feature variant */
.feature-card.pro { border-color: var(--amber-500); }
.feature-card.pro .icon-badge { background: rgba(255,159,10,.14); color: var(--amber-500); }
.pro-badge {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(255,159,10,.14);
  color: var(--amber-500);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

/* ============================================================
   Profile picker (homepage quick redirect)
   ============================================================ */
.profile-picker-section {
  position: relative;
  z-index: 3;
  margin-top: -110px;
  padding-bottom: 64px;
}
.profile-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.profile-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.profile-card:hover { transform: translateY(-8px); box-shadow: 0 32px 64px rgba(9,14,23,.28); }
.profile-card-photo {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 150px;
  flex-shrink: 0;
  background-size: cover;
  background-position:  bottom -20px right 0px;
  background-repeat: no-repeat;
  transition: transform .4s ease;
}
.profile-card:hover .profile-card-photo { transform: scale(1.06); }
.profile-card-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  width: 100%;
  padding: 0 28px 34px;
}
.profile-card .segment-icon {
  margin-top: -28px;
  margin-bottom: 14px;
  flex-shrink: 0;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease;
}
.profile-card:hover .segment-icon { transform: scale(1.08); }
.profile-card strong { display: block; font-size: 1.05rem; margin-bottom: 6px; }
.profile-card p { font-size: .88rem; color: var(--text-dim); margin: 0; }
.profile-card .profile-arrow { margin-top: auto; padding-top: 18px; align-self: flex-end; flex-shrink: 0; transition: transform .2s ease; }
.profile-card-actions { display: flex; flex-direction: column; gap: 10px; width: 100%; margin-top: auto; padding-top: 18px; }
.profile-card-actions .btn { width: 100%; text-align: center; padding: 9px 10px; gap: 6px; }
.profile-card-actions .btn svg { transition: transform .2s ease; flex-shrink: 0; }
.profile-card-actions .btn:hover svg { transform: translateX(3px); }
.profile-card.forestier .profile-card-actions .btn { border-color: var(--green-500); color: var(--green-500); }
.profile-card.forestier .profile-card-actions .btn:hover { background: var(--green-500); color: var(--white); }
.profile-card.tropical .profile-card-actions .btn { border-color: var(--teal-500); color: var(--teal-500); }
.profile-card.tropical .profile-card-actions .btn:hover { background: var(--teal-500); color: var(--white); }
.profile-card.scieur .profile-card-actions .btn { border-color: var(--amber-500); color: var(--amber-500); }
.profile-card.scieur .profile-card-actions .btn:hover { background: var(--amber-500); color: var(--white); }
.profile-card.reglobois .profile-card-actions .btn { border-color: var(--orange-500); color: var(--orange-500); }
.profile-card.reglobois .profile-card-actions .btn:hover { background: var(--orange-500); color: var(--white); }
.profile-card:hover .profile-arrow { transform: translateX(4px); }
.profile-card.forestier .profile-arrow { color: var(--green-500); }
.profile-card.tropical .profile-arrow { color: var(--teal-500); }
.profile-card.scieur .profile-arrow { color: var(--amber-500); }
.profile-card.ville .profile-arrow { color: var(--blue-500); }
.profile-card.reglobois .profile-arrow { color: var(--orange-500); }
.profile-card.forestier strong { color: var(--green-500); }
.profile-card.tropical strong { color: var(--teal-500); }
.profile-card.scieur strong { color: var(--amber-500); }
.profile-card.ville strong { color: var(--blue-500); }
.profile-card.reglobois strong { color: var(--orange-500); }
.profile-card.forestier:hover { border-color: var(--green-500); }
.profile-card.tropical:hover { border-color: var(--teal-500); }
.profile-card.scieur:hover { border-color: var(--amber-500); }
.profile-card.ville:hover { border-color: var(--blue-500); }
.profile-card.reglobois:hover { border-color: var(--orange-500); }

@media (max-width: 860px) {
  .profile-picker { grid-template-columns: 1fr; }
  .profile-picker-section { margin-top: -60px; }
}

/* ============================================================
   Contact info cards (used on dark cta-band)
   ============================================================ */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
  text-align: left;
}
.contact-info-grid .hero-art-card { margin-bottom: 0; }

/* ============================================================
   Pricing table (freemium vs Plus plan)
   ============================================================ */
.pricing-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.pricing-table {
  width: 100%;
  min-width: 620px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.pricing-table th, .pricing-table td {
  padding: 16px 22px;
  text-align: center;
  font-size: .9rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.pricing-table th:first-child, .pricing-table td:first-child {
  text-align: left;
  font-weight: 600;
  width: 38%;
}
.pricing-table tbody td:first-child { color: var(--text); }
.pricing-table thead th { padding: 26px 22px 20px; vertical-align: bottom; }
.pricing-table .plan-name {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.pricing-table .plan-price { display: block; font-size: 1.3rem; font-weight: 700; }
.pricing-table .plan-price-annual { display: block; font-size: .74rem; font-weight: 400; color: var(--text-dim); margin-top: 2px; }
.pricing-table th.plan-pro, .pricing-table td.plan-pro { background: rgba(255,159,10,.08); }
.pricing-table thead th.plan-pro .plan-name { color: var(--amber-500); }
.pricing-table--forestier th.plan-pro, .pricing-table--forestier td.plan-pro { background: rgba(0,204,133,.08); }
.pricing-table--forestier thead th.plan-pro .plan-name { color: var(--green-500); }
.pricing-table--ville th.plan-pro, .pricing-table--ville td.plan-pro { background: rgba(91,127,239,.08); }
.pricing-table--ville thead th.plan-pro .plan-name { color: var(--blue-500); }
.pricing-table tbody tr:last-child td { border-bottom: none; }
.pricing-table tfoot td { border-bottom: none; padding-top: 22px; padding-bottom: 26px; }
.pricing-table .cell-yes { color: var(--green-500); }
.pricing-table .cell-no { color: var(--grey-300); font-weight: 400; }
.pricing-footnote { font-size: .8rem; color: var(--text-dim); margin: 10px 2px 0; }
.pricing-table--has-extra th:first-child, .pricing-table--has-extra td:first-child { width: 30%; }
/* Plan names on one line even when a column has no price */
.pricing-table--has-extra thead th { vertical-align: top; }
.pricing-table .pricing-note { display: block; font-size: .72rem; font-weight: 400; color: var(--text-dim); margin-top: 2px; }

/* Phone layout of the pricing tables: one stacked card per plan (see js/pricing-data.js) */
.pricing-cards { display: none; }
@media (max-width: 720px) {
  .pricing-wrap { overflow: visible; box-shadow: none; border-radius: 0; }
  .pricing-wrap .pricing-table { display: none; }
  .pricing-cards { display: flex; flex-direction: column; gap: 16px; }
}
.pricing-card {
  --plan-color: var(--text-dim);
  --plan-tint: var(--white);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 22px 20px;
  text-align: left;
}
.pricing-card.plan-pro { border: 2px solid var(--plan-color); background: var(--plan-tint); }
.pricing-cards--scieur .plan-pro { --plan-color: var(--amber-500); --plan-tint: rgba(255,159,10,.06); }
.pricing-cards--forestier .plan-pro { --plan-color: var(--green-500); --plan-tint: rgba(0,204,133,.06); }
.pricing-cards--ville .plan-pro { --plan-color: var(--blue-500); --plan-tint: rgba(91,127,239,.06); }
.pricing-card-head { margin-bottom: 14px; }
.pricing-card .plan-name {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--plan-color);
  margin-bottom: 6px;
}
.pricing-card .plan-price { display: block; font-size: 1.4rem; font-weight: 700; color: var(--text); }
.pricing-card .plan-price-annual { display: block; font-size: .78rem; color: var(--text-dim); margin-top: 2px; }
.pricing-card ul { margin-bottom: 18px; }
.pricing-card li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  font-size: .88rem;
}
.pricing-card-label { color: var(--text-dim); }
.pricing-card-value { font-weight: 600; color: var(--text); text-align: right; flex-shrink: 0; max-width: 50%; }
.pricing-card .pricing-note { display: block; font-size: .72rem; font-weight: 400; color: var(--text-dim); margin-top: 2px; }

/* ============================================================
   Platform / mobile app showcase
   ============================================================ */
.showcase {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 60px;
  align-items: center;
}
.showcase-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}
.showcase-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .92rem;
  color: var(--text-dim);
}
.showcase-list li svg { flex-shrink: 0; margin-top: 3px; color: var(--accent); }

.showcase-media { position: relative; }
.showcase-desktop {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.showcase-mobile {
  position: absolute;
  right: -9%;
  bottom: -12%;
  width: 22%;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

/* ============================================================
   Feature tour (interactive tab switcher: pills + phone screen)
   ============================================================ */
.feature-tour-section { padding: 56px 0; }
.feature-tour-section .section-head { margin-bottom: 32px; }
.feature-tour-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}
.feature-tour-tab {
  padding: 11px 24px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  font-family: inherit;
  font-weight: 600;
  font-size: .9rem;
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.feature-tour-tab:hover { border-color: var(--accent); color: var(--accent); }
.feature-tour-tab.active { background: var(--accent); border-color: var(--accent); color: var(--white); }
.feature-tour-tab[data-tab="forestier"].active { background: var(--green-500); border-color: var(--green-500); }
.feature-tour-tab[data-tab="scieur"].active { background: var(--amber-500); border-color: var(--amber-500); }
.feature-tour-tab[data-tab="ville"].active { background: var(--blue-500); border-color: var(--blue-500); }
.feature-tour-panel { display: none; }
.feature-tour-panel.active {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 60px;
  align-items: start;
}
.feature-tour-text h3 { margin-bottom: 10px; }
.feature-tour-text p { margin-bottom: 14px; }
.feature-tour-text .showcase-list { margin-top: 14px; gap: 10px; }
.feature-tour--pricing .feature-tour-panel.active { display: block; }
.feature-tour--pricing .feature-tour-tab { display: inline-flex; align-items: center; gap: 8px; }
.feature-tour--pricing .pricing-table th, .feature-tour--pricing .pricing-table td { padding: 7px 20px; }
.feature-tour--pricing .pricing-table thead th { padding: 12px 20px 8px; }
.feature-tour--pricing .pricing-table tfoot td { padding-top: 10px; padding-bottom: 12px; }
.feature-tour--pricing .feature-tour-tabs { margin-bottom: 20px; }

/* Vertical tab menu — tabs stacked on the left, content on the right */
.feature-tour--vertical { display: flex; align-items: flex-start; gap: 40px; }
.feature-tour--vertical .feature-tour-tabs {
  flex: 0 0 230px;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 4px;
  margin-bottom: 0;
}
.feature-tour--vertical .feature-tour-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-radius: var(--radius-md);
  border-color: transparent;
  background: transparent;
  text-align: left;
}
.feature-tour--vertical .feature-tour-tab svg { flex-shrink: 0; color: var(--text-dim); transition: color .2s ease; }
.feature-tour--vertical .feature-tour-tab:hover { background: var(--white); border-color: transparent; }
.feature-tour--vertical .feature-tour-tab.active { background: var(--accent); border-color: var(--accent); color: var(--white); }
.feature-tour--vertical .feature-tour-tab.active svg { color: var(--white); }
.feature-tour--vertical .feature-tour-body {
  flex: 1;
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 36px;
}
.feature-tour--vertical .feature-tour-panel.active { gap: 40px; }
.feature-tour-media { text-align: center; }
.feature-tour-phone-frame {
  display: inline-block;
  padding: 10px;
  background: var(--navy-900);
  border-radius: 34px;
  box-shadow: var(--shadow-lg);
}
.feature-tour-phone-frame img {
  display: block;
  max-width: 200px;
  max-height: 50vh;
  width: auto;
  height: auto;
  border-radius: 24px;
}

/* ============================================================
   Platform ecosystem (floating cards around the platform, Mobbin-style —
   no connector lines, each card gently levitates at its own pace)
   ============================================================ */
.ecosystem-wrap { position: relative; width: 100%; max-width: 1140px; height: 82vh; min-height: 620px; max-height: 780px; margin: 0 auto; }
.ecosystem-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: hidden; }
.eco-line {
  position: absolute;
  top: 0; left: 0;
  height: 1.5px;
  transform-origin: 0 50%;
  background-image: linear-gradient(to right, currentColor 50%, transparent 0%);
  background-size: 9px 100%;
  opacity: .3;
}
.eco-line.forest { color: var(--green-500); }
.eco-line.scieur { color: var(--amber-500); }
.eco-line.ville { color: var(--blue-500); }
.eco-line.buyer { color: var(--navy-700); }
.eco-line.finance, .eco-line.tropical { color: var(--teal-500); }
.ecosystem-mobile-grid { display: none; }
.ecosystem-hub {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center;
  z-index: 2;
  isolation: isolate;
}
.ecosystem-hub-devices { position: relative; display: flex; align-items: flex-end; justify-content: center; }
.ecosystem-monitor { display: flex; flex-direction: column; align-items: center; }
.ecosystem-phone { position: absolute; right: -6px; bottom: 15px; width: 92px; z-index: 2; }
.ecosystem-phone img { width: 100%; display: block; filter: drop-shadow(0 18px 34px rgba(9,14,23,.28)); }
.ecosystem-monitor-screen {
  width: 455px;
  height: 300px;
  padding: 11px;
  border-radius: 19px;
  background: var(--navy-900);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.ecosystem-monitor-screen img { width: 100%; height: 100%; object-fit: cover; border-radius: 9px; display: block; }
.ecosystem-monitor-neck { width: 38px; height: 24px; background: var(--navy-800); margin: 0 auto; }
.ecosystem-monitor-base { width: 140px; height: 13px; background: var(--navy-700); border-radius: 5px; margin: 0 auto; }
.ecosystem-node {
  position: absolute;
  /* Anchor on the icon's own center (half its 60px height), not the whole
     node box — otherwise nodes with taller content (the CTA button) visually
     drift off their intended point. The float animation below only ever
     touches `transform`, so this static vertical offset is never disturbed. */
  transform: translateX(-50%);
  margin-top: -30px;
  width: 168px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 1;
  isolation: isolate;
  animation: eco-float 5s ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
}
@keyframes eco-float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-14px); }
}
.ecosystem-node .icon-badge {
  width: 60px; height: 60px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  background: var(--white);
  box-shadow: 0 16px 28px -12px rgba(12, 20, 36, .22);
  transition: transform .2s ease, box-shadow .2s ease;
}
.ecosystem-node span { font-size: .98rem; font-weight: 600; color: var(--text); }
.ecosystem-node:hover .icon-badge { transform: translateY(-3px); box-shadow: 0 20px 32px -10px rgba(12, 20, 36, .3); }
.ecosystem-node.forest .icon-badge { color: var(--green-500); background: rgba(0,204,133,.1); }
.ecosystem-node.scieur .icon-badge { color: var(--amber-500); background: rgba(255,159,10,.12); }
.ecosystem-node.ville .icon-badge { color: var(--blue-500); background: rgba(91,127,239,.1); }
.ecosystem-node.finance .icon-badge { color: var(--teal-500); background: rgba(51,153,153,.12); }
.ecosystem-node.buyer .icon-badge { color: var(--navy-700); background: rgba(27,37,58,.08); }
.ecosystem-node.tropical .icon-badge { color: var(--teal-500); background: rgba(51,153,153,.12); }

.eco-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: .78rem;
  font-weight: 700;
  transition: gap .2s ease;
}
.ecosystem-node .eco-cta, .ecosystem-node .eco-cta span { color: var(--text-dim); }
.eco-cta svg { flex-shrink: 0; transition: transform .15s ease; }
a.ecosystem-node:hover .eco-cta { gap: 7px; }
a.ecosystem-node:hover .eco-cta svg { transform: translateX(2px); }
.ecosystem-node.forest .eco-cta, .ecosystem-node.forest .eco-cta span { color: var(--green-500); }
.ecosystem-node.scieur .eco-cta, .ecosystem-node.scieur .eco-cta span { color: var(--amber-500); }
.ecosystem-node.ville .eco-cta, .ecosystem-node.ville .eco-cta span { color: var(--blue-500); }

@media (max-width: 900px) {
  .ecosystem-wrap { display: none; }
  .ecosystem-mobile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-width: 420px;
    margin: 0 auto;
  }
  .ecosystem-hub-mobile {
    grid-column: 1 / -1;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--navy-800);
    color: var(--white);
    border-radius: var(--radius-md);
    padding: 14px;
    font-weight: 700;
    font-size: .9rem;
  }
  .ecosystem-mobile-grid .ecosystem-node {
    position: static;
    transform: none;
    animation: none;
    margin-top: 0;
    width: auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 10px;
    /* long German compounds would otherwise widen the column past the screen */
    overflow-wrap: anywhere;
    hyphens: auto;
  }
}

/* iPad (landscape) device frame around a screenshot */
.device-ipad {
  position: relative;
  width: 100%;
  background: linear-gradient(155deg, #3a3a3c, #1c1c1e);
  border-radius: 28px;
  padding: 18px;
  box-shadow: var(--shadow-md);
}
.device-ipad::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.5);
}
.device-ipad img {
  display: block;
  width: 100%;
  border-radius: 8px;
}

/* ============================================================
   RDUE teaser banner
   ============================================================ */
.rdue-banner {
  background: linear-gradient(120deg, var(--navy-800), var(--navy-900));
  border-radius: var(--radius-lg);
  padding: 52px;
  color: var(--text-on-dark);
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.rdue-banner::before {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,204,133,.25), transparent 70%);
}
.rdue-banner h2 { color: var(--white); }
.rdue-banner p { color: var(--text-on-dark-dim); }
.rdue-banner-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.rdue-tag {
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: .78rem;
  color: var(--text-on-dark-dim);
}

/* ============================================================
   Process steps ("How it works" — photo timeline)
   ============================================================ */
.process-list { position: relative; max-width: 820px; margin: 0 auto; }
.process-list::before {
  content: "";
  position: absolute;
  left: 50%; top: 40px; bottom: 40px;
  width: 2px;
  background-image: linear-gradient(var(--border) 60%, transparent 0%);
  background-size: 2px 14px;
  background-repeat: repeat-y;
  transform: translateX(-50%);
}
.process-step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 104px 1fr;
  grid-auto-flow: dense;
  align-items: center;
  column-gap: 24px;
  margin-bottom: 22px;
}
.process-step:last-child { margin-bottom: 0; }
.process-step.reveal { opacity: 1; transform: none; }
.process-photo {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  width: 104px; height: 104px;
  border-radius: 50%;
  background: var(--bg-alt) center/cover no-repeat;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-md);
  z-index: 1;
  opacity: 0;
  transform: scale(.7);
  transition: opacity .5s ease, transform .5s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s ease;
}
.process-step.in-view .process-photo { opacity: 1; transform: scale(1); }
.process-step.in-view .process-photo:hover { transform: scale(1.07); box-shadow: 0 14px 30px rgba(var(--accent-rgb), .35); }
.process-photo::after {
  content: attr(data-step);
  position: absolute;
  bottom: -3px; right: -3px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-size: .74rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid var(--white);
}
.process-photo::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  pointer-events: none;
}
.process-step.in-view .process-photo::before { animation: process-ring .9s ease-out .25s; }
@keyframes process-ring {
  0% { opacity: .6; transform: scale(.82); }
  100% { opacity: 0; transform: scale(1.4); }
}
.process-text {
  opacity: 0;
  transition: opacity .5s ease .1s, transform .5s ease .1s;
}
.process-step.in-view .process-text { opacity: 1; transform: translateX(0) !important; }
.process-text h4 { margin-bottom: 4px; font-size: .96rem; }
.process-text p { font-size: .84rem; margin: 0; }
.process-text p + p { margin-top: 10px; }
.process-step:nth-child(odd) .process-text { grid-column: 1; grid-row: 1; text-align: right; transform: translateX(-24px); }
.process-step:nth-child(odd) .process-spacer { grid-column: 3; grid-row: 1; }
.process-step:nth-child(even) .process-text { grid-column: 3; grid-row: 1; text-align: left; transform: translateX(24px); }
.process-step:nth-child(even) .process-spacer { grid-column: 1; grid-row: 1; }

/* Flow-chain — small step-by-step diagram inside a process card */
.flow-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 12px 0;
}
.flow-chain span {
  background: rgba(var(--accent-rgb), .1);
  color: var(--accent);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  padding: 5px 10px;
  border-radius: 999px;
}
.flow-chain svg { flex-shrink: 0; color: var(--border); }

/* Process detail list — richer steps (title + paragraphs + flow-chain), photo always beside left-aligned text */
.process-detail-list {
  display: flex;
  flex-direction: column;
  gap: 56px;
  max-width: 980px;
  margin: 0 auto;
}
.process-detail-step {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 36px;
  align-items: start;
}
.process-detail-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-md);
}
.process-detail-photo::after {
  content: attr(data-step);
  position: absolute;
  top: -12px;
  left: -12px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-sm);
}
.process-detail-text { text-align: left; }
.process-detail-text h4 { font-size: 1.1rem; margin-bottom: 10px; }
.process-detail-text p { font-size: .92rem; margin: 0; }
.process-detail-text p + p { margin-top: 12px; }
@media (max-width: 720px) {
  .process-detail-step { grid-template-columns: 1fr; }
  .process-detail-photo { aspect-ratio: 16 / 9; }
}

@media (max-width: 760px) {
  .process-list::before { display: none; }
  .process-step { grid-template-columns: 1fr; row-gap: 12px; margin-bottom: 26px; }
  .process-step .process-text,
  .process-step .process-photo,
  .process-step .process-spacer { grid-column: 1 !important; text-align: center !important; justify-self: center; }
  /* Desktop pins text + photo to grid-row 1 (side by side); stack them here: photo on top, text below. */
  .process-step .process-photo { grid-row: 1 !important; }
  .process-step .process-text { grid-row: 2 !important; }
  .process-step .process-text { transform: translateY(12px) !important; }
  .process-step.in-view .process-text { transform: translateY(0) !important; }
  .process-photo { width: 88px; height: 88px; }
  .process-spacer { display: none; }
  .flow-chain { justify-content: center !important; }
}

/* ============================================================
   Timeline (RDUE page)
   ============================================================ */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.timeline-step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
.timeline-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.timeline-step::before {
  content: attr(data-step);
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background:  rgba(91,127,239,0.1);
  color: var(--blue-500);
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.timeline-step h4 { font-size: .98rem; margin-bottom: 6px; }
.timeline-step p { font-size: .85rem; margin-bottom: 0; }

/* obligations list */
.obligations-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.obligation-card {
  display: flex; gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.obligation-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.obligation-card .icon-badge {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: rgba(91,127,239,.14); color: var(--blue-500);
  display: flex; align-items: center; justify-content: center;
}
.obligation-card h4 { margin-bottom: 6px; font-size: 1rem; }
.obligation-card p { font-size: .88rem; margin-bottom: 0; }

/* segment-specific RDUE cards */
.rdue-segments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rdue-segment-card {
  border-radius: var(--radius-md);
  padding: 26px;
  border: 1px solid var(--border);
  transition: transform .2s ease, box-shadow .2s ease;
}
.rdue-segment-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.rdue-segment-card.forestier { border-top: 3px solid var(--green-500); }
.rdue-segment-card.scieur { border-top: 3px solid var(--amber-500); }
.rdue-segment-card.ville { border-top: 3px solid var(--blue-500); }
.rdue-segment-card h4 { font-size: 1.02rem; }
.rdue-segment-card p { font-size: .88rem; }

.callout {
  background: var(--bg-alt);
  border-left: 3px solid var(--blue-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px;
  font-size: .9rem;
  color: var(--text-dim);
}

/* ============================================================
   Testimonials
   ============================================================ */
.testimonials-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.testimonials-grid .testimonial-card:only-child {
  grid-column: 1 / -1;
  max-width: 460px;
  margin: 0 auto;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.testimonial-card p { color: var(--text); font-style: italic; margin-bottom: 14px; }
.testimonial-card footer { font-size: .82rem; color: var(--text-dim); font-weight: 600; }
.testi-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  background-size: cover;
  background-position: center;
}
.testi-avatar.forest { background-color: var(--green-500); color: var(--white); }
.testi-avatar.scieur { background-color: var(--amber-500); color: var(--white); }
.testi-avatar.ville { background-color: var(--blue-500); color: var(--white); }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
  background: var(--navy-900);
  color: var(--text-on-dark);
  text-align: center;
  padding: 72px 0;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--text-on-dark-dim); max-width: 50ch; margin-inline: auto; }
.cta-band .hero-cta { justify-content: center; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--navy-900);
  color: var(--text-on-dark-dim);
  padding: 60px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 30px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-grid h4 { color: var(--white); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.footer-grid ul { display: flex; flex-direction: column; gap: 10px; font-size: .88rem; }
.footer-grid ul a:hover { color: var(--white); }
.footer-brand img { height: 38px; margin-bottom: 14px; }
.footer-brand p { font-size: .85rem; max-width: 32ch; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 22px; font-size: .78rem; flex-wrap: wrap; gap: 10px;
}

/* ============================================================
   Responsive
   ============================================================ */
/* The phone mockup hangs outside the media column; keep it on-screen once the
   container's side gutter gets thinner than that overhang. */
@media (max-width: 1100px) {
  .showcase-mobile { right: -3%; }
}
@media (max-width: 980px) {
  .hero-annotations { display: none; }
  .segments-grid, .features-grid, .timeline, .obligations-grid, .testimonials-grid, .rdue-segments, .profile-picker { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .contact-info-grid { grid-template-columns: 1fr; }
  .rdue-banner { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: minmax(0, 1fr); }
  .feature-tour-panel.active { grid-template-columns: 1fr; gap: 32px; }
  .feature-tour-panel.active .feature-tour-media { order: -1; }
  .feature-tour--vertical { flex-direction: column; gap: 24px; }
  .feature-tour--vertical .feature-tour-tabs { flex: none; width: 100%; }
  .showcase-mobile { width: 30%; right: 4%; bottom: -8%; }
}
/* Nav switches to the hamburger menu earlier than other mobile styles:
   the desktop nav (logo + pills + lang switch + CTA) starts overflowing
   the header around ~900px, well before phone widths. */
@media (max-width: 1024px) {
  .site-header .container { justify-content: space-between; }
  .nav-links { display: none; }
  .header-actions .header-cta { display: none; }
  .nav-toggle { display: block; }
  .site-header.nav-open .nav-links {
    display: flex;
    position: absolute;
    top: 80px; left: 0; right: 0;
    transform: none;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 14px 20px 22px;
    gap: 4px;
    box-shadow: var(--shadow-md);
  }
  .site-header.nav-open .nav-links a { padding: 12px 14px; }
  .site-header.nav-open .nav-links .header-cta-mobile { display: inline-flex; margin-top: 10px; }
  .site-header.nav-open .nav-links a.header-cta-mobile,
  .site-header.scrolled.nav-open .nav-links a.header-cta-mobile { color: var(--white); }
  .nav-links .nav-dropdown-trigger { width: 100%; justify-content: space-between; padding: 12px 14px; }
  .nav-links .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 14px;
    margin-top: 2px;
    display: none;
  }
  .nav-links .nav-dropdown.is-open .nav-dropdown-menu { display: flex; transform: none; }
}
/* On narrow phones, brand + lang switch + hamburger no longer fit on one
   row at the default sizes (e.g. iPhone SE at 375px) and the hamburger
   button gets pushed off the right edge of the screen. */
@media (max-width: 430px) {
  .site-header .container { gap: 10px; padding: 0 16px; }
  .brand img { height: 36px; }
  .lang-switch-trigger { padding: 6px 9px; }
  .nav-toggle { padding: 8px 5px; }
  /* Long CTA labels ("Se connecter / Créer un compte", longer still in DE/NL) */
  .btn { white-space: normal; text-align: center; max-width: 100%; }
}
@media (max-width: 720px) {
  .segments-grid, .features-grid, .timeline, .obligations-grid, .testimonials-grid, .rdue-segments, .footer-grid, .profile-picker, .forestai-grid { grid-template-columns: 1fr; }
  .profile-card { flex-wrap: wrap; }
  .section { padding: 64px 0; }
  .showcase-media { margin-bottom: 40px; }
  .rdue-banner { padding: 32px 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  /* Homepage hero: leave room so the profile-picker cards peek into view
     on load instead of the hero eating the whole screen with no CTA. */
  body.home .hero { min-height: 78vh; padding-bottom: 90px; }
}
