/* SlicePilot : site de présentation. Palette reprise de l'application. */
:root {
  color-scheme: dark;
  --bg: #091016;
  --bg-2: #0c151b;
  --panel: #111b23;
  --line: #22323d;
  --text: #edf5f5;
  --muted: #94a8b0;
  --accent: #35e0ae;
  --accent-2: #60f1c6;
  --warn: #ffbd57;
  --radius: 16px;
  --shadow: 0 24px 70px #0008;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1120px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: Inter, "Segoe UI Variable Text", "Segoe UI", system-ui, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg) radial-gradient(circle at 50% -10%, #17303a 0, var(--bg) 52%) no-repeat;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-2); }
a:hover { color: #fff; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #06130f; padding: 8px 14px; border-radius: 8px; font-weight: 700; z-index: 20; }
.skip:focus { left: 8px; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: #0a1319e6;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.25rem; }
.brand-mark { width: 38px; height: 38px; position: relative; display: grid; place-items: center; border-radius: 12px; border: 1px solid #29414a; background: linear-gradient(145deg, #172932, #0b151b); box-shadow: inset 0 0 16px #35e0ae12; }
.brand-mark i { position: absolute; height: 4px; border-radius: 6px; background: var(--accent); box-shadow: 0 0 12px #35e0ae77; }
.brand-mark i:nth-child(1) { width: 14px; transform: translateY(-7px); }
.brand-mark i:nth-child(2) { width: 20px; }
.brand-mark i:nth-child(3) { width: 9px; transform: translateY(7px); }

.nav { display: flex; align-items: center; gap: clamp(10px, 2.2vw, 26px); }
.nav ul { display: flex; gap: clamp(10px, 2.2vw, 26px); list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--text); }
.lang { border: 1px solid #2a3c45; border-radius: 999px; padding: 4px 12px; color: var(--text) !important; font-size: .85rem !important; }

@media (max-width: 720px) { .nav ul { display: none; } }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 12px; border: 1px solid #2d414b;
  font: inherit; font-weight: 800; text-decoration: none; cursor: pointer;
  color: #d8e6e8; background: #14242d;
}
.btn:hover { color: #fff; border-color: #3d5a66; }
.btn-primary { color: #06130f; border: 0; background: linear-gradient(135deg, var(--accent-2), #22c995); box-shadow: 0 9px 25px #1ed69b30; }
.btn-primary:hover { color: #06130f; filter: brightness(1.06); }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections ---------- */
section { padding-block: clamp(48px, 8vw, 96px); }
.eyebrow { color: var(--accent); font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 10px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.8rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 62ch; text-wrap: pretty; }
.section-head { max-width: 64ch; margin-bottom: 40px; }
.section-head p { color: var(--muted); margin: 0; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(36px, 6vw, 72px); }
.hero-grid { display: grid; gap: 40px; }
.hero-copy .btn-row { margin: 28px 0 14px; }
.fine { color: var(--muted); font-size: .88rem; margin: 0; }
.shot { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--panel); }
.shot img { width: 100%; }
.hero .shot { margin-top: 8px; }

/* ---------- Fonctions ---------- */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); list-style: none; padding: 0; margin: 0; }
.card { border: 1px solid var(--line); background: linear-gradient(180deg, #111b23f2, #0d161df2); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: .4em; }
.card p { margin: 0; color: var(--muted); font-size: .96rem; }
.icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid #28514d; background: #11272a; color: var(--accent); margin-bottom: 16px; }
.icon svg { width: 22px; height: 22px; }

/* ---------- Visuels alternés ---------- */
.split { display: grid; gap: 32px; align-items: center; }
.split + .split { margin-top: clamp(40px, 7vw, 80px); }
.split ul { margin: 14px 0 0; padding-left: 1.2em; color: var(--muted); }
.split li { margin-bottom: 6px; }
.split p { color: var(--muted); margin: 0; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1.25fr; gap: 56px; }
  .split.reverse { grid-template-columns: 1.25fr 1fr; }
  .split.reverse .shot { order: -1; }
}

/* ---------- Démo / Pro ---------- */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table { border-collapse: collapse; width: 100%; min-width: 560px; }
caption { text-align: left; padding: 20px 24px 0; color: var(--muted); font-size: .9rem; }
th, td { padding: 14px 24px; text-align: left; border-bottom: 1px solid var(--line); }
thead th { font-size: 1.05rem; padding-top: 20px; }
tbody th { font-weight: 600; }
tbody tr:last-child > * { border-bottom: 0; }
th:not(:first-child), td { text-align: center; width: 18%; }
th.pro { color: var(--accent-2); }
.yes { color: var(--accent); font-weight: 800; }
.no { color: #6c8089; }

.pro-box { margin-top: 28px; border: 1px solid #28514d; background: linear-gradient(180deg, #10262a, #0d1c21); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); display: grid; gap: 22px; }
@media (min-width: 800px) { .pro-box { grid-template-columns: 1.3fr 1fr; align-items: center; } }
.pro-box p { color: var(--muted); margin: 0 0 12px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; color: var(--text); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #17332f; color: var(--accent); font-weight: 800; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; }
details { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); margin-bottom: 10px; }
summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 32px; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
