/*
Theme Name: Roger Caron
Author: MrAlexPouliot
Author URI: https://www.mralexpouliot.com/
Description: Blogue Roger Caron theme
Version: 1.0
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
*/

/* GENERAL */
html, body{
    width:100%;
    margin:0px;
    font-family: "Roboto", sans-serif;
    font-size:1rem;
    font-weight:300;
    line-height:1.5;
    color:#333333;
    background-color: #004544;
}

h1{
    font-size:2.5rem;
    font-weight:500;
    line-height:1.25;
    margin:0 0 2rem 0;
    color:#004544;
}
main{
    width:100%;
    max-width:1920px;
    margin:0 auto;
}
h1::after{
    content:"";
    margin-top:1.5rem;
    width:10rem;
    display:block;
    border-top:5px solid #aad038;
}
h2{
    font-size:2rem;
    font-weight:500;
    line-height:1.25;
    margin:0 0 2rem 0;
    color:#004544;
}
h2.center{
    text-align:center;
    margin:0 auto 2rem auto;
}
body:not(.single-post) h2::after{
    content:"";
    width:10rem;
    display:block;
    margin:1.5rem auto 0 0;
    border-top:5px solid #aad038;
}
h2.center::after{
    margin:1.5rem auto 0 auto;
}
h1+h2{
    font-size:1.5rem;
    color:#333333;
}
h1+h2::after{
    border:none;
}

.single-post h2{
    margin-top:2rem;
    margin-bottom:1rem;
    font-size:1.5rem;
    font-weight:400;
    line-height:1.25;
    color:#004544;
}

h3{
    margin-top:2rem;
    margin-bottom:1rem;
    font-size:1.2rem;
    font-weight:400;
    line-height:1.25;
    color:#004544;
}
h3>span{
    display:block;
    font-size:1.75rem;
    font-weight:500;
}
a{
    color:#333333;
    text-decoration:none;
}
.ctabt{
    display:inline-block;
    padding:0.5rem 1rem;
    position: relative;
    border-radius: 0px;
    border:2px solid #aad038;
    background-color: transparent;
    color:#333333;
    font-size:1rem;
    font-weight:400;
    text-decoration:none;
	transition: all 0.3s;
    overflow: hidden;
    cursor: pointer;
    z-index:2;
}

.ctabt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #aad038;
    z-index: -1;
    transition: width 0.3s ease;
}
.ctabt:hover::before {
    width: 100%;
}
.ctabt span {
    position: relative;
    z-index: 1;
}


/* BANNER */
.header-container{
    width:100%;
    height:300px;
    position:relative;
    display:flex;
    flex-direction:column;
    background:url("assets/images/banniere.jpg");
    background-size:cover;
    background-position:center;
}

.header-container .topnav{
    width:100%;
    display:flex;    
    background: linear-gradient(
        to right,
        transparent 50%,
        rgba(20, 67, 67, 0.8) 100%
    );
}
.header-container .topnav>div{
    width:100%;
    max-width:1920px;
    margin:0 auto;
    display:flex;
    justify-content:flex-end;
}

.header-container .topnav a{
    display:flex;
    align-items:center;
    font-size:0.9rem;
    font-weight:200;
    margin:0.5rem;
    color:#ffffff;
	transition: all 0.8s;
}
.header-container .topnav a:last-child {
    margin-right:4rem;
}

.header-container .topnav a:hover{
    transform: scale(1.05);
}
.header-container .topnav a.ico-mail::before,
.header-container .topnav a.ico-prop::before,
.header-container .topnav a.ico-web::before{
    content:"";
    width:1rem;
    height:1rem;
    margin-right:0.5rem;
    display:flex;
}
.header-container .topnav a.ico-mail::before{
    background:url("assets/images/email.svg") no-repeat center / contain;
}
.header-container .topnav a.ico-web::before{
    background:url("assets/images/home.svg") no-repeat center / contain;
}
.header-container .topnav a.ico-prop::before{
    background:url("assets/images/prop.svg") no-repeat center / contain;
}

.header-container .banner{
    flex:1;
    width:100%;
    height:100%;
    max-width:1920px;
    margin:0 auto;
    display:flex;
    align-items:center;
    position:relative;
}
.header-container .banner .logo{
    width:15rem;
    height:100%;
    display:flex;
    margin-left:4rem;
    align-items:center;
    position:relative;
    z-index:2;
}
.header-container .banner .logo img{
    width:100%;
}
.header-container .banner p{
    flex:1;
    margin-right:4rem;
    text-align:right;
    font-size:2rem;
    font-weight:200;
    color:#fff;
}

/* Navigation */
.navprincipal{ 
    width:100%;
    height:2.75rem;
    display:flex;
}
.navprincipal::before,
.navprincipal::after{
    content:"";
    flex:1;
    min-width:4rem;
    display:flex;
}
.navprincipal::before{
    background:#aad038;
}
nav{ 
    width:100%;
    height:100%;
    max-width:calc(1920px - 8rem);
    display:flex;
    align-items:center;
    position:relative;
}
nav a{
    display: flex;
    align-items: center;
    color: #ffffff;
    font-weight: 300;
    line-height: 1.75rem;
    padding: 0.5em 1rem 0.5rem 0;
    background-color: rgba(15, 92, 92, 0);
	transition: all 0.8s;
}
.more-btn {
    width:2rem;
    height:100%;
    display: flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:0.25rem;
    border:0px;
    cursor: pointer;
    background: none;
    color: #ffffff;
    background-color: #aad038;
    font-size: 20px;
    z-index:0;
    transition: gap 0.5s;
}
.more-btn span {
    width: 100%;
    height: 3px;
    display: inline-block;
    background-color: #333333;
}

.more-btn:hover {     
    gap:0.5rem;
}


.more-btn span {
    transition: 0.3s ease;
}



nav .header-menu-desktop{
    width:100%;
    max-width: 1920px;
    display: flex;
    align-items:center;
    justify-content:flex-start;
}

nav .header-menu-desktop,
nav .header-menu-desktop li{
    height:100%;
}

nav .header-menu {
    min-width: 180px;
    overflow:hidden;
    display: none;
    flex-direction:column;
    align-items:flex-start;
    position: absolute;
    top: 100%;
    left: 0rem;
    background-color:#025454;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
nav .header-menu,
nav .header-menu li,
nav .header-menu-desktop,
nav .header-menu-desktop li{
    margin:0px;
    padding:0px;
   list-style-type:none;
}


nav .header-menu li:not(.fixed){
    display:none;
}


nav .header-menu.is-open {
    display: flex;
}

nav .header-menu-desktop a{
    height:calc(100% - 1rem);
    display:flex;
    align-items:center;
    color:#ffffff;
    font-weight:300;  
    line-height:1rem;
    padding:0.5em 1rem;
    background-color:#025454;
}    
nav .header-menu-desktop li:not(.current) a:hover{   
    color:#ffffff;
    padding:0.5rem 1.5rem;
    background-color:#1a6465;
} 
nav .header-menu-desktop a::after{
    content:"";
    width:1rem;
    height:1rem;
    margin-left:1rem;
    display:flex;
    background:url("assets/images/arrow-right-white.svg") no-repeat;
    background-position:contain;

}
nav .current a {    
    background-color:#2a7678;
}
nav .header-menu li {
    width:100%;
}

nav .header-menu a {
    width:100%;
    padding: 8px 12px;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

nav .header-menu li:not(.current) a:hover {
    margin-right:0;
    color: #fff;
    background: #1a6465;
}




/* Layout */
.layout{
    padding:4rem 0;
    background-color:#e2e2e2;
}
.layout>.inner{
    max-width:1920px;
    margin:0 auto;
    display:flex;
    gap:4rem;
    align-items:flex-start;
}
main{
    flex:1;
    margin-left:4rem;
}


/* Sidebar */
.sidebar{
    width:400px;
    margin:0 4rem 0 0;
    padding:0 2rem 2rem 2rem;
    background-color:#d4d4d4;
}
.sidebar .featured-properties .inner{
    width:100%;
    display:flex;
    flex-direction:column;
    gap:2rem;
}
.wp-singular .sidebar .featured-properties .property-card:nth-child(n+4) {
    display: none;
}

.sidebar .related-posts .related-grid{
    display:flex;
    flex-direction:column;
    gap:1rem;
    margin-bottom:2rem;
}
.sidebar .related-posts .related-grid article a{
    display:flex;
    gap:1rem;
}
.sidebar .related-posts .related-grid article a div{
    display:flex;
    flex-direction:column;
    justify-content:center;
    flex:1;
}
.sidebar .related-posts .related-grid article a div>span{    
    display:flex;
    align-items:center;
}
.sidebar .related-posts .related-grid article a div>span:after{
    content:"";
    width:1rem;
    height:1rem;
    margin-left:1rem;
    display:flex;
    background:url("assets/images/arrow-right.svg") no-repeat;
    background-position:contain;
}
.sidebar .related-posts .related-grid article a h4{
    margin:0;
}
.sidebar .related-posts .related-grid article a .thumb{
    flex:0;
}
.sidebar .related-posts .related-grid article a .thumb img{
    width:100px;
    height:100px;
}

.sidebar .ctabt{
    margin-top:2rem;
    padding:0.5rem;
}

/* HOME et Archive */
.home .my-posts,
.archive .my-posts{
    display:flex;
    flex-direction:column;
    gap:4rem;
}
.home article img,
.archive article img{
    width:100%;
    max-width:100%;
    height:400px;
    object-fit:cover;
}

/* Explorez les categories */
.altlink>div{
    width:100%;
}
.category-list>div{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap:1rem;
}
.category-list a{
    padding:0.5rem;
    display:flex;  
    align-items:center; 
    text-decoration:none;
    background-color:#d4d4d4;
    cursor: pointer;
	transition: all 0.8s;    
}
.category-list a:hover {
    background-color: #aad038;
}

/* Pagination */
.pagination {
    margin:4rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}
.pagination .page-numbers:not(.prev):not(.next) {
    display: flex;
    justify-content: center;
    width: 2rem;
    position: relative;
    z-index: 2;
    text-decoration: none;
    color: #333333;
}

.pagination .page-numbers:not(.prev):not(.next)::before {
    content: "";
    width: 100%;
    padding-top: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid #aad038;
    z-index: -1;
    transition: all 0.8s;
}

.pagination .page-numbers:not(.prev):not(.next):hover::before {
    background: #aad038;
}

.pagination .current::before {
    background: #aad038;
}
.pagination .prev,
.pagination .next {
    width: 150px;
    padding: 2rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content:center;
    position: relative;
    text-decoration: none;
    color: #333333;
}
.pagination .next::after {
    content: "";
    width: 1.5rem;
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    background-image: url('assets/images/arrow-right.svg');
    background-size: 1.5rem 1.5rem;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.8s;
}

.pagination .next:hover::after {
    right: -1rem;
}
.pagination .prev::before {
    content: "";
    width: 1.5rem;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background-image: url('assets/images/arrow-left.svg');
    background-size: 1.5rem 1.5rem;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.8s;
}

.pagination .prev:hover::before {
    left: -1rem;
}



/* Article */
.article-sub{
    display:flex;
    align-items:center;
    margin-bottom:1rem;
}
.article-sub > *:not(:last-child)::after {
    content: "|";
    margin:0 0.5rem;
    color: #000;
}
.article-sub p{
    margin:0;
}
.article-sub>a:hover{
    text-decoration:underline;
}
.wp-singular article .article-sub .share-box{
    display:flex;
    align-items:center;
    gap:0.25rem;
}
.wp-singular article .article-sub .share-box .share-label{
    margin-right:0.5rem;
}
.wp-singular article .article-sub .share-box a{
    display:flex;
    align-items:center;
}
.wp-singular article .article-sub .share-box a img{
    width:24px;
    height:24px;
}
.wp-singular article .single__post-header>img{
    width:100%;
    max-width:100%;
    height:400px;
    object-fit:cover;
}
.wp-singular article .recent-posts-box{
    display:flex;
    flex-direction:column;
    margin-top:2rem;
}
.wp-singular article .recent-grid{
    display:flex;
    gap:2rem;
}
.wp-singular article .recent-item{
    flex:1;

	transition: all 0.8s; 
}
.wp-singular article .recent-item:hover{    
    transform:scale(1.025);
}
.wp-singular article .recent-item .thumb{
    width:100%;
    height:250px;
}
.wp-singular article .recent-item img{
    width:100%;
    max-width:100%;
    height:100%;
    object-fit:cover;
}
.wp-singular article .recent-item h4{
    margin:0.5rem 0 0 0;
}
.wp-singular article .recent-item span{    
    display:flex;
    align-items:center;
    margin:0.25rem 0 0 0;
}
.wp-singular article .recent-item span:after{
    content:"";
    width:1rem;
    height:1rem;
    margin-left:1rem;
    display:flex;
    background:url("assets/images/arrow-right.svg") no-repeat;
    background-position:contain;
}


.wp-singular article.related-item{
	transition: all 0.8s; 
}
.wp-singular article.related-item:hover{    
    transform:scale(1.025);
}

.wp-singular article .nav-same-category {
    margin-top:4rem;
    display:flex;
    gap:1rem;
}
.wp-singular article .nav-same-category .ctabt{
    padding:0.5rem;
}
.wp-singular article .nav-same-category a.prev-article span,
.wp-singular article .nav-same-category a.next-article span{
    display:flex;
    align-items:center;
    gap:0.5rem;
}
.wp-singular article .nav-same-category a.prev-article span:before,
.wp-singular article .nav-same-category a.next-article span:after{
    content:"";
    width:1rem;
    height:1rem;
    display:flex;
    background-position:contain;
}
.wp-singular article .nav-same-category a.prev-article span:before{    
    background:url("assets/images/arrow-left.svg") no-repeat;
}
.wp-singular article .nav-same-category a.next-article span:after{    
    background:url("assets/images/arrow-right.svg") no-repeat;
}

.wp-singular article .article-content a:hover{
    text-decoration:underline;
}

.wp-singular .bio{
    margin:4rem 0;
    display:flex;
    align-items:flex-start;
    gap:2rem;
}
.wp-singular .bio>div{
    display:flex;
    flex-direction:column;
}
.wp-singular .bio>div h4,
.wp-singular .bio>div h3{
    margin:0;
}
.wp-singular .bio-profil{
    width:100px;
    height:100px;
    border-radius:50%;
}
.wp-singular .bio-social{
    display:flex;
    gap:0.5rem;
}
.wp-singular .bio-social img{
    width:30px;
    height:30px;
}
.wp-singular .bio-social a{
	transition: all 0.8s;
}
.wp-singular .bio-social a:hover{
    transform: scale(1.1);
}

/* Propriétés */
/*  Cards */
.property-card {
    display:flex;
    flex-direction:column;   
	transition: all 0.8s; 
}

.property-card:hover {
    transform:scale(1.025);
}
.property-card .thumb{
    position:relative;
}
.property-card .thumb span{
    position:absolute;
    top:0;
    left:0;
    padding:0.5rem 1rem;
    color:#ffffff;
    background-color:#144343;
    z-index:1;

}
.property-card .thumb img{
    width:100%;
    max-width:100%;
    height:200px;
    object-fit:cover;
}
.property-card h4{
    margin:0.5rem 0 0 0;   
}
.property-card p {
    margin:0.25rem 0 0 0;   
}


.property-card>span{    
    display:flex;
    align-items:center;
}
.property-card>span:after{
    content:"";
    width:1rem;
    height:1rem;
    margin-left:1rem;
    display:flex;
    background:url("assets/images/arrow-right.svg") no-repeat;
    background-position:contain;

}

/* Recent properties  */
.recentpropertiesbox{
    flex:0 0 100%;
    width:100%;
    max-width:1920px;
    margin:0 auto;
    padding-top:6rem;
    padding-bottom:6rem;
    display:flex;
    flex-direction:column;
    background-color:#e2e2e2;
}
.recentpropertiesbox .recent-properties{
    margin:0 4rem;
}
.recentpropertiesbox .recent-properties .inner{
    width:100%;
    display:flex;
    gap:2rem;
}
.recentpropertiesbox .recent-properties a{
    flex:1;
}
.recentpropertiesbox .ctabt{
    margin:4rem auto 0 auto;
}


/* CONTACT */
.contact{
    width:100%;
    display:flex;
    color:#333333;
    background:#aad038 url("assets/images/footer.jpg") no-repeat;
    background-size:cover;
    background-position:center center;
    overflow:hidden;
}
.contact-inner{
    width:100%;
    max-width:1920px;
    margin:0 auto;
    padding:0;
    display:flex;
    flex-direction:column;
    position:relative;
    z-index:2;
}
.contact h2{
    margin:0px;
}
.contact h2::after{
    display:none;
}
.contact .section{
    flex:1;
    display:flex;
    flex-direction:column;
    margin:4rem;
    padding:2rem;
    margin:4rem;
    background-color:#e2e2e2;
}

/* FORM */
.formprincipal{
    flex:1;
    margin:0;
    display:flex;
    flex-direction:column;
}
.formprincipal .form-row{
    flex:1;
    display:flex;  
    gap: 2rem; 
}
.formprincipal .form-column{
    flex:1;
    display:flex;
    flex-direction:column;
}
.formprincipal .form-column>div{
    flex:1;
    margin:1rem 0;
    display:flex;
    flex-direction:column;
}
.formprincipal label{
    margin-bottom:0.25rem;
}
.formprincipal input[type=text],
.formprincipal textarea{
    font-size:1rem;
    padding:0.25rem;
    border-radius:0;
    border:none;
    background-color:#d4d4d4;
}
.formprincipal input[type=text]{
    height:2rem;
}
.formprincipal textarea{
    height:100%;
}

.formprincipal .formsubmit{
    margin-top:1rem;
    display:flex;
    align-items:center;
    justify-content:flex-end;  
}

/* FORM MESSAGE */
.formprincipal p.message{
    margin:2rem 0;
}
.formprincipal p.message.error{    
    color:#144343;
    font-weight:bold;
}
.formprincipal .error-text{
    padding:0.25rem;
    color:#333333;
    background-color:#aad038;
}

/* FOOTER */
footer{
    display:flex;
    flex-direction:column;
}
.footerbox {
  width: 100%;
  display: flex;
  background: #2c5a5b;
}
.footer { 
    flex: 1;
    padding: 2rem 4rem;
    color: #fff;
    display: flex;
    align-items:center;
}
.footer>div {
    display:flex;
    flex-direction:column;
}

.logo-footer {  
    min-width: 200px;
    position: relative;
    background: #004544;
}
.logo-footer::before {
  content: "";
  display: block;
  padding-top: 100%; /* la hauteur suit la largeur */
}

.logo-footer img {
    width: 100%;
    height: 100%;
    position: absolute;
    top:0;right:0;bottom:0;left:0;
}

.footer .social {
    display:flex;
    gap: 1rem;
    margin-bottom:2rem;
}
.footer .social a{
	transition: all 0.8s;
}
.footer .social a:hover{
    transform: scale(1.1);
}
.footer .social img{
    height:40px;
}

.footerbox .copyright{
    font-size:0.75rem;
    margin:0;
}

.footerbox .copyright a{
    color:#ffffff;
}

/* Complianz */
.cmplz-document h2::after{
    display:none;
}





/* Under 1300px */
@media screen and (max-width: 1300px) { 
    /* Featured */
    .section.featured>div .items a:nth-child(5){
        display:none;
    }
    /* Sidebar */
    .sidebar{
        width:240px;
    }
}

/* Under 1200px */
@media screen and (max-width: 1200px) { 

    /* GENERAL */
    .layout{
        padding:4rem 0;
    }
    .layout>.inner{
        gap:2rem;
    }
    main{
        margin-left:2rem;
    }
    .sidebar{
        margin-right:2rem;
    }
    .section{
        margin:0 2rem 4rem 2rem;
    }
    .row.intro{
        background-size:auto;
    }
    .row-inner{
        padding-top:4rem;
    }


    /* BANNER */
    .header-container{
        height:300px;
    }

    .header-container .banner{
        z-index:3;
    }
   .header-container .banner .logo{
        width:15rem;
        margin-left:2rem;
   }
   .header-container .banner p{
        margin-right:2rem;
   }
   .header-container .topnav a:last-child{
        margin-right:2rem;
   }

   /* NAVIGATION */
   .navprincipal::before,
   .navprincipal::after{
        min-width:2rem;
   }
   nav .header-menu-desktop li{
    flex:0;
   }
    


   /* Colonnes */
    .col30{        
        margin-left:2rem;
    }

    /* TOPBOX */
    .section.topbox{
        margin:0 2rem 4rem 2rem;
    }

    /* Featured */
    .section.featured.vedette>div{
        padding:1rem;
    }
    /* CARDS */
    .cardsbox>a{
        width:calc((100% - 4rem) / 3);
    }
    .cardsbox{
        gap: 2rem;
    }
    /* Contact */
    .contact .section{
        margin:4rem;
    }

    
    /* Accueil */
    .row.intro h1{
        font-size:3rem;
    }
    .row.intro p{
        font-size:1.25rem;
    }

    /* Bio */
    .bio .section{
        max-width:inherit;
        margin:0 2rem 4rem 2rem;
    }

    /* DETAILS */
    .detail-propriete .col30 .desc{
        font-size:1.25rem;
    }
    /* ALT links */
    .altlink>div>div{
        grid-template-columns: repeat(3, 1fr);
    }
   .recentpropertiesbox .recent-properties .inner{
        display:grid;
        grid-template: auto auto / 1fr 1fr;

    }


    .recentpropertiesbox .recent-properties{
        margin:0 2rem;
    }


    .wp-singular article .recent-item .thumb{
        height:200px;
    }


}

/* Under 900px MOBILE  */ 
@media screen and (max-width: 900px) {

    /* GENERAL */
    .layout{
       padding:4rem 2rem;
    }
    .layout>.inner{
        flex-direction:column;
    }
    main,
    .sidebar{
        margin:0;
    }
    .section{
        flex-direction:column;
    }
    .row.intro{
        padding-bottom:6rem;
        background-size:150% auto;
    }
    
    /* Sidebar */
    .sidebar{
        width:calc(100% - 4rem);
        margin-top:4rem;
    }
    .sidebar .featuredpropertiesbox{
        display:flex;
        flex-direction:column;
        align-items:center;
    }
    .sidebar .featured-properties .inner{
        display:grid;
        grid-template:auto auto / 1fr 1fr;
    }
    .sidebar .featured-properties .property-card:nth-child(n+3),
    .sidebar .featured-properties .property-card:nth-child(n+4) {
        display: none;
    }

    /* Colonnes */
    .col70{
        width:100%;
    }
    .col30{
        width:100%;
        margin-left:0;
    }
    /* BANNER */
    .header-container .banner{
        width:auto;
        margin:0;
        justify-content:center;
    }
    .header-container .banner p{
        display:none;
    }
    .header-container .topnav a{
        margin:0.25rem 0.5rem;
    }

   nav .header-menu-desktop{
    display:none;
   }
   nav .header-menu li:not(.fixed){
        display:flex;
    }


    /* SERVICES */
    .services{
        width:100%;
        margin:4rem 0;
        border-left:none;
        border-top:5px solid #aad038;
        grid-template-columns: repeat(2, 1fr);
    }

    /* Bio */
    .bio-photo{
        width:inherit;
        margin:2rem 0 4rem 0;
        padding:0;
        border-right:none;
    }
    .bio-photo p{
        text-align:center;
    }

    /* FORM */
    .formprincipal .form-row{
        flex-direction:column;
        gap:0;
    }
    .formprincipal .form-column{
        margin:0;
    }
    .formprincipal p.message{
        margin:2rem 0;
    }
    .formprincipal input[type=text]{
        height:2rem;
    }
    .formprincipal textarea{
        flex:auto;
        height:6rem;
    }

    /* FILTRES */
    .filtres form{
        flex-direction:column;
    }
    .filtres form>div{
        width:100%;
        margin-right:0;
        margin-bottom:1rem;
    }

    /* PAGINATION */
    .pagination{
        flex-direction:row;
        flex-wrap:wrap;
    }

    /* CARDS */
    .cardsbox>a{
        width:calc((100% - 2rem) / 2);
    }
    .accueil .cardsbox>a:last-of-type{
        display:flex;
    }
    .cardsbox>a>.cardimg{
        height:15rem;
    }

    /* Featured */
    .section.featured>div .items{
        gap:1rem;
    }
    .section.featured>div .items a:nth-child(4){
        display:none;
    }

    /* ALT links */
    .altlink>div>div{
        grid-template-columns: repeat(2, 1fr);
    }
    .altlink a:nth-of-type(n + 13) {
        display: none;
    }

    
    /* DETAILS */
    .section.topbox{
        margin:0 2rem 4rem 2rem;
    }

    /* TABLEAU */
    .tabinfo{
        grid-template-columns: 1fr 2fr;
    }

    /* FOOTER */
    .footerbox{
        flex-direction:column;
        height:auto;
    }
    .logo-footer{
        display:none;
    }
    .footer{
        padding:4rem;
    }

    .recentpropertiesbox .recent-properties{
        margin:0;
    }
    .category-list>div{
        grid-template-columns: repeat(2, 1fr);

    }

}


/* Under 700px  */ 
@media screen and (max-width: 700px) {

    /* Featured */
    .section.featured>div .items{
        height:inherit;
        flex-wrap:wrap;
    }
    .section.featured>div .items a{
        width:calc((100% - 1rem) / 2);
        flex:inherit;
    }
    .section.featured>div .items a:nth-child(4){
        display:flex;
    }
    .contact h2>span{
        display:block;
    }
}

/* Under 600px MOBILE  */ 
@media screen and (max-width: 600px) {

    /* GENERAL */
    .row-inner{
        padding-top:2rem;
    }
    .section{
        flex-direction:column;
    }
    h1{
        font-size:1.75rem;
    }
    .row.intro h1{
        font-size:2.5rem;
    }
    h2{
        font-size:1.70rem;
    }
    

    /* BANNER */
    .header-container{
        height:auto;
    }
    .header-container .topnav {
        width:auto;
        padding:0rem 2rem;
    }
    .header-container .topnav .ico-prop {
        display:none;
    }
    .header-container .topnav a:last-child{
        margin-right:0;
    }
    .header-container .banner .logo{
        width:12rem;
        margin:2rem;
    }
    .header-container .topnav a.ico-mail::before, .header-container .topnav a.ico-phone::before{
        width:1rem;
        height:1rem;
    }

    /* Navigation */
    nav .header-menu {
        width:100%;
    }
    
    /* Contact */
    .contact .section{
        margin:4rem 2rem;
    }

    /* SERVICES */
    .services{
        grid-template-columns: repeat(1, 1fr);
    }

    /* TOPBOX */
    .section.topbox{
        margin:0 2rem 2rem 2rem;
    }

    /* CARDS */
    .cardsbox>a{
        width:100%;
        margin:0 0 3rem 0;
    }

    .cardsbox>a>.cardimg{
        height:15rem;
    }

    /* ALT links */
    .altlink>div>div{
        grid-template-columns: repeat(1, 1fr);
    }
    .altlink a:nth-of-type(n + 9) {
        display: none;
    }



    /* PAGINATION */
    .pagination{
        flex-direction:row;
    }

    /* TABLEAU */
    .tabinfo{
        grid-template-columns: 1fr;
    }
    .tabinfo .label{
        font-weight:400;
        padding-bottom:0;
        background-color:transparent;
    }
    .tabinfo .label, .tabinfo .value{
        padding-left:0;
        padding-right:0;
    }
    
    /* FOOTER */    
    .footer{
        padding:2rem;
    }


    .featuredpropertiesbox .featured-properties{
        width:100%;
    }
    .sidebar .featured-properties .inner,
   .recentpropertiesbox .recent-properties .inner{
         display:flex;
         flex-direction:column;

    }

    .category-list>div{
        grid-template-columns: repeat(1, 1fr);

    }
    .wp-singular article .recent-grid{
        flex-direction:column;
    }
    .bio {
        flex-direction:column;
    }

    .article-sub{
        flex-direction:column;
        align-items:flex-start;
    }
    .article-sub > *:not(:last-child)::after{
        display:none;
    }

}


/* Under 500px ULTRA MOBILE  */ 
@media screen and (max-width: 500px) {

    /* GENERAL */
    .layout{
        padding:3rem 1rem;
    }
    .content{
        padding-top:3rem;
    }
    .section{
        margin:0 1rem 3rem 1rem;
    }
    .section.topbox{
        margin:0 1rem 2rem 1rem
    }

    /* BANNER */
    
    .header-container .banner .logo{
        margin:2rem 1rem;
    }
    

    /* NAVIGATION */
   
   .navprincipal::before,
   .navprincipal::after{
        min-width:1rem;
   }
    

    /* featured */
    .section.featured>div .items{
        max-height:inherit;
        flex-wrap:wrap;
    }
    .section.featured>div .items a{
        width:100%;
        max-width:100%;
    }
    .section.featured>div .items a:nth-child(3),
    .section.featured>div .items a:nth-child(4){
        display:none;
    }

    /* CONTACT */
   .contact .section{
        margin:3rem 1rem;
        padding:2rem 1rem;
   }


    /* FOOTER */    
    .footer{
        padding:2rem 1rem;
    }

    .sidebar{
        width:calc(100% - 2rem);
        padding:0 1rem 2rem 1rem
    }
}