/* Duolangue — duolangue.com
   Palette et typographie héritées du mockup Claude Design (oklch, Inter, JetBrains Mono). */

:root {
  --bg: oklch(0.99 0.003 260);
  --ink: oklch(0.22 0.02 260);
  --ink-soft: oklch(0.4 0.02 260);
  --ink-mute: oklch(0.55 0.015 260);
  --line: oklch(0.9 0.005 260);
  --brand: oklch(0.52 0.16 258);
  --brand-dark: oklch(0.42 0.17 258);
  --brand-tint: oklch(0.96 0.02 258);
  --ok: oklch(0.55 0.15 150);
  --card: #ffffff;
  --radius: 12px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
code, .mono { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; color: #fff; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ---- Header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: oklch(0.99 0.003 260 / 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px; gap: 16px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-mark {
  width: 26px; height: 26px; border-radius: 6px; background: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px; font-weight: 700;
}
.brand-name { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.site-nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.site-nav a { color: var(--ink-soft); font-size: 14.5px; font-weight: 500; }
.site-nav a:hover { color: var(--ink); }
.lang-switch { font-weight: 600; }

.btn {
  display: inline-block; background: var(--brand); color: #fff !important;
  padding: 10px 20px; border-radius: 9999px; font-size: 14.5px; font-weight: 600;
  border: 1px solid var(--brand);
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--brand) !important; }
.btn-ghost:hover { background: var(--brand-tint); }
.btn-lg { padding: 14px 28px; font-size: 16px; }

/* ---- Hero ---- */
.hero { padding: 88px 0 72px; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--brand); background: var(--brand-tint);
  padding: 6px 14px; border-radius: 9999px; margin-bottom: 22px;
}
h1 {
  font-size: clamp(38px, 6vw, 60px); line-height: 1.05; letter-spacing: -0.02em;
  font-weight: 800; margin: 0 0 20px;
}
h1 .accent { color: var(--brand); }
.hero p.lede {
  max-width: 640px; margin: 0 auto 32px; font-size: 18px; color: var(--ink-soft);
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.hero-points { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; font-size: 14px; color: var(--ink-mute); }
.hero-points span::before { content: "✓ "; color: var(--ok); font-weight: 700; }

/* ---- Sections ---- */
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line); }
h2 { font-size: clamp(26px, 4vw, 34px); letter-spacing: -0.015em; font-weight: 800; margin: 0 0 12px; }
.section-intro { max-width: 640px; color: var(--ink-soft); font-size: 16.5px; margin: 0 0 44px; }
.center { text-align: center; }
.center .section-intro { margin-left: auto; margin-right: auto; }

/* ---- Features ---- */
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px;
}
.feature h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.feature code { background: var(--brand-tint); color: var(--brand-dark); padding: 1px 6px; border-radius: 4px; font-size: 13px; }

/* ---- Screenshots ---- */
.shots-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.shot { margin: 0; }
.shot img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 2px 12px oklch(0.22 0.02 260 / 0.06);
}
.shot figcaption { font-size: 13.5px; color: var(--ink-mute); margin-top: 10px; }

/* ---- Comparison ---- */
.compare-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compare-table caption { text-align: left; font-size: 13.5px; color: var(--ink-mute); padding: 0 0 14px; caption-side: top; }
.compare-table th, .compare-table td { padding: 14px 18px; text-align: left; font-size: 14.5px; border-bottom: 1px solid var(--line); }
.compare-table thead th { background: oklch(0.97 0.004 260); font-weight: 700; }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody th { font-weight: 600; color: var(--ink-soft); }
.compare-table .col-duo { color: var(--brand-dark); font-weight: 600; }
.table-scroll { overflow-x: auto; border-radius: var(--radius); }

/* ---- Pricing ---- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; display: flex; flex-direction: column; position: relative;
}
.plan.popular { border-color: var(--brand); box-shadow: 0 4px 20px oklch(0.52 0.16 258 / 0.12); }
.plan .badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; padding: 4px 12px; border-radius: 9999px;
}
.plan h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.plan .price { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; }
.plan .price small { font-size: 14px; font-weight: 500; color: var(--ink-mute); }
.plan .plan-for { color: var(--ink-soft); font-size: 14px; margin: 6px 0 20px; }
.plan ul { list-style: none; margin: 0 0 26px; padding: 0; font-size: 14.5px; color: var(--ink-soft); flex: 1; }
.plan li { padding: 5px 0 5px 24px; position: relative; }
.plan li::before { content: "✓"; color: var(--ok); font-weight: 700; position: absolute; left: 0; }
.plan .btn { text-align: center; }

/* ---- FAQ ---- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 4px 22px; margin-bottom: 12px;
}
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; padding: 14px 0; list-style: none; position: relative; padding-right: 30px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 20px; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--ink-soft); font-size: 15px; }

/* ---- Final CTA ---- */
.final-cta { text-align: center; background: var(--brand-tint); border-radius: 20px; padding: 64px 32px; margin: 0 32px; }
.final-cta h2 { margin-bottom: 14px; }
.final-cta p { max-width: 560px; margin: 0 auto 28px; color: var(--ink-soft); }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; margin-top: 72px; }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer p { margin: 0; font-size: 14px; color: var(--ink-mute); }
.site-footer nav { display: flex; gap: 22px; }
.site-footer nav a { font-size: 14px; color: var(--ink-soft); }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .features-grid, .shots-grid, .pricing-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 48px; }
  section { padding: 52px 0; }
  .final-cta { margin: 0 16px; padding: 48px 20px; }
  .wrap { padding: 0 20px; }
}


/* Curseur pointer sur les images cliquables */
.shots-grid .shot img {
  cursor: zoom-in;
  transition: opacity 0.2s ease;
}
.shots-grid .shot img:hover {
  opacity: 0.85;
}

/* Overlay lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 2rem;
}
.lightbox.active {
  display: flex;
}
.lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
}
.lightbox-caption {
  color: #fff;
  margin-top: 1rem;
  font-size: 0.95rem;
  text-align: center;
  max-width: 700px;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  line-height: 1;
}
.lightbox-close {
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2.5rem;
}
.lightbox-prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  color: #ccc;
}

@media (max-width: 600px) {
  .lightbox-prev, .lightbox-next { font-size: 1.5rem; padding: 0.5rem; }
  .lightbox-close { font-size: 2rem; top: 1rem; right: 1rem; }
}