/* --- Polices et Styles Généraux --- */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f3f4f6;
}

/* --- Couleurs Principales (Orange) --- */
.btn-primary {
    background-color: #F97316;
    color: white;
    transition: background-color 0.3s ease-in-out;
}
.btn-primary:hover { background-color: #EA580C; }
.text-primary      { color: #F97316; }
.border-primary    { border-color: #F97316; }

/* --- Animation de Chargement --- */
.loader {
    border: 8px solid #f3f3f3;
    border-radius: 50%;
    border-top: 8px solid #F97316;
    width: 60px;
    height: 60px;
    animation: spin 1.5s linear infinite;
}
@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Hero --- */
.bg-hero {
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
                      url('https://images.unsplash.com/photo-1560448204-e02f11c3d0e2?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    min-height: 60vh;
}

/* --- Logo taille fixe (tous écrans) --- */
header a img {
    height: 48px;
    width: 48px;
    object-fit: contain;
}

/* ============================================================
   MOBILE UNIQUEMENT — max 767px
   Toutes les règles ci-dessous n'affectent PAS le desktop
   ============================================================ */
@media (max-width: 767px) {

    *, *::before, *::after { box-sizing: border-box; }
    html, body { overflow-x: hidden; max-width: 100%; }
    img, video, embed, object { max-width: 100%; height: auto; }

    /* Menu desktop masqué */
    header .container > nav,
    header .container > div:not(:first-child):not(:last-child) {
        display: none !important;
    }

    /* Menu mobile géré par JS */
    #mobile-menu        { display: none; }
    #mobile-menu.open   { display: block !important; }
    #mobile-menu-button { display: flex !important; }

    /* Hero */
    .bg-hero {
        min-height: auto !important;
        padding: 2.5rem 1rem 1.5rem !important;
        display: flex !important;
        align-items: flex-start !important;
        justify-content: center !important;
    }
    .bg-hero h1 {
        font-size: clamp(1.4rem, 6vw, 2rem) !important;
        line-height: 1.3 !important;
    }
    .bg-hero p { font-size: 0.95rem !important; }

    /* Boutons Vente/Location */
    .bg-hero .mb-8 {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.75rem !important;
    }
    .bg-hero .mb-8 a {
        width: 100% !important;
        max-width: 260px !important;
        text-align: center !important;
        margin: 0 !important;
    }

    /* Barre de recherche */
    #search-form {
        flex-direction: column !important;
        padding: 1rem !important;
        gap: 1rem !important;
        margin: 0 !important;
    }
    #search-form > div {
        width: 100% !important;
        min-width: unset !important;
    }
    #search-form > div[style*="width: 1px"] {
        display: none !important;
    }
    #search-form select {
        font-size: 16px !important;
        padding: 8px 0 !important;
    }
    #search-form button[type="submit"] {
        width: 100% !important;
        justify-content: center !important;
        padding: 0.8rem !important;
        font-size: 16px !important;
    }

    /* Grilles : 1 colonne */
    .grid {
        grid-template-columns: 1fr !important;
    }

    /* Conteneurs */
    .container,
    .max-w-7xl,
    .max-w-6xl,
    .max-w-5xl {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Typographie */
    h1 { font-size: clamp(1.4rem, 5.5vw, 2rem) !important; }
    h2 { font-size: clamp(1.2rem, 4.5vw, 1.6rem) !important; }
    h3 { font-size: clamp(1rem, 4vw, 1.2rem) !important; }
}
