/* Reset des marges et des espacements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, h1, h2, h3, p, div, ul, li, button, input {
    font: inherit;
    vertical-align: baseline;
}

/* Styles de base */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: rgba(106, 14, 76, 0.49); /* Un fond plus clair pour contraster */
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    padding: 20px;
}

nav {
    padding: 3rem 2rem;
    background-color: rgba(27, 5, 34, 0.43);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Ombre sous le nav */
}

nav h1 {
    color: white;
    font-size: 2rem;
}

nav ul {
    list-style: none;
    display: flex;
}

nav li {
    margin-left: 2rem; /* Espacement entre les éléments du menu */
}

nav a {
    text-decoration: none;
    color: white;
    transition: color 0.3s;
}

nav a:hover {
    color: #2196F3; /* Changer la couleur au survol */
}

.chat-container {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px; /* Limiter la largeur pour les grands écrans */
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.chat-box {
    width: 100%;
    height: 200px;
    overflow-y: auto;
    margin-bottom: 1rem;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9; /* Couleur de fond du chat */
}

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

.user {
    background-color: #e1f5fe;
    text-align: right;
}

.bot {
    background-color: #f5f5f5;
}

textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    flex-grow: 1;
    margin-bottom: 1rem; /* Marges pour les éléments */
    transition: border 0.3s;
}

textarea:focus {
    border-color: #2196F3; /* Changer la couleur de la bordure au focus */
}

button {
    background-color: #2196F3;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #1976D2; /* Changer la couleur au survol */
}

.hidden {
    display: none;
}

@media screen and (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: center;
    }

    .chat-container {
        width: 90%;
        margin-top: 5%;
    }

    .chat-box {
        height: 250px;
    }
}
