/* ===================================================
   BASE.CSS — Variables, Reset, Typographie
   Kelo'Estate Admin
   =================================================== */


/* ===== CSS VARIABLES ===== */
:root {
  /* Couleurs */
  --bg:             #f3f1ec;
  --sidebar-bg:     #16161a;
  --sidebar-hover:  #1e1e24;
  --sidebar-active: rgba(200, 168, 107, 0.10);
  --sidebar-text:   #8a8a96;
  --sidebar-white:  #e8e8ee;
  --accent:         #c8a86b;
  --accent-dark:    #b8944a;

  /* UI */
  --white:       #ffffff;
  --card-bg:     #ffffff;
  --text:        #1a1a20;
  --text-muted:  #7a7a86;
  --border:      #e2ddd4;
  --input-bg:    #faf9f5;

  /* Statuts */
  --success:     #3d9e6a;
  --success-bg:  #edf8f3;
  --warning:     #c8840a;
  --warning-bg:  #fef6e8;
  --danger:      #c84040;
  --danger-bg:   #fdeaea;
  --info:        #3a7abf;
  --info-bg:     #eaf2fb;
  --neutral:     #7a7a86;
  --neutral-bg:  #f0eef8;

  /* Typographie */
  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans:  'Jost', system-ui, sans-serif;

  /* Layout */
  --sidebar-w:  240px;
  --header-h:   62px;

  /* Espacement */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 20px;
  --s6: 24px;
  --s8: 32px;
  --s10: 40px;

  /* Formes */
  --radius:    10px;
  --radius-sm: 6px;
  --radius-lg: 16px;

  /* Ombres */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:    0 2px 8px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.09);

  /* Transition */
  --t: 0.18s ease;
}


/* ===== RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { font-size: 15px; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font-sans); border: none; background: none; }
input, select, textarea, button { font-family: var(--font-sans); font-size: inherit; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }


/* ===== TYPOGRAPHIE ===== */
h1 {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
}

h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text);
}

h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.text-muted   { color: var(--text-muted); }
.text-accent  { color: var(--accent); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }


/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d0c8b8; border-radius: 3px; }
