/* Pastille : papeterie et encre d'imprimerie. Neutres chauds, un seul accent vermillon, Instrument Sans + IBM Plex Mono. */

@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/instrument-sans-latin-wght.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-latin-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-latin-500.woff2') format('woff2');
}

:root {
  --bg: #f7f4ee;
  --band: #f0ebe2;
  --card: #fdfbf7;
  --paper: #ffffff;
  --raised: #efe9df;
  --line: rgba(31, 27, 22, 0.08);
  --line-strong: rgba(31, 27, 22, 0.16);
  --text: #1f1b16;
  --text-2: #5e554a;
  --muted: #776e62;
  --accent: #c2410c;
  --accent-ink: #a8380a;
  --accent-wash: rgba(194, 65, 12, 0.08);
  --on-accent: #ffffff;
  --ok: #16a34a;
  --ok-bg: #e9f3ea;
  --ok-text: #1e4d2b;
  --bad: #b42318;
  --bad-bg: #f9e9e7;
  --bad-text: #7a1d14;
  --font: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --r-control: 8px;
  --r-card: 14px;
  --r-panel: 20px;
  --shadow-sm: 0 1px 2px rgba(31, 27, 22, 0.06);
  --shadow-float: 0 1px 2px rgba(31, 27, 22, 0.06), 0 12px 32px rgba(31, 27, 22, 0.08);
}

.v-app {
  --bg: #f5f4f1;
  --card: #ffffff;
  --raised: #efeeea;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 500;
}
a {
  color: inherit;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  transition: color 0.15s var(--ease), text-decoration-color 0.15s var(--ease);
}
a:hover {
  color: var(--accent-ink);
  text-decoration-color: currentColor;
}
img,
svg {
  display: block;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
::selection {
  background: rgba(194, 65, 12, 0.18);
}

.mono {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
  line-height: 20px;
}
.sr,
.hp {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.icon {
  flex: none;
  color: currentColor;
}
.icon.flip {
  transform: scaleX(-1);
}
[hidden] {
  display: none !important;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.wrap-app {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
.narrow {
  max-width: 720px;
}

/* ---- En-têtes ------------------------------------------------------------------------------ */
.site-header,
.app-header {
  position: relative;
  z-index: 2;
}
.app-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.header-row {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
}
.brand:hover {
  color: var(--text);
}
.nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--text-2);
}
.nav a {
  text-decoration: none;
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.link-quiet {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-2);
  text-decoration: none;
}
.plan-tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--accent-wash);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 500;
}

/* ---- Boutons et champs --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--r-control);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease), transform 0.12s var(--ease);
}
.btn:active:not([disabled]) {
  transform: scale(0.98);
}
.btn-primary {
  background: var(--text);
  color: #fdfbf7;
}
.btn-primary:hover {
  background: #3a332b;
  color: #fdfbf7;
}
.btn-secondary {
  background: var(--card);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-secondary:hover {
  background: var(--raised);
  color: var(--text);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--raised);
  color: var(--text);
}
.btn-danger {
  background: var(--bad);
  color: #fff;
}
.btn-danger:hover {
  background: #93190f;
  color: #fff;
}
.btn-sm {
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
}
.btn-lg {
  height: 48px;
  padding: 0 20px;
  font-size: 15px;
}
.btn-block {
  width: 100%;
}
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.label {
  font-size: 13px;
  line-height: 20px;
  color: var(--text-2);
}
.hint {
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
}
.input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-control);
  background: var(--paper);
  font-size: 15px;
  transition: border-color 0.15s var(--ease);
}
.input:hover {
  border-color: rgba(31, 27, 22, 0.28);
}
.input:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
  border-color: transparent;
}
.input:disabled {
  background: var(--raised);
  color: var(--muted);
}
.input::placeholder {
  color: #a39a8d;
}
textarea.input {
  height: auto;
  padding: 10px 12px;
  resize: vertical;
}
select.input {
  appearance: none;
  padding-right: 36px;
  background: var(--paper)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23776e62' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E")
    no-repeat right 12px center;
}
.input-sm {
  height: 40px;
  width: auto;
  font-size: 14px;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
  cursor: pointer;
}
.check input {
  margin: 3px 0 0;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  flex: none;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.flash {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 20px;
  margin-top: 16px;
}
.flash .icon {
  margin-top: 2px;
}
.flash-ok {
  background: var(--ok-bg);
  color: var(--ok-text);
}
.flash-error {
  background: var(--bad-bg);
  color: var(--bad-text);
}
.stack > .flash,
.auth-card .flash {
  margin-top: 0;
}

/* ---- Hero et générateur -------------------------------------------------------------------- */
.hero {
  padding: 64px 0 96px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 64px;
  align-items: start;
}
.hero h1 {
  font-size: 52px;
  line-height: 1.06;
  letter-spacing: -0.025em;
  max-width: 14em;
}
.lead {
  margin-top: 20px;
  font-size: 19px;
  line-height: 29px;
  color: var(--text-2);
  max-width: 36rem;
}
.lead-sm {
  margin-top: 12px;
  font-size: 17px;
  line-height: 26px;
  color: var(--text-2);
  max-width: 38rem;
}

.gen {
  margin-top: 40px;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  background: var(--raised);
  border-radius: 12px;
  width: fit-content;
  max-width: 100%;
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--r-control);
  background: transparent;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.tab:hover {
  color: var(--text);
}
.tab[aria-selected='true'] {
  background: var(--paper);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.tab[aria-selected='true'] .icon {
  color: var(--accent);
}
.fields {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}
.field-full,
.fields .check {
  grid-column: 1 / -1;
}
.field-error {
  margin-top: 12px;
  font-size: 14px;
  color: var(--bad-text);
}

.design {
  margin: 32px 0 0;
  padding: 24px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.design legend {
  float: left;
  width: 100%;
  padding: 0;
  margin-bottom: 4px;
}
.section-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.design-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 20px 32px;
}
.color {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
}
.color input[type='color'] {
  width: 40px;
  height: 40px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-control);
  background: var(--paper);
  cursor: pointer;
}
.color input[type='color']::-webkit-color-swatch-wrapper {
  padding: 0;
}
.color input[type='color']::-webkit-color-swatch {
  border: 0;
  border-radius: 5px;
}
.color input[type='color']::-moz-color-swatch {
  border: 0;
  border-radius: 5px;
}
.color input:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.color output {
  min-width: 64px;
  color: var(--text-2);
}
.design-grid > .check {
  height: 40px;
  align-items: center;
}
.design-grid > .check input {
  margin: 0;
}
.segmented {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--paper);
}
.segmented label {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 34px;
  border-radius: var(--r-control);
  color: #a39a8d;
  cursor: pointer;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.segmented label:hover {
  color: var(--text-2);
}
.segmented input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.segmented label:has(input:checked) {
  background: var(--accent-wash);
  color: var(--accent);
}
.segmented label:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.segmented svg {
  width: 20px;
  height: 20px;
}
.logo-row {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
}
.file-btn {
  position: relative;
  overflow: hidden;
}
.file-btn input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.file-btn:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* La pastille : le code posé sur un autocollant en papier */
.hero-aside {
  position: sticky;
  top: 24px;
}
.preview {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sticker {
  margin: 0;
  padding: 28px 28px 20px;
  background: var(--paper);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-float);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.sticker-qr {
  width: 100%;
  aspect-ratio: 1;
  transition: opacity 0.2s var(--ease);
}
.sticker-qr svg {
  width: 100%;
  height: 100%;
}
.sticker-qr.is-demo {
  opacity: 0.16;
}
.sticker-ref {
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
  text-align: center;
}
.warn {
  display: flex;
  gap: 10px;
  font-size: 13px;
  line-height: 20px;
  color: #8a4b08;
}
.warn .icon {
  margin-top: 2px;
}
.download {
  display: flex;
  gap: 8px;
}
.download .input {
  flex: 1;
  min-width: 0;
}
.upsell {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  line-height: 21px;
  color: var(--text-2);
}
.upsell strong {
  font-weight: 500;
  color: var(--text);
}
.upsell .btn {
  margin-left: -12px;
  color: var(--accent-ink);
}

/* ---- Sections ------------------------------------------------------------------------------ */
.section {
  padding: 96px 0;
}
.section-tight {
  padding: 48px 0 64px;
}
.section-first {
  padding: 64px 0 96px;
}
.section h2,
.section-title {
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.section-title {
  margin-bottom: 40px;
}
.page-title {
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 80px;
  align-items: center;
}
.split-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.split-text .lead-sm {
  margin-top: 0;
}
.points {
  list-style: none;
  margin: 8px 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.points li {
  display: flex;
  gap: 12px;
  font-size: 15px;
  line-height: 22px;
}
.points .icon {
  margin-top: 3px;
  color: var(--muted);
}

/* Moment : chevalet de table et historique des destinations */
.tent-scene {
  position: relative;
  min-height: 480px;
  padding: 24px 0;
}
.tent {
  position: relative;
  width: 300px;
  margin-left: 8px;
  padding: 32px 32px 28px;
  background: linear-gradient(180deg, #ffffff 0%, #faf8f4 100%);
  border-radius: 6px 6px 3px 3px;
  box-shadow: 0 1px 1px rgba(31, 27, 22, 0.06), 0 24px 40px -12px rgba(31, 27, 22, 0.22);
  transform: rotate(-2deg);
  text-align: center;
}
.tent::after {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -18px;
  height: 18px;
  background: radial-gradient(closest-side, rgba(31, 27, 22, 0.16), transparent);
}
.tent-place {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.tent-title {
  margin-top: 4px;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.tent-qr {
  margin: 20px auto 16px;
  width: 196px;
  height: 196px;
}
.tent-qr svg {
  width: 100%;
  height: 100%;
}
.tent-hint {
  font-size: 13px;
  color: var(--text-2);
}
.history {
  position: absolute;
  right: 0;
  bottom: -16px;
  width: 300px;
  padding: 20px;
  background: var(--paper);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-float);
}
.history-head,
.history-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.history-list {
  list-style: none;
  margin: 16px 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.history-list li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 8px;
  font-size: 13px;
  line-height: 20px;
  color: var(--muted);
}
.history-list li span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.history-list .is-current {
  color: var(--text);
}
.history-list .is-current span:last-child::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 8px 2px 0;
  border-radius: 50%;
  background: var(--accent);
}
.history-foot {
  justify-content: flex-start;
}
.figure {
  font-size: 30px;
  line-height: 1;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.figure-sm {
  font-size: 22px;
}
.figure-accent {
  color: var(--accent-ink);
}

.section-promise {
  background: var(--band);
}
.promise {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 80px;
}
.promise p {
  font-size: 17px;
  line-height: 27px;
  color: var(--text-2);
  max-width: 34rem;
}
.promise p + p {
  margin-top: 16px;
  font-size: 15px;
  line-height: 24px;
}

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 920px;
  margin-top: 40px;
}
.section-title + .plans {
  margin-top: 0;
}
.plan {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 32px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-panel);
}
.plan-pro {
  background: var(--paper);
  border-color: transparent;
  box-shadow: var(--shadow-float);
}
.plan h3 {
  font-size: 18px;
}
.price {
  margin-top: 12px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.price .figure {
  font-size: 40px;
}
.checks {
  list-style: none;
  margin: 20px 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.checks li {
  display: flex;
  gap: 10px;
  font-size: 15px;
  line-height: 22px;
}
.checks .icon {
  margin-top: 3px;
  color: var(--accent);
}
.plan > .btn,
.plan-actions {
  align-self: flex-start;
}
.plan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prose-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 64px;
}
.prose p {
  font-size: 16px;
  line-height: 26px;
  color: var(--text-2);
  max-width: 40rem;
}
.prose p + p {
  margin-top: 16px;
}
.steps {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.steps li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 32px 1fr;
  font-size: 15px;
  line-height: 22px;
}
.steps li::before {
  content: counter(s);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent-ink);
  line-height: 22px;
}
.faq {
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-chevron {
  color: var(--muted);
  transition: transform 0.2s var(--ease);
}
.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}
.faq-item p {
  padding: 0 40px 20px 0;
  font-size: 15px;
  line-height: 24px;
  color: var(--text-2);
  max-width: 44rem;
}

/* ---- Pied de page -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-grid nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-grid nav a {
  color: var(--text-2);
  text-decoration: none;
}
.footer-title {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}
.footer-brand p {
  margin-top: 12px;
  max-width: 18rem;
}
.footer-meta {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 13px;
}
.app-footer {
  padding: 32px 0;
  margin-top: 48px;
}
.app-footer .footer-meta {
  margin-top: 0;
}

/* ---- Authentification ---------------------------------------------------------------------- */
.auth {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 64px 24px 96px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 32px;
  background: var(--paper);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-float);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.auth-card h1 {
  font-size: 24px;
  line-height: 1.2;
}
.auth-card form {
  margin-top: 12px;
}
.auth-card > .btn {
  margin-top: 12px;
  align-self: flex-start;
}
.auth-foot {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-2);
}

/* ---- Espace client ------------------------------------------------------------------------- */
.page {
  padding-top: 40px;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 24px;
}
.page-head .muted {
  margin-top: 6px;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text-2);
  text-decoration: none;
}
.plan-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  margin-bottom: 24px;
  border-radius: 10px;
  background: var(--raised);
  font-size: 14px;
  color: var(--text-2);
}
.plan-bar .icon {
  color: var(--muted);
}
.plan-bar a {
  margin-left: auto;
  color: var(--accent-ink);
  font-weight: 500;
  text-decoration: none;
}
.plan-bar-warn {
  background: var(--bad-bg);
  color: var(--bad-text);
}
.code-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.code-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 128px 128px auto;
  align-items: center;
  gap: 24px;
  padding: 16px 20px;
}
.code-row + .code-row {
  border-top: 1px solid var(--line);
}
.code-row.is-disabled {
  opacity: 0.6;
}
.code-thumb {
  width: 56px;
  height: 56px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  background: var(--paper);
}
.code-thumb svg {
  width: 100%;
  height: 100%;
}
.code-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.code-name {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.code-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  min-width: 0;
}
.code-meta .mono {
  color: var(--text-2);
  flex: none;
}
.code-num {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: right;
}
.num {
  font-size: 17px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.tag {
  align-self: flex-start;
  display: inline-flex;
  height: 22px;
  align-items: center;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--raised);
  font-size: 12px;
  color: var(--text-2);
}
.tag-bad {
  background: var(--bad-bg);
  color: var(--bad-text);
}
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 64px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.empty-sticker {
  width: 120px;
  height: 120px;
  padding: 12px;
  margin-bottom: 12px;
  background: var(--paper);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-float);
  transform: rotate(-3deg);
}
.empty-sticker svg {
  width: 100%;
  height: 100%;
}
.empty h2 {
  font-size: 20px;
}
.empty p {
  max-width: 30rem;
}
.empty .btn {
  margin-top: 12px;
}

.editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 64px;
  align-items: start;
}
.editor-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 560px;
}
.editor-main .design {
  margin-top: 4px;
}
.editor-main > .btn {
  align-self: flex-start;
  margin-top: 8px;
}
.editor-aside {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.code-ident {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 6px;
  margin: 0 -6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.15s var(--ease);
}
.copy:hover {
  background: var(--raised);
}
.copy .icon {
  color: var(--muted);
}
.code-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.code-side {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.code-side .sticker {
  padding: 24px 24px 16px;
}
.code-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 24px;
}
.card + .card {
  margin-top: 0;
}
.narrow .card {
  margin-top: 24px;
}
.card-title {
  font-size: 16px;
  margin-bottom: 16px;
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.card > p + form,
.card > p + .row-actions,
.card > p + p {
  margin-top: 12px;
}
details.card > summary {
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}
details.card[open] > summary {
  margin-bottom: 16px;
}
.details-design .design {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.details-design .design legend {
  display: none;
}
.details-design .design-grid {
  gap: 16px 24px;
}
.danger > summary {
  color: var(--bad-text);
}
.figures {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 48px;
  margin-bottom: 24px;
}
.figures > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.upsell-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--raised);
  font-size: 14px;
  color: var(--text-2);
}
.upsell-inline a {
  margin-left: auto;
  color: var(--accent-ink);
  font-weight: 500;
  text-decoration: none;
}

.chart {
  margin: 0;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  grid-template-rows: 220px auto;
  column-gap: 12px;
  row-gap: 8px;
}
.chart-y {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 12px;
  line-height: 1;
  color: var(--muted);
  margin: -6px 0;
}
.chart-plot {
  position: relative;
}
.chart-plot svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.chart .grid {
  stroke: var(--line);
  stroke-width: 1;
}
.chart .area {
  fill: var(--accent-wash);
}
.chart .line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linejoin: round;
}
.chart-dot {
  position: absolute;
  right: -5px;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--card);
}
.chart-x {
  grid-column: 2;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
.ranked-grid {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 40px;
}
.ranked ol {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ranked li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  font-size: 14px;
}
.ranked-num {
  font-size: 12px;
  color: var(--muted);
}
.ranked-bar {
  grid-column: 1 / -1;
  height: 4px;
  border-radius: 2px;
  background: var(--raised);
}
.ranked-bar span {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: #b5aa9b;
}
.ranked li:first-child .ranked-bar span {
  background: var(--text-2);
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.timeline li {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}
.timeline li a {
  text-decoration: none;
}
.timeline .is-current {
  color: var(--text);
}
.timeline .is-current a::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 8px 2px 0;
  border-radius: 50%;
  background: var(--accent);
}

/* ---- Administration ------------------------------------------------------------------------ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.checklist,
.admin-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.checklist li {
  display: flex;
  gap: 10px;
  font-size: 14px;
}
.checklist li > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.checklist strong {
  font-weight: 500;
}
.checklist .icon {
  margin-top: 2px;
}
.checklist .is-ok .icon {
  color: var(--ok);
}
.checklist .is-todo .icon {
  color: var(--accent);
}
.admin-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}
.found {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  table-layout: fixed;
}
.table th {
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  padding: 0 8px 8px 0;
}
.table td {
  padding: 10px 8px 10px 0;
  border-top: 1px solid var(--line);
}
.table .num {
  text-align: right;
  font-size: 14px;
}
.table th:first-child {
  width: 50%;
}

/* ---- Pages légales ------------------------------------------------------------------------- */
.legal {
  max-width: 760px;
}
.legal h2 {
  margin: 40px 0 12px;
  font-size: 20px;
}
.legal p,
.legal li {
  font-size: 15px;
  line-height: 25px;
  color: var(--text-2);
}
.legal > p.muted {
  margin-top: 8px;
}
.legal p + p {
  margin-top: 12px;
}
.legal ul {
  padding-left: 20px;
}
.legal strong {
  color: var(--text);
  font-weight: 500;
}

/* ---- Entrée ------------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-main,
  .hero-aside {
    animation: rise 0.45s var(--ease) both;
  }
  .hero-aside {
    animation-delay: 0.06s;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* ---- Écrans moyens et petits --------------------------------------------------------------- */
@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 40px;
  }
  .hero h1 {
    font-size: 44px;
  }
  .split,
  .promise {
    gap: 48px;
  }
  .code-row {
    grid-template-columns: 56px minmax(0, 1fr) 104px auto;
  }
  .code-row .code-num:nth-of-type(3) {
    display: none;
  }
}
@media (max-width: 900px) {
  .wrap,
  .wrap-app {
    padding: 0 20px;
  }
  .nav {
    display: none;
  }
  .hero {
    padding: 40px 0 64px;
  }
  .hero-grid,
  .split,
  .promise,
  .prose-grid,
  .editor,
  .code-layout,
  .admin-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-aside,
  .editor-aside,
  .code-side {
    position: static;
  }
  .hero-aside {
    max-width: 420px;
  }
  .hero h1 {
    font-size: 36px;
    line-height: 1.08;
    letter-spacing: -0.02em;
  }
  .lead {
    font-size: 17px;
    line-height: 26px;
  }
  .section {
    padding: 64px 0;
  }
  .section h2,
  .section-title {
    font-size: 28px;
  }
  .prose-grid {
    gap: 24px;
  }
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .tent-scene {
    min-height: 0;
    padding: 8px 0 0;
  }
  .tent {
    margin: 0 auto;
  }
  .history {
    position: relative;
    margin: -24px 0 0 auto;
    width: min(300px, 100%);
  }
  .stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .editor-aside {
    order: -1;
    max-width: 320px;
  }
}
@media (max-width: 560px) {
  .header-actions .link-quiet {
    display: none;
  }
  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    scrollbar-width: none;
  }
  .tab {
    flex: none;
  }
  .fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .code-row {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 16px;
    padding: 14px 16px;
  }
  .code-row .code-num,
  .code-row .btn {
    display: none;
  }
  .code-thumb {
    width: 48px;
    height: 48px;
  }
  .ranked-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .timeline li {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  .page-title {
    font-size: 26px;
  }
  .plan {
    padding: 24px;
  }
  .card {
    padding: 20px;
  }
  .chart {
    grid-template-rows: 180px auto;
  }
}
