/* ==========================================
   materiel.css – Page Matériel
   ECT Sécurité
========================================== */

/* --- Section Matériel --- */
.materiel {
    padding: 70px 20px;
    text-align: center;
}

/* --- Grille produits --- */
.materiel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    justify-items: center;
    margin-top: 20px;
}

/* --- Cartes produits --- */
.materiel-item {
    background: #1a1a1a;
    border: 2px solid #c8a951;
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    max-width: 300px;
    color: #f5f5f5;
    text-align: left;
}

.materiel-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(200, 169, 81, 0.5);
}

.materiel-item img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
    object-fit: cover;
    height: 180px;
}

.materiel-item h3 {
    margin-bottom: 10px;
    color: #c8a951;
    transition: color 0.3s, text-shadow 0.3s;
}

.materiel-item:hover h3 {
    color: #fff;
    text-shadow: 1px 1px 5px #000;
}

.materiel-item p {
    font-size: 0.95rem;
    line-height: 1.4;
}

.materiel-item:hover p {
    color: #fff;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #c8a951;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Prix sur les produits */
.materiel-item .prix {
    font-size: 1.2rem;
    color: #c8a951;
    font-weight: bold;
    margin: 10px 0;
}

/* Mode clair */
.light-mode .materiel-item {
    background: #fff;
    color: #222;
}

.light-mode .materiel-item:hover {
    box-shadow: 0 8px 20px rgba(200, 169, 81, 0.5);
}

.light-mode .materiel-item:hover h3,
.light-mode .materiel-item:hover p {
    color: #111;
    text-shadow: none;
}

/* Responsive */
@media (max-width: 768px) {
    .materiel {
        padding: 50px 20px;
    }
}