/* ===== CONTAINER PRINCIPAL ===== */
.inventory-home {
max-width: 1200px;
margin: 0 auto;
padding: 40px 20px;
font-family: ‘Segoe UI’, Arial, sans-serif;
}
/* ===== EN-TÊTE ===== */
.inventory-header {
text-align: center;
margin-bottom: 50px;
padding-bottom: 20px;
border-bottom: 2px solid #3498db;
}
.inventory-header h1 {
color: #2c3e50;
font-size: 2.5em;
margin: 0 0 10px 0;
}
.inventory-header .subtitle {
color: #7f8c8d;
font-size: 1.2em;
margin: 0;
}
/* ===== GRILLE ALIGNÉE 2×2 ===== */
.inventory-grid {
display: grid;
grid-template-columns: repeat(2, 1fr); /* 2 colonnes */
gap: 30px;
justify-content: center;
align-items: center;
}
/* ===== ITEMS UNIFORMES ===== */
.inventory-item {
display: block;
width: 100%;
max-width: 300px;
height: auto;
text-decoration: none;
position: relative;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* ===== EFFETS DE BASE ===== */
.inventory-image-wrapper {
position: relative;
overflow: hidden;
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.inventory-image {
width: 100%;
height: 200px;
object-fit: contain;
display: block;
transition: all 0.3s ease;
}
/* ===== EFFETS AU SURVOL ===== */
.inventory-item:hover .inventory-image {
transform: translateY(-10px) scale(1.05);
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
z-index: 2;
}
/* ===== TEXTE EN ZONE GRISÉE ===== */
.inventory-title-wrapper {
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 50px;
background: rgba(0, 0, 0, 0.7);
color: white;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
transition: opacity 0.3s ease;
pointer-events: none;
}
.inventory-item:hover .inventory-title-wrapper {
opacity: 1;
}
.inventory-title {
font-size: 1.2em;
font-weight: bold;
text-align: center;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}
/* ===== CLIP-PATHS ===== */
.crafter .inventory-image { clip-path: url(#clip-crafter); }
.senior .inventory-image { clip-path: url(#clip-senior); }
.garage .inventory-image { clip-path: url(#clip-garage); }
.junior .inventory-image { clip-path: url(#clip-junior); }
/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
.inventory-grid {
grid-template-columns: 1fr; /* 1 colonne sur mobile */
gap: 20px;
}
}
