/* ============================================
   VARIABLES & RESET
   ============================================ */
:root {
  --blue-50:#eff6ff; --blue-100:#dbeafe; --blue-200:#bfdbfe; --blue-500:#3b82f6;
  --blue-600:#2563eb; --blue-700:#1d4ed8; --blue-900:#1e3a8a;
  --grey-50:#f8fafc; --grey-100:#f1f5f9; --grey-200:#e2e8f0; --grey-300:#cbd5e1;
  --grey-400:#94a3b8; --grey-500:#64748b; --grey-700:#334155; --grey-900:#0f172a;
  --green-50:#f0fdf4; --green-500:#22c55e; --green-600:#16a34a; --green-700:#15803d;
  --amber-50:#fffbeb; --amber-500:#f59e0b; --amber-600:#d97706;
  --red-50:#fef2f2; --red-500:#ef4444; --red-600:#dc2626;
  --violet-50:#f5f3ff; --violet-500:#8b5cf6; --violet-600:#7c3aed;
  --orange-500:#f97316;
  --shadow-sm:0 1px 2px rgba(15,23,42,0.05);
  --shadow-md:0 4px 12px rgba(15,23,42,0.08);
  --shadow-lg:0 12px 32px rgba(15,23,42,0.12);
  --radius-md:16px; --radius-lg:24px; --radius-xl:32px;
  --font-body:'Atkinson Hyperlegible',system-ui,sans-serif;
  --font-display:'Bricolage Grotesque',system-ui,sans-serif;
}

* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html, body { height:100%; overscroll-behavior:none; }
body {
  font-family:var(--font-body);
  background:linear-gradient(135deg,var(--grey-50) 0%,var(--blue-50) 100%);
  color:var(--grey-900);
  font-size:16px; line-height:1.5;
  user-select:none; -webkit-user-select:none;
  min-height:100vh;
}
a { text-decoration:none; color:inherit; }
button, a.module-tile, a.back-btn, a.primary-btn, a.planning-nav-btn {
  font-family:inherit; border:none; background:none; cursor:pointer; color:inherit;
}

/* ============================================
   LAYOUT GLOBAL
   ============================================ */
.app {
  min-height:100vh;
  display:flex; flex-direction:column;
  max-width:1100px; margin:0 auto;
  padding:24px;
  position:relative;
}

/* ============================================
   HEADER
   ============================================ */
.app-header {
  display:flex; align-items:center; justify-content:space-between;
  padding:8px 4px 24px;
  gap:16px;
}
.logo {
  display:flex; align-items:center; gap:12px;
  font-family:var(--font-display); color:var(--blue-700);
}
.logo-icon {
  width:40px; height:40px; background:var(--blue-600);
  border-radius:10px; display:flex; align-items:center; justify-content:center;
  color:white; font-size:1.25rem;
}
.logo-text { display:flex; flex-direction:column; line-height:1.1; }
.logo-title { font-weight:700; font-size:1.4rem; }
.logo-subtitle {
  font-weight:500; font-size:0.8rem; color:var(--grey-500);
  letter-spacing:0.02em;
}
.header-right {
  display:flex; align-items:center; gap:12px;
}
.clock {
  font-family:var(--font-display); font-weight:500;
  color:var(--grey-500); font-size:1rem; font-variant-numeric:tabular-nums;
}
.user-pill {
  display:flex; align-items:center; gap:8px;
  background:white; padding:6px 14px 6px 6px;
  border-radius:100px; box-shadow:var(--shadow-sm);
}
.user-pill .avatar { width:32px; height:32px; font-size:0.85rem; }
.user-pill .user-name {
  font-family:var(--font-display); font-weight:600;
  color:var(--grey-700); font-size:0.95rem;
}
.logout-btn {
  background:white; padding:10px 16px; border-radius:12px;
  font-weight:700; color:var(--grey-700); font-size:0.95rem;
  box-shadow:var(--shadow-sm); display:flex; align-items:center; gap:6px;
  transition:all 0.15s ease;
}
.logout-btn:active { transform:scale(0.95); background:var(--grey-100); }

/* ============================================
   ÉCRAN — base
   ============================================ */
.screen {
  flex:1; display:flex; flex-direction:column;
  animation:fadeIn 0.35s ease;
  padding-bottom:32px;
}
@keyframes fadeIn {
  from { opacity:0; transform:translateY(8px); }
  to   { opacity:1; transform:translateY(0); }
}
.screen-title {
  font-family:var(--font-display); font-weight:600;
  font-size:clamp(1.6rem,3.5vw,2.25rem);
  color:var(--grey-900); margin-bottom:8px;
}
.screen-subtitle {
  color:var(--grey-500); font-size:1.05rem; margin-bottom:32px;
}
.screen-title.center, .screen-subtitle.center { text-align:center; }

.back-btn {
  display:inline-flex; align-items:center; gap:8px;
  padding:12px 20px;
  background:white; border-radius:12px;
  box-shadow:var(--shadow-sm);
  font-weight:700; color:var(--grey-700); font-size:1rem;
  margin-bottom:24px; align-self:flex-start;
  transition:transform 0.15s ease;
}
.back-btn:active { transform:scale(0.95); }

/* ============================================
   AVATAR
   ============================================ */
.avatar {
  width:88px; height:88px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-weight:700;
  font-size:1.75rem; color:white;
  flex-shrink:0;
  box-shadow:inset 0 0 0 3px rgba(255,255,255,0.3);
  object-fit:cover;
}

/* ============================================
   LOGIN GRILLE
   ============================================ */
.etab-tabs {
  display:flex; gap:8px; justify-content:center;
  margin:0 auto 24px; max-width:720px;
}
.etab-tab {
  background:white; padding:10px 24px; border-radius:999px;
  font-family:var(--font-display); font-weight:600; font-size:0.95rem;
  color:var(--grey-500); box-shadow:var(--shadow-sm);
  transition:transform 0.15s, background 0.15s, color 0.15s;
}
.etab-tab:active { transform:scale(0.95); }
.etab-tab.active { background:var(--blue-600); color:white; box-shadow:var(--shadow-md); }
.grid {
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:20px; max-width:720px; margin:0 auto; width:100%;
}
.worker-card {
  background:white; border-radius:var(--radius-lg);
  padding:24px 16px;
  display:flex; flex-direction:column; align-items:center;
  gap:14px;
  box-shadow:var(--shadow-sm); border:2px solid transparent;
  transition:transform 0.15s ease,box-shadow 0.2s ease,border-color 0.2s ease;
  min-height:180px; width:100%;
}
.worker-card:active {
  transform:scale(0.96); box-shadow:var(--shadow-md); border-color:var(--blue-500);
}
@media (hover: hover) {
  .worker-card:hover { box-shadow:var(--shadow-md); border-color:var(--blue-200); }
}
.worker-name {
  font-family:var(--font-display); font-weight:600;
  font-size:1.1rem; color:var(--grey-900); text-align:center; line-height:1.3;
}

/* ============================================
   LOGIN PIN
   ============================================ */
.pin-screen { align-items:center; justify-content:flex-start; text-align:center; }
.selected-worker {
  display:flex; flex-direction:column; align-items:center;
  gap:12px; margin-bottom:24px;
}
.greeting {
  font-family:var(--font-display); font-weight:600;
  font-size:1.4rem; color:var(--grey-900);
}
.pin-instruction { color:var(--grey-500); font-size:1.1rem; margin-bottom:20px; }
.pin-display { display:flex; gap:16px; margin-bottom:24px; justify-content:center; }
.pin-dot {
  width:22px; height:22px; border-radius:50%;
  background:white; border:3px solid var(--grey-300);
  transition:all 0.2s ease;
}
.pin-dot.filled { background:var(--blue-600); border-color:var(--blue-600); transform:scale(1.1); }
.pin-display.error .pin-dot {
  border-color:var(--red-500); background:var(--red-500);
  animation:shake 0.4s;
}
@keyframes shake {
  0%,100% { transform:translateX(0); }
  20%,60%  { transform:translateX(-8px); }
  40%,80%  { transform:translateX(8px); }
}
.pin-error-msg {
  color:var(--red-500); font-weight:700;
  margin-bottom:16px; height:24px;
  transition:opacity 0.2s ease;
}
.numpad {
  display:grid; grid-template-columns:repeat(3,80px);
  gap:14px; justify-content:center;
}
.num-btn {
  width:80px; height:80px; border-radius:50%;
  background:white; box-shadow:var(--shadow-sm);
  font-family:var(--font-display); font-weight:600;
  font-size:1.6rem; color:var(--grey-900);
  display:flex; align-items:center; justify-content:center;
  transition:transform 0.1s ease,box-shadow 0.15s ease,background 0.15s ease;
}
.num-btn:active { transform:scale(0.92); background:var(--blue-50); box-shadow:none; }
.num-btn.action { background:var(--grey-100); font-size:1.4rem; }
.num-btn.action.delete { color:var(--red-500); }
.num-btn.action.validate { background:var(--blue-600); color:white; }
.num-btn.action.validate:disabled { background:var(--grey-200); color:var(--grey-300); cursor:not-allowed; }
.num-btn.action.validate:active:not(:disabled) { background:var(--blue-700); }

/* ============================================
   ACCUEIL — DASHBOARD
   ============================================ */
.welcome-banner {
  background:linear-gradient(135deg,var(--blue-600) 0%,var(--blue-700) 100%);
  border-radius:var(--radius-xl);
  padding:32px;
  color:white;
  margin-bottom:32px;
  position:relative; overflow:hidden;
  box-shadow:var(--shadow-md);
}
.welcome-banner::before {
  content:''; position:absolute; top:-40px; right:-40px;
  width:180px; height:180px;
  background:rgba(255,255,255,0.08);
  border-radius:50%;
}
.welcome-greeting {
  font-family:var(--font-display); font-weight:600;
  font-size:1.75rem; margin-bottom:4px;
  position:relative;
}
.welcome-date {
  font-size:1.05rem; opacity:0.9; margin-bottom:16px;
  text-transform:capitalize; position:relative;
}
.welcome-next {
  background:rgba(255,255,255,0.15);
  backdrop-filter:blur(10px);
  border-radius:var(--radius-md);
  padding:14px 18px;
  display:flex; align-items:center; gap:14px;
  position:relative;
}
.welcome-next-icon {
  width:48px; height:48px; flex-shrink:0;
  background:white; border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  font-size:1.5rem;
}
.welcome-next-text { flex:1; }
.welcome-next-label { font-size:0.85rem; opacity:0.85; margin-bottom:2px; }
.welcome-next-value { font-family:var(--font-display); font-weight:600; font-size:1.05rem; }

.modules-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:16px;
}
.module-tile {
  background:white;
  border-radius:var(--radius-lg);
  padding:24px;
  box-shadow:var(--shadow-sm);
  display:flex; flex-direction:column;
  gap:12px;
  text-align:left;
  position:relative; overflow:hidden;
  border:2px solid transparent;
  transition:all 0.18s ease;
  min-height:170px;
  cursor:pointer;
}
.module-tile:active { transform:scale(0.97); box-shadow:var(--shadow-md); }
@media (hover: hover) {
  .module-tile:hover { box-shadow:var(--shadow-md); border-color:var(--grey-200); }
}
.module-icon {
  width:60px; height:60px; border-radius:16px;
  display:flex; align-items:center; justify-content:center;
  font-size:1.75rem;
}
.module-title {
  font-family:var(--font-display); font-weight:600;
  font-size:1.25rem; color:var(--grey-900);
}
.module-desc { color:var(--grey-500); font-size:0.95rem; line-height:1.4; }
.module-badge {
  position:absolute; top:16px; right:16px;
  background:var(--red-500); color:white;
  width:28px; height:28px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-weight:700; font-size:0.85rem;
  box-shadow:var(--shadow-sm);
}
.module-badge-new {
  background:var(--red-500);
  animation:pulse-badge 1.6s infinite;
}
@keyframes pulse-badge {
  0%, 100% { transform:scale(1); box-shadow:0 0 0 0 rgba(239,68,68,0.6); }
  50%      { transform:scale(1.1); box-shadow:0 0 0 8px rgba(239,68,68,0); }
}
.module-tile.planning .module-icon { background:var(--blue-100); }
.module-tile.rdv      .module-icon { background:var(--violet-50); }
.module-tile.conges   .module-icon { background:var(--green-50); }
.module-tile.infos    .module-icon { background:var(--amber-50); }
.module-tile.demandes .module-icon { background:var(--grey-100); }

/* ============================================
   PLANNING
   ============================================ */
.planning-nav {
  display:flex; align-items:center; justify-content:space-between;
  background:white; border-radius:var(--radius-lg);
  padding:14px 20px; box-shadow:var(--shadow-sm);
  margin-bottom:24px;
}
.planning-nav-btn {
  width:48px; height:48px; border-radius:12px;
  background:var(--grey-100);
  display:flex; align-items:center; justify-content:center;
  font-size:1.4rem; font-weight:700; color:var(--grey-700);
  transition:transform 0.15s ease;
}
.planning-nav-btn:active { transform:scale(0.92); background:var(--blue-100); }
.planning-current { text-align:center; }
.planning-current-day {
  font-family:var(--font-display); font-weight:600;
  font-size:1.3rem; color:var(--grey-900);
  text-transform:capitalize;
}
.planning-current-date { color:var(--grey-500); font-size:0.95rem; }

.timeline { display:flex; flex-direction:column; gap:12px; }
.timeline-item {
  background:white; border-radius:var(--radius-md);
  padding:18px 20px;
  display:flex; align-items:center; gap:18px;
  box-shadow:var(--shadow-sm);
  border-left:6px solid var(--blue-500);
  transition:transform 0.15s ease;
}
.timeline-time {
  font-family:var(--font-display); font-weight:600;
  font-size:1.15rem; color:var(--grey-700);
  min-width:80px;
}
.timeline-icon {
  width:56px; height:56px; border-radius:14px;
  background:var(--blue-50);
  display:flex; align-items:center; justify-content:center;
  font-size:1.6rem; flex-shrink:0;
}
.timeline-content { flex:1; }
.timeline-name {
  font-family:var(--font-display); font-weight:600;
  font-size:1.1rem; color:var(--grey-900); margin-bottom:2px;
}
.timeline-place { color:var(--grey-500); font-size:0.95rem; }
.timeline-item.repas  { border-left-color:var(--orange-500); }
.timeline-item.repas .timeline-icon { background:#fff7ed; }
.timeline-item.conge  { border-left-color:var(--green-500); }
.timeline-item.conge .timeline-icon { background:var(--green-50); }
.timeline-item.special { border-left-color:var(--violet-500); }
.timeline-item.special .timeline-icon { background:var(--violet-50); }
.timeline-item.absence { border-left-color:var(--red-500); }
.timeline-item.absence .timeline-icon { background:var(--red-50); }
.timeline-item.demande-pending  { border-left-color:var(--amber-500); background:var(--amber-50); }
.timeline-item.demande-pending  .timeline-icon { background:white; }
.timeline-item.demande-accepted { border-left-color:var(--green-500); background:var(--green-50); }
.timeline-item.demande-accepted .timeline-icon { background:white; }
.timeline-item[class*="demande-"] .timeline-time {
  display:flex; align-items:center; gap:6px;
  font-size:0.85rem; color:var(--grey-700); min-width:110px;
}
.timeline-empty {
  text-align:center; padding:60px 20px; color:var(--grey-500);
}
.timeline-empty-icon { font-size:3.5rem; margin-bottom:12px; }

/* ============================================
   WIZARD — progression
   ============================================ */
.steps-progress {
  display:flex; align-items:center; gap:8px;
  margin-bottom:32px; max-width:300px;
}
.step-dot {
  flex:1; height:6px; border-radius:100px;
  background:var(--grey-200);
  transition:background 0.3s ease;
}
.step-dot.active { background:var(--blue-600); }
.step-dot.done   { background:var(--green-500); }

/* ============================================
   RDV — encadrants + jours
   ============================================ */
.staff-grid {
  display:grid; grid-template-columns:repeat(2,1fr);
  gap:16px; max-width:600px;
}
.staff-card {
  background:white; border-radius:var(--radius-lg);
  padding:24px; display:flex; flex-direction:column;
  align-items:center; gap:14px;
  box-shadow:var(--shadow-sm); border:2px solid transparent;
  transition:all 0.15s ease; text-align:center; cursor:pointer;
}
.staff-card:active { transform:scale(0.97); }
.staff-card.selected { border-color:var(--violet-500); background:var(--violet-50); }
.staff-card .avatar { width:80px; height:80px; font-size:1.6rem; }
.staff-name {
  font-family:var(--font-display); font-weight:600;
  font-size:1.1rem; color:var(--grey-900);
}
.staff-role {
  color:var(--grey-500); font-size:0.95rem;
  background:var(--grey-100); padding:4px 12px; border-radius:100px;
}

.days-list { display:flex; flex-direction:column; gap:10px; max-width:520px; }
.day-card {
  background:white; border-radius:var(--radius-md);
  padding:16px 20px;
  display:flex; align-items:center; gap:16px;
  box-shadow:var(--shadow-sm); border:2px solid transparent;
  transition:all 0.15s ease; cursor:pointer;
}
.day-card.selected { border-color:var(--violet-500); background:var(--violet-50); }
.day-card.selected .check { background:var(--violet-500); color:white; }
.day-card.selected .check svg { display:block; }
.check {
  width:32px; height:32px; border-radius:50%;
  background:var(--grey-100);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0; transition:all 0.15s ease;
}
.check svg { display:none; width:18px; height:18px; }
.day-info { flex:1; }
.day-name {
  font-family:var(--font-display); font-weight:600;
  font-size:1.1rem; color:var(--grey-900); text-transform:capitalize;
}
.day-date { color:var(--grey-500); font-size:0.95rem; }

/* ============================================
   BOUTONS
   ============================================ */
.bottom-action { margin-top:32px; display:flex; justify-content:center; }
.primary-btn {
  background:var(--blue-600); color:white;
  padding:18px 36px; border-radius:14px;
  font-family:var(--font-display); font-weight:600;
  font-size:1.15rem;
  box-shadow:var(--shadow-md);
  display:inline-flex; align-items:center; gap:10px;
  transition:all 0.15s ease;
  min-width:240px; justify-content:center;
}
.primary-btn:active { transform:scale(0.96); background:var(--blue-700); }
.primary-btn:disabled { background:var(--grey-300); cursor:not-allowed; box-shadow:none; }
.primary-btn.violet { background:var(--violet-600); }
.primary-btn.violet:active { background:var(--violet-500); }
.primary-btn.green { background:var(--green-600); }
.primary-btn.small {
  padding:10px 18px; font-size:0.95rem; min-width:0; box-shadow:var(--shadow-sm);
}
.secondary-btn {
  background:white; color:var(--grey-700);
  padding:18px 36px; border-radius:14px;
  font-family:var(--font-display); font-weight:600; font-size:1rem;
  box-shadow:var(--shadow-sm);
  display:inline-flex; align-items:center; gap:8px;
  transition:all 0.15s ease;
}
.secondary-btn:active { transform:scale(0.96); background:var(--grey-100); }
.secondary-btn.small { padding:10px 18px; font-size:0.95rem; }
.contre-propo-actions {
  display:flex; gap:10px; flex-wrap:wrap; margin-top:12px;
}
.primary-btn.green:active { background:var(--green-700); }

/* ============================================
   RÉCAP
   ============================================ */
.recap-card {
  background:white; border-radius:var(--radius-lg);
  padding:28px; box-shadow:var(--shadow-sm);
  max-width:560px;
}
.recap-row {
  display:flex; align-items:center; gap:16px;
  padding:14px 0;
  border-bottom:1px solid var(--grey-100);
}
.recap-row:last-child { border-bottom:none; }
.recap-label {
  font-family:var(--font-display); font-weight:600;
  font-size:0.95rem; color:var(--grey-500); min-width:100px;
}
.recap-value {
  font-family:var(--font-display); font-weight:600;
  font-size:1.1rem; color:var(--grey-900); flex:1;
}

/* ============================================
   FORM — sections (urgence + thème)
   ============================================ */
.form-section { max-width:560px; margin-top:24px; }
.form-section-label {
  display:block; font-family:var(--font-display); font-weight:600;
  color:var(--grey-700); margin-bottom:12px; font-size:1.05rem;
}
.urgence-list {
  display:grid; grid-template-columns:repeat(3, 1fr); gap:12px;
}
.urgence-card {
  background:white; padding:18px 10px; border-radius:16px;
  border:3px solid transparent; cursor:pointer;
  transition:transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  text-align:center; font-family:var(--font-display); font-weight:600;
  font-size:0.95rem; color:var(--grey-700);
  box-shadow:var(--shadow-sm); user-select:none;
}
.urgence-card:active { transform:scale(0.97); }
.urgence-card.selected {
  border-color:var(--violet-500);
  box-shadow:var(--shadow-md);
  color:var(--grey-900);
}
.theme-select {
  width:100%; padding:14px 16px; border-radius:14px;
  border:2px solid var(--grey-200); background:white;
  font-size:1rem; font-family:var(--font-body);
  color:var(--grey-900);
  appearance:none; -webkit-appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 16px center;
  padding-right:44px;
}
.theme-select:focus { outline:none; border-color:var(--violet-500); }

/* ============================================
   CONGÉS — saisie date
   ============================================ */
.calendar-wrapper {
  background:white; border-radius:var(--radius-lg);
  padding:28px; box-shadow:var(--shadow-sm);
  max-width:480px;
}
.calendar-label {
  display:block; font-family:var(--font-display); font-weight:600;
  color:var(--grey-700); margin-bottom:12px; font-size:1.05rem;
}
.date-input {
  width:100%; padding:16px 20px; border-radius:12px;
  border:2px solid var(--grey-200); font-size:1.2rem;
  font-family:var(--font-display); font-weight:600;
  color:var(--grey-900); outline:none;
  transition:border-color 0.2s ease;
}
.date-input:focus { border-color:var(--blue-500); }
.conges-summary {
  background:var(--green-50); border-radius:var(--radius-md);
  padding:18px 24px; margin-top:20px;
  border:2px solid var(--green-500);
  font-size:1.1rem; color:var(--green-700); font-weight:700;
  text-align:center; max-width:480px;
}

/* ============================================
   INFOS
   ============================================ */
.news-list { display:flex; flex-direction:column; gap:14px; max-width:680px; }
.news-card {
  background:white; border-radius:var(--radius-lg);
  padding:20px 24px;
  display:flex; gap:18px; align-items:flex-start;
  box-shadow:var(--shadow-sm);
  border-left:6px solid var(--amber-500);
}
.news-card.important { border-left-color:var(--red-500); }
.news-card.event     { border-left-color:var(--violet-500); }
.news-card.fun       { border-left-color:var(--green-500); }
.news-icon {
  width:54px; height:54px; border-radius:14px;
  background:var(--amber-50);
  display:flex; align-items:center; justify-content:center;
  font-size:1.6rem; flex-shrink:0;
}
.news-card.important .news-icon { background:var(--red-50); }
.news-card.event     .news-icon { background:var(--violet-50); }
.news-card.fun       .news-icon { background:var(--green-50); }
.news-content { flex:1; }
.news-title {
  font-family:var(--font-display); font-weight:600;
  font-size:1.15rem; color:var(--grey-900); margin-bottom:6px;
}
.news-text { color:var(--grey-700); font-size:0.95rem; line-height:1.45; margin-bottom:8px; }
.news-date { color:var(--grey-500); font-size:0.85rem; }

/* ============================================
   MES DEMANDES
   ============================================ */
.requests-list { display:flex; flex-direction:column; gap:12px; max-width:680px; }
.request-card {
  background:white; border-radius:var(--radius-lg);
  padding:20px 24px;
  display:flex; gap:16px; align-items:center;
  box-shadow:var(--shadow-sm);
}
.request-icon {
  width:54px; height:54px; border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  font-size:1.6rem; flex-shrink:0;
}
.request-icon.rdv   { background:var(--violet-50); }
.request-icon.conge { background:var(--green-50); }
.request-content { flex:1; min-width:0; }
.request-type {
  font-size:0.85rem; color:var(--grey-500);
  font-weight:700; text-transform:uppercase; letter-spacing:0.05em;
}
.request-title {
  font-family:var(--font-display); font-weight:600;
  font-size:1.1rem; color:var(--grey-900); margin:2px 0;
}
.request-meta { color:var(--grey-500); font-size:0.9rem; }
.request-status {
  padding:8px 14px; border-radius:100px;
  font-weight:700; font-size:0.9rem;
  display:inline-flex; align-items:center; gap:6px;
  white-space:nowrap;
}
.status-pending  { background:var(--amber-50);  color:var(--amber-600); }
.status-accepted { background:var(--green-50);  color:var(--green-700); }
.status-refused  { background:var(--red-50);    color:var(--red-600); }
.status-dot {
  width:8px; height:8px; border-radius:50%; background:currentColor;
}
.status-dot.pulse { animation:pulse 1.5s infinite; }
@keyframes pulse {
  0%,100% { opacity:1; }
  50%      { opacity:0.4; }
}

/* ============================================
   SUCCÈS
   ============================================ */
.success-screen {
  display:flex; flex-direction:column; flex:1;
  align-items:center; justify-content:center; text-align:center;
  gap:20px; padding:60px 20px;
}
.success-icon {
  width:120px; height:120px; border-radius:50%;
  background:var(--green-500); display:flex;
  align-items:center; justify-content:center;
  color:white; font-size:4rem;
  margin-bottom:8px;
  animation:pop 0.5s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow:0 20px 40px rgba(34,197,94,0.3);
}
@keyframes pop {
  0%   { transform:scale(0); }
  100% { transform:scale(1); }
}
.success-title {
  font-family:var(--font-display); font-weight:600;
  font-size:2rem; color:var(--grey-900);
}
.success-text { color:var(--grey-500); font-size:1.1rem; max-width:420px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width:600px) {
  .app { padding:16px; }
  .app-header { flex-wrap:wrap; }
  .header-right { width:100%; justify-content:space-between; }
  .grid { gap:12px; }
  .worker-card { padding:16px 8px; min-height:150px; }
  .avatar { width:64px; height:64px; font-size:1.4rem; }
  .worker-name { font-size:0.95rem; }
  .numpad { grid-template-columns:repeat(3,68px); gap:12px; }
  .num-btn { width:68px; height:68px; font-size:1.4rem; }
  .welcome-banner { padding:24px 20px; }
  .welcome-greeting { font-size:1.4rem; }
  .modules-grid { grid-template-columns:1fr; }
  .module-tile { min-height:140px; padding:20px; }
  .staff-grid { grid-template-columns:1fr; }
  .timeline-item { padding:14px; gap:12px; }
  .timeline-time { min-width:60px; font-size:1rem; }
  .timeline-icon { width:44px; height:44px; font-size:1.3rem; }
  .request-card, .news-card { padding:16px; flex-wrap:wrap; }
  .request-status { width:100%; justify-content:flex-start; }
}

/* ============================================
   ENCADRANT — Lien d'accès depuis login
   ============================================ */
.encadrant-link {
  display:inline-block;
  font-family:var(--font-display); font-weight:600; font-size:0.9rem;
  color:var(--grey-700); padding:10px 16px; border-radius:100px;
  background:white; box-shadow:var(--shadow-sm);
  transition:color 0.15s, transform 0.15s, background 0.15s;
}
.encadrant-link:active { transform:scale(0.96); background:var(--grey-100); }
.header-encadrant { font-size:0.85rem; padding:8px 14px; }

/* ============================================
   FILTRE ALPHABÉTIQUE — login grille
   ============================================ */
.letter-filter {
  display:flex; flex-wrap:wrap; justify-content:center; gap:6px;
  margin:0 auto 20px; max-width:720px;
}
.letter-btn {
  background:white; padding:6px 12px; border-radius:10px;
  font-family:var(--font-display); font-weight:700; font-size:0.95rem;
  color:var(--grey-500); box-shadow:var(--shadow-sm);
  min-width:36px; text-align:center;
  transition:background 0.15s, color 0.15s, transform 0.15s;
}
.letter-btn:active { transform:scale(0.92); }
.letter-btn.active { background:var(--blue-600); color:white; box-shadow:var(--shadow-md); }
.grid-empty {
  grid-column:1/-1; padding:48px 16px; text-align:center;
  color:var(--grey-500); font-family:var(--font-display);
}

/* ============================================
   ENCADRANT — Login form
   ============================================ */
.encadrant-login-form {
  background:white; border-radius:var(--radius-lg);
  padding:32px; box-shadow:var(--shadow-md);
  max-width:440px; margin:24px auto 0;
}
.form-label {
  display:block; font-family:var(--font-display); font-weight:600;
  color:var(--grey-700); margin:16px 0 8px; font-size:0.95rem;
}
.form-input {
  width:100%; padding:14px 16px; border-radius:14px;
  border:2px solid var(--grey-200); background:var(--grey-50);
  font-size:1rem; font-family:var(--font-body); color:var(--grey-900);
}
.form-input:focus { outline:none; border-color:var(--blue-500); background:white; }

/* ============================================
   ENCADRANT — Dashboard cards
   ============================================ */
.section-title {
  font-family:var(--font-display); font-weight:600;
  font-size:1.2rem; color:var(--grey-700);
  margin:32px 0 16px;
}
.enc-cards { display:flex; flex-direction:column; gap:20px; }
.enc-card {
  background:white; border-radius:var(--radius-lg);
  padding:24px; box-shadow:var(--shadow-md);
  display:flex; flex-direction:column; gap:14px;
  max-width:720px;
}
.enc-card-header {
  display:flex; align-items:center; gap:14px;
}
.enc-card-header .avatar { width:48px; height:48px; }
.enc-card-title { flex:1; }
.enc-card-name {
  font-family:var(--font-display); font-weight:700;
  font-size:1.1rem; color:var(--grey-900);
}
.enc-card-meta { color:var(--grey-500); font-size:0.85rem; }
.enc-card-row { font-size:0.95rem; color:var(--grey-700); }
.enc-urgence {
  font-family:var(--font-display); font-weight:600; font-size:0.85rem;
  padding:6px 12px; border-radius:100px;
  background:var(--grey-100); color:var(--grey-700);
}
.enc-urgence-urgent  { background:var(--red-50);   color:var(--red-600); }
.enc-urgence-bientot { background:var(--amber-50); color:var(--amber-600); }
.enc-urgence-normal  { background:var(--green-50); color:var(--green-700); }

.enc-days { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.enc-day {
  background:var(--grey-50); padding:10px 16px; border-radius:14px;
  border:2px solid transparent; cursor:pointer; transition:all 0.15s;
  font-family:var(--font-display); font-weight:500; font-size:0.9rem;
  color:var(--grey-700);
}
.enc-day.selected { border-color:var(--blue-500); background:var(--blue-50); color:var(--blue-700); }

.enc-note {
  width:100%; min-height:60px; padding:12px 14px; border-radius:12px;
  border:2px solid var(--grey-200); background:var(--grey-50);
  font-family:var(--font-body); font-size:0.95rem; resize:vertical;
}
.enc-note:focus { outline:none; border-color:var(--blue-500); background:white; }

.enc-conges-duree {
  display:inline-block; margin-left:12px; padding:4px 10px;
  background:var(--green-50); color:var(--green-700);
  border-radius:100px; font-weight:600; font-size:0.85rem;
}

.enc-card-actions {
  display:flex; gap:12px; margin-top:4px;
}
.enc-btn {
  flex:1; padding:14px 20px; border-radius:14px;
  font-family:var(--font-display); font-weight:700; font-size:1rem;
  cursor:pointer; transition:transform 0.1s;
}
.enc-btn:active { transform:scale(0.97); }
.enc-btn-refuse { background:var(--red-50);   color:var(--red-600); }
.enc-btn-accept { background:var(--green-600); color:white; }

.enc-date-alt {
  padding:10px 14px; border-radius:12px;
  border:2px solid var(--grey-200); background:var(--grey-50);
  font-family:var(--font-body); font-size:0.95rem; margin-top:8px;
}
.enc-date-alt:focus { outline:none; border-color:var(--blue-500); background:white; }
.enc-hint {
  font-size:0.8rem; color:var(--grey-500); margin-top:6px; font-style:italic;
}

/* ============================================
   ENCADRANT — Historique
   ============================================ */
.hist-list { display:flex; flex-direction:column; gap:12px; }
.hist-card {
  background:white; border-radius:var(--radius-md);
  padding:16px 20px; box-shadow:var(--shadow-sm);
  display:flex; align-items:flex-start; gap:14px;
  max-width:720px;
}
.hist-card .avatar { width:40px; height:40px; flex-shrink:0; }
.hist-content { flex:1; min-width:0; }
.hist-titre {
  font-family:var(--font-display); font-weight:600;
  font-size:1rem; color:var(--grey-900);
}
.hist-meta { font-size:0.8rem; color:var(--grey-500); margin-top:2px; }
.hist-detail { font-size:0.9rem; color:var(--grey-700); margin-top:4px; }
.hist-note {
  font-size:0.9rem; color:var(--grey-700); margin-top:6px;
  padding-left:10px; border-left:3px solid var(--grey-200);
}
.hist-nouveau {
  border-left:4px solid var(--red-500);
  background:#fff8f7;
  animation:nouveau-pulse 2s ease-in-out 2;
}
@keyframes nouveau-pulse {
  0%, 100% { box-shadow:var(--shadow-sm); }
  50%      { box-shadow:0 0 0 4px rgba(239,68,68,0.15), var(--shadow-md); }
}
.nouveau-badge {
  display:inline-block; margin-left:8px;
  background:var(--red-500); color:white;
  font-family:var(--font-display); font-weight:700;
  font-size:0.7rem; padding:2px 8px; border-radius:100px;
  vertical-align:middle;
}
