/* La navbar est fixe : on décale le contenu pour qu'elle ne le recouvre pas */
body {
    padding-top: 56px;
}

.profile-photo {
    width: 100%;
    max-width: 260px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 .5rem 1.25rem rgba(0, 0, 0, .2);
}

#mainNavbar {
    transition: transform 0.3s ease;
}

/* Navbar masquée quand on descend dans la page */
#mainNavbar.nav-hidden {
    transform: translateY(-100%);
}

/* Lien actif un peu plus visible */
.navbar-dark .nav-link.active {
    font-weight: 600;
}

/* ===== À AJOUTER À LA FIN de assets/css/style.css ===== */
.terminal {
    max-width: 900px;
    border-radius: .5rem;
    overflow: hidden;
    background: #16191d;
    color: #d7dde3;
    box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .18);
    font-family: "Cascadia Mono", Consolas, "Courier New", monospace;
}
.terminal-bar {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem .9rem;
    background: #2b3036;
    font-size: .8rem;
    color: #9aa4ae;
}
.terminal-bar .dot {
    width: .7rem; height: .7rem;
    border-radius: 50%;
    background: #555c63;
}
.terminal-body {
    padding: 1.1rem 1.25rem 1.4rem;
    font-size: .95rem;
    line-height: 1.6;
}
.term-line { white-space: pre-wrap; overflow-wrap: anywhere; }
.term-cmd:not(:first-child) { margin-top: .9rem; }
.term-prompt { color: #5fd38d; margin-right: .6rem; user-select: none; }
.term-cmd .term-text { color: #fff; }
.term-out .term-text { color: #b9c2cb; }


.term-cursor {
    display: inline-block;
    width: .6em; height: 1.1em;
    margin-left: 1px;
    vertical-align: text-bottom;
    background: #d7dde3;
    animation: term-blink 1s steps(1) infinite;
}
@keyframes term-blink { 50% { opacity: 0; } }

/* Les lignes gardent leur place (pas de saut de page) mais restent invisibles tant qu'elles ne sont pas tapées */
.terminal.is-animated .term-line:not(.is-shown) { visibility: hidden; }
.terminal.is-animated .term-count:not(.is-ready) { display: none; }
.term-count { color: #5fd38d; }

@media (max-width: 575.98px) {
    .terminal-body { font-size: .82rem; padding: .9rem 1rem 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
    .term-cursor { animation: none; }
}

/* ===== À AJOUTER À LA FIN de assets/css/style.css ===== */
.js-only { display: none; }
.js .js-only { display: block; }

.skill-card { border-top: 4px solid #0e7c86; transition: opacity .2s; }
.skill-icon {
    width: 3rem; height: 3rem;
    display: grid; place-items: center;
    margin-bottom: .75rem;
    border-radius: .75rem;
    font-size: 1.4rem;
    color: #fff; background: #0e7c86;
}
.skill {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .3rem .75rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 50rem;
    background: var(--bs-body-bg);
    font-size: .9rem;
    transition: opacity .2s, background-color .2s;
}
/* Repère de niveau : 3 points, remplis selon le palier */
.lvl { display: inline-flex; gap: 2px; }
.lvl i { width: 6px; height: 6px; border-radius: 50%; background: var(--bs-border-color); }
.lvl i.on { background: #0e7c86; }

.skill.is-match { background: #0e7c86; color: #fff; border-color: #0e7c86; }
.skill.is-match .lvl i { background: rgba(255,255,255,.4); }
.skill.is-match .lvl i.on { background: #fff; }
.skill.is-dim, .skill-card.is-dim { opacity: .28; }

.skills-answer { min-height: 1.6em; font-weight: 500; }
.btn-outline-dark.is-active { background: #212529; color: #fff; }

@media (prefers-reduced-motion: reduce) {
    .skill, .skill-card { transition: none; }
}