/**** Importation de la police "Alan Sans" ****/

@import url('https://fonts.googleapis.com/css2?family=Alan+Sans:wght@300..900&display=swap');

/**** Reset ****/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

input,
button {
    border: none;
    outline: none;
}

a {
    text-decoration: none;
}

/**** Style général de la page ****/

body {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fffffe;
    font-family: "Alan Sans", sans-serif;
}

header,
footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    color: #181818;
}

header h1 {
    text-align: center;
    font-size: 30px;
    text-transform: uppercase;
    font-weight: 700;
}

.main__content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    max-width: 820px;
    width: 100%;
    padding: 0 15px;
}

.container {
    width: 100%;
}

.wiki__logo {
    width: clamp(20px, 25vw, 250px);
    display: block;
    margin: 30px auto;
}

.search__form {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    width: 100%;
    overflow: hidden;
    margin-bottom: 16px;
    transition: all 0.3s ease-in-out;
}

.search__form input {
    display: block;
    appearance: none;
    -webkit-appearance: none;
    background-color: #2e2e2e;
    color: #fffffe;
    padding: 15px;
    border-radius: 12px;
    font-size: 16px;
    width: 100%;
    transition: transform 0.3s ease-in-out;
}

.search__form:focus-within {
    transform: translateY(-3px);
}

.result__counter {
    font-size: 18px;
    color: #181818;
    font-weight: bold;
}

.results {
    width: 100%;
}

.result {
    width: 100%;
    padding: 15px;
    margin: 20px 0;
    background-color: #2e2e2e;
    border-radius: 14px;
    will-change: transform;
    transition: box-shadow 0.3s ease-in-out,
        transform 0.3s ease-in-out;
}

.result:hover {
    box-shadow: 0 1px 6px 0 rgba(32, 33, 36, 0.69s);
    transform: scale(1.02);
}

.result h2 {
    color: #fffffe;
    text-align: center;
    font-size: 28px;
    margin-bottom: 15px;
}

.result p {
    color: #ddd6d6;
    font-size: 18px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.result a {
    display: inline-block;
    padding: 12px;
    width: 100%;
    background-color: #50c4cf;
    color: #fffffe;
    text-align: center;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.3s ease-in-out;
}

.result a:hover {
    background-color: #56d0db;
}

.footer__text {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}