@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;700&display=swap');

:root {
    --white: #fff;
    --black: #000;
    --bleu: #26c4ec;
    --violet: #9115a1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    text-align: center;
    min-height: 100vh;
    background: url(./images/background.jpg);
    background-size: cover;
    background-position: center;
}

.titre {
    padding-top: 50px;
    text-align: center;
}

.titre h1 {
    font-size: 2rem;
    color: var(--white);
}

.titre p {
    font-size: 1rem;
    color: var(--white);
}

.animated-line {
    width: 120px;
    height: 3px;
    margin: 10px auto 20px;
    background: linear-gradient(90deg, #fff, #000, #fff);
    background-size: 200% auto;
    animation: slideLine 2s linear infinite;
    border-radius: 2px;
}

@keyframes slideLine {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

.big-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
}

.container {
    width: 100%;
    height: 70vh;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 2rem;
    padding: 2rem;
    color: #fff;
    position: relative;
}

.search-box {
    position: relative;
    width: 100%;
    height: 55px;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 10px;
    font-size: 28px;
}

.search-box input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    outline: none;
    border-radius: 10px;
    font-size: 1.2rem;
    color: #fff;
    font-weight: 500;
    text-transform: uppercase;
    padding: 0 48px 0 42px;
}

.search-box input::placeholder {
    color: #fff;
    text-transform: capitalize;
    font-size: 1rem;
}

.search-box button {
    position: absolute;
    right: 0;
    width: 40px;
    height: 100%;
    border: none;
    outline: none;
    font-size: 28px;
    color: var(--white);
    cursor: pointer;
    border-radius: 50%;
    background: transparent;
}

.weather-box {
    text-align: center;
    margin: 40px 0;
}

.weather-box img {
    width: 50%;
}

.weather-box .temperature {
    position: relative;
    font-size: 64px;
    font-weight: 700;
    margin: 20px 0 6px -30px;
}

.weather-box .temperature span {
    position: absolute;
    font-size: 24px;
    margin-left: 4px;
}

.weather-box .description {
    font-size: 22px;
    font-weight: 500;
    text-transform: capitalize;
}

.weather-details {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
}

.weather-details .humidity,
.weather-details .wind {
    display: flex;
    align-items: center;
    width: 50%;
    justify-content: center;
}

.weather-details i {
    font-size: 56px;
    margin-right: 10px;
}

.weather-details span {
    display: inline-block;
    font-size: 22px;
    font-weight: 500;
}

.weather-details p {
    font-size: 14px;
    font-weight: 500;
}



.copyright p { color: var(--white);}
.copyright span { color: var(--white);}

@media screen and (max-width: 768px) {
    .titre h1 {
        font-size: 1.5rem;
        margin-top: 50px;
    }

    .titre p {
        font-size: 0.9rem;
        padding: 0 1rem;
    }

    .container {
        padding: 1.5rem;
        height: auto;
    }

    .search-box input {
        font-size: 1rem;
    }

    .weather-box .temperature {
        font-size: 48px;
        margin-left: -15px;
    }

    .weather-box .temperature span {
        font-size: 18px;
    }

    .weather-box .description {
        font-size: 18px;
    }

    .weather-details {
        
        gap: 1rem;
        bottom: 20px;
        position: relative;
        margin-top: 20px;
    }

    .weather-details .humidity,
    .weather-details .wind {
        justify-content: center;
    }

    .weather-details i {
        font-size: 36px;
    }
}
