:root{
    --primary-color: #010F19;
    --lighter-secondary-color: hsla(205, 13%, 70%, 1);
    --secondary-color: hsla(205, 13%, 51%, 1);
    --darker-secondary-color: hsla(205, 13%, 45%, 1);
    --bg-primary: hsla(220, 12%, 95%, 1);
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
*{
    scroll-behavior: smooth;
}
p, a{
    font-family: "MuseoModerno", "Arial", sans-serif;
    text-decoration: none !important;
}
#logo a {
    text-decoration: none;
}
h2{
    font-size: 2.6rem;
    font-family: "Tilt Warp", "Arial", sans-serif;
}
h3{
    font-size: 1rem;
    margin: 0;
    font-family: "MuseoModerno", "Arial", sans-serif;
    font-weight: 400;
}
body {
    background-color: var(--bg-primary);
    margin: 0;
}
#logo{
    width: fit-content;
}
#logo h1 {
    font-family: "Tilt Warp", "Arial", sans-serif;
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    margin: 0 0 0 10px;
    padding: 0;
}
#logo h1 span {
    color: var(--lighter-secondary-color);
    padding: 7px;
    font-size: 1.5rem;
    border-radius: 5px;
}
nav {
    position: absolute;
    right: 0;
    top: 0;
    margin: 0;
    padding: 10px 0;
    width: 100%;
    background-color: var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    margin-right: 20px;
}
nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    padding: 20px;
    width: fit-content;
}
header{
    height: 100vh;
    position: relative;
}
#header_content {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 80%;
    max-width: 1200px;
    margin: 0 0 0 30px;
}
header h1{
    font-family: "Tilt Warp", "Arial", sans-serif;
    color: var(--primary-color);
    max-width: 580px;
    font-size: 5rem;
    position: relative;
    top: 0;
    transform: none;
    margin-bottom: 50px;
}
#imgs_in_rectangle{
    display: flex;
    position: relative;
    bottom: auto;
    width: 50%;
    height: 157px;
    margin: 0;
}
#imgs_in_rectangle img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#imgs_in_rectangle img:first-child{
    border-radius: 20px 0 0 20px;
}
#imgs_in_rectangle img:last-child{
    border-radius: 0 20px 20px 0;
}
header #btn-cta{
    display: flex;
    justify-content: center;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    width: fit-content;
    color: var(--bg-primary);
    background-color: var(--primary-color);
    padding: 15px 30px;
    border-radius: 20px;
    transition: all.3s ease-in-out;
    margin-bottom: 40px;
}
#tendances-container h2 {
    text-align: center;
}
#intro-container{
    max-width: 600px;
    margin: 80px auto;
}
#intro-container h2 {
    text-align: center;
}
p em {
    font-size: 1rem;
    color: var(--darker-secondary-color);
}
#intro-container h3{
    margin: 10px 0;
    font-weight: bold;
}
summary{
    font-size: 1rem;
    font-family: 'Tilt Warp', "Arial", sans-serif;
}
details{
    border: var(--secondary-color) 2px solid;
    padding: 10px 20px;
    border-radius: 20px;
    margin: 0 0 20px 0;
}
.tendances {
    display: flex;
    justify-content: center;
}
.tendance{
    margin: 0 20px;
    background-color: var(--primary-color);
    padding: 10px 40px;
    border-radius: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all .3s ease-in-out;
}
.tendance:hover{
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.25);
}
.flex-line {
    display: flex;
}
.tendance a{
    color: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
    padding: 0;
}
.tendance i{
    margin: 10px 7px;
    color: white;
    font-size: 1rem;
}
.tendance p{
    margin: 10px 0;
}

#morepost a {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    padding: 10px 60px;
    width: fit-content;
    border: 1px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}
#morepost a i{
    font-size: 1rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    position: absolute;
    opacity: 0;
    transition: all.5s ease-in-out;
}
#morepost a:hover i{
    opacity: 1;
    left: 80%;
}
.empty p{
    text-align: center;
}
.empty img {
    display: flex;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}
@media (max-width: 768px) {
    header {
        height: 100dvh;
    }
    header #btn-cta{
        margin-bottom: 70px;
    }
    nav ul li:not(:last-child) {
        display: none;
    }
    #header_content h1{
        font-size: 2.5rem;
        text-align: center;
    }
    #imgs_in_rectangle{
        display: none;
    }
    .tendances{
        flex-direction: column;
    }
    .tendance{
        margin: 10px 20px;
    }
    #intro-container{
        width: 90%;
    }
}