/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f9f9f7; /* Blanc cassé */
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 800px;
    padding: 2rem;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border-radius: 12px;
    text-align: center;
}

header h1 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

header p {
    color: #7f8c8d;
    margin-bottom: 2rem;
}

/* Search Box */
.search-box {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    align-items: center;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 400px;
}

.input-group .icon {
    position: absolute;
    left: 12px;
    font-size: 1.2rem;
    pointer-events: none;
}

.input-group input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: #90ee90; /* Light green focus */
}

button#viewBtn {
    padding: 12px 24px;
    background-color: #90ee90; /* Vert clair */
    color: #2c3e50;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

button#viewBtn:hover {
    background-color: #7fdd7f;
}

button#viewBtn:active {
    transform: scale(0.98);
}

/* Result Area */
.result-area {
    background-color: #f0f0f0; /* Gris clair */
    border-radius: 8px;
    padding: 2rem;
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border: 1px dashed #ccc;
}

.placeholder-text {
    color: #999;
    font-style: italic;
}

#resultText {
    text-align: left;
    white-space: pre-wrap;
    word-break: break-all;
    font-family: 'Courier New', Courier, monospace;
    width: 100%;
    max-height: 500px;
    overflow-y: auto;
}
