/**
 * Data Grid - Styles Frontend
 * 
 * Grid brutal avec header sticky
 */

:root {
    --font-mono: 'Courier New', monospace;
    --border-thin: 1px solid #000;
    --border-thick: 3px solid #000;
    --gray: #f5f5f5;
    --ink: #000;
    --alert: #e74c3c;
}

/* Container principal */
.data-grid {
    border-top: var(--border-thick);
    border-bottom: var(--border-thick);
    background: #fff;
}

/* Header sticky */
.grid-header {
    display: grid;
    grid-template-columns: 80px 200px 1fr;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    border-bottom: var(--border-thin);
    background: var(--gray);
    position: sticky;
    top: 0;
    z-index: 10;
    text-transform: uppercase;
    font-weight: bold;
}

.grid-header .cell {
    padding: 0.5rem 1rem;
    border-right: var(--border-thin);
}

.grid-header .cell:last-child {
    border-right: none;
}

/* Ligne de données */
.grid-row {
    display: grid;
    grid-template-columns: 80px 200px 1fr;
    border-bottom: var(--border-thin);
}

.grid-row:last-child {
    border-bottom: none;
}

/* Cellules */
.cell {
    padding: 2rem 1rem;
    border-right: var(--border-thin);
}

.cell:last-child {
    border-right: none;
}

.mono-id {
    font-family: var(--font-mono);
    font-weight: bold;
    font-size: 1.2rem;
}

.error-name {
    font-family: var(--font-mono);
    color: var(--alert);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Description */
.description h3 {
    font-size: 1.5rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-weight: 900;
}

.description p {
    max-width: 600px;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Responsive mobile */
@media (max-width: 768px) {
    .grid-header,
    .grid-row {
        grid-template-columns: 1fr;
    }

    .cell {
        border-right: none;
        border-bottom: var(--border-thin);
    }

    .mono-id {
        background: var(--gray);
        font-size: 1rem;
        padding: 1rem;
    }

    .error-name {
        padding: 1rem;
    }
}

/* Mini-quote dans les lignes */
.mini-quote {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    display: inline-block;
    background: var(--gray);
    padding: 1rem;
    border: 1px dashed var(--ink);
    margin-top: 1rem;
    line-height: 1.5;
    font-style: italic;
    max-width: 600px;
}

/* Responsive */
@media (max-width: 768px) {
    .mini-quote {
        font-size: 0.75rem;
        padding: 0.75rem;
        margin-top: 0.75rem;
    }
}
