/* Vitrine publique (accueil, conditions) : page claire, Instrument Sans, une section sombre (acheteurs). */
@font-face {
  font-family: "Instrument Sans"; font-weight: 400 700; font-display: swap;
  src: url("../dashboard/vendor/instrument-sans/instrument-sans-latin.fa41c43a3d8e.woff2") format("woff2");
}
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
html, body { overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.sf {
  --sf-bg: #ffffff;
  --sf-bg-2: #f7f7f5;
  --sf-ink: #111827;
  --sf-soft: #4b5563;
  --sf-faint: #6b7280;
  --sf-line: #e5e7eb;
  --sf-accent: #4f46e5;
  --sf-accent-ink: #4338ca;
  --sf-card: #ffffff;
  --bs-body-font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-bg: var(--sf-bg);
  --bs-body-color: var(--sf-ink);
  --bs-link-color: var(--sf-accent);
  --bs-link-color-rgb: 79, 70, 229;
  --bs-link-hover-color: var(--sf-accent-ink);
  background: var(--sf-bg);
  color: var(--sf-ink);
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}
[data-bs-theme=dark] .sf {
  --sf-bg: #0b1120;
  --sf-bg-2: #0f172a;
  --sf-ink: #f1f5f9;
  --sf-soft: #cbd5e1;
  --sf-faint: #94a3b8;
  --sf-line: #1f2a3c;
  --sf-accent: #a5b4fc;
  --sf-accent-ink: #c7d2fe;
  --sf-card: #111827;
  --bs-link-color-rgb: 165, 180, 252;
}
.sf .btn-primary {
  --bs-btn-bg: #4f46e5; --bs-btn-border-color: #4f46e5;
  --bs-btn-hover-bg: #4338ca; --bs-btn-hover-border-color: #4338ca;
  --bs-btn-active-bg: #3730a3; --bs-btn-active-border-color: #3730a3;
}
[data-bs-theme=dark] .sf .btn-primary { --bs-btn-bg: #6366f1; --bs-btn-border-color: #6366f1; --bs-btn-hover-bg: #4f46e5; --bs-btn-hover-border-color: #4f46e5; }
.sf-btn { font-weight: 600; border-radius: .6rem; padding: .8rem 1.4rem; font-size: 1rem; }
.sf-btn-sm { font-weight: 600; border-radius: .5rem; padding: .45rem .9rem; font-size: .92rem; }
.sf-link { font-weight: 600; color: var(--sf-ink); text-decoration: none; display: inline-flex; align-items: center; gap: .15rem; }
.sf-link:hover { color: var(--sf-accent); }

/* Navigation */
.sf-nav { background: color-mix(in srgb, var(--sf-bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--sf-line); padding: .7rem 0; }
.sf-brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; color: var(--sf-ink); text-decoration: none; }
.sf-brand:hover { color: var(--sf-ink); }
.sf-logo { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: .5rem; background: #4f46e5; color: #fff; font-size: 1rem; }
.sf-nav .nav-link { color: var(--sf-soft); font-weight: 500; font-size: .95rem; padding-inline: .8rem !important; }
.sf-nav .nav-link:hover, .sf-nav .nav-link:focus { color: var(--sf-ink); }
.sf-toggler { border: 1px solid var(--sf-line); color: var(--sf-ink); font-size: 1.4rem; padding: .15rem .55rem; border-radius: .5rem; }
.sf-toggler:focus { box-shadow: 0 0 0 .2rem rgba(79, 70, 229, .2); }
.sf-nav-actions { display: flex; align-items: center; gap: .9rem; padding: .75rem 0 .25rem; }
.sf-nav-login { color: var(--sf-ink); font-weight: 600; font-size: .95rem; text-decoration: none; }
.sf-nav-login:hover { color: var(--sf-accent); }
.sf-icon-btn { --bs-btn-color: var(--sf-soft); --bs-btn-border-color: var(--sf-line); --bs-btn-hover-color: var(--sf-ink); --bs-btn-hover-border-color: var(--sf-line); --bs-btn-hover-bg: var(--sf-bg-2); --bs-btn-padding-y: .3rem; --bs-btn-padding-x: .55rem; border-radius: .5rem; }
@media (min-width: 992px) { .sf-nav-actions { padding: 0; } }

/* Typographie commune */
.sf-kicker { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sf-accent); margin-bottom: .9rem; }
.sf-h1 { font-size: clamp(2.3rem, 6vw, 3.9rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.04; margin-bottom: 1.3rem; }
.sf-h1 em { font-style: normal; color: var(--sf-accent); }
.sf-h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 1rem; }
.sf-lead { font-size: clamp(1.05rem, 2vw, 1.2rem); line-height: 1.6; color: var(--sf-soft); max-width: 34rem; margin-bottom: 1.6rem; }
.sf-text { color: var(--sf-soft); line-height: 1.65; max-width: 36rem; }
.sf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; }
.sf-section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.sf-alt { background: var(--sf-bg-2); border-block: 1px solid var(--sf-line); }
.sf-head { max-width: 40rem; margin-bottom: 2.75rem; }

/* Haut de page */
.sf-hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(3.5rem, 8vw, 5.5rem); }
.sf-types { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.sf-types li { font-size: .85rem; font-weight: 500; color: var(--sf-soft); border: 1px solid var(--sf-line); border-radius: .4rem; padding: .25rem .6rem; background: var(--sf-card); }

.sf-shelf { margin: 0; }
.sf-covers { position: relative; height: clamp(17rem, 46vw, 24rem); max-width: 34rem; margin: 0 auto; }
.sf-covers::after { content: ""; position: absolute; left: 4%; right: 4%; bottom: -.9rem; height: .55rem; border-radius: .3rem; background: var(--sf-line); }
.sf-cover {
  position: absolute; bottom: 0; width: 35%; aspect-ratio: 3 / 4.3;
  display: flex; flex-direction: column; padding: clamp(.8rem, 2.4vw, 1.25rem);
  border-radius: .35rem .7rem .7rem .35rem; color: #fff;
  box-shadow: inset 6px 0 0 rgba(0, 0, 0, .14), 0 22px 40px -18px rgba(17, 24, 39, .45);
}
.sf-cover.c1 { left: 0; background: #0f766e; transform: rotate(-5deg); transform-origin: bottom right; }
.sf-cover.c2 { left: 32.5%; z-index: 2; background: #1e1b4b; transform: translateY(-1.2rem); }
.sf-cover.c3 { right: 0; background: #b45309; transform: rotate(4deg); transform-origin: bottom left; }
.sf-cover-type { font-size: clamp(.56rem, 1.4vw, .7rem); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.sf-cover-title { font-size: clamp(1rem, 2.9vw, 1.45rem); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; margin-top: .55rem; }
.sf-cover-meta { font-size: clamp(.62rem, 1.5vw, .78rem); opacity: .75; margin-top: auto; }
.sf-price { align-self: flex-start; margin-top: .55rem; background: #fff; color: #111827; font-weight: 700; font-size: clamp(.68rem, 1.7vw, .85rem); border-radius: .3rem; padding: .2rem .45rem; font-variant-numeric: tabular-nums; }
.sf-shelf figcaption { text-align: center; font-size: .8rem; color: var(--sf-faint); margin-top: 2rem; }

/* Côté vendeur */
.sf-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 2.25rem; }
@media (min-width: 768px) { .sf-steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.sf-steps li { border-top: 1px solid var(--sf-ink); padding-top: 1.1rem; }
.sf-step-n { display: block; font-size: .85rem; font-weight: 600; color: var(--sf-accent); font-variant-numeric: tabular-nums; margin-bottom: 1.4rem; }
.sf-steps h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: .55rem; }
.sf-steps p { color: var(--sf-soft); line-height: 1.6; margin: 0; }
.sf-next { margin: 2.75rem 0 0; }

/* Parcours acheteur : sombre dans les deux thèmes */
.sf-buyers { background: #0e1726; color: #e2e8f0; padding: clamp(4rem, 9vw, 6.5rem) 0; }
.sf-buyers .sf-kicker { color: #8ab4f8; }
.sf-buyers .sf-h2 { color: #fff; }
.sf-buyers-lead { color: #94a3b8; line-height: 1.6; margin-bottom: 2rem; max-width: 30rem; }
.sf-buyer-steps { list-style: none; counter-reset: b; padding: 0; margin: 0 0 2.25rem; display: grid; gap: 1.4rem; }
.sf-buyer-steps li { counter-increment: b; display: grid; grid-template-columns: 2rem 1fr; column-gap: .9rem; }
.sf-buyer-steps li::before { content: counter(b); grid-row: span 2; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; border: 1px solid #334155; color: #8ab4f8; font-weight: 600; font-size: .9rem; }
.sf-buyer-steps strong { color: #fff; font-weight: 600; }
.sf-buyer-steps span { color: #94a3b8; font-size: .95rem; line-height: 1.5; }
.sf-buyers .btn-light { --bs-btn-bg: #fff; --bs-btn-color: #0e1726; --bs-btn-border-color: #fff; --bs-btn-hover-bg: #e2e8f0; --bs-btn-hover-border-color: #e2e8f0; --bs-btn-hover-color: #0e1726; }

.sf-tg { margin: 0; max-width: 26rem; margin-inline: auto; border-radius: 1.1rem; overflow: hidden; background: #0e1621; border: 1px solid #1f2d3d; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); font-size: .9rem; }
.sf-tg-head { display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; background: #17212b; border-bottom: 1px solid #0b1219; }
.sf-tg-head strong { display: block; color: #fff; font-weight: 600; line-height: 1.2; }
.sf-tg-head span { font-size: .78rem; color: #6c7883; }
.sf-tg-avatar { width: 2.3rem; height: 2.3rem; border-radius: 50%; display: grid; place-items: center; background: #4f46e5; color: #fff; }
.sf-tg-chat { display: grid; gap: .4rem; padding: 1rem .9rem 1.1rem; }
.sf-bubble { max-width: 85%; padding: .5rem .75rem; border-radius: .9rem; line-height: 1.4; color: #e9eef3; }
.sf-bubble.in { background: #22303f; justify-self: start; border-bottom-left-radius: .3rem; }
.sf-bubble.out { background: #2b5278; justify-self: end; border-bottom-right-radius: .3rem; }
.sf-doc-card { display: flex; gap: .75rem; align-items: stretch; }
.sf-doc-thumb { flex: none; width: 2.9rem; border-radius: .25rem .45rem .45rem .25rem; background: #0f766e; box-shadow: inset 3px 0 0 rgba(0, 0, 0, .2); min-height: 3.8rem; }
.sf-doc-card strong, .sf-file strong { display: block; color: #fff; font-weight: 600; }
.sf-doc-card span, .sf-file span { display: block; font-size: .8rem; color: #8b9bab; }
.sf-doc-card .sf-doc-price { color: #8ab4f8; font-weight: 600; font-size: .88rem; margin-top: .25rem; }
.sf-inline { display: flex; gap: .3rem; max-width: 85%; margin-bottom: .35rem; }
.sf-inline span { flex: 1; text-align: center; padding: .45rem .5rem; border-radius: .55rem; background: rgba(255, 255, 255, .08); color: #fff; font-size: .82rem; font-weight: 500; }
.sf-file { display: flex; align-items: center; gap: .65rem; }
.sf-file i { font-size: 1.7rem; color: #f87171; line-height: 1; }
.sf-tg figcaption { font-size: .75rem; color: #6c7883; text-align: center; padding: .55rem; border-top: 1px solid #17212b; }

/* Tarifs : relevé */
.sf-notes { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .6rem; color: var(--sf-soft); }
.sf-notes li { position: relative; padding-left: 1.1rem; line-height: 1.55; }
.sf-notes li::before { content: ""; position: absolute; left: 0; top: .62em; width: .4rem; height: 1px; background: var(--sf-ink); }
.sf-receipt { background: var(--sf-card); border: 1px solid var(--sf-line); border-radius: .9rem; padding: 1.5rem 1.6rem 1.25rem; font-variant-numeric: tabular-nums; box-shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 20px 40px -24px rgba(17, 24, 39, .25); }
[data-bs-theme=dark] .sf-receipt { box-shadow: none; }
.sf-receipt > div { display: flex; justify-content: space-between; gap: 1rem; }
.sf-receipt-head { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sf-faint); padding-bottom: .9rem; border-bottom: 1px solid var(--sf-line); }
.sf-receipt-row { padding: .85rem 0; border-bottom: 1px dashed var(--sf-line); color: var(--sf-soft); }
.sf-receipt-row span:last-child { color: var(--sf-ink); font-weight: 500; white-space: nowrap; }
.sf-receipt-row.total { border-bottom: 1px solid var(--sf-ink); font-size: 1.2rem; color: var(--sf-ink); font-weight: 700; }
.sf-receipt-row.total span:last-child { font-weight: 700; }
.sf-receipt-foot { padding-top: .7rem; font-size: .85rem; color: var(--sf-faint); }
.sf-receipt-foot span:last-child { color: var(--sf-soft); text-align: right; }

/* Ce que vous gardez */
.sf-keep { display: grid; gap: 1.75rem 2.5rem; margin: 0; }
@media (min-width: 768px) { .sf-keep { grid-template-columns: 1fr 1fr; } }
.sf-keep dt { font-weight: 700; font-size: 1.05rem; margin-bottom: .35rem; }
.sf-keep dd { color: var(--sf-soft); line-height: 1.6; margin: 0; }

/* Questions */
.sf-faq-wrap { max-width: 50rem; }
.sf-faq { border-top: 1px solid var(--sf-line); }
.sf-faq details { border-bottom: 1px solid var(--sf-line); }
.sf-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.2rem 0; font-weight: 600; font-size: 1.08rem; }
.sf-faq summary::-webkit-details-marker { display: none; }
.sf-faq summary::after { content: "+"; flex: none; font-size: 1.4rem; font-weight: 400; color: var(--sf-faint); line-height: 1; }
.sf-faq details[open] summary::after { content: "−"; }
.sf-faq summary:focus-visible { outline: 2px solid var(--sf-accent); outline-offset: 2px; }
.sf-faq details p { color: var(--sf-soft); line-height: 1.65; margin: -.2rem 0 1.3rem; max-width: 42rem; }

/* Dernier appel */
.sf-final { padding: 0 0 clamp(4rem, 9vw, 6rem); }
.sf-final-box { display: flex; flex-direction: column; gap: 1.75rem; justify-content: space-between; padding: clamp(1.75rem, 5vw, 3rem); border: 1px solid var(--sf-line); border-radius: 1.1rem; background: var(--sf-bg-2); }
.sf-final-box .sf-h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin-bottom: .5rem; }
@media (min-width: 992px) { .sf-final-box { flex-direction: row; align-items: center; } .sf-final-box .sf-actions { flex: none; } }

/* Pied de page */
.sf-footer { border-top: 1px solid var(--sf-line); padding: 2.5rem 0 2rem; font-size: .92rem; background: var(--sf-bg); }
.sf-footer-row { display: flex; flex-direction: column; gap: 1.5rem; justify-content: space-between; }
@media (min-width: 768px) { .sf-footer-row { flex-direction: row; align-items: flex-start; } }
.sf-footer-note { color: var(--sf-faint); margin: .7rem 0 0; max-width: 24rem; }
.sf-footer-links { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
.sf-footer-links a { color: var(--sf-soft); text-decoration: none; }
.sf-footer-links a:hover { color: var(--sf-ink); text-decoration: underline; }
.sf-footer-copy { color: var(--sf-faint); font-size: .82rem; margin: 2rem 0 0; }

/* Conditions */
.sf-legal { max-width: 52rem; background: var(--sf-card); border: 1px solid var(--sf-line); border-radius: 1rem; padding: clamp(1.5rem, 5vw, 3rem); }
.sf-legal h1 { letter-spacing: -.02em; }
.sf-legal h2 { font-size: 1.2rem; font-weight: 700; margin-top: 2rem; }
.sf-legal .sf-eyebrow { color: var(--sf-accent); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.sf-legal .sf-note { background: #eef2ff; border-left: 4px solid #4f46e5; border-radius: .5rem; padding: 1rem 1.25rem; }
[data-bs-theme=dark] .sf-legal .sf-note { background: rgba(99, 102, 241, .12); }
.sf main:has(.sf-legal) { background: var(--sf-bg-2); }

/* Pages d'erreur (templates/404.html, 500.html...) */
.sf-error { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: radial-gradient(circle at 15% 15%, rgba(99,102,241,.18) 0, transparent 45%), radial-gradient(circle at 85% 85%, rgba(168,85,247,.16) 0, transparent 40%), var(--bk-bg); }
.sf-error-card { width: 100%; max-width: 30rem; text-align: center; background: var(--bs-body-bg, #fff); border: 1px solid var(--bk-border); border-radius: 1.25rem; padding: 2.5rem 1.75rem; box-shadow: 0 20px 50px rgba(30,27,75,.10); }
.sf-error-code { font-size: 4rem; font-weight: 800; line-height: 1; letter-spacing: -.04em; background: linear-gradient(135deg, #6366f1, #a855f7); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: .75rem; }
[data-bs-theme=dark] .sf-error-card { background: var(--bk-surface); box-shadow: 0 20px 50px rgba(0, 0, 0, .4); }
@media (max-width: 575.98px) { .sf-legal { width: auto; margin-inline: .75rem; } }
