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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(-45deg, rgb(0, 119, 255), white);
    height: 100vh;
}

.container{
    width: 800px;
    height: 600px;
    background-image: linear-gradient(-45deg, rgb(255, 251, 0), rgb(255, 0, 0));
    display: grid;
    grid-template: 100px 300px 100px 100px / repeat(8, 100px);
    margin: 120px auto 0;
    position: relative;
    border: 1px solid #f1f1f1;
    border-radius: 10px;
}

h1{
    /* deb row / deb col / fin row / fin col */
    grid-area: 1 / 1 / 2 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #f1f1f1;

}

.bloc-logo-info{
    grid-area: 2 / 1 / 3 / -1;
    display: flex;
    justify-content: center;
    align-items: center;

}

.bloc-logo{
    width: 50%;
}
.bloc-logo img{
    width: 100%;
    height: auto;
}

.bloc-info {
    width: 50%;

}

.bloc-info .temps{
    font-size: 40px;
}
.bloc-info .temps::first-letter{
    text-transform: capitalize;
}
.bloc-info .temperature{
    font-size: 60px;
}
.bloc-info .localisation {
    font-size: 40px;
    word-wrap: break-word;
}

.heure-bloc-prevision {
    grid-area: 3/1/4/-1;
}
.jour-bloc-prevision {
    grid-area: 4/1/5/-1;
}
.jour-bloc-prevision, .heure-bloc-prevision{
    display: grid;
    grid-template: 100px / repeat(7, 1fr)
}

.bloc-h, .bloc-j{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-top: 1px solid #f1f1f1;
    font-size: 21px;
}

.bloc-h:not(:last-child), .bloc-j:not(:last-child){
    border-right: 1px solid #f1f1f1;
}
.bloc-h p, .bloc-j p{
    margin: 5px;
}

.overlay-icon-chargement{
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgb(59,50,50), rgb(22,28,29));
    z-index: 1000;
    transition: opacity 1.1s ease-out;
    border-radius: 10px;

}

.overlay-icon-chargement img{
    width: 150px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.disparition{
    opacity: 0;
}

.btn-accueil{
    width: 65px;
    height: 65px;
    position: absolute;
    top: 5%;
    right: 5%;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 0 0 rgb(0, 0, 0);
    animation: pulse 1.3s infinite;
    z-index: 100;

}

@keyframes pulse {
    to
    {
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0.01);
    }
}


.btn-accueil .accueil{
    width: 100%;
    height: 100%;
    padding: 0 5px;
    text-decoration: none;
    color: #000000;
    text-align: center;
    line-height: 65px;
}

@media screen and (max-width: 850px) {
    
.container{
    width: 90%;
    max-width: 430px;
    height: auto;
    grid-template: 60px 200px 60px 60px / repeat(8, 12.5%);
}

h1{
    font-size: 1.5rem;
}

.bloc-info .temps{
    font-size: 1.2rem;
}
.bloc-info .temperature{
    font-size: 1.3rem;
}
.bloc-info .localisation {
    font-size: 1.2rem;
}
.jour-bloc-prevision, .heure-bloc-prevision{
    grid-template: 60px / repeat(7, 1fr)
}

.bloc-h, .bloc-j{
    font-size: .8rem;
}
.overlay-icon-chargement{
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgb(59,50,50), rgb(22,28,29));
    z-index: 1000;
    transition: opacity 1.1s ease-out;
    border-radius: 10px;

}

.overlay-icon-chargement img{
    width: 150px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
}