/* ==========================================================================
   Numeria Conseil — feuille de style
   ========================================================================== */
:root {
  --navy: #0f2740;
  --navy-2: #16324f;
  --navy-3: #1d4266;
  --gold: #c9a227;
  --gold-soft: #e5cd74;
  --bg: #f5f7fa;
  --card: #ffffff;
  --text: #1d2733;
  --muted: #6b7683;
  --border: #e3e8ee;
  --danger: #b3261e;
  --success: #1e7a4f;
  --shadow: 0 1px 2px rgba(16, 34, 54, .06), 0 8px 24px rgba(16, 34, 54, .06);
  --radius: 10px;
  --serif: Georgia, "Times New Roman", "Source Serif Pro", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 2.5rem; letter-spacing: -.5px; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--navy-3); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 1rem; } .mt-4 { margin-top: 2rem; }

/* ---------- Header ---------- */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.site-header .inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif);
         font-size: 1.25rem; font-weight: 600; color: var(--navy); }
.brand:hover { text-decoration: none; }
.brand .mark { width: 34px; height: 34px; flex: 0 0 34px; }
.brand small { display: block; font-family: var(--sans); font-size: .68rem;
               letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.nav { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav a { color: var(--text); font-size: .94rem; font-weight: 500; }
.nav a:hover { color: var(--navy); text-decoration: none; }
.nav a.active { color: var(--navy); border-bottom: 2px solid var(--gold); padding-bottom: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 11px 22px; border-radius: 8px; border: 1px solid transparent;
  font-size: .94rem; font-weight: 600; cursor: pointer; text-align: center;
  font-family: var(--sans); transition: .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-3); color: #fff; }
.btn-gold { background: var(--gold); color: #26200a; }
.btn-gold:hover { background: var(--gold-soft); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--navy); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-block { display: block; width: 100%; }
.btn-sm { padding: 7px 14px; font-size: .85rem; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
  color: #fff; padding: 88px 0 76px;
}
.hero h1 { font-size: 3rem; max-width: 780px; }
.hero p.lead { font-size: 1.15rem; color: rgba(255,255,255,.86); max-width: 640px; }
.hero .eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .74rem;
                 color: var(--gold-soft); font-weight: 600; margin-bottom: 14px; }
.hero .actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 68px 0; }
section.tight { padding: 44px 0; }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head .eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .72rem;
                         color: var(--gold); font-weight: 700; margin-bottom: 8px; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.stat { text-align: center; padding: 22px 12px; }
.stat .num { font-family: var(--serif); font-size: 2.4rem; color: var(--navy); line-height: 1; }
.stat .lbl { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

/* ---------- Team ---------- */
.person { display: flex; gap: 16px; align-items: center; }
.avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: 0 0 46px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 600; font-size: .95rem; letter-spacing: .5px;
}
.avatar-lg { width: 60px; height: 60px; flex: 0 0 60px; font-size: 1.15rem; }
.person .who { font-weight: 600; }
.person .role { font-size: .85rem; color: var(--muted); }

/* ---------- Auth ---------- */
.auth-wrap { min-height: calc(100vh - 72px); display: flex; align-items: center;
             justify-content: center; padding: 48px 24px; }
.auth-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px;
             box-shadow: var(--shadow); width: 100%; max-width: 440px; padding: 38px 34px; }
.auth-card .brand { justify-content: center; margin-bottom: 22px; }
.auth-card h1 { font-size: 1.5rem; text-align: center; margin-bottom: 6px; }
.auth-card .sub { text-align: center; color: var(--muted); font-size: .9rem; margin-bottom: 26px; }
.auth-foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border);
             text-align: center; font-size: .82rem; color: var(--muted); }

/* ---------- Forms ---------- */
label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
input[type=text], input[type=email], input[type=password], input[type=tel], select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: 8px;
  font-size: .95rem; font-family: var(--sans); background: #fff; color: var(--text);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--navy-3); box-shadow: 0 0 0 3px rgba(29, 66, 102, .12);
}
.field { margin-bottom: 18px; }
.checkbox { display: flex; align-items: center; gap: 8px; font-size: .88rem; }
.checkbox input { width: auto; }
.code-input { letter-spacing: .5em; text-align: center; font-size: 1.4rem; font-weight: 600; }

/* ---------- Alerts ---------- */
.alert { padding: 12px 16px; border-radius: 8px; font-size: .9rem; margin-bottom: 18px;
         border: 1px solid transparent; }
.alert-danger { background: #fdeceb; color: var(--danger); border-color: #f5c6c3; }
.alert-success { background: #e8f6ef; color: var(--success); border-color: #bfe3d0; }
.alert-info { background: #eaf2fb; color: #1c4e7f; border-color: #c8ddf3; }
.alert-warning { background: #fdf6e3; color: #7a5c0a; border-color: #f0e0ab; }

/* ---------- App shell ---------- */
.app-shell { display: flex; min-height: calc(100vh - 72px); }
.sidebar {
  width: 250px; flex: 0 0 250px; background: var(--navy); color: #cfd9e4; padding: 26px 0;
}
.sidebar .who { padding: 0 22px 20px; border-bottom: 1px solid rgba(255,255,255,.1);
                margin-bottom: 16px; }
.sidebar .who .name { color: #fff; font-weight: 600; }
.sidebar .who .role { font-size: .8rem; color: #9fb0c2; }
.sidebar a { display: block; padding: 11px 22px; color: #cfd9e4; font-size: .92rem; }
.sidebar a:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.sidebar a.active { background: rgba(201,162,39,.14); color: #fff; border-left: 3px solid var(--gold); }
.sidebar .sep { border-top: 1px solid rgba(255,255,255,.1); margin: 14px 0; }
.app-main { flex: 1; padding: 34px 38px; min-width: 0; }
.app-main h1 { font-size: 1.85rem; margin-bottom: 4px; }
.page-sub { color: var(--muted); margin-bottom: 28px; }

/* ---------- Tables & lists ---------- */
table { width: 100%; border-collapse: collapse; background: var(--card); font-size: .92rem; }
.table-wrap { background: var(--card); border: 1px solid var(--border);
              border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); }
th { background: #f9fbfd; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em;
     color: var(--muted); font-weight: 700; }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fbfcfe; }

.file-row { display: flex; align-items: center; gap: 14px; }
.file-icon { width: 38px; height: 38px; border-radius: 8px; flex: 0 0 38px;
             display: flex; align-items: center; justify-content: center;
             font-size: .66rem; font-weight: 700; color: #fff; }
.fi-pdf { background: #b3261e; } .fi-xls { background: #1e7a4f; }
.fi-csv { background: #1c4e7f; } .fi-doc { background: #2e4b7a; }
.fi-apk { background: #0e7490; }

.badge { display: inline-block; padding: 3px 9px; border-radius: 20px; font-size: .72rem;
         font-weight: 700; letter-spacing: .02em; }
.badge-conf { background: #fdeceb; color: var(--danger); }
.badge-int { background: #eaf2fb; color: #1c4e7f; }
.badge-ok { background: #e8f6ef; color: var(--success); }
.badge-warn { background: #fdf6e3; color: #7a5c0a; }

.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 28px; }
.kpi { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
       padding: 18px 20px; box-shadow: var(--shadow); }
.kpi .k { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.kpi .v { font-family: var(--serif); font-size: 1.7rem; color: var(--navy); }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 12px 0 12px 18px; border-left: 2px solid var(--border);
               position: relative; font-size: .92rem; }
.timeline li:before { content: ""; position: absolute; left: -6px; top: 18px; width: 10px; height: 10px;
                      border-radius: 50%; background: var(--gold); }
.timeline .when { color: var(--muted); font-size: .8rem; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #a9b8c8; padding: 46px 0 26px; margin-top: 0;
               font-size: .88rem; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px;
                     padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .82rem; text-transform: uppercase;
                  letter-spacing: .12em; margin-bottom: 12px; }
.site-footer a { color: #cfd9e4; display: block; padding: 3px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .legal { padding-top: 18px; display: flex; justify-content: space-between;
                      flex-wrap: wrap; gap: 10px; color: #8296a8; font-size: .8rem; }

/* ---------- Misc ---------- */
.qr-box { text-align: center; padding: 18px; background: #fff; border: 1px solid var(--border);
          border-radius: var(--radius); }
.qr-box img { width: 210px; height: 210px; }
.secret { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82rem;
          background: #f4f6f9; padding: 9px 12px; border-radius: 6px; display: block;
          word-break: break-all; border: 1px dashed var(--border); }
.two-col { display: grid; grid-template-columns: 1.15fr .85fr; gap: 34px; align-items: start; }
.divider { height: 1px; background: var(--border); margin: 26px 0; }
.pill-row { display: flex; gap: 10px; flex-wrap: wrap; }
.pill { padding: 6px 14px; border-radius: 20px; border: 1px solid var(--border); background: #fff;
        font-size: .84rem; }

@media (max-width: 900px) {
  .grid-4, .grid-3, .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .app-shell { flex-direction: column; }
  .sidebar { width: 100%; flex: 1 1 auto; }
  .nav { display: none; }
  h1 { font-size: 1.9rem; } .hero h1 { font-size: 2.1rem; }
}
