/* IFA landing Astro: raccords entre la copy structurée et le design corporate. */

.mobile-menu {
  border-top: 1px solid var(--border-1);
  background: color-mix(in srgb, var(--ifa-paper) 94%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
}

.mobile-menu .container {
  display: grid;
  gap: 4px;
  padding-block: 12px 18px;
}

.mobile-menu a {
  border-radius: var(--r-input);
  color: var(--fg-1);
  font-size: 15px;
  font-weight: 500;
  padding: 10px 12px;
}

.mobile-menu a:hover {
  background: var(--ifa-ink-50);
}

.hero-copy .display {
  max-width: 14ch;
}

.hero-variant-copy .hv .lead {
  max-width: 45ch;
}

.section-split {
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

.section-head {
  display: grid;
  gap: 18px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head.center .eyebrow {
  margin-inline: auto;
}

.section-content {
  margin-top: clamp(28px, 4vw, 48px);
}

.route-card .pill {
  width: fit-content;
}

.proof-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.proof-layout:not(:has(.proof-quote)) {
  grid-template-columns: 1fr;
}

.proof-quote {
  border-color: rgba(242,244,247,.16);
  color: inherit;
  margin: 0;
  padding: 26px;
}

.proof-quote .quote-mark {
  color: var(--accent);
  display: block;
  font-size: 46px;
  font-weight: 600;
  line-height: 0.9;
}

.proof-quote p {
  color: inherit;
  font-size: 18px;
  line-height: 1.55;
  margin: 10px 0 0;
}

.on-navy .proof-quote {
  border: 1px solid rgba(242,244,247,.16);
  border-radius: var(--r-card);
  background: rgba(242,244,247,.05);
}

.on-navy .proof-quote .quote-mark {
  color: var(--ifa-agent-300);
}

.form-band,
.final-cta {
  display: grid;
  gap: clamp(26px, 4vw, 42px);
}

.form-layout,
.final-cta {
  position: relative;
  z-index: 1;
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.cta-band .eyebrow {
  color: var(--ifa-agent-300);
}

.cta-band .eyebrow::before {
  background: var(--ifa-agent-300);
  box-shadow: 0 0 0 4px rgba(124,151,255,.18);
}

.static-form {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(242,244,247,.18);
  border-radius: var(--r-card);
  background: rgba(242,244,247,.06);
  padding: clamp(18px, 3vw, 26px);
}

.static-form label {
  display: grid;
  gap: 7px;
}

.static-form label > span {
  color: var(--ifa-navy-100);
  font-size: 13px;
  font-weight: 500;
}

.static-form input[type='text'],
.static-form input[type='email'],
.static-form input[type='date'],
.static-form input[type='tel'] {
  width: 100%;
  min-width: 0;
  height: 48px;
  border: 1px solid rgba(242,244,247,.2);
  border-radius: var(--r-input);
  background: rgba(242,244,247,.07);
  color: var(--ifa-ink-0);
  font: inherit;
  padding: 0 14px;
}

.static-form input::placeholder {
  color: var(--ifa-navy-300);
}

.static-form input:focus {
  border-color: var(--ifa-agent-300);
  box-shadow: 0 0 0 4px rgba(124,151,255,.18);
  outline: none;
}

.static-form .consent-field {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: 18px 1fr;
}

.static-form .consent-field input {
  margin-top: 3px;
}

.static-form .consent-field span {
  color: var(--ifa-navy-100);
  font-size: 12.5px;
  line-height: 1.5;
}

.confirmation-panel {
  display: none;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(124,151,255,.32);
  border-radius: var(--r-card);
  background: rgba(124,151,255,.1);
  color: var(--ifa-ink-0);
  padding: 18px 20px;
}

.confirmation-panel:target {
  display: block;
}

.confirmation-panel p {
  color: var(--ifa-navy-100);
  margin: 8px 0 0;
}

.final-cta {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.final-cta .lead {
  margin-top: 18px;
}

.mock-panel {
  max-width: 100%;
}

.mock-stage {
  min-height: 430px;
}

.mock-stage .demo-screen {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.mock-track {
  margin-top: 18px;
}

.mock-phone-rows {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.phone-stage .demo-screen {
  align-items: center;
  justify-content: center;
}

/* Scoped to the data-driven MockVisual (3 KPIs); the bespoke home dashboard
   has 4 KPIs and uses the base repeat(4, 1fr) from mock.css. */
.mock-panel .dash-kpis {
  grid-template-columns: repeat(3, 1fr);
}

.dash-kpi .v {
  overflow-wrap: anywhere;
}

.legal-page {
  background:
    radial-gradient(circle at 80% 0%, var(--ifa-agent-50), transparent 34%),
    var(--bg-1);
}

.legal-card {
  display: grid;
  gap: 20px;
  max-width: 760px;
}

/* Scoped to the legal-stub card's reassurance bar — must NOT affect the
   footer's ".footer-bottom .legal-links .legal-note" note (alignment). */
.legal-card .legal-note {
  justify-content: flex-start;
  margin-top: 10px;
}

/* Lead-capture forms (waitlist + contact): email row + RGPD consent + status.
   Overrides the base ".waitlist" row layout from mock.css to stack vertically. */
.waitlist { flex-direction: column; gap: 14px; align-items: stretch; max-width: 520px; }
.waitlist-row { display: flex; gap: 10px; }
@media (max-width: 520px) { .waitlist-row { flex-direction: column; } }
.waitlist .hp-field {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.waitlist-consent {
  display: flex; gap: 9px; align-items: flex-start; cursor: pointer;
  font-size: 12.5px; line-height: 1.45; color: var(--fg-2); max-width: 58ch;
}
.waitlist.on-navy-form .waitlist-consent { color: var(--ifa-navy-100); }
.waitlist-consent input[type='checkbox'] {
  flex: none; width: 16px; height: 16px; min-height: 0; margin: 2px 0 0; padding: 0;
  background: none; border: 0; border-radius: 0; box-shadow: none;
  accent-color: var(--accent); -webkit-appearance: checkbox; appearance: checkbox;
}
.waitlist-consent input[type='checkbox']:focus { outline: revert; box-shadow: none; }
.waitlist-consent a { color: var(--accent-700); font-weight: 500; }
.waitlist.on-navy-form .waitlist-consent a { color: var(--ifa-ink-0); text-decoration: underline; }
.waitlist-status { font-size: 13px; margin: 2px 0 0; }
.waitlist-status.is-error { color: #c0392b; }
.waitlist.on-navy-form .waitlist-status.is-error { color: #ff9b8a; }
.waitlist-status.is-ok { color: var(--ifa-teal-700); }
.waitlist.on-navy-form .waitlist-status.is-ok { color: #7fe0cf; }

/* Structured legal documents (Mentions légales, CGU, Confidentialité) */
.legal-grid { display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: start; }
.legal-toc { position: sticky; top: 90px; }
.legal-toc a { display: block; padding: 7px 0; font-size: 14px; color: var(--fg-2); border-left: 2px solid var(--border-1); padding-left: 14px; }
.legal-toc a:hover { color: var(--fg-1); border-color: var(--accent); }
.legal-body { max-width: 72ch; }
.legal-body h2 { margin: 48px 0 12px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { margin: 0 0 14px; }
@media (max-width: 820px){ .legal-grid { grid-template-columns: 1fr; } .legal-toc { position: static; display: none; } }

@media (max-width: 1020px) {
  .hero-layout,
  .section-split,
  .form-layout,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 580px;
  }

  .proof-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .hero {
    padding-top: 34px;
  }

  .hero-copy .display {
    max-width: none;
  }

  .hero-actions {
    align-items: stretch;
    display: grid;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .cn-chip.c1 {
    left: 0;
  }

  .cn-chip.c2 {
    right: 0;
  }

  .dash {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .dash-sb {
    display: none;
  }

  .mock-panel .dash-kpis {
    grid-template-columns: 1fr;
  }

  .dash-main {
    padding: 16px;
  }

  .dash-tbl th:nth-child(1),
  .dash-tbl td:nth-child(1) {
    width: 54%;
  }

  .mock-stage {
    min-height: 390px;
  }

  .form-layout {
    gap: 24px;
  }
}

@media (max-width: 520px) {
  .nav {
    gap: 12px;
  }

  .nav-brand .word {
    height: 17px;
  }

  .nav-cta {
    margin-left: auto;
  }

  .nav-cta .btn {
    display: none;
  }

  .display {
    font-size: 40px;
  }

  .h-xl {
    font-size: 32px;
  }

  .section {
    padding-block: 64px;
  }

  .cta-band {
    border-radius: 18px;
    padding: 28px 20px;
  }

  .static-form {
    padding: 16px;
  }

  .dm-phone {
    width: min(220px, 100%);
  }

  .dash-panel {
    overflow-x: auto;
  }

  .dash-tbl {
    min-width: 420px;
  }
}
