@font-face {
    font-family: 'Manrope';
    src: url('https://fonts.google.com/specimen/Manrope');
}

:root{
    --dark-grayish-blue: hsl(217, 19%, 35%);
    --desaturated-dark:hsl(214, 17%, 51%);
    --grayish-blue:hsl(212, 23%, 69%);
    --light-grayish-blue:hsl(210, 46%, 95%);
}
body{
    background-color: var(--light-grayish-blue);
}
.container{
    display: grid;
    grid-template-columns: 50% 50%;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    margin: 10% 20%;
    width: 70%;
    background-color: white;
    border-radius: 10px;
    height: 380px;
}
#picture-side img{
    width: 100%;
    height: 380px;
}
#text-side{
    padding: 5px 5px;
    margin: 5px 40px;  
}
#text-side h1{
    color: var(--dark-grayish-blue);
}
#text-side p{
    color: var(--desaturated-dark);
    padding: 10px 5px;
    margin-right: 5px;
    line-height: 1.5;
    letter-spacing: 1.5px;
}
#footer-side #legend{
    display: block;
}
#footer-side #legend #autor-name{
    color: var(--dark-grayish-blue);
    font-weight: bold;
    margin-top: -65px;
    margin-left: 80px;
    padding-top: 10px;
}
#footer-side #legend #date{
    color: var(--desaturated-dark);
    margin-left: 80px;
    margin-top: -45px;
}
#footer-side #legend #autor-picture{
    border-radius: 100%;
    width: 15%;

}
#footer-side #autor-name #share-button{
    background-color: var(--light-grayish-blue);
    border-radius: 100%;
    border: none;
    padding: 5px;
    margin-top: -900px;
    margin-left: 320px;
}

#sharing-popup{
    position: absolute;
    text-align: center;
    background-color: var(--dark-grayish-blue);
    width: 15%;
    bottom: 50%;
    left: 75%;
    opacity: 1;
    border-radius: 10px;
    text-transform: uppercase;
    color: var(--grayish-blue);
    padding: 10px 25px;
    margin-left: 35px;

}
#sharing-popup::after {
  content: "";
  position: absolute;
  top: 100%; /* positionné en bas du popup */
  left: 45%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: var(--dark-grayish-blue) transparent transparent transparent;
}
#sharing-popup img{
    margin: auto 10px;
}
.hide{
    display: none;
}

.visible{
    display: inline;
    position: relative;
}
@media (max-width:375px) {
   
    .container{
        display: grid;
        grid-template-columns:100%;
        gap: 5px;
        width: 90%;
        font-family: 'Manrope', sans-serif;
        font-size: 13px;
        border-radius: 10px;
        background-color: white;
        margin: 2% 5%;
        height: 80%;

    }
    #picture-side img{
        width: 100%;
        height: 350px;
        border-radius: 10px 10px 0px 0px;
    }
    #text-side{
        padding: 5px 5px;
        margin: 5px 40px; 

    }
    #text-side h1{
        color: var(--dark-grayish-blue);
    }
    #text-side p{
        color: var(--desaturated-dark);
        padding: 10px 5px;
        margin-right: 5px;
        line-height: 1.5;
        letter-spacing: 1.5px;
    }
    #footer-side #autor-name #share-button{
        background-color: var(--light-grayish-blue);
        border-radius: 100%;
        border: none;
        padding: 5px;
        margin-top: -850px;
        margin-left: 150px;
        position: relative;
        z-index: 1;
    }
    #footer-side #legend{
        display: block;
        margin-top: 20px;
    }
    #footer-side #legend #autor-name{
        color: var(--dark-grayish-blue);
        font-weight: bold;
        margin-top: -45px;
        margin-left: 70px;
        padding-top: 10px;
    }
    #footer-side #legend #date{
        color: var(--desaturated-dark);
        margin-left: 70px;
        margin-top: -50px;
    }
    #footer-side #legend #autor-picture{
        border-radius: 100%;
        width: 15%;
    
    }
    .attribution{
        margin-top: 500px;
        text-align: center;
    }


#sharing-popup{
    position: relative;
    text-align: center;
    background-color: var(--dark-grayish-blue);
    bottom: 0%;
    left: 0%;
    opacity: 1;
    border-radius: 0px 0px 10px 10px;
    text-transform: uppercase;
    color: var(--grayish-blue);
    padding: 10px 25px;
    margin-left: 0px;
    width: 85%;
    margin-top: -82px;
    text-align: center;
    height: 50px;

}
#sharing-popup::after {
  content: "";
  position: relative;
  top: 100%; /* positionné en bas du popup */
  left: 45%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: var(--dark-grayish-blue) transparent transparent transparent;
}
#sharing-popup img{
    margin-top: 12px;
}
}