body {
font-family: 'Montserrat', sans-serif;
margin: 0;
padding: 0;
background-color: transparent;
color: #333;
position: relative;
overflow-x: hidden;
}
body::before {
content: "";
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url('../img/fond.jpg');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
background-attachment: fixed;
opacity: 0.2;
z-index: -1;
}
main {
min-height: calc(100vh - 200px);
display: flex;
flex-direction: column;
justify-content: center;
}
.hero-banner {
width: auto;
height: auto;
min-height: 230px;
background-image: url('../img/bandeau.jpg');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
position: relative;
display: flex;
align-items: center;
justify-content: flex-start;
text-align: left;
padding: 20px;
padding-left: 15%;
color: #222;
margin-top: 75px;
box-shadow: inset 0px 10px 12px -10px rgba(0, 0, 0, 0.3);
border-top: 1px solid #ccc;
border-bottom: 1px solid #ccc;
overflow: hidden;
}
.hero-banner::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(255, 255, 255, 0.8);
backdrop-filter: blur(0px);
z-index: 1;
}
.hero-banner::after {
content: "";
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 80px;
background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.7));
z-index: 2;
pointer-events: none;
}
.hero-content {
position: relative;
z-index: 3;
max-width: 1000px;
width: 80%;
animation: fadeInUp 0.8s ease-out forwards;
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes fadeInUpShifted {
from {
opacity: 0;
transform: translate(-50px, 30px);
}
to {
opacity: 1;
transform: translate(-50px, 0);
}
}
.hero-content h1 {
font-size: 2rem;
font-weight: 600;
margin-bottom: 15px;
color: #333;
text-transform: uppercase;
font-family: 'REM';
line-height: 1.4;
}
.hero-content p {
font-size: 1rem;
font-weight: 300;
line-height: 1.2;
color: #333;
font-family: 'REM';
}
.separator {
width: 150px;
height: 3px;
background: #c19a5f;
border-radius: 2px;
}
.search-bar {
display: flex;
flex-wrap: nowrap;
justify-content: space-between;
align-items: center;
padding: 8px 10px;
background-color: #ffffff9f;
border: none;
box-shadow:
0px 2px 5px rgba(0, 0, 0, 0.05),
0px -2px 5px rgba(0, 0, 0, 0.04),
2px 0px 5px rgba(0, 0, 0, 0.04),
-2px 0px 5px rgba(0, 0, 0, 0.04);
border-radius: 5px;
width: 100%;
margin: 40px auto;
gap: 5px;
max-width: 1000px;
}
.filter-group {
display: flex;
flex-wrap: wrap;
gap: 10px;
width: 100%;
justify-content: space-between;
}
.filter {
position: relative;
flex: 1 1 0;
min-width: 120px;
}
.dropdown-button {
box-sizing: border-box;
padding: 10px 15px;
background-color: #ffffff00;
border: none;
border-radius: 0px;
cursor: pointer;
font-size: 14px;
color: #333;
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
font-family: inherit;
font-weight: 600;
text-align: center;
white-space: nowrap;
color: #333333;
}
.dropdown-button i {
margin-left: 8px;
}
#budget-filter label {
display: block;
padding: 5px 10px;
cursor: pointer;
font-size: 14px;
text-align: left;
}
#budget-filter label:hover {
background-color: #f0f0f0;
border-radius: 0px;
}
.dropdown-menu {
display: none;
position: absolute;
top: 100%;
left: 0;
background: #fff;
border: 1px solid #ddd;
z-index: 10;
padding: 10px;
overflow-y: auto;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.filter:hover .dropdown-menu {
display: block;
}
.dropdown-menu p,
.dropdown-menu label {
display: flex;
align-items: center;
gap: 5px;
font-size: 0.9rem;
margin: 3px -7px;
margin-right: 10px;
padding: 4px;
cursor: pointer;
font-family: inherit;
white-space: nowrap;
}
.dropdown-menu p:hover,
.dropdown-menu label:hover {
background-color: #f0f0f0;
border-radius: 4px;
}
#search-button {
padding: 8px 20px;
background-color: #c19a5f;
border: 1px solid #c19a5f;
border-radius: 5px;
color: #fff;
cursor: pointer;
font-size: 1rem;
font-weight: 600;
font-family: inherit;
transition: background-color 0.3s ease;
flex-shrink: 0;
width: auto;
max-width: 200px;
}
#search-button:hover {
background-color: #a0763d;
border: 1px solid #a0763d;
}
.results-section {
display: flex;
justify-content: space-between;
align-items: center;
max-width: 1021px;
width: 95%;
margin: 20px auto;
margin-bottom: -15px;
padding: 0 10px;
}
.results-tri-container {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
flex-wrap: wrap;
}
#result-count {
font-size: 0.9rem;
font-weight: 600;
color: #333;
}
.result-count-box {
display: inline-block;
padding: 10px 15px;
background-color: #ffffff9f;
border: none;
border-radius: 5px;
font-size: 1rem;
font-weight: bold;
color: #333;
box-shadow:
0px 2px 5px rgba(0, 0, 0, 0.05),
0px -2px 5px rgba(0, 0, 0, 0.04),
2px 0px 5px rgba(0, 0, 0, 0.04),
-2px 0px 5px rgba(0, 0, 0, 0.04);
margin-top: 4px;
}
.sort-section {
display: flex;
align-items: center;
gap: 5px;
margin-top: 5px;
background-color: #ffffff9f;
box-shadow:
0px 2px 5px rgba(0, 0, 0, 0.05),
0px -2px 5px rgba(0, 0, 0, 0.04),
2px 0px 5px rgba(0, 0, 0, 0.04),
-2px 0px 5px rgba(0, 0, 0, 0.04);
border-radius: 5px;
}
.sort-section label {
font-weight: 600;
}
.sort-section select {
padding: 10px 15px;
font-size: 0.9rem;
border: 1px solid #ccc;
border-radius: 8px;
font-family: inherit;
}
.sort-dropdown {
position: relative;
}
.sort-dropdown .dropdown-menu {
display: none;
position: absolute;
top: 100%;
left: 0;
background: white;
border: 1px solid #ddd;
z-index: 10;
padding: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
white-space: nowrap;
}
.sort-dropdown .dropdown-menu .dropdown-item {
padding: 5px 10px;
cursor: pointer;
font-size: 14px;
color: #333;
}
.sort-dropdown .dropdown-menu .dropdown-item:hover {
background-color: #f0f0f0;
}
.properties-container {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 40px;
padding: 20px;
max-width: 1350px;
margin: auto;
margin-bottom: 50px;
font-family: "Lexend", serif;
}
.properties-container-2 {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 30px;
padding: 20px;
max-width: 1300px;
margin: auto;
margin-bottom: 50px;
font-family: "Lexend", serif;
}
.property-card {
background-color: #ffffffb9;
border-radius: 3px;
overflow: hidden;
box-shadow:
0px 2px 5px rgba(0, 0, 0, 0.05),
0px -2px 5px rgba(0, 0, 0, 0.04),
2px 0px 5px rgba(0, 0, 0, 0.04),
-2px 0px 5px rgba(0, 0, 0, 0.04);
position: relative;
cursor: pointer;
}
.property-card:hover .property-image {
filter: brightness(50%);
transition: filter 0.8s ease;
}
.property-card:hover .property-image-2 {
filter: brightness(50%);
transition: filter 0.8s ease;
}
.property-card:hover .discover-btn {
opacity: 1;
transform: translate(-50%, 0);
}
.property-image {
width: 100%;
height: 350px;
object-fit: cover;
}
.property-image-2 {
width: 100%;
height: 320px;
object-fit: cover;
}
.property-details {
padding: 15px;
}
.property-details h2 {
margin: 0 0 25px;
}
.h2-wrapper {
position: relative;
display: inline-block;
width: 100%;
overflow: hidden;
}
.h2-wrapper h2 {
font-size: 1.6rem;
color: #333;
margin: 0 0 5px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-weight: 500;
letter-spacing: -0.5px;
margin-top: -5px;
}
.h2-wrapper::after {
content: "";
display: block;
width: 100%;
height: 2px;
background-color: #c19a5f;;
position: absolute;
bottom: 0;
}
.property-details .location {
font-size: 1rem;
color: #333;
margin: 15px 0 10px;
font-weight: 500;
text-decoration: underline;
text-decoration-color: #c19a5f;
text-decoration-thickness: 1px;
text-underline-offset: 3px;
}
.property-details .location i {
margin-right: 9px;
margin-left: 0px;
color: #c19a5f;
}
.property-details .icons {
display: flex;
gap: 15px;
font-size: 1rem;
color: #333;
font-weight: 500;
}
.property-details i {
margin-right: 7px;
font-size: 1rem;
color: #c19a5f;
}
.property-details .icons span {
display: flex;
align-items: center;
}
.property-details .price-ref {
display: flex;
justify-content: space-between;
margin-top: -5px;
margin-bottom: -25px;
}
.property-details .price {
color: #333;
font-weight: 600;
font-size: 1.4em;
}
.property-details .reference {
margin-top: 27px;
font-size: 1rem;
color: #999999;
font-weight: 500;
}
.property-card:hover .discover-btn-2 {
opacity: 1;
transform: translate(-50%, 0);
}
.property-images {
position: relative;
}
.discover-btn-2 {
position: absolute;
top: 45%;
left: 50%;
transform: translate(-50%, 100%);
background-color: rgba(0, 0, 0, 0.356);
color: white;
text-decoration: none;
font-weight: 500;
font-size: 1rem;
padding: 10px 20px;
border-radius: 3px;
opacity: 0;
transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
border: 1px solid white;
}
.discover-btn-2:hover {
background-color: #c19a5f;
transition: background-color 0.5s ease;
}
.property-info {
display: flex;
justify-content: space-between;
align-items: center;
margin: 0px 0;
position: relative;
}
.favorite-container {
display: flex;
align-items: center;
position: relative;
margin-right: 5px;
}
.property-info .favorite-icon {
font-size: 1.5rem;
color: #c19a5f;
cursor: pointer;
transition: transform 0.3s ease, color 0.3s ease;
position: relative;
top: 7px;
}
.property-info .favorite-icon:hover {
transform: scale(1.3);
color: #a0763d;
}
.pagination {
display: flex;
justify-content: center;
align-items: center;
gap: 0px;
flex: 1;
margin: -17px auto 0;
margin-bottom: 20px;
}
.pagination button {
background-color: #ffffff9f;
border: none;
color: #333;
padding: 5px 8px;
margin: 0 4px;
cursor: pointer;
font-size: 16px;
font-weight: 600;
font-family: inherit;
transition: background-color 0.3s ease;
width: 30px;
height: 30px;
display: inline-flex;
justify-content: center;
align-items: center;
box-sizing: border-box;
box-shadow:
0px 2px 5px rgba(0, 0, 0, 0.05),
0px -2px 5px rgba(0, 0, 0, 0.04),
2px 0px 5px rgba(0, 0, 0, 0.04),
-2px 0px 5px rgba(0, 0, 0, 0.04);
border-radius: 3px;
}
.pagination button.active {
background-color: #c19a5f;
color: #fff;
font-weight: bold;
}
.pagination button:hover {
background-color: #a0763d;
color: #fff;
font-weight: 600;
}
#pagination-bottom {
position: relative;
z-index: 10;
}
.properties-wrapper {
display: flex;
justify-content: center;
align-items: center;
min-height: 50vh;
width: 100%;
position: relative;
}
.no-properties {
text-align: center;
font-size: 1rem;
color: #555;
background: #f8f8f8a4;
padding: 20px;
border-radius: 10px;
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
width: fit-content;
max-width: 600px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
margin: 0 auto;
position: absolute;
top: 0%;
left: 50%;
transform: translate(-50%, -50%);
}
.no-properties p {
margin: 0;
}
@media (max-width: 600px) {
.no-properties {
width: 70%;
font-size: 1rem;
}
}
.hidden {
opacity: 0;
transform: translateY(50px);
transition: opacity 0.8s ease, transform 0.8s ease;
}
.visible {
opacity: 1;
transform: translateY(0);
filter: blur(0);
}
@media (max-width: 1100px) {
.hero-content {
width: 90%;
animation: fadeInUpShifted 0.8s ease-out forwards;
}
.hero-content h1 {
font-size: 1.8rem;
}
.hero-content p {
font-size: 1rem;
}
#search-button {
width: 100%;
max-width: 150px;
font-size: 0.85rem;
padding: 8px 15px;
white-space: nowrap;
}
.search-bar {
flex-wrap: wrap;
justify-content: center;
width: 95%;
}
.filter-group {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 10px;
width: 100%;
}
.properties-container {
grid-template-columns: repeat(2, 1fr);
gap: 20px;
}
.results-tri-container {
flex-direction: column;
align-items: flex-start;
gap: 10px;
}
}
@media (max-width: 768px) {
.search-bar {
width: 90%;
}
.filter-group {
grid-template-columns: repeat(2, 1fr);
gap: 5px;
}
#search-button {
width: 100%;
max-width: 150px;
font-size: 0.85rem;
padding: 8px 15px;
white-space: nowrap;
}
.properties-container {
grid-template-columns: 1fr;
gap: 30px;
}
.pagination {
margin-top: 30px;
}
.pagination button {
padding: 8px 12px;
font-size: 14px;
}
}
@media (max-width: 600px) {
.hero-banner {
width: 100%;
padding: 0px;
}
.hero-content {
    width: 100%;
    transform: none !important;
    margin: 0;
    padding: 20px;
}
.hero-content p {
width: 100%;
}
.hero-content h1 {
font-size: 1.4rem;
}
.hero-content p {
font-size: 0.9rem;
}
.search-bar {
flex-direction: column;
gap: 15px;
margin-bottom: 0px;
width: 90%;
margin-left: auto;
margin-right: auto;
}
.filter-group {
flex-direction: column;
gap: 5px;
}
.dropdown-button {
width: 100%;
}
.results-tri-container {
align-items: stretch;
gap: 5px;
}
.properties-container {
grid-template-columns: 1fr;
gap: 30px;
padding: 20px;
}
.property-image {
height: 300px;
}
.pagination {
flex-wrap: wrap;
gap: 5px;
}
.pagination button {
padding: 4px 8px;
font-size: 12px;
margin-top: 7px;
}
#search-button {
width: 100%;
max-width: 150px;
font-size: 0.85rem;
padding: 8px 15px;
white-space: nowrap;
}
#sort-button {
font-size: 0.9rem;
padding: 8px 12px;
}
#result-count {
font-size: 0.9rem;
}
.result-count-box {
padding: 8px 12px;
}
}
@media screen and (max-width: 768px) {
body::before {
background-size: auto 100vh;
background-position: center;
background-attachment: scroll;
}
}
.filter .dropdown-menu {
display: none;
}
@media (hover: hover) {
.filter:hover .dropdown-menu {
display: block;
}
}
@media (hover: none) {
.filter:hover .dropdown-menu {
display: none;
}
.filter .dropdown-menu {
display: none;
}
.filter.active .dropdown-menu {
display: block !important;
}
.filter.active .dropdown-button i {
transform: rotate(180deg);
transition: transform 0.3s ease;
}
}
.sort-dropdown .dropdown-menu {
display: none;
}
.sort-dropdown.open .dropdown-menu {
display: block;
}
.sort-dropdown.open .dropdown-button i {
transform: rotate(180deg);
transition: transform 0.3s ease;
}
@media (hover: hover) {
.sort-dropdown:hover .dropdown-menu {
display: block;
}
}
@media (max-width: 600px) {
.sort-dropdown .dropdown-menu {
left: auto;
right: 0;
min-width: 100%;
max-width: 100vw;
box-sizing: border-box;
overflow-x: auto;
}
}
.top-footer {
margin-bottom: 50px;
}
