/* Réserve la place du header injecté dynamiquement pour éviter le saut visuel */
#header {
    min-height: 60px;
}

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');
@import url('/assets/portfolio/variables.css');
@import url('/assets/portfolio/animations.css');
@import url('/assets/portfolio/_keyframes-group.css');

/* Fallback local pour l'animation blink-cursor si l'import échoue (GitHub Pages) */
@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

body {
    background: #101820 !important;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.terminal-bar {
    display: flex;
    align-items: center;
    background: #00fff0cc !important;
    padding: 6px 12px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

    .terminal-bar-title {
    color: #181c24;
        font-weight: bold;
        font-size: 0.9em;
        letter-spacing: 0px;
    }

.terminal-bar .btn {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
    display: inline-block;
}

.terminal-bar .btn.red { background: #ff5f56; }
.terminal-bar .btn.yellow { background: #ffbd2e; }
.terminal-bar .btn.green { background: #27c93f; }
.terminal-bar .prompt {
    color: #00ff00;
    font-family: monospace;
    margin-left: 12px;
    font-size: 1em;
}

:root {
    --color-bg-main: #101820;
    --color-bg-secondary: #181c24;
    --color-accent: #00fff0;
    --color-accent-dark: #181c24;
}

header.top-banner {
    width: 100%;
    border-bottom: 2px solid #00fff0;
    border-top: 2px solid #00fff0;
    box-sizing: border-box;
    padding: 0.5em 0;
    margin: 0;
    text-align: center;
    font-size: 1em;
}

main {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 12px 48px 12px;
}

section#projets {
    margin-bottom: 32px;
}

#projets-list-title {
    display: block;
    text-align: center;
    color: #00fff0;
    font-size: 1.2em;
    font-weight: 700;
    margin: 0 auto 1.2em auto;
}

#projects-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 24px;
    padding: 0 8px;
}

.project-tile {
    background: transparent;
    border-radius: 8px;
    border: 1.5px solid #00fff0;
    padding: 0;
    min-height: 220px;
    display: flex;
    flex-direction: column;
}

.project-tile-content {
    font-size: 0.98em;
    padding: 20px 14px 14px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/*
  Les règles suivantes sont parfois répétées dans plusieurs media queries.
  Cette approche est volontaire : elle permet d’affiner le rendu responsive à chaque palier de largeur d’écran.
  Les doublons servent à surcharger ou ajuster certains styles pour garantir un affichage optimal sur mobile, tablette et desktop.
  Ne pas fusionner sans tests visuels approfondis : chaque bloc répond à un besoin précis d’adaptation.
*/

@media (max-width: 900px) {
    .top-banner__content {
        max-width: 98vw;
        padding: 0 2vw;
    }
    main {
        padding: 18px 4vw 32px 4vw;
    }
    #projects-list {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        .top-banner__title {
            font-size: 0.85em;
            color: #b8b8b8;
            font-family: 'Segoe UI', 'Roboto', sans-serif;
            font-weight: 400;
            letter-spacing: 0.3px;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
            padding: 16px 8px 32px 8px;
            background: rgba(0, 0, 0, 0.15);
            border-left: 2px solid rgba(0, 255, 0, 0.3);
        }
        gap: 14px;
        padding: 0 2vw;
    }
    .project-tile,
    .tron-section-title {
        font-size: 0.98em;
        min-width: 220px;
        max-width: 98vw;
    }
}

/*
  Les règles suivantes sont parfois répétées dans plusieurs media queries.
  Cette approche est volontaire : elle permet d’affiner le rendu responsive à chaque palier de largeur d’écran.
  Les doublons servent à surcharger ou ajuster certains styles pour garantir un affichage optimal sur mobile, tablette et desktop.
  Ne pas fusionner sans tests visuels approfondis : chaque bloc répond à un besoin précis d’adaptation.
*/

@media (max-width: 700px) {
    main {
        padding: 12px 2vw 24px 2vw;
    }
    #projects-list {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 0 1vw;
    }
}

/*
  Les règles suivantes sont parfois répétées dans plusieurs media queries.
  Cette approche est volontaire : elle permet d’affiner le rendu responsive à chaque palier de largeur d’écran.
  Les doublons servent à surcharger ou ajuster certains styles pour garantir un affichage optimal sur mobile, tablette et desktop.
  Ne pas fusionner sans tests visuels approfondis : chaque bloc répond à un besoin précis d’adaptation.
*/

@media (max-width: 600px) {
    header.top-banner {
        font-size: 0.92em;
        padding: 0.15em 0;
    }
    .project-tile,
    .tron-section-title {
        font-size: 1em;
        min-width: 160px;
        padding: 0.7em 0.5em;
    }
    #projects-list {
        flex-direction: column;
        gap: 1.2em;
    }
}

/*
  Les règles suivantes sont parfois répétées dans plusieurs media queries.
  Cette approche est volontaire : elle permet d’affiner le rendu responsive à chaque palier de largeur d’écran.
  Les doublons servent à surcharger ou ajuster certains styles pour garantir un affichage optimal sur mobile, tablette et desktop.
  Ne pas fusionner sans tests visuels approfondis : chaque bloc répond à un besoin précis d’adaptation.
*/

@media (max-width: 480px) {
    main {
        padding: 8px 1vw 12px 1vw;
    }
    #projects-list {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 0 0.5vw;
    }
    .project-tile {
        min-height: 160px;
    }
    .project-tile-content {
        padding: 12px 6px 8px 6px;
        font-size: 0.93em;
    }
    .badge-container, .tron-badge-container {
        top: 4px;
        right: 6px;
        gap: 4px;
    }
}

.project-tile:hover .btn-readme {
    background: rgba(0, 255, 0, 0.1);
    border-color: #00ff00;
    color: #b8ffe0;
    font-size: 1em;
    font-family: 'Share Tech Mono', 'Fira Mono', 'Consolas', 'Menlo', 'monospace';
    margin-top: 0.1em;
    letter-spacing: 0.5px;
    text-align: center;
    width: 100%;
    text-shadow: 0 0 4px #00ff8099;
    text-shadow: 0 0 4px #00ff8099;
}

.project-tile:hover .scan-effect {
    top: 100%;
}

.terminal-output:hover {
    background: linear-gradient(120deg, rgba(0,255,240,0.22) 0%, rgba(10,20,30,0.92) 100%);
    border-color: #00fff0cc;
    box-shadow: 0 0 32px 8px #00fff055, 0 2px 16px #000a;
    color: #e0e0e0;
    transform: translateY(-2px) scale(1.015);
}

.project-tile .infos span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.project-tile .infos .date {
    color: #00ff00;
    font-size: 0.9em;
}

.project-tile:hover::before {
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5) inset;
}

.project-tile .scan-effect {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 255, 0, 0.1) 50%,
        transparent 100%
    );
    transition: top 0.6s ease;
    pointer-events: none;
    z-index: 1;
}

.project-tile:hover .scan-effect {
    top: 100%;
}

.terminal-output.project-description span {
    color: #fff !important;
    background: none !important;
    text-shadow: none !important;
    font-weight: 500 !important;
    letter-spacing: 0.01em !important;
    font-style: normal !important;
    font-family: 'Share Tech Mono', 'Fira Mono', 'Consolas', 'Menlo', 'monospace' !important;
    font-size: 1.08em !important;
    animation: none !important;
}

#projets-list-title {
    display: block;
    text-align: center;
    color: #00fff0;
    font-family: 'Share Tech Mono', 'Fira Mono', 'Consolas', 'Menlo', 'monospace';
    font-size: 1.35em;
    word-break: break-word;
    position: relative;
    transition: all 0.4s ease;
    text-shadow: 0 0 12px #00fff0, 0 0 2px #00fff0, 0 2px 8px #000a;
    cursor: pointer;
    font-weight: 700;
    box-sizing: border-box;
    margin: 0 auto 1.2em auto;
    left: 0;
    right: 0;
}

.days-left {
    background: linear-gradient(90deg, #00fff033 60%, #00fff011 100%);
    color: #0a1a1c;
    font-family: 'Share Tech Mono', 'Fira Mono', 'Consolas', 'Menlo', 'monospace';
    font-weight: 600;
    border-radius: 0.6em;
    border: 1px solid #00fff088;
    box-shadow: 0 0 2px #00fff044;
    padding: 0.08em 0.65em;
    margin-left: 0.7em;
    letter-spacing: 0.03em;

    .top-banner__title {
        font-size: 2.35em;
        font-weight: 900;
        color: #00fff0;
        text-shadow:
            0 0 12px #00fff0,
            0 0 2px #00fff0,
            0 2px 8px #000a,
            0 4px 16px #000c;
        font-family: 'Share Tech Mono', 'Fira Mono', 'Consolas', 'Menlo', 'monospace';
        margin: 0.1em 0 0.1em 0;
        letter-spacing: 1.7px;
        line-height: 1.1;
        background: none;
        opacity: 1 !important;
    }
    }

.terminal-cursor {
    animation: blink-cursor 1.1s steps(1) infinite;
    color: #00ff80;
    font-weight: bold;
}

.top-banner__prompt {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0.2em 0 0 0;
    font-family: 'Share Tech Mono', 'Fira Mono', 'Consolas', 'Menlo', 'monospace';
    font-size: 1.18em;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-align: center;
}

.top-banner__prompt-inner {
    color: #fff;
    display: inline-block;
    font-size: 1em;
    font-family: inherit;
}

.top-banner__prompt-prompt {
    color: #00ff80;
    font-weight: bold;
    margin-right: 0.3em;
    font-family: inherit;
}

.fade-in {
    opacity: 0;
    animation: fadeInPortfolio 1.2s cubic-bezier(0.4,0,0.2,1) 0.2s forwards;
}


html, body {
    min-height: 100vh;
    background: linear-gradient(135deg, #101820 0%, #0a1a1c 60%, #00fff022 100%) fixed, 
                radial-gradient(ellipse at 60% 40%, #0a1a1c 60%, #101820 100%) fixed;
    padding-top: 0 !important;
    margin: 0 !important;
}

.top-banner {
    width: 100vw;
    background: linear-gradient(120deg, #0a0f1c 0%, #101a1c 60%, #00fff022 100%);
    box-shadow: 0 4px 32px 0 #00fff033, 0 2px 8px #000a;
    backdrop-filter: blur(7px) saturate(1.15);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 0 0.5em 0;
    margin: 0 !important;
    box-sizing: border-box;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    border-bottom: 3px solid #00fff0;
    border-top: 2.5px solid #00fff0;
    box-shadow:
        0 0 32px #00fff055,
        0 2px 8px #000a,
        0 0 0 2.5px #00fff055 inset,
        0 0 24px 2px #00fff033 inset,
        0 0 32px 8px #00fff099;
    overflow: hidden;
    transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
    animation: tron-glow-border 2.8s linear infinite alternate;
}


 .top-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            to bottom,
            rgba(0,255,255,0.07) 0px,
            rgba(0,255,255,0.07) 1.5px,
            transparent 1.5px,
            transparent 3px
        );
    opacity: 0.22;
    animation: banner-scanline 2.7s linear infinite;
}


.top-banner__content {
    position: relative;
    z-index: 1;
}

.top-banner__content {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.7em 2vw 0.5em 2vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
}

.top-banner__header {
    color: #00aaff;
    font-size: 1.1em;
    font-family: 'Fira Mono', 'Consolas', 'Monaco', monospace;
    margin-bottom: 0.1em;
    letter-spacing: 1px;
    text-align: left;
    width: 100%;
    text-shadow: 0 0 6px #00aaff99;
}

.top-banner__header::before {
    content: '┌──(Portfolio㉿0xCyberLiTech)-[~/]';
    color: #00aaff;
    font-size: 1em;
    font-family: inherit;
    letter-spacing: 1px;
    margin-right: 0.5em;
}

.top-banner__title {
    font-size: 2.35em;
    font-weight: 900;
    color: #00ff80;
    text-shadow:
        0 0 7px #00ff80,
        0 0 2px #00ff80,
        0 2px 8px #000a,
        0 4px 16px #000c;
    font-family: 'Fira Mono', 'Consolas', 'Monaco', monospace;
    margin: 0.1em 0 0.1em 0;
    letter-spacing: 1.7px;
    line-height: 1.1;
    background: none;
    text-align: left;
}

.top-banner__prompt {
    color: #b8ffe0;
    font-size: 1em;
    font-family: 'Fira Mono', 'Consolas', 'Monaco', monospace;
    margin-top: 0.1em;
    letter-spacing: 0.5px;
    text-align: left;
    width: 100%;
    text-shadow: 0 0 4px #00ff8099;
}

.top-banner__prompt::before {
    content: '└─$ ';
    color: #00ff80;
    font-family: inherit;
    margin-right: 0.2em;
}

main, header, section {
    position: relative;
    z-index: 1;
}

header {
    padding: 24px 0 8px 0;
    text-align: center;
}

.search-terminal {
    display: flex;
    align-items: center;
    gap: 1.1em;
    margin-bottom: 2em;
    background: linear-gradient(90deg, rgba(0,255,120,0.10) 0%, rgba(0,255,120,0.04) 100%);
    border-radius: 12px;
    padding: 1.1em 1.5em 1.1em 1.2em;
    box-shadow: 0 2px 24px 0 rgba(0,255,120,0.10), 0 1.5px 0 #00ff80 inset;
    position: relative;
    animation: fadeInPortfolio 1.2s cubic-bezier(0.4,0,0.2,1) 0.1s both;
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.search-prompt {
    color: #00ff80;
    font-family: 'Share Tech Mono', 'Fira Mono', 'Consolas', 'Menlo', 'monospace';
    font-size: 1.18em;
    font-weight: bold;
    margin-right: 0.7em;
    letter-spacing: 0.5px;
    text-shadow: 0 0 8px #00ff80, 0 2px 8px #000a;
    display: flex;
    align-items: center;
}

.search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.7em;
    font-size: 1.25em;
    display: none;
    border-radius: 8px;
    font-size: 1.13em;
    font-family: 'Share Tech Mono', 'Fira Mono', 'Consolas', 'Menlo', 'monospace';
    padding: 0.65em 1.2em 0.65em 1.2em;
    outline: none;
    width: 100%;
    max-width: 340px;
    box-shadow: 0 0 0 0 rgba(0,255,120,0);
    transition: border 0.18s, box-shadow 0.18s, background 0.18s;
    caret-color: #00ff80;
    margin-left: 0;
}

#search-repos:focus {
    border: 2px solid #00fff0;
    background: linear-gradient(90deg, #101a1c 60%, #0a1012 100%);
    box-shadow: 0 0 24px 6px rgba(0,255,120,0.18) inset, 0 0 12px #00fff0;
    animation: searchPulse 1.2s cubic-bezier(0.4,0,0.2,1) infinite alternate;
}

#search-repos::placeholder {
    color: #b8ffe0cc;
    opacity: 1;
    font-style: italic;
    letter-spacing: 0.5px;
}

.top-banner__title {
    font-size: 2.35em;
    font-weight: 900;
    color: #00ff80;
    text-shadow:
        0 0 7px #00ff80,
        0 0 2px #00ff80,
        0 2px 8px #000a,
        0 4px 16px #000c;
    font-family: 'Share Tech Mono', 'Fira Mono', 'Consolas', 'Menlo', 'monospace';
    margin: 0.1em 0 0.1em 0;
    letter-spacing: 1.7px;
    line-height: 1.1;
    background: none;
}

.top-banner__header {
    color: #00aaff;
    font-size: 1.1em;
    font-family: 'Fira Mono', 'Consolas', 'Monaco', monospace;
    margin-bottom: 0.1em;
    letter-spacing: 1px;
    text-align: left;
    width: 100%;
    text-shadow: 0 0 6px #00aaff99;
}

.top-banner__prompt {
    color: #b8ffe0;
    font-size: 1em;
    font-family: 'Fira Mono', 'Consolas', 'Monaco', monospace;
    margin-top: 0.1em;
    letter-spacing: 0.5px;
    text-align: left;
    width: 100%;
    text-shadow: 0 0 4px #00ff8099;
}

.top-banner__header::before {
    display: none;
}

.top-banner__prompt::before {
    content: '└─$ ';
    color: #00ff80;
    font-family: inherit;
    margin-right: 0.2em;
}

footer#site-footer {
    width: 100%;
    background: linear-gradient(90deg, rgba(16,24,32,0.98) 60%, rgba(0,255,240,0.07) 100%);
    color: #00fff0cc;
    font-family: 'Fira Mono', 'Consolas', monospace;
    font-size: 1em;
    text-align: center;
    padding: 0.7em 0 0.7em 0;
    border-top: 1.5px solid #00fff044;
    box-shadow: 0 -2px 12px 0 #00fff022;
    letter-spacing: 0.5px;
    transition: background 0.3s;
    z-index: 10;
    position: relative;
}

@media (max-width: 600px) {
    footer#site-footer {
        font-size: 0.92em;
        padding: 0.6em 0 0.6em 0;
        background: linear-gradient(90deg, rgba(16,24,32,0.98) 80%, rgba(0,255,240,0.07) 100%);
        border-top-width: 1px;
    }
}

.profil-buttons {
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 0 16px 16px 16px;
}

.profil-btn {
    background: transparent !important;
    border: 1px solid #00ff00 !important;
    color: #00ff00 !important;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 0.9em;
    text-decoration: none;
    font-weight: bold;
    font-family: 'Consolas', monospace !important;
    transition: all 0.2s ease;
    display: block;
    text-align: center;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.profil-btn::before {
    content: '$ git clone';
    font-size: 0.8em;
    color: #666;
    display: block;
    margin-bottom: 4px;
}

.profil-btn:hover {
    background: rgba(0, 255, 0, 0.1) !important;
    border-color: #00ff00 !important;
    color: #00ff00 !important;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    text-decoration: none;
}

.profil-btn:hover::before {
    content: '$ git clone --recursive';
    color: #00ff00;
}

main {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 12px 48px 12px;
    padding-top: 130px; /* Pour compenser la hauteur du bandeau fixe */
}

section#accueil {
    margin-bottom: 32px;
    text-align: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    border: 2px solid #333;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 
        0 0 20px rgba(0, 255, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    font-family: 'Consolas', monospace;
}

section#accueil::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 28px;
    background: none;
}

section#accueil h2 {
    color: #00ff00;
    font-family: 'Consolas', monospace;
    font-size: 1.6em;
    margin: 35px 0 20px 0;
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.4);
    letter-spacing: 1px;
    position: relative;
}

section#accueil h2::before {
    content: '┌──(visitor㉿0xCyberLiTech)-[~/welcome]';
    display: block;
    color: #00aaff;
    font-size: 0.6em;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

section#accueil h2::after {
    content: '└─$ echo "';
    display: inline;
    color: #00aaff;
    font-size: 0.6em;
    position: absolute;
    left: -20px;
    bottom: -24px;
}

section#accueil p {
    color: #e0e0e0;
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    font-size: 1em;
    margin: 20px 0 16px 0;
    line-height: 1.6;
    position: relative;
    padding-left: 30px;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 0.3px;
}

section#accueil p::before {
    content: '# ';
    color: #00aaff;
    position: absolute;
    left: 8px;
    font-family: 'Consolas', monospace;
}

section#accueil p::after {
    content: '"';
    color: #00aaff;
    margin-left: 4px;
}

section#projets {
    margin-bottom: 32px;
}

#projects-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 24px;
    padding: 0 12px;
}

.project-tile {
    background: linear-gradient(135deg, #101a1c 0%, #14181a 100%) !important;
    border-radius: 10px !important;
    border: 1.5px solid #00fff0 !important;
    box-shadow: 0 0 32px #00fff033, 0 2px 16px #000a;
    padding: 0 !important;
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    min-height: 260px;
    transition: box-shadow 0.22s cubic-bezier(.4,0,.2,1),
                            filter 0.22s cubic-bezier(.4,0,.2,1),
                            border-color 0.22s cubic-bezier(.4,0,.2,1),
                            transform 0.22s cubic-bezier(.4,0,.2,1);
    cursor: pointer;
    font-family: 'Share Tech Mono', 'Fira Mono', 'Consolas', 'Menlo', 'monospace' !important;
    text-shadow: 0 2px 8px #000c, 0 0 6px #00fff0, 0 0 2px #00fff0;
    margin-top: 1.2em;
    isolation: isolate;
    z-index: 0;
}

.project-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 60% 40%, rgba(0,255,255,0.18) 0%, rgba(0,255,255,0.08) 40%, transparent 80%),
        linear-gradient(120deg, rgba(0,255,255,0.09) 0%, rgba(0,0,0,0.0) 80%);
    animation: tron-tile-glow 3.2s linear infinite;
    opacity: 0.92;
}

/* Les animations @keyframes sont désormais centralisées dans _keyframes-group.css pour plus de clarté et de maintenance. */

.badge-container {
    position: absolute;
    top: 10px;
    right: 14px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    z-index: 2;
    min-width: 70px;
    min-height: 28px;
}

.tron-badge-container {
    position: absolute;
    top: 10px;
    right: 14px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    z-index: 2;
    min-width: 70px;
    min-height: 28px;
}

.day-counter {
    background: linear-gradient(145deg, #0a0f1c 60%, #00f0ff22 100%);
    color: #00f0ff;
    border: 1px solid #00f0ff99;
    border-radius: 4px;
    padding: 2px 8px;
    font-weight: 600;
    font-size: 0.93em;
    box-shadow: 0 0 6px #00f0ff55;
    margin: 0;
}

.badge-new {
    background: #ff9500;
    color: #fff;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.93em;
    font-weight: bold;
    margin: 0;
    box-shadow: 0 0 6px #ff9500aa;
    letter-spacing: 0.03em;
}


.project-tile[data-new="true"]::after {
    display: none;
}

.terminal-prompt {
    margin-bottom: 12px !important;
    font-family: 'Share Tech Mono', 'Fira Mono', 'Consolas', 'Menlo', 'monospace' !important;
    font-size: 0.97em !important;
    line-height: 1.3;
    background: #0f3032;
    border: 1.5px solid #00fff055 !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    position: relative;
    overflow: hidden;
    padding: 14px 18px 10px 18px;
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
    z-index: 2;
    min-height: unset;
    max-height: unset;
    min-height: 90px;
    max-height: 120px;
    height: auto;
    display: block;
    box-sizing: border-box;
    backdrop-filter: none !important;
    transition: none !important;
    pointer-events: auto;
    box-shadow: none !important;
    transform: none !important;
}

.terminal-prompt.tron-terminal + .project-description {
    margin-top: -2px;
    padding-top: 0;
}

 .tron-terminal::after {
    display: none !important;
}
.tron-prompt-user {
    color: #7ffcff;
    text-shadow: 0 0 8px #00f0ff, 0 0 2px #00f0ff;
    font-weight: 600;
    letter-spacing: 0.01em;
    font-size: 1.04em;
    filter: brightness(1.15);
}

.tron-username {
    color: #00f0ff;
    text-shadow: 0 0 8px #00f0ff, 0 0 2px #00f0ff;
    font-weight: 700;
}

.tron-at {
    color: #fff;
    opacity: 0.7;
    margin: 0 2px;
}

.tron-host {
    color: #ff9500;
    text-shadow: 0 0 6px #ff9500, 0 0 2px #ff9500;
    font-weight: 700;
}

.tron-path {
    color: #00f0ff;
    opacity: 0.8;
    margin-left: 6px;
    font-style: italic;
}

.tron-prompt-command {
    color: #00fff0;
    text-shadow: 0 0 8px #00f0ff, 0 0 2px #00f0ff;
    font-weight: 600;
    margin-top: 2px;
    font-size: 1.01em;
}

.tron-cmd {
    color: #ff9500;
    text-shadow: 0 0 6px #ff9500, 0 0 2px #ff9500;
    font-weight: 700;
    margin-right: 2px;
}

.tron-cmdline {
    color: #7ffcff;
    text-shadow: 0 0 8px #00f0ff, 0 0 2px #00f0ff;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.tron-badge {
    background: #00f0ff33;
    color: #00f0ff;
    border: 1px solid #00f0ff99;
    border-radius: 4px;
    font-size: 0.85em;
    margin-right: 4px;
    padding: 1px 5px;
    box-shadow: 0 0 6px #00f0ff55;
}

.prompt-user {
    display: block !important;
    color: var(--tron-blue-light) !important;
    margin-bottom: 2px;
    text-shadow: var(--tron-glow);
    animation: none;
}

.prompt-command {
    display: block !important;
    color: var(--tron-blue) !important;
    text-shadow: var(--tron-glow);
    animation: none;
}

.prompt-command {
    display: block !important;
    color: #00ff80 !important;
    text-shadow: 0 0 3px #00ff8099;
    animation: none;
}


.project-tile h3 {
    margin: 0 0 12px 0;
    font-size: 1.13em;
    color: #00fff0;
    font-family: 'Share Tech Mono', 'Fira Mono', 'Consolas', 'Menlo', 'monospace';
    word-break: break-word;
    position: relative;
    transition: all 0.4s cubic-bezier(.4,0,.2,1);
    text-shadow: 0 0 8px #000c, 0 0 8px #00fff0, 0 0 2px #fff;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
}

.terminal-output {
    margin: 8px 0;
    font-size: 0.98em;
    color: #fff;
    flex: 1;
    line-height: 1.7;
    font-family: 'Share Tech Mono', 'Fira Mono', 'Consolas', 'Menlo', 'monospace' !important;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 8px #000c, 0 0 6px #00fff0, 0 0 2px #fff;
    padding: 14px 18px;
    background: linear-gradient(120deg, rgba(0,255,240,0.13) 0%, rgba(10,20,30,0.82) 100%);
}

.terminal-output.project-description {
    background: #0F3032 !important;
    background-image: none !important;
    background-blend-mode: normal !important;
    border: 1.5px solid #00fff055 !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    filter: none !important;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    /* Bordure identique à la zone terminal-prompt.tron-terminal */
}

.terminal-output::before {
    content: '// ';
    color: #666;
    font-family: 'Consolas', monospace;
    font-size: 0.9em;
}

.project-tile .infos {
    font-size: 0.85em;
    color: #888;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0 8px 0;
    font-family: 'Consolas', monospace;
    border-top: 1px solid #333;
    padding-top: 8px;
}

.project-tile .infos span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.project-tile .infos .date {
    color: #00ff00;
    font-size: 0.9em;
}

/* Bouton moderne Matrix pour les tuiles */
.project-tile .btn-readme {
    background: #181c1a;
    color: #e0ffe0;
    border: 1.5px solid #00ff80;
    border-radius: 6px;
    padding: 8px 22px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 2.35em;
    font-weight: 900;
    color: #00ff80;
    text-shadow:
        0 0 7px #00ff80,
        0 0 2px #00ff80,
        0 2px 8px #000a,
        0 4px 16px #000c;
    font-family: 'Share Tech Mono', 'Fira Mono', 'Consolas', 'Menlo', 'monospace';
    margin: 0.1em 0 0.1em 0;
    letter-spacing: 1.7px;
    line-height: 1.1;
    background: none;
    text-align: center;
    width: 100%;
}

/* Effet hover - Animation de frappe */
.project-tile:hover {
    box-shadow: 0 0 18px 2px #00fff0cc, 0 2px 16px #000a;
    border-color: #00fff0;
    filter: brightness(1.04) saturate(1.04);
    transform: scale(1.025) translateY(-2px);
}

.project-tile:hover .btn-readme {
    background: rgba(0, 255, 0, 0.1);
    border-color: #00ff00;
    color: #b8ffe0;
    font-size: 1em;
    font-family: 'Share Tech Mono', 'Fira Mono', 'Consolas', 'Menlo', 'monospace';
    margin-top: 0.1em;
    letter-spacing: 0.5px;
    text-align: center;
    width: 100%;
    text-shadow: 0 0 4px #00ff8099;

/* Animation de clignotement terminal */

/* Effet de scan terminal - utilise ::first-line pour éviter les conflits */
.project-tile:hover::before {
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5) inset;
}

.project-tile .scan-effect {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 255, 0, 0.1) 50%,
        transparent 100%
    );
    transition: top 0.6s ease;
    pointer-events: none;
    z-index: 1;
}

.project-tile:hover .scan-effect {
    top: 100%;
}

/* Titre de la liste des projets avec effet Matrix (soulignement) */
#projets h2::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00ff00, transparent);
    box-shadow: 0 0 3px rgba(0, 255, 0, 0.6);
}

/* ==========================================
    RESPONSIVE DESIGN - MOBILE & TABLETTE : adaptations spécifiques
    ========================================== */

/* Tablettes (768px et moins) : adaptations bandeau, tuiles, accueil, grille */
@media screen and (max-width: 768px) {
    /* Bandeau supérieur adaptatif */
    .top-banner__title {
        font-size: 1em;
        color: #00ff00;
        font-family: 'Consolas', monospace;
        text-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
        font-weight: normal;
        font-size: 0.85em;
        color: #b8b8b8;
        font-family: 'Segoe UI', 'Roboto', sans-serif;
        font-weight: 400;
        letter-spacing: 0.3px;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
        padding: 8px 12px;
        background: rgba(0, 0, 0, 0.15);
        border-left: 2px solid rgba(0, 255, 0, 0.3);
        padding: 16px 8px 32px 8px;
    }
    
    /* Tuile profil */
    .profil-card {
        max-width: 100%;
        margin: 0 12px;
    }
    
    /* Section accueil */
    section#accueil {
        margin: 0 8px 24px 8px;
        padding: 20px 16px;
    }
    
    section#accueil h2 {
        font-size: 1.4em;
    }
    
    section#accueil p {
        font-size: 0.95em;
        padding-left: 25px;
    }
    
    /* Titre "Mes dépôts publics" */
    #projets h2 {
        font-size: 1.5em;
        margin: 25px 0 20px 0;
    }
    
    /* Grille projets - 2 colonnes sur tablette */
    #projects-list {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 16px;
        padding: 0 8px;
    }
    
    /* Réduction des effets pour les performances */
    .project-tile .scan-effect,
    .profil-card::after {
        display: none;
    }
}

/* Mobiles (480px et moins) : adaptations bandeau, tuiles, accueil, grille */
@media screen and (max-width: 480px) {
    /* Ajustement du padding-top pour bandeau mobile */
    body {
        padding-top: 75px;
    }
    
    /* Bandeau mobile compact */

    
    .top-banner__content {
        padding: 18px 0 6px 0;
    }
    
    .top-banner__title {
        font-size: 0.78em;
        letter-spacing: 0.5px;
    }
    
    .top-banner__title::before {
        content: '┌──(Portfolio㉿0xCyber)-[~/]';
        font-size: 0.45em;
    }
    
    .top-banner__title::after {
        content: '└─$ echo "Welcome"';
        font-size: 0.4em;
    }
    
    /* Désactivation de l'effet de scan sur mobile */
    /* On ne masque que l'effet scan, pas le bandeau lui-même */
    .top-banner::after {
        opacity: 0;
        pointer-events: none;
    }
    
    /* Section principale mobile */
    main {
        padding: 12px 4px 24px 4px;
    }
    
    /* Tuile profil mobile */
    .profil-card {
        margin: 0 8px;
        min-height: 280px;
    }
    
    .profil-logo {
        width: 60px;
        height: 60px;
    }
    
    .logo-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .profil-card h2 {
        font-size: 0.9em;
    }
    
    .profil-card h2::before,
    .profil-card h2::after {
        font-size: 0.6em;
    }
    
    .profil-description {
        font-size: 0.8em;
        padding: 6px 12px 12px 12px;
        margin-left: 8px;
        margin-right: 8px;
    }
    
    /* Section accueil mobile */
    section#accueil {
        margin: 0 4px 16px 4px;
        padding: 16px 12px;
    }
    
    section#accueil h2 {
        font-size: 1.2em;
        margin: 25px 0 16px 0;
    }
    
    section#accueil h2::before {
        content: '┌──(visitor㉿0xCyber)-[~/welcome]';
        font-size: 0.55em;
    }
    
    section#accueil p {
        font-size: 0.9em;
        padding-left: 20px;
        max-width: 100%;
    }
    
    /* Titre projets mobile */
    #projets h2 {
        font-size: 1.3em;
        letter-spacing: 1px;
        margin: 20px 0 16px 0;
    }
    
    /* Grille projets - 1 colonne sur mobile */
    #projects-list {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 4px;
    }
    
    /* Tuiles projets mobiles */
    .project-tile {
        min-height: 240px;
    }
    
    .project-tile-content {
        padding: 30px 12px 12px 12px;
    }
    
    .project-tile h3 {
        font-size: 0.95em;
    }
    
    .terminal-prompt {
        font-size: 0.75em !important;
    }
    
    .terminal-output {
        font-size: 0.8em;
        padding: 6px 8px;
    }
    
    .project-tile .infos {
        font-size: 0.75em;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .project-tile .btn-readme {
        font-size: 0.85em;
        padding: 6px 8px;
    }
    
    /* Désactivation des effets gourmands sur mobile */
    .project-tile:hover h3::before,
    .project-tile .scan-effect,
    .profil-card::after {
        display: none;
    }
    
    /* Réduction des animations Matrix sur mobile */
    #matrix {
        opacity: 0.3;
    }
    
    /* ...existing code... */

    @media (max-width: 700px) {
        html, body {
            min-height: 100vh;
            background: linear-gradient(135deg, #101820 0%, #0a1a1c 60%, #00fff022 100%) fixed, 
                                    radial-gradient(ellipse at 60% 40%, #0a1a1c 60%, #101820 100%) fixed;
        }
    /* ...existing code... */
    }
    
    /* Adaptation mobile du badge container */
    .badge-container {
        top: 4px;
        height: unset;
        display: block;
        box-sizing: border-box;
        position: relative;
        padding-bottom: 0;
        padding: 1px 4px;
        /* ...existing code... */
        margin-bottom: 0 !important;
        padding-bottom: 0;
    }
    }
    
    section#accueil {
        margin: 0 2px 12px 2px;
        padding: 12px 8px;
    }
    
    #projects-list {
        padding: 0 2px;
    }
    
    .project-tile-content {
        padding: 25px 8px 8px 8px;
    }
    
    /* Badges encore plus compacts sur très petits écrans */
    .badge-container {
        top: 3px;
        right: 4px;
        gap: 2px;
    }
    
    .day-counter {
        font-size: 0.5em;
        padding: 1px 3px;
    }
    
    .badge-new {
        font-size: 0.55em;
        padding: 1px 4px;
    }
}

/* Masquer les boutons .btn-readme dans les tuiles projets (mobile) */
.btn-readme {
  display: none !important;
}

.project-tile {
  cursor: pointer;
  transition: box-shadow 0.25s, filter 0.25s, transform 0.18s;
}

.project-tile:hover, .project-tile:focus {
    box-shadow: 0 0 18px 2px #00fff0cc, 0 2px 16px #000a;
    border-color: #00fff0;
    filter: brightness(1.04) saturate(1.04);
    transform: scale(1.025) translateY(-2px);
    outline: none;
    z-index: 0;
}

/* Interaction moderne sur le titre de la tuile projet (lien) */
.project-tile h3 a {
  color: inherit;
  text-decoration: none;
  position: relative;
  transition: color 0.18s, text-shadow 0.18s;
  cursor: pointer;
}

.project-tile h3 a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, #00ff80 0%, #00c3ff 100%);
  border-radius: 2px;
  opacity: 0;
  transform: scaleX(0.5);
  transition: opacity 0.18s, transform 0.18s;
}

.project-tile h3 a:hover, .project-tile h3 a:focus {
  color: #00ff80;
  text-shadow: 0 0 8px #00ff80, 0 0 2px #00ff80;
}

.project-tile h3 a:active,
.project-tile h3 a:visited {
  color: inherit;
  text-shadow: none;
}

.project-tile h3 a:active::after,
.project-tile h3 a:visited::after {
    opacity: 0;
    transform: scaleX(0.5);
}
