Voici un exemple de site HTML/CSS pour une fiche de stock d'un équipementier de piscine. Le design est simple et professionnel, avec une mise en page claire pour les informations techniques et les niveaux de stock.
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Fiche de Stock - Équipement Piscine</title>
<style>
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: #f4f4f9;
margin: 0;
padding: 20px;
}
.stock-card {
max-width: 800px;
margin: 20px auto;
background-color: white;
border-radius: 12px;
box-shadow: 0 4px 15px rgba(0,0,0,0.1);
padding: 30px;
border-left: 5px solid #2c3e50;
}
.header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 25px;
}
.header h1 {
color: #2c3e50;
margin: 0;
font-size: 28px;
}
.status {
padding: 8px 15px;
border-radius: 20px;
font-weight: bold;
color: white;
}
.status.in-stock {
background-color: #2ecc71;
}
.status.low-stock {
background-color: #e67e22;
}
.status.out-of-stock {
background-color: #e74c3c;
}
.product-info {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
margin-bottom: 30px;
}
.product-info div {
background-color: #f9f9f9;
padding: 15px;
border-radius: 8px;
}
.product-info label {
display: block;
color: #7f8c8d;
margin-bottom: 5px;
font-weight: 600;
}
.product-info p {
margin: 0;
color: #333;
font-size: 16px;
}
.stock-details {
background-color: #f9f9f9;
padding: 20px;
border-radius: 8px;
}
.stock-details h2 {
color: #2c3e50;
border-bottom: 2px solid #ecf0f1;
padding-bottom: 10px;
margin-bottom: 20px;
}
.stock-table {
width: 100%;
border-collapse: collapse;
margin-top: 15px;
}
.stock-table th, .stock-table td {
padding: 12px;
text-align: left;
border-bottom: 1px solid #ecf0f1;
}
.stock-table th {
background-color: #34495e;
color: white;
}
.stock-table tr:hover {
background-color: #f1f1f1;
}
.btn {
display: inline-block;
padding: 10px 20px;
margin-top: 20px;
background-color: #3498db;
color: white;
text-decoration: none;
border-radius: 5px;
transition: background-color 0.3s;
}
.btn:hover {
background-color: #2980b9;
}
@media (max-width: 768px) {
.product-info {
grid-template-columns: 1fr;
}
}
</style>
</head>
<body>
<div class="stock-card">
<div class="header">
<h1>🌊 Pompe à Chaleur AquaPro 5000</h1>
<span class="status in-stock">En Stock</span>
</div>
<div class="product-info">
<div>
<label>Référence</label>
<p>PCH-AP5000</p>
</div>
<div>
<label>Catégorie</label>
<p>Chauffage</p>
</div>
<div>
<label>Marque</label>
<p>AquaTech</p>
</div>
<div>
<label>Prix Unitaire</label>
<p>2 499,99 €</p>
</div>
</div>
<div class="stock-details">
<h2>Détails du Stock</h2>
<table class="stock-table">
<thead>
<tr>
<th>Entrepôt</th>
<th>Quantité</th>
<th>Dernière Mise à Jour</th>
</tr>
</thead>
<tbody>
<tr>
<td>Lyon</td>
<td>12</td>
<td>2023-10-15</td>
</tr>
<tr>
<td>Marseille</td>
<td>8</td>
<td>2023-10-14</td>
</tr>
<tr>
<td>Paris</td>
<td>5</td>
<td>2023-10-16</td>
</tr>
</tbody>
</table>
<a href="#" class="btn">Mettre à Jour le Stock</a>
</div>
</div>
</body>
</html>
Ce code crée une fiche de stock avec :
- Une en-tête contenant le nom du produit et l'état du stock (avec code couleur)
- Une section d'informations produit avec :
- Référence
- Catégorie
- Marque
- Prix unitaire
- Une section détaillée du stock avec :
- Tableau des quantités par entrepôt
- Date de dernière mise à jour
- Bouton d'action pour la mise à jour
Les fonctionnalités CSS incluent :
- Responsive design
- Ombres et bordures arrondies
- Palette de couleurs professionnelles
- Effets hover sur les éléments interactifs
- Mise en page en grille et flexbox
- Codes couleur pour l'état du stock
Vous pouvez personnaliser les couleurs, les polices et les données selon vos besoins spécifiques.