/* SubventionPilot — Landing-specific styles */

/* ========== HERO (shared) ========== */
.hero {
  padding-top: clamp(56px, 7vw, 96px);
  padding-bottom: clamp(56px, 7vw, 96px);
  position: relative;
  overflow: hidden;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--accent) 25%, transparent);
}
.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.hero-meta {
  margin-top: 28px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  color: var(--ink-muted);
  font-size: 13px;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 14px; height: 14px; color: var(--positive); }

/* ===== HERO V1 — Institutionnelle éditoriale ===== */
.hero-v1 {
  border-bottom: 1px solid var(--rule);
}
.hero-v1-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 72px;
  align-items: end;
}
.hero-v1 h1 { max-width: 14ch; margin: 0; }
.hero-v1 h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--brand);
}
.hero-v1 .lead { max-width: 46ch; margin: 24px 0 0; }
.hero-v1-figure {
  position: relative;
  padding: 36px;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  min-height: 340px;
}
.hero-v1-figure::before {
  content: "FIG. 01 — CAS RÉFÉRENCE";
  position: absolute;
  top: 16px; left: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
}
.hero-v1-figure .kpi {
  font-family: var(--font-display);
  font-size: clamp(64px, 9vw, 112px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.035em;
  color: var(--brand);
  font-variation-settings: "opsz" 144;
}
.hero-v1-figure .kpi small {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  font-weight: 500;
  margin-left: 6px;
  vertical-align: top;
}
.hero-v1-figure .caption {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 28ch;
  line-height: 1.5;
}
.hero-v1-figure .tag {
  position: absolute;
  top: 16px; right: 16px;
  display: inline-flex; gap: 6px; align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--positive);
  text-transform: uppercase;
}
.hero-v1-figure .tag::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--positive);
}

@media (max-width: 900px) {
  .hero-v1-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ===== HERO V2 — Tech data-driven ===== */
.hero-v2-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-v2 h1 { max-width: 14ch; margin: 0; letter-spacing: -0.025em; }
.hero-v2 .lead { max-width: 44ch; margin: 20px 0 0; }

.dashboard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.dashboard-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-sunken);
}
.dashboard-head .title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.dashboard-head .live {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--positive);
}
.dashboard-head .live .led { width: 6px; height: 6px; border-radius: 50%; background: var(--positive); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.dashboard-body { padding: 28px 28px 24px; }
.bars { display: grid; gap: 22px; }
.bar-row { display: grid; grid-template-columns: 1fr; gap: 8px; }
.bar-row .label-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px;
}
.bar-row .label-row .name { font-weight: 500; }
.bar-row .label-row .vals { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); }
.bar-row .vals b { color: var(--brand); font-weight: 600; }

.bar-track {
  position: relative;
  height: 28px;
  background: var(--bg-sunken);
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}
.bar-fill-metro, .bar-fill-dom {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  transition: width 1.6s cubic-bezier(.2,.8,.2,1);
}
.bar-fill-metro {
  background: color-mix(in oklch, var(--ink-muted) 25%, transparent);
  border-right: 1px dashed var(--ink-subtle);
  z-index: 1;
}
.bar-fill-dom {
  background: linear-gradient(90deg, var(--brand), var(--brand-soft));
  z-index: 2;
  box-shadow: inset 0 -1px 0 oklch(0 0 0 / 0.15);
}
.bar-track .pct-dom {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-ink);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.bar-track .pct-metro {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  white-space: nowrap;
}

.dashboard-foot {
  padding: 16px 28px;
  border-top: 1px solid var(--rule);
  background: var(--bg-sunken);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}
.dashboard-foot .legend { display: flex; gap: 16px; }
.dashboard-foot .legend span { display: inline-flex; align-items: center; gap: 6px; }
.dashboard-foot .swatch { width: 10px; height: 10px; border-radius: 2px; }
.dashboard-foot .swatch.dom { background: var(--brand); }
.dashboard-foot .swatch.metro { background: color-mix(in oklch, var(--ink-muted) 25%, transparent); border: 1px dashed var(--ink-subtle); }

@media (max-width: 900px) {
  .hero-v2-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ========== KPI STRIP ========== */
.kpi-strip {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--bg-sunken);
}
.kpi-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.kpi-strip-grid > div {
  padding: 32px 24px;
  border-right: 1px solid var(--rule);
}
.kpi-strip-grid > div:last-child { border-right: 0; }
.kpi-strip .num {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
}
.kpi-strip .num small {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  margin-left: 4px;
  vertical-align: top;
  font-weight: 500;
}
.kpi-strip .lbl {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.4;
  max-width: 22ch;
}
.kpi-strip .eyebrow-k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--accent-deep);
  text-transform: uppercase;
  margin-bottom: 12px;
}
@media (max-width: 900px) {
  .kpi-strip-grid { grid-template-columns: 1fr 1fr; }
  .kpi-strip-grid > div:nth-child(2) { border-right: 0; }
  .kpi-strip-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
}
@media (max-width: 520px) {
  .kpi-strip-grid { grid-template-columns: 1fr; }
  .kpi-strip-grid > div { border-right: 0; border-bottom: 1px solid var(--rule); }
  .kpi-strip-grid > div:last-child { border-bottom: 0; }
}

/* ========== SECTION HEADER ========== */
.sec-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 56px;
}
.sec-head .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.sec-head h2 { max-width: 18ch; margin-top: 12px; }
.sec-head .desc { color: var(--ink-soft); font-size: 17px; max-width: 48ch; }
@media (max-width: 900px) {
  .sec-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 40px; }
}

/* ========== DISPOSITIF CARDS ========== */
.disp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.disp-card {
  padding: 32px 28px 28px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
  position: relative;
  transition: background .15s ease;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.disp-card:hover { background: var(--bg-sunken); }
.disp-card .head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
}
.disp-card .ico {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: var(--brand-bg);
  color: var(--brand);
  display: grid; place-items: center;
}
.disp-card .ico svg { width: 18px; height: 18px; }
.disp-card .code {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}
.disp-card .amount {
  font-family: var(--font-display);
  font-size: clamp(36px, 3.6vw, 48px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
}
.disp-card .amount small {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  margin-left: 4px;
  vertical-align: top;
  font-weight: 500;
}
.disp-card .name {
  margin-top: 14px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.disp-card .desc {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.disp-card .link {
  margin-top: auto;
  padding-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 500;
}
.disp-card .link svg { width: 12px; height: 12px; transition: transform .15s ease; }
.disp-card:hover .link svg { transform: translateX(3px); }

@media (max-width: 900px) {
  .disp-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .disp-grid { grid-template-columns: 1fr; }
}

/* ========== METHOD ========== */
.method-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.method-step {
  padding: 40px 28px 36px;
  border-right: 1px solid var(--rule);
  position: relative;
}
.method-step:last-child { border-right: 0; }
.method-step .n {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
}
.method-step h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 20px 0 10px;
}
.method-step .meta {
  display: flex;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  margin-bottom: 16px;
}
.method-step .meta b { color: var(--accent-deep); font-weight: 600; }
.method-step p { margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.55; }

@media (max-width: 900px) {
  .method-list { grid-template-columns: 1fr 1fr; }
  .method-step { border-bottom: 1px solid var(--rule); }
  .method-step:nth-child(2) { border-right: 0; }
}
@media (max-width: 560px) {
  .method-list { grid-template-columns: 1fr; }
  .method-step { border-right: 0; }
}

/* ========== OFFERS ========== */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.offer-card {
  padding: 28px 24px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  min-height: 420px;
  position: relative;
}
.offer-card.highlighted {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 18%, transparent), var(--shadow-2);
}
.offer-card .flag {
  position: absolute;
  top: -11px; left: 20px;
  height: 22px;
  padding: 0 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  display: inline-flex;
  align-items: center;
}
.offer-card .price {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
  font-variation-settings: "opsz" 144;
}
.offer-card .price small {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-left: 6px;
}
.offer-card h3 { margin: 12px 0 6px; font-size: 17px; letter-spacing: -0.01em; }
.offer-card .duration {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  text-transform: uppercase;
}
.offer-card .desc {
  margin: 16px 0 20px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.offer-card .includes {
  list-style: none;
  padding: 16px 0 0;
  margin: 0 0 20px;
  border-top: 1px dashed var(--border);
  display: grid; gap: 8px;
}
.offer-card .includes li {
  display: flex; gap: 8px; align-items: start;
  font-size: 13px; color: var(--ink-soft);
}
.offer-card .includes svg {
  width: 13px; height: 13px; margin-top: 3px;
  color: var(--positive); flex-shrink: 0;
}
.offer-card .btn { margin-top: auto; justify-content: center; }

@media (max-width: 1000px) {
  .offer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .offer-grid { grid-template-columns: 1fr; }
}

/* ========== CTA BANNER ========== */
.cta-banner {
  background: var(--brand);
  color: var(--brand-ink);
  padding: clamp(48px, 7vw, 96px) 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 0% 100%, color-mix(in oklch, var(--brand-soft) 70%, transparent) 0%, transparent 60%),
    radial-gradient(circle at 100% 0%, color-mix(in oklch, var(--accent) 30%, transparent) 0%, transparent 50%);
  opacity: 0.6;
  pointer-events: none;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}
.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  max-width: 16ch;
  font-variation-settings: "opsz" 144;
}
.cta-banner p { margin-top: 18px; font-size: 17px; opacity: 0.85; max-width: 44ch; }
.cta-banner .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.cta-banner .btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent-deep); }
.cta-banner .btn-primary:hover { background: #fff; color: var(--accent-ink); }
.cta-banner .btn-ghost {
  background: transparent;
  color: var(--brand-ink);
  border-color: color-mix(in oklch, var(--brand-ink) 35%, transparent);
}
.cta-banner .btn-ghost:hover {
  background: color-mix(in oklch, var(--brand-ink) 10%, transparent);
  border-color: var(--brand-ink);
}
@media (max-width: 900px) {
  .cta-banner-grid { grid-template-columns: 1fr; }
  .cta-banner .actions { justify-content: flex-start; }
}

/* ========== TESTIMONIAL / CASE STUDY ========== */
.case-band {
  padding: clamp(48px, 6vw, 80px) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.case-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.case-fig {
  aspect-ratio: 4/3;
  border-radius: var(--r-lg);
}
.case-fig::after {
  content: "PHOTO · Hôtel réunionnais, 10 M€ projet";
}
.case-content .quote {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 96;
  color: var(--ink);
  margin: 0;
}
.case-content .quote::before { content: "« "; color: var(--brand); }
.case-content .quote::after { content: " »"; color: var(--brand); }
.case-content .attribution {
  margin-top: 24px;
  font-size: 13px;
  color: var(--ink-muted);
  display: flex;
  gap: 10px;
  align-items: center;
}
.case-content .attribution b { color: var(--ink); font-weight: 600; }
.case-content .numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.case-content .numbers .n {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--brand);
  font-variation-settings: "opsz" 144;
}
.case-content .numbers .l {
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .case-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ========== VARIATION SWITCHER ========== */
.variation-switch {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 60;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 4px;
  display: flex;
  gap: 2px;
  box-shadow: var(--shadow-3);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.variation-switch button {
  background: transparent;
  border: 0;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  color: var(--ink-muted);
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: inherit;
  font-size: inherit;
}
.variation-switch button.active {
  background: var(--brand);
  color: var(--brand-ink);
}
.variation-switch .label {
  padding: 8px 10px;
  color: var(--ink-muted);
  border-right: 1px solid var(--border);
  margin-right: 2px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
