/* ==========================================================
   GymPro Enterprise — Feuille de style principale
   Charte : Orange #ff7a00 / Noir #14161a / Blanc
   ========================================================== */

:root {
    --gp-orange: #ff7a00;
    --gp-orange-dark: #e56800;
    --gp-black: #14161a;
    --gp-black-soft: #1d2026;
    --gp-gray: #6c7280;
    --gp-gray-light: #f4f5f7;
    --gp-white: #ffffff;
    --gp-radius: 12px;
    --gp-shadow: 0 4px 18px rgba(20, 22, 26, 0.08);
    --gp-sidebar-w: 260px;
}

* { box-sizing: border-box; }

body {
    background: var(--gp-gray-light);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--gp-black);
}

/* ---------- Sidebar ---------- */

.gp-sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: var(--gp-sidebar-w);
    background: var(--gp-black);
    color: var(--gp-white);
    display: flex;
    flex-direction: column;
    z-index: 1030;
    transition: transform .25s ease;
}

.gp-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.gp-brand-mark {
    width: 42px; height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--gp-orange), #ff9d40);
    color: #fff;
    font-weight: 800;
    font-size: 1.3rem;
    display: flex; align-items: center; justify-content: center;
}

.gp-brand-mark-lg { width: 64px; height: 64px; font-size: 2rem; border-radius: 16px; margin: 0 auto 14px; }

.gp-brand-text strong { display: block; font-size: 1.05rem; line-height: 1.1; }
.gp-brand-text small { color: var(--gp-orange); letter-spacing: .5px; font-size: .7rem; }

.gp-sidebar-nav { padding: 16px 12px; overflow-y: auto; flex: 1; }

.gp-nav-link {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px;
    margin-bottom: 4px;
    border-radius: 8px;
    color: rgba(255,255,255,0.72);
    text-decoration: none;
    font-size: .92rem;
    transition: background .15s, color .15s;
}

.gp-nav-link i { width: 18px; text-align: center; color: rgba(255,255,255,0.5); }

.gp-nav-link:hover {
    background: rgba(255,122,0,0.12);
    color: #fff;
}

.gp-nav-link.active {
    background: var(--gp-orange);
    color: #fff;
    font-weight: 600;
}

.gp-nav-link.active i { color: #fff; }

.gp-nav-divider {
    margin: 18px 14px 8px;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.35);
}

/* ---------- Main / Header ---------- */

.gp-main { margin-left: var(--gp-sidebar-w); min-height: 100vh; }

.gp-header {
    position: sticky; top: 0; z-index: 1020;
    height: 68px;
    background: var(--gp-white);
    border-bottom: 1px solid #eceef1;
    display: flex; align-items: center;
    padding: 0 24px;
    gap: 16px;
}

.gp-burger {
    display: none;
    background: none; border: none; font-size: 1.2rem; color: var(--gp-black);
}

.gp-header-search {
    flex: 1;
    max-width: 420px;
    background: var(--gp-gray-light);
    border-radius: 999px;
    padding: 9px 16px;
    display: flex; align-items: center; gap: 10px;
    color: var(--gp-gray);
}

.gp-header-search input {
    border: none; background: transparent; outline: none; width: 100%; font-size: .9rem;
}

.gp-header-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }

.gp-user-btn {
    display: flex; align-items: center; gap: 10px;
    background: none; border: none;
    padding: 6px 10px; border-radius: 999px;
}

.gp-user-btn:hover { background: var(--gp-gray-light); }

.gp-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--gp-orange);
    color: #fff; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}

.gp-content { padding: 28px; }

/* ---------- Cards / KPI ---------- */

.gp-card {
    background: var(--gp-white);
    border-radius: var(--gp-radius);
    box-shadow: var(--gp-shadow);
    border: 1px solid #f0f1f3;
    padding: 22px;
}

.gp-kpi {
    display: flex; align-items: center; gap: 16px;
}

.gp-kpi-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: #fff;
    background: linear-gradient(135deg, var(--gp-orange), #ff9d40);
}

.gp-kpi-value { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.gp-kpi-label { color: var(--gp-gray); font-size: .82rem; margin-top: 4px; }

.gp-page-title {
    font-weight: 800;
    margin-bottom: 4px;
}

.gp-page-subtitle { color: var(--gp-gray); margin-bottom: 24px; }

/* ---------- Buttons ---------- */

.btn-gp {
    background: var(--gp-orange);
    border-color: var(--gp-orange);
    color: #fff;
    font-weight: 600;
}

.btn-gp:hover { background: var(--gp-orange-dark); border-color: var(--gp-orange-dark); color: #fff; }

.btn-outline-gp {
    border: 1px solid var(--gp-orange);
    color: var(--gp-orange);
    font-weight: 600;
    background: transparent;
}

.btn-outline-gp:hover { background: var(--gp-orange); color: #fff; }

/* ---------- Tables ---------- */

.table-gp thead { background: var(--gp-black); color: #fff; }
.table-gp thead th { border: none; font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .4px; }
.table-gp td, .table-gp th { vertical-align: middle; padding: 14px 16px; }

.gp-badge-plan {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
}

.gp-badge-illimite { background: rgba(255,122,0,0.12); color: var(--gp-orange); }
.gp-badge-seance { background: rgba(20,22,26,0.08); color: var(--gp-black); }
.gp-badge-etudiant { background: rgba(13,110,253,0.1); color: #0d6efd; }

/* ---------- Auth pages ---------- */

.gp-auth-body {
    background: var(--gp-black);
    background-image: radial-gradient(circle at top right, rgba(255,122,0,0.18), transparent 45%);
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
}

.gp-auth-wrapper { width: 100%; max-width: 420px; }

.gp-auth-brand { text-align: center; color: #fff; margin-bottom: 24px; }
.gp-auth-brand h1 { font-weight: 800; font-size: 1.6rem; margin: 0 0 4px; }
.gp-auth-brand h1 span { color: var(--gp-orange); }
.gp-auth-brand p { color: rgba(255,255,255,0.5); font-size: .85rem; margin: 0; }

.gp-auth-card {
    background: #fff;
    border-radius: var(--gp-radius);
    padding: 32px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

.gp-auth-footer { text-align: center; color: rgba(255,255,255,0.35); font-size: .78rem; margin-top: 20px; }

/* ---------- Responsive ---------- */

@media (max-width: 991px) {
    .gp-sidebar { transform: translateX(-100%); }
    .gp-sidebar.gp-open { transform: translateX(0); }
    .gp-main { margin-left: 0; }
    .gp-burger { display: block; }
    .gp-header-search { display: none; }
}
