@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ============================================================
   Groupe Héritage Plus — Design System Variables
   portal.css v1.0 — partagé par tous les templates mrcdoc
   ============================================================ */

:root {
  /* Brand Colors */
  --gold: #B8860B;
  --gold-light: #D4A84B;
  --gold-dim: rgba(184, 134, 11, 0.15);
  --gold-border: rgba(184, 134, 11, 0.3);

  /* Surfaces */
  --dark: #0D0D0D;
  --dark-soft: #1A1A1A;
  --surface: #161616;
  --surface-raised: #1E1E1E;
  --border: #2A2A2A;
  --border-light: #333333;

  /* Text */
  --text: #E8E4DC;
  --text-soft: #C8C4BC;
  --muted: #888888;
  --muted-dim: #555555;

  /* Semantic */
  --success: #2E7D32;
  --success-dim: rgba(46, 125, 50, 0.15);
  --warning: #F57C00;
  --warning-dim: rgba(245, 124, 0, 0.15);
  --error: #C62828;
  --error-dim: rgba(198, 40, 40, 0.15);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;

  /* Spacing */
  --radius: 6px;
  --radius-lg: 10px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
}

/* ============================================================
   Reset minimal
   ============================================================ */

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

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

body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--gold-light);
  text-decoration: none;
}

a:hover {
  color: var(--gold);
}

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

/* ============================================================
   Typography utilities
   ============================================================ */

.font-display {
  font-family: var(--font-display);
}

.text-gold {
  color: var(--gold-light);
}

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

/* ============================================================
   Badge
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.badge-gold {
  background: var(--gold-dim);
  color: var(--gold-light);
  border-color: var(--gold-border);
}

.badge-success {
  background: var(--success-dim);
  color: #66BB6A;
  border-color: rgba(46, 125, 50, 0.3);
}

.badge-warning {
  background: var(--warning-dim);
  color: #FFB74D;
  border-color: rgba(245, 124, 0, 0.3);
}

.badge-error {
  background: var(--error-dim);
  color: #EF9A9A;
  border-color: rgba(198, 40, 40, 0.3);
}

.badge-muted {
  background: rgba(136, 136, 136, 0.1);
  color: var(--muted);
  border-color: rgba(136, 136, 136, 0.2);
}

/* ============================================================
   Buttons
   ============================================================ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--gold);
  color: var(--dark);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover {
  background: var(--gold-light);
  color: var(--dark);
  text-decoration: none;
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 20px;
  background: transparent;
  color: var(--text-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.btn-ghost:hover {
  border-color: var(--gold-border);
  color: var(--gold-light);
  text-decoration: none;
}

/* ============================================================
   Card
   ============================================================ */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

/* ============================================================
   Divider
   ============================================================ */

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

.divider-gold {
  border-top-color: var(--gold-border);
}

/* ============================================================
   Empty state
   ============================================================ */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
  gap: 12px;
}

.empty-state svg,
.empty-state .empty-icon {
  opacity: 0.4;
  margin-bottom: 4px;
}

.empty-state p {
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 320px;
}

/* ============================================================
   Table
   ============================================================ */

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.table-wrap table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.table-wrap table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-soft);
  vertical-align: middle;
}

.table-wrap table tr:last-child td {
  border-bottom: none;
}

.table-wrap table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}
