/*
 * Les pages « Le logiciel » de sunseahub.com — HTML statique, générées par
 * scripts/logiciel/build_pages.py. Mêmes couleurs que le site React (marketing.css), sans
 * dépendre de son bundle : un robot qui n'exécute pas le JavaScript lit tout.
 */
:root {
  --ink: #0c2a42;
  --ink-soft: #3d5a6c;
  --sea: #0f6f86;
  --sea-soft: #e3f1f4;
  --mint: #d9f2e9;
  --sand: #f5eddf;
  --line: #d7e3e8;
  --bg: #f6f9fa;
  --white: #fff;
  --coral: #ef735b;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
a { color: var(--sea); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }

/* En-tête */
.lg-header { background: var(--ink); color: var(--white); }
.lg-header__inner {
  max-width: 1120px; margin: 0 auto; padding: 14px 16px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.lg-brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-weight: 700; }
.lg-brand img { width: 32px; height: 32px; border-radius: 50%; background: var(--white); }
.lg-nav { display: flex; gap: 18px; flex-wrap: wrap; margin-left: auto; font-size: 15px; }
.lg-nav a { color: #cfe3ea; text-decoration: none; }
.lg-nav a:hover, .lg-nav a[aria-current='page'] { color: var(--white); text-decoration: underline; }
.lg-cta {
  display: inline-block; background: var(--coral); color: var(--white); font-weight: 700;
  padding: 10px 16px; border-radius: 8px; text-decoration: none; white-space: nowrap;
}
.lg-cta:hover { filter: brightness(1.05); }
.lg-cta--ghost { background: transparent; border: 1px solid var(--sea); color: var(--sea); }

/* Corps */
.lg-main { max-width: 1120px; margin: 0 auto; padding: 24px 16px 48px; }
.lg-crumbs { font-size: 14px; color: var(--ink-soft); margin: 0 0 18px; }
.lg-crumbs a { color: var(--ink-soft); }
.lg-eyebrow { color: var(--sea); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 8px; }
h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.15; margin: 0 0 18px; max-width: 900px; text-wrap: balance; }
h2 { font-size: clamp(23px, 3vw, 29px); line-height: 1.25; margin: 0 0 14px; text-wrap: balance; }
h3 { font-size: 19px; line-height: 1.35; margin: 22px 0 8px; }
.lg-answer {
  font-size: 19px; max-width: 820px; margin: 0 0 26px; padding: 18px 22px;
  background: var(--white); border-left: 4px solid var(--sea); border-radius: 0 var(--radius) var(--radius) 0;
}
.lg-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 30px; }
.lg-layout { display: grid; gap: 32px; }
.lg-article { min-width: 0; }
.lg-article section { padding: 28px 0; border-top: 1px solid var(--line); }
.lg-article p { margin: 0 0 14px; max-width: 760px; }
.lg-article ul, .lg-article ol { max-width: 760px; padding-left: 22px; }
.lg-article li { margin: 6px 0; }
.lg-article li a { overflow-wrap: anywhere; }
.lg-note { background: var(--sand); border-radius: var(--radius); padding: 16px 20px; max-width: 760px; }

/* Tableaux : défilent seuls sur téléphone, jamais la page. */
.lg-table { overflow-x: auto; margin: 16px 0; max-width: 100%; }
.lg-table table { border-collapse: collapse; width: 100%; min-width: 520px; background: var(--white); font-size: 15px; }
.lg-table th, .lg-table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.lg-table th { background: var(--sea-soft); }

/* Verdicts des comparatifs */
.lg-table--wide table { min-width: 980px; font-size: 14px; }
.lg-table--wide td:first-child { font-weight: 600; min-width: 170px; }
.lg-v { display: inline-block; font-weight: 800; font-size: 13px; border-radius: 99px; padding: 2px 10px; margin-bottom: 4px; }
.lg-v--yes { background: var(--mint); color: #1d6b5a; }
.lg-v--partial { background: #fff0df; color: #8a4f1c; }
.lg-v--no { background: #fde4de; color: #9a3a26; }
.lg-v--unknown { background: #eef2f4; color: var(--ink-soft); }
.lg-table small { display: block; color: var(--ink-soft); line-height: 1.45; }

/* Captures */
.lg-shots { display: grid; gap: 18px; margin: 20px 0; }
.lg-shot { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.lg-shot img { display: block; margin: 0 auto; border-radius: 8px; }
.lg-shot--phone img { max-width: 292px; width: 100%; }
.lg-shot figcaption { font-size: 14px; color: var(--ink-soft); margin-top: 10px; }

/* Cartes de liens */
.lg-cards { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 14px; }
.lg-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.lg-card h3 { margin: 0 0 6px; }
.lg-card p { margin: 0; color: var(--ink-soft); }
.lg-card__kicker { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--sea); margin-bottom: 4px; }

/* FAQ */
.lg-faq details { background: var(--white); border: 1px solid var(--line); border-radius: 10px; margin: 10px 0; max-width: 820px; }
.lg-faq summary { cursor: pointer; padding: 14px 18px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.lg-faq summary::-webkit-details-marker { display: none; }
.lg-faq summary::after { content: '+'; color: var(--sea); font-size: 22px; line-height: 1; }
.lg-faq details[open] summary::after { content: '−'; }
.lg-faq details p { padding: 0 18px 14px; margin: 0; }

/* Bandeau d'appel */
.lg-band { margin: 36px 0 0; padding: 26px; border-radius: var(--radius); background: var(--ink); color: var(--white); }
.lg-band h2 { color: var(--white); }
.lg-band p { color: #cfe3ea; margin: 0 0 16px; max-width: 700px; }

/* Pied de page */
.lg-footer { background: var(--white); border-top: 1px solid var(--line); font-size: 14px; }
.lg-footer__inner { max-width: 1120px; margin: 0 auto; padding: 22px 16px; display: flex; flex-wrap: wrap; gap: 10px 20px; }
.lg-footer__inner strong { margin-right: auto; }

@media (min-width: 720px) {
  .lg-shots--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg-shots--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .lg-nav { margin-left: 0; width: 100%; gap: 14px; }
  .lg-header__inner .lg-cta { display: none; }
  .lg-answer { font-size: 17px; padding: 14px 16px; }
  .lg-band { padding: 20px; }
}
@media print {
  .lg-header, .lg-footer, .lg-band, .lg-hero-actions { display: none; }
}

/* Comparatif : un pictogramme par case, SunSea Hub en avant, précisions repliées dessous. */
.cx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cmp-top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; margin: 20px 0; align-items: start; }
.cmp-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.cmp-card h3 { font-size: 17px; margin: 0 0 14px; }
.cmp-bars, .cmp-ahead { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cmp-bars li { display: grid; grid-template-columns: minmax(110px, 150px) 1fr 28px; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-soft); }
.cmp-bar { height: 12px; background: #eef2f4; border-radius: 99px; overflow: hidden; }
.cmp-bar span { display: block; height: 100%; background: #b9c9d1; border-radius: 99px; }
.cmp-bars li.me { color: var(--ink); font-weight: 800; }
.cmp-bars li.me .cmp-bar span { background: var(--sea); }
.cmp-bars b { text-align: right; }
.cmp-ahead { gap: 8px; }
.cmp-ahead li { background: var(--mint); color: #16513f; border-radius: 10px; padding: 8px 12px; font-weight: 700; font-size: 14px; }
.cmp-ahead li::before { content: '✓ '; }
.cmp-legend { font-size: 13px; color: var(--ink-soft); margin: 10px 0; }
.cmp-wrap { margin: 12px 0; max-width: 100%; }
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 14px; }
.cmp th, .cmp td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: center; }
.cmp tbody tr:last-child > * { border-bottom: 0; }
.cmp thead th { font-size: 13px; color: var(--ink-soft); font-weight: 700; vertical-align: bottom; }
.cmp tbody th[scope='row'] { text-align: left; font-weight: 600; color: var(--ink); }
.cmp .cmp-moment th { text-align: left; background: var(--bg); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--sea); }
.cmp .me { background: #eaf6f8; }
.cmp thead .me { background: var(--sea); color: var(--white); font-size: 14px; border-radius: 10px 10px 0 0; }
.cmp--2 th[scope='row'] { width: 55%; }
.cx { display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 99px; font-weight: 900; font-size: 14px; }
.cx:not(.cx--unknown) { padding: 0 6px; }
.cx--yes { background: var(--mint); color: #1d6b5a; }
.me .cx--yes { background: var(--sea); color: var(--white); }
.cx--partial { background: #fff0df; color: #8a4f1c; }
.cx--no { background: #fde4de; color: #9a3a26; }
.cx--unknown { color: #9aabb5; }
.cmp-tag { display: inline-block; font-style: normal; font-size: 11px; font-weight: 800; color: var(--sea); background: var(--sea-soft); border-radius: 99px; padding: 1px 8px; margin-left: 4px; white-space: nowrap; }
.cmp-details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-top: 20px; }
.cmp-details summary { cursor: pointer; font-weight: 700; }
.cmp-details h3 { font-size: 16px; margin: 18px 0 6px; }
.cmp-details ul { margin: 0; padding-left: 20px; }
@media (max-width: 760px) {
  .cmp-top { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cmp { font-size: 12.5px; }
  .cmp th, .cmp td { padding: 7px 3px; }
  .cmp tbody th[scope='row'] { padding-left: 8px; }
  .cmp--5 thead th { font-size: 11px; writing-mode: vertical-rl; transform: rotate(180deg); height: 120px; text-align: left; }
  .cmp--5 thead .me { border-radius: 0; }
  .cmp-tag { display: block; width: max-content; margin: 3px 0 0; }
  .cx { min-width: 22px; height: 22px; font-size: 12px; }
  .cx:not(.cx--unknown) { padding: 0 4px; }
  .cmp-bars li { grid-template-columns: 1fr 1fr 22px; }
}

/* FR | EN : le choix de langue du site (les guides ont le leur). */
.lg-lang { display: flex; gap: 2px; border: 1px solid rgba(255,255,255,.25); border-radius: 99px; padding: 2px; font-size: 13px; font-weight: 700; }
.lg-lang a { color: #cfe3ea; text-decoration: none; padding: 3px 9px; border-radius: 99px; }
.lg-lang a[aria-current] { background: var(--white); color: var(--ink); }

/* Remonter en haut de page, comme dans les guides (pages.js). */
.lg-scroll-top { position: fixed; z-index: 30; left: max(18px, env(safe-area-inset-left)); bottom: max(20px, env(safe-area-inset-bottom)); display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid #73afb6; border-radius: 50%; background: var(--sea); color: #fff; box-shadow: 0 8px 20px rgba(12, 42, 66, .22); cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(12px) scale(.92); transition: opacity .2s ease, transform .2s ease; }
.lg-scroll-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.lg-scroll-top:hover, .lg-scroll-top:focus-visible { background: var(--ink); }
.lg-scroll-top svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .lg-scroll-top { transition: none; } }
