/* Police globale */
body,
* {
    font-family: "Iosevka Charon Mono", monospace;
}

html {
    scrollbar-width: thin;
    scrollbar-color: rgba(229, 228, 226, 0.18) transparent;
}

html::-webkit-scrollbar {
    width: 10px;
}

html::-webkit-scrollbar-track {
    background: #1e1d1c;
}

html::-webkit-scrollbar-thumb {
    background: rgba(229, 228, 226, 0.18);
    border-radius: 5px;
    border: 2px solid #1e1d1c;
    background-clip: padding-box;
    transition: background 150ms ease;
}

html::-webkit-scrollbar-thumb:hover {
    background: rgba(13, 110, 253, 0.65);
    background-clip: padding-box;
}

body {
    padding-top: 70px;
    background-color: #1e1d1c;
    color: #e5e4e2;
}

/* Navbar */
.navbar {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    width: calc(100% - 1rem);
    margin: 0 auto;
}

.navbar .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

@media (min-width: 992px) {
    .navbar {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        width: calc(100% - 2rem);
    }
}

.navbar.navbar-expand-lg.navbar-dark.fixed-top {
    margin-top: 1%;
    background: rgba(30, 29, 28, 0.55);
    backdrop-filter: blur(8px) saturate(120%);
    border: 1px solid rgba(229, 228, 226, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
    transition:
        background 200ms ease,
        border-color 200ms ease,
        box-shadow 200ms ease;
}

/* Sections */
.section-accueil {
    background: #1e1d1c;
}

.section-apropos {
    background: #1e1d1c;
    background: linear-gradient(
        180deg,
        rgba(30, 29, 28, 1) 17%,
        rgba(36, 35, 34, 1) 38%
    );
}

.section-competences {
    background: #252423;
}

.section-projets {
    background: #252423;
    background: linear-gradient(
        180deg,
        rgba(37, 36, 35, 1) 6%,
        rgba(48, 47, 46, 1) 42%
    );
}

.section-contributions {
    background-color: #1e1d1c;
}

.section-contact {
    background-color: #252423;
}

/* Profil */
.placeholder-img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 3px solid rgba(229, 228, 226, 0.2);
    margin: 0 auto;
    overflow: hidden;
}

.placeholder-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Boutons */
.btn-modif {
    transition: transform 0.25s ease-out;
    will-change: transform;
}

.btn-modif:hover {
    transform: translateY(-1px);
}

.btn-glass {
    background: rgba(30, 29, 28, 0.55) !important;
    backdrop-filter: blur(8px) saturate(120%);
    border: 1px solid rgba(229, 228, 226, 0.08) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    color: #e5e4e2 !important;
    transition:
        transform 0.25s ease-out,
        background-color 200ms ease,
        border-color 200ms ease,
        box-shadow 200ms ease;
}

.btn-glass:hover {
    filter: brightness(1.1);
}

.btn-contact.btn-glass:hover {
    background-color: #216bcd !important;
    border-color: #4493f8 !important;
}

.btn-projects.btn-glass:hover {
    background-color: #3a3938 !important;
    border-color: rgba(229, 228, 226, 0.3) !important;
}

/* Badges */
.badge-html {
    background: linear-gradient(135deg, #ef5a2f 0%, #e34f26 55%, #b83c20 100%);
    border-color: rgba(255, 205, 188, 0.46);
    box-shadow: 0 3px 12px rgba(227, 79, 38, 0.28);
}

.badge-css {
    background: linear-gradient(135deg, #268bd2 0%, #1572b6 55%, #0c4f82 100%);
    border-color: rgba(178, 224, 255, 0.45);
    box-shadow: 0 3px 12px rgba(21, 114, 182, 0.28);
}

.brand-badge.badge-javascript {
    background: linear-gradient(135deg, #ffe94d 0%, #f7df1e 58%, #d2b80e 100%);
    border-color: rgba(255, 246, 171, 0.56);
    box-shadow: 0 3px 12px rgba(247, 223, 30, 0.22);
    color: #1e1d1c;
}

.badge-bootstrap {
    background: linear-gradient(135deg, #9368d1 0%, #7952b3 55%, #59358e 100%);
    border-color: rgba(226, 211, 250, 0.45);
    box-shadow: 0 3px 12px rgba(121, 82, 179, 0.28);
}

.badge-tailwind {
    background: linear-gradient(135deg, #22d3ee 0%, #06b6d4 55%, #078ba4 100%);
    border-color: rgba(190, 244, 252, 0.48);
    box-shadow: 0 3px 12px rgba(6, 182, 212, 0.25);
}

.badge-typescript {
    background: linear-gradient(135deg, #4d91d8 0%, #3178c6 55%, #225991 100%);
    border-color: rgba(195, 224, 255, 0.46);
    box-shadow: 0 3px 12px rgba(49, 120, 198, 0.28);
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #f7f7f7;
}

.brand-badge-icon,
.brand-badge-icon-font {
    width: 1.15rem;
    height: 1.15rem;
    flex-shrink: 0;
}

.brand-badge-icon {
    object-fit: contain;
}

.brand-badge-icon-font {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.badge-app-icon {
    border-radius: 0.28rem;
}

.badge-vscode {
    background: linear-gradient(135deg, #0098ff 0%, #007acc 55%, #0065a9 100%);
    border-color: rgba(147, 215, 255, 0.55);
    box-shadow: 0 3px 12px rgba(0, 122, 204, 0.28);
}

.badge-github {
    background: linear-gradient(135deg, #3b3f46 0%, #24292f 52%, #0d1117 100%);
    border-color: rgba(240, 246, 252, 0.32);
    box-shadow: 0 3px 12px rgba(1, 4, 9, 0.42);
}

.badge-ddev {
    background: linear-gradient(135deg, #02a8e2 0%, #0784b3 55%, #1e2127 100%);
    border-color: rgba(172, 231, 250, 0.5);
    box-shadow: 0 3px 12px rgba(2, 168, 226, 0.25);
}

.badge-ddev-icon {
    filter: brightness(0) invert(1);
}

.badge-claude {
    background: linear-gradient(135deg, #e78b68 0%, #c86f50 55%, #a94f34 100%);
    border-color: rgba(255, 218, 201, 0.45);
    box-shadow: 0 3px 12px rgba(197, 124, 94, 0.26);
}

.badge-claude-icon {
    border-radius: 50%;
}

.badge-codex {
    background: linear-gradient(135deg, #a79cff 0%, #6178ff 48%, #3527ff 100%);
    border: 1px solid rgba(210, 220, 255, 0.45);
    box-shadow: 0 3px 12px rgba(74, 73, 255, 0.28);
}

.badge-os {
    background-color: rgba(229, 228, 226, 0.06);
    border: 1px solid rgba(229, 228, 226, 0.12);
    color: #e5e4e2;
    font-weight: 500;
}

.badge-os-small {
    font-size: 0.6em;
    padding-top: 0.35em;
    padding-bottom: 0.35em;
}

.badge-early-access {
    padding: 0.4em 0.7em;
    background-color: rgba(255, 193, 7, 0.12);
    border: 1px solid rgba(255, 193, 7, 0.35);
    color: #ffd76a;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.badge-ferme {
    padding: 0.4em 0.7em;
    background-color: rgba(220, 53, 69, 0.12);
    border: 1px solid rgba(220, 53, 69, 0.35);
    color: #ff6b6b;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.badge-indisponible {
    padding: 0.4em 0.7em;
    background-color: rgba(108, 117, 125, 0.12);
    border: 1px solid rgba(108, 117, 125, 0.35);
    color: #868e96;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Carrousel projets */
.projects-carousel-outer {
    position: relative;
    padding: 0 3rem;
}

@media (max-width: 575.98px) {
    .projects-carousel-outer {
        padding: 0 2.5rem;
    }
}

.projects-carousel-track-wrapper {
    overflow: hidden;
}

.projects-carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Cartes projets */
.project-card {
    flex: 0 0 calc(33.333% - 1rem);
    background: rgba(30, 29, 28, 0.6);
    border: 1px solid rgba(229, 228, 226, 0.1);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

@media (max-width: 991.98px) {
    .project-card {
        flex: 0 0 calc(50% - 0.75rem);
    }
}

@media (max-width: 575.98px) {
    .project-card {
        flex: 0 0 100%;
    }
}

.project-card:hover {
    border-color: rgba(229, 228, 226, 0.22);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.project-card-bar {
    background: #2a2928;
    padding: 9px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(229, 228, 226, 0.06);
    flex-shrink: 0;
}

.project-card-filename {
    color: rgba(229, 228, 226, 0.4);
    font-size: 0.75rem;
    letter-spacing: 0.02em;
}

.project-card-img-wrap {
    overflow: hidden;
    flex-shrink: 0;
}

.project-card-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
    transition: filter 0.2s ease;
}

.project-card-img:hover {
    filter: brightness(1.06);
}

.project-card-img:focus-visible {
    outline: 3px solid #ffc107;
    outline-offset: -3px;
}

.project-card-body {
    padding: 1.1rem 1.4rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e5e4e2;
    margin-bottom: 0.5rem;
}

.project-card-desc {
    font-size: 0.82rem;
    color: rgba(229, 228, 226, 0.6);
    margin-bottom: 1rem;
    flex: 1;
}

.project-status-note {
    font-size: 0.75rem;
    color: rgba(229, 228, 226, 0.45);
    margin-top: -0.35rem;
    margin-bottom: 0.8rem;
}

.project-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 0.375rem;
    background-color: rgba(229, 228, 226, 0.06);
    border: 1px solid rgba(229, 228, 226, 0.12);
    transition:
        transform 0.15s ease,
        filter 0.15s ease,
        border-color 0.15s ease;
    text-decoration: none;
}

.project-link-disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 0.375rem;
    background-color: rgba(229, 228, 226, 0.03);
    border: 1px dashed rgba(229, 228, 226, 0.12);
    opacity: 0.45;
    cursor: not-allowed;
}

.project-links a:hover {
    transform: translateY(-1px);
    filter: brightness(1.2);
    border-color: rgba(229, 228, 226, 0.3);
}

/* Boutons de navigation carrousel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid rgba(229, 228, 226, 0.12);
    border-radius: 50%;
    background: rgba(30, 29, 28, 0.85);
    backdrop-filter: blur(8px);
    color: #e5e4e2;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition:
        transform 0.15s ease,
        background 0.15s ease,
        border-color 0.15s ease,
        opacity 0.15s ease;
    z-index: 2;
    padding: 0;
    font-size: 0.8rem;
}

.carousel-btn:hover:not(:disabled) {
    transform: translateY(calc(-50% - 1px));
    background: rgba(30, 29, 28, 1);
    border-color: rgba(229, 228, 226, 0.3);
}

.carousel-btn:disabled {
    opacity: 0.25;
    cursor: default;
}

.carousel-btn-prev {
    left: 0;
}

.carousel-btn-next {
    right: 0;
}

/* Points de navigation */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(229, 228, 226, 0.2);
    border: none;
    cursor: pointer;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
    padding: 0;
}

.carousel-dot.active {
    background: #0d6efd;
    transform: scale(1.3);
}

/* Visionneuse d’images */
body.lightbox-open {
    overflow: hidden;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 4vw, 3rem);
    background: rgba(12, 12, 11, 0.94);
    opacity: 0;
    transition: opacity 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.image-lightbox[hidden] {
    display: none;
}

.image-lightbox.active {
    opacity: 1;
}

.image-lightbox-img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100dvh - clamp(2rem, 8vw, 6rem));
    object-fit: contain;
    border-radius: 0.75rem;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.6);
    transform: scale(0.97);
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.image-lightbox.active .image-lightbox-img {
    transform: scale(1);
}

.image-lightbox-close {
    position: fixed;
    top: max(1rem, env(safe-area-inset-top));
    right: max(1rem, env(safe-area-inset-right));
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid rgba(229, 228, 226, 0.22);
    border-radius: 50%;
    background: #252423;
    color: #e5e4e2;
    font-size: 1.2rem;
    cursor: pointer;
    transition:
        transform 0.15s ease-out,
        background-color 0.15s ease-out;
}

.image-lightbox-close:hover {
    background-color: #343230;
    transform: scale(1.05);
}

.image-lightbox-close:focus-visible {
    outline: 3px solid #ffc107;
    outline-offset: 2px;
}

@media (max-width: 575.98px) {
    .image-lightbox {
        padding: 3.75rem 0.75rem 1rem;
    }

    .image-lightbox-img {
        max-height: calc(100dvh - 4.75rem);
        border-radius: 0.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .image-lightbox,
    .image-lightbox-img {
        transition: none;
    }
}

/* Formulaire contact */
.section-contact form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-contact form label {
    display: block;
    color: #e5e4e2;
    font-weight: 500;
}

.section-contact form label > input,
.section-contact form label > textarea {
    display: block;
    margin-top: 0.4rem;
}

.section-contact form input[type="email"],
.section-contact form input[type="text"],
.section-contact form textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid rgba(229, 228, 226, 0.15);
    border-radius: 0.5rem;
    background-color: #1e1d1c;
    color: #e5e4e2;
    outline: none;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        filter 0.15s ease;
}

.section-contact form textarea {
    min-height: 260px;
    resize: vertical;
}

.section-contact .row {
    justify-content: center;
}

.section-contact form input[type="email"]:focus,
.section-contact form input[type="text"]:focus,
.section-contact form textarea:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    filter: brightness(1.05);
}

.section-contact form button[type="submit"] {
    display: inline-block;
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #0d6efd;
    background-color: #0d6efd;
    color: #ffffff;
    font-weight: 600;
    transition:
        transform 0.15s ease,
        filter 0.15s ease,
        box-shadow 0.15s ease;
}

.section-contact form button[type="submit"]:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 0.5rem 1rem rgba(13, 110, 253, 0.25);
}

/* Navbar toggle icon */
#navbar-toggler-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        transform 300ms ease,
        opacity 200ms ease;
    transform-origin: center;
}

#navbar-toggler-icon.open {
    transform: rotate(180deg) scale(1.05);
}

#navbar-toggler-icon i {
    transition:
        color 200ms ease,
        transform 300ms ease;
}

#navbar-toggler-icon.open i {
    color: #ffc107;
}

.navbar-toggler {
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 767.98px) {
    .navbar-brand {
        margin-left: 1rem;
    }
    .navbar-nav .nav-link {
        padding-left: 1rem;
    }
}

.navbar-nav .nav-link {
    padding-left: 0.5rem;
}

/* Accessibilité */
.skip-link {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(-120%);
    background: #000;
    color: #fff;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    z-index: 1001;
    transition: transform 0.3s ease;
    text-decoration: none;
}
.skip-link:focus {
    transform: translateY(0);
}

.nav-link:focus,
.btn:focus,
#backToTop:focus,
.footer-sponsor-btn:focus {
    outline: 3px solid #ffc107;
    outline-offset: 2px;
}

/* Icônes réseaux sociaux */
.social-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.social-links .nav-link {
    padding-left: 0;
}

.github-link i,
.linkedin-link i {
    font-size: 1.5rem;
}

/* Modal installation */
.install-step-label {
    font-size: 0.8rem;
    color: rgba(229, 228, 226, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}

.install-code-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: #141312;
    border: 1px solid rgba(229, 228, 226, 0.08);
    border-radius: 8px;
    padding: 0.65rem 0.9rem;
}

.install-code {
    font-family: "Iosevka Charon Mono", monospace;
    font-size: 0.83rem;
    color: #28c840;
    word-break: break-all;
    flex: 1;
}

.copy-btn {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(229, 228, 226, 0.12);
    border-radius: 6px;
    background: rgba(229, 228, 226, 0.06);
    color: rgba(229, 228, 226, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition:
        color 0.15s ease,
        border-color 0.15s ease,
        background 0.15s ease;
    padding: 0;
    font-size: 0.85rem;
}

.copy-btn:hover {
    color: #e5e4e2;
    border-color: rgba(229, 228, 226, 0.3);
    background: rgba(229, 228, 226, 0.1);
}

.copy-btn.copied {
    color: #28c840;
    border-color: #28c840;
}

.install-or {
    text-align: center;
    font-size: 0.78rem;
    color: rgba(229, 228, 226, 0.3);
    margin: 0.6rem 0;
}

/* Modal navigateur */
.browser-modal-content {
    background: rgba(30, 29, 28, 0.75);
    backdrop-filter: blur(8px) saturate(120%);
    border: 1px solid rgba(229, 228, 226, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
    border-radius: 1rem;
}

.browser-modal-content .modal-title {
    color: #e5e4e2;
    font-weight: 600;
}

.browser-choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 2rem;
    border-radius: 0.75rem;
    background-color: rgba(229, 228, 226, 0.06);
    border: 1px solid rgba(229, 228, 226, 0.12);
    text-decoration: none;
    color: #e5e4e2;
    transition:
        transform 0.15s ease,
        filter 0.15s ease,
        border-color 0.15s ease;
}

.browser-choice:hover {
    transform: translateY(-2px);
    filter: brightness(1.15);
    border-color: #0d6efd;
    color: #ffffff;
}

.browser-choice i {
    font-size: 2.5rem;
}

.browser-choice:first-child i {
    color: #4285f4;
}

.browser-choice:last-child i {
    color: #ff7139;
}

.browser-choice span {
    font-weight: 500;
}

/* Footer */
.footer-sponsor-btn {
    border-radius: 6px;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.footer-sponsor-btn:hover {
    background-color: #e5e4e2;
    color: #1e1d1c;
    text-decoration: none;
}

.footer-powered-link {
    color: #aaa;
    text-decoration: none;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.footer-do-brand {
    color: #aaa;
    transition: color 0.2s;
}

.footer-powered-link:hover .footer-do-brand {
    color: #4d8cee;
}

/* Bouton retour en haut */
#backToTop {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 3rem;
    height: 3rem;
    border: none;
    border-radius: 50%;
    background: rgba(30, 29, 28, 0.55);
    backdrop-filter: blur(8px) saturate(120%);
    border: 1px solid rgba(229, 228, 226, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    color: #e5e4e2;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.15s ease;
    z-index: 999;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    transform: translateY(-2px);
    background: rgba(30, 29, 28, 0.8);
}

/* Typewriter (h1) */
.typewriter-cursor {
    display: inline-block;
    width: 3px;
    background-color: #e5e4e2;
    margin-left: 4px;
    vertical-align: baseline;
    height: 0.8em;
    opacity: 0;
}

.typewriter-cursor.active {
    animation: tw-blink 0.8s step-end infinite;
    opacity: 1;
}

@keyframes tw-blink {
    0%,
    49% {
        opacity: 1;
    }
    50%,
    100% {
        opacity: 0;
    }
}

/* Terminal elements */
.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.terminal-btn-close {
    background: #ff5f57;
}
.terminal-btn-minimize {
    background: #febc2e;
}
.terminal-btn-maximize {
    background: #28c840;
}

.terminal-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(229, 228, 226, 0.4);
    font-size: 0.78rem;
    font-family: "Iosevka Charon Mono", monospace;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.term-user {
    color: #28c840;
    font-weight: bold;
}

.term-at {
    color: #e5e4e2;
}

.term-host {
    color: #28c840;
    font-weight: bold;
}

.term-sep {
    color: rgba(229, 228, 226, 0.6);
}

.term-cursor-inline {
    color: #e5e4e2;
    animation: term-blink 1s step-end infinite;
    margin-left: 2px;
}

@keyframes term-blink {
    0%,
    49% {
        opacity: 1;
    }
    50%,
    100% {
        opacity: 0;
    }
}

/* Section À propos — terminal */
.about-terminal {
    max-width: 680px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(229, 228, 226, 0.1),
        0 20px 56px rgba(0, 0, 0, 0.6);
}

.about-terminal-bar {
    background: #2a2928;
    padding: 11px 16px;
    display: flex;
    align-items: center;
    position: relative;
    border-bottom: 1px solid rgba(229, 228, 226, 0.06);
}

.about-terminal-body {
    background: #141312;
    padding: 18px 22px 16px;
    font-family: "Iosevka Charon Mono", monospace;
    font-size: 0.9rem;
    color: #e5e4e2;
    line-height: 1.6;
}

.about-prompt-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.about-cmd {
    color: #febc2e;
}

.about-output {
    color: rgba(229, 228, 226, 0.75);
    margin: 0.6rem 0 0.7rem;
    padding: 0;
}

/* Section contributions — heatmap */
.contributions-total {
    color: rgba(229, 228, 226, 0.5);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.contrib-loading {
    color: rgba(229, 228, 226, 0.4);
    font-size: 0.88rem;
}

.contrib-wrapper {
    overflow-x: auto;
    padding-bottom: 4px;
    text-align: center;
}

.contrib-inner {
    display: inline-block;
    text-align: left;
}

.contrib-months {
    display: flex;
    padding-left: 32px;
    margin-bottom: 4px;
    gap: 0;
}

.contrib-months span {
    font-size: 0.72rem;
    color: rgba(229, 228, 226, 0.45);
    width: 16px;
    flex-shrink: 0;
}

.contrib-grid-row {
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

.contrib-day-labels {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 28px;
    text-align: right;
    padding-right: 4px;
    flex-shrink: 0;
}

.contrib-day-labels span {
    font-size: 0.7rem;
    color: rgba(229, 228, 226, 0.4);
    height: 13px;
    line-height: 13px;
    display: block;
}

.contrib-grid {
    display: flex;
    gap: 3px;
}

.contrib-col {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.contrib-cell {
    width: 13px;
    height: 13px;
    border-radius: 2px;
    flex-shrink: 0;
    cursor: default;
}

/* Toggle langue FR/EN */
.lang-toggle {
    background: none;
    border: 1px solid rgba(229, 228, 226, 0.15);
    border-radius: 6px;
    color: rgba(229, 228, 226, 0.4);
    font-family: "Iosevka Charon Mono", monospace;
    font-size: 0.75rem;
    padding: 0.2rem 0.55rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition:
        border-color 0.15s ease,
        background 0.15s ease;
    white-space: nowrap;
}

.lang-toggle:hover {
    border-color: rgba(229, 228, 226, 0.3);
    background: rgba(229, 228, 226, 0.04);
}

.lang-opt {
    transition: color 0.15s ease;
    line-height: 1;
}

.lang-opt.active {
    color: #e5e4e2;
    font-weight: 700;
}

.lang-sep {
    color: rgba(229, 228, 226, 0.2);
    font-size: 0.65rem;
}
