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

:root {
  /* Base */
  --white: #ffffff;

  /* Couleur principale */
  --primary-gold: #ffbb63;
  --primary-gold-light: #FFF8E1;
  --primary-gold-dark: #D49E00;

  /* Neutres */
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1C1C1E;
  --gray-900: #111827;

  /* Statuts */
  --green-500: #22C55E;
  --green-100: #DCFCE7;
  --red-500: #EF4444;
  --red-100: #FEE2E2;
  --blue-500: #3B82F6;

  /* Sémantique */
  --color-text: var(--gray-900);
  --color-text-muted: var(--gray-500);
  --color-text-faint: var(--gray-400);
  --color-surface: var(--white);
  --color-surface-muted: var(--gray-50);
  --color-border: var(--gray-200);
  --color-accent: var(--primary-gold);
  --color-success: var(--green-500);
  --color-danger: var(--red-500);

  /* Étoiles */
  --star-yellow: #F59E0B;

  /* Layout */
  --sidebar-width: 240px;

  /* Typographie */
  --font-family: 'Poppins', sans-serif;
  --font-display: 'Poppins', sans-serif;

  /* Ombres */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

  /* Focus */
  --focus-ring: 0 0 0 3px rgba(255, 187, 99, 0.35);

  /* Rayons */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

/* Font fallback metric overrides to reduce CLS during FOUT */
@font-face {
  font-family: 'Poppins Fallback';
  src: local('Arial');
  size-adjust: 112%;
  ascent-override: 92%;
  descent-override: 25%;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-family);
  color: var(--gray-900);
  background-color: var(--gray-50);
  line-height: 1.5;
}

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

button {
  cursor: pointer;
  font-family: var(--font-family);
  border: none;
  background: none;
}

input, select, textarea {
  font-family: var(--font-family);
  font-size: 0.9375rem;
}


/* ============================================
   2. LAYOUT (SIDEBAR + MAIN)
   ============================================ */
.app-layout {
  display: flex;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 32px 40px;
  min-height: 100dvh;
  max-width: calc(1400px + var(--sidebar-width));
}

