/* Shared styles for the public landing pages (welcome.html, ligne.html). */
:root {
  --bg: #fbfbfd;
  --bg-rows: #f1f2f7;
  --line-red: #ea192d;
  --text-blue: #2f4283;
  --ink: #1a2140;
  --accent: var(--line-red);
  --accent-text: #ffffff;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}
body {
  margin: 0;
  padding: 24px 20px 48px;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}
.wrap {
  max-width: 720px;
  margin: 0 auto;
}

/* ── Notice (e.g. unknown URL) ── */
.notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.12);
  color: #92400e;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 4px 0 12px;
  font-weight: 600;
  text-align: center;
}
.notice-icon {
  flex: 0 0 auto;
}

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 12px 0 8px;
}
.hero h1 {
  margin: 0 0 10px 0;
  font-size: 2rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero .accent {
  background: linear-gradient(90deg, #ea192d 0%, #ff5a5f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  margin: 0 auto;
  max-width: 520px;
  font-size: 1.05rem;
  opacity: 0.8;
}

/* ── Screenshot preview ── */
.preview {
  margin: 22px auto 0;
  max-width: 640px;
}
.preview img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(47, 66, 131, 0.12);
  box-shadow:
    0 1px 2px rgba(26, 33, 64, 0.08),
    0 12px 40px -12px rgba(26, 33, 64, 0.35);
}
.preview figcaption {
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 8px;
}

h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-blue);
  margin: 40px 0 14px;
}
h2::before {
  content: "";
  flex: 0 0 auto;
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
}

/* ── CTA ── */
.cta-row {
  display: flex;
  justify-content: center;
  margin: 22px 0 4px;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--text-blue);
  /* Always white on the dark-blue button: --accent-text follows the line's
     text colour, which is black on light lines (ligne J's yellow). */
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 28px;
  border-radius: 10px;
  box-shadow: 0 4px 14px -2px rgba(26, 33, 64, 0.35);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px -4px rgba(26, 33, 64, 0.45);
}
.cta:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px -2px rgba(26, 33, 64, 0.4);
  transition-duration: 0.05s;
}

/* ── Example cards ── */
.examples {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.example {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-rows);
  border-radius: 8px;
  padding: 14px 16px;
  border-left: 5px solid var(--accent);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.example:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px -6px rgba(47, 66, 131, 0.28);
}
.example:active {
  transform: translateY(-1px) scale(0.995);
  box-shadow: 0 3px 10px -4px rgba(47, 66, 131, 0.25);
  transition-duration: 0.05s;
}
.example .ex-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 3px;
}
.example .ex-logo {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.example .ex-title {
  font-weight: 700;
  font-size: 1rem;
}
.example .ex-desc {
  font-size: 0.88rem;
  opacity: 0.75;
}
.example .ex-open {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 8px;
}

/* ── Steps ── */
ol.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
ol.steps li {
  position: relative;
  padding: 4px 0 14px 42px;
  counter-increment: step;
}
ol.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
ol.steps li strong {
  font-weight: 700;
}
ol.steps a {
  color: var(--accent);
  font-weight: 700;
}

/* ── Install note ── */
.card {
  background: var(--bg-rows);
  border-radius: 8px;
  padding: 16px 18px;
  font-size: 0.92rem;
}
.card p {
  margin: 0 0 10px;
}
.card p:last-child {
  margin-bottom: 0;
}
.kbd {
  display: inline-block;
  background: #fff;
  border: 1px solid rgba(47, 66, 131, 0.25);
  border-radius: 5px;
  padding: 1px 7px;
  font-weight: 700;
  font-size: 0.85rem;
}
#install-btn {
  display: none;
  margin-top: 4px;
  background: var(--text-blue);
  color: #fff;
  border: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 20px;
  border-radius: 7px;
  cursor: pointer;
}
#install-btn:hover {
  opacity: 0.9;
}

/* ── Feedback ── */
.feedback {
  text-align: center;
  font-size: 0.92rem;
  opacity: 0.8;
  margin-top: 30px;
}
.feedback a {
  color: var(--accent);
  font-weight: 700;
}

a {
  color: var(--accent);
}

/* ── Line landing page (ligne.html) ── */
.crumbs {
  font-size: 0.85rem;
  opacity: 0.75;
  margin: 0 0 8px;
}
.crumbs a {
  color: inherit;
}
.hero .line-logo {
  display: block;
  margin: 0 auto 12px;
  width: 64px;
  height: 64px;
}
.cta-row.two {
  flex-wrap: wrap;
  gap: 10px;
}
.cta.secondary {
  background: #fff;
  color: var(--text-blue);
  border: 2px solid var(--text-blue);
  box-shadow: none;
}
.branch {
  margin: 0 0 18px;
}
.branch h3 {
  font-size: 1rem;
  margin: 0 0 4px;
}
.branch p {
  margin: 0 0 8px;
  font-size: 0.88rem;
  opacity: 0.75;
}
.stations {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.stations a {
  display: inline-block;
  background: var(--bg-rows);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.stations a:hover {
  background: #e4e6f0;
}
.faq dt {
  font-weight: 700;
  margin-top: 12px;
}
.faq dd {
  margin: 4px 0 0;
  opacity: 0.85;
}
