/* ============================================================
   BASE.CSS — Variables, reset, typographie
   GP-MFB · Gestionnaire du Patrimoine
   Palette : Orange & Vert — République de Côte d'Ivoire
   ============================================================ */

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../../public/fonts/CormorantGaramond-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../../public/fonts/DMSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../../public/fonts/DMSans-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ── Variables globales ── */
:root {
  /* ── Palette Orange CI ── */
  --orange:       #D9681A;
  --orange-dark:  #B55412;
  --orange-mid:   #C05A14;
  --orange-light: #FBF0E8;
  --orange-glow:  rgba(217,104,26,.13);

  /* ── Palette Verte CI ── */
  --green-dark:   #1A4A1A;
  --green-mid:    #2D6B2D;
  --green-act:    #3A8A3A;
  --green-light:  #E8F3E8;
  --green-glow:   rgba(45,107,45,.12);

  /* ── Or (accent document) ── */
  --gold:         #C4973A;
  --gold-light:   #FAF3E3;

  /* ── Aliases compatibilité ── */
  --blue-dark:    var(--green-dark);
  --blue-mid:     var(--green-mid);
  --blue-act:     var(--green-act);
  --blue-light:   var(--green-light);

  /* ── Surfaces & fonds ── */
  --bg:           #F4F3F0;
  --white:        #FFFFFF;
  --surface:      #FAF9F7;

  /* ── Texte ── */
  --text:         #1C1C1A;
  --muted:        #767370;
  --hint:         #B8B5B0;

  /* ── Bordures ── */
  --border:       #E0DDD8;
  --border-soft:  #EDEAE6;

  /* ── Statuts ── */
  --success:      #2D6B2D;
  --success-bg:   #E8F3E8;
  --warn:         #B45309;
  --warn-bg:      #FEF3E2;
  --danger:       #B91C1C;
  --danger-bg:    #FEE2E2;
  --info:         #D9681A;
  --info-bg:      #FBF0E8;

  /* ── Rayons ── */
  --radius-sm:    5px;
  --radius-md:    8px;
  --radius-lg:    11px;
  --radius-xl:    16px;

  /* ── Typographie ── */
  --font-sans:    'DM Sans', 'Segoe UI', system-ui, sans-serif;
  --font-serif:   'Cormorant Garamond', 'Palatino Linotype', Georgia, serif;
  --font-mono:    'Courier New', Courier, monospace;
}

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

html { font-size: 16px; }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

img { display: block; max-width: 100%; }

/* ── Typographie utilitaire ── */
.font-serif { font-family: var(--font-serif); }
.font-mono  { font-family: var(--font-mono); }

h1, h2, h3, h4 { font-weight: 500; color: var(--text); line-height: 1.3; }
h1 { font-family: var(--font-serif); font-size: 26px; font-weight: 600; }
h2 { font-family: var(--font-serif); font-size: 22px; font-weight: 600; }
h3 { font-size: 15px; }
h4 { font-size: 13px; }

/* ── Layout page après connexion ── */
body.app {
  display: flex;
}

/* ── Layout page auth ── */
body.auth-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: #f0f6fe;
  min-height: 100vh;
}
