/* LogYacht Landing Page — style.css — aligned with app design system */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #2a3f54;
  --navy-dark:  #1e2d3d;
  --gold:       #d4a853;
  --gold-light: #e8c882;
  --gold-dark:  #b8912e;
  --bg:         #f4f4f0;
  --white:      #ffffff;
  --text:       #2d2d2d;
  --muted:      #6b7a99;
  --border:     #e5e3dd;
  --radius:     12px;
  --shadow-sm:  0 2px 8px rgba(42,63,84,.07);
  --shadow:     0 4px 20px rgba(42,63,84,.11);
  --shadow-lg:  0 8px 40px rgba(42,63,84,.14);
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: var(--text); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ── Utilities ── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 28px; }
.section { padding: 88px 0; }
.section-alt { background: var(--bg); }
.tag {
  display: inline-block; font-size: 14px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold-dark); margin-bottom: 14px;
}
.section-title { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 800; color: var(--navy); margin-bottom: 14px; line-height: 1.2; }
.section-sub { font-size: 0.875rem; color: var(--muted); max-width: 580px; line-height: 1.7; }
.text-center { text-align: center; }
.text-center .section-sub { margin: 0 auto; }

/* ── Navbar ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(212,168,83,.18);
  height: 66px; display: flex; align-items: center;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }

/* Logo — matches app exactly */
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--gold);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.logo-text-wrap { display: flex; flex-direction: column; gap: 5px; justify-content: center; height: 40px; }
.logo-name { font-size: 1.4rem; font-weight: 700; color: var(--white); letter-spacing: -.025em; line-height: 1; }
.logo-tagline { font-size: 9.5px; font-weight: 700; color: var(--gold); letter-spacing: .08em; text-transform: uppercase; line-height: 1; }

.nav-right { display: flex; align-items: center; gap: 20px; }
.lang-switcher { display: flex; align-items: center; gap: 2px; }
.lang-switcher a {
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,.45);
  text-decoration: none; padding: 4px 7px; border-radius: 5px;
  transition: color .18s, background .18s;
}
.lang-switcher a.active { color: var(--gold); }
.lang-switcher a:hover { color: var(--white); background: rgba(255,255,255,.08); }
.lang-sep { color: rgba(255,255,255,.18); font-size: 11px; user-select: none; }
.btn-login {
  color: rgba(255,255,255,.75); font-size: 13px; font-weight: 600;
  padding: 9px 16px; border-radius: 7px; text-decoration: none;
  border: 1.5px solid rgba(255,255,255,.25);
  transition: border-color .18s, color .18s;
  white-space: nowrap;
}
.btn-login:hover { color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-nav {
  background: var(--gold); color: var(--white); font-size: 13px; font-weight: 700;
  padding: 9px 20px; border-radius: 7px; text-decoration: none;
  transition: background .18s, transform .14s;
  letter-spacing: .01em;
}
.btn-nav:hover { background: var(--gold-light); transform: translateY(-1px); }

/* ── Hero ── */
#hero {
  min-height: 100vh;
  position: relative; display: flex; align-items: center;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 60%, #111d28 100%);
  overflow: hidden; padding-top: 66px;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('../img/hero-yacht.webp') center/cover no-repeat;
  opacity: .11;
}
.hero-content { position: relative; z-index: 2; max-width: 760px; padding: 88px 0; }
.hero-slogan {
  font-size: 12px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 22px;
}
.hero-h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 900; line-height: 1.08; color: var(--white); margin-bottom: 24px;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.12rem); color: rgba(255,255,255,.72);
  max-width: 580px; margin-bottom: 40px; line-height: 1.75;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.btn-primary {
  background: var(--gold); color: var(--white);
  font-weight: 800; font-size: .97rem;
  padding: 16px 32px; border-radius: 8px;
  border: none; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .18s, transform .14s;
  -webkit-appearance: none; appearance: none;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-secondary {
  background: transparent; color: var(--white);
  font-weight: 600; font-size: .97rem;
  padding: 16px 32px; border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,.28);
  text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .18s, transform .14s;
}
.btn-secondary:hover { border-color: rgba(255,255,255,.7); transform: translateY(-2px); }
.hero-trust {
  color: rgba(255,255,255,.4); font-size: 13px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.hero-trust .dot { color: rgba(255,255,255,.18); }
/* BETA badge */
.hero-beta {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(212,168,83,.15); border: 1px solid rgba(212,168,83,.3);
  color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .06em;
  padding: 6px 14px; border-radius: 20px; margin-bottom: 28px;
  text-transform: uppercase;
}
.hero-beta .dot { width: 7px; height: 7px; background: var(--gold); border-radius: 50%; flex-shrink: 0; }

/* ── Hero decorative elements ── */
.hero-stripe { display: none; }
.hero-wave {
  position: absolute; bottom: 0; left: 0;
  width: 100%; height: 80px;
  opacity: 0.08; pointer-events: none;
}
.cta-wave {
  position: absolute; bottom: 0; left: 0;
  width: 100%; height: 80px;
  opacity: 0.08; pointer-events: none;
}

/* ── Stats ── */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px; margin-top: 52px;
}
.stat-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--gold);
}
.stat-number { font-size: 2.3rem; font-weight: 900; color: var(--navy); line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: .92rem; color: var(--muted); line-height: 1.5; }
.problem-intro {
  font-size: 0.875rem; color: var(--muted); max-width: 680px; line-height: 1.8; margin: 0 auto 52px;
}

/* ── Modules ── */
.modules-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; margin-top: 52px;
}
.module-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  transition: box-shadow .2s, transform .2s;
  box-shadow: var(--shadow-sm);
}
.module-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.module-icon-wrap {
  width: 48px; height: 48px; border-radius: 10px;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 16px;
}
.module-title { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.module-desc { font-size: .9rem; color: var(--muted); line-height: 1.65; }

/* ── Alerts section ── */
#alerts {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 80px 0;
}
.alerts-intro { color: rgba(255,255,255,.65); font-size: 1.05rem; max-width: 580px; margin: 0 auto 48px; line-height: 1.75; }
.alerts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.alert-card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 24px 20px;
}
.alert-icon { font-size: 1.5rem; margin-bottom: 12px; }
.alert-title { font-size: 1.05rem; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.alert-desc { font-size: .87rem; color: rgba(255,255,255,.55); line-height: 1.6; }

/* ── Devices section ── */
.devices-grid {
  display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; margin-top: 52px;
}
.device-card {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 28px 32px; border-radius: var(--radius);
  border: 1.5px solid var(--border); background: var(--white);
  box-shadow: var(--shadow-sm); min-width: 160px;
}
.device-card.optimized { border-color: var(--gold); }
.device-icon { font-size: 2.5rem; }
.device-name { font-size: .9rem; font-weight: 700; color: var(--navy); }
.device-badge {
  font-size: 11px; font-weight: 700; padding: 3px 10px;
  border-radius: 20px; letter-spacing: .04em;
}
.device-badge.ok { background: #e8f5e9; color: #2e7d32; }
.device-badge.soon { background: #fff3e0; color: #e65100; }

/* ── Differentiators ── */
.diff-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px; margin-top: 52px;
}
.diff-card { display: flex; gap: 20px; align-items: flex-start; }
.diff-icon-wrap {
  flex-shrink: 0; width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.diff-title { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.diff-desc { font-size: .91rem; color: var(--muted); line-height: 1.65; }

/* ── Pricing toggle ── */
.pricing-toggle {
  display: inline-flex; gap: 4px; margin-top: 24px;
  background: var(--bg); padding: 4px; border-radius: 10px; border: 1px solid var(--border);
}
.toggle-btn {
  font-size: 14px; font-weight: 600; color: var(--muted);
  padding: 9px 20px; border-radius: 7px; border: none;
  background: transparent; cursor: pointer; transition: all .18s;
  display: flex; align-items: center; gap: 8px;
}
.toggle-btn.active { background: var(--white); color: var(--navy); box-shadow: var(--shadow-sm); }
.toggle-discount {
  font-size: 11px; font-weight: 700; background: #e8f5e9; color: #2e7d32;
  padding: 2px 7px; border-radius: 10px;
}

/* ── Pricing cards ── */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px; margin-top: 48px; align-items: start;
}
.pricing-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 32px 28px;
  position: relative; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pricing-card.popular {
  border-color: var(--gold);
  box-shadow: 0 6px 32px rgba(212,168,83,.18);
}
/* Enterprise — navy like the topbar */
.pricing-card.enterprise {
  background: var(--navy); border-color: var(--navy);
}
.pricing-card.enterprise:hover { box-shadow: var(--shadow-lg); }
.pricing-card.enterprise .plan-name { color: var(--gold); }
.pricing-card.enterprise .plan-currency,
.pricing-card.enterprise .plan-amount { color: var(--white); }
.pricing-card.enterprise .plan-period { color: rgba(255,255,255,.45); }
.pricing-card.enterprise .plan-annual-note { color: var(--gold-light); }
.pricing-card.enterprise .plan-desc { color: rgba(255,255,255,.55); }
.pricing-card.enterprise .plan-section-label { color: var(--gold); border-top-color: rgba(255,255,255,.1); }
.pricing-card.enterprise .plan-features li { color: rgba(255,255,255,.85); }
.pricing-card.enterprise .plan-features li::before { color: var(--gold); }
.pricing-card.enterprise .btn-plan { background: var(--gold); color: var(--white); }
.pricing-card.enterprise .btn-plan:hover { background: var(--gold-light); }

.popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--white);
  font-size: 11px; font-weight: 800; letter-spacing: .07em;
  padding: 4px 18px; border-radius: 20px; text-transform: uppercase; white-space: nowrap;
}
.plan-name {
  font-size: 1.15rem; font-weight: 700; color: var(--gold-dark);
  text-align: center; letter-spacing: .02em; margin-bottom: 16px;
}
.plan-price-wrap { margin-bottom: 6px; }
.plan-price-row { display: flex; align-items: baseline; gap: 4px; justify-content: center; }
.plan-currency { font-size: 1.1rem; font-weight: 700; color: var(--navy); }
.plan-amount { font-size: 2.8rem; font-weight: 900; color: var(--navy); line-height: 1; }
.plan-period { font-size: .88rem; color: var(--muted); }
.plan-annual-note { font-size: .82rem; color: var(--gold-dark); font-weight: 600; margin-top: 4px; min-height: 20px; text-align: center; }
.plan-ht { font-size: .8rem; color: var(--muted); margin-bottom: 12px; }
.plan-desc { font-size: .9rem; color: var(--muted); margin-bottom: 10px; line-height: 1.6; min-height: 52px; text-align: center; }
.plan-section-label {
  font-size: 10px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold-dark);
  margin-bottom: 12px; padding-top: 16px;
  border-top: 1px solid var(--border);
}
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.plan-features li { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; color: var(--text); line-height: 1.4; }
.plan-features li::before { content: '✓'; color: var(--gold-dark); font-weight: 800; flex-shrink: 0; margin-top: 1px; }
.btn-plan {
  display: flex; align-items: center; justify-content: center;
  background: var(--navy); color: var(--white);
  font-weight: 700; font-size: .95rem; padding: 14px; border-radius: 8px;
  text-decoration: none; transition: background .18s;
}
.btn-plan:hover { background: var(--navy-dark); }
.pricing-card.popular .btn-plan { background: var(--gold); color: var(--white); }
.pricing-card.popular .btn-plan:hover { background: var(--gold-light); }
.pricing-note { text-align: center; color: var(--muted); font-size: .875rem; margin-top: 28px; }
.pricing-note a { color: var(--gold-dark); font-weight: 600; }

/* ── CTA Final ── */
#cta-final { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 60%, #111d28 100%); padding: 100px 0; text-align: center; position: relative; overflow: hidden; }
#cta-final .section-title { color: var(--white); }
#cta-final .section-sub { color: rgba(255,255,255,.62); margin: 0 auto 44px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ── */
footer { background: var(--bg); border-top: 1px solid var(--border); color: var(--muted); padding: 44px 0; font-size: .875rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.footer-brand-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.footer-logo-icon {
  width: 30px; height: 30px; background: var(--gold); border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
}
.footer-name { font-size: .95rem; font-weight: 900; color: var(--navy); letter-spacing: -.01em; }
.footer-left p { font-size: .82rem; color: var(--muted); }
.footer-right { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-right a { color: var(--muted); text-decoration: none; transition: color .18s; }
.footer-right a:hover { color: var(--navy); }

/* ── Contact Modal ── */
.contact-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,.52);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.contact-overlay[hidden] { display: none; }
.contact-box {
  background: var(--white); border-radius: var(--radius);
  padding: 40px; max-width: 480px; width: 100%;
  position: relative; box-shadow: 0 20px 60px rgba(0,0,0,.28);
}
.contact-close {
  position: absolute; top: 14px; right: 14px;
  background: none; border: none; cursor: pointer;
  font-size: 18px; color: var(--muted); line-height: 1;
  padding: 6px; border-radius: 6px; transition: color .15s;
}
.contact-close:hover { color: var(--navy); }
.contact-title { font-size: 1.4rem; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.contact-subtitle { font-size: .875rem; color: var(--muted); margin-bottom: 28px; }
.contact-form .form-group { margin-bottom: 16px; }
.contact-form label { display: block; font-size: .85rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.contact-form input,
.contact-form textarea {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-size: .9rem; color: var(--text); background: var(--bg);
  outline: none; font-family: inherit; transition: border-color .18s;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--navy); }
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-error {
  font-size: .85rem; color: #dc2626; margin-bottom: 14px;
  padding: 10px 14px; background: #fef2f2; border-radius: 6px;
}
.contact-error[hidden] { display: none; }
#contact-submit { box-shadow: none !important; -webkit-appearance: none; appearance: none; outline: none; }
.contact-success { text-align: center; padding: 24px 0; }
.contact-success[hidden] { display: none; }
.contact-success-icon { font-size: 2.5rem; margin-bottom: 14px; }
.contact-success strong { display: block; font-size: 1.1rem; color: var(--navy); margin-bottom: 8px; }
.contact-success p { font-size: .9rem; color: var(--muted); }

/* ── Responsive — tablette ── */
@media (max-width: 1080px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Responsive — mobile ── */
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .container { padding: 0 20px; }
  nav { height: 64px; }
  #hero { padding-top: 64px; }
  .hero-content { padding: 56px 0; }

  /* Navbar — compresser le lang switcher sur mobile */
  .nav-right { gap: 10px; }
  .lang-switcher { gap: 0; }
  .lang-sep { display: none; }
  .lang-switcher a { font-size: 11px; padding: 3px 5px; }
  .nav-right .btn-nav { padding: 8px 14px; font-size: 12px; white-space: nowrap; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-right { justify-content: center; }
  .hero-ctas { flex-direction: column; }
  .btn-primary, .btn-secondary { text-align: center; width: 100%; }
  .pricing-grid { grid-template-columns: 1fr; }
  .devices-grid { gap: 16px; }
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* ── Responsive — mobile nav 2 rangées ── */
@media (max-width: 600px) {
  nav { height: 108px; align-items: flex-start; }
  #hero { padding-top: 108px; }
  .nav-inner { height: 64px; }
  .btn-login { display: none; }
  .lang-txt { display: none; }
  .lang-sep { display: none; }
  .lang-switcher {
    position: absolute; top: 64px; left: 0; right: 0;
    height: 44px; align-items: center;
    justify-content: center; gap: 16px;
    padding: 0 20px;
    background: rgba(255,255,255,.06);
    border-top: 1px solid rgba(255,255,255,.15);
  }
  .lang-switcher a { font-size: 20px; padding: 4px 8px; }
  .nav-right .btn-nav { padding: 7px 12px; font-size: 12px; }
}

/* ── Responsive — petit mobile ── */
@media (max-width: 480px) {
  .hero-h1 { font-size: 2rem; }
  .section-title { font-size: 1.45rem; }
  .modules-grid { grid-template-columns: 1fr; }
  .logo-tagline { display: none; }
  .contact-box { padding: 28px 20px; }
}
