/* ============================================================
   KACTUS LAB — Global & Reset (global.css)
   ============================================================ */

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--kl-font-body);
  font-size: var(--kl-fs-16);
  line-height: var(--kl-lh-normal);
  color: var(--kl-fg);
  background: var(--kl-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; height: auto; display: block; }

/* ── PAGE ENTER ANIMATION ── */
.b2-enter { animation: b2in .4s var(--kl-ease-out) both; }
@keyframes b2in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── PULSE ── */
@keyframes b2pulse {
  0%   { box-shadow: 0 0 0 0 rgba(7,170,7,0.5); }
  70%  { box-shadow: 0 0 0 12px rgba(7,170,7,0); }
  100% { box-shadow: 0 0 0 0 rgba(7,170,7,0); }
}
.pulse {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--kl-green);
  border-radius: 9999px;
  box-shadow: 0 0 0 0 rgba(7,170,7,0.5);
  animation: b2pulse 2s infinite;
  flex-shrink: 0;
}

/* ── CONTAINER ── */
.kl-container {
  max-width: var(--kl-container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ── EYEBROW ── */
.kl-eyebrow {
  font-family: var(--kl-font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--kl-green-700);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ── BUTTONS ── */
.b2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border: 0;
  cursor: pointer;
  font-family: var(--kl-font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--kl-radius-0);
  transition: all var(--kl-dur-base) var(--kl-ease-out);
  text-decoration: none;
}
.b2-btn--green { background: var(--kl-green); color: #fff; }
.b2-btn--green:hover { background: var(--kl-green-600); box-shadow: 0 8px 24px rgba(7,170,7,0.28); transform: translateY(-1px); }
.b2-btn--black { background: #000; color: #fff; }
.b2-btn--black:hover { background: var(--kl-grey-700); transform: translateY(-1px); }
.b2-btn--white { background: #fff; color: var(--kl-ink); border: 1px solid var(--kl-border-strong); }
.b2-btn--white:hover { border-color: var(--kl-green); color: var(--kl-green-700); background: var(--kl-green-50); }
.b2-btn--ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.b2-btn--ghost-light:hover { border-color: var(--kl-green); color: var(--kl-green); }
.b2-btn--xl { height: 68px; padding: 0 36px; font-size: 15px; }
.b2-btn--sm { height: 42px; padding: 0 18px; font-size: 12px; }

/* ── CHIPS ── */
.b2-chip {
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 9999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.b2-chip--dark { background: var(--kl-grey-100); color: var(--kl-fg); }
.b2-chip--green { background: rgba(7,170,7,0.15); color: var(--kl-green); }

/* ── BADGE NOUVEAU ── */
.b2-badge-new {
  background: var(--kl-green);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 9999px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  vertical-align: middle;
  margin-left: 6px;
}

/* ── DIVISEUR VERT ── */
.b2-divider {
  background: var(--kl-green);
  color: #fff;
  padding: 10px 0;
  font-family: var(--kl-font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
}
.b2-divider span { padding: 0 16px; }

/* ── SKIP LINK (a11y) ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--kl-green);
  color: #fff;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  z-index: 999;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ── SECTION HEADS ── */
.kl-section-head {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 56px;
}
.kl-section-head h2 {
  font-family: var(--kl-font-display);
  font-weight: 700;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 0.92;
  text-transform: uppercase;
  margin: 12px 0 0;
  letter-spacing: 0.005em;
}
.kl-section-head h2 .accent { color: var(--kl-green); }
.kl-section-head p {
  font-size: 17px;
  color: var(--kl-fg-muted);
  line-height: 1.6;
  margin: 0;
  max-width: 460px;
  align-self: end;
}

/* ── FOCUS STYLE ── */
*:focus-visible {
  outline: 2px solid var(--kl-green);
  outline-offset: 2px;
}

/* ── RESPONSIVE HELPERS ── */
@media (max-width: 1080px) {
  .kl-section-head { grid-template-columns: 1fr; gap: 24px; }
  .kl-section-head p { max-width: 100%; }
}
@media (max-width: 720px) {
  .kl-container { padding: 0 var(--kl-gutter); }
  .b2-btn { height: 48px; padding: 0 20px; font-size: 11px; }
  .b2-btn--xl { height: 56px; padding: 0 24px; font-size: 13px; }
}
