/* ========================================
   MODEL CARDS - Shared across pages
   ======================================== */

.model-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    position: relative;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}

.model-card a::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    border-radius: 12px;
}

.model-card a::before {
    content: "Voir en 3D";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 16px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.model-card:hover a::after,
.model-card:hover a::before {
    opacity: 1;
}

.model-card a {
    text-decoration: none;
    color: #1a1a2e;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.model-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.model-card img {
    background: #f5f5f5;
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid #f0f0f0;
}

.model-card .card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 10px 8px;
}

.model-card h3 {
    color: #1a1a2e;
    font-size: 0.88rem;
    font-weight: 500;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    min-height: 40px;
}

.model-card p {
    font-size: 0.82rem;
    color: #666;
}

/* -------------- RESPONSIVE -------------- */
@media (max-width: 768px) {
    .model-card img {
        height: 150px;
    }

    .model-card .card-content {
        padding: 6px;
    }

    .model-card h3 {
        font-size: 0.78rem;
        min-height: 30px;
    }

    .model-card p {
        font-size: 0.7rem;
    }
}
