/* ============================================================
   UKTO — Section produit « Invoice Sync for Pennylane »
   Complète css/styles.css, réutilise ses variables.
   ============================================================ */

/* ===== Sélecteur de langue ===== */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-left: auto;
}
.lang-switch a { padding: 4px 6px; border-radius: 6px; transition: color .2s, background .2s; }
.lang-switch a:hover { color: var(--text); }
.lang-switch a.is-active { color: #04060f; background: var(--gradient); }

/* ===== Hero produit ===== */
.prod-hero { padding: 88px 0 64px; }
.prod-hero-inner { max-width: 880px; }
.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--gradient-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}
.prod-h1 {
  margin: 0 0 20px;
  font-size: clamp(32px, 5.2vw, 56px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.02em;
  background: linear-gradient(180deg, #fff 30%, #9fb4d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.prod-lead {
  margin: 0 0 30px;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.65;
  color: var(--text-dim);
  max-width: 68ch;
}
.prod-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text); font-weight: 600;
  transition: border-color .2s, background .2s, transform .2s;
}
.btn-ghost:hover { border-color: var(--accent-cyan); background: var(--surface-2); transform: translateY(-1px); }

.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.badge-row li {
  padding: 6px 13px; border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, .5);
  font-size: 13px; font-weight: 600; color: var(--text-dim);
}

/* ===== Sections ===== */
.section { padding: 72px 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(11, 18, 38, .55), transparent); }
.sec-title {
  margin: 0 0 14px;
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 800; letter-spacing: -.015em; color: #fff;
}
.sec-lead { margin: 0 0 38px; color: var(--text-dim); max-width: 72ch; font-size: 17px; }

/* ===== Grilles ===== */
.grid-3, .grid-4 { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card, .feat {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color .25s, transform .25s;
}
.card:hover, .feat:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.card h3, .feat h4 { margin: 0 0 8px; font-size: 17px; font-weight: 700; color: #fff; }
.card p, .feat p { margin: 0; color: var(--text-dim); font-size: 15px; line-height: 1.6; }

.feat-group { margin-bottom: 42px; }
.feat-group-title {
  margin: 0 0 16px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  font-size: 13px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-teal);
}

/* ===== Listes à coches ===== */
.solution-grid, .req-grid { display: grid; gap: 34px; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .solution-grid, .req-grid { grid-template-columns: 1.1fr 1fr; align-items: start; }
  .req-grid .sec-title { margin-bottom: 0; }
}
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-dim); line-height: 1.6; }
.check-list svg { flex: 0 0 auto; margin-top: 3px; color: var(--accent-green); }

/* ===== Comparatif ===== */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.cmp { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 15px; }
.cmp thead th {
  padding: 16px 18px; text-align: left;
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-muted); background: rgba(11, 18, 38, .7);
  border-bottom: 1px solid var(--border);
}
.cmp thead th.is-us { color: var(--accent-cyan); }
.cmp tbody th {
  padding: 15px 18px; text-align: left; font-weight: 600; color: var(--text);
  border-bottom: 1px solid rgba(99, 179, 237, .10);
}
.cmp tbody td {
  padding: 15px 18px; vertical-align: top;
  border-bottom: 1px solid rgba(99, 179, 237, .10);
  color: var(--text-dim);
}
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: none; }
.cmp-them { color: var(--text-muted); }
.cmp-us { color: var(--text); background: rgba(34, 211, 168, .06); }
.fineprint { margin-top: 14px; font-size: 13px; color: var(--text-muted); max-width: 80ch; }

/* ===== Étapes ===== */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { padding: 26px 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.step-n {
  display: inline-block; margin-bottom: 12px;
  font-size: 26px; font-weight: 800; letter-spacing: -.02em;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.steps h3 { margin: 0 0 8px; font-size: 17px; color: #fff; }
.steps p { margin: 0; color: var(--text-dim); font-size: 15px; line-height: 1.6; }

/* ===== FAQ ===== */
.faq { display: grid; gap: 12px; max-width: 900px; }
.faq details {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); overflow: hidden;
}
.faq summary {
  padding: 18px 22px; cursor: pointer; font-weight: 650; color: #fff;
  list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; font-size: 22px; line-height: 1; color: var(--accent-cyan); flex: 0 0 auto;
}
.faq details[open] summary::after { content: '−'; }
.faq p { margin: 0; padding: 0 22px 20px; color: var(--text-dim); line-height: 1.7; max-width: 78ch; }

/* ===== CTA final ===== */
.prod-final-inner { text-align: center; max-width: 760px; margin: 0 auto; }
.prod-final-inner .sec-lead { margin-left: auto; margin-right: auto; }
.prod-final-inner .prod-cta { justify-content: center; margin-bottom: 0; }

/* ============================================================
   DOCUMENTATION
   ============================================================ */
.doc-head { padding: 76px 0 30px; max-width: 880px; }
.doc-back { display: inline-block; margin-bottom: 18px; color: var(--accent-cyan); font-weight: 600; font-size: 14px; }
.doc-back:hover { text-decoration: underline; }

.doc-layout { display: grid; gap: 44px; grid-template-columns: 1fr; padding-bottom: 80px; }
@media (min-width: 1000px) {
  .doc-layout { grid-template-columns: 250px 1fr; align-items: start; }
  .doc-toc { position: sticky; top: calc(var(--header-h) + 24px); }
}
.doc-toc-title {
  margin: 0 0 12px; font-size: 12px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted);
}
.doc-toc ol { margin: 0; padding: 0 0 0 20px; display: grid; gap: 9px; }
.doc-toc a { color: var(--text-dim); font-size: 14px; }
.doc-toc a:hover { color: var(--accent-cyan); }

.doc-body { max-width: 78ch; }
.doc-section { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--border); }
.doc-section:last-of-type { border-bottom: none; }
.doc-section h2 {
  margin: 0 0 18px; font-size: clamp(21px, 2.6vw, 27px);
  font-weight: 750; color: #fff; scroll-margin-top: calc(var(--header-h) + 20px);
}
.doc-body p { color: var(--text-dim); line-height: 1.75; margin: 0 0 16px; }
.doc-body strong { color: var(--text); font-weight: 650; }
.doc-body em { color: var(--text); font-style: normal; font-weight: 600; }
.doc-body code {
  padding: 2px 7px; border-radius: 5px;
  background: rgba(34, 211, 238, .10); border: 1px solid var(--border);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .88em; color: var(--accent-cyan);
}

.doc-list { margin: 0 0 18px; padding-left: 22px; display: grid; gap: 10px; }
.doc-list li { color: var(--text-dim); line-height: 1.7; }

.doc-code {
  margin: 0 0 18px; padding: 18px 20px; overflow-x: auto;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: #060a16;
}
.doc-code code {
  padding: 0; border: none; background: none; color: var(--text);
  font-size: 13.5px; line-height: 1.7; white-space: pre;
}

.doc-warn {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 0 0 18px; padding: 15px 18px;
  border: 1px solid rgba(251, 191, 36, .35); border-left-width: 3px;
  border-radius: var(--radius);
  background: rgba(251, 191, 36, .07);
  color: #fde68a;
}
.doc-warn svg { flex: 0 0 auto; margin-top: 3px; }
.doc-warn span { line-height: 1.65; }

.doc-dl { margin: 0; display: grid; gap: 18px; }
.doc-dl dt { font-weight: 650; color: #fff; margin-bottom: 5px; }
.doc-dl dd { margin: 0; color: var(--text-dim); line-height: 1.7; }

.doc-foot-cta { margin-top: 10px; }

/* ===== Pied de page : mention légale ===== */
.footer-disclaimer {
  margin-top: 8px; font-size: 12.5px; line-height: 1.6;
  color: var(--text-muted); max-width: 90ch;
}

/* ============================================================
   ENCART PRODUIT SUR LA PAGE D'ACCUEIL
   ============================================================ */
.product-teaser {
  position: relative;
  padding: 38px 36px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(700px 320px at 100% 0%, rgba(34, 211, 168, .12), transparent 65%),
    var(--surface);
  overflow: hidden;
}
.product-teaser::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--gradient);
}
.product-teaser-body { max-width: 68ch; }
.product-teaser-eyebrow {
  margin: 0 0 8px; font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent-cyan);
}
.product-teaser h3 {
  margin: 0 0 12px; font-size: clamp(22px, 3vw, 30px);
  font-weight: 800; letter-spacing: -.015em; color: #fff;
}
.product-teaser > .product-teaser-body > p { margin: 0 0 18px; color: var(--text-dim); line-height: 1.7; }
.product-teaser-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.product-teaser-tags li {
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border);
  background: rgba(15, 23, 42, .5); font-size: 12.5px; font-weight: 600; color: var(--text-dim);
}
.product-teaser-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
@media (max-width: 700px) { .product-teaser { padding: 28px 22px; } }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .lang-switch { margin-left: 0; order: 3; }
  .prod-hero { padding: 60px 0 48px; }
  .section { padding: 56px 0; }
}

/* ===== Éditions Gratuite / Pro ===== */
.editions-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
  margin-top: 36px; align-items: stretch;
}
.edition {
  display: flex; flex-direction: column; gap: 18px;
  padding: 32px 28px; border-radius: 16px;
  border: 1px solid var(--border); background: rgba(15, 23, 42, .5);
}
.edition-pro { border-color: var(--accent-green); position: relative; }
.edition-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.edition-head h3 { margin: 0; font-size: 24px; font-weight: 800; color: #fff; }
.edition-tag {
  padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700;
  border: 1px solid var(--border); color: var(--text-dim); white-space: nowrap;
}
.edition-pro .edition-tag { border-color: var(--accent-green); color: var(--accent-green); }
.edition-desc { margin: 0; color: var(--text-dim); }
.edition .check-list { flex: 1; }
.edition .btn { align-self: flex-start; }
.btn.is-disabled { opacity: .55; cursor: default; pointer-events: none; }
.pro-badge {
  display: inline-block; vertical-align: 2px; margin-left: 2px;
  padding: 2px 7px; border-radius: 999px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .06em;
  color: var(--accent-green); border: 1px solid var(--accent-green);
}
@media (max-width: 860px) { .editions-grid { grid-template-columns: 1fr; } }
