/* Console F8 — terminal interactif de la section #terminal, aux couleurs du site. */
.term-section{background:linear-gradient(180deg,transparent,rgba(0,240,208,.035),transparent)}
.term-sub{font-family:var(--font-mono);font-size:.85rem;color:var(--muted);margin:-40px 0 36px;max-width:640px;line-height:1.8}
.term-sub code{color:var(--accent3);background:rgba(0,240,208,.08);border:1px solid rgba(0,240,208,.2);padding:1px 7px;border-radius:4px}
.term-sub kbd{font-family:var(--font-mono);color:#ffc145;border:1px solid rgba(255,193,69,.45);border-bottom-width:3px;padding:0 6px;border-radius:4px}

.term{position:relative;border:1px solid var(--border-strong);border-radius:8px;background:rgba(5,7,16,.92);backdrop-filter:blur(14px);box-shadow:0 40px 90px -35px rgba(0,0,0,.9),0 0 70px -25px rgba(0,240,208,.35);overflow:hidden;font-family:var(--font-mono);cursor:text}
.term::after{content:'';position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(0deg,rgba(255,255,255,.018) 0 1px,transparent 1px 3px)}
.term.focused{border-color:rgba(0,240,208,.55);box-shadow:0 40px 90px -35px rgba(0,0,0,.9),0 0 80px -20px rgba(0,240,208,.5)}
.term-bar{display:flex;align-items:center;gap:8px;padding:11px 14px;border-bottom:1px solid var(--border);background:rgba(12,16,32,.85)}
.term-bar i{width:10px;height:10px;border-radius:50%}
.term-bar i:nth-child(1){background:#ff5f57}
.term-bar i:nth-child(2){background:#febc2e}
.term-bar i:nth-child(3){background:#28c840}
.term-bar span{margin-left:auto;font-size:.7rem;letter-spacing:.08em;color:var(--muted)}
.term-out{height:360px;overflow-y:auto;padding:18px 20px 6px;font-size:.8rem;line-height:1.7;color:#cfd3f5;white-space:pre-wrap;word-break:break-word;scrollbar-width:thin;scrollbar-color:var(--border-strong) transparent}
.term-out>div{animation:termLine .25s ease-out}
@keyframes termLine{from{opacity:0;transform:translateX(-6px)}to{opacity:1;transform:none}}
.term-out .p{color:var(--accent2)}
.term-out .ok{color:#4ade80}
.term-out .dim{color:var(--muted)}
.term-out .cy{color:var(--accent3)}
.term-out .vi{color:#a99bff}
.term-out .am{color:#ffc145}
.term-out .err{color:#ff6b6b}
.term-out a,.term-out .lnk{color:var(--cyan);text-decoration:underline;text-decoration-color:rgba(63,212,255,.35);text-underline-offset:3px;cursor:pointer}
.term-out a:hover,.term-out .lnk:hover{color:#fff}
.term-in{display:flex;align-items:center;gap:10px;padding:10px 20px 16px;font-size:.8rem;border-top:1px dashed var(--border)}
.term-in label{color:var(--accent2);white-space:nowrap}
.term-in input{flex:1;min-width:0;background:transparent;border:0;color:var(--text);font:inherit;caret-color:var(--accent3)}
.term-in input:focus{outline:none}
.term-in input::placeholder{color:rgba(122,128,168,.5)}

.hints{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.hints button{font-family:var(--font-mono);font-size:.72rem;letter-spacing:.05em;padding:8px 13px;border:1px solid var(--border);background:var(--card);color:var(--muted);cursor:pointer;transition:color .25s,border-color .25s,transform .25s,box-shadow .25s;clip-path:polygon(7px 0,100% 0,100% calc(100% - 7px),calc(100% - 7px) 100%,0 100%,0 7px)}
.hints button:hover{color:var(--accent3);border-color:var(--accent3);transform:translateY(-2px);box-shadow:var(--glow3)}

@media(max-width:640px){
  .term-out{height:320px;padding:14px 14px 6px;font-size:.7rem}
  .term-in{padding:10px 14px 14px}
  .term-in input{font-size:16px}
  .term-sub{margin-top:-30px}
}
