/* ============================================================ */
/*  HABiTEK — Marketing site styles                             */
/*  Warm, accessible, vulgarised — built on colors_and_type.css */
/* ============================================================ */

:root {
  --warm-bg: #FBFAF8;          /* warm off-white page */
  --warm-panel: #F4F1EC;       /* warm tinted panel */
  --site-max: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--warm-bg);
  color: var(--habitek-graphite);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

.wrap { max-width: var(--site-max); margin: 0 auto; padding: 0 32px; }
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }

/* ---- Eyebrow ---- */
.eyebrow {
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--habitek-red);
  margin: 0 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 3px;
  background: var(--habitek-red);
  display: inline-block;
}
.eyebrow--light { color: var(--habitek-yellow); }
.eyebrow--light::before { background: var(--habitek-yellow); }

/* ---- Headings ---- */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.98;
  color: var(--habitek-ink);
  margin: 0;
}
.h-sec {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.0;
  color: var(--habitek-ink);
  font-size: clamp(34px, 4.4vw, 56px);
  margin: 0 0 22px;
}
.lead {
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.6;
  color: var(--fg-2);
  max-width: 64ch;
  margin: 0 0 18px;
}
.prose p { margin: 0 0 18px; max-width: 68ch; }
.prose p:last-child { margin-bottom: 0; }

/* ---- Buttons ---- */
.btn {
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 15px 26px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  line-height: 1;
  transition: transform .14s var(--ease-standard), box-shadow .14s var(--ease-standard), background .14s var(--ease-standard);
  white-space: nowrap;
}
.btn--primary { background: var(--habitek-red); color: #fff; box-shadow: 0 5px 0 var(--habitek-red-deep); }
.btn--primary:hover { background: var(--habitek-red-soft); transform: translateY(-2px); box-shadow: 0 7px 0 var(--habitek-red-deep); }
.btn--primary:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--habitek-red-deep); }
.btn--ink { background: var(--habitek-ink); color: #fff; }
.btn--ink:hover { background: var(--habitek-charcoal); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--habitek-ink); border: 2px solid var(--habitek-ink); padding: 13px 24px; }
.btn--ghost:hover { background: var(--habitek-ink); color: #fff; }
.btn--ghost-light { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); padding: 13px 24px; }
.btn--ghost-light:hover { background: #fff; color: var(--habitek-ink); border-color: #fff; }

/* ---- Header / Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,250,248,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav__inner { display: flex; align-items: center; gap: 18px; height: 76px; }
.nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.nav__brand img { height: 42px; width: auto; }
.nav__links { display: flex; gap: 6px; align-items: center; }
.nav__link {
  font-weight: 600; font-size: 14.5px;
  color: var(--habitek-graphite);
  text-decoration: none; padding: 9px 13px; border-radius: 8px;
  white-space: nowrap;
  transition: background .14s, color .14s;
}
.nav__link:hover { background: var(--warm-panel); color: var(--habitek-ink); }
.nav__link.is-active { color: var(--habitek-red); }
.nav__burger { display: none; }

@media (max-width: 900px) {
  .nav__links {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--warm-bg); border-bottom: 1px solid var(--border-subtle);
    padding: 12px 20px 20px; display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__link { padding: 13px; font-size: 16px; }
  .nav__cta-wrap { margin-left: auto; }
  .nav__burger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  }
}

/* ---- Generic cards ---- */
.card {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .16s var(--ease-standard), box-shadow .16s var(--ease-standard);
}
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); }

/* ---- Info box (infographic style) ---- */
.infobox {
  background: #fff;
  border: 2px solid var(--habitek-ink);
  border-radius: 18px;
  padding: 34px 36px;
}
.infobox--warm { background: var(--warm-panel); border-color: transparent; }
.infobox--yellow { background: var(--habitek-yellow-soft); border-color: var(--habitek-yellow-deep); }

/* ---- Forms ---- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label {
  font-weight: 700; font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--habitek-ink);
}
.field input, .field select, .field textarea {
  font-family: var(--font-text); font-size: 16px; color: var(--habitek-ink);
  padding: 13px 15px; border: 1.5px solid var(--border-strong);
  border-radius: 10px; background: #fff; outline: none; width: 100%;
  transition: border-color .14s, box-shadow .14s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--habitek-ink); box-shadow: 0 0 0 3px var(--habitek-yellow);
}

/* ---- Photo placeholder ---- */
.photo {
  position: relative;
  background:
    repeating-linear-gradient(135deg, #ECE8E1 0 16px, #F3F0EA 16px 32px);
  border: 1px dashed var(--border-strong);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-3); overflow: hidden;
}
.photo__cap {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em;
  color: var(--fg-3); text-align: center; padding: 14px 18px; max-width: 80%;
  display: flex; flex-direction: column; gap: 6px; align-items: center;
}
.photo__cap b { font-family: var(--font-text); font-weight: 700; color: var(--fg-2); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }

/* ---- Orbit dot rule ---- */
.orbit-sep { display: inline-flex; align-items: center; gap: 0; }
.orbit-sep i { width: 9px; height: 9px; border-radius: 50%; background: var(--habitek-yellow); display: inline-block; }

/* ---- Footer ---- */
.foot { background: var(--habitek-ink); color: #fff; padding: 64px 0 30px; }
.foot a { color: #fff; text-decoration: none; border: 0; }
.foot a:hover { color: var(--habitek-yellow); }

/* ---- Download link (commanditaire) ---- */
.dl {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 12px; padding: 14px 18px;
  color: #fff; text-decoration: none;
  transition: background .14s, border-color .14s;
}
.dl:hover { background: rgba(255,255,255,0.12); border-color: var(--habitek-yellow); }
.dl b { display: block; font-family: var(--font-text); font-weight: 700; font-size: 15px; }
.dl small { display: block; font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,0.55); margin-top: 2px; }
.dl__flag {
  flex-shrink: 0; display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 9px;
  font-family: var(--font-text); font-weight: 800; font-size: 13px; letter-spacing: .04em;
  background: var(--habitek-yellow); color: var(--habitek-ink);
}

/* ---- Dark form (commanditaire) ---- */
.form-dark .field label { color: rgba(255,255,255,0.85); }
.form-dark .field input,
.form-dark .field select,
.form-dark .field textarea {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.22);
  color: #fff;
}
.form-dark .field input::placeholder,
.form-dark .field textarea::placeholder { color: rgba(255,255,255,0.4); }
.form-dark .field input:focus,
.form-dark .field select:focus,
.form-dark .field textarea:focus {
  border-color: var(--habitek-yellow);
  box-shadow: 0 0 0 3px rgba(245,197,24,0.3);
}
.form-dark .field select option { color: #141414; }

/* ---- Social buttons ---- */
.social {
  width: 48px; height: 48px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--habitek-ink); color: #fff; text-decoration: none; border: 0;
  transition: background .14s, transform .14s;
}
.social:hover { background: var(--habitek-red); transform: translateY(-2px); }

/* ---- Gallery ---- */
.gal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 150px;
  gap: 14px;
}
.gal-grid .photo { border-radius: 12px; }
.gal-grid .wide { grid-column: span 2; }
.gal-grid .tall { grid-row: span 2; }
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; justify-content: center; }
.chip {
  font-family: var(--font-text); font-weight: 700; font-size: 13px; letter-spacing: 0.04em;
  padding: 10px 16px; border-radius: 999px; cursor: pointer; text-transform: uppercase;
  border: 1.5px solid var(--border-strong); background: #fff; color: var(--habitek-graphite);
  transition: background .14s, color .14s, border-color .14s;
}
.chip:hover { border-color: var(--habitek-ink); }
.chip.is-active { background: var(--habitek-ink); color: #fff; border-color: var(--habitek-ink); }

@media (max-width: 760px) {
  .gal-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Edition cards (Compétitions hub) ---- */
.ed-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.ed-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border-subtle); border-radius: 16px;
  overflow: hidden; text-decoration: none; border-bottom: 0;
  transition: transform .16s var(--ease-standard), box-shadow .16s var(--ease-standard);
}
.ed-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); color: inherit; }
.ed-card__media { position: relative; aspect-ratio: 16/10; }
.ed-card__body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.ed-card__year {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em;
  color: var(--fg-3); margin-bottom: 6px;
}
.ed-card__title {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  letter-spacing: -0.01em; line-height: 1; color: var(--habitek-ink);
  font-size: 30px; margin: 0 0 12px;
}
.ed-card__blurb { font-size: 15.5px; line-height: 1.55; color: var(--fg-2); margin: 0 0 18px; flex: 1; }
.ed-card__more {
  font-family: var(--font-text); font-weight: 700; font-size: 14px; letter-spacing: .02em;
  color: var(--habitek-red); display: inline-flex; align-items: center; gap: 8px;
}
.ed-card.is-feature { grid-column: 1 / -1; flex-direction: row; }
.ed-card.is-feature .ed-card__media { aspect-ratio: auto; min-width: 46%; flex: 0 0 46%; }
.ed-card.is-feature .ed-card__body { padding: 40px 44px; justify-content: center; }
.ed-card.is-feature .ed-card__title { font-size: clamp(34px, 4vw, 54px); }
.ed-card.is-feature .ed-card__blurb { font-size: 18px; max-width: 50ch; }

.status-tag {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  font-family: var(--font-text); font-weight: 700; font-size: 11.5px;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 7px 13px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px;
}
.status-tag--won  { background: var(--habitek-yellow); color: var(--habitek-ink); }
.status-tag--live { background: var(--habitek-red); color: #fff; }
.status-tag--soon { background: var(--habitek-ink); color: #fff; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: livePulse 1.6s var(--ease-standard) infinite; }
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,.7); }
  70%  { box-shadow: 0 0 0 7px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

/* ---- Back / breadcrumb link ---- */
.backlink {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-text); font-weight: 700; font-size: 13px;
  letter-spacing: .04em; text-transform: uppercase;
  color: rgba(255,255,255,0.75); border: 0; text-decoration: none;
}
.backlink:hover { color: var(--habitek-yellow); }

/* ---- Article result chips ---- */
.result-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.result-cell { border-left: 3px solid var(--habitek-red); padding-left: 20px; }
.result-cell .big { font-family: var(--font-display); font-weight: 900; color: var(--habitek-ink); font-size: clamp(34px,4vw,52px); line-height: 1; }
.result-cell .lbl { font-size: 14.5px; color: var(--fg-2); margin-top: 8px; line-height: 1.45; }

/* ---- Live dashboard ---- */
.cabin-key { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 14px; color: var(--habitek-ink); }
.cabin-key i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.now-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.now-card {
  background: #fff; border: 1px solid var(--border-subtle); border-radius: 16px;
  padding: 22px 24px; position: relative; overflow: hidden;
}
.now-card--ext { background: var(--habitek-ink); color: #fff; border-color: transparent; }
.now-card__hd { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.now-card__hd b { font-family: var(--font-text); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.now-metric { display: flex; align-items: baseline; gap: 14px; }
.now-metric .v { font-family: var(--font-display); font-weight: 900; font-size: 46px; line-height: 0.9; letter-spacing: -0.02em; }
.now-metric .u { font-family: var(--font-mono); font-size: 13px; opacity: .65; }
.now-sub { font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); margin-top: 4px; }
.now-card--ext .now-sub { color: rgba(255,255,255,0.55); }
.chart-card {
  background: #fff; border: 1px solid var(--border-subtle); border-radius: 18px;
  padding: 30px 32px 24px;
}
.chart-legend { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 18px; }
.chart-legend .lg { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; color: var(--fg-1); }
.chart-legend .lg i { width: 22px; height: 3px; border-radius: 2px; display: inline-block; }
.chart-legend .lg i.dash { background-image: repeating-linear-gradient(90deg, currentColor 0 5px, transparent 5px 9px); height: 3px; }
.chart-svg { width: 100%; height: auto; display: block; }
.chart-svg text { font-family: var(--font-mono); }
.chart-pulse { animation: chartPulse 1.8s var(--ease-standard) infinite; transform-box: fill-box; transform-origin: center; }
@keyframes chartPulse { 0% { opacity: .35; r: 8; } 60% { opacity: 0; r: 15; } 100% { opacity: 0; r: 15; } }
.live-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-text); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  background: var(--habitek-red); color: #fff; padding: 8px 15px; border-radius: 999px;
}

@media (max-width: 820px) {
  .ed-grid { grid-template-columns: 1fr; }
  .ed-card.is-feature { flex-direction: column; }
  .ed-card.is-feature .ed-card__media { aspect-ratio: 16/10; flex: none; min-width: 0; }
  .ed-card.is-feature .ed-card__body { padding: 28px 26px; }
  .now-grid { grid-template-columns: 1fr; }
  .result-row { grid-template-columns: 1fr; gap: 14px; }
}

/* ---- Utilities ---- */
.grid { display: grid; gap: 22px; }

/* ============================================================ */
/*  Press review — editorial link cards                         */
/* ============================================================ */
.press-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.press-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border-subtle); border-radius: 16px;
  padding: 24px 26px 22px; text-decoration: none; border-bottom: 0;
  transition: transform .16s var(--ease-standard), box-shadow .16s var(--ease-standard), border-color .16s var(--ease-standard);
}
.press-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); border-color: var(--border-strong); color: inherit; }
.press-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.press-type {
  font-family: var(--font-text); font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 7px;
}
.press-type::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.press-date { font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); }
.press-src {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--habitek-red); margin-bottom: 8px;
}
.press-title {
  font-family: var(--font-text); font-weight: 700; font-size: 19px; line-height: 1.32;
  color: var(--habitek-ink); margin: 0 0 20px; text-wrap: pretty; flex: 1;
}
.press-verb {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-text); font-weight: 700; font-size: 14px; color: var(--habitek-red);
}
.press-card:hover .press-verb svg { transform: translate(2px, -2px); }
.press-verb svg { transition: transform .16s var(--ease-standard); }

@media (max-width: 880px) { .press-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .press-grid { grid-template-columns: 1fr; } }

/* ============================================================ */
/*  Partnership tiers — large medallions                        */
/* ============================================================ */
.tier-glow {
  position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%);
  width: 86%; height: 86%; border-radius: 50%;
  filter: blur(34px); opacity: 0.28; z-index: 0; pointer-events: none;
}
.tier-feature__medal img, .tier-card__medal img { position: relative; z-index: 1; }

/* Featured (top) tier */
.tier-feature {
  display: grid; grid-template-columns: clamp(220px, 26vw, 320px) 1fr; gap: clamp(28px, 4vw, 56px);
  align-items: center;
  background: #fff; border: 1px solid var(--border-subtle);
  border-radius: 24px; padding: clamp(28px, 4vw, 52px);
  margin-bottom: 30px; position: relative; overflow: hidden;
  box-shadow: var(--shadow-2);
}
.tier-feature::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--accent);
}
.tier-feature__medal { position: relative; display: grid; place-items: center; }
.tier-feature__medal img { width: 100%; max-width: 300px; height: auto; filter: drop-shadow(0 14px 26px rgba(20,20,20,0.22)); }
.tier-rank {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-text); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; background: var(--accent); padding: 7px 14px; border-radius: 999px; margin-bottom: 16px;
}
.tier-feature__name {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em;
  font-size: clamp(30px, 3.6vw, 48px); line-height: 1; color: var(--habitek-ink); margin: 0 0 14px;
}
.tier-feature__accroche { font-size: clamp(17px, 1.7vw, 21px); line-height: 1.5; color: var(--fg-2); margin: 0 0 22px; max-width: 42ch; }
.tier-amount {
  font-family: var(--font-mono); font-weight: 700; letter-spacing: .01em;
  font-size: 17px; display: inline-block;
}
.tier-amount--lg {
  font-size: clamp(22px, 2.4vw, 30px);
  border: 2px solid currentColor; border-radius: 999px; padding: 9px 22px;
}

/* Grid of remaining tiers */
.tier-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tier-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: #fff; border: 1px solid var(--border-subtle); border-radius: 20px;
  padding: 30px 22px 28px; position: relative; overflow: hidden;
  transition: transform .16s var(--ease-standard), box-shadow .16s var(--ease-standard);
}
.tier-card::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--accent);
}
.tier-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); }
.tier-card__medal { position: relative; display: grid; place-items: center; margin-bottom: 18px; }
.tier-card__medal img { width: clamp(140px, 15vw, 170px); height: auto; filter: drop-shadow(0 10px 18px rgba(20,20,20,0.18)); }
.tier-card .tier-amount { margin-bottom: 12px; }
.tier-card__accroche { font-size: 15px; line-height: 1.5; color: var(--fg-2); margin: 0; max-width: 24ch; }

@media (max-width: 960px) {
  .tier-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .tier-feature { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .tier-feature::before { width: 100%; height: 6px; bottom: auto; }
  .tier-feature__accroche { margin-left: auto; margin-right: auto; }
}
@media (max-width: 460px) {
  .tier-grid { grid-template-columns: 1fr; }
}
.muted { color: var(--fg-3); }
.center { text-align: center; }
.flag {
  font-family: var(--font-mono); font-size: 11px; color: var(--fg-3);
  background: var(--warm-panel); border-radius: 8px; padding: 8px 12px;
  display: inline-block;
}
