/* =============================================================
   Logady — aimants landing pages
   Style Qonto : typo généreuse, whitespace, palette vert doux
   v3 : plus de contraste, accents verts, hiérarchie visuelle
   ============================================================= */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --logady-green: #047857;
  --logady-green-dark: #065f46;
  --logady-green-soft: #10b981;
  --logady-green-tint: #ecfdf5;
  --logady-green-tint-2: #d1fae5;
  --logady-cream: #faf7f2;
  --logady-cream-2: #f5f1ea;
  --logady-ink: #0f172a;
  --logady-ink-soft: #334155;
  --logady-mute: #64748b;
  --logady-line: #e2e8f0;
  --logady-line-soft: #eef2f7;
}

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #fff;
  color: var(--logady-ink);
  line-height: 1.65;
  font-size: 17px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--logady-green); text-decoration: none; }
a:hover { color: var(--logady-green-dark); }

/* ------------------- Header ------------------- */
.header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--logady-line-soft);
  padding: 20px 40px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-size: 26px;
  font-weight: 700;
  color: var(--logady-green);
  letter-spacing: -0.02em;
  line-height: 1;
}
.logo-tag {
  font-size: 13px;
  color: var(--logady-mute);
  font-weight: 400;
  letter-spacing: 0.01em;
  padding-left: 10px;
  border-left: 1px solid var(--logady-line);
}
.header-link {
  color: var(--logady-ink-soft);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s;
}
.header-link:hover { color: var(--logady-green); }

@media (max-width: 640px) {
  .header { padding: 14px 20px; }
  .logo { font-size: 22px; gap: 8px; }
  .logo-tag { display: none; }
  .header-link { font-size: 14px; }
}

/* ------------------- Hero ------------------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--logady-green-tint) 0%, #f0fdf4 100%);
  color: var(--logady-ink);
  padding: 110px 40px 90px;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--logady-green-tint-2);
}
.hero::before {
  content: "";
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(4, 120, 87, 0.10) 0%, rgba(4, 120, 87, 0) 60%);
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--logady-green);
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 32px;
  box-shadow: 0 8px 20px -8px rgba(4, 120, 87, 0.4);
}
.hero-badge::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero h1 {
  font-size: 60px;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  font-weight: 600;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--logady-ink);
}
.hero h1 .accent {
  color: var(--logady-green);
  position: relative;
  display: inline-block;
}
.hero h1 .accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 8px;
  background: var(--logady-green-tint-2);
  z-index: -1;
  border-radius: 4px;
}

.hero-sub {
  font-size: 20px;
  line-height: 1.5;
  color: var(--logady-ink-soft);
  max-width: 700px;
  margin: 0 auto 32px;
  font-weight: 400;
}

@media (max-width: 900px) {
  .hero { padding: 70px 24px 60px; }
  .hero h1 { font-size: 40px; letter-spacing: -0.02em; }
  .hero-sub { font-size: 17px; }
  .hero-badge { font-size: 11.5px; padding: 6px 14px; margin-bottom: 24px; }
}

/* ------------------- Stats bar ------------------- */
.stats-bar {
  max-width: 1080px;
  margin: -40px auto 0;
  background: #fff;
  border: 1px solid var(--logady-line);
  border-radius: 16px;
  padding: 24px 32px;
  box-shadow: 0 20px 40px -20px rgba(15, 23, 42, 0.12),
              0 6px 16px -6px rgba(15, 23, 42, 0.06);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
}
.stat {
  text-align: center;
  padding: 0 12px;
  position: relative;
}
.stat + .stat::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 12%;
  bottom: 12%;
  width: 1px;
  background: var(--logady-line);
}
.stat-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--logady-green);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 13px;
  color: var(--logady-mute);
  font-weight: 500;
  line-height: 1.4;
}

@media (max-width: 720px) {
  .stats-bar {
    margin: -30px 20px 0;
    padding: 20px;
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .stat + .stat::before {
    left: 20%;
    right: 20%;
    top: -8px;
    bottom: auto;
    width: auto;
    height: 1px;
  }
  .stat-value { font-size: 22px; }
}

/* ------------------- Layout ------------------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.main {
  padding: 80px 0 100px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .main { grid-template-columns: 1fr; gap: 48px; padding: 60px 0; }
}

/* ------------------- Sections ------------------- */
.section-title {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--logady-ink);
  padding-left: 20px;
  border-left: 4px solid var(--logady-green);
  line-height: 1.2;
}
.section-title-sm {
  font-size: 32px;
  font-weight: 600;
  color: var(--logady-ink);
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  padding-left: 20px;
  border-left: 4px solid var(--logady-green);
  line-height: 1.2;
  text-transform: none;
}

/* ------------------- Numbered bullet list ------------------- */
.bullet-list { list-style: none; counter-reset: bullet-counter; }
.bullet-list li {
  padding: 18px 0 18px 56px;
  position: relative;
  font-size: 16.5px;
  color: var(--logady-ink-soft);
  line-height: 1.55;
  border-bottom: 1px solid var(--logady-line-soft);
  counter-increment: bullet-counter;
}
.bullet-list li:last-child { border-bottom: none; }
.bullet-list li::before {
  content: counter(bullet-counter, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 16px;
  width: 40px;
  height: 32px;
  background: var(--logady-green);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 8px -2px rgba(4, 120, 87, 0.3);
}

/* ------------------- Preview card ------------------- */
.preview {
  background: #fff;
  border: 2px solid var(--logady-green-tint-2);
  border-radius: 16px;
  padding: 28px;
  margin-top: 40px;
  box-shadow: 0 12px 32px -12px rgba(4, 120, 87, 0.18),
              0 4px 8px -4px rgba(4, 120, 87, 0.08);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.preview:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -12px rgba(4, 120, 87, 0.28),
              0 8px 16px -6px rgba(4, 120, 87, 0.12);
}
.preview-hint {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--logady-green);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.preview-title {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--logady-green);
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  font-weight: 700;
}
.preview-cover {
  background: linear-gradient(135deg, var(--logady-green) 0%, var(--logady-green-dark) 60%, #04443c 100%);
  color: #fff;
  padding: 44px 28px;
  border-radius: 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.preview-cover::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 60%);
  pointer-events: none;
}
.preview-cover h3 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  position: relative;
}
.preview-cover p {
  font-size: 14px;
  opacity: 0.92;
  margin-bottom: 18px;
  position: relative;
}
.preview-cover .tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
}
.preview-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--logady-ink-soft);
  font-weight: 500;
}

/* ------------------- Form card ------------------- */
.form-card {
  background: #fff;
  border: 1px solid var(--logady-line);
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 24px 48px -20px rgba(15, 23, 42, 0.18),
              0 6px 16px -6px rgba(15, 23, 42, 0.06);
  position: sticky;
  top: 110px;
}
.form-card-header {
  background: linear-gradient(135deg, var(--logady-green-tint) 0%, #f0fdf4 100%);
  padding: 28px 32px 24px;
  border-bottom: 1px solid var(--logady-green-tint-2);
}
.form-card-body {
  padding: 28px 32px 32px;
}
.form-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  color: var(--logady-ink);
}
.form-sub {
  font-size: 14.5px;
  color: var(--logady-ink-soft);
  line-height: 1.5;
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--logady-ink-soft);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.form-row label .req { color: #dc2626; }
.form-row label .opt { color: var(--logady-mute); font-weight: 400; font-size: 12px; }
.form-row input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--logady-line);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: var(--logady-ink);
  background: #fff;
  transition: border 0.15s, box-shadow 0.15s;
}
.form-row input:focus {
  outline: none;
  border-color: var(--logady-green);
  box-shadow: 0 0 0 4px rgba(4, 120, 87, 0.12);
}
.form-row input::placeholder { color: #94a3b8; }
.form-row .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.form-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 24px 0 20px;
  padding: 14px 16px;
  background: var(--logady-cream-2);
  border-radius: 10px;
  font-size: 13px;
  color: var(--logady-ink-soft);
  line-height: 1.5;
}
.form-consent input {
  margin-top: 2px;
  accent-color: var(--logady-green);
  cursor: pointer;
}
.form-consent label { margin: 0; cursor: pointer; font-weight: 400; }

.btn-download {
  width: 100%;
  background: var(--logady-green);
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  font-family: inherit;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 20px -8px rgba(4, 120, 87, 0.4);
}
.btn-download:hover {
  background: var(--logady-green-dark);
  box-shadow: 0 12px 24px -8px rgba(4, 120, 87, 0.5);
}
.btn-download:active { transform: translateY(1px); }
.btn-download:disabled { background: #94a3b8; cursor: wait; box-shadow: none; }

.form-social {
  margin-top: 22px;
  text-align: center;
  font-size: 13px;
  color: var(--logady-mute);
}
.form-social strong { color: var(--logady-green); font-weight: 700; }
.form-legal {
  margin-top: 14px;
  font-size: 12px;
  color: var(--logady-mute);
  text-align: center;
  line-height: 1.6;
}
.form-legal a { color: var(--logady-mute); text-decoration: underline; }

#successPanel { padding: 32px; }

/* ------------------- Success panel ------------------- */
.success {
  background: var(--logady-green-tint);
  border: 1px solid var(--logady-green-tint-2);
  border-radius: 14px;
  padding: 28px 24px;
  text-align: center;
}
.success h3 {
  color: var(--logady-green-dark);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.success p {
  font-size: 15px;
  color: var(--logady-ink-soft);
  line-height: 1.55;
}
.success a {
  display: inline-block;
  margin-top: 18px;
  color: #fff;
  background: var(--logady-green);
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.15s;
}
.success a:hover { background: var(--logady-green-dark); color: #fff; }

.err {
  color: #dc2626;
  font-size: 13px;
  margin-top: 12px;
  padding: 10px 12px;
  background: #fef2f2;
  border-radius: 8px;
  border: 1px solid #fecaca;
}

/* ------------------- Modal aperçu ------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}
.modal-backdrop.open { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-preview {
  background: #fff;
  border-radius: 20px;
  max-width: 640px;
  width: 100%;
  max-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.25s ease;
}
@keyframes slideUp { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--logady-line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.modal-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--logady-ink);
  letter-spacing: -0.01em;
}
.modal-close {
  background: var(--logady-cream-2);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 20px;
  color: var(--logady-ink-soft);
  line-height: 1;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { background: var(--logady-line); color: var(--logady-ink); }

.modal-body {
  padding: 24px;
  overflow-y: auto;
  background: var(--logady-cream);
  text-align: center;
}
.modal-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--logady-line);
}
.modal-body .thumb-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--logady-mute);
}

.modal-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--logady-line-soft);
  background: #fff;
  text-align: center;
}
.modal-cta {
  display: inline-block;
  background: var(--logady-green);
  color: #fff;
  padding: 13px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.modal-cta:hover { background: var(--logady-green-dark); color: #fff; }
.modal-cta:active { transform: translateY(1px); }

/* ------------------- FAQ section ------------------- */
.faq-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 40px 100px;
}
.faq-list { margin-top: 32px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--logady-line);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.15s;
}
.faq-item:hover { border-color: var(--logady-green-tint-2); }
.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16.5px;
  color: var(--logady-ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  list-style: none;
  outline: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--logady-green);
  font-size: 22px;
  font-weight: 600;
  transition: transform 0.2s;
  line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-answer {
  padding: 0 24px 22px;
  font-size: 15.5px;
  color: var(--logady-ink-soft);
  line-height: 1.65;
}
.faq-item .faq-answer p + p { margin-top: 12px; }

@media (max-width: 720px) {
  .faq-section { padding: 20px 24px 60px; }
  .faq-item summary { padding: 16px 20px; font-size: 15.5px; }
  .faq-item .faq-answer { padding: 0 20px 18px; font-size: 14.5px; }
}

/* ------------------- Footer ------------------- */
.footer {
  background: var(--logady-ink);
  color: #cbd5e1;
  padding: 60px 40px 32px;
  margin-top: 40px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--logady-green-soft); }
.footer-copy {
  font-size: 13px;
  color: #64748b;
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .footer { padding: 40px 24px 24px; }
  .footer-links { gap: 20px; margin-bottom: 20px; }
  .footer-links a { font-size: 14px; }
}
