.fsack { --fsack-ink: #2c3e50; --fsack-soft: #f4f6f8; --fsack-line: #d5dbe1; color: var(--fsack-ink); }
.fsack-lead { font-size: 15px; margin: 0 0 20px; }
.fsack-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.fsack-step { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.fsack-step legend, .fsack-step > label { display: block; width: auto; font-size: 16px; font-weight: 600; margin: 0 0 8px; border: 0; }
.fsack-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.fsack-card { display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 8px; min-height: 44px; border: 1px solid #c5cdd5; border-radius: 4px; background: #fff; color: var(--fsack-ink); font: inherit; font-size: 14px; line-height: 1.25; text-align: center; cursor: pointer; }
.fsack-card:hover { border-color: var(--fsack-ink); }
.fsack-card[aria-pressed="true"] { border: 2px solid var(--fsack-ink); padding: 7px; box-shadow: inset 0 0 0 1px var(--fsack-ink); font-weight: 600; }
.fsack-card img, .fsack-noimg { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; }
.fsack-noimg { background: var(--fsack-soft); }
.fsack-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.fsack-pill { min-height: 44px; padding: 8px 14px; border: 1px solid #c5cdd5; border-radius: 4px; background: #fff; color: var(--fsack-ink); font: inherit; cursor: pointer; }
.fsack-pill[aria-pressed="true"] { background: var(--fsack-ink); border-color: var(--fsack-ink); color: #fff; }
.fsack-empty { margin: 0; font-size: 14px; color: #5d6d7e; }
.fsack-visual { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; }
.fsack-vimg { flex: 0 0 64px; height: 64px; border: 1px solid var(--fsack-line); border-radius: 3px; background: #fff; overflow: hidden; }
.fsack-vimg img { width: 100%; height: 100%; object-fit: contain; }
.fsack-vline { flex: 1 1 auto; position: relative; height: 2px; background: var(--fsack-ink); }
.fsack-vlen { position: absolute; left: 50%; top: -22px; transform: translateX(-50%); font-size: 13px; font-weight: 700; white-space: nowrap; }
.fsack-num { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-right: 6px; border-radius: 50%; background: var(--fsack-ink); color: #fff; font-size: 12px; }
.fsack-sens { margin-top: 8px; }
.fsack-qty { max-width: 120px; }
.fsack-help { margin: 6px 0 0; font-size: 13px; color: #5d6d7e; }
.fsack-summary { position: sticky; top: var(--fsack-top, 16px); z-index: 2; border: 1px solid var(--fsack-line); border-radius: 4px; padding: 16px; background: #fff; }
.fsack-summary-title { margin: 0 0 8px; font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: .04em; color: #5d6d7e; }
.fsack-name { font-weight: 600; margin: 0 0 4px; }
.fsack-ref { font-size: 12px; color: #5d6d7e; margin: 0 0 10px; }
.fsack-range { font-size: 13px; background: var(--fsack-soft); padding: 8px 10px; border-radius: 3px; }
.fsack-price { font-size: 26px; font-weight: 700; margin: 12px 0 2px; }
.fsack-note { font-size: 12px; color: #5d6d7e; margin: 0 0 12px; }
.fsack-add { width: 100%; }
.fsack-added { margin: 12px 0 0; padding: 12px; background: #eef7f0; border: 1px solid #b7dcc0; border-radius: 4px; }
.fsack-added-msg { margin: 0 0 4px; color: #1e7e34; font-weight: 700; }
.fsack-added-q { margin: 0 0 8px; font-size: 13px; }
.fsack-again { display: block; width: 100%; margin: 6px 0 0; white-space: normal; }
.fsack-quote { font-size: 13px; margin: 12px 0 0; }
.fsack-errors, .fsack-warnings { list-style: none; padding: 8px 10px; margin: 10px 0; font-size: 13px; border-radius: 3px; }
.fsack-errors { background: #fdf2f2; border-left: 3px solid #c0392b; }
.fsack-warnings { background: var(--fsack-soft); border-left: 3px solid var(--fsack-ink); }
.fsack-domaine { margin: 28px 0 0; padding: 12px 16px; background: var(--fsack-soft); border: 1px solid var(--fsack-ink); border-radius: 4px; font-size: 13px; }
.fsack-domaine p { margin: 0; }
.fsack-domaine-title { font-weight: 700; margin-bottom: 4px !important; }
@media (max-width: 991px) {
  .fsack-grid { grid-template-columns: 1fr; }
  .fsack-summary { position: static; }
  .fsack-summary.is-js-follow { transform: none !important; }
}
.fsack-summary.is-js-follow { position: relative; top: auto; will-change: transform; }

/* Barre fixe en bas d'écran sur téléphone : prix + Ajouter au panier */
.fsack-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--fsack-line); box-shadow: 0 -4px 14px rgba(44, 62, 80, .12); }
.fsack-bar[hidden] { display: none; }
.fsack-bar-price { font-size: 20px; font-weight: 700; color: var(--fsack-ink); white-space: nowrap; }
.fsack-bar-add { min-height: 44px; flex: 0 1 auto; }
@media (min-width: 992px) { .fsack-bar { display: none !important; } }

/* Parcours ludique : étapes, vignettes vivantes, kit qui se monte */
.fsack-progress { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0 0 22px; padding: 12px 16px; background: var(--fsack-soft); border-radius: 4px; font-size: 14px; }
.fsack-progress li { display: flex; align-items: center; gap: 8px; color: #5d6d7e; }
.fsack-dot { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #9aa6b2; font-size: 12px; font-weight: 700; transition: background .25s, border-color .25s, color .25s; }
.fsack-progress li.is-current { color: var(--fsack-ink); font-weight: 600; }
.fsack-progress li.is-current .fsack-dot { border-color: var(--fsack-ink); }
.fsack-progress li.is-done { color: var(--fsack-ink); }
.fsack-progress li.is-done .fsack-dot { background: var(--fsack-ink); border-color: var(--fsack-ink); color: #fff; font-size: 0; }
.fsack-progress li.is-done .fsack-dot::after { content: "✓"; font-size: 13px; }
.fsack-card { transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.fsack-card:hover { transform: translateY(-2px); }
.fsack-card img { transition: transform .2s ease; }
.fsack-card:hover img { transform: scale(1.04); }
.fsack-card-label { font-weight: 600; }
.fsack-card-hint { font-size: 12px; font-weight: 400; color: #5d6d7e; line-height: 1.3; }
.fsack-vimg img { animation: fsack-pop .3s ease; }
@keyframes fsack-pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: scale(1); } }
.fsack-price { transition: color .2s; }
@media (prefers-reduced-motion: reduce) {
  .fsack-card, .fsack-card img, .fsack-dot, .fsack-vimg img { transition: none; animation: none; }
  .fsack-card:hover, .fsack-card:hover img { transform: none; }
}

.fsack-side { display: flex; flex-direction: column; gap: 12px; }
.fsack-side-title { margin: 0; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #5d6d7e; }
.fsack-schema { display: block; width: 100%; max-width: 480px; height: auto; margin: 4px 0 10px; }
.fsack-entraxe { max-width: 160px; font-size: 18px; font-weight: 700; }

/* Sur la fiche produit « Kit câble sur mesure » */
.fsack-host { clear: both; margin: 32px 0; padding-top: 8px; scroll-margin-top: 90px; }
.fsack-host-title { font-size: 24px; font-weight: 700; margin: 0 0 16px; color: #2c3e50; }

/* 1.4.0 — étapes en volets */
.fsack-form { display: flex; flex-direction: column; gap: 10px; }
.fsack-acc { border: 1px solid var(--fsack-line); border-radius: 6px; background: #fff; transition: box-shadow .2s ease, opacity .2s ease, border-color .2s ease; }
.fsack-acc.is-open { border-color: var(--fsack-ink); box-shadow: 0 4px 14px rgba(44, 62, 80, .10); }
.fsack-acc.is-locked { opacity: .5; }
.fsack-acc-head { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; margin: 0; padding: 12px 16px; border: 0; background: none; color: var(--fsack-ink); font: inherit; text-align: left; cursor: pointer; scroll-margin-top: 100px; }
.fsack-acc.is-locked .fsack-acc-head { cursor: default; }
.fsack-acc-head:focus-visible { outline: 2px solid var(--fsack-ink); outline-offset: -2px; }
.fsack-acc-title { flex: 0 0 auto; font-size: 17px; font-weight: 700; }
.fsack-acc-sum { flex: 1 1 auto; min-width: 0; font-size: 14px; color: #34495e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fsack-acc-edit { flex: 0 0 auto; font-size: 14px; font-weight: 600; text-decoration: underline; }
.fsack-acc-edit[hidden] { display: none !important; }
.fsack-acc-head .fsack-acc-sum:empty { display: none; }
.fsack-acc .fsack-dot { flex: 0 0 auto; color: #5d6d7e; }
.fsack-acc.is-open .fsack-dot { border-color: var(--fsack-ink); color: var(--fsack-ink); }
.fsack-acc.is-done .fsack-dot { background: var(--fsack-ink); border-color: var(--fsack-ink); color: #fff; }
.fsack-acc.is-done .fsack-dot::after { content: "✓"; font-size: 13px; }
.fsack-acc-body { padding: 0 16px 18px; animation: fsack-open .25s ease; }
.fsack-acc-body[hidden] { display: none; }
.fsack-acc-body > .fsack-step:last-of-type { margin-bottom: 14px; }
.fsack-ent-ok { min-height: 44px; }
@keyframes fsack-open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (max-width: 575px) {
  .fsack-acc-head { flex-wrap: wrap; gap: 6px 10px; }
  .fsack-acc-sum { flex-basis: 100%; order: 3; white-space: normal; padding-left: 34px; }
}
@media (prefers-reduced-motion: reduce) { .fsack-acc-body { animation: none; } }

/* 1.6.0 — mesure entre poteaux */
.fsack-label { display: block; font-size: 16px; font-weight: 600; margin: 0 0 8px; }
.fsack-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.fsack-poteau { max-width: 110px; }
.fsack-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.fsack-pill-sm { min-height: 36px; padding: 5px 10px; font-size: 14px; }
.fsack-schema { display: block; width: 100%; max-width: 480px; height: auto; margin: 12px 0; }
.fsack-cotes { margin: 8px 0 0; padding: 8px 10px; background: var(--fsack-soft); border-radius: 3px; font-size: 14px; }
.fsack-acc-body label { display: block; font-weight: 600; margin: 10px 0 6px; }

.fsack-acc-body label.fsack-inline { display: inline-block; margin: 0 2px 0 0; font-size: 16px; font-weight: 700; }
.fsack-row .fsack-poteau { margin-right: 14px; }

/* Comparatif « Le faire vous-même ? » */
.fsack-diy { margin: 24px 0 0; padding: 14px 18px; border: 1px solid #d5dbe1; border-radius: 4px; background: #fafbfc; font-size: 14px; }
.fsack-diy-title { margin: 0 0 8px; font-size: 16px; font-weight: 700; color: var(--fsack-ink); }
.fsack-diy p { margin: 0 0 6px; }
.fsack-diy-key { font-weight: 700; }
.fsack-diy-note { font-size: 12px; color: #5b6b7b; }
.fsack-diy { scroll-margin-top: 110px; }
.fsack-diy-in-desc { margin: 20px 0; }
