/* ═══════════════════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════════════════ */
* { box-sizing: border-box; }
html, body {
  height: 100%; margin: 0; padding: 0;
  font-family: Georgia, serif;
  background: #f8fafc;
}

/* ═══════════════════════════════════════════════════════════════
   SCROLLBAR
═══════════════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

/* ═══════════════════════════════════════════════════════════════
   FORMULAIRE
═══════════════════════════════════════════════════════════════ */
.form-input {
  display: block; width: 100%; padding: 7px 10px; font-size: 13px;
  border: 1px solid #e2e8f0; border-radius: 8px; outline: none;
  background: #fff; color: #1e293b;
  transition: border-color .15s, box-shadow .15s;
  font-family: Georgia, serif;
}
.form-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
textarea.form-input { resize: vertical; }

.form-label {
  display: block; font-size: 10px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: #94a3b8; margin-bottom: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   BOUTONS
═══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; border-radius: 8px;
  padding: 7px 13px; cursor: pointer; border: none;
  transition: background .15s; font-family: Georgia, serif;
}
.btn-primary  { background: #2563eb; color: #fff; }
.btn-primary:hover { background: #1d4ed8; }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; }
.btn-secondary { background: #f1f5f9; color: #475569; }
.btn-secondary:hover { background: #e2e8f0; }
.btn-danger { background: #fef2f2; color: #dc2626; font-size: 11px; padding: 4px 9px; }
.btn-danger:hover { background: #fee2e2; }

/* ═══════════════════════════════════════════════════════════════
   CARDS FORMULAIRE
═══════════════════════════════════════════════════════════════ */
.section-card {
  background: #fff; border: 1px solid #e2e8f0;
  border-radius: 12px; padding: 14px; margin-bottom: 10px;
}
.sub-card {
  background: #f8fafc; border: 1px solid #e2e8f0;
  border-radius: 10px; padding: 12px; margin-bottom: 10px;
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════════════════ */
@keyframes spin { to { transform: rotate(360deg); } }
.spin { display: inline-block; animation: spin .8s linear infinite; }

@keyframes fadeIn {
  from { opacity:0; transform: translateY(6px); }
  to   { opacity:1; transform: none; }
}
.toast-anim { animation: fadeIn .2s ease; }

/* ═══════════════════════════════════════════════════════════════
   SWITCH CV / LETTRE
═══════════════════════════════════════════════════════════════ */
.doc-switch {
  display: flex; gap: 3px; background: #f1f5f9;
  border-radius: 10px; padding: 3px;
}
.doc-switch button {
  padding: 5px 18px; font-size: 11px; font-weight: 700;
  border-radius: 7px; border: none; cursor: pointer;
  transition: all .15s; font-family: Georgia, serif; letter-spacing: .04em;
}
.doc-switch button.active {
  background: #fff; color: #1e293b;
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
}
.doc-switch button:not(.active) { background: transparent; color: #94a3b8; }
