/* jolishot.com — même système que l'interface de Jolimail (account.jolimail.com),
   avec l'orange de Jolishot à la place du violet. */

:root {
  --bg: #fcfcfb;
  --panel: #fff;
  --sunken: #f2f2f0;
  --hover: #ececea;
  --line: #e9e9e6;
  --line-strong: #dcdcd8;
  --text: #1a1a19;
  --muted: #6b6b68;
  --faint: #9a9a96;
  --primary: #cf450b;
  --primary-text: #fff;
  --primary-hover: #b93d09;
  --accent-soft: #fdeee6;
  --mark-from: #cf450b;
  --mark-to: #ff8a3d;
  --ok: #1f7a4d;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 8px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0f0f0f;
  --panel: #161616;
  --sunken: #1c1c1c;
  --hover: #232323;
  --line: #262626;
  --line-strong: #333;
  --text: #ededec;
  --muted: #a1a19c;
  --faint: #71716d;
  --primary: #ff8a3d;
  --primary-text: #12141a;
  --primary-hover: #ff9c5c;
  --accent-soft: #2d1a10;
  --ok: #4cc38a;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: var(--mono);
  font-size: 0.86em;
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--sunken);
  border: 1px solid var(--line);
  overflow-wrap: anywhere;
}
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* MARK: marque — le carré en dégradé de la famille Joli */

.mark {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--mark-from), var(--mark-to));
  color: #fff;
  flex-shrink: 0;
}
.mark svg { width: 16px; height: 16px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 650;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand:hover { text-decoration: none; }

/* MARK: barre du haut */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.top nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.top nav a { color: var(--muted); }
.top nav a:hover { color: var(--text); text-decoration: none; }

/* Sélecteur de thème : clair / sombre / système, comme sur Jolimail. */
.theme {
  display: inline-flex;
  padding: 2px;
  gap: 2px;
  border-radius: 9px;
  background: var(--sunken);
  border: 1px solid var(--line);
}
.theme button {
  display: grid;
  place-items: center;
  width: 26px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
}
.theme button svg { width: 14px; height: 14px; }
.theme button[aria-pressed="true"] {
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 0 0 1px var(--line);
}

/* MARK: boutons */

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--primary-text);
  font-size: 13.5px;
  font-weight: 500;
  border: 0;
}
.button:hover { background: var(--primary-hover); text-decoration: none; }
.button.large { height: 42px; padding: 0 20px; font-size: 14.5px; }
.button.disabled { background: var(--sunken); color: var(--faint); border: 1px solid var(--line); cursor: default; }

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  background: var(--panel);
  color: var(--text);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

/* MARK: première page */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 48px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 72px;
}

/* Le Bureau encombré qu'on quitte : des noms de captures entassés, presque effacés. */
.pile {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 46%;
  right: -60px;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 55% 50%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 55% 50%, #000 30%, transparent 75%);
}
.pile span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: rotate(var(--r));
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-size: 12px;
  color: var(--faint);
  opacity: 0.4;
}
.pile span::before {
  content: "";
  width: 14px;
  height: 17px;
  border-radius: 2px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
}

.hero-text { position: relative; }
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 50px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.035em;
  max-width: 12ch;
}
.lede { margin: 0 0 28px; font-size: 17px; color: var(--muted); max-width: 46ch; }
.download { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.download .meta { font-size: 13px; color: var(--faint); }

/* La miniature de Jolishot, reproduite en HTML. */
.card { position: relative; z-index: 1; margin: 0; }
.shot {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #f6f7f9;
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 60px -20px rgba(26, 26, 25, 0.35), 0 8px 18px -8px rgba(26, 26, 25, 0.2);
  aspect-ratio: 16 / 10.4;
}
.shot-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 10px;
  background: #e8eaee;
}
.shot-bar i { width: 8px; height: 8px; border-radius: 50%; background: #ff5f56; }
.shot-bar i:nth-child(2) { background: #ffbd2e; }
.shot-bar i:nth-child(3) { background: #27c93f; }
.shot-bar b {
  margin-left: 14px;
  flex: 1;
  height: 15px;
  border-radius: 4px;
  background: #fff;
  color: #777;
  font-size: 9px;
  font-weight: 400;
  line-height: 15px;
  padding: 0 8px;
}
.shot-body { padding: 16px 22px; display: grid; gap: 7px; color: #222; }
.shot-body strong { font-size: 15px; margin-bottom: 4px; }
.shot-body em {
  display: flex;
  justify-content: space-between;
  font-style: normal;
  font-size: 11px;
  padding: 7px 10px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #e3e5e8;
}
.scrim {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 9px;
  background: rgba(16, 16, 16, 0.52);
}
.scrim .row { display: flex; gap: 9px; }
.action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 118px;
  height: 34px;
  padding: 0 8px 0 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(6px);
}
.action svg { width: 15px; height: 15px; }
.action kbd {
  margin-left: auto;
  min-width: 19px;
  height: 19px;
  font-size: 10.5px;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}
.pill {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}
.card figcaption {
  width: fit-content;
  margin: 10px auto 0;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* MARK: sections */

section.block { padding-top: 64px; padding-bottom: 64px; border-top: 1px solid var(--line); }
section.block h2 {
  margin: 0 0 28px;
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  counter-reset: step;
}
.steps li { counter-increment: step; }
.steps .keys { display: flex; gap: 4px; margin-bottom: 16px; }
.steps h3 { margin: 0 0 6px; font-size: 16px; font-weight: 650; }
.steps h3::before { content: counter(step) ". "; color: var(--primary); }
.steps p { margin: 0; color: var(--muted); font-size: 14.5px; }

.features {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
}
.features div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.features dt { font-weight: 650; margin-bottom: 4px; }
.features dd { margin: 0; color: var(--muted); font-size: 14.5px; }

.privacy p { max-width: 62ch; color: var(--muted); font-size: 16px; margin: 0 0 12px; }
.privacy .family { font-size: 14px; color: var(--faint); }

.release h3 { margin: 0 0 4px; font-size: 16px; font-weight: 650; }
.release .date { font-size: 13px; color: var(--faint); margin: 0 0 14px; }
.release ul { margin: 0; padding-left: 18px; color: var(--muted); max-width: 70ch; }
.release li { margin-bottom: 6px; }
.changelog { margin: 18px 0 0; font-size: 14px; }

.foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 28px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--faint);
}

/* MARK: petits écrans */

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 28px; }
  .top nav a { display: none; }
  .steps, .features { grid-template-columns: 1fr; }
  .pile { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
