354 lines
5.2 KiB
CSS
354 lines
5.2 KiB
CSS
/* ------------- */
|
|
/* HTML */
|
|
/* ------------- */
|
|
|
|
html,
|
|
body {
|
|
font-family: "Inter", sans-serif;
|
|
background-color: #1e1e1e;
|
|
color: #eff1f3;
|
|
margin: 0;
|
|
padding: 0;
|
|
overflow: auto;
|
|
height: 100%; /* Définit la hauteur de la page à 100% */
|
|
display: flex; /* Flexbox sur le body */
|
|
flex-direction: column; /* Aligne le contenu du body en colonne */
|
|
}
|
|
|
|
/* --------------- */
|
|
/* Header */
|
|
/* --------------- */
|
|
|
|
header {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 10px 40px;
|
|
}
|
|
|
|
header a {
|
|
text-decoration: none;
|
|
color: #eff1f3;
|
|
}
|
|
|
|
header ul {
|
|
list-style: none;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
header li {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.header_text {
|
|
display: flex;
|
|
flex-grow: 1; /* Le conteneur des liens prend toute la place disponible */
|
|
justify-content: center; /* Centre les liens horizontalement */
|
|
gap: 15%; /* Espace entre les liens */
|
|
font-weight: 600;
|
|
}
|
|
|
|
.header_text a {
|
|
padding: 0 10px;
|
|
}
|
|
|
|
.header_text li a:hover {
|
|
color: #00a8e8;
|
|
}
|
|
|
|
.bouton_connexion {
|
|
padding: 10px 20px;
|
|
border-radius: 900px;
|
|
font-size: 16px; /* Taille de la police */
|
|
border-color: #00a8e8;
|
|
color: #eff1f3;
|
|
background-color: #00a8e8;
|
|
margin-top: 0;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.bouton_connexion:hover {
|
|
border-color: #eff1f3;
|
|
color: #00a8e8;
|
|
background-color: #eff1f3; /* Changer la couleur au survol */
|
|
}
|
|
|
|
#smart_building {
|
|
width: 13%;
|
|
margin-left: -40px;
|
|
height: auto;
|
|
}
|
|
|
|
/* ----------------- */
|
|
/* Complexe */
|
|
/* ----------------- */
|
|
|
|
body {
|
|
background-color: #1e1e1e;
|
|
color: #eff1f3;
|
|
font-family: Arial, sans-serif;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
main.admin-container {
|
|
padding: 40px;
|
|
max-width: 1000px;
|
|
margin: auto;
|
|
}
|
|
|
|
h1 {
|
|
text-align: center;
|
|
margin-bottom: 30px;
|
|
font-size: 36px;
|
|
color: #00a8e8;
|
|
}
|
|
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
background-color: #2c2c2c;
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
th,
|
|
td {
|
|
padding: 12px 16px;
|
|
text-align: center;
|
|
border-bottom: 1px solid #444;
|
|
}
|
|
|
|
th {
|
|
background-color: #0077b6;
|
|
color: #fff;
|
|
}
|
|
|
|
tr:nth-child(even) {
|
|
background-color: #353535;
|
|
}
|
|
|
|
select,
|
|
button {
|
|
padding: 6px 10px;
|
|
border-radius: 6px;
|
|
border: none;
|
|
}
|
|
|
|
button {
|
|
background-color: #00a8e8;
|
|
color: white;
|
|
cursor: pointer;
|
|
}
|
|
|
|
button:hover {
|
|
background-color: #0077b6;
|
|
}
|
|
|
|
/* --------------- */
|
|
/* Footer */
|
|
/* --------------- */
|
|
|
|
footer {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
font-size: 14px;
|
|
text-transform: uppercase;
|
|
padding: 20px;
|
|
margin-top: auto; /* Cela force le footer à se pousser vers le bas */
|
|
}
|
|
|
|
.copyright {
|
|
padding: 10px 20px;
|
|
}
|
|
|
|
footer a {
|
|
text-decoration: none;
|
|
color: #eff1f3;
|
|
}
|
|
|
|
.footer_link {
|
|
display: flex;
|
|
flex-grow: 1;
|
|
gap: 10%;
|
|
}
|
|
|
|
.footer_link a {
|
|
padding: 0 10px;
|
|
}
|
|
|
|
.copyright {
|
|
padding: 10px 20px;
|
|
}
|
|
|
|
/* ------------------------- */
|
|
/* Responsive Design */
|
|
/* ------------------------- */
|
|
|
|
/* GRAND ÉCRAN (> 1440px) */
|
|
@media (min-width: 1440px) {
|
|
main.admin-container {
|
|
padding: 60px;
|
|
max-width: 1200px;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 48px;
|
|
}
|
|
|
|
table th, table td {
|
|
padding: 20px;
|
|
}
|
|
|
|
.bouton_connexion {
|
|
padding: 12px 24px;
|
|
font-size: 18px;
|
|
}
|
|
}
|
|
|
|
/* TABLETTE - Moyenne (1025px à 1440px) */
|
|
@media (max-width: 1440px) and (min-width: 1025px) {
|
|
|
|
table th, table td {
|
|
padding: 15px;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 40px;
|
|
}
|
|
}
|
|
|
|
/* TABLETTE - Petite (769px à 1024px) */
|
|
@media (max-width: 1024px) and (min-width: 769px) {
|
|
header {
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
padding: 20px;
|
|
gap: 20px;
|
|
}
|
|
|
|
#smart_building {
|
|
width: 100px;
|
|
margin: 0;
|
|
}
|
|
|
|
.header_text {
|
|
flex-direction: row;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
gap: 30px;
|
|
}
|
|
|
|
.bouton_connexion {
|
|
padding: 8px 16px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
main.admin-container {
|
|
padding: 30px;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 36px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
table th, table td {
|
|
padding: 10px;
|
|
}
|
|
}
|
|
|
|
/* MOBILE (≤ 768px) */
|
|
@media (max-width: 768px) {
|
|
header {
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 15px;
|
|
}
|
|
|
|
#smart_building {
|
|
width: 90px;
|
|
height: auto;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.header_text {
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 10px;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.bouton_connexion {
|
|
padding: 10px 20px;
|
|
width: auto;
|
|
text-align: center;
|
|
}
|
|
|
|
main.admin-container {
|
|
padding: 20px;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 28px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
table th, table td {
|
|
padding: 8px;
|
|
}
|
|
|
|
footer {
|
|
flex-direction: column;
|
|
text-align: center;
|
|
gap: 10px;
|
|
align-items: center;
|
|
}
|
|
|
|
.footer_link {
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.copyright {
|
|
padding: 0;
|
|
}
|
|
}
|
|
|
|
/* TÉLÉPHONE TRÈS PETIT (≤ 480px) */
|
|
@media (max-width: 480px) {
|
|
main.admin-container {
|
|
padding: 10px;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 24px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.bouton_connexion {
|
|
padding: 8px 16px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
#smart_building {
|
|
width: 70px;
|
|
}
|
|
|
|
table th, table td {
|
|
padding: 6px;
|
|
}
|
|
}
|
|
|
|
/* ------------------------- */
|
|
/* Transitions douces */
|
|
/* ------------------------- */
|
|
|
|
* {
|
|
transition: all 0.3s ease-in-out;
|
|
} |