
:root {
  --bg: #f4f5f7; --surface: #fff; --border: #d0d3de;
  --accent: #4a6ef0; --accent2: #7c5ce8; --error: #dc2626;
  --text: #1a1d2e; --muted: #6b7280;
  --font: system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font); background: var(--bg); color: var(--text);
  min-height: 100vh; display: flex; flex-direction: column;
}
.login-wrap {
  flex: 1; width: 100%; display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.login-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 40px 36px;
  box-shadow: 0 8px 32px rgba(0,0,0,.08);
}
.login-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.1rem; font-weight: 700; color: var(--accent);
  margin-bottom: 28px;
}
.logo-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px var(--accent);
}
h1 { font-size: 1.3rem; font-weight: 700; margin-bottom: 24px; color: var(--text); }
.alert { padding: 10px 14px; border-radius: 8px; font-size: .85rem; margin-bottom: 18px; }
.alert-error   { background: #fde8e8; border: 1px solid #fca5a5; color: var(--error); }
.alert-success { background: #e8f5e9; border: 1px solid #a5d6a7; color: #2e7d32; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.field input {
  width: 100%; padding: 10px 14px; background: #f8f9fb;
  border: 1px solid var(--border); border-radius: 8px;
  font-family: var(--font); font-size: .9rem; color: var(--text);
  outline: none; transition: border-color .2s;
}
.field input:focus { border-color: var(--accent); background: #fff; }
.btn-login {
  width: 100%; padding: 12px; margin-top: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; border: none; border-radius: 8px;
  font-family: var(--font); font-size: .95rem; font-weight: 600;
  cursor: pointer; transition: opacity .2s;
}
.btn-login:hover { opacity: .88; }
.trust-label {
  display: flex; align-items: center; gap: 8px;
  font-size: .8rem; color: #666; cursor: pointer;
  margin: 10px 0 4px; user-select: none;
}
.trust-label input[type="checkbox"] { width: 15px; height: 15px; cursor: pointer; accent-color: var(--accent); }

/* ── Éléments login manquants ───────────────────────────────────────────────── */
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-weight: 800; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
}
.logo-text { display: flex; flex-direction: column; gap: 1px; }
.logo-title { font-size: .95rem; font-weight: 700; color: var(--text); }
.logo-sub   { font-size: .72rem; color: var(--muted); }
.login-footer {
  margin-top: 18px; text-align: center; font-size: .82rem;
}
.login-footer a, .login-footer button {
  color: var(--accent); text-decoration: none;
}
.login-footer a:hover, .login-footer button:hover { text-decoration: underline; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 40px; }
.password-wrap button {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--muted);
  padding: 0; display: flex; align-items: center;
}
.password-wrap button svg { width: 18px; height: 18px; }
.btn-spinner {
  display: inline-block; width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Modal ───────────────────────────────────────────────────────────────────── */
.modal {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 9999;
  background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-box {
  background: var(--surface); border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
  width: 100%; max-width: 400px;
  overflow: hidden;
}
.modal-title {
  padding: 20px 24px 0;
  font-size: 1rem; font-weight: 700; color: var(--text);
}
.modal-body  { padding: 18px 24px; }
.modal-footer {
  padding: 0 24px 20px;
  display: flex; justify-content: flex-end; gap: 10px;
}
.btn-secondary {
  padding: 9px 18px; border-radius: 8px; font-size: .88rem; font-weight: 600;
  font-family: var(--font); cursor: pointer;
  background: #f1f2f6; border: 1px solid var(--border); color: var(--text);
}
.btn-secondary:hover { background: #e5e7ef; }
.btn-primary {
  padding: 9px 18px; border-radius: 8px; font-size: .88rem; font-weight: 600;
  font-family: var(--font); cursor: pointer;
  background: var(--accent); border: none; color: #fff;
  display: flex; align-items: center; gap: 6px;
}
.btn-primary:hover { opacity: .88; }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }
.alert.success { background: #e8f5e9; border: 1px solid #a5d6a7; color: #2e7d32; }
.alert.error   { background: #fde8e8; border: 1px solid #fca5a5; color: var(--error); }

/* ── Footer commun ─────────────────────────────────────────────────────────── */
.site-footer {
  width: 100%; background: #1a1d2e; color: #a0a8c0;
  padding: 14px 24px; font-size: .75rem; margin-top: auto;
}
.site-footer__inner {
  max-width: 400px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 10px; justify-content: center;
}
.site-footer__brand { color: #e2e8f0; font-weight: 600; }
.site-footer__nav {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.site-footer__nav a { color: #a0a8c0; text-decoration: none; }
.site-footer__nav a:hover { color: #fff; }
.site-footer__cookie-btn {
  background: none; border: none; color: #a0a8c0;
  font-size: .75rem; font-family: inherit; cursor: pointer; padding: 0;
}
.site-footer__cookie-btn:hover { color: #fff; }
