/* =====================================================================
   ESPACE RH — feuille de style
   Charte reprise de "onlee agency" : noir profond + doré, élégant, sombre.
   ===================================================================== */

:root {
  --bg: #070809;
  --bg-soft: #0d0f12;
  --panel: #121419;
  --panel-2: #0a0c0f;
  --panel-hi: #171a20;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .20);
  --txt: #f4f1ea;
  --muted: #948f86;
  --muted-soft: #6c6860;
  --gold: #c8a96a;
  --gold-soft: rgba(200, 169, 106, .13);
  --gold-line: rgba(200, 169, 106, .45);

  /* statuts */
  --ok: #6fcf97;
  --ok-soft: rgba(111, 207, 151, .14);
  --no: #e07a7a;
  --no-soft: rgba(224, 122, 122, .14);
  --wait: #d8b25a;
  --wait-soft: rgba(216, 178, 90, .14);

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --maxw: 1180px;
  --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/* l'attribut [hidden] doit toujours l'emporter sur display:flex/grid */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
}
/* grain subtil identique au site onlee */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: .04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, select, textarea, button { font-family: inherit; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; position: relative; z-index: 2; }

.eyebrow {
  font-size: 12px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold); font-weight: 500; display: inline-block;
}

/* focus clavier visible (accessibilité) */
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px;
}
/* sur fond doré, l'outline doré serait invisible : on passe en sombre */
.btn-primary:focus-visible { outline-color: var(--bg); outline-offset: 3px; }

/* contenu réservé aux lecteurs d'écran */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------------- BOUTONS ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: 100px; font-size: 14px; letter-spacing: .02em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .2s, background .2s, border-color .2s, box-shadow .2s, color .2s;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--gold); color: #1a1407; font-weight: 500; }
.btn-primary:not(:disabled):hover { transform: translateY(-2px); background: #d8bd84; }
.btn-ghost { border-color: var(--line-strong); color: var(--txt); background: transparent; }
.btn-ghost:not(:disabled):hover { border-color: var(--gold); background: var(--gold-soft); }
.btn-ok { background: var(--ok-soft); color: var(--ok); border-color: rgba(111,207,151,.4); font-weight: 500; }
.btn-ok:not(:disabled):hover { background: rgba(111,207,151,.22); transform: translateY(-2px); }
.btn-no { background: var(--no-soft); color: var(--no); border-color: rgba(224,122,122,.4); font-weight: 500; }
.btn-no:not(:disabled):hover { background: rgba(224,122,122,.22); transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-block { width: 100%; }

/* ============================================================
   ÉCRAN DE CONNEXION
   ============================================================ */
.login-screen { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.login-card {
  display: flex; flex-direction: column; justify-content: center;
  padding: 56px clamp(28px, 6vw, 96px); position: relative; z-index: 2;
}
.login-card h1 {
  font-family: var(--serif); font-weight: 500; font-style: italic;
  font-size: clamp(34px, 5vw, 54px); line-height: 1.06; margin: 16px 0 14px;
}
.login-sub { color: var(--muted); max-width: 440px; font-size: 16px; margin-bottom: 38px; }

.login-form { display: flex; flex-direction: column; gap: 18px; max-width: 420px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { font-size: 13px; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }
.field input, .field select, .field textarea {
  background: var(--panel); border: 1px solid var(--line); color: var(--txt);
  border-radius: 12px; padding: 14px 16px; font-size: 15px; font-weight: 300;
  transition: border-color .2s, background .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-soft); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold-line); background: var(--panel-hi); outline: none;
}
.field textarea { resize: vertical; min-height: 92px; line-height: 1.5; }
.field select { appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23948f86' stroke-width='2'%3E%3Cpath d='M3 5l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; }

.form-error {
  color: var(--no); font-size: 13.5px; background: var(--no-soft);
  border: 1px solid rgba(224,122,122,.35); border-radius: 10px; padding: 10px 14px;
}
.form-hint { color: var(--muted); font-size: 13px; }

.login-demo { margin-top: 34px; max-width: 420px; }
.login-demo-title { font-size: 13px; letter-spacing: .04em; color: var(--txt); margin-bottom: 12px; }
.login-demo-title strong { color: var(--gold); }
.demo-chip small { font-size: 11.5px; color: var(--gold); display: block; margin-top: 3px; }
.login-demo-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.demo-chip {
  flex: 1 1 160px; text-align: left; background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 15px; cursor: pointer; color: var(--txt);
  transition: border-color .2s, background .2s, transform .2s; display: flex; flex-direction: column; gap: 3px;
}
.demo-chip:hover { border-color: var(--gold-line); background: var(--panel-hi); transform: translateY(-2px); }
.demo-chip strong { font-size: 14px; font-weight: 500; }
.demo-chip span { font-size: 12px; color: var(--muted); }

.login-aside {
  position: relative; overflow: hidden;
  background:
    radial-gradient(700px 500px at 70% 20%, rgba(200,169,106,.14), transparent 60%),
    radial-gradient(600px 600px at 20% 90%, rgba(120,140,200,.05), transparent 55%),
    linear-gradient(160deg, var(--bg-soft), var(--panel-2));
  border-left: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.login-aside-inner { text-align: center; padding: 40px; z-index: 2; }
.brand-mark {
  font-family: var(--serif); font-size: 92px; font-weight: 500; color: var(--gold);
  width: 168px; height: 168px; margin: 0 auto 30px; border: 1px solid var(--gold-line);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--gold-soft); letter-spacing: .04em;
}
.brand-line { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--txt); line-height: 1.4; }

/* ============================================================
   TOPBAR (app)
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px; background: rgba(7,8,9,.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 10px; background: var(--gold-soft);
  border: 1px solid var(--gold-line); color: var(--gold); font-family: var(--serif);
  font-size: 18px; font-weight: 600; display: flex; align-items: center; justify-content: center;
}
.logo-text { font-size: 13px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); font-weight: 500; }

.topbar-right { display: flex; align-items: center; gap: 14px; }

.bell {
  position: relative; background: transparent; border: 1px solid var(--line); color: var(--txt);
  width: 42px; height: 42px; border-radius: 12px; cursor: pointer; display: grid; place-items: center;
  transition: border-color .2s, background .2s;
}
.bell:hover { border-color: var(--gold-line); background: var(--gold-soft); }
.bell svg { width: 20px; height: 20px; }
.bell-badge {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 6px;
  background: var(--no); color: #fff; border-radius: 100px; font-size: 11px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; border: 2px solid var(--bg);
}

.user-chip { display: flex; align-items: center; gap: 10px; }
.user-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--gold-soft);
  border: 1px solid var(--gold-line); color: var(--gold); font-weight: 600; font-size: 14px;
  display: flex; align-items: center; justify-content: center; text-transform: uppercase;
}
.user-meta { display: flex; flex-direction: column; line-height: 1.25; }
.user-name { font-size: 14px; font-weight: 500; }
.user-role { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }

/* ============================================================
   CONTENU
   ============================================================ */
.content { padding-top: 42px; padding-bottom: 90px; }

.page-head { margin-bottom: 34px; }
.page-head h1 {
  font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 5vw, 48px);
  line-height: 1.05; margin: 12px 0 8px;
}
.page-head p { color: var(--muted); font-size: 16px; max-width: 620px; }

/* --- cartes statistiques --- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; margin-bottom: 38px; }
.stat-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 24px; position: relative; overflow: hidden;
}
.stat-card::after {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.stat-card .s-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stat-card .s-value { font-family: var(--serif); font-size: 46px; color: var(--gold); line-height: 1.1; margin-top: 8px; }
.stat-card .s-value small { font-size: 18px; color: var(--muted); font-family: var(--sans); }
.stat-card .s-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* --- panneaux / sections --- */
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; margin-bottom: 26px;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.panel-head h2 { font-family: var(--serif); font-weight: 500; font-size: 28px; }
.panel-head .count-pill {
  background: var(--gold-soft); border: 1px solid var(--gold-line); color: var(--gold);
  font-size: 12px; letter-spacing: .06em; padding: 4px 12px; border-radius: 100px; font-weight: 500;
}

/* --- onglets --- */
.tabs { display: flex; gap: 8px; margin-bottom: 28px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tab {
  background: transparent; border: 0; color: var(--muted); cursor: pointer;
  padding: 14px 18px; font-size: 14px; letter-spacing: .03em; position: relative;
  display: inline-flex; align-items: center; gap: 9px; transition: color .2s;
}
.tab:hover { color: var(--txt); }
.tab.active { color: var(--txt); }
.tab.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px;
  background: var(--gold); border-radius: 2px;
}
.tab .tab-badge {
  background: var(--no); color: #fff; font-size: 11px; font-weight: 600; min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: 100px; display: inline-flex; align-items: center; justify-content: center;
}

/* --- liste de demandes (cartes) --- */
.req-list { display: flex; flex-direction: column; gap: 14px; }
.req-card {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px;
  display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap;
  transition: border-color .25s;
}
.req-card:hover { border-color: var(--line-strong); }
/* demande dont la réponse n'a pas encore été consultée par le salarié */
.req-card.req-new { border-color: var(--gold-line); background: var(--gold-soft); }
.req-new-tag {
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold);
  border: 1px solid var(--gold-line); background: var(--gold-soft); padding: 3px 9px;
  border-radius: 100px; font-weight: 500;
}

/* bannière "vous avez des réponses récentes" (espace salarié) */
.notif-banner {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--gold-soft); border: 1px solid var(--gold-line); border-radius: 14px;
  padding: 14px 20px; margin-bottom: 26px; color: var(--txt); font-size: 14.5px;
}
.notif-banner .nb-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); flex: 0 0 auto; }
.notif-banner strong { color: var(--gold); font-weight: 600; }
.notif-banner button { margin-left: auto; }
.req-icon {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  background: var(--gold-soft); border: 1px solid var(--gold-line); color: var(--gold);
}
.req-icon svg { width: 22px; height: 22px; }
.req-main { flex: 1 1 240px; min-width: 0; }
.req-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.req-type { font-family: var(--serif); font-size: 21px; font-weight: 500; }
.req-who { font-size: 13px; color: var(--gold); letter-spacing: .04em; }
.req-dates { color: var(--txt); font-size: 14.5px; }
.req-dates strong { font-weight: 500; }
.req-meta { color: var(--muted); font-size: 13.5px; margin-top: 4px; display: flex; gap: 14px; flex-wrap: wrap; }
.req-motif { color: var(--muted); font-size: 14px; margin-top: 10px; font-style: italic; font-family: var(--serif); }
.req-decision-note { color: var(--muted); font-size: 13px; margin-top: 8px; }
.req-justif { margin-top: 10px; }
.req-justif a { color: var(--gold); font-size: 13px; display: inline-flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--gold-line); padding-bottom: 1px; }
.req-side { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.req-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* --- badges de statut --- */
.badge {
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500;
  padding: 5px 12px; border-radius: 100px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-wait { color: var(--wait); background: var(--wait-soft); border: 1px solid rgba(216,178,90,.4); }
.badge-ok { color: var(--ok); background: var(--ok-soft); border: 1px solid rgba(111,207,151,.4); }
.badge-no { color: var(--no); background: var(--no-soft); border: 1px solid rgba(224,122,122,.4); }

/* type tags */
.type-tag { font-size: 12px; padding: 4px 11px; border-radius: 100px; border: 1px solid var(--line); color: var(--muted); }

/* --- blocs par structure --- */
.struct-block { margin-top: 28px; }
.struct-block:first-child { margin-top: 4px; }
.struct-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.struct-head h3 { font-family: var(--serif); font-weight: 500; font-size: 23px; }

/* --- tableau salariés --- */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th {
  text-align: left; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  font-weight: 500; padding: 12px 14px; border-bottom: 1px solid var(--line);
}
.tbl td { padding: 16px 14px; border-bottom: 1px solid var(--line); font-size: 14.5px; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: rgba(255,255,255,.02); }
.tbl .cell-name { display: flex; align-items: center; gap: 12px; }
.tbl .cell-name .user-avatar { width: 34px; height: 34px; font-size: 13px; }

/* --- planning des absences --- */
.plan-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.plan-nav { display: flex; gap: 8px; }
.plan-month { font-family: var(--serif); font-size: 22px; text-transform: capitalize; }
.plan-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.plan { border-collapse: collapse; width: 100%; }
.plan th, .plan td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.plan thead th { background: var(--panel); color: var(--muted); font-size: 11px; font-weight: 500; padding: 6px 0; text-align: center; min-width: 30px; line-height: 1.3; }
.plan .col-name { position: sticky; left: 0; z-index: 2; background: var(--panel); text-align: left; padding: 10px 14px; min-width: 150px; font-size: 14px; }
.plan thead .col-name { z-index: 3; }
.plan td.day { height: 34px; }
.plan .we { background: rgba(255,255,255,.035); }
.plan .today { outline: 2px solid var(--gold-line); outline-offset: -2px; }
.plan .struct-row td { background: var(--panel-2); font-family: var(--serif); font-size: 16px; color: var(--gold); padding: 8px 14px; }
/* cases d'absence (couleurs franches pour bien ressortir) */
.pl-paye      { background-color: rgba(200,169,106,.42);  box-shadow: inset 0 0 0 1px var(--gold); }
.pl-sansSolde { background-color: rgba(125,143,179,.46);  box-shadow: inset 0 0 0 1px rgba(125,143,179,.9); }
.pl-maladie   { background-color: rgba(224,122,122,.44);  box-shadow: inset 0 0 0 1px rgba(224,122,122,.9); }
.pl-pending   { background-image: repeating-linear-gradient(45deg, rgba(0,0,0,.28) 0, rgba(0,0,0,.28) 3px, transparent 3px, transparent 6px); }
/* encart "ne travaillent pas aujourd'hui" */
.today-absents { border: 1px solid var(--line-strong); border-radius: 14px; padding: 16px 18px; margin-bottom: 18px; background: linear-gradient(160deg, var(--panel-hi), var(--panel-2)); }
.today-absents.none { border-color: rgba(111,207,151,.4); background: var(--ok-soft); }
.today-absents.none .ta-head { color: var(--ok); margin-bottom: 0; }
.ta-head { font-size: 14px; color: var(--muted); margin-bottom: 13px; display: flex; align-items: center; gap: 9px; }
.ta-head strong { color: var(--txt); font-size: 17px; }
.ta-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--no); display: inline-block; }
.ta-list { display: flex; flex-wrap: wrap; gap: 10px; }
.ta-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 100px; font-size: 14px; border: 1px solid var(--line); background: var(--panel); }
.ta-chip b { font-weight: 600; }
.ta-chip .ta-type { font-size: 12px; color: var(--muted); }
.ta-chip.ta-paye      { background: var(--gold-soft);          border-color: var(--gold-line); }
.ta-chip.ta-sansSolde { background: rgba(125,143,179,.16);     border-color: rgba(125,143,179,.5); }
.ta-chip.ta-maladie   { background: var(--no-soft);            border-color: rgba(224,122,122,.5); }

.plan-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 16px; font-size: 13px; color: var(--muted); }
.plan-legend .lg { display: inline-flex; align-items: center; gap: 8px; }
.plan-legend .sw { width: 15px; height: 15px; border-radius: 4px; display: inline-block; }

/* --- état vide --- */
.empty {
  text-align: center; padding: 56px 24px; color: var(--muted);
  border: 1px dashed var(--line); border-radius: 14px;
}
.empty .empty-mark { font-family: var(--serif); font-size: 40px; color: var(--gold); opacity: .5; margin-bottom: 10px; }
.empty p { font-size: 15px; }

/* --- filtres --- */
.filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.filters .field { flex: 0 1 220px; }
.filters .field > span { font-size: 11px; }
.filters .field select, .filters .field input { padding: 10px 14px; font-size: 14px; }

/* ============================================================
   MODALE
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 90; background: rgba(4,5,6,.72); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: fade .2s ease;
}
.modal-box {
  background: linear-gradient(160deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line-strong); border-radius: 22px; padding: 36px;
  width: 100%; max-width: 540px; position: relative; max-height: 90vh; overflow-y: auto;
  animation: pop .25s ease;
}
.modal-close {
  position: absolute; top: 18px; right: 20px; background: transparent; border: 0; color: var(--muted);
  font-size: 28px; line-height: 1; cursor: pointer; transition: color .2s; width: 34px; height: 34px;
}
.modal-close:hover { color: var(--txt); }
.modal-box h2 { font-family: var(--serif); font-weight: 500; font-size: 30px; margin-bottom: 6px; }
.modal-box .modal-sub { color: var(--muted); font-size: 14.5px; margin-bottom: 24px; }
.modal-form { display: flex; flex-direction: column; gap: 18px; }
.modal-actions { display: flex; gap: 12px; margin-top: 8px; }
.modal-actions .btn { flex: 1; }
.modal-recap { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 4px; }
.modal-recap .r-row { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; padding: 4px 0; }
.modal-recap .r-row span:first-child { color: var(--muted); }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

/* ============================================================
   TOASTS
   ============================================================ */
.toast-stack { position: fixed; bottom: 24px; right: 24px; z-index: 100; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--panel-hi); border: 1px solid var(--line-strong); border-left: 3px solid var(--gold);
  border-radius: 12px; padding: 14px 18px; min-width: 260px; max-width: 360px; box-shadow: 0 18px 50px rgba(0,0,0,.5);
  animation: toastIn .3s ease; font-size: 14px; cursor: pointer;
}
.toast::after { content: "Cliquer pour fermer"; display: block; font-size: 10.5px; color: var(--muted-soft); margin-top: 6px; letter-spacing: .04em; }
.toast.ok { border-left-color: var(--ok); }
.toast.no { border-left-color: var(--no); }
.toast strong { display: block; font-weight: 500; margin-bottom: 2px; }
.toast span { color: var(--muted); font-size: 13px; }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }

/* ============================================================
   ANIMATIONS D'APPARITION
   ============================================================ */
.reveal-now { animation: revealUp .6s ease both; }
@keyframes revealUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .login-screen { grid-template-columns: 1fr; }
  .login-aside { display: none; }
  .login-card { padding: 48px 26px; min-height: 100vh; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  .topbar { padding: 14px 18px; }
  .user-meta { display: none; }
  .logo-text { display: none; }
  .req-card { flex-direction: column; }
  .req-side { align-items: stretch; width: 100%; }
  .req-actions { justify-content: stretch; }
  .req-actions .btn { flex: 1; }
  .panel { padding: 20px 16px; }
  .tbl-scroll { overflow-x: auto; }
  .tbl { min-width: 560px; }
}

/* ---------- accessibilité : mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
