/**** Importation des polices ****/

@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/**** Reset ****/

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

button,
input {
    border: none;
}

ul {
    list-style-type: none;
}

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

body {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #fff8de;
    padding: clamp(20px, 5vw, 50px) 20px 10px;
    font-family: "Roboto", serif;
}

h1,
footer p {
    text-align: center;
}

h1 {
    font-size: 30px;
    margin-bottom: 50px;
    font-weight: 300;
}

h1 span {
    font-family: "Raleway", sans-serif;
    text-transform: uppercase;
    font-weight: 600;
}

.main__content {
    flex-grow: 1;
}

.container__section {
    max-width: 600px;
    margin: 0 auto;
}

.input__group:nth-child(2) {
    margin-top: 30px;
}

.container__section label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.container__section input {
    display: block;
    width: 100%;
    font-size: 18px;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
}

.container__section input:focus {
    outline: 2px solid #0c8835;
}

.buttons__container {
    display: flex;
    justify-content: center;
    margin-top: 45px;
}

form button {
    font-size: 18px;
    min-width: 100px;
    margin: 0 10px;
    padding: 10px 5px;
    cursor: pointer;
    border-radius: 5px;
    color: #f1f1f1;
    background-color: #0c8835;
    font-family: "Roboto", sans-serif;
    transition: opacity 0.3s ease-out;
}

form button:hover {
    opacity: 0.8;
}

.info__txt {
    font-size: 18px;
    margin-top: 20px;
    text-align: center;
}

.cookies__list {
    font-size: 40px;
    margin: 10px auto;
    padding: 5px 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-gap: 20px;
}

.cookies__list li {
    font-size: 18px;
    padding: 10px;
    border-radius: 5px;
    background-color: #ffffff;
    position: relative;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.cookies__list li p {
    margin: 10px 0;
}

.cookies__list li span {
    font-weight: 600;
}

.cookies__list li button {
    font-size: 12px;
    width: 20px;
    height: 20px;
    border-radius: 5px;
    cursor: pointer;
    position: absolute;
    top: 7px;
    right: 7px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    background-color: #ff0000;
    color: #f1f1f1;
    text-align: center;
}

.toasts__container {
    position: absolute;
    bottom: 50px;
    right: 20px;
}

.toast {
    font-size: 17px;
    color: #f1f1f1;
    padding: 10px;
    margin: 10px 0;
    min-width: 150px;
    border-radius: 4px;
}

footer {
    margin-top: 15px;
}

footer p {
    font-size: 18px;
}