@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: optional;
  src: url("/fonts/InterVariable.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 800;
  font-display: optional;
  src: url("/fonts/Outfit-Variable.woff2") format("woff2");
}

:root {
  --color-1: #ffffff;
  --color-2: #f9f9fb;
  --color-3: #f2f3f5;
  --color-4: #9fc646;
  --color-5: #005680;
  --color-6: #434549;
  --color-7: #212326;
  --color-8: #141617;
  --color-accent: #00835c;
  --color-muted: #727272;
  --font-display: "Outfit", Arial, Helvetica, sans-serif;
  --font-body: "Inter", Arial, Helvetica, sans-serif;
  --container: 1200px;
  --radius-card: 20px;
  --header-gap: 25px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.015em;
  color: var(--color-8);
  background: var(--color-1);
}

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

a {
  color: var(--color-5);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-5);
  color: var(--color-1);
  padding: 0.75rem 1rem;
  z-index: 10001;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

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

/* Header */
.site-header {
  position: relative;
  z-index: 10000;
  background: var(--color-1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem 0 1.25rem;
}

.brand img {
  width: 120px;
  height: auto;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--header-gap);
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-muted);
  padding: 0.35rem 0;
  border-bottom: 5px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--color-5);
  border-bottom-color: var(--color-5);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.65rem;
  border: 0;
  background: var(--color-1);
  color: var(--color-8);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
}

.nav-toggle-icon {
  width: 1.35rem;
  height: 1.1rem;
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after,
.nav-toggle-icon {
  background: var(--color-8);
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
}

.nav-toggle-icon::before {
  top: 0;
}

.nav-toggle-icon::after {
  bottom: 0;
}

.nav-toggle-icon {
  background:
    linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  background: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.015em;
  text-decoration: none;
  border: 0;
  border-radius: 4px;
  padding: 16px 30px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--color-5);
  color: var(--color-1);
}

.btn-primary:hover {
  background: #004466;
  color: var(--color-1);
}

.btn-secondary {
  background: var(--color-3);
  color: var(--color-8);
}

.btn-secondary:hover {
  background: #004466;
  color: var(--color-1);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.25rem;
}

/* Hero
   Banner art is 2172×724. Use the same ratio so the full image shows at
   every resolution (cover was cropping the top on 4K). */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 2172 / 724;
  background-color: var(--color-1);
  background-image: url("/images/banniere-site.png");
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.hero-content {
  position: absolute;
  top: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(100% - 2.5rem, var(--container));
  z-index: 1;
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--color-8);
}

.hero-title .accent {
  display: block;
  color: var(--color-5);
  margin-top: -0.08em;
  animation: bounce-in-left 0.3s ease both;
}

.hero-mobile {
  display: none;
}

@keyframes bounce-in-left {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* App download section */
.app-section {
  background: var(--color-5);
  color: var(--color-1);
  padding: 50px 0 0;
  scroll-margin-top: 1rem;
}

.app-section .container {
  text-align: center;
}

.app-section h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--color-1);
}

.app-section .lead {
  margin: 0 auto 1.75rem;
  max-width: 48rem;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--color-3);
}

.app-section .lead p {
  margin: 0 0 0.35em;
}

.pwa-badge {
  display: inline-block;
  max-width: 300px;
  margin: 0 auto 1.5rem;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.pwa-badge:hover {
  opacity: 0.85;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 3rem;
  margin: 1.5rem 0 0.5rem;
}

.store-label {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--color-3);
  width: 100%;
}

.store-badge {
  max-width: 300px;
  width: min(100%, 300px);
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.store-badge.app-store {
  max-width: 285px;
}

.store-badge:hover {
  opacity: 0.75;
  filter: blur(2px);
}

.wave-separator {
  display: block;
  width: 100%;
  height: 124px;
  margin-top: 1rem;
  color: var(--color-5);
  transform: rotateX(180deg);
}

.wave-separator svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Features */
.features {
  padding: 30px 0 60px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--color-3);
  border-radius: var(--radius-card);
  padding: 1.5rem 1.35rem 1.75rem;
}

.feature-heading {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.feature-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-5);
  color: var(--color-1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 25px;
  height: 25px;
}

.feature-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
  line-height: 30px;
  letter-spacing: -0.015em;
  color: var(--color-5);
}

.feature-card p {
  margin: 0;
  color: var(--color-8);
}

/* Content pages */
.page-section {
  padding: 1rem 0 5rem;
}

.page-section h1,
.legal-content h1,
.legal-content > h2:first-child {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--color-8);
  margin: 0 0 1.25rem;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 32px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 2rem 0 0.85rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  font-size: 1rem;
  line-height: 1.65;
}

.legal-content ul,
.legal-content ol {
  padding-left: 1.25rem;
}

.legal-content li {
  margin-bottom: 0.35rem;
}

.legal-content .btn {
  margin: 0.5rem 0 0.25rem;
}

.legal-content .legal-notice {
  margin: 1.5rem 0;
  padding: 1.15rem 1.25rem;
  background: var(--color-3);
  border-left: 4px solid var(--color-5);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
}

.legal-content .legal-notice p:first-child {
  margin-top: 0;
}

.legal-content .legal-notice ul {
  margin-bottom: 0;
}

.faq-list h2 {
  font-size: clamp(1.35rem, 2.5vw, 28px);
}

/* Contact */
.contact-layout {
  max-width: 640px;
  margin: 2.5rem auto 0;
  background: var(--color-3);
  border-radius: var(--radius-card);
  padding: 2rem 1.75rem 2.25rem;
  overflow: hidden;
}

.form-field {
  margin-bottom: 1.15rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.required {
  color: var(--color-5);
}

.input-with-icon {
  position: relative;
}

.input-with-icon svg {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: var(--color-6);
  pointer-events: none;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid #d7dbe0;
  border-radius: 6px;
  background: var(--color-1);
  color: var(--color-8);
  font: inherit;
  padding: 0.85rem 1rem;
}

.input-with-icon input {
  padding-left: 2.5rem;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--color-5);
  outline-offset: 1px;
  border-color: var(--color-5);
}

.form-actions {
  text-align: center;
  margin-top: 1.5rem;
}

.form-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--color-6);
  text-align: center;
}

/* Footer */
.site-footer {
  background: var(--color-3);
  padding: 1.25rem 0 1.75rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
}

.footer-logo {
  width: 60px;
  height: auto;
}

.footer-copy {
  margin: 0;
  color: var(--color-6);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e2e5ea;
  margin-top: 0.5rem;
}

.footer-legal a {
  color: var(--color-6);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-legal a:hover {
  color: var(--color-5);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .primary-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--color-1);
    border-bottom: 1px solid #e5e7eb;
    padding: 0.5rem 1.25rem 1rem;
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    display: none;
  }

  .hero-mobile {
    display: block;
    padding: 1rem 0 2.5rem;
  }

  .hero-mobile .container {
    text-align: center;
  }

  .hero-mobile .hero-title {
    text-align: left;
    margin-bottom: 1.5rem;
  }

  .hero-mobile .hero-title .accent {
    margin-top: 0.12em;
  }

  .hero-mobile .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-mobile .btn {
    width: min(100%, 320px);
  }

  .store-row {
    flex-direction: column;
    gap: 1.25rem;
  }

  .store-badge.app-store {
    max-width: 300px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
  }

  .contact-layout {
    margin-top: 1.5rem;
    padding: 1.5rem 1.15rem 1.75rem;
  }
}
