/* ==========================================================================
   L’Exposant — styles propres à chaque écran
   ========================================================================== */

/* ---------- Accueil ---------- */

.next-card {
  margin-top: 20px;
  padding: 18px;
  border-radius: var(--r-lg);
  background: var(--forest);
  box-shadow: 0 14px 34px rgba(31, 77, 58, .2);
  display: grid;
  gap: 14px;
  text-align: left;
  width: 100%;
  color: var(--cream);
  transition: background .2s;
}
.next-card:hover { background: #245842; }

/* Sur le vert sapin : boutons et barre en version claire */
.next-card .btn-light { background: var(--cream); box-shadow: none; }
.next-card .btn-light:hover { background: #fff; }
.next-card .btn-on-dark { background: rgba(255, 255, 255, .12); color: var(--cream); box-shadow: none; }
.next-card .btn-on-dark:hover { background: rgba(255, 255, 255, .2); }
.next-card .bar-track { background: rgba(255, 255, 255, .16); }
.next-card .bar-fill { background: var(--cream); }

.next-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.countdown {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--apricot);
}
/* Sur le vert sapin, le rappel devient une étiquette bordeaux pleine */
.next-card .countdown { padding: 4px 9px; border-radius: 7px; background: var(--apricot); color: #FFFFFF; }
.countdown b { font-size: 13px; }

.next-name { font-size: 22px; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }

.next-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; color: rgba(250, 247, 242, .84); }
.next-meta span { display: inline-flex; align-items: center; gap: 6px; }
.next-meta svg.i { width: 15px; height: 15px; color: var(--sage); }

.next-progress { display: grid; gap: 8px; }
.next-progress-label { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 600; color: rgba(250, 247, 242, .82); }
.bar-track { height: 6px; border-radius: 999px; background: rgba(31, 77, 58, .1); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: var(--apricot); transition: width .6s var(--ease); }

.hero-empty { margin-top: 18px; display: grid; gap: 14px; }
.hero-empty p { color: var(--ink-2); font-size: 14px; max-width: 420px; }
.hero-empty .row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Liste « À faire » */
.todo {
  display: grid;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.todo-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  text-align: left;
  width: 100%;
  transition: background .2s;
}
.todo-item + .todo-item { border-top: 1px solid var(--line); }
.todo-item:hover { background: var(--surface-2); }
.todo-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.todo-icon svg.i { width: 18px; height: 18px; }
.todo-icon[data-tone="apricot"] { background: var(--apricot-soft); color: var(--apricot-strong); }
.todo-icon[data-tone="sent"] { background: var(--st-sent-soft); color: var(--st-sent-ink); }
.todo-icon[data-tone="refused"] { background: var(--st-refused-soft); color: var(--st-refused-ink); }
.todo-icon[data-tone="validated"] { background: var(--st-validated-soft); color: var(--st-validated-ink); }
.todo-icon[data-tone="potential"] { background: var(--st-potential-soft); color: var(--st-potential-ink); }
.todo-title { font-size: 14.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.todo-sub { margin-top: 2px; font-size: 12.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.todo-item > svg.i { color: var(--ink-3); width: 18px; height: 18px; }

@media (min-width: 1024px) {
  .home-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 28px; align-items: start; }
  .home-grid > * + * { margin-top: 0; }
  .next-card { max-width: 620px; }
}

/* ---------- Marchés (candidatures) ---------- */

.toolbar { display: grid; gap: 12px; margin-bottom: 16px; }

.search {
  position: relative;
}
.search svg.i {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--ink-3); pointer-events: none;
}
.search .input { padding-left: 42px; background: var(--surface); }

.stage-intro {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 2px 12px;
  font-size: 13px;
  color: var(--ink-2);
}
.stage-intro svg.i { width: 16px; height: 16px; color: var(--ink-3); }

.month-label {
  margin: 20px 4px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.month-label:first-child { margin-top: 4px; }

@media (min-width: 1024px) {
  .ticket-list.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
  .ticket-list.cols .ticket + .ticket { margin-top: 0; }
  .ticket-list.cols .month-label { grid-column: 1 / -1; margin-bottom: 0; }
}

/* ---------- Agenda ---------- */

.cal {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  padding: 14px 12px 12px;
  touch-action: pan-y;
}

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 4px 12px;
}
.cal-month { font-size: 17px; font-weight: 800; white-space: nowrap; }
.cal-month::first-letter { text-transform: uppercase; }
.cal-nav .icon-btn { width: 36px; height: 36px; }
.cal-nav .btn-sm { min-height: 36px; padding: 0 10px; font-size: 12.5px; }
.cal-nav { display: flex; gap: 6px; }

.cal-weekdays,
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.cal-weekdays {
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-3);
  text-align: center;
}

.cal-grid.anim { animation: page-in .28s var(--ease) both; }

.cal-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-height: 48px;
  padding: 6px 2px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: background .15s;
}
.cal-day:hover { background: var(--surface-2); }
.cal-day.out { color: var(--ink-3); opacity: .45; }
.cal-day.weekend .cal-num { color: var(--ink-2); }

.cal-num {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.cal-day.today .cal-num { box-shadow: inset 0 0 0 1.5px var(--apricot); color: var(--apricot); font-weight: 800; }
.cal-day.selected { background: var(--forest); }
.cal-day.selected .cal-num { color: #fff; box-shadow: none; }
.cal-day.has-validated:not(.selected) { background: var(--st-validated-soft); }

.cal-dots { display: flex; gap: 3px; height: 6px; }
.cal-dot { width: 6px; height: 6px; border-radius: 50%; }
.cal-dot[data-status="validated"] { background: var(--st-validated); }
.cal-dot[data-status="sent"] { background: var(--st-sent); }
.cal-dot[data-status="potential"] { background: transparent; box-shadow: inset 0 0 0 1.5px var(--st-potential); }
.cal-day.selected .cal-dot[data-status="validated"] { background: var(--sage); }

.cal-labels { display: none; }

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 12px 6px 2px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }

@media (min-width: 1024px) {
  .agenda-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 24px; align-items: start; }
  .agenda-grid > * + * { margin-top: 0; }
  .cal { padding: 20px; }
  .cal-grid { gap: 6px; }
  .cal-day { min-height: 104px; align-items: stretch; padding: 8px; border: 1px solid var(--line); }
  .cal-day.out { border-color: transparent; }
  .cal-day.has-validated:not(.selected) { background: var(--surface); }
  .cal-num { width: 26px; height: 26px; font-size: 13px; }
  .cal-dots { display: none; }
  .cal-labels { display: grid; gap: 3px; width: 100%; }
  .cal-label {
    display: block;
    padding: 3px 6px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .cal-label[data-status="validated"] { background: var(--st-validated-soft); color: var(--st-validated-ink); }
  .cal-label[data-status="sent"] { background: var(--st-sent-soft); color: var(--st-sent-ink); }
  .cal-label[data-status="potential"] { background: var(--surface); color: var(--st-potential-ink); box-shadow: inset 0 0 0 1px var(--st-potential-soft); }
  .cal-day.selected { background: var(--forest); }
}

/* ---------- Check-list ---------- */

.ring { position: relative; width: 84px; height: 84px; flex: none; }
.ring svg { width: 84px; height: 84px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 8; }
.ring .track { stroke: rgba(31, 77, 58, .12); }
.ring .value { stroke: var(--apricot); stroke-linecap: round; transition: stroke-dashoffset .6s var(--ease); }
.ring-label {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 19px; font-weight: 800; letter-spacing: -.02em;
}
.ring-label small { display: block; font-size: 10.5px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; text-align: center; margin-top: -2px; }

.check-hero { display: flex; align-items: center; gap: 18px; margin-top: 18px; }
.check-for { font-size: 13px; color: var(--ink-3); }
.check-for strong { display: block; margin-top: 3px; color: var(--ink); font-size: 16px; font-weight: 700; }

.check-group {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.check-group + .check-group { margin-top: 12px; }

.check-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 10px;
}
.check-group-title { font-size: 15px; font-weight: 800; }
.check-group-count { font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.check-group-count.done { color: var(--st-validated-ink); }

.check-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 16px;
  border-top: 1px solid var(--line);
  width: 100%;
  text-align: left;
  transition: background .15s;
}
.check-item:hover { background: var(--surface-2); }

.check-box {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 2px var(--line-2);
  transition: background .2s var(--ease), box-shadow .2s;
}
.check-box svg { width: 16px; height: 16px; stroke: #fff; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .3s var(--ease) .05s; }
.check-item.checked .check-box { background: var(--forest); box-shadow: none; }
.check-item.just.checked .check-box { animation: pop .3s var(--ease-spring); }
.check-item.checked .check-box svg { stroke-dashoffset: 0; }

@keyframes pop { 50% { transform: scale(1.15); } }

.check-text { font-size: 15px; font-weight: 600; transition: color .2s; overflow-wrap: anywhere; }
.check-item.checked .check-text { color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 1.5px; }

.check-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--ink-2);
}

.check-edit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 6px;
  min-height: 52px;
  padding: 6px 8px 6px 16px;
  border-top: 1px solid var(--line);
}
.check-edit-row .check-text { font-weight: 600; }

.check-add {
  display: flex;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--line);
}
.check-add .input { min-height: 42px; padding: 9px 12px; font-size: 15px; background: var(--surface-2); }
.check-add .btn { min-height: 42px; }

.all-done {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--r-lg);
  background: var(--st-validated-soft);
  color: var(--st-validated-ink);
  font-weight: 700;
  margin-bottom: 14px;
  animation: page-in .4s var(--ease-spring) both;
}
.all-done svg.i { width: 26px; height: 26px; }
.all-done p { font-size: 13px; font-weight: 500; color: var(--ink-2); margin-top: 2px; }

@media (min-width: 1024px) {
  .check-columns { columns: 2; column-gap: 16px; }
  .check-columns .check-group { break-inside: avoid; margin: 0 0 16px; }
}

/* ---------- Historique ---------- */

.chart-card { padding: 18px 16px 12px; }
.chart-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.chart-title { font-size: 15px; font-weight: 700; }
.chart-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.chart-readout { text-align: right; min-height: 38px; }
.chart-readout b { display: block; font-size: 18px; font-weight: 800; }
.chart-readout span { font-size: 12px; color: var(--ink-3); font-weight: 600; text-transform: capitalize; }

.chart { width: 100%; height: 170px; display: block; margin-top: 10px; overflow: visible; }
.chart .grid-line { stroke: var(--line); stroke-width: 1; }
.chart .axis-text { fill: var(--ink-3); font-size: 10.5px; font-weight: 600; }
.chart .bar { fill: var(--forest-3); transition: opacity .2s; }
.chart .bar.dim { opacity: .35; }
.chart .hit { fill: transparent; cursor: pointer; }

.table-toggle { margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--forest-3); }
.data-table { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: 13px; }
.data-table th, .data-table td { padding: 6px 4px; border-top: 1px solid var(--line); text-align: left; }
.data-table td:last-child, .data-table th:last-child { text-align: right; }
.data-table th { color: var(--ink-3); font-weight: 600; }

@media (min-width: 1024px) {
  .history-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: start; }
  .history-grid > * + * { margin-top: 0; }
  .history-grid .sticky { position: sticky; top: 24px; }
}

/* ---------- Fiche détail ---------- */

.detail-hero {
  display: grid;
  gap: 10px;
  padding-bottom: 16px;
}
.detail-name { font-size: 24px; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.detail-when { font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.detail-when::first-letter { text-transform: uppercase; }

.info-list {
  display: grid;
  background: var(--surface-2);
  border-radius: var(--r);
  overflow: hidden;
}
.info-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  text-align: left;
  width: 100%;
}
.info-row + .info-row { border-top: 1px solid var(--line); }
.info-row .ico {
  width: 36px; height: 36px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--surface); color: var(--ink-2);
}
.info-row .ico svg.i { width: 17px; height: 17px; }
.info-label { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.info-value { font-size: 14.5px; font-weight: 600; overflow-wrap: anywhere; }
a.info-row:hover, button.info-row:hover { background: var(--surface-3); }
.info-row .go { color: var(--ink-3); }

.detail-section { margin-top: 20px; }
.detail-section h4 { font-size: 13px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }

.note-box {
  padding: 14px 16px;
  border-radius: var(--r);
  background: var(--surface-2);
  font-size: 14.5px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.bilan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bilan-cell { padding: 12px; border-radius: 14px; background: var(--surface-2); }
.bilan-cell span { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.bilan-cell b { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 17px; font-weight: 800; }
.bilan-cell b svg.i { width: 18px; height: 18px; }

.editions { display: grid; gap: 6px; }
.edition {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 12px; background: var(--surface-2);
  font-size: 14px; font-weight: 600;
}
.edition span { color: var(--ink-2); font-weight: 500; }

.pipeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 4px;
}
.pipeline-step { display: grid; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.pipeline-step::before { content: ""; height: 4px; border-radius: 999px; background: var(--surface-3); }
.pipeline-step.done { color: var(--ink); }
.pipeline-step.done::before { background: var(--forest); }
.pipeline-step.refused::before { background: var(--st-refused); }

/* ---------- Réglages ---------- */

.settings-list { display: grid; gap: 10px; }
.settings-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: var(--r);
  background: var(--surface-2);
  text-align: left;
  width: 100%;
  transition: background .2s;
}
.settings-item:hover { background: var(--surface-3); }
.settings-item .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); }
.settings-item b { display: block; font-size: 14.5px; }
.settings-item span { font-size: 12.5px; color: var(--ink-2); }
.settings-item.danger b { color: var(--st-refused-ink); }

/* ==========================================================================
   Compte : connexion, offres, bandeau d'essai
   ========================================================================== */

body.gate .sidebar,
body.gate .tabbar,
body.gate .fab { display: none !important; }
body.gate .app { display: block; }
body.gate .view { padding: 0; max-width: none; }

.gate-screen {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.gate-screen::before {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  right: -260px; top: -240px;
  border-radius: 50%;
  border: 1px solid rgba(31, 77, 58, .09);
  box-shadow: 0 0 0 70px rgba(31, 77, 58, .025);
  z-index: -1;
}

.gate-top {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: calc(var(--safe-t) + 22px) 24px 30px;
  color: var(--ink);
}
.gate-top.compact { flex: 0 0 auto; justify-content: flex-start; padding-bottom: 22px; }

.gate-brand {
  position: absolute;
  top: calc(var(--safe-t) + 20px);
  left: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.gate-top.compact .gate-brand { position: static; }
.gate-brand img { display: block; width: auto; height: 40px; }

.gate-art { margin: 70px 0 8px; }
.gate-art .empty-art { width: 150px; height: 114px; margin: 0; }
.gate-title { font-size: 31px; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; }
.gate-sub { font-size: 15px; color: var(--ink-2); max-width: 360px; }

.gate-card {
  background: var(--surface);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 26px 20px calc(24px + var(--safe-b));
  box-shadow: 0 -10px 40px rgba(40, 32, 20, .08), 0 0 0 1px var(--line);
}
.gate-top.compact + .gate-card { flex: 1; }

.gate-h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.gate-p { margin: 6px 0 20px; font-size: 14.5px; color: var(--ink-2); }
.gate-fine { margin-top: 16px; font-size: 13px; color: var(--ink-2); }
.gate-fine.row { display: flex; gap: 8px; align-items: flex-start; }
.gate-fine svg.i { width: 16px; height: 16px; margin-top: 1px; color: var(--ink-3); }
.mock-hint { justify-content: center; padding: 10px; border-radius: 12px; background: var(--apricot-soft); color: var(--apricot-strong); }

.gate-links {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.gate-links a { color: var(--ink-2); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.gate-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: -6px 0 14px -6px;
  padding: 6px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--forest-3);
}
.gate-back svg.i { width: 18px; height: 18px; }

.gate-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; margin-top: 14px; }

.btn-lg { min-height: 52px; font-size: 15.5px; border-radius: 16px; }

.code-input {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .4em;
  padding-left: calc(14px + .4em);
  min-height: 62px;
  font-variant-numeric: tabular-nums;
}

/* Écran de chargement */
.splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 26px;
  padding-bottom: 6vh;
  background: var(--bg);
}
.splash img { display: block; width: auto; height: 46px; animation: splash-in .7s var(--ease) both; }
.splash-bar { position: relative; width: 112px; height: 3px; border-radius: 2px; background: rgba(31, 77, 58, .12); overflow: hidden; animation: splash-in .7s .15s var(--ease) both; }
.splash-bar i { position: absolute; inset: 0 auto 0 0; width: 38%; border-radius: inherit; background: var(--apricot); animation: splash-run 1.15s cubic-bezier(.45, 0, .2, 1) infinite; }
.splash-msg { min-height: 1.2em; font-size: 13px; font-weight: 500; color: var(--ink-3); text-align: center; }
@keyframes splash-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes splash-run { from { transform: translateX(-110%); } to { transform: translateX(300%); } }
@media (prefers-reduced-motion: reduce) { .splash img, .splash-bar, .splash-bar i { animation: none; } }

.gate-loading { display: grid; justify-items: center; gap: 14px; padding: 40px 0; color: var(--ink-2); font-weight: 600; text-align: center; }

.spinner {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid var(--brand-soft);
  border-top-color: var(--apricot);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 720px) {
  .gate-screen { align-items: center; justify-content: center; padding: 40px 20px; }
  .gate-top, .gate-card { width: min(460px, 100%); }
  .gate-top { flex: 0 0 auto; padding: 0 4px 26px; }
  .gate-brand { position: static; }
  .gate-art { margin-top: 26px; }
  .gate-card { border-radius: var(--r-xl); padding: 30px 28px; }
  .gate-top.compact + .gate-card { flex: 0 0 auto; }
}

/* Formulaire de bienvenue : une question par écran, barre d'avancement en tête */
.gate-screen.ob-screen { overflow: clip; }   /* garde le pied collant en bas de l'écran */

.ob-top { gap: 14px; padding-bottom: 20px; }
.ob-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ob-skip-all {
  margin-right: -10px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  transition: background .2s, color .2s;
}
.ob-skip-all:hover { background: var(--surface-3); color: var(--ink); }

.ob-progress { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 5px; margin-top: 4px; }
.ob-progress span { position: relative; height: 5px; border-radius: 3px; background: rgba(31, 77, 58, .12); overflow: hidden; }
.ob-progress span::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--apricot);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.ob-progress span.on::after { transform: scaleX(1); }
.ob-count { font-size: 12.5px; font-weight: 600; letter-spacing: .03em; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.ob-card { display: flex; flex-direction: column; }
.ob-card [data-step] { flex: 1; }
.ob-hello {
  margin-bottom: 16px;
  padding: 10px 13px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--forest);
  font-size: 13.5px;
  font-weight: 600;
}
.ob-title { line-height: 1.2; outline: none; text-wrap: balance; }
.ob-hint { margin: 6px 0 16px; font-size: 13px; font-weight: 500; color: var(--ink-3); }

.ob-options { display: grid; gap: 8px; }
.ob-option {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 9px 14px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2);
  text-align: left;
  transition: background .18s, box-shadow .18s, transform .12s var(--ease);
}
.ob-option:hover { background: var(--surface-2); }
.ob-option:active { transform: scale(.985); }
.ob-option[aria-pressed="true"] { background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--forest); }

.ob-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  color: transparent;
  transition: background .18s, box-shadow .18s, color .18s;
}
.ob-options.multi .ob-mark { border-radius: 7px; }
.ob-mark svg.i { width: 14px; height: 14px; stroke-width: 3; }
.ob-option[aria-pressed="true"] .ob-mark { background: var(--forest); box-shadow: none; color: #fff; }

.ob-label b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.ob-label small { display: block; margin-top: 1px; font-size: 12.5px; color: var(--ink-2); }
.ob-other { margin-top: 8px; }

.ob-foot {
  position: sticky;
  bottom: 0;
  z-index: 1;
  display: flex;
  gap: 10px;
  margin-top: 12px;
  padding: 12px 0 max(4px, var(--safe-b));
  background: var(--surface);
}
.ob-foot::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 100%;
  height: 18px;
  background: linear-gradient(to top, var(--surface), transparent);
  pointer-events: none;
}
.ob-foot .btn-lg { flex: 1; }
.ob-prev { flex: none; width: 52px; min-height: 52px; padding: 0; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }

@media (min-width: 720px) {
  .ob-top { padding-bottom: 22px; }
  .ob-foot { padding-bottom: 0; }
}

/* Offres */
.plans { display: grid; gap: 12px; }

.plan {
  position: relative;
  padding: 18px;
  border-radius: var(--r-lg);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.plan.featured { background: var(--surface); box-shadow: inset 0 0 0 2px var(--forest); }

.plan-badge {
  position: absolute;
  top: -10px;
  right: 16px;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--apricot);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 800;
}
.plan-name { font-size: 15px; font-weight: 700; color: var(--ink-2); }
.plan-saving { margin: -6px 0 12px; font-size: 13.5px; font-weight: 600; color: var(--apricot-strong); }
.plan-price { margin: 4px 0 12px; font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.plan-price small { font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--ink-2); }
.plan-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.plan-list li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: start; }
.plan-list svg.i { width: 18px; height: 18px; color: var(--forest-3); stroke-width: 2.4; }
.plan-list li.no { color: var(--ink-3); }
.plan-list li.no svg.i { color: var(--ink-3); }

/* Bandeau d'essai sur l'accueil */
.banner {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r-lg);
  background: var(--brand-soft);
  color: var(--ink);
  text-align: left;
  transition: filter .2s;
}
.banner:hover { filter: brightness(.98); }
.banner b { display: block; font-size: 14.5px; }
.banner small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-2); }
.banner > svg.i { color: var(--ink-3); width: 18px; height: 18px; }
.banner-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); color: var(--forest); }
.banner-icon svg.i { width: 18px; height: 18px; }
.banner.warn { background: var(--apricot-soft); }
.banner.warn .banner-icon { color: var(--apricot-strong); }
.banner.danger { background: var(--st-refused-soft); }
.banner.danger .banner-icon { color: var(--st-refused-ink); }

/* Entrée « Donner mon avis » en bas de l'accueil : discrète, sur fond neutre */
.banner.feedback-entry { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.banner.referral-entry { background: var(--brand-soft); }
.banner.referral-entry .banner-icon { background: var(--apricot); color: #fff; }

/* Parrainage : lien de l'écran de connexion */
.ref-toggle { display: inline-flex; align-items: center; gap: 7px; margin: -2px 0 2px; padding: 4px 0; font-size: 13.5px; font-weight: 600; color: var(--apricot); }
.ref-toggle svg.i { width: 16px; height: 16px; }
.ref-input { text-transform: uppercase; letter-spacing: .12em; }
.ref-applied { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--apricot-soft); font-size: 13.5px; line-height: 1.45; color: var(--ink); }
.ref-applied svg.i { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--apricot); }

/* Parrainage : l'écran « Parrainer un exposant » */
.ref-loading { display: grid; place-items: center; padding: 40px 0; }
.ref-offer { display: grid; gap: 2px; border-radius: var(--r); overflow: hidden; background: var(--surface-2); }
.ref-offer-row { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: center; padding: 12px 14px; background: var(--surface); }
.ref-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--forest); }
.ref-offer-row:first-child .ref-ico { background: var(--apricot-soft); color: var(--apricot); }
.ref-ico svg.i { width: 19px; height: 19px; }
.ref-offer p b { display: block; font-size: 14.5px; }
.ref-offer p span { display: block; margin-top: 1px; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.ref-card { margin-top: 16px; padding: 18px; border-radius: var(--r-lg); background: var(--brand-soft); text-align: center; }
.ref-qr { display: grid; place-items: center; width: 200px; height: 200px; margin: 0 auto; padding: 10px; border-radius: 16px; background: #fff; box-shadow: 0 10px 26px rgba(31, 77, 58, .12); }
.ref-qr svg { display: block; width: 100%; height: 100%; }
.ref-qr-hint { max-width: 280px; margin: 12px auto 0; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.ref-code { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--surface); text-align: left; }
.ref-code small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.ref-code b { display: block; margin-top: 2px; font-size: 22px; font-weight: 800; letter-spacing: .14em; color: var(--forest); font-variant-numeric: tabular-nums; }
.ref-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.ref-stats div { padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); }
.ref-stats b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--forest); }
.ref-stats b small { font-size: 14px; font-weight: 600; color: var(--ink-3); }
.ref-stats span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-2); }
.ref-cap { margin-top: 10px; }
.ref-enter { margin-top: 16px; padding: 14px; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); }
.ref-enter p b { display: block; font-size: 14.5px; }
.ref-enter p span { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-2); }
.ref-enter-row { display: flex; gap: 8px; margin-top: 10px; }
.ref-enter-row .input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .12em; }
.ref-terms { margin-top: 14px; }
.ref-terms a { color: var(--apricot); font-weight: 600; }
.banner.feedback-entry .banner-icon { background: var(--apricot-soft); color: var(--apricot-strong); }

/* Interrupteur avec libellé sur deux lignes (Mon compte > E-mails) */
.settings-switch { padding: 14px; border-radius: var(--r); background: var(--surface-2); cursor: pointer; }
.settings-switch b { display: block; font-size: 14.5px; }
.settings-switch small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); }

/* Mon compte */
.account-status {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--r);
  background: var(--surface-2);
}
.account-status b { display: block; font-size: 15px; }
.account-status small { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-2); }
.account-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.account-actions .btn { flex: 1 1 auto; }
.account-actions:empty { display: none; }
.sync-line { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.sync-line svg.i { width: 14px; height: 14px; }
/* L'avenir de L'Exposant */
.future { list-style: none; margin: 4px 0 18px; padding: 0; }
.future li { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding-bottom: 20px; }
.future li:not(:last-child)::before { content: ""; position: absolute; left: 10px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.future li.done::before, .future li.now::before { background: var(--brand); }
.future-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); box-sizing: border-box; }
.future li.done .future-dot { background: var(--brand); border-color: var(--brand); }
.future li.now .future-dot { border: 6px solid var(--apricot); }
.future small { display: block; font-size: 12px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
.future small em { font-style: normal; color: var(--apricot); font-weight: 600; }
.future b { display: block; font-size: 16px; margin: 2px 0 4px; }
.future p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.future li:not(.done):not(.now) b { color: var(--ink-2); }
.future-count { padding: 14px 16px; border-radius: 12px; background: var(--brand-soft); margin-bottom: 18px; display: grid; gap: 6px; }
.future-count b { font-size: 18px; }
.future-count span { font-size: 13.5px; color: var(--ink-2); }
.future-bar { display: block; height: 6px; border-radius: 3px; background: var(--surface); overflow: hidden; }
.future-bar i { display: block; height: 100%; background: var(--apricot); }
.future-cta { width: 100%; }

/* Fiche d’un marché confirmé : l’ajouter à l’agenda du téléphone */
.cal-add { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cal-add .btn { justify-content: center; text-decoration: none; }

/* ==========================================================================
   Version 1.5 : jour J, météo, ventes du jour, frais et verdicts, relances
   ========================================================================== */

/* Accueil : chiffres clés en une seule bande, plus légère que quatre tuiles */
.strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.strip button { display: grid; gap: 3px; padding: 14px 6px 13px; text-align: center; transition: background .2s; }
.strip button + button { border-left: 1px solid var(--line); }
.strip button:hover { background: var(--surface-2); }
.strip b { font-size: 20px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.strip span { font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.num.neg, .amount-sub.neg { color: var(--st-refused-ink); }

.home-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; padding: 4px 0 8px; }
.home-links button { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--forest-3); }
.home-links button:hover { text-decoration: underline; }
.home-links svg.i { width: 16px; height: 16px; }

/* Météo sur la carte du prochain marché, et sur le jour J */
.next-meteo { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: rgba(250, 247, 242, .9); }
.next-meteo svg.i { width: 18px; height: 18px; color: var(--sage); flex: none; }
.next-meteo.today { gap: 6px; padding: 5px 10px 5px 8px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: 13px; }
.next-meteo.today b { font-size: 15px; }
.next-meteo.today span { opacity: .85; }
.next-meteo.today span::first-letter { text-transform: uppercase; }

/* Jour J : les gestes utiles en gros boutons */
.today-card .countdown { background: var(--cream); color: var(--forest); }
/* Quatre cases identiques : même largeur, même hauteur, icône centrée, une seule ligne de texte */
.today-actions { display: flex; gap: 8px; }
.today-actions > a, .today-actions > button {
  flex: 1 1 0; min-width: 0; height: 74px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 0 4px; border-radius: 14px;
  background: rgba(255, 255, 255, .12); color: var(--cream);
  transition: background .2s;
}
.today-actions > a:hover, .today-actions > button:hover { background: rgba(255, 255, 255, .2); }
.ta-ico { position: relative; display: grid; place-items: center; width: 24px; height: 24px; }
.ta-ico svg.i { width: 22px; height: 22px; }
.ta-label { max-width: 100%; font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ta-badge {
  position: absolute; top: -7px; left: 15px;
  min-width: 26px; height: 16px; padding: 0 4px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--apricot); color: #fff; font-size: 9.5px; font-weight: 800; letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.ta-badge.done { background: var(--mint-strong); }

/* Ligne météo dans une fiche */
.meteo-sub { font-weight: 500; color: var(--ink-3); }
.meteo-line { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.meteo-line .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--line-2); }

/* Suggestions sous un champ (adresse, ville) */
.suggest-host { position: relative; }
.suggest {
  position: absolute; left: 0; top: calc(100% + 4px); z-index: 20;
  width: max(100%, 290px); max-width: calc(100vw - 32px);
  display: grid; padding: 6px;
  background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow-2), 0 0 0 1px var(--line);
}
.form-row .suggest-host:last-child .suggest { left: auto; right: 0; }
.suggest button { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; text-align: left; min-width: 0; }
.suggest button:hover { background: var(--surface-2); }
.suggest button > span { min-width: 0; }
.suggest svg.i { width: 16px; height: 16px; color: var(--ink-3); flex: none; }
.suggest b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest small { display: block; font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Ventes du jour */
.sales { padding: 14px 16px; }
.sales-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sales-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.sales-total { display: block; margin-top: 2px; font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.sales-split { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.sales-split span { display: inline-flex; align-items: center; gap: 6px; }
.sales-split svg.i { width: 15px; height: 15px; color: var(--ink-3); }
.sales-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; }
.sales-list li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; min-height: 40px; font-size: 14px; }
.sales-list li + li { border-top: 1px solid var(--line); }
.sales-when { font-size: 13px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.sales-how { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 13px; }
.sales-how svg.i { width: 15px; height: 15px; color: var(--ink-3); }
.sales-list .icon-btn { width: 32px; height: 32px; color: var(--ink-3); }
.sales-hint { margin: 10px 0 0; font-size: 13px; color: var(--ink-3); }
.sale-amount .input-big { font-size: 30px; font-weight: 800; letter-spacing: -.02em; min-height: 64px; }
.sale-methods .choice { flex: 1; justify-content: center; min-height: 48px; }

/* Bilan : saisie des frais et bénéfice net */
.input-big { font-size: 22px; font-weight: 700; }
.field-note { display: block; margin-top: 6px; font-size: 12.5px; color: var(--ink-3); line-height: 1.4; }
.net-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface); }
.net-line span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.net-line b { font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--st-validated-ink); }
.net-line.neg b { color: var(--st-refused-ink); }
.net-line small { width: 100%; font-size: 12.5px; color: var(--ink-3); }
.link-btn { align-self: start; font-size: 13.5px; font-weight: 600; color: var(--forest-3); padding: 4px 0; }
.link-btn:hover { text-decoration: underline; }

/* Fiche d'un marché passé */
.bilan-cell.pos b { color: var(--st-validated-ink); }
.bilan-cell.neg b { color: var(--st-refused-ink); }
.bilan-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.bilan-meta span { display: inline-flex; align-items: center; gap: 6px; }
.bilan-meta svg.i { width: 16px; height: 16px; color: var(--ink-3); }
.bilan-detail { margin: 10px 0 0; font-size: 12.5px; color: var(--ink-3); }
.edition.current { box-shadow: inset 0 0 0 2px var(--line-2); }
.edition small { font-size: 12.5px; font-weight: 500; color: var(--ink-3); }
.edition b.neg { color: var(--st-refused-ink); }
.edition span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.edition-trend { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 13.5px; font-weight: 600; color: var(--st-validated-ink); }
.edition-trend.neg { color: var(--st-refused-ink); }
.edition-trend svg.i { width: 16px; height: 16px; }

/* Verdict : à refaire, à éviter, moyen */
.pill.verdict { gap: 5px; }
.pill.verdict svg.i { width: 13px; height: 13px; }
.pill.verdict.mini { height: 20px; padding: 0 7px; font-size: 11px; }
.pill[data-verdict="mixed"] { background: var(--surface-3); color: var(--ink-2); }
.pill.verdict::before { display: none; }

/* Météo du bilan : six choix */
.weather-grid { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 520px) { .weather-grid { grid-template-columns: repeat(6, 1fr); } }

/* Écrire à l'organisateur */
.msg-text { min-height: 180px; font-size: 14px; line-height: 1.5; }
.send-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.send-row .btn { position: relative; }
.send-row .btn small { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 10.5px; font-weight: 600; opacity: .7; }
.send-row [aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* ---------- 1.5 b : désignation des ventes, météo détaillée ---------- */

/* Ligne de vente : produit au-dessus, moyen de paiement en petit */
.sales-list li { grid-template-columns: 44px minmax(0, 1fr) auto auto; }
.sales-edit { display: block; min-width: 0; padding: 6px 0; text-align: left; }
.sales-what { display: grid; min-width: 0; }
.sales-what b { font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sales-what b + .sales-how { font-size: 12px; }
.sales-what b + .sales-how svg.i { width: 13px; height: 13px; }

/* Saisie d'une vente (feuille du haut) */
.sale-form { gap: 14px; }
.sale-row { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: end; }
.sale-amount .input-big { font-size: 26px; font-weight: 800; letter-spacing: -.02em; min-height: 56px; }
.sale-label .input { min-height: 56px; }
.sale-quick { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: -4px 0 0; padding-bottom: 2px; }
.sale-quick::-webkit-scrollbar { display: none; }
.sale-quick .chip { flex: none; }
.sale-methods .choice { flex: 1; justify-content: center; min-height: 46px; }

/* Ce qui s'est vendu */
.products { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.products li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; font-size: 14px; }
.products-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.products-name small { font-weight: 500; color: var(--ink-3); }
.products-bar { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.products-bar i { display: block; height: 100%; border-radius: inherit; background: var(--forest-3); }

/* Météo : touchable sur l'accueil */
button.next-meteo { text-align: left; }
button.next-meteo > svg.i:last-child { width: 15px; height: 15px; opacity: .7; margin-left: -2px; }
.next-meteo.today span { font-size: 12px; }
button.info-row { width: 100%; text-align: left; }
button.info-row:hover { background: var(--surface-3); }

/* Météo détaillée */
.mday { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r); background: var(--surface-2); }
.mday-ico { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--surface); color: var(--forest); flex: none; }
.mday-ico svg.i { width: 30px; height: 30px; }
.mday b { font-weight: 700; }
.mday > div > b { display: block; font-size: 15.5px; }
.mday > div > span { display: block; margin-top: 3px; font-size: 13.5px; color: var(--ink-2); }
.mh-legend { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 18px 0 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.mh-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; background: var(--brand-soft); box-shadow: inset 0 0 0 1px rgba(31, 77, 58, .25); }
.mhours { list-style: none; margin: 0; padding: 0; display: grid; }
.mhours li {
  display: grid; grid-template-columns: 74px 28px 46px minmax(0, 1fr) auto;
  align-items: center; gap: 8px; min-height: 44px; padding: 0 10px;
  border-radius: 10px; font-size: 14px;
}
.mhours li + li { margin-top: 2px; }
.mhours li.in { background: var(--brand-soft); }
.mhours li.now { box-shadow: inset 0 0 0 2px var(--forest); }
.mhours li.past { opacity: .5; }
.mh-h { font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; line-height: 1.1; }
.mh-h small { display: block; font-size: 10.5px; font-weight: 700; color: var(--forest); text-transform: uppercase; letter-spacing: .04em; }
.mh-ico svg.i { width: 22px; height: 22px; color: var(--ink-2); }
.mh-t { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.mh-rain, .mh-wind { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.mh-rain { color: #2F6FA3; }
.mh-rain svg.i, .mh-wind svg.i { width: 14px; height: 14px; }
