@font-face {
    font-family: Orbitron;
    src: url("../fonts/Orbitron-VariableFont_wght-MDhwJbQ.ttf");
}

/* ==========================================================================
   Design system partagé "hero navy / terminal / card" (accueil, connaissances...)
   Palette alignée sur le thème Bootswatch Flatly deja en place.
   ========================================================================== */
:root {
    --jd-navy: #2c3e50;
    --jd-teal: #18bc9c;
    --jd-cyan: #3498db;
}

/* ---------- HERO ---------- */
.jd-hero {
    position: relative;
    background: var(--jd-navy);
    color: #fff;
    isolation: isolate;
}
.jd-hero__inner {
    padding-top: clamp(3.5rem, 6vw, 6rem);
    padding-bottom: clamp(3.5rem, 6vw, 6rem);
}
.jd-hero__clip {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -1;
}
.jd-hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.35;
    pointer-events: none;
}
.jd-hero__glow--teal {
    width: 420px;
    height: 420px;
    background: var(--jd-teal);
    top: -170px;
    right: -80px;
    z-index: -1;
}
.jd-hero__glow--navy {
    width: 380px;
    height: 380px;
    background: var(--jd-cyan);
    bottom: -160px;
    left: -100px;
    opacity: 0.22;
}
.jd-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--jd-teal);
    margin-bottom: 0.75rem;
}
.jd-hero__title {
    font-weight: 800;
    font-size: clamp(2.2rem, 4vw, 3rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}
.jd-hero__lead {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
    max-width: 34rem;
}
.jd-hero__stats {
    display: flex;
    gap: 2.25rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.jd-stat__value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--jd-teal);
    line-height: 1;
}
.jd-stat__value small {
    font-size: 1.1rem;
    font-weight: 700;
}
.jd-stat__label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ---------- TERMINAL ---------- */
.jd-terminal {
    background: #1b2530;
    border-radius: 0.9rem;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.jd-terminal__bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 0.9rem;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.jd-terminal-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
}
.jd-terminal-dot--red { background: #ff5f56; }
.jd-terminal-dot--yellow { background: #ffbd2e; }
.jd-terminal-dot--green { background: #27c93f; }
.jd-terminal__title {
    margin-left: auto;
    margin-right: auto;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    font-family: 'SFMono-Regular', Consolas, Menlo, monospace;
}
.jd-terminal__body {
    padding: 1.25rem 1.25rem 1.5rem;
    font-family: 'SFMono-Regular', Consolas, Menlo, monospace;
    font-size: 0.85rem;
}
.jd-terminal-line {
    margin: 0 0 0.55rem;
    color: rgba(255, 255, 255, 0.85);
    white-space: pre-wrap;
}
.jd-terminal-prompt {
    color: var(--jd-teal);
    font-weight: 700;
    margin-right: 0.4rem;
}
.jd-terminal-line--result {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-left: 1.1rem;
}
.jd-terminal-result-name {
    color: #fff;
    min-width: 6.5rem;
}
.jd-terminal-bar {
    color: var(--jd-teal);
    letter-spacing: 1px;
    flex: 1 1 auto;
    overflow: hidden;
}
.jd-terminal-result-rate {
    color: rgba(255, 255, 255, 0.55);
    min-width: 2.5rem;
    text-align: right;
}
.jd-terminal-line--indent {
    padding-left: 1.1rem;
}
.jd-terminal-cursor {
    display: inline-block;
    width: 7px;
    height: 1rem;
    background: var(--jd-teal);
    vertical-align: middle;
    animation: jd-blink 1s step-start infinite;
}
@keyframes jd-blink {
    50% { opacity: 0; }
}

.jd-terminal[data-bs-toggle="modal"] {
    cursor: pointer;
}
.jd-terminal__open-hint {
    text-align: center;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
    padding: 0.6rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.jd-terminal__open-hint code {
    background: rgba(255, 255, 255, 0.12);
    color: var(--jd-teal);
    padding: 0.1rem 0.4rem;
    border-radius: 0.3rem;
}

/* ---------- CARD ---------- */
.jd-card {
    background: #fff;
    box-shadow: 0 10px 30px rgba(44, 62, 80, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.jd-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(44, 62, 80, 0.12);
}
.jd-card__icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: rgba(24, 188, 156, 0.12);
    color: var(--jd-teal);
    flex-shrink: 0;
}
.jd-badge {
    background: rgba(44, 62, 80, 0.06);
    color: var(--jd-navy);
    font-weight: 700;
    border: none;
}
.jd-card__icon--center {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}
.jd-card__icon--category {
    width: 84px;
    height: 84px;
    border-radius: 50%;
}

@media (max-width: 991.98px) {
    .jd-hero__stats {
        gap: 1.5rem;
    }
}

.technologyIconeSize {
    width: 60px;
    height: 60px;
}
.footerIconeSize {
    width: 40px;
    height: 40px;
}
.footerIconeDevBySize{
    width: 25px;
    height: 25px;
}
._card_full_button {
    background: transparent;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    z-index: 1;
}
._card_full_button:hover {
    box-shadow:
        rgba(0, 0, 0, 0.25) 0px 54px 55px,
        rgba(0, 0, 0, 0.12) 0px -12px 30px,
        rgba(0, 0, 0, 0.12) 0px 4px 6px,
        rgba(0, 0, 0, 0.17) 0px 12px 13px,
        rgba(0, 0, 0, 0.09) 0px -3px 5px;
}

pre {
    background-color: #1b2530;
    color: #18bc9c;
    font-family: 'SFMono-Regular', Consolas, Menlo, monospace;
    font-size: 0.9rem;
    width: 98%;
    margin-top: 15px;
    border-radius: 0.6rem;
    padding-top: 15px;
    padding-bottom: 15px;
    padding-left: 15px;
}
pre:hover {
    cursor: copy;
}

.custom_shadow {
    box-shadow:
        rgba(0, 0, 0, 0.25) 0px 54px 55px,
        rgba(0, 0, 0, 0.12) 0px -12px 30px,
        rgba(0, 0, 0, 0.12) 0px 4px 6px,
        rgba(0, 0, 0, 0.17) 0px 12px 13px,
        rgba(0, 0, 0, 0.09) 0px -3px 5px;
}

.clock {
    color: #17d4fe;
    font-family: Orbitron;
    letter-spacing: 2px;
}

.navbar-brand {
    margin-right: 1rem;
    transition: all 0.5s ease-in-out;
}

.navbar-brand img {
    width: 60px;
    height: auto;
    border: 2px solid burlywood;
    border-radius: 5px;
    background-color: white;
}

@media (min-width: 992px) {
    .navbar-brand {
        position: absolute;
        top: 50%;
        left: 50%;
        z-index: 1030;
        animation: floatation 30s ease-in-out infinite;
    }
    .navbar-brand img {
        scale: 2.5;
    }
}

@keyframes floatation {
    0% {
        transform: translate(-50%, 0);
    }
    10% {
        transform: translate(-55%, -5%);
    }
    30% {
        transform: translate(-50%, 5%);
    }
    50% {
        transform: translate(-60%, -5%);
    }
    70% {
        transform: translate(-50%, 5%);
    }
    80% {
        transform: translate(-60%, -5%);
    }
    100% {
        transform: translate(-50%, 0);
    }
}

/* Accent teal sur les liens de la nav, cohérent avec le glow */
.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active,
.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    color: var(--jd-teal) !important;
}
.navbar .btn-outline-light:hover {
    background-color: var(--jd-teal);
    border-color: var(--jd-teal);
}

/* ---------- FOOTER (coherent avec la nav) ---------- */
.jd-footer {
    position: relative;
    overflow: hidden;
    background: var(--jd-navy);
    isolation: isolate;
}
.jd-footer__glow {
    width: 320px;
    height: 320px;
    top: -140px;
    right: -60px;
    background: var(--jd-teal);
}
.jd-footer .clock {
    font-size: 0.8rem;
}
.jd-footer__link {
    color: rgba(255, 255, 255, 0.75) !important;
}
.jd-footer__link:hover {
    color: var(--jd-teal) !important;
}
.jd-claude-credit {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    margin-top: 0.5rem;
}
.jd-claude-credit:hover {
    color: rgba(255, 255, 255, 0.85);
}
.jd-claude-credit__icon {
    width: 16px;
    height: 16px;
}
