body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    font-family: 'Arial', sans-serif;
}

.container {
    width: 80%;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex: 1;
}

h1 {
    color: #333;
    margin-top: 100px;
    margin-bottom: 0;
    font-size: 2.2em;
    font-weight: normal;
}

.search-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: auto 0;
}

.search-box {
    width: 100%;
    display: flex;
    gap: 10px;
    align-items: center;
}

#searchInput {
    flex: 1;
    padding: 15px 25px;
    font-size: 18px;
    border: none;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#searchInput:focus {
    outline: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

#searchButton {
    padding: 15px 25px;
    font-size: 18px;
    border: none;
    border-radius: 30px;
    background-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

#searchButton:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.results-container {
    width: 100%;
    opacity: 0;
    transition: all 0.5s ease;
    position: relative;
    padding-top: 30px;
    margin-right: 40px;
}

.results-container.visible {
    opacity: 1;
}

.close-button {
    position: absolute;
    top: 0;
    right: -30px;
    background: none;
    border: none;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
    padding: 0;
    line-height: 1;
    z-index: 2;
}

.close-button:hover {
    color: #333;
    transform: rotate(90deg);
}

#resultArea {
    width: 100%;
    height: 500px;
    padding: 20px;
    border: none;
    border-radius: 15px;
    background-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    resize: vertical;
    font-size: 16px;
    line-height: 1.5;
}

#resultArea:focus {
    outline: none;
}

.result-content {
    width: 100%;
    min-height: 300px;
    padding: 20px;
    border: none;
    border-radius: 15px;
    background-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    line-height: 1.5;
    overflow-y: auto;
    text-align: left;
}

.result-content p,
.result-content ul,
.result-content li {
    text-align: left; /* S'assure que tout est bien aligné à gauche */
}

.result-content h2,
.result-content h3 {
    text-align: left; /* S'assure que les titres sont alignés à gauche */
}

/* Styles pour le contenu HTML rendu */
.result-content h2 {
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
}

.result-content h3 {
    color: #444;
    margin-top: 15px;
}

.result-content p {
    margin: 10px 0;
}

.result-content ul {
    padding-left: 20px;
}

.result-content li {
    margin: 5px 0;
}