/* onclic.css — shared landing page styles (production)
   All onclic.fr static landing pages reference this file.
   No external dependencies. Mobile-first. */

:root {
  --c-bg: #f8fafc;
  --c-surface: #ffffff;
  --c-surface-2: #f1f5f9;
  --c-border: #e2e8f0;
  --c-text: #1e293b;
  --c-text-muted: #64748b;
  --c-heading: #0f172a;
  --c-accent: #2563eb;
  --c-accent-hover: #1d4ed8;
  --c-cta: #16a34a;
  --c-cta-hover: #15803d;
  --c-tag-bg: #dbeafe;
  --c-tag-text: #1d4ed8;
  --c-tag-green-bg: #dcfce7;
  --c-tag-green-text: #15803d;
  --c-warn-bg: #fef9c3;
  --c-warn-text: #854d0e;
  --c-danger-bg: #fee2e2;
  --c-danger-text: #991b1b;
  --radius: 8px;
  --radius-lg: 12px;
  --max-w: 1100px;
  --max-w-text: 740px;
  --nav-h: 64px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,.1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1, h2, h3, h4 { color: var(--c-heading); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1rem; }
p { max-width: 70ch; }
a { color: var(--c-accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--c-accent-hover); }
strong { font-weight: 600; }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.container--text {
  max-width: var(--max-w-text);
}

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-border);
  height: var(--nav-h);
}
.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav__logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-heading);
  text-decoration: none;
  letter-spacing: -.02em;
}
.nav__logo span { color: var(--c-accent); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}
.nav__links a {
  font-size: .9rem;
  color: var(--c-text-muted);
  text-decoration: none;
}
.nav__links a:hover { color: var(--c-heading); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background .15s, transform .1s;
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn-primary {
  background: var(--c-cta);
  color: #fff;
}
.btn-primary:hover { background: var(--c-cta-hover); color: #fff; }
.btn-secondary {
  background: var(--c-surface);
  color: var(--c-accent);
  border: 1.5px solid var(--c-accent);
}
.btn-secondary:hover { background: var(--c-tag-bg); }
.btn-accent {
  background: var(--c-accent);
  color: #fff;
}
.btn-accent:hover { background: var(--c-accent-hover); color: #fff; }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn-sm { padding: 7px 14px; font-size: .85rem; }

/* ── Tags / badges ── */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.tag-blue { background: var(--c-tag-bg); color: var(--c-tag-text); }
.tag-green { background: var(--c-tag-green-bg); color: var(--c-tag-green-text); }
.tag-warn { background: var(--c-warn-bg); color: var(--c-warn-text); }
.tag-danger { background: var(--c-danger-bg); color: var(--c-danger-text); }

/* ── Hero ── */
.hero {
  padding: 64px 0 56px;
  text-align: center;
}
.hero__eyebrow {
  margin-bottom: 16px;
}
.hero h1 {
  margin-bottom: 20px;
}
.hero__sub {
  font-size: 1.15rem;
  color: var(--c-text-muted);
  max-width: 60ch;
  margin: 0 auto 32px;
}
.hero__cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.hero__proof {
  margin-top: 24px;
  font-size: .85rem;
  color: var(--c-text-muted);
}

/* ── Sections ── */
section { padding: 56px 0; }
section + section { border-top: 1px solid var(--c-border); }
.section-title {
  text-align: center;
  margin-bottom: 40px;
}
.section-title h2 { margin-bottom: 10px; }
.section-title p { color: var(--c-text-muted); margin: 0 auto; }

/* ── Cards ── */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.card--highlight {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 2px rgba(37,99,235,.12), var(--shadow-md);
}

/* ── Pricing cards ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  align-items: start;
}
.pricing-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  position: relative;
  transition: box-shadow .2s;
}
.pricing-card:hover { box-shadow: var(--shadow-md); }
.pricing-card--popular {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 2px rgba(37,99,235,.15);
}
.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-accent);
  color: #fff;
  padding: 3px 14px;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pricing-card__name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-heading);
  margin-bottom: 4px;
}
.pricing-card__specs {
  font-size: .82rem;
  color: var(--c-text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}
.pricing-card__price {
  margin-bottom: 20px;
}
.pricing-card__price .amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--c-heading);
  letter-spacing: -.03em;
}
.pricing-card__price .unit {
  font-size: .85rem;
  color: var(--c-text-muted);
  margin-left: 4px;
}
.pricing-card__price .period {
  display: block;
  font-size: .8rem;
  color: var(--c-text-muted);
  margin-top: 2px;
}
.pricing-card__cta {
  display: block;
  text-align: center;
  padding: 10px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  background: var(--c-accent);
  color: #fff;
  transition: background .15s;
}
.pricing-card--popular .pricing-card__cta {
  background: var(--c-cta);
}
.pricing-card__cta:hover {
  background: var(--c-accent-hover);
  color: #fff;
}
.pricing-card--popular .pricing-card__cta:hover {
  background: var(--c-cta-hover);
}

/* ── Billing toggle ── */
.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 4px;
  width: fit-content;
  margin: 0 auto 40px;
}
.billing-toggle input[type="radio"] { display: none; }
.billing-toggle label {
  padding: 8px 18px;
  border-radius: calc(var(--radius) - 2px);
  font-size: .88rem;
  font-weight: 500;
  color: var(--c-text-muted);
  cursor: pointer;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.billing-toggle input[type="radio"]:checked + label {
  background: var(--c-surface);
  color: var(--c-heading);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* ── Feature list ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.feature-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
}
.feature-item__icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.feature-item__label { font-weight: 600; font-size: .9rem; margin-bottom: 2px; }
.feature-item__desc { font-size: .83rem; color: var(--c-text-muted); }

/* ── Comparison table ── */
.table-wrap { overflow-x: auto; }
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.comparison-table th,
.comparison-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--c-border);
  vertical-align: top;
}
.comparison-table th {
  background: var(--c-surface-2);
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--c-text-muted);
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table td:first-child { font-weight: 600; color: var(--c-heading); }
.comparison-table .col-onclic { background: rgba(37,99,235,.04); }
.comparison-table .col-competitor { background: rgba(248,250,252,.6); }
.comparison-table .col-header-onclic { color: var(--c-accent); background: rgba(37,99,235,.06); }
.comparison-table .col-header-competitor { color: var(--c-text-muted); }
.check { color: #16a34a; font-weight: 700; }
.cross { color: #dc2626; }
.partial { color: #d97706; }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 8px; max-width: var(--max-w-text); margin: 0 auto; }
details.faq-item {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
}
details.faq-item[open] { border-color: var(--c-accent); }
details.faq-item summary {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
details.faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--c-text-muted);
  flex-shrink: 0;
}
details.faq-item[open] summary::after { content: '−'; }
details.faq-item summary::-webkit-details-marker { display: none; }
.faq-answer {
  padding: 0 20px 16px;
  color: var(--c-text-muted);
  font-size: .93rem;
  line-height: 1.7;
  border-top: 1px solid var(--c-border);
  padding-top: 14px;
  margin-top: -1px;
}
.faq-answer p + p { margin-top: 8px; }
.faq-answer a { color: var(--c-accent); }

/* ── CTA block ── */
.cta-block {
  text-align: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  color: #fff;
  padding: 64px 24px;
  border-radius: var(--radius-lg);
}
.cta-block h2 { color: #fff; margin-bottom: 14px; }
.cta-block p { color: rgba(255,255,255,.75); margin: 0 auto 32px; }
.cta-block .btn-primary {
  background: var(--c-cta);
}
.cta-block .btn-primary:hover { background: var(--c-cta-hover); }

/* ── Alert / callout ── */
.callout {
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: .9rem;
  line-height: 1.6;
  margin: 20px 0;
}
.callout-info { background: var(--c-tag-bg); color: var(--c-tag-text); border-left: 3px solid var(--c-accent); }
.callout-warn { background: var(--c-warn-bg); color: var(--c-warn-text); border-left: 3px solid #d97706; }
.callout-success { background: var(--c-tag-green-bg); color: var(--c-tag-green-text); border-left: 3px solid var(--c-cta); }

/* ── Footer ── */
.footer {
  background: var(--c-heading);
  color: rgba(255,255,255,.6);
  padding: 48px 0 32px;
  font-size: .85rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer__brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
  letter-spacing: -.02em;
}
.footer__tagline { line-height: 1.6; }
.footer__col-title {
  color: #fff;
  font-weight: 600;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 14px;
}
.footer__links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer__links a { color: rgba(255,255,255,.6); text-decoration: none; }
.footer__links a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Utilities ── */
.text-center { text-align: center; }
.text-muted { color: var(--c-text-muted); }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: 4px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.wrap { flex-wrap: wrap; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .nav__links { display: none; }
  .hero { padding: 48px 0 40px; }
  section { padding: 40px 0; }
}
@media (max-width: 480px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .comparison-table { font-size: .8rem; }
  .comparison-table th, .comparison-table td { padding: 10px 12px; }
}

/* ── Inline pricing data toggle (JS-powered) ── */
[data-period] { display: none; }
[data-period].active { display: inline; }
