/* Kronos — site public. Direction choisie par Flavio (maquette A) : sombre et net.
   Fond noir uni, texte blanc, un seul bleu, boutons blancs, grandes captures de l'application.
   Aucun dégradé : la profondeur vient des bordures fines et d'ombres franches. */
:root {
  --bg: #0a0b0f;
  --panel: #111319;
  --panel-2: #171a22;
  --line: #1f222b;
  --line-2: #2a2d38;
  --text: #f2f3f5;
  --muted: #9a9fad;
  --blue: #7c9cff;
  --blue-solid: #4f7cff;
  --green: #5fd4a0;
  --radius: 16px;
  --max: 1180px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; background: var(--bg); color: var(--text); line-height: 1.55; font-size: 16.5px; -webkit-font-smoothing: antialiased; }
img, canvas { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.wrap { width: min(var(--max), 100% - 48px); margin-inline: auto; }
.pix { width: 1em; height: 1em; display: inline-block; vertical-align: -0.14em; flex-shrink: 0; image-rendering: pixelated; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; text-wrap: balance; }
h1 { font-size: clamp(42px, 6.2vw, 78px); }
h2 { font-size: clamp(30px, 3.8vw, 46px); letter-spacing: -0.035em; }
h3 { font-size: 19px; letter-spacing: -0.015em; line-height: 1.25; }
.blue { color: var(--blue); }
.lead { color: var(--muted); font-size: clamp(17px, 1.5vw, 19.5px); max-width: 58ch; }
.eyebrow { font-size: 13.5px; font-weight: 600; color: var(--blue); letter-spacing: 0.01em; }

/* Navigation */
.top { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 30px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; image-rendering: pixelated; }
.top nav { display: flex; gap: 28px; margin-left: auto; font-size: 14.5px; font-weight: 500; color: var(--muted); }
.top nav a { transition: color 0.15s; }
.top nav a:hover { color: var(--text); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 10px; border: 1px solid transparent; font-family: inherit; font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap; transition: background 0.15s, border-color 0.15s, transform 0.15s; }
.btn:active { transform: scale(0.98); }
.btn-white { background: #fff; color: var(--bg); }
.btn-white:hover { background: #dfe3ec; }
.btn-ghost { color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--panel-2); border-color: #3a3e4c; }
.btn-blue { background: var(--blue-solid); color: #fff; }
.btn-blue:hover { background: #6a90ff; }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-lg { padding: 14px 24px; font-size: 16px; }

/* Héros */
.hero { text-align: center; padding: 84px 0 0; }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px; background: #14161d; border: 1px solid #23262f; color: #c5c9d3; font-size: 13px; font-weight: 600; }
.tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-solid); display: block; }
.hero h1 { max-width: 13ch; margin: 22px auto 20px; }
.hero .lead { margin: 0 auto; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 30px 0 18px; }
.under { color: var(--muted); font-size: 14px; margin-bottom: 52px; }
.shot { border: 1px solid #23262f; border-radius: 14px; overflow: hidden; background: #0d0e13; box-shadow: 0 0 0 6px #101218, 0 40px 100px -30px #000; }

/* Sections */
section { padding: 110px 0 0; }
.head { max-width: 760px; margin-bottom: 40px; }
.head h2 { margin: 10px 0 14px; }
.head.center { text-align: center; margin-inline: auto; }
.head.center .lead { margin-inline: auto; }

/* Tuiles */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: border-color 0.2s, background 0.2s; }
.tile:hover { border-color: #353948; background: #13161d; }
.tile > .pix { font-size: 38px; margin-bottom: 16px; }
.tile h3 { margin-bottom: 8px; }
.tile p { color: var(--muted); font-size: 15px; }
.tile.small { padding: 18px; display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 14px; align-items: start; }
.tile.small > .pix { font-size: 28px; margin: 2px 0 0; }
.tile.small b { display: block; font-size: 15.5px; letter-spacing: -0.01em; }
.tile.small span { color: var(--muted); font-size: 14px; line-height: 1.45; display: block; margin-top: 2px; }
.n { display: inline-flex; width: 26px; height: 26px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line-2); align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--muted); float: right; }

/* Visionneuse */
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; max-width: 100%; overflow-x: auto; }
.tabs button { border: none; background: none; color: var(--muted); font-family: inherit; font-weight: 600; font-size: 14.5px; padding: 9px 16px; border-radius: 9px; cursor: pointer; white-space: nowrap; transition: color 0.15s, background 0.15s; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected='true'] { background: #fff; color: var(--bg); }
.viewer-text { color: var(--muted); margin: 18px 0 22px; min-height: 26px; max-width: 70ch; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; margin: -6px 0 22px; }
.swatches button { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px 7px 9px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 999px; color: var(--text); font-family: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.swatches button i { width: 14px; height: 14px; border-radius: 50%; display: block; }
.swatches button[aria-pressed='true'] { border-color: #fff; }

/* Téléphone */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 60px; align-items: center; }
.ticks { list-style: none; display: grid; gap: 12px; margin-top: 22px; }
.ticks li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; }
.ticks .pix { color: var(--green); font-size: 16px; margin-top: 5px; }
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.phones figure { border: 1px solid #2a2d38; border-radius: 22px; overflow: hidden; background: #0d0e13; box-shadow: 0 0 0 5px #101218, 0 30px 70px -30px #000; }
.phones figure:nth-child(2) { margin-top: 34px; }

/* Tarifs */
.seg { display: inline-flex; gap: 4px; padding: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.seg button { border: none; background: none; color: var(--muted); font-family: inherit; font-weight: 600; font-size: 14.5px; padding: 8px 16px; border-radius: 9px; cursor: pointer; }
.seg button[aria-pressed='true'] { background: #fff; color: var(--bg); }
.seg small { margin-left: 6px; font-size: 12px; color: var(--green); font-weight: 700; }
.seg button[aria-pressed='true'] small { color: #0c7a4d; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 30px; align-items: stretch; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; }
.plan.star { border-color: var(--blue-solid); box-shadow: 0 0 0 1px var(--blue-solid); }
.plan .who { color: var(--muted); font-size: 14.5px; display: flex; justify-content: space-between; gap: 10px; }
.plan .who b { color: var(--blue); font-weight: 600; }
.plan h3 { font-size: 24px; margin-top: 6px; }
.price { font-size: 54px; font-weight: 700; letter-spacing: -0.045em; line-height: 1; margin-top: 22px; font-variant-numeric: tabular-nums; }
.per { color: var(--muted); font-size: 14px; margin-top: 8px; min-height: 22px; }
.plan ul { list-style: none; margin: 22px 0 26px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 11px; flex: 1; align-content: start; }
.plan li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; font-size: 15px; align-items: start; }
.plan li .pix { color: var(--green); font-size: 15px; margin-top: 4px; }
.plan li.no { color: #5f6472; }
.plan li.no .pix { color: #4a4e5b; }
.plan .btn { width: 100%; }
.cmp { width: 100%; border-collapse: collapse; margin-top: 30px; font-size: 15.5px; }
.cmp th, .cmp td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); font-weight: 400; }
.cmp thead th { color: var(--muted); font-size: 13px; font-weight: 600; }
.cmp td:nth-child(2) { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cmp tr.us td { font-weight: 600; background: var(--panel); }
.cmp tr.us td:first-child { border-radius: 10px 0 0 10px; }
.cmp tr.us td:last-child { border-radius: 0 10px 10px 0; color: var(--green); }
.cmp tr:last-child td { border-bottom: none; }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 8px 14px; margin-top: 30px; }

/* Téléchargement */
.dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dl .tile { padding: 30px; display: flex; flex-direction: column; gap: 8px; }
.dl .tile > .pix { font-size: 50px; margin-bottom: 8px; }
.dl h3 { font-size: 24px; }
.dl .ver { color: var(--blue); font-size: 14px; font-weight: 600; }
.dl p { flex: 1; margin-bottom: 16px; }
.dl small { color: var(--muted); font-size: 13px; margin-top: 8px; }

/* Questions */
.faq { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 4px; display: grid; grid-template-columns: minmax(0, 1fr) 20px; gap: 20px; align-items: center; font-weight: 600; font-size: 17.5px; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pix { color: var(--muted); font-size: 15px; transition: transform 0.2s; }
.faq details[open] summary .pix { transform: rotate(45deg); color: var(--text); }
.faq p { padding: 0 40px 22px 4px; color: var(--muted); }

/* Fin et pied */
.final { margin: 110px auto 0; background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 64px 28px; text-align: center; }
.final canvas { width: 96px; height: 96px; image-rendering: pixelated; margin: 0 auto 18px; }
.final h2 { margin-bottom: 12px; }
.final .lead { margin: 0 auto 26px; }
footer { margin-top: 90px; border-top: 1px solid var(--line); padding: 46px 0 34px; color: var(--muted); font-size: 14.5px; }
.foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.foot .brand { color: var(--text); }
.foot h4 { color: var(--text); font-size: 13.5px; font-weight: 600; margin-bottom: 12px; }
.foot a:not(.brand) { display: block; padding: 3px 0; transition: color 0.15s; }
.foot a:not(.brand):hover { color: var(--text); }
.copy { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13.5px; }

/* Pages de texte et de téléchargement */
.page { padding: 64px 0 0; }
.page h1 { font-size: clamp(36px, 5vw, 60px); margin: 12px 0 18px; max-width: 18ch; }
.prose { max-width: 780px; }
.prose h1 { max-width: none; }
.prose h2 { font-size: 24px; margin: 40px 0 10px; letter-spacing: -0.02em; }
.prose h3 { font-size: 18px; margin: 24px 0 8px; }
.prose p, .prose li { color: #b9bdc9; margin-bottom: 10px; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 14px; }
.prose a { color: var(--blue); }
.prose strong { color: var(--text); }
.news { list-style: none; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 8px 22px; margin-top: 18px; }
.news li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.news li:last-child { border-bottom: none; }
.news li b { color: var(--text); font-weight: 600; }
.news .pix { font-size: 24px; }
.overlay { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; flex-direction: column; gap: 18px; background: rgba(10, 11, 15, 0.92); font-weight: 600; }
.overlay.active { display: flex; }
.spinner { width: 40px; height: 40px; border: 4px solid var(--line-2); border-top-color: var(--blue); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 960px) {
  .top nav { display: none; }
  .top .btn { margin-left: auto; }
  .grid3, .plans, .dl { grid-template-columns: minmax(0, 1fr); }
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .foot { grid-template-columns: 1fr 1fr; }
  section { padding-top: 80px; }
  .hero { padding-top: 54px; }
  .shot { box-shadow: 0 0 0 4px #101218; border-radius: 10px; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .grid4 { grid-template-columns: minmax(0, 1fr); }
  .cta .btn { width: 100%; }
  .cmp th, .cmp td { padding: 12px 8px; font-size: 14.5px; }
  .phones { gap: 10px; }
  .phones figure { border-radius: 14px; box-shadow: 0 0 0 3px #101218; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
