/* 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; }
}

/* ===== Page Projets (carrousel) ===== */
.proj-carousel {
    border: 1px solid var(--bs-border-color-translucent);
    border-radius: 1.25rem;
    background: var(--bs-body-bg);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 18px 44px -20px rgba(0, 0, 0, .28);
    overflow: hidden;
}

/* Couleurs par catégorie (bandeau sans image, miniatures) */
.proj-slide,
.proj-thumbs [data-bs-target]   { --c1: #0e7c86; --c2: #0b5a62; }
.proj-carousel .cat-logiciel    { --c1: #5b5bd6; --c2: #3f3fa8; }
.proj-carousel .cat-infra       { --c1: #3f6b8a; --c2: #27465c; }
.proj-carousel .cat-3d          { --c1: #e07a2f; --c2: #b45a17; }

/* Visuel (GIF, image ou bandeau coloré avec icône) */
.proj-media {
    display: grid;
    place-items: center;
    min-height: 15rem;
    overflow: hidden;
    font-size: 3.6rem;
    color: #fff;
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 255, 255, .24), transparent 55%),
        linear-gradient(135deg, var(--c1), var(--c2));
}
.proj-media.has-img { background: var(--bs-tertiary-bg); min-height: 0; }
.proj-media img { display: block; width: 100%; height: auto; aspect-ratio: 692 / 388; object-fit: contain; }

/* Texte */
.proj-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .9rem;
    padding: 1.6rem 1.5rem 1.5rem;
}
@media (min-width: 992px) { .proj-body { padding: 2.25rem 2.5rem; } }

.proj-count { font-size: .8rem; letter-spacing: .08em; font-variant-numeric: tabular-nums; color: var(--bs-secondary-color); }
.proj-chip {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .25rem .75rem;
    border-radius: 50rem;
    font-size: .78rem; font-weight: 600;
    color: color-mix(in srgb, var(--c1) 75%, var(--bs-body-color));
    background: color-mix(in srgb, var(--c1) 14%, transparent);
}
.proj-text { color: var(--bs-body-color); }
.proj-text p { margin-bottom: .6rem; }
.proj-text ul { padding-left: 1.1rem; }

.proj-tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.proj-tags li {
    padding: .2rem .65rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 50rem;
    background: var(--bs-tertiary-bg);
    font-size: .78rem; font-weight: 500;
    color: var(--bs-secondary-color);
}

/* Barre de navigation : flèches + miniatures + pause */
.proj-nav {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .8rem 1rem;
    border-top: 1px solid var(--bs-border-color-translucent);
    background: var(--bs-tertiary-bg);
}
.proj-arrow {
    flex: none;
    width: 2.5rem; height: 2.5rem;
    display: grid; place-items: center;
    border: 1px solid var(--bs-border-color);
    border-radius: 50%;
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    transition: background-color .2s, color .2s, border-color .2s;
}
.proj-arrow:hover, .proj-arrow:focus-visible { background: #0e7c86; border-color: #0e7c86; color: #fff; }
.js .proj-pause { display: grid; }

/* On réutilise les indicateurs Bootstrap (.carousel-indicators) comme miniatures */
.proj-carousel .proj-thumbs {
    position: relative;
    flex: 1 1 auto;
    justify-content: center;
    gap: .5rem;
    margin: 0; padding: .25rem;
    overflow-x: auto;
    scrollbar-width: none;
}
.proj-carousel .proj-thumbs::-webkit-scrollbar { display: none; }
.proj-carousel .proj-thumbs [data-bs-target] {
    box-sizing: border-box;
    flex: 0 0 auto;
    width: auto; height: auto;
    margin: 0; padding: .3rem;
    display: inline-flex; align-items: center; gap: .55rem;
    text-indent: 0;
    border: 1px solid var(--bs-border-color);
    border-radius: .75rem;
    background: var(--bs-body-bg);
    background-clip: border-box;
    color: var(--bs-body-color);
    font-size: .85rem; font-weight: 500;
    opacity: .65;
    transition: opacity .2s, border-color .2s, box-shadow .2s;
}
.proj-carousel .proj-thumbs [data-bs-target]:hover { opacity: 1; }
.proj-carousel .proj-thumbs .active {
    opacity: 1;
    border-color: #0e7c86;
    box-shadow: 0 0 0 3px rgba(14, 124, 134, .18);
}
.proj-thumbs img, .proj-thumbs .thumb-ico { flex: none; width: 3.4rem; height: 1.9rem; border-radius: .45rem; object-fit: cover; }
.proj-thumbs .thumb-ico {
    display: grid; place-items: center;
    font-size: .85rem; color: #fff;
    background: linear-gradient(135deg, var(--c1), var(--c2));
}
.proj-thumbs .thumb-label { display: none; padding-right: .5rem; white-space: nowrap; }
@media (min-width: 768px) { .proj-thumbs .thumb-label { display: inline; } }

@media (prefers-reduced-motion: reduce) {
    .proj-arrow, .proj-carousel .proj-thumbs [data-bs-target] { transition: 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; }
}