/* Relancia — landing page
   Palette: bleu nuit / blanc / accent émeraude */

:root {
  --navy-950: #0b1220;
  --navy-900: #111827;
  --navy-800: #1a2438;
  --navy-700: #243049;
  --navy-600: #334155;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --emerald-500: #10b981;
  --emerald-400: #34d399;
  --emerald-600: #059669;
  --emerald-soft: rgba(16, 185, 129, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 10px 40px rgba(11, 18, 32, 0.12);
  --shadow-sm: 0 4px 16px rgba(11, 18, 32, 0.08);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1120px;
  --header-h: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--navy-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3 {
  line-height: 1.2;
  color: var(--navy-950);
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.container-narrow {
  width: min(100% - 2rem, 720px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--emerald-500);
  color: var(--navy-950);
  border-color: var(--emerald-500);
}

.btn-primary:hover {
  background: var(--emerald-400);
  border-color: var(--emerald-400);
}

.btn-secondary {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--slate-200);
}

.btn-secondary:hover {
  border-color: var(--navy-700);
  background: var(--slate-100);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
  height: var(--header-h);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  position: relative;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy-950);
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--emerald-500), var(--navy-800));
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-menu a:not(.btn) {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--navy-700);
}

.nav-menu a:not(.btn):hover {
  color: var(--emerald-600);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy-900);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  padding: 3.5rem 0 4rem;
  background:
    radial-gradient(ellipse 80% 60% at 70% 0%, rgba(16, 185, 129, 0.1), transparent),
    linear-gradient(180deg, var(--slate-100) 0%, var(--white) 100%);
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--emerald-600);
  margin-bottom: 0.75rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--navy-600);
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 1.25rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.875rem;
  color: var(--slate-500);
}

.hero-trust li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-trust li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald-500);
  flex-shrink: 0;
}

/* Dashboard mock */
.dashboard-card {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.dash-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.dash-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--emerald-400);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.25);
}

.dash-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--slate-400);
}

.dash-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.metric {
  background: var(--navy-800);
  border-radius: var(--radius);
  padding: 0.85rem;
}

.metric-label {
  display: block;
  font-size: 0.7rem;
  color: var(--slate-400);
  margin-bottom: 0.35rem;
}

.metric-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--emerald-400);
}

.metric-value strong {
  color: var(--white);
}

.dash-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dash-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  font-size: 0.8rem;
  background: var(--navy-800);
}

.dash-row.ok span:last-child {
  color: var(--emerald-400);
  font-weight: 600;
}

.dash-row.warn span:last-child {
  color: #fbbf24;
  font-weight: 600;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--slate-100);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.75rem;
}

.section-lead {
  color: var(--navy-600);
  margin: 0;
}

.note-example {
  font-size: 0.9rem;
}

.note-example strong {
  color: var(--navy-800);
}

/* Cards */
.cards {
  display: grid;
  gap: 1.25rem;
}

.cards-3 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .cards-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .cards-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.card p {
  color: var(--navy-600);
  margin: 0;
  font-size: 0.95rem;
}

.card-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--emerald-soft);
  border-radius: 10px;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.feature {
  border-top: 3px solid var(--emerald-500);
}

/* Steps */
.steps {
  display: grid;
  gap: 1.25rem;
  counter-reset: none;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--emerald-400);
  font-weight: 700;
  font-size: 1rem;
}

.step p {
  color: var(--navy-600);
  margin: 0;
  font-size: 0.95rem;
}

/* Logos & testimonials */
.logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1rem;
  margin-bottom: 2.5rem;
}

.logo-placeholder {
  padding: 0.65rem 1.1rem;
  border: 1px dashed var(--slate-200);
  border-radius: 8px;
  color: var(--slate-500);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--white);
}

.testimonials {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .testimonials {
    grid-template-columns: repeat(2, 1fr);
  }
}

.testimonial {
  margin: 0;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--emerald-500);
}

.testimonial p {
  font-size: 1rem;
  color: var(--navy-800);
  margin-bottom: 1rem;
}

.testimonial cite {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--slate-500);
  font-weight: 500;
}

/* Pricing */
.pricing {
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
}

@media (min-width: 900px) {
  .pricing {
    grid-template-columns: repeat(3, 1fr);
  }
}

.price-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.price-card.featured {
  border-color: var(--emerald-500);
  box-shadow: 0 12px 40px rgba(16, 185, 129, 0.18);
  transform: scale(1.02);
}

.badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--emerald-500);
  color: var(--navy-950);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
}

.price {
  margin: 0.5rem 0 0.75rem;
}

.price .amount {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--navy-950);
  letter-spacing: -0.03em;
}

.price .period {
  font-size: 0.95rem;
  color: var(--slate-500);
  font-weight: 500;
}

.price-desc {
  color: var(--navy-600);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.price-card ul {
  flex: 1;
  margin-bottom: 1.5rem;
}

.price-card li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.5rem;
  font-size: 0.925rem;
  color: var(--navy-700);
}

.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--emerald-600);
  font-weight: 700;
}

/* FAQ */
.faq {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy-950);
  text-align: left;
  cursor: pointer;
}

.faq-q:hover {
  background: var(--slate-100);
}

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--navy-700);
  transition: transform 0.2s, opacity 0.2s;
}

.faq-icon::before {
  top: 9px;
  left: 3px;
  width: 14px;
  height: 2px;
}

.faq-icon::after {
  top: 3px;
  left: 9px;
  width: 2px;
  height: 14px;
}

.faq-item.is-open .faq-icon::after {
  opacity: 0;
  transform: rotate(90deg);
}

.faq-a {
  padding: 0 1.25rem 1.15rem;
}

.faq-a p {
  margin: 0;
  color: var(--navy-600);
  font-size: 0.95rem;
}

.faq-a[hidden] {
  display: none;
}

/* CTA band */
.cta-band {
  background: linear-gradient(145deg, var(--navy-950) 0%, var(--navy-800) 60%, #0f3d34 100%);
  color: var(--white);
  text-align: center;
}

.cta-band h2 {
  color: var(--white);
}

.cta-band p {
  color: var(--slate-400);
  max-width: 34rem;
  margin: 0 auto;
}

.cta-inner .hero-actions {
  justify-content: center;
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  background: var(--navy-950);
  color: var(--slate-400);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 28rem;
  margin: 0.75rem 0 0;
}

.footer-links h3 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.85rem;
}

.footer-links a {
  display: block;
  padding: 0.3rem 0;
  font-size: 0.9rem;
  color: var(--slate-400);
}

.footer-links a:hover {
  color: var(--emerald-400);
}

.footer-bottom {
  border-top: 1px solid var(--navy-700);
  padding-top: 1.5rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.legal-note {
  color: var(--slate-500);
  max-width: 56rem;
}

/* Mobile nav */
@media (max-width: 799px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    padding: 0.75rem;
    box-shadow: var(--shadow);
    margin-top: 0.5rem;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu li a:not(.btn) {
    display: block;
    padding: 0.75rem 0.85rem;
    border-radius: 8px;
  }

  .nav-menu li a:not(.btn):hover {
    background: var(--slate-100);
  }

  .nav-cta {
    padding: 0.5rem 0.35rem 0.25rem;
  }

  .nav-cta .btn {
    width: 100%;
  }

  .price-card.featured {
    transform: none;
  }

  .dash-metrics {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn:hover {
    transform: none;
  }
}
