/* ============================================================
   QuadPlatform - Feuille de style principale
   Design premium : aventure & tourisme
   ============================================================ */
:root {
    --qp-primary: #f59e0b;
    --qp-secondary: #0f172a;
    --qp-button: #f59e0b;
    --qp-text: #0f172a;
    --qp-bg: #ffffff;
    --qp-radius: 16px;
    --qp-muted: #64748b;
    --qp-border: #e2e8f0;
    --qp-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

body.qp-site {
    font-family: var(--qp-font);
    color: var(--qp-text);
    background: var(--qp-bg);
    overflow-x: hidden;
}

a { text-decoration: none; }

/* ---------- Header ---------- */
.qp-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(15, 23, 42, .92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.qp-header .navbar-brand {
    font-weight: 800;
    color: #fff;
    font-size: 1.35rem;
    letter-spacing: -.5px;
}
.qp-header .navbar-brand .logo-badge {
    background: linear-gradient(135deg, var(--qp-primary), #ef4444);
    width: 40px; height: 40px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center; font-size: 20px;
}
.qp-header .nav-link {
    color: rgba(255, 255, 255, .82);
    font-weight: 500;
    margin: 0 4px;
    padding: 8px 14px;
    border-radius: 10px;
    transition: .2s;
}
.qp-header .nav-link:hover, .qp-header .nav-link.active {
    color: #fff;
    background: rgba(245, 158, 11, .16);
}
.qp-btn-book {
    background: linear-gradient(135deg, var(--qp-primary), #ef4444);
    color: #fff;
    border: 0;
    border-radius: 12px;
    padding: 10px 20px;
    font-weight: 600;
    box-shadow: 0 8px 22px rgba(245, 158, 11, .35);
}
.qp-btn-book:hover { color: #fff; transform: translateY(-1px); }

/* ---------- Hero ---------- */
.qp-hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(15, 23, 42, .55), rgba(15, 23, 42, .8)),
        url('../img/hero-quad.svg') center/cover no-repeat;
    background-color: #0f172a;
    color: #fff;
}
.qp-hero h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -1.5px;
}
.qp-hero .badge-adventure {
    display: inline-block;
    background: rgba(245, 158, 11, .2);
    color: var(--qp-primary);
    border: 1px solid rgba(245, 158, 11, .4);
    padding: 8px 18px;
    border-radius: 999px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* ---------- Sections ---------- */
.qp-section { padding: 84px 0; }
.qp-section-title { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -1px; }
.qp-eyebrow {
    color: var(--qp-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: .8rem;
}

/* ---------- Cards ---------- */
.qp-card {
    border: 1px solid var(--qp-border);
    border-radius: var(--qp-radius);
    overflow: hidden;
    transition: .25s;
    background: #fff;
    height: 100%;
}
.qp-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(15, 23, 42, .12); }
.qp-card img { width: 100%; height: 220px; object-fit: cover; }

.qp-feature {
    background: #fff;
    border: 1px solid var(--qp-border);
    border-radius: var(--qp-radius);
    padding: 28px;
    height: 100%;
    transition: .25s;
}
.qp-feature:hover { border-color: var(--qp-primary); box-shadow: 0 18px 40px rgba(15, 23, 42, .08); }
.qp-feature .icon {
    width: 56px; height: 56px; border-radius: 14px;
    background: linear-gradient(135deg, rgba(245, 158, 11, .15), rgba(239, 68, 68, .15));
    color: var(--qp-primary);
    display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 16px;
}

/* ---------- CTA ---------- */
.qp-cta {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border-radius: 24px;
    color: #fff;
    padding: 56px;
    position: relative;
    overflow: hidden;
}
.qp-cta::after {
    content: ''; position: absolute; right: -60px; top: -60px;
    width: 260px; height: 260px; border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, .35), transparent 70%);
}

/* ---------- Testimonials ---------- */
.qp-testimonial {
    background: #fff; border: 1px solid var(--qp-border); border-radius: var(--qp-radius);
    padding: 28px; height: 100%;
}
.qp-stars { color: #f59e0b; }

/* ---------- Footer ---------- */
.qp-footer { background: #0b1220; color: #94a3b8; padding: 64px 0 24px; }
.qp-footer h6 { color: #fff; font-weight: 700; margin-bottom: 18px; }
.qp-footer a { color: #94a3b8; display: block; padding: 4px 0; transition: .2s; }
.qp-footer a:hover { color: var(--qp-primary); }
.qp-footer .social a { display: inline-flex; width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.06); align-items: center; justify-content: center; margin-right: 8px; }

/* ---------- WhatsApp float ---------- */
.qp-whatsapp {
    position: fixed; right: 22px; bottom: 22px; z-index: 1040;
    width: 58px; height: 58px; border-radius: 50%;
    background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 28px; box-shadow: 0 10px 30px rgba(37, 211, 102, .45);
}
.qp-whatsapp:hover { color: #fff; transform: scale(1.06); }

/* ---------- Forms ---------- */
.form-control, .form-select { border-radius: 10px; padding: 11px 14px; border-color: var(--qp-border); }
.form-control:focus, .form-select:focus { border-color: var(--qp-primary); box-shadow: 0 0 0 .2rem rgba(245,158,11,.15); }
.btn-qp { background: var(--qp-button); border-color: var(--qp-button); color: #fff; font-weight: 600; border-radius: 12px; padding: 11px 22px; }
.btn-qp:hover { color: #fff; filter: brightness(1.05); }

/* ---------- Booking steps ---------- */
.qp-steps { display: flex; gap: 8px; flex-wrap: wrap; }
.qp-step {
    flex: 1; min-width: 140px; padding: 14px 16px; border-radius: 12px;
    background: #f8fafc; border: 1px solid var(--qp-border); font-weight: 600; color: var(--qp-muted);
}
.qp-step.active { background: rgba(245,158,11,.12); border-color: var(--qp-primary); color: var(--qp-secondary); }

/* ---------- RTL ---------- */
html[dir="rtl"] .qp-whatsapp { right: auto; left: 22px; }
html[dir="rtl"] .qp-footer .social a { margin-right: 0; margin-left: 8px; }

/* ============================================================
   ADMIN / DASHBOARD
   ============================================================ */
body.qp-admin { font-family: var(--qp-font); background: #f1f5f9; margin: 0; }
.qp-admin-wrap { display: flex; min-height: 100vh; }
.qp-sidebar {
    width: 264px; background: #0f172a; color: #cbd5e1; flex-shrink: 0;
    position: fixed; top: 0; bottom: 0; overflow-y: auto; z-index: 1040; transition: .25s;
}
.qp-sidebar .brand { padding: 22px 22px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid rgba(255,255,255,.07); }
.qp-sidebar .brand .logo-badge { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--qp-primary), #ef4444); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.qp-sidebar .brand b { color: #fff; font-size: 1.1rem; }
.qp-nav-group { padding: 16px 14px 4px; font-size: .7rem; text-transform: uppercase; letter-spacing: 1.5px; color: #64748b; }
.qp-sidebar a.nav-item {
    display: flex; align-items: center; gap: 12px; padding: 11px 18px; color: #cbd5e1;
    border-radius: 10px; margin: 2px 10px; font-size: .92rem; transition: .18s;
}
.qp-sidebar a.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.qp-sidebar a.nav-item.active { background: linear-gradient(135deg, var(--qp-primary), #ef4444); color: #fff; font-weight: 600; }
.qp-sidebar .nav-item i { width: 20px; text-align: center; }
.qp-main { margin-left: 264px; flex: 1; min-width: 0; display: flex; flex-direction: column; }
.qp-topbar { background: #fff; border-bottom: 1px solid var(--qp-border); padding: 14px 26px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 1020; }
.qp-content { padding: 26px; }

.stat-card { background: #fff; border-radius: var(--qp-radius); padding: 22px; border: 1px solid var(--qp-border); height: 100%; position: relative; overflow: hidden; }
.stat-card .icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 14px; }
.stat-card .value { font-size: 1.7rem; font-weight: 800; letter-spacing: -.5px; }
.stat-card .label { color: var(--qp-muted); font-size: .85rem; font-weight: 500; }

.qp-panel { background: #fff; border-radius: var(--qp-radius); border: 1px solid var(--qp-border); margin-bottom: 24px; }
.qp-panel .panel-head { padding: 18px 22px; border-bottom: 1px solid var(--qp-border); display: flex; align-items: center; justify-content: space-between; }
.qp-panel .panel-head h5 { margin: 0; font-weight: 700; font-size: 1.05rem; }
.qp-panel .panel-body { padding: 22px; }

.table > :not(caption) > * > * { padding: .7rem .8rem; }
.table thead th { font-size: .76rem; text-transform: uppercase; letter-spacing: .6px; color: var(--qp-muted); border-bottom: 2px solid var(--qp-border); }
.table-hover tbody tr:hover { background: #f8fafc; }

.badge-soft { padding: .35em .7em; border-radius: 8px; font-weight: 600; font-size: .75rem; }
.badge-soft.pending { background: #fef3c7; color: #92400e; }
.badge-soft.confirmed { background: #d1fae5; color: #065f46; }
.badge-soft.cancelled { background: #fee2e2; color: #991b1b; }
.badge-soft.completed { background: #dbeafe; color: #1e40af; }
.badge-soft.no_show { background: #f3e8ff; color: #6b21a8; }
.badge-soft.paid { background: #d1fae5; color: #065f46; }
.badge-soft.unpaid { background: #fee2e2; color: #991b1b; }
.badge-soft.partial { background: #fef3c7; color: #92400e; }

.qp-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0f172a, #1e293b); padding: 20px; }
.qp-login .card { border: 0; border-radius: 20px; box-shadow: 0 30px 80px rgba(0,0,0,.4); overflow: hidden; max-width: 920px; width: 100%; }
.qp-login .side { background: linear-gradient(150deg, #f59e0b, #ef4444); color: #fff; padding: 48px 40px; }

/* Dark mode admin */
body.qp-admin.dark { background: #0b1220; color: #e2e8f0; }
body.qp-admin.dark .qp-topbar, body.qp-admin.dark .qp-panel, body.qp-admin.dark .stat-card { background: #111c2e; border-color: #1e293b; color: #e2e8f0; }
body.qp-admin.dark .table { color: #cbd5e1; }
body.qp-admin.dark .qp-panel .panel-head { border-color: #1e293b; }
body.qp-admin.dark .table-hover tbody tr:hover { background: #16233a; }

/* Impression */
@media print {
    .qp-sidebar, .qp-topbar, .no-print, .qp-whatsapp { display: none !important; }
    .qp-main { margin-left: 0 !important; }
    .qp-content { padding: 0 !important; }
    .qp-panel { border: 0 !important; }
}

/* Responsive admin */
@media (max-width: 991px) {
    .qp-sidebar { transform: translateX(-100%); }
    .qp-sidebar.open { transform: translateX(0); }
    .qp-main { margin-left: 0; }
    html[dir="rtl"] .qp-sidebar { transform: translateX(100%); }
    html[dir="rtl"] .qp-sidebar.open { transform: translateX(0); }
}
@media (max-width: 576px) {
    .qp-section { padding: 56px 0; }
    .qp-content { padding: 16px; }
    .qp-cta { padding: 32px 24px; }
}
