:root {
    --bg-color: #050505;
    --terminal-bg: #0a0a0a;
    --text-main: #cfcfcf;
    --accent: #00ff41; /* Vert Hacker */
    --accent-dim: rgba(0, 255, 65, 0.1);
    --border: #333;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Fira Code', monospace;
    overflow-x: hidden;
    font-size: 16px;
    line-height: 1.6;
}

/* --- LOADER --- */
#loader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #000; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
}
.loader-text { color: var(--accent); font-size: 1.2rem; }
.blink { animation: blink 0.5s infinite; }

/* --- EFFECTS --- */
.scanlines {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.2));
    background-size: 100% 4px; pointer-events: none; z-index: 100; opacity: 0.6;
}
.noise {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0.05; pointer-events: none; z-index: 90;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyBAMAAADsEZWCAAAAGFBMVEUAAAA5OTkAAAAAAAAAAABMTExERERmZmZnOtWxAAAACHRSTlMAMwA3M2YzMzOpmPU5AAAAPklEQVQ4y2NgQAX8DIwsDOwswCCA8R8D4z8Gxn8MjP8YGP8xMP5jYPzHwPiPgfEfA+M/BsZ/DIz/GBj/MTA+AGwzDxqG2wF4AAAAAElFTkSuQmCC');
}

/* --- LAYOUT --- */
.content-wrapper { max-width: 900px; margin: 0 auto; padding: 40px 20px; }
.section { margin-bottom: 100px; opacity: 0; animation: fadeUp 0.8s forwards; }
.section:nth-child(2) { animation-delay: 0.2s; }
.section:nth-child(3) { animation-delay: 0.4s; }

/* --- TERMINAL WINDOW --- */
.terminal-window {
    background: var(--terminal-bg);
    border: 1px solid #444;
    border-radius: 4px;
    box-shadow: 0 0 40px rgba(0, 255, 65, 0.05);
}
.terminal-header {
    background: #151515; padding: 10px; display: flex; align-items: center;
    border-bottom: 1px solid #333;
}
.buttons { display: flex; gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.red { background: #ff5f56; } .yellow { background: #ffbd2e; } .green { background: #27c93f; }
.title { flex: 1; text-align: center; color: #666; font-size: 0.8rem; }

.terminal-body { padding: 40px; }
.history { color: #555; font-size: 0.8rem; }
.prompt { color: var(--accent); margin-right: 10px; }
.cmd { color: #fff; font-weight: bold; }

h1.glitch {
    font-size: 3.5rem; color: #fff; margin: 20px 0 10px 0;
    text-transform: uppercase; letter-spacing: 5px;
    text-shadow: 2px 2px 0px var(--accent);
}
.subtitle { color: #888; font-size: 1.1rem; margin-bottom: 30px; }

.status-panel {
    display: flex; gap: 20px; border-top: 1px dashed #333; padding-top: 20px;
    font-size: 0.85rem;
}
.status-item { display: flex; gap: 10px; }
.label { color: #555; font-weight: bold; }
.green-text { color: var(--accent); }

/* --- SKILLS --- */
.section-title {
    color: #fff; font-size: 1.5rem; margin-bottom: 30px;
    border-bottom: 2px solid var(--border); padding-bottom: 10px;
}
.hash { color: var(--accent); }

.skills-wrapper { display: flex; flex-direction: column; gap: 25px; }
.skill-box { background: #0c0c0c; padding: 15px; border: 1px solid #222; }
.skill-header { display: flex; justify-content: space-between; margin-bottom: 8px; font-weight: bold; color: #fff; }
.progress-bar { width: 100%; height: 6px; background: #222; }
.fill { height: 100%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

/* --- GRID CARDS --- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.card {
    background: #0e0e0e; padding: 25px; border: 1px solid var(--border); transition: 0.3s;
}
.card:hover { border-color: var(--accent); transform: translateY(-5px); }
.card-icon { font-size: 2rem; margin-bottom: 15px; }
.card h3 { color: #fff; margin-bottom: 10px; }
.card p { font-size: 0.9rem; color: #888; }

/* --- CODE FRAME --- */
.code-frame { background: #111; padding: 20px; border-radius: 4px; border: 1px solid #333; }
.code-header { color: #666; font-size: 0.8rem; margin-bottom: 15px; border-bottom: 1px solid #333; padding-bottom: 5px; }
pre { color: #aaa; overflow-x: auto; }
.kwd { color: #cc7832; } .str { color: #6a8759; } .var { color: #9876aa; } .com { color: #808080; }

/* --- CONTACT SANS BOUTON --- */
.contact-terminal {
    background: #000; border: 1px solid var(--accent); padding: 40px; text-align: center;
    position: relative; overflow: hidden;
}
.contact-terminal::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px;
    background: var(--accent);
}
.term-text { color: #aaa; margin-bottom: 20px; }
.secure-box { margin: 30px auto; max-width: 300px; text-align: center; }

/* Nouveau style pour l'ID seul */
.id-display {
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 2rem;
    font-weight: bold;
    padding: 15px;
    margin-top: 10px;
    letter-spacing: 2px;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.2);
    text-shadow: 0 0 5px var(--accent);
    cursor: text; /* Indique qu'on peut sélectionner le texte */
    user-select: all; /* Facilite la sélection au clic */
}
.id-display::selection {
    background: var(--accent);
    color: #000;
}

.status-line { margin-top: 30px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.led { width: 10px; height: 10px; background: #222; border-radius: 50%; }
.led.on { background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: blink 2s infinite; }

/* --- SECTION HOSTING / INFRASTRUCTURE --- */
.hosting-badge {
    background: linear-gradient(90deg, #0a0a0a 0%, #111 100%);
    border: 1px solid #333;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    border-left: 3px solid var(--accent);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transition: 0.3s;
}

.hosting-badge:hover {
    border-color: var(--accent);
    box-shadow: 0 0 25px rgba(0, 255, 65, 0.1);
}

.host-status {
    width: 100%; font-size: 0.7rem; color: #666; margin-bottom: 10px;
    display: flex; align-items: center; gap: 8px;
    text-transform: uppercase; letter-spacing: 1px;
}

.ping-dot {
    width: 8px; height: 8px; background-color: var(--accent);
    border-radius: 50%; box-shadow: 0 0 10px var(--accent);
    animation: ping 2s infinite;
}

.host-content { display: flex; align-items: center; gap: 15px; }
.host-icon { font-size: 2rem; filter: drop-shadow(0 0 5px var(--accent-dim)); }
.host-label { font-size: 0.7rem; color: #888; }
.host-title { font-size: 1.5rem; font-weight: bold; color: #fff; letter-spacing: 1px; }

.host-btn {
    background: transparent; border: 1px solid var(--accent); color: var(--accent);
    padding: 10px 20px; text-decoration: none; font-weight: bold; font-size: 0.9rem;
    transition: all 0.3s; font-family: 'Fira Code', monospace;
}
.host-btn:hover { background: var(--accent); color: #000; box-shadow: 0 0 15px var(--accent); }

/* Animation du ping */
@keyframes ping {
    0% { transform: scale(1); opacity: 1; }
    70% { transform: scale(2); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

footer { text-align: center; margin-top: 80px; padding-bottom: 20px; color: #444; font-size: 0.8rem; }
.tiny { font-size: 0.6rem; margin-top: 5px; }

/* Responsive Mobile pour le hosting */
@media (max-width: 600px) {
    .hosting-badge { flex-direction: column; text-align: center; }
    .host-content { flex-direction: column; gap: 5px; }
    .host-status { justify-content: center; }
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes fadeUp { to { opacity: 1; } }