/*
Theme Name: Astra Child
Template: astra
Version: 1.0
*/


/* ==========================================================
   PROGRAMMES IMMOBILIERS
========================================================== */

.programmes-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

@media(max-width:1100px){
    .programmes-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:700px){
    .programmes-grid{
        grid-template-columns:1fr;
    }
}

.programme-link{
    text-decoration:none;
    color:inherit;
}

.programme-card{
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 5px 18px rgba(0,0,0,.08);
    transition:all .30s ease;
    height:100%;
    display:flex;
    flex-direction:column;
    cursor:pointer;
}

.programme-card:hover{
    transform:translateY(-8px);
    box-shadow:0 18px 40px rgba(0,0,0,.18);
}

.programme-image{
    overflow:hidden;
}

.programme-image img{
    width:100%;
    height:190px;
    object-fit:cover;
    display:block;
    transition:transform .45s ease;
}

.programme-card:hover .programme-image img{
    transform:scale(1.05);
}

.programme-content{
    padding:25px;
    display:flex;
    flex-direction:column;
    flex:1;
}

.programme-title{
    margin:0;
    font-size:28px;
    line-height:1.25;
    min-height:105px;
}

.programme-badges{
    min-height:82px;
    margin:22px 0 15px 0;
}

.programme-badge{
    display:inline-block;
    background:#214b72;
    color:#fff;
    padding:7px 15px;
    border-radius:20px;
    margin:4px;
    font-size:13px;
}

.programme-ville{
    font-size:18px;
    min-height:32px;
    margin-bottom:18px;
}

.programme-prix{
    font-size:22px;
    font-weight:bold;
}

.programme-footer{
    margin-top:auto;
    padding-top:35px;
}

.programme-button{
    display:inline-block;
    background:#214b72;
    color:#fff;
    padding:13px 24px;
    border-radius:30px;
    font-weight:bold;
    transition:.25s;
}

.programme-card:hover .programme-button{
    background:#183a59;
}


/* ==========================================================
   FILTRES PROGRAMMES
========================================================== */

.programme-filters{
    display:grid;
    grid-template-columns:repeat(5,minmax(180px,1fr));
    gap:20px;
    align-items:end;
    margin-bottom:40px;
    padding:20px;
    background:#ffffff;
    border:1px solid #e8e8e8;
    border-radius:12px;
    box-shadow:0 5px 18px rgba(0,0,0,.08);
}

.programme-filters select{
    width:100% !important;
    min-width:0;
    max-width:none;
    height:46px;
    padding:0 15px;
    border:1px solid #dcdcdc;
    border-radius:8px;
    background:#fff;
    font-size:15px;
    cursor:pointer;
    box-sizing:border-box;
}

.programme-filters select:hover{
    border-color:#214b72;
}

.programme-filters select:focus{
    outline:none;
    border-color:#214b72;
    box-shadow:0 0 0 3px rgba(33,75,114,.15);
}

.programme-count{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    font-weight:600;
    color:#444;
    white-space:nowrap;
}

/* Responsive */

@media(max-width:1100px){

    .programme-filters{
        grid-template-columns:repeat(2,1fr);
    }

    .programme-count{
        justify-content:flex-start;
    }

}

@media(max-width:700px){

    .programme-filters{
        grid-template-columns:1fr;
    }

}

/* ==========================================================
   PROGRAMMES - MOBILE
========================================================== */

@media(max-width:700px){

    .programmes-grid{
        grid-template-columns:1fr;
        gap:22px;
    }

    .programme-card{
        width:100%;
    }

    .programme-image img{
        height:220px;
    }

    .programme-content{
        padding:20px;
    }

    .programme-title{
        font-size:24px;
        line-height:1.25;
        min-height:auto;
    }

    .programme-badges{
        min-height:auto;
        margin:18px 0 14px;
    }

    .programme-ville{
        font-size:17px;
        min-height:auto;
        margin-bottom:14px;
    }

    .programme-prix{
        font-size:20px;
    }

    .programme-footer{
        padding-top:25px;
    }

    .programme-button{
        display:block;
        width:100%;
        box-sizing:border-box;
        text-align:center;
    }

    .programme-filters{
        grid-template-columns:1fr;
        gap:14px;
        padding:16px;
    }

    .programme-filters select{
        width:100% !important;
    }

    .programme-count{
        justify-content:flex-start;
        white-space:normal;
    }
}
