@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

/* Vitrine HubLink : mêmes couleurs et polices que l'application (HubLink/app.css). */
:root {
  --accent: #dfef65;
  --on-accent: #172923;
  --ink: #172923;
  --bg: #f4f6f3;
  --card: #fff;
  --muted: #5f6a64;
  --line: #e5e9e3;
  --side: #172923;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 'DM Sans', sans-serif; }
a { color: inherit; }
h1, h2, h3, .brand { font-family: Manrope, sans-serif; }
h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.08; letter-spacing: -1.5px; margin: 18px 0; }
h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; letter-spacing: -.8px; margin: 0 0 28px; max-width: 720px; }
h3 { font-size: 18px; margin: 0 0 8px; }
p { margin: 0 0 12px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 30; background: var(--accent); color: var(--on-accent); padding: 10px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }

/* En-tête */
.top { position: sticky; top: 0; z-index: 10; background: var(--side); color: #d9e3db; }
.top-inner { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 800; color: #fff; text-decoration: none; }
.mark { background: var(--accent); color: var(--on-accent); border-radius: 10px; width: 34px; height: 34px; display: grid; place-items: center; font-size: 20px; }
.menu { display: flex; gap: 24px; margin-left: auto; font-size: 14px; }
.menu a { text-decoration: none; color: #c9d6cc; }
.menu a:hover { color: #fff; }

/* Boutons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 20px; border-radius: 9px; font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; min-height: 46px; }
.button.primary { background: var(--accent); color: var(--on-accent); }
.button.primary:hover { filter: brightness(.96); }
.button.ghost { border: 1px solid #ffffff40; color: #fff; }
.button.ghost:hover { background: #ffffff12; }
.button.dark-ghost { border-color: var(--line); color: var(--ink); background: var(--card); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Bandeau principal */
.hero { width: calc(100% - 48px); max-width: 1132px; margin-top: 32px; padding: 0; display: grid; grid-template-columns: 1.05fr 1fr; background: var(--side); color: #fff; border-radius: 20px; overflow: hidden; }
.hero-copy { padding: 52px 48px; }
.hero img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; display: block; }
.pill { display: inline-flex; font-size: 12px; font-weight: 600; border-radius: 20px; padding: 6px 12px; background: #ffffff15; color: var(--accent); }
.lead { color: #c4d0c6; font-size: 17px; max-width: 520px; margin-bottom: 28px; }
.note { color: #9fb0a4; font-size: 13px; margin: 22px 0 0; }

/* Sections */
.section { padding: 88px 24px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: 1.8px; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 12px; }
.eyebrow.light { color: #9fb0a4; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cards.three { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }
.icon { width: 46px; height: 46px; border-radius: 12px; background: #eef4e7; display: grid; place-items: center; margin-bottom: 18px; }
.icon svg { width: 22px; height: 22px; stroke: var(--ink); fill: none; stroke-width: 1.7; }

/* Étapes */
.band { background: var(--side); color: #fff; margin-top: 88px; padding: 80px 0; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps li { display: flex; gap: 16px; background: #ffffff09; border: 1px solid #ffffff14; border-radius: 14px; padding: 26px; }
.steps p { color: #c4d0c6; font-size: 15px; margin: 0; }
.step { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.band-note { color: #9fb0a4; font-size: 14px; margin: 28px 0 0; }

/* HubLink Coins */
.coin-section { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center; }
.coin-big { width: 100%; height: auto; filter: drop-shadow(0 18px 30px #17292333); }
.coin-section p { color: var(--muted); font-size: 17px; max-width: 640px; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checks li { padding-left: 32px; position: relative; font-weight: 600; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-size: 13px; }

/* Impact : simulateur et badges */
.impact { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.checks li span { font-weight: 400; }
.note-dark { color: var(--muted); font-size: 14px; margin-top: 18px; }
.badge-demo { position: relative; display: grid; gap: 14px; background: #eaf0df; border-radius: 18px; padding: 34px 26px 26px; }
.badge-demo .sample { position: absolute; top: 10px; right: 14px; font-size: 11px; font-weight: 700; color: #477047; text-transform: uppercase; letter-spacing: 1px; }
.badge-co2 { display: flex; gap: 16px; align-items: center; background: var(--side); color: #fff; border-radius: 14px; padding: 18px 20px; }
.badge-co2 .b-eyebrow { color: #9fb0a4; text-transform: uppercase; letter-spacing: 1.6px; font-size: 11px; font-weight: 700; }
.badge-co2 strong { display: block; font: 800 30px Manrope, sans-serif; letter-spacing: -1px; color: var(--accent); }
.badge-co2 span { font-size: 13px; color: #c4d0c6; }
.badge-co2 .badge-leaf { width: 58px; height: 58px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font: 800 15px Manrope, sans-serif; flex-shrink: 0; }

/* Appel à l'action */
.cta { margin-top: 28px; background: #eaf0df; border-radius: 16px; padding: 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta p { color: #3c5240; margin: 0; }

/* Pied de page */
.foot { margin-top: 88px; background: var(--side); color: #9fb0a4; font-size: 14px; }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; min-height: 96px; padding-top: 20px; padding-bottom: 20px; }
.foot a { color: #d9e3db; }
.small-brand { font-size: 19px; }
.small-brand .mark { width: 28px; height: 28px; font-size: 16px; border-radius: 8px; }

/* Adaptatif */
@media (max-width: 1000px) {
  .menu { display: none; }
  .top-inner { justify-content: space-between; }
  .hero { grid-template-columns: 1fr; }
  .hero img { min-height: 0; height: 280px; }
  .cards, .cards.three { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .coin-section, .impact { grid-template-columns: 1fr; gap: 24px; }
  .coin-big { max-width: 220px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .hero { width: calc(100% - 32px); margin-top: 16px; border-radius: 16px; }
  .hero-copy { padding: 32px 22px; }
  .top .button { padding: 10px 14px; font-size: 14px; }
  .brand { font-size: 21px; }
  .cards, .cards.three { grid-template-columns: 1fr; }
  .section { padding: 64px 16px 0; }
  .band { margin-top: 64px; padding: 56px 0; }
  .actions .button { flex: 1 1 100%; }
  .cta { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
