#header__background {
    background-image: url('../IMG/backgroundHeader/Background\ Immo.jpg');
}

#ancre {
    margin-left: var(--leftMargin);
    margin-right: var(--leftMargin);
    margin-bottom: 50px;
    font-size: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}
@media (min-width: 840px) {
    #ancre {
       font-size:  1.1rem;
    }
}

.ancre__item {
    margin-right: 20px;
}

.ancre__selected {
    color: var(--main-red);
}

#firstBlock {
    margin: 10px var(--leftMargin);
}

.firstblock__title {
    margin: auto;
    text-align: center;
    margin-top: 10px;
}
@media (min-width: 840px) {
    .firstblock__title {
        margin-top: 20px;
    }
}

.fisrstBlock__count {
    display: flex;
    justify-content: space-around;
    align-items: center;

}

.firstBlock__item {
    height: 100%;
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
/* @media (min-width: 840px) {
    .firstBlock__item {
        width: 13%;
    }
} */

.firstBlock__img {
    width: 60px;
}
@media (min-width: 840px) {
    .firstBlock__img {
        width: 130px;
    }
}

.firstBlock__title {
    margin-top: 5px;
    color: var(--main-red);
    font-size: 0.8rem;
    margin-bottom: 50px;
}
@media (min-width: 840px) {
    .firstBlock__title {
        margin-top: 20px;
        font-size: 1.3rem;
        margin-bottom: 100px;
    }
}

#secundBlock {
    padding: 10px var(--leftMargin) 0 var(--leftMargin);
}

#secundBlock__content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10%;
    gap: 30px calc(10% - 10px);
    overflow-y: hidden;
    overflow-y: clip;
    padding-top: 10px;
    padding-left: 5px;
}

.secundBlock__item {
    width: 25%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 130px;
}
.secundBlock__image {
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.secundBlock__imageContainer {
    width: 20vw;
    height: 20vw;
    margin-bottom: 20px;
    cursor: pointer;
    position: relative;
}

.secundBlock__imageContainer::before, .secundBlock__imageContainer::after {
    position:absolute; content:' ';
    width:20px; height: 20px;
    border-color:var(--mainDarkBlue); 
    border-style:solid;
}
.secundBlock__imageContainer::before {top:-5px;left:-5px;border-width: 2px 0 0 2px}
.secundBlock__imageContainer::after {bottom:-5px;right:-5px;border-width: 0 2px 2px 0}
@media (min-width: 840px) {
    .secundBlock__imageContainer::before, .secundBlock__imageContainer::after {
        width:80px; height: 80px;
    }
    .secundBlock__imageContainer::before {
       border-width: 4px 0 0 4px;
       top:-10px;
       left:-10px;
    }
    .secundBlock__imageContainer::after {
        border-width: 0 4px 4px 0;
        bottom:-10px;
        right:-10px;
    }
}

.secundBlock__detail {
    font-size: 0.7rem;
    color: black;
}
@media (min-width: 840px) {
    .secundBlock__detail {
        font-size: 1.4rem;
    }
}

.secundBlock__name  {
    text-align: center;
}

.secundBlock__text {
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#secundBlock__more {
    border: 3px solid var(--main-red);
    padding: 10px;
    margin: auto;
    font-size: 0.9rem;
    width: max-content;
    transition-duration: 400ms;
    cursor: pointer;
}
@media (min-width: 840px) {
    #secundBlock__more {
        font-size: 1.4rem;
    }
}

#secundBlock__more:hover {
    background-color: var(--main-red);
}

.blockSeparator {
    width: 30%;
    border-bottom: 2px var(--main-red) solid;
    content: ' ';
    margin: 50px auto 50px auto;
}

.thirdBlock {
    /* background-color: var(--main-red); */
    /* color: white; */
    padding: 10px var(--leftMargin) 10px var(--leftMargin);
}

.thirdBlock__content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px calc(10% - 10px);
    overflow-y: hidden;
    overflow-y: clip;
    padding-top: 10px;
    transition-duration: 250ms;
    padding-left: 5px;
}

.thirdBlock__item {
    width: 25%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.thirdBlock__image {
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.thirdBlock__imageContainer {
    width: 20vw;
    height: 20vw;
    margin-bottom: 20px;
    cursor: pointer;
    position: relative;

}

.thirdBlock__imageContainer::before, .thirdBlock__imageContainer::after {
    position:absolute; content:' ';
    width:20px; height: 20px;
    border-color:var(--mainDarkBlue); 
    border-style:solid;
}
.thirdBlock__imageContainer::before {top:-5px;left:-5px;border-width: 2px 0 0 2px}
.thirdBlock__imageContainer::after {bottom:-5px;right:-5px;border-width: 0 2px 2px 0}

@media (min-width: 840px) {
    .thirdBlock__imageContainer::before, .thirdBlock__imageContainer::after {
        width:80px; height: 80px;
    }
    .thirdBlock__imageContainer::before {
        top:-10px;
        left:-10px;
        border-width: 4px 0 0 4px
    }
    .thirdBlock__imageContainer::after {
        border-width: 0 4px 4px 0;
        bottom:-10px;
        right:-10px;
    }
}

.thirdBlock__detail {
    font-size: 0.7rem;
    color: black;
    cursor: pointer;
}
@media (min-width: 840px) {
    .thirdBlock__detail {
        font-size: 1.4rem;
    }
}

.thirdBlock__name {
    /* color: white; */
    font-size: 0.9rem;
    font-weight: 100;
    text-transform: uppercase;
    cursor: pointer;
    color: var(--main-red);
    text-align: center;
}
@media (min-width: 840px) {
    .thirdBlock__name {
        font-size: 1.4rem;
    }
}

.thirdBlock__more {
    border: 3px solid var(--main-red);
    padding: 10px;
    margin: auto;
    font-size: 0.9rem;
    width: max-content;
    color: black;
    /* margin-bottom: 50px; */
    transition-duration: 400ms;
    cursor: pointer;
}
@media (min-width: 840px) {
    .thirdBlock__more {
        font-size: 1.4rem;
    }
}

.thirdBlock__more:hover {
    background-color: var(--main-red);
}

.thirdBlock__text {
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#thirdBlock__title {
    /* color: white; */
    font-size: 1.6rem;
    font-weight: 100;
    text-transform: uppercase;
}

#fourthBlock__title {
    padding: 10px 55% 10px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

#fourthBlock__firstBlock {
    display: flex;
    margin-bottom: 80px;
}

#fourthBlockFirstBlock__img {
    height: auto;
    width: 45%;
    margin-right: var(--leftMargin);
    background-image: url('../IMG/sean-pollock-PhYq704ffdA-unsplash.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

#fourthBlockFirstBlock__content {
    width: 45%;
    margin-right: var(--leftMargin);
    padding-top: 50px;
    padding-bottom: 50px;
    
}

.fourthBlockFirstBlock__title {
    color: var(--main-red);
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 100;
}
@media (min-width: 840px) {
    .fourthBlockFirstBlock__title {
        font-size: 1.8rem;
    }
}

#fourthBlock__secundBlock {
    display: flex;
    margin-bottom: 80px;
}

#fourthBlockSecundBlock__img {
    height: auto;
    width: 45%;
    margin-left: var(--leftMargin);
    background-image: url('../IMG/immobilier/Photo\ Immo\ RO.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

#fourthBlockSecundBlock__content {
    width: 45%;
    margin-left: var(--leftMargin);
    padding-top: 50px;
    padding-bottom: 50px;
    text-align: left;
    
}

.fourthBlockSecundBlock__title {
    color: var(--main-red);
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 100;
}
@media (min-width: 840px) {
    .fourthBlockSecundBlock__title {
        font-size: 1.8rem;
    }
}

.fourthBlockSecundBlock__text {
    margin-bottom: 40px;
    font-size: 0.6rem;
    font-weight: 200;
}
@media (min-width: 840px) {
    .fourthBlockSecundBlock__text {
        font-size: 1.2rem;
    }
}

.fourthBlockFirstBlock__text {
    margin-bottom: 40px;
    font-size: 0.6rem;
    font-weight: 200;
}
@media (min-width: 840px) {
    .fourthBlockFirstBlock__text {
        font-size: 1.2rem;
    }
}

popup {
    position: fixed;
    z-index: 100;
    height: 100%;
    width: 100%;
    top: 0;
    display: none;
    transition-duration: 250ms;
    opacity: 0;
}

#popup__background {
    position: fixed;
    z-index: 110;
    height: 100vh;
    width: 100vw;
    background-color: rgba(0, 0, 0, 0.7);
}

#popup__content {
    position: fixed;
    height: 80vh;
    width: 80vw;
    background-color: white;
    z-index: 120;
    top: 10vh;
    right: 10vw;
    overflow-y: scroll;
}
@media (min-width: 840px) {
    #popup__content {
        right: 25vw;
        width: 50vw;
        height: 90vh;
        top: 5vh;
    }
}

#popup__close {
    position: absolute;
    right: 0;
    /* background-color: rgba(255, 0, 0, 0.5); */
    padding: 10px;
    color: rgba(255, 0, 0, 0.5);
    font-size: 2rem;
    transition-duration: 250ms;
    text-align: center;
    width: 40px;
    height: 40px;
}

#popup__close:hover {
    color: red;
    cursor: pointer;
}

.popupContent {
    margin: 40px 20px;
}

.popupContent__title {
    text-transform: uppercase;
    color: red;
    font-size: 1.2rem;
}
@media (min-width: 840px) {
    .popupContent__title {
        font-size: 2.2rem;
    }
}

.popupContent__size {
    text-transform: uppercase;
    color: var(--mainDarkBlue);
    font-size: 1rem;
}
@media (min-width: 840px) {
    .popupContent__size {
        font-size: 1.7rem;
    }
}

.popupContent__position {
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: lighter;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
@media (min-width: 840px) {
    .popupContent__position {
        font-size: 1.6rem;
    }
}

.popupContent__gps {
    width: 25px;
    height: 25px;
    background-image: url(../IMG/icons/gps.png);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}
@media (min-width: 840px) {
    .popupContent__gps {
        width: 45px;
        height: 45px;
    }
}

.popupContent__firstLine {
    display: flex;
    height: 200px;
}
@media (min-width: 840px) {
    .popupContent__firstLine {
        height: 400px;
    }
}

.popupContent__swiper {
    width: 50%;
    height: 100%;
    /* border: 4px solid red; */
    overflow: hidden;
    position: relative;
    box-shadow: 3px 3px 10px gray;
}

.swiper-button {
    color: white !important;
}
.popupContent__informationContainer {

    padding-left: 10px;
    width: 50%;
    height: 100%;
    border-left: 0;
    color: var(--mainDarkBlue);
    position: relative;
    margin-left: 3px;
}
.popupContent__information {
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    padding-bottom: 5px;
}

.popupContent__informationContainer::before, .popupContent__informationContainer>:first-child::before {
    position:absolute; content:' ';
    width:80px; height: 80px;
    border-color:var(--mainDarkBlue); 
    border-style:solid;
}
.popupContent__informationContainer::before {top:0;left:0;border-width: 4px 0 0 4px}
.popupContent__informationContainer>:first-child::before {bottom:-5px;right:-5px;border-width: 0 4px 4px 0}

.informations__title {
    margin-top: 10px;
    margin-bottom: 5px;
    font-size: 0.6rem;
    text-decoration: underline;
}
@media (min-width: 840px) {
    .informations__title {
        font-size: 1.3rem;
    }
}

.informations__content {
    font-size: 0.5rem;
    font-weight: lighter;
    color: var(--mainDarkBlue);
}
@media (min-width: 840px) {
    .informations__content {
        font-size: 1.1rem;
    }
}
.popupContent__description::before {
    content: " ";
    width: 80%;
    border-top: 2px solid var(--main-red);
    position: absolute;
    margin-left: 3%;
}
.popupContent__description {
    /* color: white; */
    /* background-color: var(--mainDarkBlue); */
    margin-top: 20px;
    height: auto;
    font-size: 0.7rem;
    padding: 5px;
    /* opacity: 0.4; */
    font-weight: lighter;
    color: var(--mainDarkBlue);
    text-align: justify;
}
@media (min-width: 840px) {
    .popupContent__description {
        font-size: 1.3rem;
    }
    .popupContent__description::before {
        border-width: 3px;
        margin-left: 5%;
    }
}

.popupImage {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}