/* TerraKool — App CSS
   Composants additionnels au design system tokens.css
   ---------------------------------------------------- */

/* ─── Image responsive (WebP + JPG fallback) ────────── */
.tk-pic {
  display: block;
  position: relative;
  width: 100%;
  background: var(--tk-bone-warm);
  overflow: hidden;
  border: 1px solid var(--tk-rule);
}
.tk-pic > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.tk-pic--dark { border-color: rgba(245, 242, 236, 0.08); }

/* ─── Header / Nav ─────────────────────────────────── */
.tk-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(245, 242, 236, 0.85);
  backdrop-filter: saturate(140%) blur(6px);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid transparent;
  transition: background 200ms var(--tk-ease), border-color 200ms var(--tk-ease);
}
.tk-header--dark {
  background: transparent;
  color: var(--tk-bone);
}
.tk-header.is-scrolled,
.tk-header--dark.is-scrolled {
  background: rgba(245, 242, 236, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom-color: var(--tk-rule);
  color: var(--tk-ink);
}
.tk-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.tk-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--tk-ink);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.tk-header--dark:not(.is-scrolled) .tk-wordmark { color: var(--tk-bone); }

.tk-nav {
  display: none;
  gap: 28px;
  align-items: center;
}
.tk-nav a {
  font-size: 14px;
  color: var(--tk-graphite);
  letter-spacing: 0.005em;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 160ms var(--tk-ease);
}
.tk-nav a:hover { color: var(--tk-ink); }
.tk-nav a.is-active {
  color: var(--tk-ink);
  font-weight: 500;
  border-bottom-color: currentColor;
}
.tk-header--dark:not(.is-scrolled) .tk-nav a { color: rgba(245, 242, 236, 0.85); }
.tk-header--dark:not(.is-scrolled) .tk-nav a:hover,
.tk-header--dark:not(.is-scrolled) .tk-nav a.is-active { color: var(--tk-bone); }

.tk-header__cta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tk-cta-desktop { display: none; padding: 10px 16px; font-size: 14px; }
.tk-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  color: var(--tk-ink);
}
.tk-header--dark:not(.is-scrolled) .tk-menu-toggle { color: var(--tk-bone); }

@media (min-width: 960px) {
  .tk-nav { display: flex; }
  .tk-cta-desktop { display: inline-flex; }
  .tk-menu-toggle { display: none; }
}

/* Mobile menu drawer */
.tk-mobile-menu {
  display: none;
  background: var(--tk-bone);
  border-top: 1px solid var(--tk-rule);
  border-bottom: 1px solid var(--tk-rule);
  color: var(--tk-ink);
}
.tk-mobile-menu.is-open { display: block; }
.tk-mobile-menu__inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 16px var(--tk-gutter);
}
.tk-mobile-menu a {
  padding: 14px 0;
  font-size: 17px;
  color: var(--tk-graphite);
  border-bottom: 1px solid var(--tk-rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tk-mobile-menu a.is-active { color: var(--tk-ink); font-weight: 500; }
.tk-mobile-menu .tk-btn { margin-top: 16px; justify-content: center; }

/* Page padding to clear sticky header on non-hero pages */
.tk-has-header-pad { padding-top: 64px; }

/* ─── Footer ───────────────────────────────────────── */
.tk-footer {
  background: var(--tk-green-deep);
  color: var(--tk-bone);
}
.tk-footer__inner { padding: 80px var(--tk-gutter) 32px; }
.tk-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
.tk-footer__intro p {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(245, 242, 236, 0.65);
  max-width: 360px;
}
.tk-footer__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.tk-footer__col-title {
  font-family: var(--tk-font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.5);
  margin-bottom: 16px;
}
.tk-footer__col ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.tk-footer__col a {
  font-size: 14px;
  color: rgba(245, 242, 236, 0.85);
  line-height: 1.5;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color 160ms;
}
.tk-footer__col a:hover { border-bottom-color: var(--tk-bone); }
.tk-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  font-family: var(--tk-font-mono);
  font-size: 12px;
  color: rgba(245, 242, 236, 0.5);
  letter-spacing: 0.04em;
}
.tk-footer__legal__links { display: flex; gap: 24px; flex-wrap: wrap; }
.tk-footer__divider {
  border-top: 1px solid rgba(245, 242, 236, 0.12);
  margin: 64px 0 24px;
}
@media (min-width: 768px) {
  .tk-footer__grid { grid-template-columns: 1.1fr 2fr; gap: 80px; }
  .tk-footer__cols { grid-template-columns: 1fr 1fr 1fr; gap: 40px; }
}

/* ─── Hero ─────────────────────────────────────────── */
.tk-hero {
  position: relative;
  background: var(--tk-green-deep);
  color: var(--tk-bone);
  padding: 144px 0 80px;
  overflow: hidden;
}
.tk-hero__bg {
  position: absolute; inset: 0; z-index: 0; border: none;
}
.tk-hero__veil {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(21,41,31,0.55) 0%, rgba(21,41,31,0.85) 60%, rgba(21,41,31,0.95) 100%);
}
.tk-hero__inner { position: relative; z-index: 2; }
.tk-hero__topline {
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center;
  padding-bottom: 64px; border-bottom: 1px solid rgba(245,242,236,0.15);
  font-family: var(--tk-font-mono); font-size: 12px; letter-spacing: 0.08em;
  color: rgba(245,242,236,0.65);
}
.tk-hero__topline .tk-rule { flex: 1; min-width: 24px; height: 1px; background: rgba(245,242,236,0.12); }
.tk-hero__title {
  margin-top: 64px; max-width: 1100px;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.98; letter-spacing: -0.02em; font-weight: 500;
}
.tk-hero__title--mute { color: rgba(245,242,236,0.55); }
.tk-hero__bottom {
  display: grid; grid-template-columns: 1fr; gap: 48px;
  margin-top: 64px; align-items: end;
}
.tk-hero__lede {
  max-width: 520px; font-size: 18px; line-height: 1.55;
  color: rgba(245,242,236,0.85);
}
.tk-hero__cta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.tk-hero__stats {
  margin-top: 96px; padding-top: 32px;
  border-top: 1px solid rgba(245,242,236,0.15);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 32px;
}
.tk-hero__stat-v {
  font-size: clamp(36px, 4.5vw, 56px); font-weight: 500;
  letter-spacing: -0.02em; line-height: 1; color: var(--tk-bone);
}
.tk-hero__stat-u { font-family: var(--tk-font-mono); font-size: 14px; color: rgba(245,242,236,0.65); margin-left: 4px; }
.tk-hero__stat-l { font-size: 13px; color: rgba(245,242,236,0.65); margin-top: 8px; line-height: 1.45; }
@media (min-width: 900px) { .tk-hero__bottom { grid-template-columns: 1fr auto; } }

/* ─── Page Header (autres pages) ──────────────────── */
.tk-pagehead {
  padding: 128px 0 64px;
  border-bottom: 1px solid var(--tk-rule);
}
.tk-pagehead__crumb {
  display: flex; align-items: center; gap: 16px; margin-bottom: 32px;
  font-family: var(--tk-font-mono); font-size: 12px; letter-spacing: 0.08em;
  color: var(--tk-stone); text-transform: uppercase;
}
.tk-pagehead__crumb a { color: inherit; }
.tk-pagehead__crumb .is-current { color: var(--tk-ink); }
.tk-pagehead__lede { max-width: 720px; margin-top: 24px; font-size: 18px; line-height: 1.55; color: var(--tk-graphite); }

/* ─── Section header (eyebrow + chiffre) ─────────── */
.tk-seclabel {
  display: flex; align-items: baseline; gap: 16px; margin-bottom: 32px;
}
.tk-seclabel__num { font-family: var(--tk-font-mono); font-size: 12px; color: var(--tk-stone); letter-spacing: 0.08em; }
.tk-seclabel__rule { flex: 0 0 32px; height: 1px; background: var(--tk-rule); }

/* Section heading underline (pour technologie) */
.tk-sechead {
  margin-bottom: 56px;
}
.tk-sechead__top {
  display: flex; align-items: baseline; gap: 16px;
  padding-bottom: 16px; border-bottom: 1px solid var(--tk-ink);
  margin-bottom: 24px;
}
.tk-sechead__num { font-family: var(--tk-font-mono); font-size: 13px; color: var(--tk-green); font-weight: 500; }

/* ─── Stat block ──────────────────────────────────── */
.tk-stat { display: flex; flex-direction: column; gap: 8px; }
.tk-stat__top { display: flex; align-items: baseline; gap: 6px; }
.tk-stat__v {
  font-size: clamp(48px, 6vw, 88px); font-weight: 500;
  line-height: 0.95; letter-spacing: -0.02em; color: var(--tk-ink);
}
.tk-stat__u { font-size: 20px; color: var(--tk-stone); font-family: var(--tk-font-mono); }
.tk-stat__l { font-size: 14px; color: var(--tk-graphite); line-height: 1.45; max-width: 280px; }
.tk-stat__src {
  font-family: var(--tk-font-mono); font-size: 11px; color: var(--tk-stone);
  letter-spacing: 0.04em; margin-top: 4px;
}

/* ─── Pillar / sector / product cards ─────────────── */
.tk-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  border-top: 1px solid var(--tk-rule);
}
.tk-pillar {
  padding: 40px 32px 40px 0;
  border-bottom: 1px solid var(--tk-rule);
  border-right: 1px solid var(--tk-rule);
  display: flex; flex-direction: column; gap: 20px;
}
.tk-pillar:last-child { border-right: none; }
.tk-pillar:not(:first-child) { padding-left: 32px; }
.tk-pillar__num { font-family: var(--tk-font-mono); font-size: 12px; color: var(--tk-green); letter-spacing: 0.08em; }
.tk-pillar__title { max-width: 320px; }
.tk-pillar__body { flex: 1; }
.tk-pillar__link {
  margin-top: 8px; font-size: 14px; color: var(--tk-green); font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--tk-green); padding-bottom: 2px;
  align-self: flex-start;
}
@media (max-width: 720px) {
  .tk-pillar { padding-left: 0 !important; border-right: none !important; }
}

/* ─── DefBox (sidebar tech) ───────────────────────── */
.tk-defbox {
  border-left: 2px solid var(--tk-green);
  padding: 12px 0 12px 16px;
  margin-top: 16px;
}
.tk-defbox__term { font-size: 13px; color: var(--tk-stone); }
.tk-defbox__value {
  font-size: 22px; font-weight: 500;
  font-family: var(--tk-font-mono); color: var(--tk-ink);
  margin: 4px 0;
}
.tk-defbox__note { font-size: 12px; color: var(--tk-stone); line-height: 1.5; }

/* ─── Tech grid layout ───────────────────────────── */
.tk-tech-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: start; }
@media (min-width: 900px) { .tk-tech-grid { grid-template-columns: 1fr 1.1fr; gap: 80px; } }

.tk-figure {
  background: var(--tk-paper);
  border: 1px solid var(--tk-rule);
  padding: 24px;
}
.tk-figure__header {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--tk-rule);
  margin-bottom: 16px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
}
.tk-figure__num { font-family: var(--tk-font-mono); font-size: 11px; color: var(--tk-stone); letter-spacing: 0.08em; }
.tk-figure__title { font-size: 15px; font-weight: 500; margin-top: 4px; }
.tk-figure__caption { font-size: 12px; color: var(--tk-stone); margin-top: 12px; line-height: 1.5; }

.tk-figure svg { width: 100%; height: auto; display: block; }

/* ─── Product cards ──────────────────────────────── */
.tk-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.tk-card {
  background: var(--tk-bone);
  border: 1px solid var(--tk-rule);
  display: flex; flex-direction: column;
}
.tk-card__media {
  border-left: 0; border-right: 0; border-top: 0;
}
.tk-card__body {
  padding: 24px 24px 28px;
  display: flex; flex-direction: column; gap: 16px;
  flex: 1;
}
.tk-card__meta {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap;
}
.tk-card__ref {
  font-family: var(--tk-font-mono); font-size: 12px; color: var(--tk-stone);
  letter-spacing: 0.08em;
}
.tk-card__title { font-size: 22px; font-weight: 500; line-height: 1.2; margin: 0; }
.tk-card__body p { font-size: 14px; color: var(--tk-graphite); line-height: 1.55; flex: 1; }
.tk-card__link {
  font-size: 14px; font-weight: 500; color: var(--tk-ink);
  display: inline-flex; align-items: center; gap: 8px;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
  align-self: flex-start;
}

/* ─── Sectors list ────────────────────────────────── */
.tk-sectors-list {
  border-top: 1px solid var(--tk-rule);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.tk-sectors-list a {
  padding: 28px 24px 28px 0;
  border-bottom: 1px solid var(--tk-rule);
  display: flex; flex-direction: column; gap: 8px;
  transition: background 160ms;
}
.tk-sectors-list a:hover { background: var(--tk-paper); }
.tk-sectors-list__code { font-family: var(--tk-font-mono); font-size: 11px; color: var(--tk-stone); letter-spacing: 0.08em; }
.tk-sectors-list__name { font-size: 18px; font-weight: 500; color: var(--tk-ink); }
.tk-sectors-list__ex { font-size: 13px; color: var(--tk-stone); margin-top: 4px; }

/* ─── CTA banner ──────────────────────────────────── */
.tk-ctaband {
  background: var(--tk-green);
  color: var(--tk-bone);
  padding: 96px 0;
}
.tk-ctaband--deep { background: var(--tk-green-deep); padding: 80px 0; }
.tk-ctaband__grid {
  display: grid; grid-template-columns: 1fr; gap: 48px; align-items: end;
}
.tk-ctaband__title {
  font-size: clamp(36px, 5vw, 64px); line-height: 1.05; letter-spacing: -0.015em;
  font-weight: 500; margin: 16px 0 0; color: var(--tk-bone); max-width: 720px;
}
.tk-ctaband__lede {
  font-size: 16px; line-height: 1.55; color: rgba(245,242,236,0.85); max-width: 420px;
}
.tk-ctaband__col { display: flex; flex-direction: column; gap: 24px; max-width: 420px; }
.tk-ctaband__btns { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) { .tk-ctaband__grid { grid-template-columns: 1.4fr 1fr; gap: 64px; } }

.tk-btn--bone {
  background: var(--tk-bone);
  color: var(--tk-green-deep);
}
.tk-btn--bone:hover { background: #fff; }

/* ─── Cross sell ──────────────────────────────────── */
.tk-crosssell {
  background: var(--tk-green-deep);
  color: var(--tk-bone);
  padding: 80px 0;
}
.tk-crosssell__title {
  font-family: var(--tk-font-mono); font-size: 12px; letter-spacing: 0.08em;
  color: rgba(245,242,236,0.65);
}
.tk-crosssell__grid {
  margin-top: 32px;
  display: grid; gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  border-top: 1px solid rgba(245,242,236,0.15);
}
.tk-crosssell__grid a {
  padding: 32px 24px 32px 0;
  border-bottom: 1px solid rgba(245,242,236,0.15);
  border-right: 1px solid rgba(245,242,236,0.15);
  display: flex; flex-direction: column; gap: 8px;
  color: var(--tk-bone);
}
.tk-crosssell__grid a:last-child { border-right: none; }
.tk-crosssell__grid a:not(:first-child) { padding-left: 24px; }
.tk-crosssell__cat { font-family: var(--tk-font-mono); font-size: 11px; color: rgba(245,242,236,0.5); letter-spacing: 0.08em; }
.tk-crosssell__t { font-size: 22px; font-weight: 500; margin: 8px 0; display: flex; align-items: center; gap: 12px; }
.tk-crosssell__d { font-size: 14px; color: rgba(245,242,236,0.65); line-height: 1.5; margin: 0; }

/* ─── Trust band ──────────────────────────────────── */
.tk-trust {
  background: var(--tk-green-deep);
  color: var(--tk-bone);
  padding: 56px 0;
  border-top: 1px solid rgba(245, 242, 236, 0.08);
}
.tk-trust__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}
.tk-trust__eyebrow {
  font-family: var(--tk-font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(245, 242, 236, 0.55);
}
.tk-trust__statement {
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.25;
  letter-spacing: -0.005em;
  font-weight: 500;
  margin: 0;
  max-width: 760px;
  color: var(--tk-bone);
}
.tk-trust__statement--mute {
  color: rgba(245, 242, 236, 0.55);
}
.tk-trust__sectors {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  justify-content: center;
}
.tk-trust__sectors li {
  font-family: var(--tk-font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.7);
  padding: 6px 12px;
  border: 1px solid rgba(245, 242, 236, 0.15);
  border-radius: 2px;
}

/* ─── Comparison table ────────────────────────────── */
.tk-compare {
  border: 1px solid var(--tk-rule);
  background: var(--tk-bone);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tk-compare table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}
.tk-compare thead th {
  padding: 14px 16px;
  border-bottom: 1px solid var(--tk-ink);
  background: var(--tk-paper);
  font-weight: 500;
  color: var(--tk-ink);
  vertical-align: bottom;
  white-space: nowrap;
}
.tk-compare thead th.tk-compare__hero {
  color: var(--tk-green);
  background: var(--tk-paper);
}
.tk-compare thead th .tk-compare__sub {
  display: block;
  font-family: var(--tk-font-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--tk-stone);
  letter-spacing: 0.04em;
  margin-top: 2px;
  text-transform: uppercase;
}
.tk-compare tbody th {
  padding: 12px 16px;
  border-bottom: 1px solid var(--tk-rule);
  font-weight: 500;
  color: var(--tk-ink);
  white-space: nowrap;
  vertical-align: top;
  background: var(--tk-paper);
}
.tk-compare tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--tk-rule);
  border-left: 1px solid var(--tk-rule);
  color: var(--tk-graphite);
  vertical-align: top;
}
.tk-compare tbody td.tk-compare__win {
  color: var(--tk-ink);
  font-weight: 500;
  background: rgba(31, 61, 46, 0.04);
}
.tk-compare__yes,
.tk-compare__no,
.tk-compare__mid {
  display: inline-block;
  font-family: var(--tk-font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 2px;
  border: 1px solid var(--tk-rule);
  margin-bottom: 4px;
}
.tk-compare__yes { color: var(--tk-green); border-color: var(--tk-green-line); }
.tk-compare__no { color: var(--tk-stone); }
.tk-compare__mid { color: var(--tk-graphite); }
.tk-compare__note {
  font-family: var(--tk-font-mono);
  font-size: 11px;
  color: var(--tk-stone);
  margin-top: 8px;
  letter-spacing: 0.04em;
}

/* ─── FAQ ─────────────────────────────────────────── */
.tk-faq { margin: 0; padding: 0; border-top: 1px solid var(--tk-rule); }
.tk-faq__item { padding: 28px 0; border-bottom: 1px solid var(--tk-rule); }
.tk-faq__q {
  font-size: var(--tk-fs-20);
  font-weight: 500;
  line-height: 1.3;
  color: var(--tk-ink);
  margin: 0 0 12px;
}
.tk-faq__a {
  font-size: var(--tk-fs-15);
  line-height: 1.6;
  color: var(--tk-graphite);
  margin: 0;
  max-width: 760px;
}

/* ─── TOC inline ──────────────────────────────────── */
.tk-toc {
  background: var(--tk-paper);
  padding: 32px 0;
}
.tk-toc__inner {
  display: flex; flex-wrap: wrap; gap: 32px;
  justify-content: space-between; align-items: center;
}
.tk-toc__title { font-family: var(--tk-font-mono); font-size: 11px; color: var(--tk-stone); letter-spacing: 0.08em; }
.tk-toc__list { display: flex; flex-wrap: wrap; gap: 24px; }
.tk-toc__list a {
  font-size: 14px;
  color: var(--tk-ink);
  border-bottom: 1px solid var(--tk-rule);
  padding-bottom: 2px;
}
.tk-toc__list a:hover { border-bottom-color: var(--tk-ink); }

/* ─── Definition list (k-v technical) ────────────── */
.tk-deflist { border-top: 1px solid var(--tk-rule); }
.tk-deflist > div {
  display: grid; gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--tk-rule);
  align-items: baseline;
}
.tk-deflist--2col > div { grid-template-columns: minmax(200px, 1fr) 2fr; }
.tk-deflist--3col > div { grid-template-columns: 1fr auto 1.4fr; }
.tk-deflist__k { font-size: 14px; font-weight: 500; color: var(--tk-ink); }
.tk-deflist__v { font-size: 14px; color: var(--tk-graphite); }
.tk-deflist__m { font-family: var(--tk-font-mono); font-size: 14px; color: var(--tk-ink); font-weight: 500; }

/* ─── Form ──────────────────────────────────────── */
.tk-form-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.tk-field--full { grid-column: 1 / -1; }
.tk-field__hint { font-size: 12px; color: var(--tk-stone); margin-top: 4px; }
@media (min-width: 640px) {
  .tk-form-grid { grid-template-columns: 1fr 1fr; }
}

.tk-stepper {
  display: flex; gap: 0; margin-bottom: 48px;
  border-bottom: 1px solid var(--tk-rule);
}
.tk-stepper__item {
  flex: 1; padding: 12px 0 16px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0.5;
}
.tk-stepper__item.is-active { opacity: 1; border-bottom-color: var(--tk-green); }
.tk-stepper__item.is-done { opacity: 1; }
.tk-stepper__num { font-family: var(--tk-font-mono); font-size: 11px; color: var(--tk-stone); letter-spacing: 0.08em; }
.tk-stepper__item.is-active .tk-stepper__num { color: var(--tk-green); }
.tk-stepper__label { font-size: 13px; color: var(--tk-graphite); }
.tk-stepper__item.is-active .tk-stepper__label { color: var(--tk-ink); font-weight: 500; }
@media (max-width: 600px) { .tk-stepper__label { display: none; } }

.tk-contact-layout {
  display: grid; grid-template-columns: 1fr; gap: 56px;
  align-items: start;
}
@media (min-width: 960px) {
  .tk-contact-layout { grid-template-columns: 320px 1fr; gap: 80px; }
}
.tk-contact__sidebar {
  position: sticky; top: 96px;
  display: flex; flex-direction: column; gap: 32px;
}
.tk-sidebox {
  background: var(--tk-paper); border: 1px solid var(--tk-rule); padding: 24px;
}
.tk-sidebox__title { font-family: var(--tk-font-mono); font-size: 11px; color: var(--tk-stone); letter-spacing: 0.08em; }
.tk-sidebox ul { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 16px; }
.tk-sidebox li { display: grid; grid-template-columns: 60px 1fr; gap: 12px; align-items: baseline; }
.tk-sidebox li > span:first-child { font-family: var(--tk-font-mono); font-size: 13px; color: var(--tk-green); font-weight: 500; }
.tk-sidebox li > span:last-child { font-size: 14px; color: var(--tk-graphite); line-height: 1.5; }

.tk-sector-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tk-sector-chip {
  padding: 10px 16px; font-size: 14px;
  border: 1px solid var(--tk-rule);
  background: var(--tk-paper); color: var(--tk-ink);
  border-radius: var(--tk-radius-sm); cursor: pointer;
  transition: all 160ms;
}
.tk-sector-chip[aria-pressed="true"] {
  border-color: var(--tk-green);
  background: var(--tk-green);
  color: var(--tk-bone);
}

/* ─── Doc table (ressources) ─────────────────────── */
.tk-doc-list {
  display: grid; gap: 0; grid-template-columns: 1fr;
  border-top: 1px solid var(--tk-rule);
}
.tk-doc-row {
  display: grid; grid-template-columns: 140px 1fr auto auto auto;
  gap: 24px; padding: 20px 8px;
  border-bottom: 1px solid var(--tk-rule);
  align-items: center; transition: background 160ms;
}
.tk-doc-row:hover { background: var(--tk-paper); }
.tk-doc__type {
  font-family: var(--tk-font-mono); font-size: 11px; color: var(--tk-green);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.tk-doc__title { font-size: 16px; font-weight: 500; color: var(--tk-ink); line-height: 1.4; }
.tk-doc__meta { font-family: var(--tk-font-mono); font-size: 12px; color: var(--tk-stone); }
@media (max-width: 720px) {
  .tk-doc-row { grid-template-columns: 1fr auto; }
  .tk-doc__type, .tk-doc__meta { display: none; }
}

/* ─── Filter bar ─────────────────────────────────── */
.tk-filterbar {
  background: var(--tk-paper);
  border-bottom: 1px solid var(--tk-rule);
}
.tk-filterbar__inner {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 16px var(--tk-gutter);
}
.tk-filterchip {
  padding: 8px 14px; font-size: 13px;
  border: 1px solid var(--tk-rule);
  background: transparent; color: var(--tk-ink);
  border-radius: 2px; cursor: pointer;
  transition: all 160ms;
}
.tk-filterchip[aria-pressed="true"] {
  border-color: var(--tk-green);
  background: var(--tk-green);
  color: var(--tk-bone);
}

/* ─── Skip link (a11y) ───────────────────────────── */
.tk-skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--tk-ink); color: var(--tk-bone);
  padding: 12px 16px; font-size: 14px; z-index: 100;
}
.tk-skip:focus { left: 8px; top: 8px; }

/* ─── Misc ───────────────────────────────────────── */
.tk-grid-2 { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: start; }
@media (min-width: 900px) { .tk-grid-2 { grid-template-columns: 1fr 1.1fr; gap: 80px; } }

.tk-grid-2--proof { display: grid; grid-template-columns: 1fr; gap: 64px; }
@media (min-width: 900px) { .tk-grid-2--proof { grid-template-columns: 1fr 1.1fr; gap: 80px; } }

.tk-grid-cta-flex {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; flex-wrap: wrap; margin-bottom: 48px;
}

.tk-limits {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  border-top: 1px solid var(--tk-rule);
}
.tk-limits > * {
  padding: 32px 32px 32px 0;
  border-bottom: 1px solid var(--tk-rule);
  border-right: 1px solid var(--tk-rule);
}
.tk-limits > *:nth-child(2n) { border-right: none; padding-left: 32px; padding-right: 0; }
.tk-limits h4 { font-size: 20px; font-weight: 500; margin-bottom: 12px; }
.tk-limits p { font-size: 14px; color: var(--tk-graphite); line-height: 1.55; margin: 0; }
@media (max-width: 720px) {
  .tk-limits > * { padding-left: 0 !important; padding-right: 0 !important; border-right: none !important; }
}

.tk-cycle {
  display: grid; grid-template-columns: 1fr;
  border-top: 1px solid var(--tk-rule);
}
.tk-cycle > div {
  display: grid; grid-template-columns: auto 1fr; gap: 32px;
  padding: 28px 0; border-bottom: 1px solid var(--tk-rule);
  align-items: baseline;
}
.tk-cycle__t {
  font-family: var(--tk-font-mono); font-size: 13px;
  color: var(--tk-green); font-weight: 500; letter-spacing: 0.04em;
  min-width: 140px;
}
.tk-cycle__h { font-size: 18px; font-weight: 500; margin: 0 0 8px; }
.tk-cycle__b { font-size: 14px; color: var(--tk-graphite); line-height: 1.55; margin: 0; max-width: 720px; }

/* Responsive helpers */
.tk-only-desktop { display: none; }
.tk-only-mobile { display: block; }
@media (min-width: 768px) {
  .tk-only-desktop { display: block; }
  .tk-only-mobile { display: none; }
}

/* ─── Motion : reveal au scroll ───────────────────── */
.tk-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 700ms cubic-bezier(0.2, 0, 0, 1),
    transform 700ms cubic-bezier(0.2, 0, 0, 1);
  will-change: opacity, transform;
}
.tk-reveal.is-visible {
  opacity: 1;
  transform: none;
}
.tk-reveal--delay-1 { transition-delay: 80ms; }
.tk-reveal--delay-2 { transition-delay: 160ms; }
.tk-reveal--delay-3 { transition-delay: 240ms; }
.tk-reveal--delay-4 { transition-delay: 320ms; }

/* Counters : taille fixe pour éviter le reflow pendant l'anim */
[data-count-to] { font-variant-numeric: tabular-nums; }

/* ─── Hover refinements ──────────────────────────── */
.tk-card,
.tk-pillar {
  transition:
    transform 300ms cubic-bezier(0.2, 0, 0, 1),
    border-color 200ms ease,
    box-shadow 300ms ease;
}
.tk-card:hover,
.tk-pillar:hover {
  border-color: var(--tk-green-line);
  transform: translateY(-2px);
}
.tk-card:hover { box-shadow: var(--tk-shadow-2); }

/* Subtle zoom sur les images au hover de la carte parente */
.tk-card .tk-pic > img,
.tk-pic > img {
  transition: transform 700ms cubic-bezier(0.2, 0, 0, 1);
}
.tk-card:hover .tk-pic > img,
.tk-pic:hover > img {
  transform: scale(1.03);
}

/* Sectors list — flèche qui glisse au hover */
.tk-sectors-list a {
  transition: background 200ms ease, padding-left 200ms ease;
}
.tk-sectors-list a:hover { padding-left: 8px; }
.tk-sectors-list a > svg {
  transition: transform 200ms cubic-bezier(0.2, 0, 0, 1);
}
.tk-sectors-list a:hover > svg { transform: translateX(4px); }

/* CTA buttons — slight scale + arrow translate */
.tk-btn {
  transition:
    background var(--tk-dur) var(--tk-ease),
    color var(--tk-dur) var(--tk-ease),
    border-color var(--tk-dur) var(--tk-ease),
    transform 160ms cubic-bezier(0.2, 0, 0, 1);
}
.tk-btn:active { transform: scale(0.97); }
.tk-btn svg {
  transition: transform 240ms cubic-bezier(0.2, 0, 0, 1);
}
.tk-btn:hover svg { transform: translateX(4px); }

/* Pillar links arrow — same pattern */
.tk-pillar__link svg,
.tk-card__link svg {
  transition: transform 240ms cubic-bezier(0.2, 0, 0, 1);
}
.tk-pillar__link:hover svg,
.tk-card__link:hover svg { transform: translateX(4px); }

/* Hero chiffres — léger pop quand visibles */
.tk-hero__stat-v[data-count-to] {
  display: inline-block;
}

/* SVG chart paths — états initiaux pour préparer l'animation */
.tk-figure svg path[fill="none"] {
  /* Sera surchargé par le JS pour anim. Pas de fallback no-JS car tracé statique reste lisible. */
}

/* Reduced motion : tout couper */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .tk-reveal { opacity: 1 !important; transform: none !important; }
  .tk-card:hover, .tk-pillar:hover, .tk-pic:hover > img { transform: none !important; }
}

/* ─── Print ───────────────────────────────────────── */
@media print {
  /* Reset to print-friendly defaults */
  *, *::before, *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    transition: none !important;
    animation: none !important;
  }
  html, body {
    background: #fff !important;
    color: #000 !important;
    font-size: 11pt;
    line-height: 1.45;
  }
  body { font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif; }

  /* Hide chrome */
  .tk-header,
  .tk-mobile-menu,
  .tk-skip,
  .tk-menu-toggle,
  .tk-header__cta,
  .tk-footer,
  .tk-ctaband,
  .tk-crosssell,
  .tk-trust,
  .tk-toc,
  .tk-filterbar,
  [data-tk-contact-form-wrap],
  [data-tk-contact-success],
  .tk-contact__sidebar,
  .tk-hero__bg,
  .tk-hero__veil,
  .tk-pillar__link,
  .tk-card__link,
  .tk-img-ph {
    display: none !important;
  }

  /* Remove header padding compensation */
  .tk-has-header-pad,
  .tk-pagehead,
  .tk-section,
  .tk-section--tight {
    padding-top: 0 !important;
    padding-bottom: 16pt !important;
  }
  .tk-hero {
    padding: 0 0 16pt 0 !important;
    background: #fff !important;
    color: #000 !important;
  }
  .tk-hero__title,
  .tk-hero__title--mute,
  .tk-hero__lede,
  .tk-hero__stat-v,
  .tk-hero__stat-u,
  .tk-hero__stat-l,
  .tk-hero__topline,
  .tk-trust__statement,
  .tk-trust__statement--mute {
    color: #000 !important;
  }

  /* Wrap and force single column */
  .tk-wrap {
    max-width: 100% !important;
    padding: 0 !important;
  }
  .tk-pillars,
  .tk-grid-cards,
  .tk-grid-2,
  .tk-grid-2--proof,
  .tk-tech-grid,
  .tk-sectors-list,
  .tk-limits {
    display: block !important;
  }
  .tk-pillar,
  .tk-card,
  .tk-sector-chip,
  .tk-defbox,
  .tk-figure {
    border-color: #999 !important;
    page-break-inside: avoid;
    margin-bottom: 12pt;
  }

  /* Type rhythm */
  h1, .tk-h1, .tk-display { font-size: 22pt !important; line-height: 1.15 !important; margin: 0 0 8pt !important; }
  h2, .tk-h2 { font-size: 16pt !important; line-height: 1.2 !important; margin: 16pt 0 6pt !important; page-break-after: avoid; }
  h3, .tk-h3, .tk-h4 { font-size: 13pt !important; margin: 10pt 0 4pt !important; page-break-after: avoid; }
  p, li, dd { font-size: 11pt !important; }

  /* Show URL after external/internal links — useful for printed audit */
  a[href]:not([href^="#"]):not([href^="mailto:"]):not([href^="tel:"])::after {
    content: " (" attr(href) ")";
    font-family: "IBM Plex Mono", Menlo, monospace;
    font-size: 9pt;
    color: #555 !important;
  }
  a, a:link { color: #000 !important; text-decoration: underline; }

  /* Tables */
  .tk-deflist > div,
  .tk-compare table {
    page-break-inside: avoid;
  }
  .tk-compare {
    border: 1px solid #000 !important;
    overflow: visible !important;
  }
  .tk-compare table { min-width: 0 !important; }
  .tk-compare thead th,
  .tk-compare tbody th,
  .tk-compare tbody td {
    border-color: #999 !important;
    padding: 6pt 8pt !important;
    font-size: 10pt !important;
  }

  /* FAQ */
  .tk-faq__item { page-break-inside: avoid; }

  /* Page setup */
  @page {
    margin: 1.5cm 1.5cm 2cm 1.5cm;
  }
  @page :first {
    margin-top: 1.2cm;
  }

  /* Print-only mention en bas de page */
  body::after {
    content: "TerraKool — terrakool.fr · staykool@terrakool.fr · Document imprimé depuis le site officiel";
    display: block;
    font-family: "IBM Plex Mono", Menlo, monospace;
    font-size: 9pt;
    color: #555 !important;
    text-align: center;
    margin-top: 16pt;
    padding-top: 8pt;
    border-top: 1px solid #ccc;
  }
}

/* Focus visibles */
a:focus-visible, button:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--tk-green);
  outline-offset: 2px;
}
