/* ============================================
   RESPONSIVE - WAREsIA
   Mobile-First
   ============================================ */

/* --- TABLETTES ET PETITS ÉCRANS --- */
@media screen and (max-width: 1024px) {
    .hero-search {
        bottom: -40px;
        width: 95%;
    }

    .search-box {
        padding: 15px 20px;
        gap: 12px;
    }

    .search-field {
        min-width: 130px;
        padding: 0 12px;
    }

    .search-field select,
    .search-field input {
        padding: 12px 0;
        font-size: 13px;
    }

    .search-btn {
        padding: 12px 25px;
        min-width: 140px;
        font-size: 14px;
    }

    .property-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image img {
        height: 300px;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .hero-stats {
        gap: 30px;
    }

    .stat-number {
        font-size: 28px;
    }
}

/* --- MOBILES (PORTRAIT) --- */
@media screen and (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .navbar {
        height: 70px;
        padding: 0 4%;
    }

    .logo img {
        width: 40px;
        height: 40px;
    }

    .logo-text h2 {
        font-size: 18px;
    }

    .logo-text p {
        font-size: 8px;
        display: none;
    }

    nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--primary);
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
        transform: translateY(-120%);
        transition: var(--transition);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        border-bottom: 2px solid var(--gold);
    }

    nav.open {
        transform: translateY(0);
    }

    nav a {
        padding: 14px 30px;
        width: 100%;
        text-align: center;
        font-size: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    nav a::after {
        display: none;
    }

    nav a:hover,
    nav a.active {
        background: rgba(212, 175, 55, 0.1);
    }

    .menu-toggle {
        display: block;
    }

    .admin-link {
        font-size: 18px;
    }

    /* --- HERO --- */
    .hero {
        min-height: 100vh;
        height: auto;
        max-height: none;
        padding: 100px 0 120px;
    }

    .hero-bg-image {
        background: 
            linear-gradient(180deg, rgba(17, 17, 17, 0.85) 0%, rgba(17, 17, 17, 0.6) 50%, rgba(17, 17, 17, 0.85) 100%),
            url('https://images.unsplash.com/photo-1580587771525-78b9dba3b914?w=800&q=80');
        background-size: cover;
        background-position: center;
    }

    .hero-logo img {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }

    .hero-title {
        font-size: 38px;
    }

    .hero-subtitle {
        font-size: 14px;
        letter-spacing: 2px;
    }

    .hero-slogan {
        font-size: 16px;
        padding: 0 15px;
    }

    .hero-stats {
        gap: 20px;
        flex-wrap: wrap;
    }

    .stat {
        flex: 1;
        min-width: 70px;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-label {
        font-size: 12px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-top: 30px;
    }

    .btn-gold,
    .btn-outline {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 14px 30px;
        font-size: 15px;
    }

    /* --- HERO SEARCH --- */
    .hero-search {
        position: relative;
        bottom: 0;
        transform: none;
        width: 100%;
        padding: 0 4%;
        margin-top: -50px;
    }

    .search-box {
        flex-direction: column;
        padding: 18px;
        border-radius: 14px;
        gap: 10px;
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    }

    .search-field {
        width: 100%;
        min-width: unset;
        padding: 0 14px;
    }

    .search-field select,
    .search-field input {
        padding: 13px 0;
        font-size: 14px;
    }

    .search-btn {
        width: 100%;
        min-width: unset;
        padding: 14px;
        font-size: 15px;
        margin-top: 5px;
    }

    /* --- PROPERTIES --- */
    .properties {
        padding: 80px 4% 60px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .section-header p {
        font-size: 15px;
    }

    .property-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 500px;
        margin: 0 auto;
    }

    .property-card-image {
        height: 180px;
    }

    .property-card-body h3 {
        font-size: 18px;
    }

    .property-card-body .price {
        font-size: 22px;
    }

    /* --- ABOUT --- */
    .about {
        padding: 60px 4%;
    }

    .about-image img {
        height: 220px;
    }

    .about-content h2 {
        font-size: 26px;
    }

    .about-features {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .feature {
        padding: 10px 14px;
        font-size: 13px;
    }

    .feature i {
        font-size: 16px;
        width: 24px;
    }

    /* --- CONTACT --- */
    .contact {
        padding: 60px 4%;
    }

    .contact-container h2 {
        font-size: 26px;
    }

    .contact-container > p {
        font-size: 15px;
    }

    .contact-info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .contact-card {
        padding: 20px 15px;
    }

    .contact-card i {
        font-size: 24px;
    }

    .contact-card h3 {
        font-size: 14px;
    }

    /* --- FOOTER --- */
    .footer {
        padding: 40px 4% 0;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 25px;
        padding-bottom: 30px;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-brand img {
        margin: 0 auto 10px;
    }

    .footer-links,
    .footer-contact,
    .footer-social {
        text-align: center;
    }

    .footer-contact p {
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    }

    /* --- WHATSAPP --- */
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 28px;
        bottom: 20px;
        right: 20px;
    }

    /* --- BACK TO TOP --- */
    .back-to-top {
        width: 45px;
        height: 45px;
        font-size: 18px;
        bottom: 85px;
        right: 20px;
    }
}

/* --- PETITS MOBILES (< 480px) --- */
@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 30px;
    }

    .hero-slogan {
        font-size: 14px;
    }

    .hero-stats {
        gap: 12px;
    }

    .stat {
        min-width: 60px;
    }

    .stat-number {
        font-size: 20px;
    }

    .stat-label {
        font-size: 10px;
    }

    .property-card-image {
        height: 150px;
    }

    .property-card-body {
        padding: 15px 18px;
    }

    .property-card-footer {
        padding: 12px 18px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .property-card-footer .btn-details {
        padding: 8px 18px;
        font-size: 13px;
        flex: 1;
        text-align: center;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto;
    }

    .search-field i {
        font-size: 12px;
    }

    .search-field select,
    .search-field input {
        font-size: 13px;
        padding: 11px 0;
    }
}

/* --- GRANDS ÉCRANS --- */
@media screen and (min-width: 1400px) {
    .properties {
        padding: 120px 8% 80px;
    }

    .property-grid {
        grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
        gap: 35px;
    }

    .hero-search {
        max-width: 1300px;
    }
}

/* --- IMPRESSION --- */
@media print {
    .navbar,
    .hero-search,
    .whatsapp-float,
    .back-to-top,
    .footer {
        display: none !important;
    }

    body {
        padding-top: 0 !important;
    }

    .hero {
        min-height: auto !important;
        padding: 40px 0 !important;
    }

    .hero-bg-image {
        background: var(--primary) !important;
    }
}