/* css/main.css */

/* 1. RESET & BASES */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #0d0d0d; /* Noir profond */
    color: #e0e0e0; /* Gris clair pour le texte */
    font-family: 'Roboto Mono', monospace; /* Police "Code" */
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    /*overflow: hidden; /* Pas de scroll pour l'instant */
}

/* 2. LE CONTENEUR PRINCIPAL (Le centre de l'écran) */
#app {
    text-align: center;
    border: 1px solid #333;
    padding: 40px;
    background: #141414;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.05); /* Légère lueur verte */
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
}

/* 3. TYPOGRAPHIE */
h1 {
    font-size: 2.5rem;
    letter-spacing: -2px;
    margin-bottom: 10px;
    color: #fff;
    text-transform: uppercase;
}

p {
    color: #888;
    margin-bottom: 30px;
}

/* 4. LE BOUTON D'ACTION (Le Démarreur) */
button#connect-btn {
    background: transparent;
    color: #00ff00; /* Vert Matrix */
    border: 2px solid #00ff00;
    padding: 15px 40px;
    font-family: inherit;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

button#connect-btn:hover {
    background: #00ff00;
    color: #000;
    box-shadow: 0 0 30px #00ff00; /* L'effet néon au survol */
}

/* 5. ZONE DE STATUT */
.status {
    margin-top: 30px;
    font-size: 0.9rem;
    color: #444;
    border-top: 1px solid #222;
    padding-top: 20px;
}

/* LA GRILLE SHOWROOM */
.showroom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
    text-align: left;
}

/* LA CARTE (Le Conteneur) */
.card {
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 20px;
    border-radius: 4px;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    border-color: #555;
}

/* COULEURS SPÉCIFIQUES PAR TYPE */
.card-available { border-top: 3px solid #00ff00; }
.card-available:hover { box-shadow: 0 0 15px rgba(0, 255, 0, 0.2); }

.card-locked { border-top: 3px solid #ff0000; opacity: 0.6; }
.card-custom { border-top: 3px solid #00ccff; }
.card-custom:hover { box-shadow: 0 0 15px rgba(0, 204, 255, 0.2); }

/* CONTENU DE LA CARTE */
.card h3 {
    color: #fff;
    font-size: 1.2rem;
    margin: 10px 0;
}

.desc {
    font-size: 0.8rem;
    color: #888;
    height: 60px; /* Hauteur fixe pour aligner */
}

.specs {
    border-top: 1px solid #333;
    padding-top: 10px;
    margin-top: 10px;
    font-size: 0.8rem;
    font-weight: bold;
}

.select-btn {
    width: 100%;
    margin-top: 15px;
    padding: 10px;
    background: #000;
    border: 1px solid #333;
    color: #fff;
    cursor: pointer;
    font-family: 'Roboto Mono', monospace;
}

.card-available .select-btn { border-color: #00ff00; color: #00ff00; }
.card-available .select-btn:hover { background: #00ff00; color: #000; }

.card-locked .select-btn { border-color: #555; color: #555; cursor: not-allowed; }

.card-custom .select-btn { border-color: #00ccff; color: #00ccff; }
.card-custom .select-btn:hover { background: #00ccff; color: #000; }



/* AJOUTS POUR LE COCKPIT */

/* Quand on passe en mode cockpit, on élargit la fenêtre */
#app.mode-cockpit {
    max-width: 900px;
    text-align: left;
}

.cockpit-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Deux colonnes */
    gap: 20px;
}

.header-bar {
    grid-column: 1 / -1; /* Prend toute la largeur */
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.panel {
    background: #000;
    border: 1px solid #333;
    padding: 15px;
    border-radius: 4px;
}

.terminal-screen {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    color: #00ff00;
    min-height: 200px;
    opacity: 0.8;
}

.line { display: block; margin-bottom: 5px; }
.line.system { color: #00ccff; }

.back-btn {
    background: #330000;
    border: 1px solid #ff0000;
    color: #ff0000;
    padding: 5px 15px;
    cursor: pointer;
}
.back-btn:hover { background: #ff0000; color: #fff; }
