/* NissaPark.fr — Styles principaux */

:root {
    --np-primary:   #2563eb;
    --np-secondary: #64748b;
    --np-success:   #16a34a;
    --np-danger:    #dc2626;
    --np-warning:   #d97706;
    --np-light:     #f8fafc;
    --np-dark:      #0f172a;
}

/* ── Général ──────────────────────────────────────────────────────────────── */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--np-dark);
}

a { text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Hero (page accueil) ─────────────────────────────────────────────────── */
.hero-section {
    background: linear-gradient(135deg, var(--np-primary) 0%, #1e40af 100%);
    padding: 80px 0;
    color: white;
}
.hero-section h1 { font-size: 2.8rem; font-weight: 800; }
.hero-section .search-box {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

/* ── Carte Google Maps ───────────────────────────────────────────────────── */
#map {
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* ── Cartes garages ──────────────────────────────────────────────────────── */
.garage-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    cursor: pointer;
}
.garage-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.garage-card img {
    height: 180px;
    object-fit: cover;
    width: 100%;
}
.garage-card .badge-status-active   { background: var(--np-success); }
.garage-card .badge-status-rented   { background: var(--np-warning); }
.garage-card .badge-status-inactive { background: var(--np-secondary); }

/* ── Pins carte ──────────────────────────────────────────────────────────── */
.map-pin-available { color: var(--np-success); }
.map-pin-rented    { color: var(--np-warning); }

/* ── Formulaires ─────────────────────────────────────────────────────────── */
.form-control:focus, .form-select:focus {
    border-color: var(--np-primary);
    box-shadow: 0 0 0 0.2rem rgba(37,99,235,0.15);
}

/* ── Indicateur force MDP ────────────────────────────────────────────────── */
.password-strength .bar {
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    transition: background 0.3s, width 0.3s;
}
.password-strength .bar.weak   { background: var(--np-danger); }
.password-strength .bar.fair   { background: var(--np-warning); }
.password-strength .bar.good   { background: #3b82f6; }
.password-strength .bar.strong { background: var(--np-success); }

/* ── Chat ────────────────────────────────────────────────────────────────── */
.chat-container {
    height: 400px;
    overflow-y: auto;
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e2e8f0;
}
.chat-bubble {
    max-width: 70%;
    padding: 10px 14px;
    border-radius: 16px;
    margin-bottom: 8px;
    word-break: break-word;
}
.chat-bubble.sent {
    background: var(--np-primary);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}
.chat-bubble.received {
    background: white;
    color: var(--np-dark);
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 4px;
}

/* ── Notation étoiles ────────────────────────────────────────────────────── */
.star-rating {
    color: #fbbf24;
    font-size: 1.2rem;
}
.star-rating .empty { color: #d1d5db; }

/* ── Status badges ───────────────────────────────────────────────────────── */
.badge-active            { background: #dcfce7; color: #16a34a; }
.badge-pending           { background: #fef3c7; color: #d97706; }
.badge-pending_signature { background: #dbeafe; color: #2563eb; }
.badge-cancelled         { background: #fee2e2; color: #dc2626; }
.badge-rented            { background: #f3e8ff; color: #7c3aed; }

/* ── Sidebar membre ──────────────────────────────────────────────────────── */
nav .nav-link { border-radius: 8px; margin-bottom: 2px; font-size: 0.9rem; }
nav .nav-link:hover { background: rgba(255,255,255,0.15); }
nav .nav-link.active { background: rgba(255,255,255,0.25); font-weight: 600; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero-section h1 { font-size: 1.8rem; }
    nav[style*="width:240px"] { width: 100% !important; min-width: 100% !important; }
}
