Files
smart-house---final-/style.css
2026-03-26 12:49:51 +00:00

146 lines
2.9 KiB
CSS

/* ===========================
GLOBAL
=========================== */
body {
font-family: Arial, sans-serif;
margin: 20px;
background-color: #f0f0f0;
}
/* ===========================
NAVBAR RECTANGLE
=========================== */
nav {
background-color: #2c3e50; /* fond rectangle */
padding: 15px 30px;
border-radius: 10px; /* coins arrondis */
box-shadow: 0 2px 10px rgba(0,0,0,0.2); /* effet profondeur */
margin-bottom: 20px;
}
/* Menu horizontal */
nav ul {
list-style: none;
display: flex;
justify-content: center; /* centre les éléments */
gap: 40px; /* espace entre les boutons */
margin: 0;
padding: 0;
}
/* Liens */
nav ul li a {
text-decoration: none;
color: #ecf0f1; /* texte clair */
font-weight: bold;
padding: 10px 15px;
border-radius: 5px;
transition: all 0.3s;
}
/* Hover */
nav ul li a:hover {
background-color: #ecf0f1;
color: #2c3e50;
}
/* Bouton rouge optionnel */
nav ul li a.btn-red {
background-color: #e74c3c;
color: white;
}
nav ul li a.btn-red:hover {
background-color: #c0392b;
}
/* ===========================
DASHBOARD
=========================== */
.dashboard {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 15px;
}
/* ===========================
WIDGETS
=========================== */
.widget {
padding: 20px;
border-radius: 10px;
text-align: center;
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
background-color: white;
}
/* Couleurs spécifiques */
.climat { background-color: #ADD8E6; }
.securite { background-color: #D3D3D3; }
.energie { background-color: #FFFACD; }
.lumiere { background-color: #F5F5DC; }
/* Grands blocs */
.graphiques { grid-column: span 4; background-color: white; }
.alertes { grid-column: span 4; background-color: #FFC0CB; }
/* ===========================
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: white;
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0,0,0,0.2);
text-align: center;
}
.form-box h2 {
margin-bottom: 15px;
}
/* cacher labels si tu veux */
.form-box label {
display: none;
}
.form-box input {
width: 90%;
padding: 10px;
margin: 10px 0;
border: 1px solid #ccc;
border-radius: 5px;
}
.form-box button {
width: 100%;
padding: 10px;
background-color: #2c3e50;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}
.form-box button:hover {
background-color: #34495e;
}