/* iStock One website styles. SiteLayout links this file when SITE_PRODUCT=solo.
   Strictly complies with the iStock brand kit (docs/design/DESIGN.md). */

/* Brand color swapping for iStock One: mandarin wordmark, petrol lid */
:root {
  --one-petrol: #ff7a2f;
  --one-lid: #063b46;
  --one-face: #b4501a;
}
:root[data-theme="dark"] {
  --one-petrol: #ff8a47;
  --one-lid: #e8f1f0;
  --one-face: #ffa470;
}

/* iStock One wordmark (SoloLogo.astro) */
.solo-logo {
  display: block;
  width: auto;
  height: 36px;
  overflow: visible;
  --t: 0.85;
}
@media (max-width: 440px) {
  .top .solo-logo { height: 31px; }
}
footer .solo-logo {
  height: 34px;
}
.solo-logo.lgx {
  width: min(340px, 100%);
  height: auto;
  --t: 1;
}

/* Static logo elements: fk, fl, ff */
svg.solo-logo .fk { fill: var(--one-petrol); }
svg.solo-logo .fl { fill: var(--one-lid); }
svg.solo-logo .ff { fill: var(--one-face); }

/* Animated logo elements: k/ch, l, k2 */
svg.solo-logo :is(.k, .ch) { fill: var(--one-petrol); }
svg.solo-logo .l { fill: var(--one-lid); }
svg.solo-logo .k2 { fill: var(--one-face); }

/* Header animated logo motion */
.solo-logo.solo-anim .stem {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: i3-stem calc(0.45s * var(--t)) cubic-bezier(0.2, 0.9, 0.2, 1) both;
}
.solo-logo.solo-anim .crt {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: i3-drop calc(0.42s * var(--t)) var(--land) calc(0.33s * var(--t)) both;
}
.solo-logo.solo-anim .lidg {
  animation: i3-liddrop calc(0.42s * var(--t)) var(--land) calc(0.4s * var(--t)) both;
}
.solo-logo.solo-anim .ch {
  animation: i3-in-x calc(0.45s * var(--t)) var(--ease) calc((1.45s + var(--i) * 0.08s) * var(--t)) both;
}

/* Footer grid: 3 columns after brand (no enterprise feature links) */
footer .wrap.solo-wrap {
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
}
@media (max-width: 760px) {
  footer .wrap.solo-wrap { grid-template-columns: 1fr 1fr; }
}

/* Section scroll margins for header offset */
#fonctions,
#comment,
#hors-ligne,
#tarifs,
#questions,
#commencer,
#probleme {
  scroll-margin-top: 84px;
}

/* Day demo: live ticket */
.demo-ticket {
  margin: 12px 18px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--paper);
  border: 1px dashed var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  transition: border-color 0.3s;
}
.demo-ticket-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 700;
}
.demo-ticket-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 44px;
  justify-content: center;
}
.demo-ticket-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
  animation: fadeup 0.35s var(--ease) both;
}
.demo-ticket-empty {
  color: var(--ink-3);
  font-size: 0.8rem;
  font-style: italic;
}
.demo-ticket-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  font-weight: 800;
}

/* Register Tab 4: Thermal Receipt Mockup */
.receipt-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding-block: 8px;
}
.receipt-paper {
  width: 100%;
  max-width: 320px;
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.84rem;
  box-shadow: 0 4px 16px -6px var(--shadow-ink);
}
.receipt-header {
  text-align: center;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 8px;
}
.receipt-header b {
  display: block;
  font: 800 0.96rem var(--sans);
  color: var(--ink);
}
.receipt-header span {
  font-size: 0.78rem;
  color: var(--ink-3);
}
.receipt-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--ink-3);
}
.receipt-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-block: 4px;
}
.receipt-line {
  display: flex;
  justify-content: space-between;
}
.receipt-total {
  border-block: 1px dashed var(--line);
  padding-block: 6px;
  display: flex;
  justify-content: space-between;
  font: 800 1.1rem var(--sans);
  color: var(--ink);
}
.receipt-payments {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--ink-2);
}
.receipt-footer {
  text-align: center;
  font-size: 0.76rem;
  color: var(--ink-3);
  padding-top: 4px;
}

/* Register Tab 5: Reports & KPI Chart */
.report-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.report-kpi {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
.report-kpi small {
  display: block;
  font-size: 0.76rem;
  color: var(--ink-3);
  margin-bottom: 2px;
}
.report-kpi b {
  font: 800 1.25rem/1.1 var(--sans);
  color: var(--ink);
}
.report-chart {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-top: 4px;
  padding: 14px;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.report-chart-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.report-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  flex: 1;
  min-height: 120px;
  padding-top: 6px;
  border-bottom: 1px solid var(--line);
}
.report-bar-col {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.report-bar {
  flex: none;
  width: 100%;
  max-width: 28px;
  background: var(--ink);
  border-radius: 4px 4px 0 0;
  transition: height 0.6s var(--ease);
}
.report-bar.active {
  background: var(--lid);
}
.report-bar-label {
  font-size: 0.7rem;
  color: var(--ink-3);
}

.report-bar { transform-origin: bottom; }
.pane.on .report-bar { animation: bar-grow 0.8s var(--ease) both; animation-delay: calc(var(--b, 0) * 0.07s); }
@keyframes bar-grow { from { transform: scaleY(0); } to { transform: none; } }
.stage:has(.receipt-wrap) { min-height: 600px; }
.example-note { margin-top: 14px; font-size: 0.85rem; color: var(--ink-3); }

/* Comment section: 3-step editorial sequence (no boxes): a top rule per column, big step number */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
}
@media (max-width: 860px) {
  .steps-grid { grid-template-columns: 1fr; gap: 0; }
  .step { padding-block: 22px; }
}
.step {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.step-num {
  font: 800 clamp(2.4rem, 4vw, 3.4rem)/1 var(--sans);
  color: var(--lid-ink);
  font-variant-numeric: tabular-nums;
}
.step h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
}
.step p {
  font-size: 0.94rem;
  color: var(--ink-2);
  line-height: 1.5;
}

/* Scroll reveal: the shared .rv scroll-driven animation from global.css (as on the homepage); content is never hidden. */

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .rv {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
