/* ========================================
   FORMULAIRE DE RECHERCHE
======================================== */

.recherche-immobiliere-form-container {
    position: relative;
    overflow: hidden;
}

.recherche-immobiliere-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.recherche-immobiliere-form {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.recherche-immobiliere-form .form-group {
    flex: 1;
    min-width: 200px;
    max-width: 360px;
}

.page-recherche .recherche-immobiliere-form .bouton-recherche {
    flex: 1;
    min-width: 63px;
    max-width: 0px;
	width:50px
}

.recherche-immobiliere-form .form-control {
    width: 100%;
    padding: 14px 20px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.details-resultats .recherche-immobiliere-form .form-control {
    width: 100%;
    padding: 11px 20px;
    border: 1px solid var(--wp--preset--color--lightborder);
    background: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	transition: border-color .3s var(--greenshift-transition),background-color .3s var(--greenshift-transition);
	background-color: var(--wp--preset--color--inputbg);
}

.recherche-immobiliere-form .form-control:focus {
    outline: none;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.recherche-immobiliere-form .btn-recherche {
    background: #d8a765;
    border: none;
    padding: 14px 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recherche-immobiliere-form .btn-recherche:hover {
    background: #002e60;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.recherche-immobiliere-form .search-icon {
    font-size: 18px;
    color: white;
}


.recherche-immobiliere-form svg {
	height: 24px !important;
	width: 24px !important;
	min-width: 24px !important;
	color: white;
}

/* ========================================
   RÉSULTATS DE RECHERCHE
======================================== */

.recherche-immobiliere-results {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.results-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.results-header h2 {
    font-size: 2em;
    color: #002e60;
    margin-bottom: 10px;
    font-weight: 300;
}

.results-header p {
    color: #7f8c8d;
    font-size: 1.1em;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* ========================================
   CARTES DE PROPRIÉTÉS
======================================== */

.property-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.property-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.no-image {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-style: italic;
}

.property-content {
    padding: 25px;
}

.property-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tag {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-offre {
    background: #e3f2fd;
    color: #1976d2;
}

.tag-bien {
    background: #f3e5f5;
    color: #7b1fa2;
}

.tag-pieces {
    background: #e8f5e8;
    color: #388e3c;
}

.property-title {
    margin: 0 0 10px 0;
    font-size: 1em;
    line-height: 1.3;
}

.property-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.property-title a:hover {
    color: #D4A574;
}

.property-subtitle {
    color: #7f8c8d;
    margin: 0 0 20px 0;
    line-height: 1.5;
    font-size: 0.95em;
}

.property-footer {
    display: flex;
    justify-content: flex-start;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.btn-voir-bien {
    color: #D4A574;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

.btn-voir-bien:hover {
    color: #B8955F;
    border-bottom-color: #B8955F;
}

/* ========================================
   AUCUN RÉSULTAT
======================================== */

.no-results {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 40px 0;
}

.no-results h2 {
    color: #6c757d;
    margin-bottom: 15px;
    font-weight: 400;
}

.no-results p {
    color: #868e96;
    font-size: 1.1em;
}

/* ========================================
   PAGINATION
======================================== */

.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    padding: 20px 0;
}

.pagination-wrapper .page-numbers {
    display: inline-block;
    padding: 12px 16px;
    margin: 0 4px;
    background: #fff;
    color: #2c3e50;
    text-decoration: none;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination-wrapper .page-numbers:hover,
.pagination-wrapper .page-numbers.current {
    background: #D4A574;
    color: white;
    border-color: #D4A574;
}

.pagination-wrapper .page-numbers.prev,
.pagination-wrapper .page-numbers.next {
    font-weight: 400;
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 768px) {
    .recherche-immobiliere-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .recherche-immobiliere-form .form-group {
        min-width: auto;
        max-width: none;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .results-header h2 {
        font-size: 2em;
    }
    
    .property-content {
        padding: 20px;
    }
    
    .property-tags {
        justify-content: center;
    }
    
    .pagination-wrapper .page-numbers {
        padding: 10px 12px;
        margin: 0 2px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .recherche-immobiliere-form-container {
        padding: 20px 15px;
    }
    
    .recherche-immobiliere-results {
        padding: 15px;
    }
    
    .results-header h2 {
        font-size: 1.8em;
    }
    
    .property-image {
        height: 200px;
    }
    
    .property-content {
        padding: 15px;
    }
    
    .property-title {
        font-size: 1.2em;
    }
}

/* ========================================
   ANIMATIONS
======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.property-card {
    animation: fadeInUp 0.6s ease forwards;
}

.property-card:nth-child(1) { animation-delay: 0.1s; }
.property-card:nth-child(2) { animation-delay: 0.2s; }
.property-card:nth-child(3) { animation-delay: 0.3s; }
.property-card:nth-child(4) { animation-delay: 0.4s; }
.property-card:nth-child(5) { animation-delay: 0.5s; }
.property-card:nth-child(6) { animation-delay: 0.6s; }

/* Pour les cartes au-delà de la 6ème */
.property-card:nth-child(n+7) { 
    animation-delay: 0.7s; 
}


/* Styles de base pour le menu sticky */
.entete {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: all 0.3s ease-in-out;
}



.entete-accueil .wp-block-navigation__responsive-container-open {
	color: #002e60;
}

.wp-block-navigation__responsive-container-close {
	color: #002e60 !important;
}

/* État du menu après défilement de 138px */
.entete.scrolled {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
}

.entete-accueil.scrolled {
    background-color: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
}

.entete-accueil.scrolled .wp-block-navigation-link a span{
	color: #002e60;
}

/* Styles pour l'image dans le menu */
.entete img {
    height: 110px;
    width: auto;
    transition: all 0.3s ease-in-out;
}

/* Image réduite après défilement */
.entete.scrolled img {
    height: 55px;
}


/* Animation supplémentaire pour une transition plus fluide */
.entete * {
    transition: all 0.3s ease-in-out;
}


/* ========================================
   villa de reve
======================================== */

#villa-reve .form-container {
            background: rgba(255, 255, 255, 0.95);
            padding: 40px;
            border-radius: 20px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            max-width: 400px;
            width: 100%;
            text-align: center;
        }

        #villa-reve .form-title {
            color: #333;
            font-size: 2.2em;
            margin-bottom: 10px;
            font-weight: 300;
            letter-spacing: 1px;
        }

        #villa-reve .form-subtitle {
            color: #666;
            margin-bottom: 30px;
            font-size: 1.1em;
            font-weight: 400;
        }

        #villa-reve {
            width: 100%;
        }

        #villa-reve .form-group {
            margin-bottom: 25px;
            text-align: left;
        }

        #villa-reve .form-label {
            display: block;
            margin-bottom: 8px;
            color: #555;
            font-weight: 500;
            font-size: 1.1em;
        }

        #villa-reve .form-select {
            width: 100%;
            padding: 15px 20px;
            border: 2px solid #e1e5e9;
            border-radius: 12px;
            font-size: 16px;
            color: #333;
            background: #fff;
            transition: all 0.3s ease;
            cursor: pointer;
            appearance: none;
            background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right 15px center;
            background-size: 20px;
            padding-right: 50px;
        }

        #villa-reve .form-select:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
            transform: translateY(-2px);
        }

        #villa-reve .form-select:hover {
            border-color: #667eea;
        }

        #villa-reve .form-select option {
            padding: 10px;
            font-size: 16px;
            color: #333;
        }

        #villa-reve .form-select option:first-child {
            color: #999;
        }

        /* Animation de chargement */
        #villa-reve .loading {
            position: relative;
            pointer-events: none;
        }

        #villa-reve .loading::after {
            content: "";
            position: absolute;
            top: 50%;
            right: 15px;
            transform: translateY(-50%);
            width: 20px;
            height: 20px;
            border: 2px solid #f3f3f3;
            border-top: 2px solid #667eea;
            border-radius: 50%;
            animation: villa-reve-spin 1s linear infinite;
        }

        @keyframes villa-reve-spin {
            0% { transform: translateY(-50%) rotate(0deg); }
            100% { transform: translateY(-50%) rotate(360deg); }
        }

        /* Responsive design */
        @media (max-width: 480px) {
            #villa-reve .form-container {
                padding: 30px 20px;
                margin: 10px;
            }

            #villa-reve .form-title {
                font-size: 1.8em;
            }

            #villa-reve .form-select {
                padding: 12px 15px;
                padding-right: 45px;
                background-size: 18px;
            }
        }

        /* Effet de focus amélioré */
        #villa-reve .form-group.focused .form-select {
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        /* Animation d'apparition */
        #villa-reve .form-container {
            animation: villa-reve-fadeInUp 0.6s ease-out;
        }

        @keyframes villa-reve-fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }