/* Style de base */
body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Container principal */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 10px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Style du header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #3498db;
    color: white;
    padding: 10px;
    border-radius: 8px 8px 0 0;
}

header .header-left,
header .header-right {
    display: flex;
    align-items: center;
}

header .header-left a,
header .header-right a {
    color: white;
    margin: 0 5px;
    font-size: 1.5em;
    text-decoration: none;
}

header .header-center h1 {
    margin: 0;
    font-size: 1.5em;
    color: white;
}

/* Style des colonnes */
.row {
    display: flex;
}

.col-md-4,
.col-md-8 {
    padding: 10px;
}

.col-md-4 {
    flex: 1;
}

.col-md-8 {
    flex: 2;
}

/* Liste des discussions */
.discussion-list {
    height: 80vh;
    overflow-y: auto;
    border-right: 1px solid #ccc;
    padding-right: 10px;
}

.clickable {
    cursor: pointer;
}

.search-input,
.message-text-input {
    font-size: 1.2em;
    padding: 10px;
}

.message-window {
    height: 65vh;
    overflow-y: auto;
    background-color: white;
    padding: 10px;
}

.message-input {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.send-button {
    font-size: 1.2em;
    padding: 10px 20px;
}

/* Style des messages */
.message {
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.message-header {
    font-weight: bold;
}

.message-body {
    margin-top: 5px;
}

.message-footer {
    margin-top: 10px;
    font-size: 0.9em;
    color: #555;
}

/* Conteneur des messages envoyés et reçus */
.message-container {
    display: flex;
    flex-direction: column;
    max-width: 70%;
    padding: 10px;
    border-radius: 10px;
    position: relative;
    word-wrap: break-word;
    margin: 10px 0;
}

.message-container.sent {
    align-self: flex-end;
    background-color: #dcf8c6;
    border-radius: 10px 10px 0 10px;
}

.message-container.received {
    align-self: flex-start;
    background-color: #fff;
    border: 1px solid #ececec;
    border-radius: 10px 10px 10px 0;
}

.message-content {
    margin: 0;
}

.quoted-message {
    background-color: #f0f0f0;
    border-left: 3px solid #34b7f1;
    padding: 5px 10px;
    margin-bottom: 5px;
}

.quoted-user {
    font-weight: bold;
    color: #075e54;
}

.timestamp {
    font-size: 0.8em;
    color: #999;
    position: absolute;
    bottom: -20px;
    right: 10px;
}

.message-container.received .timestamp {
    left: 10px;
}

/* Style du footer */
footer {
    display: flex;
    justify-content: center;
    padding: 10px;
    background-color: #f0f0f0;
    border-top: 1px solid #ddd;
}

/* messagerie_styles.css */
.container {
    margin-top: 20px;
}

.header-left a {
    font-size: 1.5rem;
}

.header-right a {
    font-size: 1.5rem;
    margin-left: 10px;
}

.discussion-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #ccc;
}

.discussion-item:hover {
    background-color: #f1f1f1;
}

.message-window {
    height: 400px;
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 10px;
    background: #fafafa;
}

.message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 5px;
}

.message-header {
    font-weight: bold;
}

.message-body {
    margin: 5px 0;
}

.message-input {
    display: flex;
    align-items: center;
}

.message-text-input {
    flex: 1;
    margin-right: 10px;
}

.send-button {
    flex-shrink: 0;
}

.message.sent {
    background-color: #d4edda;
    align-self: flex-end;
    text-align: right;
}

.message.received {
    background-color: #f8d7da;
    align-self: flex-start;
    text-align: left;
}

.contact-results .user {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 10px;
}

.contact-results .user button {
    margin-left: .projet {
        background-color: #f9f9f9;
        border: 1px solid #ddd;
        border-radius: 5px;
        padding: 20px;
        margin-bottom: 20px;
    }

    .projet h2 {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .projet p {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .projet .btn {
        margin-right: 10px;
    }