Actualiser style.css

This commit is contained in:
2026-03-26 15:01:43 +00:00
parent a18890472a
commit 632d53bf12

137
style.css
View File

@@ -1,53 +1,156 @@
/* =========================== /* ===========================
NAVBAR - THEME ADMIN GLOBAL
=========================== */
body {
font-family: Arial, sans-serif;
margin: 20px;
background-color: #1c1c1c; /* fond noir sombre */
color: #ecf0f1; /* texte clair pour contraste */
}
/* ===========================
NAVBAR RECTANGLE
=========================== */ =========================== */
nav { nav {
background-color: #1a1a1a; /* fond sombre pour tout le site */ background-color: #2c3e50; /* fond rectangle */
padding: 15px 30px; padding: 15px 30px;
border-radius: 10px; border-radius: 10px; /* coins arrondis */
box-shadow: 0 2px 10px rgba(0,0,0,0.3); box-shadow: 0 2px 10px rgba(0,0,0,0.4); /* effet profondeur */
margin-bottom: 20px; margin-bottom: 20px;
} }
/* Menu horizontal */
nav ul { nav ul {
list-style: none; list-style: none;
display: flex; display: flex;
justify-content: center; justify-content: center; /* centre les éléments */
gap: 30px; gap: 40px; /* espace entre les boutons */
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
/* Liens */
nav ul li a { nav ul li a {
text-decoration: none; text-decoration: none;
color: #ffffff; /* texte clair */ color: #ecf0f1; /* texte clair */
font-weight: bold; font-weight: bold;
padding: 10px 15px; padding: 10px 15px;
border-radius: 5px; border-radius: 5px;
transition: all 0.3s; transition: all 0.3s;
} }
/* Hover */
nav ul li a:hover { nav ul li a:hover {
background-color: #ffffff; background-color: #ecf0f1;
color: #1a1a1a; color: #2c3e50;
} }
/* Bouton rouge optionnel */
nav ul li a.btn-red { nav ul li a.btn-red {
background-color: #e74c3c; background-color: #e74c3c;
color: #fff; color: white;
} }
nav ul li a.btn-red:hover { nav ul li a.btn-red:hover {
background-color: #c0392b; background-color: #c0392b;
} }
/* Style spécifique pour onglet Admin Login */ /* ===========================
nav ul li a.btn-admin { DASHBOARD
background-color: #8e44ad; /* violet admin */ =========================== */
color: white; .dashboard {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 15px;
} }
nav ul li a.btn-admin:hover { /* ===========================
background-color: #6c3483; WIDGETS
color: #fff; =========================== */
.widget {
padding: 20px;
border-radius: 10px;
text-align: center;
box-shadow: 0 2px 5px rgba(0,0,0,0.4);
background-color: #2c3e50; /* fond sombre pour widget */
color: #ecf0f1; /* texte clair */
transition: all 0.3s;
}
/* Hover des widgets */
.widget:hover {
box-shadow: 0 4px 15px rgba(0,0,0,0.6);
}
/* Couleurs spécifiques pour chaque type de widget */
.climat { background-color: #2980b9; } /* bleu sombre */
.securite { background-color: #7f8c8d; } /* gris sombre */
.energie { background-color: #f39c12; } /* orange */
.lumiere { background-color: #f1c40f; } /* jaune vif */
/* Grands blocs */
.graphiques { grid-column: span 4; background-color: #34495e; }
.alertes { grid-column: span 4; background-color: #e74c3c; color: white; }
/* ===========================
ICONES
=========================== */
.icone {
font-size: 30px;
display: block;
margin-bottom: 10px;
}
/* ===========================
ALERTES
=========================== */
.alert {
border: 3px solid red;
color: red;
}
/* ===========================
FORMULAIRE LOGIN
=========================== */
.form-box {
width: 300px;
margin: 50px auto;
padding: 20px;
background-color: #2c3e50;
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0,0,0,0.4);
text-align: center;
color: #ecf0f1;
}
.form-box h2 {
margin-bottom: 15px;
}
.form-box label {
display: none; /* optionnel */
}
.form-box input {
width: 90%;
padding: 10px;
margin: 10px 0;
border: 1px solid #7f8c8d;
border-radius: 5px;
background-color: #34495e;
color: #ecf0f1;
}
.form-box button {
width: 100%;
padding: 10px;
background-color: #e67e22;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}
.form-box button:hover {
background-color: #d35400;
} }