/* ============================================
   THEME GLOBAL – DEAL&TAKE-IT (Dark + Gold)
   ============================================ */

:root {
    --gold: #d4af37;
    --gold-light: rgba(212, 175, 55, 0.6);
    --text-light: #f5f5f5;
    --bg-dark: rgba(10, 10, 10, 0.85);
    --glass: rgba(0, 0, 0, 0.55);
    --border-gold: rgba(212,175,55,0.35);
    --radius: 14px;
    --shadow: 0 0 20px rgba(0,0,0,0.4);
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}

body {
    background: url("assets/background.jpg") no-repeat center center fixed;
    background-size: cover;
    backdrop-filter: blur(4px);
    color: var(--text-light);
    min-height: 100vh;
}

/* =====================================
   LAYOUT GLOBAL
   ===================================== */

.page-content {
    margin-left: 260px;
    padding: 40px;
}

/* TITRES */
.page-title {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--gold);
}

/* =====================================
   SIDEBAR PREMIUM
   ===================================== */

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 240px;
    height: 100%;
    background: rgba(15, 15, 15, 0.92);
    border-right: 1px solid rgba(212,175,55,0.2);
    backdrop-filter: blur(5px);
    padding: 25px 20px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.4);
    z-index: 999;
}

.sidebar h2 {
    font-size: 22px;
    text-align: center;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 40px;
}

.sidebar a {
    display: block;
    padding: 14px 18px;
    color: white;
    margin-bottom: 10px;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.05);
    text-decoration: none;
    transition: 0.25s;
    border: 1px solid transparent;
}

.sidebar a:hover {
    background: rgba(212,175,55,0.25);
    border-color: var(--gold);
    transform: translateX(4px);
}

/* =====================================
   FORM STYLING (login, register, CRM etc.)
   ===================================== */

.form-box {
    width: 450px;
    padding: 35px;
    margin: 0 auto;
    margin-top: 120px;
    background: rgba(0,0,0,0.70);
    border-radius: 16px;
    border: 1px solid rgba(212,175,55,0.3);
    box-shadow: var(--shadow);
    backdrop-filter: blur(6px);
}

.form-box h1 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 25px;
    color: var(--gold);
}

input[type="text"],
input[type="email"],
input[type="password"],
select {
    width: 100%;
    padding: 12px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: var(--radius);
    color: white;
    margin-bottom: 18px;
    outline: none;
}

input::placeholder {
    color: rgba(255,255,255,0.6);
}

button, .btn {
    width: 100%;
    padding: 12px;
    background: var(--gold);
    border: none;
    border-radius: var(--radius);
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    color: black;
    transition: 0.3s;
}

button:hover, .btn:hover {
    background: #c09d2f;
    transform: scale(1.03);
}

/* =====================================
   TABLES (Factures / Devis / Comptabilité)
   ===================================== */

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 12px;
    text-align: left;
}

th {
    background: rgba(212,175,55,0.2);
    border-bottom: 1px solid rgba(212,175,55,0.4);
    color: var(--gold);
}

td {
    background: rgba(0,0,0,0.55);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

tr:hover td {
    background: rgba(212,175,55,0.10);
}

/* =====================================
   CARDS (Dashboard)
   ===================================== */

.card {
    background: rgba(0,0,0,0.65);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius);
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow);
    backdrop-filter: blur(6px);
}

.card h2 {
    font-size: 42px;
    color: var(--gold);
    margin-bottom: 6px;
}

/* =====================================
   RESPONSIVE
   ===================================== */

@media(max-width: 980px) {
    .page-content {
        margin-left: 0;
        padding: 20px;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        display: flex;
        overflow-x: auto;
        gap: 10px;
    }

    .sidebar a {
        flex-shrink: 0;
        white-space: nowrap;
    }
}
