/* GoFacturX — site statique, sans dépendance externe, sans police distante,
   sans script tiers et sans traceur. */

:root {
  --navy-950: #071427;
  --navy-900: #0b1b33;
  --navy-800: #102748;
  --blue-700: #1757b8;
  --blue-600: #2563d8;
  --blue-100: #eaf2ff;
  --sky-050: #f5f9ff;
  --green-700: #1d7a54;
  --green-100: #e8f6ef;
  --orange-700: #a85f0d;
  --orange-100: #fff2df;
  --ink: #172033;
  --muted: #5d687a;
  --line: #d9e2ef;
  --panel: #ffffff;
  --maxw: 1160px;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(7, 20, 39, 0.12);
  --header-offset: 88px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background: var(--sky-050);
}

a { color: var(--blue-700); }
a:hover { color: var(--blue-600); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.narrow { max-width: 850px; }

/* Header */
header.site {
  position: relative;
  z-index: 10;
  background: rgba(7, 20, 39, 0.96);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand:hover { color: #fff; text-decoration: none; }

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(145deg, #f7fbff, #bcd6ff);
  color: var(--navy-950);
  font-size: 0.82rem;
  font-weight: 900;
}

header.site nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

header.site nav a {
  color: #dce8fb;
  text-decoration: none;
  font-size: 0.94rem;
  padding: 8px 10px;
  border-radius: 8px;
}

header.site nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

/* Hero */
.hero {
  background:
    linear-gradient(135deg, rgba(7, 20, 39, 0.96), rgba(16, 39, 72, 0.92)),
    linear-gradient(90deg, var(--navy-950), var(--navy-800));
  color: #fff;
  padding: 78px 0 60px;
}

main section,
[id] {
  scroll-margin-top: var(--header-offset);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.78fr);
  gap: 56px;
  align-items: center;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2.35rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero .lead {
  margin: 24px 0 0;
  max-width: 720px;
  font-size: 1.18rem;
  color: #d7e4f5;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue-600);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow { color: #9fc4ff; }

.cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  line-height: 1.2;
}

.btn:hover { text-decoration: none; }

.btn.primary {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 12px 34px rgba(37, 99, 216, 0.28);
}

.btn.primary:hover { background: #1f56c2; color: #fff; }

.btn.secondary {
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.20);
}

.btn.secondary:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }

.text-link { font-weight: 800; }

/* Mockup */
.quote-mockup {
  min-height: 480px;
  display: grid;
  place-items: center;
}

.phone-frame {
  width: min(100%, 370px);
  min-height: 480px;
  padding: 22px;
  border-radius: 30px;
  background: linear-gradient(155deg, #f8fbff, #dce9fb);
  color: var(--ink);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.phone-top {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 26px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green-700);
}

.mock-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 18px;
}

.mock-card-head,
.quote-line,
.mock-total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.mock-card-head {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.86rem;
}

.mock-card-head strong { color: var(--green-700); }

.quote-line {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.quote-line span { color: var(--muted); }

.mock-total {
  margin-top: 20px;
  padding: 18px;
  border-radius: 12px;
  background: var(--navy-950);
  color: #fff;
}

.mock-total strong { font-size: 1.18rem; }

.signature-badge {
  display: inline-flex;
  margin-top: 18px;
  padding: 10px 13px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-700);
  font-weight: 800;
  font-size: 0.9rem;
}

/* Sections */
.trust-strip {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.trust-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding-top: 18px;
  padding-bottom: 18px;
}

.trust-items span {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--navy-800);
  font-weight: 800;
  font-size: 0.88rem;
}

.section {
  padding: 76px 0;
  background: #fff;
}

.section-soft {
  background: var(--sky-050);
}

.page-hero {
  padding: 78px 0 56px;
  background: linear-gradient(180deg, #fff, var(--sky-050));
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  color: var(--navy-950);
  font-size: clamp(2.05rem, 4vw, 3.6rem);
}

.lead,
.section-lead {
  color: var(--muted);
  font-size: 1.12rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading h2,
.split h2,
.reform-panel h2,
.caution-panel h2,
.final-cta h2 {
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.process-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.step-card,
.feature-card,
.timeline-card,
.mini-card,
.contact-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 10px 34px rgba(7, 20, 39, 0.06);
}

.step-card h3,
.feature-card h3,
.timeline-card h3,
.mini-card h3 {
  margin: 10px 0 8px;
  color: var(--navy-950);
  font-size: 1.08rem;
}

.step-card p,
.feature-card p,
.timeline-card p,
.mini-card p,
.contact-card p {
  margin: 0;
  color: var(--muted);
}

.step-number,
.timeline-date {
  display: inline-flex;
  color: var(--blue-700);
  font-weight: 900;
  font-size: 0.85rem;
}

.split,
.support-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 42px;
  align-items: start;
}

.benefit-list {
  display: grid;
  gap: 10px;
}

.benefit-list div,
.check-list li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-weight: 800;
  color: var(--navy-800);
}

.reform-panel,
.caution-panel,
.final-cta {
  background: var(--navy-950);
  color: #fff;
  border-radius: 18px;
  padding: 34px;
  box-shadow: var(--shadow);
}

.reform-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
}

.reform-panel h2,
.caution-panel h2,
.final-cta h2 {
  color: #fff;
}

.reform-panel p,
.caution-panel p,
.final-cta p {
  color: #d7e4f5;
}

.reform-panel a,
.final-cta a:not(.btn) { color: #9fc4ff; }

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.stacked-cards {
  display: grid;
  gap: 14px;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.check-list li {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #eef5ff;
}

.final-cta {
  text-align: center;
}

.final-cta .btn { margin-top: 12px; }

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
}

.tag.dispo { color: var(--green-700); background: var(--green-100); }
.tag.prevu { color: var(--orange-700); background: var(--orange-100); }

.note,
.disclaimer {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.note {
  background: var(--blue-100);
  color: var(--navy-800);
}

.disclaimer {
  background: #fff;
  color: var(--muted);
  font-size: 0.95rem;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 16px 0;
  background: #fff;
}

th,
td {
  border: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

th { background: var(--blue-100); color: var(--navy-800); }

ul { padding-left: 22px; }
li { margin: 6px 0; }

.small { font-size: 0.88rem; color: var(--muted); }

/* Footer */
footer.site {
  background: var(--navy-950);
  color: #d7e4f5;
  padding: 42px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 28px;
  align-items: start;
}

.footer-brand { margin-bottom: 12px; }

footer.site p,
footer.site .small { color: #aebed3; }

footer.site .links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: flex-end;
}

footer.site a {
  color: #dce8fb;
  text-decoration: none;
}

footer.site a:hover { color: #fff; text-decoration: underline; }

footer.site .small {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding-top: 18px;
}

@media (max-width: 900px) {
  .hero-grid,
  .split,
  .support-layout,
  .reform-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero { padding: 64px 0 48px; }
  .quote-mockup { min-height: 0; }
  .process-grid,
  .feature-grid,
  .timeline,
  .check-list {
    grid-template-columns: 1fr 1fr;
  }

  footer.site .links { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .nav-shell { align-items: flex-start; flex-direction: column; padding-top: 14px; padding-bottom: 14px; }
  header.site nav { justify-content: flex-start; }
  header.site nav a { padding-left: 0; }
  .hero h1,
  .page-hero h1 { font-size: 2.15rem; }
  .hero .lead,
  .lead,
  .section-lead { font-size: 1.02rem; }
  .section,
  .page-hero { padding: 54px 0; }
  .process-grid,
  .feature-grid,
  .timeline,
  .check-list {
    grid-template-columns: 1fr;
  }
  .reform-panel,
  .caution-panel,
  .final-cta { padding: 24px; border-radius: 12px; }
  .phone-frame { border-radius: 22px; min-height: 0; }
}
