/* ==========================================================================
   Neloqi — style.css
   Tokens de couleur / typo / layout en haut du fichier : c'est ici qu'on
   modifie facilement les couleurs et les espacements du site.
   ========================================================================== */

:root {
  /* Couleurs */
  --ink: #1b2420;
  --ink-soft: #2c352f;
  --paper: #f0f2ea;
  --paper-raised: #e7e9df;
  --line: #dad9cd;
  --muted: #5c6660;
  --accent: #2f6e63;
  --accent-dark: #234f47;
  --accent-tint: #e2ebe8;
  --wood: #b97a4d;
  --wood-tint: #f3e6da;

  /* Typo */
  --font: ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Échelle */
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
  --step-2: clamp(1.4rem, 1.28rem + 0.6vw, 1.75rem);
  --step-3: clamp(1.9rem, 1.65rem + 1.2vw, 2.5rem);
  --step-4: clamp(2.4rem, 1.9rem + 2.2vw, 3.6rem);

  /* Layout */
  --container: 1180px;
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 26px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

/* --------------------------------------------------------------------- */
/* Reset                                                                  */
/* --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }

h1, h2, h3 {
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section {
  padding-block: clamp(3.5rem, 9vw, 7rem);
}

.section-head {
  max-width: 46ch;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}

.section-head p {
  color: var(--muted);
  margin-top: 0.75rem;
  font-size: var(--step-1);
}

.kicker {
  display: block;
  color: var(--wood);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.divider {
  border: none;
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------- */
/* Reveal on scroll — one quiet effect, applied by app.js                */
/* --------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* --------------------------------------------------------------------- */
/* Buttons                                                                */
/* --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: var(--accent-dark); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: var(--paper); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding-inline: 0.25rem;
}
.btn-ghost:hover { color: var(--accent-dark); }

/* --------------------------------------------------------------------- */
/* Header                                                                 */
/* --------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 650;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.logo svg { width: 30px; height: 30px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2vw, 2.1rem);
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--ink); }
.nav-links-mobile-only { display: none; }

.nav-actions { display: flex; align-items: center; gap: 1rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 1.5rem var(--gutter) 2rem;
  }
  .nav-toggle { display: flex; }
  .nav-actions .btn-ghost { display: none; }
  .nav-links-mobile-only { display: inline; }
}

/* --------------------------------------------------------------------- */
/* Hero                                                                   */
/* --------------------------------------------------------------------- */
.hero {
  padding-block: clamp(3rem, 8vw, 6rem) clamp(3rem, 7vw, 5rem);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.hero-eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: var(--step-4);
  max-width: 14ch;
}

.hero-sub {
  margin-top: 1.4rem;
  font-size: var(--step-1);
  color: var(--ink-soft);
  max-width: 42ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
}

.hero-note {
  margin-top: 1.6rem;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Phone mockup, pure CSS/SVG, no image assets */
.phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}
.phone {
  width: min(280px, 78vw);
  aspect-ratio: 9 / 19.5;
  background: var(--ink);
  border-radius: 40px;
  padding: 10px;
  box-shadow: 0 30px 60px -20px rgba(27, 36, 32, 0.35);
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phone-topbar {
  background: var(--accent);
  color: #fff;
  padding: 1.5rem 1.1rem 1rem;
}
.phone-topbar strong { display: block; font-size: 1rem; letter-spacing: -0.01em; }
.phone-topbar span { display: block; font-size: 0.72rem; opacity: 0.85; margin-top: 0.2rem; }
.phone-body { padding: 0.9rem 1rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.phone-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.65rem;
  background: var(--paper);
  border-radius: var(--radius-s);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.phone-row svg { width: 16px; height: 16px; flex: none; color: var(--accent); }

.phone-badge {
  position: absolute;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 12px 24px -10px rgba(27, 36, 32, 0.45);
}
.phone-badge svg { width: 16px; height: 16px; color: var(--wood); }

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .phone-wrap { order: -1; margin-bottom: 1rem; }
  .phone { width: min(230px, 60vw); }
}

/* --------------------------------------------------------------------- */
/* Steps ("comment ça marche")                                           */
/* --------------------------------------------------------------------- */
.steps {
  background: var(--paper-raised);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.step-num {
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--wood);
  border: 1px solid var(--line);
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  background: var(--paper);
}
.step h3 { font-size: var(--step-1); margin-bottom: 0.5rem; }
.step p { color: var(--muted); font-size: 0.95rem; }

@media (max-width: 860px) {
  .steps-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .steps-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------- */
/* Features ("ce que le voyageur trouve")                                */
/* --------------------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.feature-item {
  background: var(--paper);
  padding: 1.6rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.feature-item svg { width: 22px; height: 22px; color: var(--accent); }
.feature-item span { font-weight: 600; font-size: 0.95rem; }

@media (max-width: 860px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------- */
/* Demo — La Capsule                                                     */
/* --------------------------------------------------------------------- */
.demo {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-l);
  margin-inline: var(--gutter);
  padding: clamp(2.5rem, 6vw, 4.5rem);
}
.demo-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.demo h2 { color: var(--paper); }
.demo p { color: #c9d0c9; margin-top: 1rem; font-size: var(--step-1); max-width: 42ch; }
.demo .btn-primary { background: var(--paper); color: var(--ink); margin-top: 1.8rem; }
.demo .btn-primary:hover { background: var(--wood-tint); }

.demo-card {
  background: var(--ink-soft);
  border: 1px solid rgba(240, 242, 234, 0.14);
  border-radius: var(--radius-m);
  padding: 1.6rem;
}
.demo-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}
.demo-card-head strong { font-size: 1.05rem; }
.demo-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--wood);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}
.demo-list { display: flex; flex-direction: column; gap: 0.6rem; }
.demo-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: #d7dcd6;
  padding-block: 0.35rem;
  border-bottom: 1px solid rgba(240, 242, 234, 0.1);
}
.demo-list li:last-child { border-bottom: none; }
.demo-list svg { width: 15px; height: 15px; color: var(--wood); flex: none; }

@media (max-width: 860px) {
  .demo { margin-inline: clamp(1rem, 4vw, 1.5rem); }
  .demo-inner { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------- */
/* QR section                                                            */
/* --------------------------------------------------------------------- */
.qr-section .container {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.qr-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.qr-visual svg {
  width: min(220px, 60vw);
  height: min(220px, 60vw);
}
.qr-places {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  margin-top: 1.6rem;
}
.qr-places li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding: 0.7rem 0.85rem;
  background: var(--paper-raised);
  border-radius: var(--radius-s);
}
.qr-places svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

.qr-callout {
  margin-top: 1.6rem;
  padding: 1.1rem 1.3rem;
  border-left: 3px solid var(--wood);
  background: var(--wood-tint);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

@media (max-width: 860px) {
  .qr-section .container { grid-template-columns: 1fr; }
  .qr-visual { order: -1; }
}

/* --------------------------------------------------------------------- */
/* Audience ("pour qui")                                                 */
/* --------------------------------------------------------------------- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
}
.audience-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 1.6rem;
  background: var(--paper);
}
.audience-card svg { width: 24px; height: 24px; color: var(--accent); margin-bottom: 1rem; }
.audience-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.audience-card p { color: var(--muted); font-size: 0.9rem; }

@media (max-width: 860px) {
  .audience-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .audience-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------- */
/* Pricing                                                                */
/* --------------------------------------------------------------------- */
.pricing-note {
  text-align: left;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: -1rem;
  margin-bottom: 2rem;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 1.75rem);
}
.plan {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  background: var(--paper);
  display: flex;
  flex-direction: column;
}
.plan.is-featured {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  transform: translateY(-8px);
}
.plan.is-featured .plan-scope,
.plan.is-featured .plan-period { color: #c9d0c9; }
.plan.is-featured .divider { border-color: rgba(240, 242, 234, 0.18); }
.plan.is-featured .check svg { color: var(--wood); }

.plan-name {
  font-weight: 650;
  font-size: 1rem;
  margin-bottom: 0.6rem;
}
.plan-price {
  font-size: var(--step-3);
  font-weight: 650;
  letter-spacing: -0.02em;
}
.plan-period { color: var(--muted); font-size: 0.85rem; margin-top: 0.2rem; }
.plan-scope { color: var(--muted); font-size: 0.92rem; margin-top: 0.9rem; }
.plan hr.divider { margin-block: 1.4rem; }
.plan-features { display: flex; flex-direction: column; gap: 0.65rem; margin-bottom: 1.6rem; flex: 1; }
.check { display: flex; align-items: flex-start; gap: 0.55rem; font-size: 0.88rem; }
.check svg { width: 15px; height: 15px; margin-top: 0.2rem; color: var(--accent); flex: none; }
.plan .btn { width: 100%; }

@media (max-width: 860px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .plan.is-featured { transform: none; order: -1; }
}

/* --------------------------------------------------------------------- */
/* No-app strip                                                          */
/* --------------------------------------------------------------------- */
.noapp {
  background: var(--accent-tint);
  border-radius: var(--radius-l);
  margin-inline: var(--gutter);
  padding: clamp(2.5rem, 6vw, 4rem);
}
.noapp .container { padding-inline: 0; }
.noapp-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.75rem;
  align-items: start;
}
.noapp h2 { grid-column: 1 / -1; max-width: 30ch; }
.noapp-point { display: flex; gap: 0.75rem; }
.noapp-point svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 0.15rem; }
.noapp-point strong { display: block; font-size: 0.98rem; margin-bottom: 0.2rem; }
.noapp-point span { color: var(--ink-soft); font-size: 0.88rem; }

@media (max-width: 860px) {
  .noapp { margin-inline: clamp(1rem, 4vw, 1.5rem); }
  .noapp-inner { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------- */
/* FAQ                                                                    */
/* --------------------------------------------------------------------- */
.faq-list {
  max-width: 760px;
  border-top: 1px solid var(--line);
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: none;
  text-align: left;
  padding: 1.35rem 0.1rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
.faq-q svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--accent);
  transition: transform 0.25s ease;
}
.faq-item[data-open="true"] .faq-q svg { transform: rotate(45deg); }

.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}
.faq-item[data-open="true"] .faq-a { max-height: 220px; }
.faq-a p { color: var(--muted); padding: 0 0.1rem 1.35rem; max-width: 60ch; }

/* --------------------------------------------------------------------- */
/* Final CTA                                                             */
/* --------------------------------------------------------------------- */
.final-cta {
  text-align: left;
}
.final-cta .container {
  border-top: 1px solid var(--line);
  padding-top: clamp(3rem, 7vw, 5rem);
}
.final-cta h2 { font-size: var(--step-3); max-width: 20ch; }
.final-cta-row {
  margin-top: 1.8rem;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------- */
/* Footer                                                                 */
/* --------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 3rem;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
}
.footer-brand .logo { margin-bottom: 0.75rem; }
.footer-brand p { color: var(--muted); font-size: 0.9rem; max-width: 32ch; }

.footer-links {
  display: flex;
  gap: clamp(2rem, 6vw, 5rem);
  flex-wrap: wrap;
}
.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 650;
  margin-bottom: 0.9rem;
  color: var(--ink-soft);
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { text-decoration: none; color: var(--muted); font-size: 0.9rem; }
.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.85rem;
}
