/* ============================================================
   AXA design language — Club Croissance rooming platform
   Brand: deep navy (#00008F) + AXA red slash, clean & institutional
   Porté depuis le handoff Claude Design.
   ============================================================ */
:root {
  --axa-blue: #00008f;
  --axa-blue-700: #00006b;
  --axa-blue-050: #eef0fb;
  --axa-red: #ff1721;
  --axa-red-600: #e10010;

  --accent: var(--axa-blue);

  --ink: #1a1a2e;
  --ink-soft: #4a4a63;
  --muted: #8a8aa0;
  --line: #e6e6ee;
  --line-soft: #f0f0f5;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #fafbff;

  --ok: #1e8e5a;
  --ok-bg: #e7f5ee;
  --warn: #b8860b;
  --warn-bg: #fbf3e0;
  --err: #c8102e;
  --err-bg: #fceced;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(20, 20, 60, 0.06), 0 1px 3px rgba(20, 20, 60, 0.05);
  --shadow: 0 4px 16px rgba(20, 20, 70, 0.08);
  --shadow-lg: 0 18px 50px rgba(10, 10, 60, 0.18);

  --font: "Source Sans 3", system-ui, -apple-system, sans-serif;
  --row-pad-y: 12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button { font-family: inherit; }
a { text-decoration: none; }

/* ---- AXA slash motif ---- */
.axa-slash { position: relative; overflow: hidden; }
.axa-slash::after {
  content: "";
  position: absolute;
  top: -10%; right: 8%;
  width: 3px; height: 130%;
  background: var(--axa-red);
  transform: rotate(32deg);
  transform-origin: top;
  opacity: 0.9;
}

/* logo tile */
.logo-tile {
  background: #fff;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.logo-tile img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* generic buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .16s, color .16s, border-color .16s, transform .08s, box-shadow .16s;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--axa-blue-700); color: #fff; }
.btn-red { background: var(--axa-red); color: #fff; }
.btn-red:hover { background: var(--axa-red-600); color: #fff; }
.btn-ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); background: var(--axa-blue-050); }
.btn-soft { background: var(--axa-blue-050); color: var(--accent); }
.btn-soft:hover { background: #e2e5fa; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-icon { padding: 9px; border-radius: 10px; }

/* status chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.chip-ok { background: var(--ok-bg); color: var(--ok); }
.chip-warn { background: var(--warn-bg); color: var(--warn); }
.chip-err { background: var(--err-bg); color: var(--err); }
.chip-neutral { background: var(--line-soft); color: var(--ink-soft); }
.chip-blue { background: var(--axa-blue-050); color: var(--axa-blue); }
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* card */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

/* fields */
.field-wrap {
  display: flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--line); border-radius: 11px;
  padding: 0 14px; background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
.field-wrap:focus-within { box-shadow: 0 0 0 3px var(--axa-blue-050); border-color: var(--accent); }
.field-wrap.has-error { border-color: var(--err); }
.field-input { flex: 1; border: none; background: none; padding: 12px 0; font-size: 15px; color: var(--ink); min-width: 0; }
.field-input:focus { outline: none; }
.field-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 7px; }

/* scrollbars */
.scroll-thin::-webkit-scrollbar { height: 10px; width: 10px; }
.scroll-thin::-webkit-scrollbar-thumb { background: #d6d8e6; border-radius: 999px; border: 2px solid var(--surface); }
.scroll-thin::-webkit-scrollbar-thumb:hover { background: #c2c4d6; }

/* focus */
input:focus, button:focus-visible, select:focus { outline: none; }
.focus-ring:focus { box-shadow: 0 0 0 3px var(--axa-blue-050); border-color: var(--accent); }
::selection { background: rgba(0,0,143,.14); }

/* avatar */
.avatar {
  border-radius: 50%; flex: 0 0 auto; color: #fff; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; letter-spacing: .5px;
}

/* drawer animations */
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: translateX(30px); opacity: .4; } to { transform: translateX(0); opacity: 1; } }

/* flash messages */
.flash {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px; border-radius: 12px; margin-bottom: 16px;
  font-size: 14px; font-weight: 600; border: 1px solid transparent;
}
.flash-success { background: var(--ok-bg); color: var(--ok); border-color: #cfe9da; }
.flash-error, .flash-danger { background: var(--err-bg); color: var(--err); border-color: #f3d0d5; }
.flash-warning { background: var(--warn-bg); color: #7a5c00; border-color: #eadcb4; }
.flash-info { background: var(--axa-blue-050); color: var(--axa-blue); border-color: #d9ddf6; }

/* generic table row hover used by JS pages */
.rl-row { transition: background .12s; }

/* responsive shell */
@media (max-width: 860px) {
  .shell-nav-labels { display: none; }
}
