.machines-header {
    text-align: center;
    margin-bottom: 50px;
}

.machines-header h1 {
    color: #0078C6;
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.machines-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.machines-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fill,minmax(260px,1fr));
    padding: 10px 0 40px;
}

.machine-card {
    position: relative;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 6px 18px -6px rgba(0,0,0,0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .35s ease, box-shadow .35s ease;
    cursor: pointer;
}

.machine-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 28px -6px rgba(0,0,0,0.28);
}

/* Conteneur des indicateurs de statut */
.printer-status-indicators {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

/* Indicateur de statut de l'imprimante */
.printer-status-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.printer-status-indicator.connected {
    background-color: #22c55e;
}

.printer-status-indicator.disconnected {
    background-color: #ef4444;
}

/* Numéro de l'imprimante */
.printer-number {
    color: white;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    user-select: none;
}


.machine-img {
    height: 250px;
    width: 100%;
    align-content: center;
    overflow: hidden;
    background: #eee;
}

.machine-img img {
    height: 90%;
    width: 90%;
    justify-self: center;
    object-fit: contain;
    display: block;
    transition: transform .6s ease;
}

.machine-card:hover .machine-img img {
    transform: scale(1.08);
}

.machine-body {
    padding: 16px 18px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.machine-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.machine-desc {
    margin: 0;
    font-size: .8rem;
    line-height: 1.35rem;
    color: #333;
}

.machine-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15,20,30,0);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: background .35s ease, opacity .35s ease;
    padding: 16px;
}

.machine-card:hover .machine-overlay {
    background: rgba(15,20,30,0.55);
    opacity: 1;
    pointer-events: auto;
}

.machine-actions {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    width: 100%;
    max-width: 260px;
}

.btn {
    background: #ffffff;
    border: none;
    padding: 10px 18px;
    font-size: .85rem;
    font-weight: 600;
    border-radius: 28px;
    letter-spacing: .5px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px -4px rgba(0,0,0,0.35);
    cursor: pointer;
    transition: background .25s ease, color .25s ease, transform .25s ease;
    text-decoration: none;
    color: #0f1928;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:hover {
    background: #0f1928;
    color: #fff;
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}
