/* Démo du mini-jeu de l'accompagnement (section #coaching) */
.ld { position: relative; max-width: 980px; margin: 0 auto 48px; display: grid; grid-template-columns: 1fr 1.25fr; gap: 36px; align-items: center; }
.ld-intro .sim-kicker { display: inline-block; margin-bottom: 12px; }
.ld-intro h3 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; letter-spacing: -.6px; margin: 0 0 12px; }
.ld-intro h3 span { background: linear-gradient(90deg, #38b6ff, #4ade80); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ld-intro p { color: var(--text); font-size: 16px; line-height: 1.6; margin: 0 0 18px; }
.ld-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ld-points li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: #fff; }
.ld-points li span { width: 30px; height: 30px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; font-size: 15px; background: rgba(56,182,255,.14); border: 1px solid rgba(56,182,255,.3); }

.ld-steps { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; }
.ld-steps li { display: flex; align-items: flex-start; gap: 12px; text-align: left; }
.ld-steps li > span { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #052e16; background: #4ade80; box-shadow: 0 3px 0 #15803d; }
.ld-steps b { display: block; color: #fff; font-size: 16px; margin-bottom: 2px; }
.ld-steps div { color: var(--text); font-size: 14.5px; line-height: 1.45; }
.ld-try { margin: 0 !important; font-weight: 700; color: #fff !important; }

/* la console de jeu, en verre liquide */
.ld-stage { position: relative; isolation: isolate; }
.ld-stage::before { content: ''; position: absolute; inset: -30px; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(27,100,255,.35), transparent); filter: blur(20px); }
.ld-bubbles i { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.45), rgba(255,255,255,.06) 40%, rgba(56,182,255,.1) 70%, transparent 72%); border: 1px solid rgba(255,255,255,.18); animation: ldFloat 12s ease-in-out infinite; }
.ld-bubbles i:nth-child(1) { width: 90px; height: 90px; top: -30px; right: -24px; }
.ld-bubbles i:nth-child(2) { width: 54px; height: 54px; bottom: 40px; left: -28px; animation-delay: -4s; }
.ld-bubbles i:nth-child(3) { width: 130px; height: 130px; bottom: -44px; right: 30px; animation-delay: -7s; animation-duration: 16s; }
@keyframes ldFloat { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(10px, -16px); } }

.ld-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 16px 20px 20px; border-radius: 28px; color: #fff; text-align: left;
  background: radial-gradient(120% 70% at 10% 0%, rgba(255,255,255,.14), transparent 55%), linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.03) 55%, rgba(56,182,255,.06)), rgba(8,14,32,.62);
  backdrop-filter: blur(30px) saturate(150%); -webkit-backdrop-filter: blur(30px) saturate(150%);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.38), inset 0 -1px 0 rgba(255,255,255,.06), 0 24px 60px rgba(0,0,0,.45);
  transition: border-color .25s, box-shadow .25s;
}
.ld-card.is-good { border-color: rgba(74,222,128,.6); box-shadow: inset 0 1px 0 rgba(255,255,255,.38), 0 0 0 4px rgba(34,197,94,.14), 0 24px 60px rgba(0,0,0,.45); }
.ld-card.is-bad { border-color: rgba(251,113,133,.6); box-shadow: inset 0 1px 0 rgba(255,255,255,.38), 0 0 0 4px rgba(244,63,94,.14), 0 24px 60px rgba(0,0,0,.45); }
.ld-card.is-bad .ld-answers { animation: ldShake .35s ease both; }

.ld-hud { display: flex; align-items: center; gap: 12px; }
.ld-x { width: 32px; height: 32px; border-radius: 10px; border: 0; background: none; color: rgba(255,255,255,.55); font-size: 16px; cursor: pointer; }
.ld-x:hover { color: #fff; background: rgba(255,255,255,.08); }
.ld-bar { flex: 1; height: 14px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.ld-bar i { position: relative; display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #22c55e, #4ade80); box-shadow: 0 0 14px rgba(74,222,128,.45); transition: width .45s cubic-bezier(.34,1.56,.64,1); }
.ld-bar i::after { content: ''; position: absolute; left: 7px; right: 7px; top: 3px; height: 3px; border-radius: 99px; background: rgba(255,255,255,.35); }
.ld-hearts { display: flex; align-items: center; gap: 5px; font-weight: 800; color: #fb7185; }
.ld-hearts span { font-size: 17px; }

.ld-top { display: flex; align-items: flex-end; gap: 10px; }
.ld-coach { width: 96px; flex-shrink: 0; }
.ld-coach svg { display: block; width: 96px !important; height: auto !important; }
.ld-say { position: relative; flex: 1; min-width: 0; padding: 11px 15px 13px; margin-bottom: 12px; border-radius: 18px 18px 18px 6px; background: #fff; color: #0b1229; box-shadow: 0 10px 26px rgba(0,0,0,.3); animation: ldPop .22s cubic-bezier(.34,1.56,.64,1) both; transform-origin: 0 100%; }
.ld-say::before { content: ''; position: absolute; left: -9px; bottom: 10px; border: 9px solid transparent; border-right-color: #fff; border-left: 0; }
.ld-say small { display: block; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #b7791f; margin-bottom: 3px; }
.ld-say-start { display: block; font-size: 12.5px; color: #475569; margin-bottom: 4px; }
.ld-say p { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.35; color: inherit; }
.ld-say.is-good { background: #dcfce7; } .ld-say.is-good::before { border-right-color: #dcfce7; } .ld-say.is-good p { color: #14532d; }
.ld-say.is-bad { background: #ffe4e6; } .ld-say.is-bad::before { border-right-color: #ffe4e6; } .ld-say.is-bad p { color: #881337; }
@keyframes ldPop { from { opacity: 0; transform: scale(.85); } }

.ld-answers { display: flex; flex-direction: column; gap: 9px; animation: ldSlide .22s cubic-bezier(.2,.8,.2,1) both; }
@keyframes ldSlide { from { opacity: 0; transform: translateX(24px); } }
.ld-opts { display: flex; flex-direction: column; gap: 9px; }
.ld-opt {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 15px; text-align: left; color: #fff; font: inherit; font-family: var(--font); font-size: 15px; font-weight: 600; cursor: pointer;
  background: rgba(255,255,255,.05); border: 2px solid rgba(255,255,255,.14); box-shadow: 0 4px 0 rgba(255,255,255,.1);
  transition: transform .12s, box-shadow .12s, border-color .15s, background .15s, opacity .2s;
}
.ld-opt:hover { background: rgba(255,255,255,.09); }
.ld-opt:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(255,255,255,.1); }
.ld-opt kbd { flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font: inherit; font-size: 12px; font-weight: 800; color: rgba(255,255,255,.55); border: 2px solid rgba(255,255,255,.16); }
.ld-opt.is-on { border-color: #38b6ff; background: rgba(56,182,255,.14); box-shadow: 0 4px 0 #1b64ff; }
.ld-opt.is-on kbd { color: #fff; border-color: #38b6ff; background: #38b6ff; }
.ld-tf { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ld-tf-btn { flex-direction: column; justify-content: center; gap: 8px; padding: 16px 10px; font-size: 17px; font-weight: 800; text-align: center; }
.ld-tf-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); font-size: 18px; }
.ld-tf-btn:first-child .ld-tf-ic { color: #4ade80; } .ld-tf-btn:last-child .ld-tf-ic { color: #fb7185; }
.ld-chat { display: flex; align-items: flex-end; justify-content: flex-end; gap: 8px; }
.ld-bubble { max-width: 85%; padding: 10px 14px; border-radius: 16px 16px 4px 16px; font-size: 16px; font-weight: 700; background: #fde68a; color: #3b2300; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.ld-bubble small { display: block; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #92400e; }
.ld-shop { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(150deg, #fde68a, #f5b73b); font-size: 17px; }
.ld-sentence { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.9; }
.ld-slot { display: inline-block; min-width: 100px; margin: 0 5px; padding: 0 10px; border-bottom: 3px solid rgba(255,255,255,.35); text-align: center; color: #7cd0ff; line-height: 1.5; }
.ld-slot.is-filled { border-bottom-color: #38b6ff; }
.ld-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ld-chip { padding: 9px 14px; border-radius: 13px; font: inherit; font-family: var(--font); font-size: 15px; font-weight: 700; color: #fff; cursor: pointer; background: rgba(255,255,255,.06); border: 2px solid rgba(255,255,255,.16); box-shadow: 0 4px 0 rgba(255,255,255,.1); transition: transform .12s, opacity .2s; }
.ld-chip:active { transform: translateY(3px); }
.ld-chip.is-used { opacity: .25; }

.ld-opt.is-right, .ld-chip.is-right { border-color: #22c55e !important; background: rgba(34,197,94,.16) !important; box-shadow: 0 4px 0 #15803d !important; opacity: 1 !important; }
.ld-opt.is-right kbd { color: #052e16; border-color: #22c55e; background: #22c55e; }
.ld-opt.is-wrong { border-color: #f43f5e !important; background: rgba(244,63,94,.14) !important; box-shadow: 0 4px 0 #9f1239 !important; }
.ld-opt.is-wrong kbd { color: #fff; border-color: #f43f5e; background: #f43f5e; }
.ld-opt.is-dim { opacity: .4; }
.ld-slot.is-right { color: #4ade80; border-bottom-color: #22c55e; } .ld-slot.is-wrong { color: #fb7185; border-bottom-color: #f43f5e; }
@keyframes ldShake { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }

.ld-verdict { display: flex; gap: 10px; padding: 11px 13px; border-radius: 15px; animation: ldSlide .2s cubic-bezier(.2,.8,.2,1) both; }
.ld-verdict[hidden] { display: none; }
.ld-verdict.is-good { background: rgba(34,197,94,.14); border: 1px solid rgba(34,197,94,.4); }
.ld-verdict.is-bad { background: rgba(244,63,94,.12); border: 1px solid rgba(244,63,94,.4); }
.ld-verdict p { margin: 0; font-size: 14px; line-height: 1.45; color: rgba(255,255,255,.88); }
.ld-verdict strong { color: #fff; }

.ld-btn { width: 100%; height: 50px; border-radius: 15px; border: 0; font: inherit; font-family: var(--font); font-size: 15px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #052e16; cursor: pointer; background: #4ade80; box-shadow: 0 5px 0 #15803d; transition: transform .1s, box-shadow .1s; }
.ld-btn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 #15803d; }
.ld-btn:disabled { color: rgba(255,255,255,.35); background: rgba(255,255,255,.1); box-shadow: 0 5px 0 rgba(255,255,255,.05); cursor: default; }
.ld-btn.is-bad { color: #fff; background: #f43f5e; box-shadow: 0 5px 0 #9f1239; }
.ld-btn[hidden] { display: none; }

.ld-end { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 6px 0 4px; }
.ld-stars { display: flex; gap: 8px; font-size: 40px; line-height: 1; }
.ld-stars span { color: rgba(255,255,255,.18); animation: ldStar .5s cubic-bezier(.34,1.56,.64,1) both; animation-delay: calc(var(--k) * .18s); }
.ld-stars span.is-on { color: #fcd34d; filter: drop-shadow(0 0 10px rgba(252,211,77,.6)); }
.ld-stars span:nth-child(2) { transform: translateY(-8px); }
@keyframes ldStar { from { opacity: 0; scale: .2; rotate: -40deg; } }
.ld-end h4 { margin: 0; font-size: 22px; }
.ld-end p { margin: 0; color: var(--text); font-size: 14.5px; line-height: 1.5; }
.ld-cta { margin-top: 6px; }
.ld-again { border: 0; background: none; color: #9fd8ff; font: inherit; font-family: var(--font); font-weight: 700; font-size: 14px; cursor: pointer; }

@media (max-width: 860px) {
  .ld { grid-template-columns: 1fr; gap: 22px; }
  .ld-intro { text-align: center; }
  .ld-steps { max-width: 420px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 480px) {
  .ld-card { padding: 14px 13px 16px; border-radius: 22px; }
  .ld-coach, .ld-coach svg { width: 72px !important; }
  .ld-say p { font-size: 15px; }
  .ld-opt { padding: 11px 12px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .ld *, .ld *::before { animation: none !important; transition: none !important; }
}
