:root{
    --red-primary: #9D1B1D;
    --bg-gray: #F5FAF6;
    --green-sec: #139E88;
    --black: #000;
    --white: #fff;
    --size-title: 36px;
    --size-medium: 21px;
    --size-normal: 18px;
    --size-nav-links: 14px;
    --size-nav-links-plus: 16px;
}
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

body{
    font-family: 'Montserrat', sans-serif;
    font-size: var(--size-normal);
}

.up-header{
    background-color: var(--bg-gray);
    padding: 1rem 0; 
}
.up-links{
    text-align: right;
}
.up-links a{
    color: var(--black);
    font-weight: 700;
    font-size: var(--size-nav-links-plus);
    display: inline-block;
    margin-left: .75rem;
}
.logo-bl{
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
}
.logo-img{
    max-width: 110px;
    box-shadow: 0 0 5px rgba(119, 119, 119, .65);
    position: relative;
    margin-top: -2.5rem;
}

.brand, .brand:hover{
    color: #000;
    text-decoration: none;
}
.brand{
    padding-right: 1rem;
    vertical-align: middle;
}
.brand .logo-img{
    position: relative;
    top: -1rem;
}
.lg-baseline{
    font-size: var(--size-title);
    font-weight: 700;
    line-height: 1;
    display: inline-block;
}

.h-social-icons{
    text-align: right;
    margin-bottom: 0;
    margin: .5rem 0;
}
.w-header{
    padding: 1.5rem 0 .5rem;
    transition: all .5s;
}

.navbar{
    padding-right: 0;
}
.navbar-nav{
    width: 100%;
    justify-content: flex-end;
}
.navbar-brand{
    display: none;
}
.navbar-nav > .nav-item > .nav-link{
    font-size: 14px;
    font-weight: 600;
    color: #000;
    padding: .5rem .9rem !important;
    margin-bottom: -3px;
}
.navbar-nav > .nav-item.active > .nav-link, .navbar-nav > .nav-item > .nav-link:hover{
    color: var(--red-sec);
}
.navbar-nav > .nav-item:last-child > .nav-link{padding-right: 0!important}
/* .dropdown-menu > .dropdown-item{
    font-size: 14px;
} */
.navbar-collapse .nav-ctgry{
    display: none;
}
.bg-light{
    background-color: transparent !important;
}
.nav-fl{
    padding: 1rem 0;
}
.nav-ctgry{
    display: flex;
    justify-content: space-between;
}
.nav-ctgry-item{
    display: inline-block;
    margin: 0 .125rem;
    text-decoration: none;
    font-size: var(--size-nav-links);
    font-weight: 700;
    color: var(--black);
    border-bottom: 3px solid #000;
}
.nav-ctgry-item:hover, .nav-ctgry-item:focus{
    color: var(--black);
    text-decoration: none;
}
.nav-ctgry-item:nth-child(1){border-bottom-color: #F60F13}
.nav-ctgry-item:nth-child(2){border-bottom-color: #1B9D90}
.nav-ctgry-item:nth-child(3){border-bottom-color: #659D1B}
.nav-ctgry-item:nth-child(4){border-bottom-color: #BCFF00}
.nav-ctgry-item:nth-child(5){border-bottom-color: #9D1B69}
.nav-ctgry-item:nth-child(6){border-bottom-color: #1B289D}



.carsl-img{
    height: 500px;
    width: 100%;
    object-fit: cover;
    object-position: center;
}
.carsl-caption{
    position: absolute;
    color: var(--white);
    top: 20%;
    left: 0;
    width: 100%;
}
.carsl-cptn-in{
    max-width: 500px;
}
.carsl-title{
    font-size: var(--size-title);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* indicators */
.carousel-indicators li {
    width: 15px;
    height: 10px;
    border-radius: 15px;
    border-top: none;
    border-bottom: none;
    opacity: .5;
    -webkit-transition: all 0.6s ease;
    -o-transition: all 0.6s ease;
    transition: all 0.6s ease;
}
.carousel-indicators .active {
    opacity: 1;
    width: 35px;
}

.btn{
    font-weight: 700;
    padding: 0.475rem 1.275rem;
}
.btn-arr::after{
    content: url('../img/white-hor-arrow.svg');
    display: inline-block;
    margin-left: .5rem;
}

.line-title{
    font-size: var(--size-title);
    font-weight: 700;
    line-height: 1;
}
.line-title::after{
    content: url("../img/red-line-title.svg");
    margin-top: -.7rem;
    display: block;
}
.line-title.t-centered{
    text-align: center;
}
.line-title.t-centered::after{
    margin: auto;
    margin-top: -.7rem;
}


#about-sx{
    padding: 3rem 0;
}
.img-about{
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}
.img-about::before{
    content: url("../img/absctract-photo-elt.svg");
    position: absolute;
    opacity: .7;
    top: 35%;
    left: 0;
}
.img-about img{
    width: 100%;
}

#posts-sx{
    padding: 3rem 0;
    background-color: var(--bg-gray);
}

.post-card{
    margin-bottom: 2rem;
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 7px rgba(128, 142, 146, 0.6);
}
.post-card-img{
    height: 240px;
    width: 100%;
    object-fit: cover;
    transition: all .3s;
}
.post-card-img:hover{
    transform: scale(1.1);
}
.post-card-caption{
    padding: 1.5rem 1rem;
    height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.post-card-title{
    font-size: var(--size-medium);
    font-weight: 700;
}

.text-content{
    max-width: 768px;
    margin: 0 auto;
}
.page-content{
    max-width: 991px;
    margin: 0 auto;
}

.link-follow{
    font-size: var(--size-normal);
    text-decoration: none;
    font-weight: 700;
    color: var(--red-primary);
}
.link-follow:hover, .link-follow:focus{
    text-decoration: underline;
}
.link-follow::after{
    content: url("../img/red-hor-arrow.svg");
    display: inline-block;
    margin-left: .25rem;
}

.bld-phr{
    font-weight: 700;
    font-size: var(--size-medium);
    text-align: center;
}

.icons-set{
    margin: 0 auto;
    max-width: 720px;
}
.rs-icon-blck{
    padding: .5rem;
    text-align: center;
}

.rs-icon-blck > i{
    font-size: 4rem;
    color: var(--green-sec);
}
.rs-ttl{
    font-size: var(--size-normal);
    font-weight: 400;
    margin-top: .5rem;
}
.rs-ttl a{
    color: var(--black);
}

.shdl{
    text-align: center;
}
.shdl-ttl{
    font-weight: 700;
    font-size: var(--size-medium);
}
.shdl-time{
    font-size: var(--size-normal);
}

#rdv-sx, #horaire-sx{
    padding: 3rem 0;
}

#black-footer{
    background-color: var(--black);
    color: var(--white);
    padding: 3rem 0 2rem;
    font-size: var(--size-nav-links-plus);
    position: relative;
}
#black-footer hr{
    border-color: var(--white);
}
.centered-links{
    text-align: center;
}
.centered-links a{
    color: var(--white);
    text-decoration: none;
    display: inline-block;
    padding: .125rem .275rem;
}

.ft-plcy{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ft-copy{
    width: 45%;
    margin: 0;
    line-height: 1;
}
.ft-copy a, .ft-copy a:hover, .ft-copy a:focus{
    color: var(--white);
    text-decoration: underline;
}
.ft-lnear{
    width: 55%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.ft-lnear .lst-ft-item{
    line-height: 1;
    padding: 0 1.5rem;
}
.scial-lnks{
    display: flex;
}
.scial-lnks a{
    color: var(--white);
    text-decoration: none;
    display: inline-block;
    margin-left: .85rem;
}
#btn-up{
    border: 2px solid #000;
    border-radius: 12px;
    background-color: var(--white);
    box-shadow: 0 0 7px rgba(119, 119, 119, .45);
    text-align: center;
    height: 40px;
    width: 40px;
    position: absolute;
    top: -1.5rem;
    left: 48.5%;
    margin: 0 auto;
}
#btn-up:focus{
    outline: 0;
}

/* Pages */
#sub-header{
    padding: 2rem 0 1.5rem;
    background-color: var(--black);
    color: var(--white);
}
#sx-pd{
    padding: 2rem 0;
}
.std-img{
    max-width: 887px;
    margin: 1rem auto 2rem;
}
.std-img img{
    width: 100%;
}
.page-title-in, .content-in{
    max-width: 779px;
    margin: 0 auto 1rem;
}
.content-in{
    margin-bottom: 2rem;
}
.page-title{
    font-size: var(--size-medium-plus);
    font-weight: 700;
    margin-bottom: 1rem;
}

.brd-form .form-control{
    border-radius: 0;
    border-color: #aaa;
}
.brd-form .form-control:focus{
    box-shadow: none;
    border-bottom-color: #000;
}
.brd-form textarea.form-control:focus{
    border-color: #000;
}
.brd-form input[type="text"], .brd-form input[type="email"]{
    border: none;
    border-bottom: 1px solid #aaa;
}

.g-maps{
    height:400px;
    background:#aaa;
}

/*Media Queries*/

/* Large devices */
@media screen and (max-width: 1199px) {
    .lg-baseline{
        font-size: calc(var(--size-title ) - 8px);
    }
}

/* Medium devices */
@media screen and (max-width: 991px) {
    .logo-bl{
        display: none;
    }
    .txt-brand{
        font-weight: 700;
        display: inline-block;
        padding-left: .5rem;
    }
    .navbar-toggler{
        border: none;
    }
    .navbar-brand{
        display: inline-block;
    }
    .navbar-brand .logo-img{
        width: 50px;
        margin-top: 0;
    }
    .post-card-title {
        font-size: var(--size-normal);
        font-weight: 700;
    }
    .w-header{
        padding: .35rem 0;
        transition: all .5s;
    }
}

/* small devices */
@media screen and (max-width: 767px) {
    .nav-fl{
        display: none;
    }
    .navbar-collapse .nav-ctgry{
        display: flex;
        flex-direction: column;
        padding: .75rem;
        background-color: var(--bg-gray);
    }
    .nav-ctgry .nav-ctgry-item{
        width: 100%;
        margin-bottom: .35rem;
    }
    .navbar{
        padding-right: 1rem;
    }
    .carsl-img {
        height: 400px;
    }
    .carsl-title{
        font-size: calc(var(--size-title) - 8px);
    }
    .about-caption{
        margin-bottom: 2rem;
    }
    #btn-up{
        left: 47.5%;
    }
    
}
/*Extra small*/
@media screen and (max-width: 575px){
    
    .logo-img{
        box-shadow: none;
    }
    .shdl{
        margin-bottom: 1.5rem;
    }
    .rs-icon-blck > i{
        font-size: 3rem;
    }
    .ft-plcy{
        display: flex;
        flex-direction: column-reverse;
        font-size: var(--size-nav-links);
    }
    .ft-copy{
        width: 100%;
        text-align: center;
    }
    .ft-lnear{
        width: 100%;
        justify-content: center;
        margin-bottom: 1.25rem;
    }
}

@media screen and (max-width: 480px){
    .txt-brand{
        font-size: var(--size-nav-links-plus);
        padding-left: .25rem;
    }
    #btn-up{
        left: 44.5%;
    }
    .up-header{
        padding: .5rem 0; 
    }
    .up-links{
        text-align: center;
    }
    .up-links a{
        font-size: var(--size-nav-links);
    }
    .line-title {
        font-size: calc(var(--size-title) - 6px);
    }
    
}
@media screen and (max-width: 320px){
    .txt-brand{
        font-size: calc(var(--size-nav-links) - 2px);
        padding-left: .25rem;
    }
    .logo-img{
        width: 35px;
    }
}