/* Page d'accueil : bandeau en forme de fenêtre de terminal */
.term {
    width: 100%;
    max-width: 780px;
    background: rgba(8, 12, 20, .42);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
    -webkit-backdrop-filter: blur(1.5px);
    backdrop-filter: blur(1.5px);
    text-shadow: 0 1px 3px rgba(0, 0, 0, .6); /* lisibilité sur la vidéo */
    overflow: hidden;
    text-align: left;
    font-family: ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
}
.term-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, .05);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.term-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.term-dot.r { background: #ff5f57; }
.term-dot.y { background: #febc2e; }
.term-dot.g { background: #28c840; }
.term-bar-title {
    flex: 1;
    text-align: center;
    margin-right: 52px; /* compense les 3 pastilles pour centrer le titre */
    font-size: 12px;
    color: rgba(255, 255, 255, .55);
}
.term-body { padding: 18px 20px 22px; font-size: 14px; line-height: 1.7; }
.term-line { color: #e5e7eb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term-prompt { color: #4ade80; font-weight: 700; }
.term-path { color: #60a5fa; font-weight: 700; }
.term-out { color: #93c5fd; font-size: 14px; font-weight: 400; margin: 2px 0 10px; }
.term-ok { color: #4ade80; font-weight: 700; }
.term-main {
    color: #fff;
    font-weight: 700;
    font-size: 1.45rem;
    line-height: 1.3;
    min-height: 2.6em; /* réserve 2 lignes : pas de saut pendant la frappe */
    margin: 2px 0 16px;
}
.term-main .Typewriter__cursor { color: #4ade80; font-weight: 400; }
.term-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border: 1px solid rgba(74, 222, 128, .55);
    border-radius: 8px;
    background: rgba(74, 222, 128, .08);
    color: #fff;
    font-weight: 700;
    transition: background .2s, border-color .2s, transform .1s;
}
.term-cta:hover { background: rgba(74, 222, 128, .2); border-color: #4ade80; }
.term-cta:active { transform: scale(.98); }

/* Lignes du « démarrage » qui apparaissent l'une après l'autre */
.term-boot { opacity: 0; animation: term-in .35s ease forwards; }
.term-boot.d1 { animation-delay: .15s; }
.term-boot.d2 { animation-delay: .55s; }
.term-boot.d3 { animation-delay: .95s; }
.term-boot.d4 { animation-delay: 1.35s; }
.term-boot.d5 { animation-delay: 1.75s; }
@keyframes term-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .term-boot { opacity: 1; animation: none; }
}

@media (min-width: 768px) {
    .term-body { padding: 24px 28px 28px; font-size: 15px; }
    .term-out { font-size: 15px; }
    .term-main { font-size: 2.3rem; }
}
@media (max-width: 420px) {
    .term-body { padding: 14px 14px 18px; font-size: 12.5px; }
    .term-out { font-size: 12.5px; }
    .term-main { font-size: 1.25rem; }
    .term-cta { padding: 11px 14px; font-size: 13px; }
}
