/* ===== VARIABLES ===== */
:root {
  --brand: #2d3e8f;           /* ← Bleu nuit clair (plus lumineux) */
  --brand-dark: #1e2a5f;      /* ← Bleu nuit plus foncé mais pas trop */
  --brand-light: #e8ecf7;
  
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --text-muted: #999999;
  
  --surface: #ffffff;
  --surface-soft: #f9f9f9;
  --surface-hover: #f4f7fc; 
  
  --border: #e0e0e0;
  --border-soft: #f0f0f0;
  
  --success: #22c55e;
  --warning: #eab308;
  --danger: #ef4444;
  
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  
  --radius: 8px;
  --spacing: 16px;
}

/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--surface);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1em;
  color: var(--text-secondary);
}

.eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand);
  margin-bottom: 0.5rem;
}

.muted {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== BUTTONS ===== */
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  border-radius: var(--radius);
  font-weight: 500;
  transition: all 0.2s ease;
}

.primary-button {
  background: var(--brand);
  color: white;
  padding: 12px 24px;
  font-size: 1rem;
}

.primary-button:hover {
  background: var(--brand-dark);
  box-shadow: var(--shadow-md);
}

.primary-button:active {
  transform: scale(0.98);
}

.ghost-button {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
  padding: 10px 22px;
  font-size: 1rem;
}

.ghost-button:hover {
  background: var(--brand-light);
}

.close-button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  color: var(--text-secondary);
  font-size: 1.5rem;
  line-height: 1;
}

.close-button:hover {
  background: var(--border-soft);
}

/* ===== FORMS ===== */
input, select, textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(46, 168, 143, 0.1);
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

label > span {
  margin-left: 0.25rem;
}

.required {
  color: var(--danger);
}

.optional {
  color: var(--text-muted);
  font-weight: 400;
}

/* ===== UTILITY ===== */
.hidden {
  display: none !important;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  
  .primary-button,
  .ghost-button {
    width: 100%;
    text-align: center;
  }
}