/* * DjuntaCar - Style Global (Design Premium)
 */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #1d4379;
    --primary-light: #3b82f6;
    --bg-page: #fcfcfd;
    --text-dark: #111827;
}

/* --- BASE --- */
body {
    font-family: 'Montserrat', sans-serif !important;
    background-color: var(--bg-page);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    padding-bottom: 160px; /* Espace pour la barre fixe en bas */
    margin: 0;
}

/* --- HEADER (20% - 60% - 20%) --- */
header { 
    height: 80px; /* Hauteur confortable pour le logo */
    background: white; 
    display: flex; 
    align-items: center; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    border-bottom: 1px solid #f1f5f9;
}
.header-container {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}
.header-side { 
    width: 20%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}
.header-center { 
    width: 60%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
}
.header-logo { 
    max-height: 60px; /* Logo Agrandi */
    width: auto; 
    object-fit: contain; 
}

/* --- HERO SECTION (Fond Bleu) --- */
.hero-bg { 
    background-color: var(--primary); 
    border-bottom-left-radius: 45px; 
    border-bottom-right-radius: 45px;
    padding-top: 15px;
    padding-bottom: 35px;
}
.content-wrapper { 
    max-width: 400px; 
    margin: 0 auto; 
}

/* --- FILTRES FLOTTANTS --- */
.filter-float { 
    margin-top: -20px; 
    z-index: 50; 
    position: relative; 
}
.categories-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 8px; 
}
.cat-chip {
    background: white; 
    height: 40px; 
    border-radius: 12px;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 4px;
    font-size: 8px; 
    font-weight: 800; 
    color: #94a3b8; 
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
    border: 1px solid #f1f5f9;
    transition: all 0.2s;
    cursor: pointer;
}
.cat-chip.active { 
    color: var(--primary); 
    border-color: var(--primary); 
}
.cat-chip i { width: 14px; height: 14px; }

/* --- CARTES VOITURES --- */
.car-card {
    background: white; 
    border-radius: 32px; 
    overflow: hidden;
    border: 1px solid #f1f5f9; 
    position: relative; 
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04); 
    transition: transform 0.2s;
    cursor: pointer;
}
.car-card:active { transform: scale(0.98); }

.location-tag { 
    position: absolute; bottom: 15px; left: 15px; 
    background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); 
    color: white; padding: 4px 12px; border-radius: 12px; 
    font-size: 10px; font-weight: 700; display: flex; align-items: center; gap: 6px; 
}

/* --- BARRE D'ACTION FIXE (Bas de page) --- */
.action-bar-fixed {
    position: fixed; 
    bottom: 0; 
    left: 0; 
    right: 0;
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(10px);
    padding: 16px 20px; 
    border-top: 1px solid #f1f5f9; 
    z-index: 900;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
}

/* --- MENU LATÉRAL (Burger) --- */
#mobile-menu {
    position: fixed; 
    inset: 0; 
    background: white; 
    z-index: 2000;
    padding: 32px; 
    display: flex; 
    flex-direction: column;
    transform: translateX(-100%); 
    transition: transform 0.3s ease-in-out;
}
#mobile-menu.active { transform: translateX(0); }
