
    :root {
        --primary-color: #1a365d;
        --secondary-color: #2d3748;
        --accent-color: #2e8b57;
        --price-color: #d32f2f;
        --background-color: #f7fafc;
        --card-background: #ffffff;
        --border-color: #e2e8f0;
    }

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    }

    body {
        background-color: var(--background-color);
        color: var(--secondary-color);
        line-height: 1.6;
    }

    /* Header */
    .header {
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        color: white;
        padding: 20px 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .header-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        font-size: 1.8rem;
        font-weight: bold;
        color: white;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .logo i {
        color: var(--accent-color);
    }

    .nav-links {
        display: flex;
        gap: 25px;
    }

    .nav-link {
        color: white;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s;
        padding: 8px 0;
        position: relative;
    }

    .nav-link:hover {
        color: #4fd1c7;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background-color: #4fd1c7;
        transition: width 0.3s;
    }

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

    /* Hero Section */
    .hero {
        background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80');
        background-size: cover;
        background-position: center;
        color: white;
        padding: 80px 20px;
        text-align: center;
        margin-bottom: 50px;
    }

    .hero h1 {
        font-size: 2.8rem;
        margin-bottom: 20px;
        font-weight: 300;
    }

    .hero p {
        font-size: 1.2rem;
        max-width: 700px;
        margin: 0 auto 30px;
        opacity: 0.9;
    }

    /* Main Container */
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }

    /* Section Title */
    .section-title {
        text-align: center;
        margin-bottom: 40px;
        color: var(--primary-color);
    }

    .section-title h2 {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .section-title .underline {
        width: 80px;
        height: 4px;
        background-color: var(--accent-color);
        margin: 0 auto;
        border-radius: 2px;
    }

    /* Maisons Grid */
    .maisons-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 30px;
        margin-bottom: 60px;
    }

    /* Maison Card */
    .maison-card {
        background-color: var(--card-background);
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        transition: all 0.3s ease;
        position: relative;
        display: flex;
        flex-direction: column;
        height: 100%;
    }

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

    /* Badge */
    .status-badge {
        position: absolute;
        top: 15px;
        right: 15px;
        padding: 6px 15px;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: bold;
        z-index: 2;
    }

    .status-disponible {
        background-color: var(--accent-color);
        color: white;
    }

    .status-vendu {
        background-color: #e53e3e;
        color: white;
    }

    /* Image Container */
    .image-container {
        width: 100%;
        height: 220px;
        overflow: hidden;
        position: relative;
    }

    .maison-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

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

    /* Maison Info */
    .maison-info {
        padding: 25px;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }

    .maison-title {
        font-size: 1.3rem;
        font-weight: 600;
        margin-bottom: 10px;
        color: var(--primary-color);
    }

    .maison-location {
        color: var(--secondary-color);
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .maison-location i {
        color: var(--accent-color);
    }

    .maison-description {
        color: #718096;
        font-size: 0.95rem;
        margin-bottom: 20px;
        line-height: 1.6;
        flex-grow: 1;
    }

    /* Caractéristiques */
    .caracteristiques {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        margin-bottom: 20px;
        padding-bottom: 20px;
        border-bottom: 1px solid var(--border-color);
    }

    .caracteristique {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-width: 60px;
    }

    .caracteristique i {
        font-size: 1.3rem;
        color: var(--accent-color);
        margin-bottom: 5px;
    }

    .caracteristique span {
        font-size: 0.85rem;
        color: var(--secondary-color);
        text-align: center;
    }

    /* Prix et Action */
    .prix-action {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: auto;
    }

    .maison-prix {
        font-size: 1.5rem;
        font-weight: bold;
        color: var(--price-color);
    }

    .contact-btn {
        background-color: var(--accent-color);
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 6px;
        font-weight: 600;
        cursor: pointer;
        transition: background-color 0.3s;
        text-decoration: none;
        display: inline-block;
    }

    .contact-btn:hover {
        background-color: #267349;
    }

    /* Footer */
    .footer {
        background-color: var(--primary-color);
        color: white;
        padding: 50px 0 20px;
        margin-top: 80px;
    }

    .footer-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 40px;
    }

    .footer-section h3 {
        font-size: 1.2rem;
        margin-bottom: 20px;
        color: white;
        position: relative;
        padding-bottom: 10px;
    }

    .footer-section h3::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 40px;
        height: 2px;
        background-color: var(--accent-color);
    }

    .footer-links {
        list-style: none;
    }

    .footer-links li {
        margin-bottom: 10px;
    }

    .footer-links a {
        color: #cbd5e0;
        text-decoration: none;
        transition: color 0.3s;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .footer-links a:hover {
        color: white;
    }

    .footer-links i {
        width: 20px;
    }

    .copyright {
        text-align: center;
        margin-top: 50px;
        padding-top: 20px;
        border-top: 1px solid #2d3748;
        color: #a0aec0;
        font-size: 0.9rem;
    }

    .prix-action .contact-btn {
        min-width: 120px;
        /* largeur minimale */
        text-align: center;
    }


    /* Responsive */
    @media (max-width: 768px) {
        .header-container {
            flex-direction: column;
            gap: 20px;
        }

        .nav-links {
            flex-wrap: wrap;
            justify-content: center;
        }

        .hero h1 {
            font-size: 2.2rem;
        }

        .maisons-grid {
            grid-template-columns: 1fr;
        }

        .footer-container {
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 480px) {
        .caracteristiques {
            justify-content: center;
        }

        .prix-action {
            flex-direction: column;
            gap: 15px;
            align-items: flex-start;
        }

        .contact-btn {
            width: 100%;
            text-align: center;
        }
    }

    /* Animation pour le chargement des cartes */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .maison-card {
        animation: fadeInUp 0.5s ease forwards;
    }
