530 lines
8.3 KiB
CSS
530 lines
8.3 KiB
CSS
/* ---------------- */
|
|
/* GLOBAL */
|
|
/* ---------------- */
|
|
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
font-family: 'Inter', sans-serif;
|
|
background-color: #1e1e1e;
|
|
color: #eff1f3;
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
main {
|
|
flex: 1;
|
|
padding: 40px 60px;
|
|
}
|
|
|
|
/* --------------- */
|
|
/* 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 li a:hover {
|
|
color: #00a8e8;
|
|
}
|
|
|
|
|
|
.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;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
|
|
/* ---------------- */
|
|
/* TITRES */
|
|
/* ---------------- */
|
|
|
|
h1 {
|
|
font-size: 42px;
|
|
margin-bottom: 30px;
|
|
color: #00a8e8;
|
|
}
|
|
|
|
/* ---------------- */
|
|
/* TABLES */
|
|
/* ---------------- */
|
|
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin-bottom: 60px;
|
|
background-color: #2c2c2c;
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
th,
|
|
td {
|
|
padding: 15px;
|
|
text-align: center;
|
|
border-bottom: 1px solid #444;
|
|
}
|
|
|
|
th {
|
|
background-color: #1e1e1e;
|
|
color: #00a8e8;
|
|
font-size: 18px;
|
|
}
|
|
|
|
tr:hover {
|
|
background-color: #333;
|
|
}
|
|
|
|
select {
|
|
padding: 6px 10px;
|
|
border-radius: 20px;
|
|
border: none;
|
|
background-color: #eff1f3;
|
|
color: #1e1e1e;
|
|
font-weight: bold;
|
|
}
|
|
|
|
button {
|
|
background-color: #00a8e8;
|
|
color: #eff1f3;
|
|
border: none;
|
|
padding: 8px 20px;
|
|
border-radius: 20px;
|
|
font-weight: bold;
|
|
cursor: pointer;
|
|
transition: background-color 0.2s ease;
|
|
}
|
|
|
|
button:hover {
|
|
background-color: #0077b6;
|
|
}
|
|
|
|
.toggle-btn {
|
|
display: inline-block; /* Assurer que l'élément peut être transformé */
|
|
transition: transform 0.2s ease; /* Transition pour un zoom fluide */
|
|
}
|
|
|
|
.toggle-btn:hover {
|
|
cursor: pointer;
|
|
transform: scale(1.4); /* Agrandir de 1.5x lors du survol */
|
|
}
|
|
|
|
/* ---------------- */
|
|
/* FORMULAIRE */
|
|
/* ---------------- */
|
|
|
|
/* Si tu veux aussi centrer directement dans la section d'ajout */
|
|
.ajout-section {
|
|
display: flex;
|
|
flex-direction: column; /* Permet de garder la structure de la section */
|
|
justify-content: center;
|
|
align-items: center;
|
|
text-align: center;
|
|
margin: 0;
|
|
}
|
|
|
|
#form-ajout-objet,
|
|
#form-ajout-user {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
text-align: center;
|
|
border-radius: 24px;
|
|
background-color: #2c2c2c;
|
|
padding: 40px 100px; /* Augmente l'espace intérieur */
|
|
width: 100%; /* Prend toute la largeur disponible */
|
|
max-width: 400px; /* Définit une largeur max pour éviter qu'elle ne devienne trop étroite */
|
|
box-shadow: 0 4px 8px 0 rgba(21, 21, 21, 0.2);
|
|
margin-bottom: 40px;
|
|
}
|
|
|
|
label {
|
|
font-weight: bold;
|
|
font-size: 20px;
|
|
color: #eff1f3;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
select {
|
|
appearance: none; /* Supprime le style natif */
|
|
background: white;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.form-group {
|
|
width: 100%;
|
|
position: relative; /* Position relative */
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.form-group .icon {
|
|
position: absolute;
|
|
left: 15px; /* Ajuste la position des icônes */
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
}
|
|
|
|
.form-group .icon svg {
|
|
width: 24px;
|
|
height: 24px;
|
|
fill: #191717;
|
|
}
|
|
|
|
.form-control-admin {
|
|
width: 100%;
|
|
padding-left: 50px; /* Remplissage à gauche de 55px */
|
|
padding-right: 40px;
|
|
height: 48px; /* Hauteur de 40px */
|
|
border-radius: 34px; /* Bordure arrondie */
|
|
font-size: 16px; /* Taille de la police */
|
|
letter-spacing: 0.5px; /* Espacement des lettres */
|
|
background-color: #eff1f3; /* Couleur de fond */
|
|
border: none; /* Supprimer la bordure */
|
|
}
|
|
|
|
.form-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px; /* espace entre label et champ */
|
|
flex-wrap: nowrap; /* évite le retour à la ligne */
|
|
}
|
|
|
|
.bouton-admin {
|
|
padding: 10px 20px;
|
|
border-radius: 900px;
|
|
font-size: 16px; /* Taille de la police */
|
|
border-color: #00a8e8;
|
|
color: #eff1f3;
|
|
background-color: #00a8e8;
|
|
margin-top: 0; /* Centrage vertical */
|
|
cursor: pointer;
|
|
}
|
|
|
|
.bouton-admin:hover {
|
|
border-color: #eff1f3;
|
|
color: #00a8e8;
|
|
background-color: #eff1f3; /* Changer la couleur au survol */
|
|
}
|
|
|
|
/* ---------------- */
|
|
/* 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) {
|
|
header {
|
|
padding: 20px 40px;
|
|
}
|
|
|
|
.header_text {
|
|
gap: 25%; /* Plus d'espace entre les liens */
|
|
}
|
|
|
|
h1 {
|
|
font-size: 50px;
|
|
}
|
|
|
|
table {
|
|
margin-bottom: 80px;
|
|
}
|
|
|
|
.footer_link {
|
|
gap: 20%;
|
|
}
|
|
|
|
footer {
|
|
padding: 30px;
|
|
}
|
|
|
|
.bouton_connexion {
|
|
font-size: 18px;
|
|
padding: 12px 25px;
|
|
}
|
|
|
|
#smart_building {
|
|
width: 15%;
|
|
}
|
|
}
|
|
|
|
|
|
/* TABLETTE - Moyenne (1025px à 1440px) */
|
|
@media (max-width: 1440px) and (min-width: 1025px) {
|
|
header {
|
|
padding: 20px 30px;
|
|
}
|
|
|
|
.header_text {
|
|
gap: 20%; /* Moins d'espace entre les liens */
|
|
}
|
|
|
|
h1 {
|
|
font-size: 48px;
|
|
}
|
|
|
|
table {
|
|
margin-bottom: 60px;
|
|
}
|
|
|
|
footer {
|
|
padding: 25px;
|
|
}
|
|
|
|
.footer_link {
|
|
gap: 15%;
|
|
}
|
|
|
|
.bouton_connexion {
|
|
font-size: 16px;
|
|
padding: 10px 22px;
|
|
}
|
|
|
|
#smart_building {
|
|
width: 14%;
|
|
}
|
|
}
|
|
|
|
|
|
/* TABLETTE - Petite (769px à 1024px) */
|
|
@media (max-width: 1024px) and (min-width: 769px) {
|
|
header {
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
padding: 20px;
|
|
gap: 20px;
|
|
}
|
|
|
|
.header_text {
|
|
flex-direction: row;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
gap: 30px;
|
|
}
|
|
|
|
.bouton_connexion {
|
|
padding: 8px 16px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
main {
|
|
flex-direction: column;
|
|
padding: 40px;
|
|
}
|
|
|
|
table {
|
|
margin-bottom: 50px;
|
|
}
|
|
|
|
.footer_link {
|
|
gap: 10%;
|
|
}
|
|
|
|
#smart_building {
|
|
width: 100px;
|
|
margin: 0;
|
|
}
|
|
|
|
footer {
|
|
padding: 20px;
|
|
}
|
|
|
|
.footer_link {
|
|
gap: 10%;
|
|
}
|
|
}
|
|
|
|
|
|
/* 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 {
|
|
flex-direction: column;
|
|
padding: 20px;
|
|
}
|
|
|
|
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;
|
|
}
|
|
|
|
table {
|
|
margin-bottom: 30px;
|
|
}
|
|
}
|
|
|
|
|
|
/* TÉLÉPHONE TRÈS PETIT (≤ 480px) */
|
|
@media (max-width: 480px) {
|
|
main {
|
|
padding: 20px 10px;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 28px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
#smart_building {
|
|
width: 70px;
|
|
}
|
|
|
|
.bouton_connexion {
|
|
font-size: 14px;
|
|
padding: 8px 16px;
|
|
}
|
|
|
|
table {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.footer_link {
|
|
flex-direction: column;
|
|
gap: 8%;
|
|
}
|
|
|
|
footer {
|
|
padding: 15px;
|
|
}
|
|
|
|
.footer_link a {
|
|
padding: 5px 10px;
|
|
}
|
|
|
|
.header_text {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.bouton_connexion {
|
|
font-size: 12px;
|
|
padding: 8px 15px;
|
|
}
|
|
} |