/* --- CONFIGURATION GLOBALE --- */
:root {
    --bg-color: #0d1117;     /* Noir profond style GitHub Dark */
    --card-bg: #161b22;      /* Gris très foncé */
    --text-main: #c9d1d9;    /* Blanc cassé */
    --nathan-color: #58a6ff; /* Bleu Tech */
    --yann-color: #d2a8ff;   /* Violet Design */
    --border-color: #30363d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Fira Code', monospace; /* Police Code obligatoire ! */
    background-color: var(--bg-color);
    color: var(--text-main);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* --- FOND GRILLE (Optionnel mais stylé) --- */
.grid-bg {
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px; /* Taille des carreaux */
    transform: perspective(500px) rotateX(60deg); /* Effet 3D incliné */
    top: -50%;
    z-index: -1;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(30px); }
}

/* --- CONTAINER PRINCIPAL --- */
.main-container {
    text-align: center;
    z-index: 10;
}

/* --- HEADER SYSTEME --- */
.system-header {
    margin-bottom: 40px;
    font-size: 1.5rem;
    color: #8b949e;
}

.prompt { color: #7ee787; margin-right: 10px; } /* Vert Terminal */
.typing { border-right: 2px solid #7ee787; animation: blink 1s step-end infinite; }

/* --- CONTENEUR DES CARTES --- */
.cards-wrapper {
    display: flex;
    gap: 40px;
}

/* --- STYLE DES CARTES (TERMINAL WINDOWS) --- */
.dev-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 320px;
    height: 350px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* --- BARRE DU HAUT (MAC OS STYLE) --- */
.top-bar {
    background: #010409;
    padding: 10px 15px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.dots { display: flex; gap: 6px; margin-right: 15px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.filename {
    font-size: 0.8rem;
    color: #8b949e;
    font-weight: bold;
}

/* --- CONTENU DU CODE --- */
.code-content {
    padding: 25px;
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-main);
}

.indent { margin-left: 20px; }
.comment { color: #8b949e; font-style: italic; font-size: 0.85rem; }
.cursor { animation: blink 1s infinite; color: var(--text-main); }

/* --- SYNTAX HIGHLIGHTING (Fausses couleurs de code) --- */
/* Nathan (JS colors) */
.nathan .keyword { color: #ff7b72; } /* Pink/Red */
.nathan .variable { color: #79c0ff; } /* Blue */
.nathan .string { color: #a5d6ff; }   /* Light Blue */
.nathan .number { color: #79c0ff; }

/* Yann (CSS colors) */
.yann .selector { color: #d2a8ff; }   /* Purple */
.yann .property { color: #79c0ff; }   /* Blue */
.yann .value { color: #ff7b72; }      /* Pink/Red */

/* --- HOVER EFFECTS (GLOW) --- */

/* Hover Nathan -> Glow Bleu */
.dev-card.nathan:hover {
    transform: translateY(-5px);
    border-color: var(--nathan-color);
    box-shadow: 0 0 20px rgba(88, 166, 255, 0.2);
}

/* Hover Yann -> Glow Violet */
.dev-card.yann:hover {
    transform: translateY(-5px);
    border-color: var(--yann-color);
    box-shadow: 0 0 20px rgba(210, 168, 255, 0.2);
}

/* --- ANIMATIONS --- */
@keyframes blink {
    50% { opacity: 0; }
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    .cards-wrapper {
        flex-direction: column;
    }
    
    .dev-card {
        width: 90vw;
        height: auto;
    }
    
    .grid-bg {
        display: none; /* Cache l'animation lourde sur mobile */
    }
}