:root{
    --light: white;
    --dark: black;
    --secondary: #E6E6E6;
    --primary: #4A659D;
    --header: #D9E5FF;
    --accent: #9F7927;
}

.ir-header{
    display: flex;
    width: 90%;
    max-width: 1150px;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    margin-top: 133px;
}


@media only screen and (max-width: 1024px) {
    .header-img{
        width: 30%;
    }
    
}
@media only screen and (max-width: 640px) {

    .ir-header{
        display: block;
        margin: 0 auto;
        margin-top: 153px;
    }

    .header-img{
        width: 250px;
        display: block;
        margin: 0 auto;
    }
   
}
/*------Greetings------*/

#greetings{
    padding-bottom: 5rem;
}

.greetings-container{
    display: flex;
    justify-content: space-between;
}

.greetings-container-left{
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 1rem 0;
    width: 100%;
    max-width: 660px;
}

.greetings-title h2{
    margin: 0;
    font-size: 2.5rem;
    color: var(--dark);
    font-weight: bold;
}
.greetings-title h3{
    margin: 0;
    font-size: 1.5rem;
    color: var(--dark);
    font-weight: 200;
}

@media only screen and (max-width: 1024px) {
    .greetings-title h2{
        font-size: 2rem;
    }
    .greetings-title h3{
        font-size: 1.25rem;
    }
    .greetings-container p{
        font-size: 0.8rem;
        width: 80%;;
    }
    
}
@media only screen and (max-width: 768px) {

    .greetings-container{
        display: block;
        margin: 0 auto;
    }

    .greetings-title{
        width: 80%;
        text-align: center;
    }

    .greetings-container-left{
        flex-direction: column;
        align-items: center;
        margin-bottom: 3rem;
    }

    .greetings-container-right img{
        display: block;
        margin: 0 auto;
    }
}

/*------Stock informations------*/

#stock-infos{
    position: relative;
    max-width: none;
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
    padding: 5rem 0;
}

.stock-infos-container{
    width: 90%;
    max-width: 1050px;
    display: flex;
    margin: 0;
}

.stock-infos-bg{
    position: absolute;
    width: 100vw;
    height: 80%;
    background-color: var(--header);
    background-image: url(/assets/section_bg.svg);
    background-size: cover;
    top: 0;
    left: 0;
    z-index: -1;
}
.stock-infos-left{
    width: 50%;
}

.stock-tab{
    width: 100%;
    background-color: var(--secondary);
    border-radius: 15px;
    margin: 0 auto;
}

.stock-tab h3{
    background-color: var(--accent);
    color: var(--light);
    padding: 1rem 0;
    padding-left: 1rem;
    border-radius: 15px;
}

.stock-tab-infos{
    color: var(--dark);
    padding: 1rem 0;
    padding-left: 1rem;
}
.stock-tab-infos p{
    position: relative;
    padding: 0.2rem 0;
    margin-bottom: 2rem;
}

.stock-tab-infos p:not(:last-child)::after {
    content: "";
    position: absolute;
    display: block;
    width: 95%;
    height: 1px;
    background-color: rgb(197, 197, 197); 
    bottom: -1rem;
}

.stock-infos-right{
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: end;
    justify-content: space-between;
}

.stock-infos-explanation{
    display: flex;
    flex-direction: column;
    align-items: end;
    justify-content: space-between;
    gap: 2rem 0;
}

.stock-infos-explanation h3{
    font-size: 2rem;
}

.stock-infos-explanation a, .stock-infos-explanation a:visited{
    color: var(--dark);
}

.inquiry-button a {
    color: var(--light) !important;
    text-decoration: none;
}

@media only screen and (max-width: 1024px) {

    .stock-tab{
        font-size: 0.8rem;
    }

    .message_illust{
        width: 300px;
        height: auto;
    }

    .stock-infos-explanation{
        font-size: 0.8rem;
    }

    .stock-infos-explanation h3{
        font-size: 1.5rem;
    }
}
@media only screen and (max-width: 768px) {
    .stock-infos-container{
        width: 90%;
        max-width: 1050px;
        display: block;
        margin: 0;
    }

    .stock-infos-right, .stock-infos-left{
        width: 100%;
        max-width: 450px;
        margin: 0 auto;
    }

    .stock-infos-left{
        margin-bottom: 3rem;
    }

    .stock-infos-bg{
        height: 90%;
    }
}
