/* Démo « board » : tableau de sprint d'une équipe dédiée (landing Équipe dédiée). Préfixe lp-board-. */
.lp-board-app{position:relative;z-index:2;container:lpboard/inline-size;background:#fff;border:1px solid #e4def2;border-radius:18px;box-shadow:0 30px 70px -20px rgba(42,20,110,.28),0 10px 24px -12px rgba(42,20,110,.18);overflow:hidden;font-family:Inter,system-ui,sans-serif;color:#20201f;min-width:0}
.lp-board-app *{box-sizing:border-box}
.lp-board-app svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* En-tête : projet, sprint, livraison */
.lp-board-top{display:grid;grid-template-columns:auto minmax(0,1fr) minmax(0,190px);align-items:center;gap:10px 12px;padding:12px 14px;border-bottom:1px solid #f0edf6;background:#fcfbfe}
.lp-board-logo{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:linear-gradient(135deg,#7b4bff,#6024f5);color:#fff;font:700 14px/1 'Inter Tight',Inter,sans-serif}
.lp-board-id{min-width:0}
.lp-board-id strong{display:block;font:600 14px/1.25 'Inter Tight',Inter,sans-serif;color:#20201f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lp-board-id strong span{font-weight:500;color:#62616b}
.lp-board-id small{display:block;margin-top:2px;font-size:11.5px;color:#8a8496;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lp-board-progress{min-width:0}
.lp-board-progress-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px;font-size:11px;color:#62616b;white-space:nowrap}
.lp-board-progress-head span{overflow:hidden;text-overflow:ellipsis}
.lp-board-progress-head b{font-weight:600;color:#20201f;font-variant-numeric:tabular-nums}
.lp-board-bar{position:relative;height:7px;margin-top:6px;border-radius:99px;background:#efeaf9}
.lp-board-bar i{position:absolute;left:0;top:0;bottom:0;border-radius:99px;background:linear-gradient(90deg,#6024f5,#8b5cf6);transition:width .9s cubic-bezier(.3,.7,.2,1)}
.lp-board-bar em{position:absolute;top:-3px;bottom:-3px;width:2px;margin-left:-1px;border-radius:2px;background:#c9bcef}

/* Colonnes du sprint */
.lp-board-cols{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:12px 10px 4px}
.lp-board-col{min-width:0;padding:7px 5px 5px;border-radius:12px;background:#f8f7fb;border:1px solid #f0ecf7}
.lp-board-col-head{display:flex;align-items:center;justify-content:space-between;gap:4px;padding:0 2px 7px;font-size:10.5px;letter-spacing:-.005em;font-weight:600;color:#62616b;white-space:nowrap}
.lp-board-col-head span{overflow:hidden;text-overflow:ellipsis}
.lp-board-col-head b{flex:none;min-width:17px;padding:1px 5px;border-radius:99px;background:#fff;border:1px solid #ebe7f2;font-size:10.5px;font-weight:600;color:#62616b;text-align:center;font-variant-numeric:tabular-nums}
.lp-board-col[data-col="3"] .lp-board-col-head{color:#15803d}
.lp-board-col[data-col="3"] .lp-board-col-head b{background:#e8f7ee;border-color:#cdebd8;color:#15803d}
.lp-board-list{display:flex;flex-direction:column;gap:6px;min-height:calc(var(--slots,3) * 82px + (var(--slots,3) - 1) * 6px)}

.lp-board-card{position:relative;height:82px;padding:7px 8px 7px;border-radius:10px;background:#fff;border:1px solid #ebe7f2;box-shadow:0 2px 6px -3px rgba(42,20,110,.14);display:flex;flex-direction:column;min-width:0;will-change:transform}
.lp-board-card::before{content:"";position:absolute;left:-1px;top:9px;bottom:9px;width:3px;border-radius:0 3px 3px 0;background:var(--tc,#6024f5)}
.lp-board-card-top{display:flex;align-items:center;gap:5px;min-width:0}
.lp-board-card-id{font-size:10.5px;font-weight:600;color:#8a8496;letter-spacing:.01em;white-space:nowrap}
.lp-board-ok{display:grid;place-items:center;width:15px;height:15px;padding:3px;border-radius:50%;background:#16a34a;color:#fff;opacity:0;transform:scale(.6);transition:opacity .3s,transform .3s}
.lp-board-ok svg{stroke-width:2.6}
.lp-board-col[data-col="3"] .lp-board-ok,.lp-board-card.is-approved .lp-board-ok{opacity:1;transform:none}
.lp-board-card-title{margin:5px 0 0;font-size:11.5px;line-height:1.3;font-weight:500;color:#20201f;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:30px}
.lp-board-card-foot{display:flex;align-items:center;justify-content:space-between;gap:4px;margin-top:auto;min-width:0}
.lp-board-tag{padding:1px 6px;border-radius:5px;background:var(--tb,#f0ebff);color:var(--tc,#6024f5);font-size:10px;font-weight:600;white-space:nowrap}
.lp-board-pts{font-size:10px;color:#8a8496;white-space:nowrap;font-variant-numeric:tabular-nums}
.lp-board-tag-web{--tc:#6024f5;--tb:#f0ebff}
.lp-board-tag-api{--tc:#d61a5f;--tb:#fde7ef}
.lp-board-tag-mobile{--tc:#b45309;--tb:#fdf1e1}
.lp-board-card.is-review{box-shadow:0 0 0 2px rgba(96,36,245,.16),0 2px 6px -3px rgba(42,20,110,.14)}
.lp-board-col[data-col="3"] .lp-board-card.is-review{box-shadow:0 2px 6px -3px rgba(42,20,110,.14)}
.lp-board-card.is-moving{z-index:5;box-shadow:0 14px 28px -10px rgba(42,20,110,.35);transition:transform .7s cubic-bezier(.3,.7,.2,1),box-shadow .7s}

/* Avatars à initiales */
.lp-board-av{position:relative;flex:none;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--c,#6024f5);color:#fff;font-size:10px;font-weight:700;letter-spacing:.02em}
.lp-board-av i{position:absolute;right:-1px;bottom:-1px;width:8px;height:8px;border-radius:50%;background:#22c55e;border:2px solid #fff}
.lp-board-av-sm{width:18px;height:18px;margin-left:auto;font-size:8px}

/* Bas : revue + pipeline, équipe */
.lp-board-low{display:grid;grid-template-columns:minmax(0,1.38fr) minmax(0,1fr);gap:6px;padding:8px 10px 10px}
.lp-board-pr,.lp-board-team{min-width:0;border:1px solid #ebe7f2;border-radius:12px;padding:10px 11px;background:#fff}
.lp-board-pr-head{display:flex;align-items:flex-start;gap:8px}
.lp-board-pr-name{flex:1;min-width:0}
.lp-board-pr-name small{display:block;font-size:10.5px;color:#8a8496;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lp-board-pr-name strong{display:block;margin-top:1px;font-size:12px;font-weight:600;line-height:1.3;color:#20201f}
.lp-board-pill-slot{display:grid;flex:none}
.lp-board-pill{grid-area:1/1;display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:3px 8px;border-radius:99px;font-size:10.5px;font-weight:600;white-space:nowrap;transition:opacity .3s,transform .3s}
.lp-board-pill svg{width:11px;height:11px;stroke-width:2.6}
.lp-board-pill-wait{background:#fff6e5;color:#a16207;opacity:0}
.lp-board-pill-ok{background:#e8f7ee;color:#15803d}
.lp-board-app.is-pending .lp-board-pill-wait{opacity:1}
.lp-board-app.is-pending .lp-board-pill-ok{opacity:0;transform:scale(.85)}

.lp-board-comment{display:flex;gap:8px;margin-top:9px}
.lp-board-bubble{flex:1;min-width:0;padding:7px 9px 8px;border-radius:4px 11px 11px 11px;background:#f4f1fb}
.lp-board-bubble-who{font-size:10.5px;color:#62616b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lp-board-bubble-who b{color:#20201f;font-weight:600}
.lp-board-bubble-body{display:grid;margin-top:3px}
.lp-board-bubble-body>*{grid-area:1/1}
.lp-board-bubble-body p{margin:0;font-size:11.5px;line-height:1.45;color:#2c2a33;transition:opacity .35s,transform .35s}
.lp-board-typing{display:inline-flex;align-self:start;gap:4px;padding:5px 0;opacity:0;transition:opacity .2s}
.lp-board-typing i{width:5px;height:5px;border-radius:50%;background:#b9aee0;animation:lpBoardDot 1s infinite}
.lp-board-typing i:nth-child(2){animation-delay:.15s}.lp-board-typing i:nth-child(3){animation-delay:.3s}
@keyframes lpBoardDot{0%,60%,100%{opacity:.35;transform:none}30%{opacity:1;transform:translateY(-2px)}}
.lp-board-app.is-typing .lp-board-typing{opacity:1}
.lp-board-app.no-comment [data-board-comment]{opacity:0;transform:translateY(4px)}

.lp-board-pipe{list-style:none;margin:9px 0 0;padding:8px 0 0;border-top:1px dashed #ebe7f2;display:grid;gap:6px}
.lp-board-step{display:flex;align-items:center;gap:7px;min-width:0}
.lp-board-step-ic{position:relative;flex:none;display:grid;place-items:center;width:17px;height:17px;padding:3.5px;border-radius:50%;background:#16a34a;color:#fff;transition:background .3s}
.lp-board-step-ic svg{stroke-width:2.8;transition:opacity .2s}
.lp-board-step-ic::after{content:"";position:absolute;inset:0;border-radius:50%;border:2px solid #d9cff7;border-top-color:#6024f5;opacity:0}
.lp-board-step-txt{flex:1;min-width:0;display:flex;align-items:baseline;justify-content:space-between;gap:8px;font-size:11.5px;white-space:nowrap}
.lp-board-step-txt b{font-weight:600;color:#20201f;overflow:hidden;text-overflow:ellipsis}
.lp-board-step-txt small{font-size:11px;color:#15803d;transition:opacity .3s;font-variant-numeric:tabular-nums}
.lp-board-step.is-wait .lp-board-step-ic,.lp-board-step.is-run .lp-board-step-ic{background:#f1eef8}
.lp-board-step.is-wait svg,.lp-board-step.is-run svg{opacity:0}
.lp-board-step.is-wait b{color:#9b96a6}
.lp-board-step.is-wait small,.lp-board-step.is-run small{opacity:0}
.lp-board-step.is-run .lp-board-step-ic::after{opacity:1;animation:lpBoardSpin .8s linear infinite}
@keyframes lpBoardSpin{to{transform:rotate(360deg)}}

.lp-board-team-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;font-size:11px;font-weight:600;color:#62616b;white-space:nowrap}
.lp-board-team-head small{font-size:10.5px;font-weight:500;color:#8a8496;overflow:hidden;text-overflow:ellipsis}
.lp-board-team ul{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:7px}
.lp-board-team li{display:flex;align-items:center;gap:8px;min-width:0;padding:2px;border-radius:9px;transition:background .3s}
.lp-board-team li.is-active{background:#f4f1fb}
.lp-board-who{min-width:0;display:flex;flex-direction:column;line-height:1.25}
.lp-board-who b{font-size:11.5px;font-weight:600;color:#20201f}
.lp-board-who span,.lp-board-who small{font-size:10.5px;color:#62616b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lp-board-who small{color:#8a8496}

/* Phase de remise à zéro entre deux boucles */
.lp-board-cols,.lp-board-low,.lp-board-top{transition:opacity .4s}
.lp-board-app.is-reset .lp-board-cols,.lp-board-app.is-reset .lp-board-low{opacity:0}

/* Version compacte (mobile, colonne étroite) : 4 colonnes sur une rangée, cartes réduites à la clé,
   équipe résumée en avatars et horloges. Masquée sur grand écran. */
.lp-board-col-short,.lp-board-crew{display:none}
@container lpboard (max-width:510px){
  .lp-board-top{grid-template-columns:auto minmax(0,1fr);padding:10px 12px;gap:8px 10px}
  .lp-board-progress{grid-column:1/-1}
  .lp-board-cols{gap:4px;padding:10px 8px 2px}
  .lp-board-col{padding:6px 4px 4px;border-radius:10px}
  .lp-board-col-head{justify-content:center;padding:0 0 6px;font-size:10px}
  .lp-board-col-head b,.lp-board-col-full{display:none}
  .lp-board-col-short{display:inline}
  .lp-board-list{gap:4px;min-height:calc(var(--slots,3) * 24px + (var(--slots,3) - 1) * 4px)}
  .lp-board-card{height:24px;padding:0 4px 0 7px;justify-content:center;border-radius:7px}
  .lp-board-card::before{top:5px;bottom:5px}
  .lp-board-card-title,.lp-board-card-foot,.lp-board-ok,.lp-board-av-sm{display:none}
  .lp-board-card-top{justify-content:center}
  .lp-board-card-id{font-size:10px;color:#3d3b45}
  .lp-board-col[data-col="3"] .lp-board-card{background:#f3fbf6;border-color:#d5eedd}
  .lp-board-col[data-col="3"] .lp-board-card-id{color:#15803d}
  .lp-board-card.is-approved{background:#f3fbf6}
  .lp-board-low{grid-template-columns:minmax(0,1fr);gap:6px;padding:6px 8px 8px}
  .lp-board-pr{padding:9px 10px}
  .lp-board-comment{margin-top:7px}
  .lp-board-comment>.lp-board-av{width:22px;height:22px;font-size:9px}
  .lp-board-pipe{margin-top:7px;padding-top:7px;gap:4px}
  .lp-board-team{display:none}
  .lp-board-crew{display:block;min-width:0;border:1px solid #ebe7f2;border-radius:12px;padding:9px 10px;background:#fff}
  .lp-board-crew-head{display:flex;align-items:center;gap:9px;min-width:0}
  .lp-board-crew-avs{display:flex;flex:none;gap:3px}
  .lp-board-crew-avs .lp-board-av{width:24px;height:24px;font-size:9px;transition:transform .3s}
  .lp-board-crew-avs .lp-board-av i{width:7px;height:7px;border-width:1.5px}
  .lp-board-crew-avs .lp-board-av.is-active{transform:translateY(-3px);z-index:1}
  .lp-board-crew-txt{min-width:0;display:flex;flex-direction:column;line-height:1.3}
  .lp-board-crew-txt b{font-size:11.5px;font-weight:600;color:#20201f}
  .lp-board-crew-txt span{font-size:10.5px;color:#62616b}
  .lp-board-clocks{margin-top:8px;padding-top:7px;border-top:1px dashed #ebe7f2;font-size:10.5px;line-height:1.4;color:#62616b;font-variant-numeric:tabular-nums}
  .lp-board-clocks span{white-space:nowrap}
  .lp-board-clocks i{font-style:normal;color:#b9b4c4}
}
@media (prefers-reduced-motion:reduce){.lp-board-app *{animation:none!important;transition:none!important}}
