/* Base styles */
:root {
  color-scheme: light;
  --color-primary: #1ea55b;
  --color-primary-dark: #158748;
  --color-primary-light: #35c172;
  --color-secondary: #064551;
  --color-accent: #10e7a1;
  --color-background: #f2f8f7;
  --color-surface: #ffffff;
  --color-border: #d6deeb;
  --color-text: #0f2d30;
  --color-muted: #628088;
  --shadow-soft: 0 16px 40px rgba(6, 69, 81, 0.08);
  --shadow-card: 0 12px 28px rgba(6, 69, 81, 0.12);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-background);
  line-height: 1.6;
}

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

p {
  margin: 0 0 1rem;
}

code {
  font-family: "Roboto Mono", "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  background: rgba(61, 90, 254, 0.08);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-size: 0.95rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header & navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
  background: rgba(247, 249, 252, 0.92);
  border-bottom: 1px solid rgba(214, 222, 235, 0.6);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: var(--color-secondary);
}

.brand img {
  height: 38px;
  width: auto;
  display: block;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--color-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.site-nav a {
  padding: 0.35rem 0;
  position: relative;
  color: var(--color-secondary);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  width: 100%;
}

.site-nav .cta {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
}

.site-nav .cta:hover,
.site-nav .cta:focus-visible {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.05rem;
  color: var(--color-muted);
}

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

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  background: linear-gradient(135deg, rgba(16, 231, 161, 0.18), rgba(30, 165, 91, 0.15));
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-card);
  max-width: 420px;
  border: 1px solid rgba(16, 231, 161, 0.18);
}

.hero-card h2 {
  margin-top: 0;
  font-size: 1.35rem;
}

.hero-card ol {
  margin: 1rem 0;
  padding-left: 1.25rem;
  color: var(--color-secondary);
}

.hero-footnote {
  font-size: 0.9rem;
  color: var(--color-muted);
  max-width: 520px;
}

/* Sections */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
}

.section.alt {
  background: #fff;
  border-radius: 32px;
  box-shadow: var(--shadow-soft);
  margin-top: 3rem;
}

.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.section-heading h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.9rem, 4vw, 2.4rem);
}

.section-heading p {
  color: var(--color-muted);
  max-width: 640px;
  margin: 0 auto;
}

.grid {
  display: grid;
  gap: 1.75rem;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--color-surface);
  border-radius: 18px;
  padding: 1.75rem;
  border: 1px solid rgba(17, 24, 39, 0.06);
  box-shadow: var(--shadow-soft);
}

.card h3 {
  margin-top: 0;
  font-size: 1.3rem;
}

.card ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--color-muted);
}

.card.highlight {
  background: linear-gradient(140deg, rgba(16, 231, 161, 0.12), rgba(30, 165, 91, 0.16));
  border: none;
}

.price {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.price.sur-mesure {
  font-size: 1.5rem;
}

.pricing-wrapper {
  max-width: 640px;
  margin: 0 auto;
}

.pricing-card {
  padding: 2.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(16, 231, 161, 0.22);
}

.pricing-card-header {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 1.75rem;
}

.pricing-card-header h3 {
  margin-bottom: 0.35rem;
  font-size: 1.8rem;
}

.price-tag {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.price-tag .price {
  font-size: clamp(2.4rem, 5vw, 2.9rem);
  margin: 0;
  line-height: 1;
}

.price-note {
  font-weight: 600;
  color: var(--color-secondary);
  font-size: 0.95rem;
}

.pricing-card-body {
  margin-bottom: 2rem;
}

.pricing-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.pricing-benefits li {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  color: var(--color-secondary);
  font-weight: 500;
}

.pricing-benefits li::before {
  content: "✓";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
}

.pricing-card-footer .primary-button {
  font-size: 1.05rem;
  padding: 0.75rem 1.6rem;
  margin-bottom: 1rem;
}

.pricing-card-footer .small-print {
  text-align: center;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
}

.primary-button {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.primary-button:hover,
.primary-button:focus-visible {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  transform: translateY(-1px);
}

.secondary-button {
  background: rgba(30, 165, 91, 0.08);
  color: var(--color-secondary);
}

.secondary-button:hover,
.secondary-button:focus-visible {
  background: rgba(30, 165, 91, 0.16);
  transform: translateY(-1px);
}

.primary-button.block,
.secondary-button.block {
  width: 100%;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 1rem;
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-surface);
  border-radius: 16px;
  border: 1px solid rgba(6, 69, 81, 0.08);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.faq-item button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 1.25rem 1.5rem;
  font-size: 1.05rem;
  cursor: pointer;
  font-weight: 600;
  position: relative;
}

.faq-item button::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.faq-item button[aria-expanded="true"]::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  color: var(--color-muted);
  transition: max-height 0.25s ease, padding-top 0.25s ease;
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding-top: 0;
  padding-bottom: 1.25rem;
}

/* Legal pages */
.legal-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}

.legal-content h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.legal-content h2 {
  margin-top: 2.5rem;
  font-size: 1.6rem;
}

.legal-content h3 {
  margin-top: 1.75rem;
  font-size: 1.25rem;
}

.legal-content ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.legal-meta {
  color: var(--color-muted);
  font-size: 0.95rem;
}

.muted {
  color: var(--color-muted);
}

.small-print {
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

.summary-box {
  background: linear-gradient(120deg, rgba(16, 231, 161, 0.1), rgba(30, 165, 91, 0.12));
  padding: 1.75rem;
  border-radius: 16px;
  border: 1px solid rgba(16, 231, 161, 0.14);
  margin-top: 2.5rem;
}

/* Feedback form */
.feedback-section {
  text-align: center;
}

.feedback-form {
  display: inline-flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  background: var(--color-surface);
  border-radius: 18px;
  padding: 2rem;
  border: 1px solid rgba(6, 69, 81, 0.06);
  box-shadow: var(--shadow-soft);
}

.feedback-options {
  display: flex;
  gap: 2rem;
  font-size: 1.05rem;
}

.feedback-options input {
  margin-right: 0.4rem;
}

.feedback-actions {
  display: flex;
  gap: 1rem;
}

.feedback-message {
  min-height: 1.25rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.feedback-message.is-error {
  color: #d61f1f;
}

/* Support page */
.support-page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}

.support-hero {
  text-align: center;
  margin-bottom: 3rem;
}

.support-hero h1 {
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  margin-bottom: 0.5rem;
}

.support-hero .lead {
  color: var(--color-muted);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(30, 165, 91, 0.12);
  color: var(--color-secondary);
  font-weight: 600;
  font-size: 0.9rem;
}

.status-badge.offline::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.support-card {
  background: var(--color-surface);
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid rgba(6, 69, 81, 0.1);
  box-shadow: var(--shadow-soft);
}

.support-card.secondary {
  background: linear-gradient(135deg, rgba(16, 231, 161, 0.12), rgba(30, 165, 91, 0.16));
}

.support-card h2 {
  margin-top: 0;
  font-size: 1.6rem;
}

.support-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.support-form label {
  text-align: left;
  font-weight: 600;
  color: var(--color-secondary);
}

.support-form input,
.support-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(6, 69, 81, 0.12);
  font-size: 1rem;
  transition: border 0.15s ease, box-shadow 0.15s ease;
  background: #fff;
}

.support-form textarea {
  resize: vertical;
  min-height: 140px;
}

.support-form input:focus,
.support-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(30, 165, 91, 0.2);
}

.support-form .primary-button {
  justify-self: start;
  margin-top: 0.75rem;
}

.form-hint {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.contact-list {
  margin: 1.75rem 0 0;
  padding: 0;
}

.contact-list div + div {
  margin-top: 1.35rem;
}

.contact-list dt {
  font-weight: 700;
  color: var(--color-secondary);
}

.contact-list dd {
  margin: 0.35rem 0 0;
  color: var(--color-secondary);
}

@media (max-width: 960px) {
  .support-grid {
    grid-template-columns: 1fr;
  }

  .support-card {
    padding: 2rem;
  }
}

@media (max-width: 640px) {
  .support-page {
    padding: 3.5rem 1.25rem 4rem;
  }

  .support-form .primary-button {
    width: 100%;
    justify-content: center;
  }
}

/* Footer */
.site-footer {
  padding: 2rem 1.5rem 3rem;
  text-align: center;
  color: var(--color-muted);
  background: #fff;
  border-top: 1px solid rgba(214, 222, 235, 0.6);
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: inherit;
  font-weight: 500;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--color-primary);
}

/* Responsive */
@media (max-width: 960px) {
  .pricing-card-header {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .price-tag {
    align-items: flex-start;
    text-align: left;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-card {
    margin: 0 auto;
  }

  .nav-toggle {
    display: inline-flex;
    color: var(--color-secondary);
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 1.5rem;
    flex-direction: column;
    background: var(--color-surface);
    padding: 1.25rem;
    border-radius: 16px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: var(--shadow-card);
    transform: scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .site-nav.open {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.35rem 0.2rem;
  }

  .site-nav .cta {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
  }

  .feedback-form {
    width: 100%;
    max-width: 420px;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 3.5rem 1.25rem;
  }

  .nav-container {
    padding: 0.75rem 1.25rem;
  }

  .hero {
    padding: 5rem 1.25rem 3rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .feedback-options {
    flex-direction: column;
    gap: 1rem;
  }

  .feedback-actions {
    width: 100%;
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }
}
