:root {
    --bg: #f5f7f8;
    --border: #d1d9e0;
    --accent: #007aff; /* Bleu technique */
    --dark: #1b1f23;
    --mono: 'JetBrains Mono', monospace;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    margin: 0; color: var(--dark);
}

/* --- NAV --- */
.tech-nav {
    background: white;
    border-bottom: 2px solid var(--dark);
    display: flex; justify-content: space-between;
    padding: 15px 5%; align-items: center;
}
.logo { font-weight: 800; font-family: var(--mono); font-size: 1.2rem; }
.logo span { color: var(--accent); }
nav a { text-decoration: none; color: var(--dark); font-family: var(--mono); font-size: 0.8rem; margin-left: 20px; font-weight: bold; }

/* --- HERO --- */
.hero-tech {
    height: 60vh; background: white;
    display: flex; align-items: center; padding: 0 10%;
    border-bottom: 1px solid var(--border);
}
.version { font-family: var(--mono); color: var(--accent); font-size: 0.8rem; }
.hero-tech h1 { font-size: 3.5rem; font-weight: 800; margin: 10px 0; }
.hero-tech h1 span { color: #eee; -webkit-text-stroke: 1.5px var(--dark); }

.btn-scan {
    display: inline-block; padding: 12px 25px;
    background: var(--dark); color: white;
    text-decoration: none; font-family: var(--mono); font-size: 0.9rem;
}

/* --- GRID & CARDS --- */
.db-wrapper { padding: 50px 5%; }
.tech-grid { display: flex; flex-wrap: wrap; gap: 20px; }

.spec-card {
    background: white; border: 1px solid var(--border);
    flex: 1 1 300px; display: flex; flex-direction: column;
}

.card-header {
    background: var(--dark); color: white; padding: 10px 15px;
    display: flex; justify-content: space-between; align-items: center;
}
.serial { font-family: var(--mono); font-size: 0.7rem; color: var(--accent); }
.card-header h3 { font-size: 0.9rem; margin: 0; }

.img-frame { padding: 10px; border-bottom: 1px solid var(--border); }
.img-frame img { width: 100%; height: 180px; object-fit: cover; filter: contrast(1.1); }

.data-sheet { padding: 15px; flex-grow: 1; }
.data-row { 
    display: flex; justify-content: space-between; 
    border-bottom: 1px solid #f0f0f0; padding: 8px 0;
    font-size: 0.75rem; font-family: var(--mono);
}
.data-row span { color: #888; }

.card-footer { 
    background: #fcfcfc; padding: 10px; border-top: 1px solid var(--border);
    font-size: 0.7rem; font-weight: bold; color: var(--accent);
}

/* --- RESPONSIVE 576px --- */
@media (max-width: 575px) {
    .spec-card { width: 100%; flex: none; }
    .hero-tech h1 { font-size: 2.2rem; }
}


/* --- Styles Formulaire --- */
.v-form {
    background: white;
    border: 1px solid var(--border);
    padding: 40px;
    margin-top: 20px;
}

.form-group {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-family: var(--mono);
    font-weight: bold;
    font-size: 0.8rem;
}

.v-form input {
    padding: 12px;
    border: 1px solid var(--border);
    font-family: var(--mono);
    font-size: 1rem;
    outline: none;
}

.v-form input:focus {
    border-color: var(--accent);
}

/* --- Styles Résultats --- */
.search-query {
    margin: 20px 0;
    font-family: var(--mono);
    font-size: 0.9rem;
    color: #666;
}

.highlight {
    color: var(--accent);
    font-weight: bold;
    text-transform: uppercase;
}
/* Centre le résultat et limite la largeur */
.result-display {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.single-result {
    max-width: 450px; /* La carte ne dépassera jamais cette taille */
    width: 100%;
}

/* Assure que l'image ne déforme pas le cadre */
.img-frame img {
    width: 100%;
    height: 250px; /* Hauteur fixe pour l'harmonie */
    object-fit: cover; /* Recadre l'image sans l'écraser */
    display: block;
}

.error-msg {
    text-align: center;
    border: 1px dashed var(--border);
    padding: 40px;
    background: #fff;
}
/* --- Masquer la checkbox --- */
.menu-toggle { display: none; }

/* --- Style du bouton Burger (masqué sur PC) --- */
.burger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.burger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--dark);
    transition: 0.3s;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 575px) {
    .burger { display: flex; } /* On affiche le burger */

    .nav-links {
        display: none; /* On cache les liens par défaut */
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        border-bottom: 2px solid var(--dark);
        z-index: 1000;
    }

    .nav-links a {
        margin: 10px 0;
        font-size: 1rem;
    }

    /* --- L'astuce : si la checkbox est cochée, on affiche le menu --- */
    .menu-toggle:checked ~ .nav-links {
        display: flex;
    }
    
    /* Animation petite croix quand on clique */
    .menu-toggle:checked ~ .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle:checked ~ .burger span:nth-child(2) { opacity: 0; }
    .menu-toggle:checked ~ .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
/* --- FOOTER TECH STYLE --- */
.tech-footer {
    background: var(--dark); /* Le gris très foncé / noir */
    color: #a0a0a0;
    padding: 60px 5% 20px 5%;
    margin-top: 80px;
    border-top: 4px solid var(--accent); /* Barre bleue sur le dessus */
    font-family: var(--mono);
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1 1 250px;
}

.footer-col h4 {
    color: white;
    font-size: 0.9rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 0.8rem;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-desc {
    font-size: 0.8rem;
    line-height: 1.6;
    margin-top: 15px;
}

/* Status Pulse Animation */
.status-box {
    display: inline-flex;
    align-items: center;
    background: #252a2e;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.7rem;
    color: #00ff00; /* Vert pour le "Online" */
    margin-bottom: 15px;
}

.pulse {
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 5px #00ff00;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

.footer-bottom {
    text-align: center;
    font-size: 0.7rem;
    padding-top: 20px;
}

.footer-bottom .divider {
    background: #333;
    margin-bottom: 20px;
}

/* --- RESPONSIVE FOOTER --- */
@media (max-width: 575px) {
    .footer-top {
        flex-direction: column;
        text-align: center;
    }
    
    .status-box {
        justify-content: center;
    }
}
.btn-admin-nav {
    background: transparent;
    color: #00D1FF !important; /* Ton bleu électrique */
    border: 1px solid #00D1FF;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    transition: 0.3s;
}

.btn-admin-nav:hover {
    background: rgba(0, 209, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 209, 255, 0.5);
}
