/* ============ RESET & VARIABLES ============ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --green: #5BFFA8;
  --green-dark: #3DE890;
  --green-btn: #5BFFA8;
  --navy: #0D0F2B;
  --navy-light: #161840;
  --text-dark: #0D0F2B;
  --text-body: #3A3F5A;
  --text-muted: #8A8FA8;
  --bg: #FFFFFF;
  --border: #E2E6EF;
  --font: 'Plus Jakarta Sans', sans-serif;
  --max-w: 1100px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text-body);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border: none;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-green {
  background: var(--green-btn);
  color: var(--navy);
}

.btn-green:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

.btn-outline-green {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--green-btn);
}

.btn-outline-green:hover {
  background: var(--green-btn);
  transform: translateY(-2px);
}

/* ============ SCROLL REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ============ HEADER ============ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--navy);
  transition: box-shadow 0.3s;
}

.header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 32px;
  width: auto;
}

.header .btn {
  padding: 10px 24px;
  font-size: 14px;
}

/* ============ HERO ============ */
.hero {
  padding: 120px 0 60px;
  text-align: center;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.swoosh-trail {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 0.7;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 18px;
}

.hero-sub {
  font-size: 16px;
  color: var(--text-body);
  max-width: 700px;
  margin: 0 auto 8px;
  line-height: 1.5;
}

.hero-sub strong {
  color: var(--text-dark);
}

.hero-caption {
  font-size: 15px;
  color: var(--text-body);
  margin-bottom: 28px;
}

.hero .btn {
  margin-bottom: 16px;
}

.hero-geo {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  font-style: italic;
  margin-bottom: 28px;
}

/* Trust badges */
.trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
}

.trust-badge-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(91, 255, 168, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-badge-icon svg {
  width: 20px;
  height: 20px;
  color: var(--green-dark);
}

.trust-badge-icon img {
  width: 40px;
  height: 40px;
}

.scroll-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  animation: float 2s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ============ FORM SECTION ============ */
.form-section {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}

.form-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

.form-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 15, 43, 0.6) 0%, rgba(13, 15, 43, 0.3) 50%, rgba(13, 15, 43, 0.1) 100%);
}

/* Neon glow lines */
.neon-line {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.neon-line-1 {
  top: 20%;
  right: 10%;
  width: 300px;
  height: 200px;
  border: 2px solid rgba(91, 255, 168, 0.3);
  border-radius: 50%;
  transform: rotate(-20deg);
  box-shadow: 0 0 20px rgba(91, 255, 168, 0.15), inset 0 0 20px rgba(91, 255, 168, 0.05);
}

.neon-line-2 {
  bottom: 10%;
  left: 5%;
  width: 200px;
  height: 140px;
  border: 1.5px solid rgba(0, 210, 220, 0.25);
  border-radius: 50%;
  transform: rotate(15deg);
  box-shadow: 0 0 15px rgba(0, 210, 220, 0.1);
}

.form-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 420px;
  padding: 40px 0;
}

.form-card {
  background: rgba(14, 0, 51, 0.30);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(91, 255, 168, 0.15);
  border-radius: 16px;
  padding: 32px;
  max-width: 420px;
  width: 100%;
}

.form-card h2 {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
}

/* HubSpot form styling override */
.form-card .hs-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-card .hs-form fieldset {
  border: none;
  padding: 0;
  margin: 0;
  max-width: 100% !important;
}

.form-card .hs-form .hs-form-field {
  margin-bottom: 8px;
}

.form-card .hs-form .hs-form-field > label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 4px;
  font-family: var(--font);
}

.form-card .hs-form .hs-input,
.form-card .hs-form input[type="text"],
.form-card .hs-form input[type="email"],
.form-card .hs-form input[type="tel"],
.form-card .hs-form input[type="number"],
.form-card .hs-form select,
.form-card .hs-form textarea {
  width: 100% !important;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 8px !important;
  color: #fff !important;
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.form-card .hs-form .hs-input::placeholder {
  color: rgba(255, 255, 255, 0.3) !important;
}

.form-card .hs-form .hs-input:focus {
  border-color: var(--green) !important;
}

.form-card .hs-form select option {
  background: var(--navy);
  color: #fff;
}

.form-card .hs-form .hs-button,
.form-card .hs-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 32px;
  background: var(--green-btn) !important;
  color: var(--navy) !important;
  border: none !important;
  border-radius: 50px !important;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
}

.form-card .hs-form .hs-button:hover,
.form-card .hs-form input[type="submit"]:hover {
  background: var(--green-dark) !important;
  transform: translateY(-2px);
}

.form-card .hs-form .hs-error-msgs {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
}

.form-card .hs-form .hs-error-msgs li label {
  color: #ff6b6b !important;
  font-size: 12px;
}

.form-card .hs-form .legal-consent-container {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.4;
}

.form-card .hs-form .legal-consent-container a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: underline;
}

.form-card .hs-form .hs-richtext {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

/* Hide HubSpot branding */
.form-card .hs-form .hs_submit {
  margin-top: 8px;
}

.form-card .submitted-message {
  color: var(--green);
  font-weight: 600;
  text-align: center;
  padding: 20px 0;
}

.form-fields .btn {
  width: 100%;
  margin-top: 8px;
}

.form-success {
  color: var(--green);
  font-weight: 700;
  text-align: center;
  font-size: 16px;
  padding: 30px 0;
}

.form-note {
  font-size: 13px;
  color: #fff;
  font-weight: 600;
  margin-top: 8px;
  text-align: center;
}

.form-legal {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 8px;
  line-height: 1.4;
}

/* Fallback form (without HubSpot) */
.form-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 4px;
}

.form-field input,
.form-field select {
  width: 100%;
  padding: 12px 16px;
  background: #B1A5D1;
  border: 1px solid #B1A5D1;
  border-radius: 8px;
  color: #fff;
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.form-field input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-field input:focus,
.form-field select:focus {
  border-color: var(--green);
}

/* ============ POURQUOI ============ */
.pourquoi {
  padding: 64px 0 48px;
  background: var(--bg);
}

.pourquoi-title {
  font-size: clamp(20px, 3.5vw, 28px);
  font-weight: 800;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 36px;
}

.pourquoi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 16px;
  margin-bottom: 36px;
}

.pq-card {
  background: #FAFDFF;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 20px;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  text-align: center;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.pq-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.pq-card h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  line-height: 24px;
  margin-bottom: 1em;
  margin-top: 0.5em;
}

.pq-card h3 .pq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

.pq-card p {
  font-size: 15px;
  color: var(--text-dark);
}

/* Trustpilot card */
.pq-card.trustpilot {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.trustpilot-img {
  width: 100%;
  max-width: 160px;
  height: auto;
}

.pourquoi-cta {
  text-align: right;
}

.pourquoi-cta .btn {
  background: var(--green-btn);
  color: var(--navy);
  border: none;
}

.pourquoi-cta .btn:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

/* ============ BESOIN (dark section) ============ */
.besoin {
  background: var(--navy);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

.besoin .neon-line-1 {
  top: 10%;
  left: -5%;
  width: 350px;
  height: 250px;
  border: 2px solid rgba(91, 255, 168, 0.2);
  border-radius: 50%;
  transform: rotate(-25deg);
  box-shadow: 0 0 30px rgba(91, 255, 168, 0.1), inset 0 0 30px rgba(91, 255, 168, 0.03);
}

.besoin .neon-line-2 {
  bottom: -10%;
  right: -5%;
  width: 280px;
  height: 200px;
  border: 1.5px solid rgba(0, 210, 220, 0.2);
  border-radius: 50%;
  transform: rotate(20deg);
  box-shadow: 0 0 20px rgba(0, 210, 220, 0.08);
}

.besoin-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.besoin-img {
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.besoin-photo {
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
}

.besoin-text h2 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 28px;
}

.besoin-feature {
  margin-bottom: 24px;
}

.besoin-feature-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.besoin-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--green-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.besoin-check svg {
  width: 12px;
  height: 12px;
  color: #fff;
}

.besoin-feature p {
  font-size: 14px;
  color: #fff;
  padding-left: 32px;
  line-height: 1.6;
}

.besoin-feature .highlight {
  display: block;
  color: #fff;
  font-weight: 600;
  margin-top: 4px;
  margin-left: 1.5em;
}

/* ============ FONCTIONNALITES + STATS ============ */
.fonctionnalites {
  padding: 64px 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.fonctionnalites .swoosh-trail {
  opacity: 0.5;
  /* transform: scaleX(-1); */
}

.fonc-content {
  position: relative;
  z-index: 1;
}

.fonc-title {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.fonc-subtitle {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-body);
  margin-bottom: 12px;
}

.fonc-desc {
  font-size: 15px;
  color: var(--text-dark);
  margin-bottom: 24px;
  max-width: 600px;
}

.fonc-desc strong {
  color: var(--text-dark);
}

.fonc-list {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fonc-list li {
  font-size: 15px;
  color: var(--text-body);
  padding-left: 20px;
  position: relative;
}

.fonc-list li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: var(--green-dark);
  font-weight: 700;
}

.fonc-list li strong {
  color: var(--text-dark);
}

/* Stats / performances */
.perfs {
  margin-top: 56px;
  position: relative;
  z-index: 1;
}

.perfs-title {
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 800;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 36px;
}

.perfs-intro {
  font-size: 15px;
  color: var(--text-body);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.perfs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 40px;
}

.perf-item {
  text-align: center;
}

.perf-item h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.perf-item p {
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.5;
}

/* ============ FOOTER ============ */
.footer {
  padding: 40px 0 32px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.footer-top {
  margin-bottom: 32px;
}

.footer-logo {
  display: flex;
  align-items: center;
}

.footer-logo-img {
  height: 32px;
  width: auto;
  filter: brightness(0) saturate(100%) invert(5%) sepia(30%) saturate(5000%) hue-rotate(230deg) brightness(90%);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.footer-links {
  display: contents;
}

.footer-links a {
  font-size: 15px;
  color: var(--text-body);
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--green-dark);
}

.footer-bottom .btn {
  padding: 10px 24px;
  font-size: 14px;
}

/* ============ RECAPTCHA BADGE (hidden per Google guidelines, attribution in footer) ============ */
.grecaptcha-badge {
  visibility: hidden !important;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .pourquoi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .besoin-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 100px 0 40px;
  }

  .trust-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 16px;
    justify-items: start;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 28px;
  }

  .trust-badge span {
    font-size: 13px;
  }

  .pourquoi-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 10px;
  }

  .pq-card {
    padding: 14px 16px;
  }

  .pq-card h3 {
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 4px;
    line-height: 1.2;
  }

  .form-card {
    padding: 24px 20px;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
