* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #faf9f7;
    color: #333;
    overflow-x: hidden;
}

.gradient-bg {
    background: linear-gradient(135deg, #fea018 0%, #b21318 100%);
}


/* Header */

header {
    background: white;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 80px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.logo {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    height: 120px;
    display: flex;
    align-items: center;
}

.logo img {
    height: 120px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, #fea018 0%, #b21318 100%);
    transition: width 0.3s;
}

.nav-links a:hover:after {
    width: 100%;
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    background: linear-gradient(135deg, #fea018 0%, #b21318 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* Page Header */

.page-header {
    background: linear-gradient(135deg, #fea018 0%, #b21318 100%);
    padding: 4rem 2rem;
    text-align: center;
    color: white;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.95;
}


/* Filters Section */

.filters-section {
    background: white;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    z-index: 100;
}

.filters-container {
    max-width: 1400px;
    margin: 0 auto;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #555;
    font-size: 0.9rem;
}

.filter-group select,
.filter-group input {
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #fea018;
}

.filter-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}

.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #fea018 0%, #b21318 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(254, 160, 24, 0.4);
}

.btn-secondary {
    background: #f5f5f5;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}


/* Properties Section */

.properties-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-count {
    font-size: 2.2rem;
    text-align: center;
    color: #666;
}

.results-count span {
    font-weight: 700;
    text-align: center;
    color: #b21318;
}

.sort-options {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.sort-options select {
    padding: 0.8rem 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
}


/* Properties Grid */

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.property-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.property-image {
    height: 280px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.property-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.property-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.85rem;
    color: #b21318;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.property-type {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    z-index: 2;
}

.property-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.property-price {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fea018 0%, #b21318 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.8rem;
}

.property-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 600;
    line-height: 1.4;
}

.property-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.property-location i {
    color: #fea018;
}

.property-details {
    display: flex;
    justify-content: space-around;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    margin-top: auto;
}

.property-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.property-detail i {
    color: #fea018;
    font-size: 1.2rem;
}

.property-detail span {
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
}


/* Pagination */

.custom-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    /* espace uniforme entre les boutons */
    margin: 30px 0;
}

.custom-pagination .page-link {
    display: inline-block;
    min-width: 45px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    border: 2px solid #fea018;
    color: #fea018;
    font-weight: bold;
    font-size: 18px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.custom-pagination .page-link:hover {
    background-color: #fea018;
    color: #fff;
}

.custom-pagination .page-link.active {
    background-color: #fea018;
    color: #fff;
}

.custom-pagination .page-link.disabled {
    color: #ccc;
    border-color: #ccc;
    pointer-events: none;
}


/* Floating Buttons */

.floating-buttons {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.float-btn:hover {
    transform: scale(1.1);
}

.whatsapp-btn {
    background: #25D366;
}


/* Footer */

footer {
    background: #1a1a1a;
    color: white;
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #fea018;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    text-decoration: none;
    line-height: 2;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #888;
}


/* Responsive */

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background-color: white;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 2rem;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    }
    .nav-links.active {
        display: flex;
    }
    .mobile-menu {
        display: block;
    }
    .page-header h1 {
        font-size: 2rem;
    }
    .filters-grid {
        grid-template-columns: 1fr;
    }
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .properties-grid {
        grid-template-columns: 1fr;
    }
    .floating-buttons {
        bottom: 1rem;
        right: 1rem;
    }
    .float-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 2rem 1rem;
    }
    .properties-section {
        padding: 2rem 1rem;
    }
    .pagination {
        gap: 0.3rem;
    }
    .pagination-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
}
