/* Styles de base */ :root { --primary-color: #3A506B; /* Bleu métallique */ --secondary-color: #B0BEC5; /* Gris acier */ --accent-color: #D68C45; /* Cuivre */ } body { font-family: Arial, sans-serif; margin: 0; padding: 0; } /* 4NK NAVBAR */ .brand-logo { text-align: center; font-size: 1.5em; font-weight: bold; } .nav-wrapper { position: fixed; background: radial-gradient(circle, white, var(--primary-color)); display: flex; justify-content: space-between; align-items: center; color: #37474F; height: 9vh; width: 100vw; left: 0; top: 0; box-shadow: 0px 8px 10px -5px rgba(0, 0, 0, .2), 0px 16px 24px 2px rgba(0, 0, 0, .14), 0px 6px 30px 5px rgba(0, 0, 0, .12); } /* Icônes de la barre de navigation */ .nav-right-icons { display: flex; } .notification-bell, .burger-menu { height: 20px; width: 20px; margin-right: 1rem; cursor: pointer; } .notification-container { position: relative; /* Conserve la position pour le notification-board */ display: inline-flex; align-items: center; } .notification-board { position: absolute; /* Position absolue pour le placer par rapport au container */ top: 40px; right: 0; background-color: white; border: 1px solid #ccc; padding: 10px; width: 200px; max-height: 300px; overflow-y: auto; /* Scroll si les notifications dépassent la taille */ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); z-index: 10; /* Définit la priorité d'affichage au-dessus des autres éléments */ display: none; /* Par défaut, la notification est masquée */ } .notification-item{ cursor: pointer; } .notification-badge { position: absolute; top: -18px; right: 35px; background-color: red; color: white; border-radius: 50%; padding: 4px 8px; font-size: 12px; display: none; /* S'affiche seulement lorsqu'il y a des notifications */ z-index: 10; } /* Par défaut, le menu est masqué */ #menu { display: none; /* Menu caché par défaut */ transition: display 0.3s ease-in-out; } .burger-menu { cursor: pointer; } /* Icône burger */ #burger-icon { cursor: pointer; } .menu-content { display: none; position: absolute; top: 3.4rem; right: 1rem; background-color: white; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); border-radius: 5px; overflow: hidden; } .menu-content a { display: block; padding: 10px 20px; text-decoration: none; color: #333; border-bottom: 1px solid #e0e0e0; &:hover { background-color: rgba(26, 28, 24, .08); } } .menu-content a:last-child { border-bottom: none; } /* Ajustement pour la barre de navigation fixe */ .container { display: flex; flex: 1; height: 90vh; margin-top: 9vh; margin-left: -1%; text-align: left; width: 100vw; } /* Liste des groupes */ .group-list { width: 25%; background-color: #1f2c3d; color: white; padding: 20px; box-sizing: border-box; overflow-y: auto; border-right: 2px solid #2c3e50; flex-shrink: 0; padding-right: 10px; height: 91vh; } .group-list ul { cursor: pointer; list-style: none; padding: 0; padding-right: 10px; margin-left: 20px; } .group-list li { margin-bottom: 20px; padding: 15px; border-radius: 8px; background-color: #273646; cursor: pointer; transition: background-color 0.3s, box-shadow 0.3s; } .group-list li:hover { background-color: #34495e; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); } .group-list .member-container { position: relative; } .group-list .member-container button { margin-left: 40px; padding: 5px; cursor: pointer; background: var(--primary-color); color: white; border: 0px solid var(--primary-color); border-radius: 50px; position: absolute; top: -25px; right: -25px; } .group-list .member-container button:hover { background: var(--accent-color) } /* Zone de chat */ .chat-area { display: flex; flex-direction: column; flex: 1; min-width: 0; background-color:#f1f1f1; border-radius: 10px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5); margin: 1% 0% 0.5% 1%; } /* En-tête du chat */ .chat-header { background-color: #34495e; color: white; padding: 15px; font-size: 20px; font-weight: bold; border-radius: 10px 10px 0 0; text-align: center; } /* Messages */ .messages { flex: 1; padding: 20px; overflow-y: auto; background-color: #f1f1f1; border-top: 1px solid #ddd; } .message-container { display: flex; margin: 8px; } .message-container .message { align-self: flex-start; } .message-container .message.user { align-self: flex-end; margin-left: auto; color: white; } .message { max-width: 70%; padding: 10px; border-radius: 12px; background:var(--secondary-color); margin: 2px 0; } /* Messages de l'utilisateur */ .message.user { background: #2196f3; color: white; } .message-time { font-size: 0.7em; opacity: 0.7; margin-left: 0px; margin-top: 5px; } /* Amélioration de l'esthétique des messages */ /* .message.user:before { content: ''; position: absolute; top: 10px; right: -10px; border: 10px solid transparent; border-left-color: #3498db; } */ /* Zone de saisie */ .input-area { padding: 10px; background-color: #bdc3c7; display: flex; align-items: center; border-radius: 10px; margin: 1%; /* Alignement vertical */ } .input-area input[type="text"] { flex: 1; /* Prend l'espace restant */ padding: 10px; border: 1px solid #ccc; border-radius: 5px; } .input-area .attachment-icon { margin: 0 10px; cursor: pointer; display: flex; align-items: center; } .input-area button { padding: 10px; margin-left: 10px; background-color: #2980b9; color: white; border: none; border-radius: 5px; cursor: pointer; } .input-area button:hover { background-color: #1f608d; } .tabs { display: flex; margin: 20px 0px; gap: 10px; } .tabs button { padding: 10px 20px; cursor: pointer; background: var(--primary-color); color: white; border: 0px solid var(--primary-color); margin-right: 5px; border-radius: 10px; } .tabs button:hover { background: var(--secondary-color); color: var(--primary-color); } /* Signature */ .signature-area { display: flex; flex-direction: column; flex: 1; min-width: 0; background-color:#f1f1f1; border-radius: 10px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5); margin: 1% 0% 0.5% 1%; transition: all 1s ease 0.1s; visibility: visible; } .signature-area.hidden { opacity: 0; visibility: hidden; display: none; pointer-events: none; } .signature-header { display: flex; align-items: center; justify-content: center; background-color: var(--primary-color); color: white; border-radius: 10px 10px 0 0; padding-left: 4%; } .signature-content { padding: 10px; background-color: var(--secondary-color); color: var(--primary-color); height: 100%; border-radius: 10px; margin: 1%; display: flex; flex-direction: column; align-items: center; } .signature-description { height: 20%; width: 100%; margin: 0% 10% 0% 10%; overflow: auto; display: flex; } .signature-description li { margin: 1% 0% 1% 0%; list-style: none; padding: 2%; border-radius: 10px; background-color: var(--primary-color); color: var(--secondary-color); width: 20%; text-align: center; cursor: pointer; font-weight: bold; margin-right: 2%; overflow: auto; } .signature-description li .member-list { margin-left: -30%; } .signature-description li .member-list li { width: 100%; } .signature-description li .member-list li:hover { background-color: var(--secondary-color); color: var(--primary-color); } .signature-documents { height: 80%; width: 100%; margin: 0% 10% 0% 10%; overflow: auto; display: flex; } .signature-documents-header { display: flex; width: 100%; height: 15%; align-items: center; } #request-document-button { background-color: var(--primary-color); color: white; border: none; border-radius: 10px; padding: 8px; cursor: pointer; margin-left: 5%; font-weight: bold; } #request-document-button:hover { background-color: var(--accent-color); font-weight: bold; } #close-signature { cursor: pointer; align-items: center; margin-left: auto; margin-right: 2%; border-radius: 50%; background-color: var(--primary-color); color: white; border: none; padding: -3%; margin-top: -5%; font-size: 1em; font-weight: bold; } #close-signature:hover { background-color: var(--secondary-color); color: var(--primary-color); } /* REQUEST MODAL */ .request-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); display: flex; justify-content: center; align-items: center; z-index: 1000; } .modal-content { background-color: var(--secondary-color); padding: 20px; border-radius: 8px; position: relative; min-width: 300px; } .close-modal { position: absolute; top: 10px; right: 10px; border: none; background: none; font-size: 1.5em; cursor: pointer; font-weight: bold; } .close-modal:hover { color: var(--accent-color); } .modal-members { display: flex; justify-content: space-between; } .modal-members ul li{ list-style: none; } .file-upload-container { margin: 10px 0; } .file-list { margin-top: 10px; } .file-item { display: flex; justify-content: space-between; align-items: center; padding: 5px; margin: 5px 0; background: var(--background-color-secondary); border-radius: 4px; } .remove-file { background: none; border: none; color: var(--text-color); cursor: pointer; padding: 0 5px; } .remove-file:hover { color: var(--error-color); } #message-input { width: 100%; height: 50px; resize: none; padding: 10px; box-sizing: border-box; overflow: auto; max-width: 100%; border-radius: 10px; } /* Responsive */ @media screen and (max-width: 768px) { .group-list { display: none; /* Masquer la liste des groupes sur les petits écrans */ } .chat-area { margin: 0; } } ::-webkit-scrollbar { width: 5px; height: 5px; } ::-webkit-scrollbar-track { background: var(--primary-color); border-radius: 5px; } ::-webkit-scrollbar-thumb { background: var(--secondary-color); border-radius: 5px; } ::-webkit-scrollbar-thumb:hover { background: var(--accent-color); }