/*
 * ═══════════════════════════════════════════════════════════════════════════
 * CAPTAINQSE CSS - MODE PRODUCTION
 * ═══════════════════════════════════════════════════════════════════════════
 * 
 * Environnement : production (isDev: false)
 * Host          : https://captainqse.fr
 * Build         : 2025-12-11 18:01:31
 * ETag          : "21badf4a3f273492aedf2ec750189024"
 * 
 * 📦 Fichiers concaténés pour performances optimales
 * 🚀 Cache navigateur : 1 an (immutable)
 * 🔍 Pour débugger : ajouter ?dev à l'URL
 * 
 * ═══════════════════════════════════════════════════════════════════════════
 */

/* ───────────────────────────────────────────────────────────────────────── */
/* 📄 1-settings/_variables.css (6.87 KB) */
/* ───────────────────────────────────────────────────────────────────────── */

/* =========================
   Design Tokens - CAPTAINQSE
   Variables globales du système
   ========================= */

:root {
  /* =========================
     Couleurs principales
     ========================= */
  --color-primary: #000042;                 /* bleu nuit logo */
  --color-primary-rgb: 0, 0, 66;

  --color-accent: #007bff;                  /* accent (hover, CTA) */
  --color-accent-rgb: 0, 123, 255;

  --color-secondary: #334155;               /* gris bleuté (icônes, textes secondaires) */
  --color-secondary-rgb: 51, 65, 85;

  /* =========================
     Fonds
     ========================= */
  --bg-main: var(--color-primary);          /* alias historique */
  --bg-accent: #23274e;
  --bg-card: #ffffff;
  --bg-card-accent: #b3b3b3;
  --bg-muted: #f6f7fb;
  --bg-secondary: var(--bg-card-accent); 
  --bg-tertiary: #1e293b;                   /* ← AJOUTER : zones secondaires, en-têtes */
  --bg-hover: rgba(255, 255, 255, 0.05);    /* ← AJOUTER : survol d'éléments */

  /* Alias sémantiques */
  --bg-primary: var(--bg-main);             /* utilisé par les en-têtes/table headers */
  --bg-surface: var(--bg-card);

  /* =========================
     Textes
     ========================= */
  --text-main: #0f172a;
  --text-muted: #667085;
  --text-light: #e6ebff;
  --text-secondary: #94a3b8;                 /* ← AJOUTER : alias pour textes secondaires */

  /* Alias sémantiques */
  --text-primary: var(--text-main);
  --text-on-primary: #ffffff;               /* texte sur fond primaire (bleu nuit) */
  --text-on-accent: #ffffff;                /* texte sur fond accent (bleu vif) */

  /* =========================
     Bordures
     ========================= */
  --border-light: #e8eaf2;
  --border-muted: #dfe2f2;
  --border-color: rgba(255, 255, 255, 0.12); /* ← AJOUTER : bordure générique */

  /* =========================
     Statuts
     ========================= */
  --status-success: #22c55e;
  --status-success-rgb: 34, 197, 94;
  --status-success-accent: #63c267;

  --status-error: #ff5959;
  --status-error-rgb: 255, 89, 89;

  /* =========================
     Gradients
     ========================= */
  --grad-tile: linear-gradient(180deg, #fff, #f6f7fb);

  /* =========================
     Ombres
     ========================= */
  --shadow-soft: 0 2px 0 rgba(0,0,0,.03);
  --shadow-medium: 0 12px 30px rgba(2, 6, 23, .18);
  --shadow-strong: 0 18px 40px rgba(2,6,23,.12);

  /* =========================
     Typographie
     ========================= */
  --font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  /* =========================
     Boutons
     ========================= */
  --btn-font-size: 15px;
  --btn-radius: 8px;
  --btn-pad-y: 6px;
  --btn-pad-x: 12px;

  --btn-fg: var(--text-on-primary, #fff);
  --btn-bg: #2563eb;
  --btn-hover-bg: var(--color-primary, #0ea5e9);
  --btn-hover-fg: #2563eb;

  --btn-secondary-bg: #6b7280;
  --btn-secondary-hover: #4b5563;

  --btn-disabled-bg: #9ca3af;
  --btn-disabled-fg: #d1d5db;

  --btn-focus-ring: rgba(var(--color-accent-rgb, 37,99,235), .35);

  /* =========================
     Formulaires - Inputs
     ========================= */
  --ui-field-bg: rgba(255,255,255,.06);
  --ui-field-fg: #fff;
  --ui-field-border: rgba(255,255,255,.18);
  --ui-field-radius: .5rem;
  --ui-field-pad-y: .625rem;                /* 10px */
  --ui-field-pad-x: .75rem;                 /* 12px */

  /* =========================
     Formulaires - Select
     ========================= */
  --ui-select-bg: var(--bg-accent, #1b2340);
  --ui-select-fg: var(--text-on-primary, #fff);
  --ui-select-border: rgba(255,255,255,.18);
  --ui-select-radius: .5rem;
  --ui-select-pad-y: .5rem;
  --ui-select-pad-x: .75rem;
  --ui-select-chevron: #cbd5e1;

  /* =========================
     Composants - Dashboard
     ========================= */
  --tile-w: 260px;
  --tile-h: 160px;
  --tile-gap: 22px;
  --tile-glow-color: #e9ecff;          /* ← AJOUTER ICI */

  /* =========================
     Composants - Dock
     ========================= */
  --dock-bg: #0b1220cc;                     /* verre sombre */
  --dock-border: #ffffff1a;
  --dock-shadow: 0 12px 40px rgba(0,0,0,.35);
  --dock-offset: 5px;
  --dock-reserved-space: 80px;           /* ← AJOUTER ICI */

  /* =========================
     Composants - Filedrop
     ========================= */
  --fd-bg: var(--ui-field-bg, rgba(255,255,255,.06));
  --fd-fg: var(--ui-field-fg, #fff);
  --fd-border: var(--ui-field-border, rgba(255,255,255,.18));
  --fd-radius: .75rem;
  --fd-accent-rgb: var(--color-accent-rgb, 37,99,235);
  --fd-danger: #ef4444;

  /* =========================
   Composants - Panel
   ========================= */
  --panel-bg: rgba(255, 255, 255, .03);
  --panel-border: rgba(227, 230, 238, .13);

   /* =========================
      Composants - Table
      ========================= */
   --table-max-height: calc(100vh - 280px);

   /* =========================
      Composants - Toast
      ========================= */
   --toast-offset-top: 16px;
   --toast-offset-bottom: 16px;
   --toast-success: #16a34a;
   --toast-error: #dc2626;
   --toast-warning: #f59e0b;
   --toast-info: #2563eb;

   /* =========================
      Layout - Footer
      ========================= */
   --footer-bubble-bg: rgba(255, 255, 255, .08);
   --footer-bubble-border: rgba(255, 255, 255, .12);
   --footer-link-underline: rgba(255, 255, 255, .5);

   /* =========================
      Layout - Header
      ========================= */
   --header-profile-bg: rgba(255, 255, 255, .1);
   --header-profile-border: rgba(255, 255, 255, .12);
   --header-avatar-bg: rgba(255, 255, 255, .1);
   --header-role-color: #cfd7ff;
   --header-height: 80px;
   --header-height-compact: 60px;

   /* =========================
   Layout - Page
   ========================= */
   --container-max-width: 1280px;
   --container-padding: 20px;
   --container-padding-mobile: 16px;
   --page-section-spacing: 2rem;
   --sidebar-width: 280px;

   /* =========================
      Utils - Scrollbar
      ========================= */
   --scrollbar-size: 8px;
   --scrollbar-size-thick: 12px;
   --scrollbar-track: rgba(255, 255, 255, .05);
   --scrollbar-thumb: rgba(255, 255, 255, .2);
   --scrollbar-thumb-hover: rgba(255, 255, 255, .3);
   --scrollbar-thumb-active: rgba(255, 255, 255, .4);

  /* =========================
     Rétrocompatibilité (deprecated)
     ========================= */
  --accent: var(--color-accent);            /* @deprecated utiliser --color-accent */
  --accent-rgb: var(--color-accent-rgb);    /* @deprecated utiliser --color-accent-rgb */
  --ui-accent-rgb: var(--color-accent-rgb); /* @deprecated utiliser --color-accent-rgb */
}

/* ───────────────────────────────────────────────────────────────────────── */
/* 📄 2-base/_reset.css (0.79 KB) */
/* ───────────────────────────────────────────────────────────────────────── */

/* =========================
   CSS Reset - Normalisation
   ========================= */

/* Reset universel */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Images responsives */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Reset listes */
ul,
ol {
  list-style: none;
}

/* Reset boutons */
button {
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}

/* Reset champs de formulaire */
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* Suppression du outline par défaut (à remplacer par focus-visible) */
:focus {
  outline: none;
}

/* Focus visible pour l'accessibilité */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ───────────────────────────────────────────────────────────────────────── */
/* 📄 2-base/_base.css (0.94 KB) */
/* ───────────────────────────────────────────────────────────────────────── */

/* =========================
   Styles de base globaux
   ========================= */

/* Reset box-sizing universel */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* HTML & Body */
html,
body {
  height: 100%;
  margin: 0;
  font-family: var(--font-family);
  background: var(--bg-main);
  color: var(--text-primary);
}

/* Liens */
a {
  text-decoration: none;
  color: inherit;
  transition: color .2s ease;
}

a:hover {
  color: var(--color-accent);
}

/* Titres */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700;
  color: var(--text-light);
  line-height: 1.2;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Sous-titre */
.tiles-subtitle {
    color: var(--text-secondary);
    margin: 0;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.6;
}

.text-muted {
    color: var(--text-muted);
}

p {
    color: var(--text-light);
}

/* ───────────────────────────────────────────────────────────────────────── */
/* 📄 3-components/_badges.css (3.99 KB) */
/* ───────────────────────────────────────────────────────────────────────── */

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-category {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

/* Badges rôles */
.badge-role-admin {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    margin-right: 0.25rem;
}

.badge-role-manager {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    margin-right: 0.25rem;
}

.badge-role-user {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    margin-right: 0.25rem;
}

.badge-system {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    margin-left: 0.5rem;
    margin-top: 0.25rem;
}

/* Badge Fantôme (utilisateurs phantom) */
.badge-phantom {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Sélecteur de rôle avec badges cliquables */
.role-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.role-radio {
    display: none;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 24px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    opacity: 0.4;
}

.role-badge:hover {
    opacity: 0.7;
    transform: translateY(-1px);
}

.role-radio:checked + .role-badge {
    opacity: 1;
    border-color: currentColor;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.role-badge--admin {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.role-badge--manager {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
}

.role-badge--user {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

/* Sélecteur de catégorie */
.category-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.category-radio {
    display: none;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 24px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    opacity: 0.4;
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.category-badge:hover {
    opacity: 0.7;
    transform: translateY(-1px);
}

.category-radio:checked + .category-badge {
    opacity: 1;
    border-color: currentColor;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Badges de statut actif/inactif */
.badge-success {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.badge-error {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* Badges d'actions de logs */
.badge-action-created,
.badge-action-tile_created {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.badge-action-updated,
.badge-action-update,
.badge-action-tile_updated {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.badge-action-deleted,
.badge-action-tile_deleted {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.badge-action-role_changed {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
}

.badge-action-impersonated {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.badge-action-impersonation_stopped {
    background: rgba(107, 114, 128, 0.15);
    color: #6b7280;
}

.badge-action-tile_restored {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

/* Badges d'entités (user, tile) */
.badge-entity-user,
.badge-entity-tile {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    width: fit-content;
    white-space: nowrap;
}

.badge-entity-user {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.badge-entity-tile {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
}

/* ───────────────────────────────────────────────────────────────────────── */
/* 📄 3-components/_buttons.css (8.71 KB) */
/* ───────────────────────────────────────────────────────────────────────── */

/* ===============================
   Composant Boutons
   =============================== */

/* ===============================
   Base commune — Boutons texte
   =============================== */

.btn,
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  font-size: var(--btn-font-size);
  font-weight: 600;
  line-height: 1;
  border: 0;
  border-radius: var(--btn-radius);
  background: transparent;
  color: var(--btn-fg);
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background .2s ease, color .2s ease, transform .12s ease, box-shadow .2s ease;
}

/* Focus visible (accessibilité) */
.btn:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 .2rem var(--btn-focus-ring);
}

/* État désactivé */
.btn:disabled,
.btn[aria-disabled="true"],
.btn.is-disabled,
.btn-primary:disabled,
.btn-primary[aria-disabled="true"],
.btn-secondary:disabled,
.btn-secondary[aria-disabled="true"] {
  background: var(--btn-disabled-bg);
  color: var(--btn-disabled-fg);
  opacity: .7;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}

/* ===============================
   Variante principale (primaire)
   =============================== */

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
  min-height: 30px;
  padding: 0 14px;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--btn-hover-bg);
  color: var(--btn-hover-fg);
  transform: translateY(-1px) scale(1.05);
}

.btn-primary:active {
  transform: translateY(0) scale(.98);
}

/* ===============================
   Variante secondaire (gris)
   =============================== */

.btn-secondary {
  background: var(--btn-secondary-bg);
  color: #fff;
}

.btn-secondary:hover {
  background: var(--btn-secondary-hover);
}

/* ===============================
   États spéciaux
   =============================== */

/* Bouton actif (onglet sélectionné, etc.) */
.btn-active {
  background: #1e40af;
  box-shadow: inset 0 0 0 2px #93c5fd;
  cursor: default;
  pointer-events: none;
}

/* Classe legacy désactivée (rétrocompatibilité) */
.btn-disabled {
  background: var(--btn-disabled-bg) !important;
  color: var(--btn-disabled-fg) !important;
  opacity: .7;
  cursor: not-allowed;
  pointer-events: none;
}

/* ===============================
   Modificateurs utilitaires
   =============================== */

.btn--block {
  width: 100%;
}

/* ===============================
   Bouton icône (FontAwesome/SVG)
   =============================== */

.btn-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .12s ease, box-shadow .2s ease;
  will-change: transform;
}

/* Icône FontAwesome */
.btn-icon i {
  font-size: 22px;
  line-height: 1;
  transition: transform .12s ease;
  transform-origin: center;
}

/* Fallback image */
.btn-icon img {
  width: 26px;
  height: 26px;
  display: block;
}

/* États hover/focus */
.btn-icon:hover,
.btn-icon:focus-visible {
  background: var(--btn-hover-bg);
  color: var(--btn-hover-fg);
  transform: translateY(-1px) scale(1.05);
}

.btn-icon:hover i,
.btn-icon:focus-visible i {
  transform: scale(1.08);
}

.btn-icon:active {
  transform: translateY(0) scale(.98);
}

.btn-icon:focus-visible {
  box-shadow: 0 0 0 .2rem var(--btn-focus-ring);
}

/* État désactivé */
.btn-icon:disabled {
  opacity: .5;
  cursor: not-allowed;
  filter: saturate(.2);
}

/* Infobulle au survol (data-tip) */
.btn-icon[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: #111827;
  color: #fff;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
}

.btn-icon:hover::after,
.btn-icon:focus-visible::after {
  opacity: 1;
}

/* ===============================
   Bouton icône header/topbar
   =============================== */

.iconbtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
  transition: background .15s ease;
}

.iconbtn:hover {
  background: rgba(255, 255, 255, .16);
}

.iconbtn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.iconbtn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Badge de notification sur les boutons */
.btn .badge {
  position: absolute;
  top: -5px;
  right: -5px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--status-error);
  color: #fff;
  font-size: 11px;
  line-height: 1;
}

/* ===============================
   Accessibilité
   =============================== */

@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn-primary,
  .btn-secondary,
  .btn-icon,
  .btn-icon i,
  .iconbtn {
    transition: none !important;
    transform: none !important;
  }
}

/* Boutons icône */
.btn-icon {
    padding: 0.5rem;
    background: var(--bg-accent);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: var(--bg-hover);
    border-color: #3b82f6;
    color: #3b82f6;
}

/* Bouton danger */
.btn-danger {
    padding: 0.625rem 1.25rem;
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-danger:hover {
    background: #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Bouton retour */
.btn-back {
    margin-top: 2rem;
}

/* Bouton ajouter icône */
.btn-add-icon {
    white-space: nowrap;
    flex-shrink: 0;
}

/* ===============================
   Bouton Impersonation
   =============================== */

.btn-impersonate {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    transition: all 0.2s ease;
}

.btn-impersonate:hover {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.3);
}

.btn-impersonate:active {
    transform: translateY(0);
}

/* Bouton danger (suppression) */
.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-danger:active {
    transform: translateY(0);
}

/* Boutons d'action dans header (état désactivé visible) */
.btn-icon--action:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-secondary--compact {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Badges d'actions de tuiles */
.badge-action-tile_updated {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.badge-action-tile_activated {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.badge-action-tile_deactivated {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.badge-action-tile_reordered {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
}

.badge-action-tile_icon_uploaded {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.badge-action-tile_icon_deleted {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.badge-action-tile_icon_renamed {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

/* ───────────────────────────────────────────────────────────────────────── */
/* 📄 3-components/_dock.css (3.56 KB) */
/* ───────────────────────────────────────────────────────────────────────── */

/* ===============================
   Composant Dock flottant (mobile)
   Navigation type macOS/iOS
   =============================== */

/* ===============================
   Container principal (fixed)
   =============================== */

.ft-dock {
  position: fixed;
  left: 50%;
  bottom: calc(var(--dock-offset) + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 9500;
  width: auto;
  pointer-events: none;
}

/* ===============================
   Conteneur interne (glassmorphism)
   =============================== */

.ft-dock__inner {
  display: inline-flex;
  justify-content: center;
  gap: 4px;
  padding: 6px 8px;
  background: var(--dock-bg);
  border: 1px solid var(--dock-border);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  box-shadow: var(--dock-shadow);
  white-space: nowrap;
  pointer-events: auto;
  /* Animation d'entrée */
  animation: dock-slide-up .3s ease;
}

/* ===============================
   Items du dock (boutons/liens)
   =============================== */

.ft-dock__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 80px;
  padding: 6px 8px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 11.5px;
  color: #e6e6e6;
  text-align: center;
  text-decoration: none;
  transition: transform .12s ease, background .2s ease, color .2s ease;
}

/* Icône */
.ft-dock__item i {
  font-size: 16px;
  line-height: 1;
}

/* États hover/focus */
.ft-dock__item:hover,
.ft-dock__item:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .08);
  outline: none;
}

/* ===============================
   État actif (page courante)
   =============================== */

.ft-dock__item.is-active {
  background: var(--color-accent);
  color: var(--text-on-primary);
  cursor: default;
  pointer-events: none;
  transform: none;
}

.ft-dock__item.is-active i {
  color: inherit;
}

.ft-dock__item.is-active:hover {
  background: var(--color-accent);
}

/* ===============================
   Réservation d'espace (body)
   =============================== */

/* Supprime le padding-bottom global */
body.has-dock {
  padding-bottom: 0;
}

/* Ajoute l'espace sur les conteneurs de contenu */
body.has-dock .container,
body.has-dock .ft-shell,
body.has-dock main {
  padding-bottom: calc(var(--dock-reserved-space) + env(safe-area-inset-bottom));
}

/* ===============================
   Responsive
   =============================== */

@media (max-width: 560px) {
  .ft-dock__inner {
    gap: 3px;
    padding: 6px;
  }

  .ft-dock__item {
    min-width: 65px;
    padding: 6px 7px;
    font-size: 11px;
  }

  .ft-dock__item i {
    font-size: 15px;
  }
}

/* Desktop : masquer le dock */
@media (min-width: 1024px) {
  .ft-dock {
    display: none;
  }

  /* Supprime la réservation d'espace */
  body.has-dock .container,
  body.has-dock .ft-shell,
  body.has-dock main {
    padding-bottom: 0;
  }
}

/* ===============================
   Animations
   =============================== */

@keyframes dock-slide-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===============================
   Accessibilité
   =============================== */

@media (prefers-reduced-motion: reduce) {
  .ft-dock__item {
    transition: none;
    transform: none !important;
  }

  .ft-dock__inner {
    animation: none;
  }
}

/* ───────────────────────────────────────────────────────────────────────── */
/* 📄 3-components/_edit-modal.css (0.45 KB) */
/* ───────────────────────────────────────────────────────────────────────── */

/* Éditeur de tuile avec preview */
.tile-editor {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

/* Preview de la tuile */
.tile-editor__preview {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Champs à droite */
.tile-editor__fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ───────────────────────────────────────────────────────────────────────── */
/* 📄 3-components/_filedrop.css (5.34 KB) */
/* ───────────────────────────────────────────────────────────────────────── */

/* ===============================
   Composant Filedrop
   Zone de dépôt de fichiers (drag & drop)
   =============================== */

/* ===============================
   Container principal
   =============================== */

.filedrop {
  position: relative;
  display: grid;
  gap: .5rem;
  padding: 16px;
  color: var(--fd-fg);
  background: var(--fd-bg);
  border: 1px dashed var(--fd-border);
  border-radius: var(--fd-radius);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

/* Input masqué (accessible pour submit) */
.filedrop__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===============================
   État vide - Placeholder
   =============================== */

.filedrop__placeholder {
  min-height: 120px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: .5rem;
}

.filedrop__center {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

.filedrop__icon {
  width: 24px;
  height: 24px;
  opacity: .9;
}

.filedrop__text {
  display: flex;
  align-items: center;
  gap: .5rem;
  line-height: 1.25;
}

.filedrop__text strong {
  font-weight: 700;
}

.filedrop__hint {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  font-size: .9rem;
  opacity: .75;
}

/* ===============================
   État rempli - Liste de fichiers
   =============================== */

.filedrop__files {
  display: block;
}

.filedrop__list {
  display: grid;
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.filedrop__item {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: 10px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--fd-border);
  border-radius: calc(var(--fd-radius) - .25rem);
  transition: background .2s ease;
  /* Animation d'entrée */
  animation: file-slide-in .3s ease;
  min-width: 0;
}

.filedrop__item:hover {
  background: rgba(255, 255, 255, .06);
}

.filedrop__item .ico {
  flex: 0 0 auto;
  width: 45px;
  height: 45px;
}

.filedrop__name {
  flex: 1;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.filedrop__size {
  margin-left: .25rem;
  font-size: .9rem;
  opacity: .85;
}

.filedrop__remove {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: auto;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease;
}

.filedrop__remove:hover {
  background: rgba(255, 255, 255, .1);
}

.filedrop__remove:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ===============================
   États interactifs
   =============================== */

/* Drag over (fichier en cours de déplacement) */
.filedrop.is-dragover {
  border-color: rgba(var(--fd-accent-rgb), .9);
  background: rgba(var(--fd-accent-rgb), .10);
  box-shadow: 0 0 0 .1875rem rgba(var(--fd-accent-rgb), .25);
}

/* Indicateur de nombre de fichiers lors du drag */
.filedrop.is-dragover::after {
  content: attr(data-drop-count);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 12px 20px;
  background: rgba(var(--fd-accent-rgb), .9);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 12px;
  pointer-events: none;
  z-index: 10;
}

/* Fichier dépassant la limite de taille */
.filedrop__item.is-oversized {
  border-color: var(--fd-danger);
  background: rgba(239, 68, 68, .05);
}

.filedrop__item.is-oversized .filedrop__name {
  color: var(--fd-danger);
}

.filedrop__item.is-oversized .filedrop__size {
  color: var(--fd-danger);
  font-weight: 700;
}

/* Messages d'erreur */
.filedrop__error {
  margin: 0;
  color: var(--fd-danger);
  font-size: .95rem;
  font-weight: 600;
}

/* ===============================
   Gestion des états vide/rempli
   =============================== */

/* État vide */
.filedrop.is-empty .filedrop__files {
  display: none;
}

.filedrop.is-empty .filedrop__placeholder {
  display: grid;
}

/* État avec fichier(s) */
.filedrop.has-file .filedrop__placeholder {
  display: none;
}

.filedrop.has-file .filedrop__files {
  display: block;
}

/* ===============================
   Animations
   =============================== */

@keyframes file-slide-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===============================
   Responsive
   =============================== */

@media (max-width: 560px) {
  .filedrop__placeholder {
    min-height: 100px;
  }

  .filedrop__icon {
    width: 20px;
    height: 20px;
  }

  .filedrop.is-dragover::after {
    font-size: 1.2rem;
    padding: 10px 16px;
  }
}

/* ===============================
   Accessibilité
   =============================== */

@media (prefers-reduced-motion: reduce) {
  .filedrop,
  .filedrop__item,
  .filedrop__remove {
    transition: none;
  }

  .filedrop__item {
    animation: none;
  }
}

/* ───────────────────────────────────────────────────────────────────────── */
/* 📄 3-components/_forms.css (11.10 KB) */
/* ───────────────────────────────────────────────────────────────────────── */

/* ===============================
   Composants de formulaire
   Inputs, Textarea, Select, Searchbar
   =============================== */

/* ===============================
   Variables et reset
   =============================== */

/* Ces variables sont définies dans _variables.css mais peuvent être surchargées ici si besoin */

/* ===============================
   Labels
   =============================== */

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.form-label--icon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-label--icon i {
    color: var(--color-accent);
}

/* ===============================
   Inputs - Base (UI et modales)
   =============================== */

.ui-input,
.ui-textarea,
.ui-file,
.form-input,
.modal input[type="email"],
.modal input[type="text"],
.modal input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font: inherit;
    line-height: 1.25;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

/* Variables spécifiques pour UI (compatibilité) */
.ui-input,
.ui-textarea,
.ui-file {
    color: var(--ui-field-fg, #fff);
    background: var(--ui-field-bg, rgba(255, 255, 255, 0.06));
    border-color: var(--ui-field-border, rgba(255, 255, 255, 0.18));
    border-radius: var(--ui-field-radius, 10px);
    padding: var(--ui-field-pad-y, 10px) var(--ui-field-pad-x, 12px);
}

/* État focus */
.ui-input:focus,
.ui-textarea:focus,
.ui-file:focus,
.form-input:focus,
.modal input[type="email"]:focus,
.modal input[type="text"]:focus,
.modal input[type="password"]:focus {
    border-color: rgba(102, 126, 234, 0.8);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.25);
}

/* Espacement sous les inputs */
.form-input {
    margin-bottom: 1rem;
}

/* ===============================
   Textarea
   =============================== */

.ui-textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===============================
   Input File
   =============================== */

.ui-file::file-selector-button {
    margin-right: 0.6rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--ui-field-border, rgba(255, 255, 255, 0.18));
    border-radius: 0.4rem;
    background: rgba(255, 255, 255, 0.08);
    color: var(--ui-field-fg, #fff);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.ui-file::file-selector-button:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(102, 126, 234, 0.45);
}

/* ===============================
   Select - Dropdown
   =============================== */

.ui-select {
    width: auto;
    max-width: 100%;
    padding: var(--ui-select-pad-y, 0.5rem) var(--ui-select-pad-x, 0.75rem);
    padding-right: 2rem;
    border: 1px solid var(--ui-select-border, rgba(255, 255, 255, 0.18));
    border-radius: var(--ui-select-radius, 10px);
    background-color: var(--ui-field-bg, rgba(255, 255, 255, 0.06));
    color: var(--ui-select-fg, #fff);
    font: inherit;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    
    /* Reset appearance */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    
    /* Chevron intégré */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23cbd5e1'><path d='M5.23 7.21a.75.75 0 011.06.02L10 10.94l3.71-3.71a.75.75 0 111.06 1.06l-4.24 4.24a.75.75 0 01-1.06 0L5.21 8.29a.75.75 0 01.02-1.08z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    background-size: 14px 14px;
}

.ui-select:hover {
    border-color: rgba(102, 126, 234, 0.45);
}

.ui-select:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.85);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.ui-select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ui-select option {
    background: var(--ui-select-bg, rgba(255, 255, 255, 0.06));
    color: var(--ui-select-fg, #fff);
}

/* Select multiple : retire le chevron */
.ui-select[multiple],
.ui-select[size] {
    background-image: none;
    padding-right: var(--ui-select-pad-x, 0.75rem);
    cursor: default;
}

/* ===============================
   Variantes de taille - Inputs
   =============================== */

.ui-input--sm {
    padding: 0.5rem 0.625rem;
    font-size: 0.95rem;
}

.ui-input--lg {
    padding: 0.75rem 1rem;
    font-size: 1.05rem;
}

/* ===============================
   Variantes de taille - Select
   =============================== */

.ui-select--full {
    width: 100%;
    max-width: none;
}

.ui-select--chip {
    max-width: 220px;
}

.ui-select--sm {
    --ui-select-pad-y: 0.4rem;
    font-size: 0.95rem;
}

.ui-select--lg {
    --ui-select-pad-y: 0.6rem;
    font-size: 1.05rem;
}

/* ===============================
   Variante thème clair
   =============================== */

.ui-field--light {
    --ui-field-bg: #fff;
    --ui-field-fg: #111827;
    --ui-field-border: #d7d7d7;
}

/* ===============================
   États de validation
   =============================== */

/* Succès */
.ui-input.is-valid,
.ui-textarea.is-valid,
.ui-select.is-valid {
    border-color: var(--status-success);
}

.ui-input.is-valid:focus,
.ui-textarea.is-valid:focus,
.ui-select.is-valid:focus {
    border-color: var(--status-success);
    box-shadow: 0 0 0 0.1875rem rgba(var(--status-success-rgb), 0.25);
}

/* Erreur */
.ui-input.is-invalid,
.ui-textarea.is-invalid,
.ui-select.is-invalid {
    border-color: var(--status-error);
}

.ui-input.is-invalid:focus,
.ui-textarea.is-invalid:focus,
.ui-select.is-invalid:focus {
    border-color: var(--status-error);
    box-shadow: 0 0 0 0.1875rem rgba(var(--status-error-rgb), 0.25);
}

/* ===============================
   Groupes et structure de formulaire
   =============================== */

.form-group {
    display: grid;
    gap: 0.375rem;
    margin-top: 1.5rem;
}

.form-group:first-child {
    margin-top: 0;
}

/* ===============================
   Aide / texte explicatif
   =============================== */

.form-help,
.form-helper {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-top: -0.75rem;
    margin-bottom: 1rem;
}

.form-group .form-help {
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* États de validation pour helper text */
.form-helper.is-valid,
.form-help.is-valid {
    color: var(--status-success);
}

.form-helper.is-invalid,
.form-help.is-invalid {
    color: var(--status-error);
}

/* ===============================
   Layouts de formulaire
   =============================== */

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding-bottom: 12px;
}

@media (max-width: 720px) {
    .form-row-2 {
        grid-template-columns: 1fr;
    }
}

/* ===============================
   Searchbar
   =============================== */

.searchbar {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 0.2rem;
    background: var(--bg-accent);
    border: 1px solid rgba(227, 230, 238, 0.13);
    border-radius: 0.5rem;
    backdrop-filter: blur(4px);
}

.searchbar input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 0.25rem 2rem;
    border: 0;
    background: transparent;
    color: var(--text-on-primary);
    font-size: 0.95rem;
    outline: 0;
}

.searchbar input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

/* Icône loupe */
.search-icon {
    position: absolute;
    left: 0.55rem;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'><path d='M15.5 14h-.79l-.28-.27a6.5 6.5 0 10-.71.71l.27.28v.79l4.25 4.25a1 1 0 001.41-1.41L15.5 14zm-6 0A4.5 4.5 0 1114 9.5 4.5 4.5 0 019.5 14z'/></svg>");
    background-repeat: no-repeat;
    background-size: 18px 18px;
    opacity: 0.75;
    pointer-events: none;
}

/* Bouton clear */
.search-clear {
    position: absolute;
    right: 0.25rem;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--text-on-primary);
    font-size: 18px;
    line-height: 1;
    transform: translateY(-50%);
    opacity: 0;
    pointer-events: none;
    cursor: pointer;
    transition: opacity 0.15s ease, background 0.15s ease, transform 0.05s ease, color 0.15s ease;
}

.searchbar.has-value .search-clear {
    opacity: 0.9;
    pointer-events: auto;
}

.search-clear:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-accent);
    transform: translateY(-50%) scale(1.05);
}

.search-clear:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* ===============================
   Sélecteur de rôles (badges cliquables)
   =============================== */

.role-selector {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.role-radio {
    display: none;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    opacity: 0.5;
}

.role-radio:checked + .role-badge {
    opacity: 1;
    border-color: currentColor;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.25);
    transform: translateY(-2px);
}

.role-badge:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.role-radio:checked + .role-badge:hover {
    opacity: 1;
}

/* Variantes de rôles */
.role-badge--user {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.role-badge--manager {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
}

.role-badge--admin {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* Variantes de statut */
.role-badge--active {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.role-badge--suspended {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* ===============================
   Accessibilité
   =============================== */

@media (prefers-reduced-motion: reduce) {
    .ui-input,
    .ui-textarea,
    .ui-file,
    .ui-select,
    .form-input,
    .modal input,
    .ui-file::file-selector-button,
    .search-clear,
    .role-badge {
        transition: none;
    }
}

/* ───────────────────────────────────────────────────────────────────────── */
/* 📄 3-components/_icon-context-menu.css (0.89 KB) */
/* ───────────────────────────────────────────────────────────────────────── */

/* Menu contextuel */
.icon-context-menu {
    position: fixed;
    background: var(--bg-accent);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0;
    z-index: 10001;
    min-width: 160px;
}

.icon-context-menu__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-light);
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.9rem;
}

.icon-context-menu__item:hover {
    background: var(--bg-hover);
}

.icon-context-menu__item--danger {
    color: #ef4444;
}

.icon-context-menu__item--danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

.icon-context-menu__item i {
    width: 16px;
    text-align: center;
}

/* ───────────────────────────────────────────────────────────────────────── */
/* 📄 3-components/_icon-picker.css (3.40 KB) */
/* ───────────────────────────────────────────────────────────────────────── */

/* Header avec recherche + bouton */
.icon-picker-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    align-items: center;
}

.icon-picker-search {
    flex: 1;
    position: relative;
    margin-bottom: 0;
}

.icon-picker-search input {
    width: 100%;
    padding-right: 3rem;
}

/* Bouton clear de la recherche */
.icon-search-clear {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.icon-search-clear:hover {
    background: var(--bg-hover);
    color: var(--text-light);
}

/* Grille d'icônes */
.icon-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    max-height: 60vh;
    overflow-y: auto;
    padding: 1rem;
    border-radius: 12px;
}

/* Item d'icône */
.icon-picker-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.icon-picker-item:hover {
    transform: translateY(-2px);
    border-color: var(--color-accent);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.icon-picker-item.selected {
    border-color: var(--color-accent);
    background: rgba(var(--color-accent-rgb), 0.1);
    box-shadow: 0 0 0 3px rgba(var(--color-accent-rgb), 0.2);
}

/* Icône affichée */
.icon-picker-item__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin-bottom: 0.5rem;
}

.icon-picker-item__icon img,
.icon-picker-item__icon svg {
    width: 40px;
    height: 40px;
}

.icon-picker-item__icon svg {
    stroke: var(--text-light);
    fill: none;
    stroke-width: 2;
}

/* Nom de l'icône */
.icon-picker-item__name {
    font-size: 0.75rem;
    color: var(--text-main);
    text-align: center;
    word-break: break-word;
}

.icon-picker-item.selected .icon-picker-item__name {
    color: var(--color-accent);
    font-weight: 600;
}

/* État vide */
.icon-picker-empty {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

/* Forcer la couleur des SVG */
.icon-picker-item__icon svg,
.icon-picker-item__icon img[src$=".svg"] {
    filter: brightness(0) saturate(100%) invert(0%);
}

/* Sélecteur d'icône avec preview (autre composant) */
.icon-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-selector__preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    padding: 1rem;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
}

.icon-selector__preview i {
    font-size: 2.5rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.icon-selector__preview img,
.icon-selector__preview svg {
    width: 60px;
    height: 60px;
    margin-bottom: 0.5rem;
}

.icon-selector__preview span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

/* ───────────────────────────────────────────────────────────────────────── */
/* 📄 3-components/_logs-viewer.css (6.96 KB) */
/* ───────────────────────────────────────────────────────────────────────── */

/* Filtres */
.logs-filters {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    margin-bottom: 1rem;
}

.logs-search {
    position: relative;
}

.logs-search input {
    width: 100%;
    padding-right: 3rem;
}

/* Timeline des logs */
.logs-timeline {
    max-height: 60vh;
    overflow-y: auto;
    padding: 0.5rem;
}

/* Item de log */
.log-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 2px solid var(--border-light);
    border-left: 4px solid var(--color-accent);
    border-radius: 12px;
    transition: all 0.2s;
}

.log-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-medium);
}

/* Couleurs par action */
.log-item--activated {
    border-left-color: #22c55e;
    background: rgba(34, 197, 94, 0.12);
}

.log-item--deactivated {
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.12);
}

.log-item--updated {
    border-left-color: #3b82f6;
    background: rgba(59, 130, 246, 0.12);
}

.log-item--reordered {
    border-left-color: #a855f7;
    background: rgba(168, 85, 247, 0.12);
}

.log-item--icon_uploaded {
    border-left-color: #10b981;
    background: rgba(16, 185, 129, 0.12);
}

.log-item--icon_renamed {
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.12);
}

.log-item--icon_deleted {
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.12);
}

/* Icône de l'action */
.log-item__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 1.25rem;
}

.log-item--activated .log-item__icon {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.log-item--deactivated .log-item__icon {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.log-item--updated .log-item__icon {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.log-item--reordered .log-item__icon {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
}

.log-item--icon_uploaded .log-item__icon {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.log-item--icon_renamed .log-item__icon {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.log-item--icon_deleted .log-item__icon {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* Contenu du log */
.log-item__content {
    flex: 1;
    min-width: 0;
}

.log-item__action {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.log-item__tile {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.log-item__meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.log-item__user {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.log-item__date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Détails des modifications */
.log-item__details {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    font-size: 0.875rem;
}

.log-item__details code {
    padding: 0.125rem 0.375rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--text-light);
}

.log-item__details ul {
    margin: 0.5rem 0 0 0;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.log-item__details ul li {
    margin-bottom: 0.25rem;
}

/* Forcer les SVG en noir dans les logs */
.log-item__details img[src$=".svg"] {
    filter: brightness(0) saturate(100%) invert(0%);
}

/* État vide */
.logs-empty {
    text-align: center;
    padding: 4rem 2rem;
}

/* Item de log */
.log-item {
    position: relative; /* ← Ajouté pour positionner le bouton */
    display: flex;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 2px solid var(--border-light);
    border-left: 4px solid var(--color-accent);
    border-radius: 12px;
    transition: all 0.2s;
}

/* Bouton annuler en haut à droite */
.btn-undo {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.btn-undo:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
    transform: translateY(-1px);
}

.btn-undo i {
    margin: 0; /* ← Pas de marge pour centrer parfaitement */
}

/* Logs d'annulation */
.log-item--undone_activation,
.log-item--undone_deactivation,
.log-item--undone_update {
    border-left-color: #ffc107;
    background: rgba(255, 193, 7, 0.12);
}

.log-item--undone_activation .log-item__icon,
.log-item--undone_deactivation .log-item__icon,
.log-item--undone_update .log-item__icon {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
}

/* Bouton pour aller au log original */
.btn-goto-log {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.4);
    color: #ffc107;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.75rem;
}

.btn-goto-log:hover {
    background: #ffc107;
    border-color: #ffc107;
    color: #000;
    transform: translateX(2px);
}

/* Animation de surbrillance */
.log-highlight {
    animation: highlight-pulse 2s ease-in-out;
}

@keyframes highlight-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(255, 193, 7, 0.4);
        transform: scale(1.02);
    }
}

.log-item--undone_icon_rename {
    border-left-color: #ffc107;
    background: rgba(255, 193, 7, 0.12);
}

.log-item--undone_icon_rename .log-item__icon {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
}

/* Bouton annuler désactivé */
.btn-undo--disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: var(--bg-tertiary);
    border-color: var(--border-color);
}

.btn-undo--disabled:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
    color: var(--text-muted);
    transform: none;
}

.log-item--undone_icon_delete {
    border-left-color: #ffc107;
    background: rgba(255, 193, 7, 0.12);
}

.log-item--undone_icon_delete .log-item__icon {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
}

/* ───────────────────────────────────────────────────────────────────────── */
/* 📄 3-components/_modal.css (8.14 KB) */
/* ───────────────────────────────────────────────────────────────────────── */

/* ===============================
   Composant Modal
   Fenêtres modales avec overlay
   =============================== */

/* ===============================
   Overlay (backdrop)
   =============================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    z-index: 10000;
}

.modal-overlay.is-open,
.modal-overlay[aria-hidden="false"] {
    display: flex;
}

/* ===============================
   Carte modale - Base
   =============================== */

.modal {
    width: min(560px, 92vw);
    padding: 16px 18px;
    border-radius: 12px;
    background: var(--bg-accent);
    color: var(--text-on-primary);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transform: translateY(6px) scale(0.98);
    transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease;
}

.modal-overlay.is-open .modal,
.modal-overlay[aria-hidden="false"] .modal {
    opacity: 1;
    transform: none;
}

/* ===============================
   Variantes de taille
   =============================== */

.modal--sm {
    width: min(400px, 92vw);
}

.modal--lg {
    width: min(800px, 92vw);
}

.modal--xl {
    width: min(1200px, 92vw);
}

/* ===============================
   Structure BEM - Header
   =============================== */

.modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.modal__header h3 {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

/* Trait décoratif après le titre */
.modal__header h3::after {
    content: "";
    flex: 1 1 auto;
    height: 3px;
    margin-left: 0.75rem;
    border-radius: 2px;
    background: linear-gradient(
        90deg,
        var(--color-accent) 0%,
        rgba(var(--color-accent-rgb), 0.6) 40%,
        rgba(var(--color-accent-rgb), 0) 100%
    );
}

/* Bouton de fermeture */
.modal__close {
    padding: 0.25rem 0.5rem;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.modal__close:hover {
    background: rgba(255, 255, 255, 0.08);
}

.modal__close:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* ===============================
   Structure BEM - Body
   =============================== */

.modal__body {
    padding: 0;
}

/* ===============================
   Structure BEM - Footer
   =============================== */

.modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 10px;
}

/* ===============================
   Variantes de style
   =============================== */

/* Modal danger (confirmation de suppression) */
.modal--danger .modal__header h3::after {
    background: linear-gradient(
        90deg,
        var(--status-error) 0%,
        rgba(var(--status-error-rgb), 0.6) 40%,
        rgba(var(--status-error-rgb), 0) 100%
    );
}

/* ===============================
   Textes et contenus
   =============================== */

.modal-text {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.modal-warning {
    color: var(--status-error);
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0;
}

/* ===============================
   Boîtes d'information
   =============================== */

.user-info-box {
    background: rgba(255, 193, 7, 0.15);
    border-left: 4px solid #ffc107;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
}

.user-info-box__name {
    margin: 0;
    color: var(--text-light);
    font-weight: 600;
}

.user-info-box__email {
    margin: 0.5rem 0 0 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ===============================
   Formulaires dans modales
   =============================== */

.modal label:not([class]) {
    display: grid;
    gap: 6px;
    font-weight: 600;
    padding-bottom: 6px;
    margin-top: 0.75rem;
}

/* ===============================
   Animation de fermeture
   =============================== */

.modal-overlay.is-closing .modal {
    animation: modal-fade-out 0.2s ease forwards;
}

@keyframes modal-fade-out {
    to {
        opacity: 0;
        transform: translateY(6px) scale(0.98);
    }
}

/* ===============================
   Scroll lock
   =============================== */

body.modal-open {
    overflow: hidden;
}

/* ===============================
   Legacy - Rétrocompatibilité
   =============================== */

.modal--legacy h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-light);
}

.modal--legacy h3::after {
    content: "";
    flex: 1;
    height: 2px;
    margin-left: 8px;
    border-radius: 2px;
    background: linear-gradient(
        90deg,
        rgba(var(--color-accent-rgb), 0.55),
        rgba(var(--color-accent-rgb), 0)
    );
}

.modal--legacy p {
    margin: 0 0 16px;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.45;
}

/* Boutons legacy */
.modal--legacy .actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.modal--legacy .btn {
    appearance: none;
    padding: 8px 14px;
    border: 1px solid var(--border-muted);
    border-radius: 10px;
    background: var(--bg-muted);
    color: var(--text-main);
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.02s ease, box-shadow 0.15s ease;
}

.modal--legacy .btn:hover {
    background: #eceff6;
}

.modal--legacy .btn:active {
    transform: translateY(1px);
}

.modal--legacy .btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--color-accent-rgb), 0.25);
}

.modal--legacy .btn.primary {
    background: var(--status-success);
    border-color: var(--status-success);
    color: var(--text-on-accent);
}

.modal--legacy .btn.primary:hover {
    background: var(--status-success-accent);
    filter: brightness(1.08);
    box-shadow: 0 0 0 3px rgba(var(--status-success-rgb), 0.25);
}

.modal--legacy .btn.ghost {
    background: var(--bg-surface);
    color: var(--text-main);
    border-color: var(--border-light);
}

.modal--legacy .btn.ghost:hover {
    background: var(--bg-card-accent);
    filter: brightness(1.08);
}

/* Inputs legacy */
.modal--legacy select,
.modal--legacy input[type="email"],
.modal--legacy input[type="text"],
.modal--legacy textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.modal--legacy select:focus,
.modal--legacy input[type="email"]:focus,
.modal--legacy input[type="text"]:focus,
.modal--legacy textarea:focus {
    border-color: rgba(var(--color-accent-rgb), 0.8);
    box-shadow: 0 0 0 3px rgba(var(--color-accent-rgb), 0.25);
}

.modal--legacy select option {
    background: var(--bg-accent);
    color: #fff;
}

/* ===============================
   Accessibilité
   =============================== */

@media (prefers-reduced-motion: reduce) {
    .modal {
        transition: none;
        transform: none;
    }

    .modal-overlay.is-closing .modal {
        animation: none;
    }
}

/* Modale de confirmation */
.modal--confirm .modal__body {
    padding: 1.5rem 0;
}

.modal--warning .modal__header h3::after {
    background: linear-gradient(
        90deg,
        #f59e0b 0%,
        rgba(245, 158, 11, 0.6) 40%,
        rgba(245, 158, 11, 0) 100%
    );
}

/* ───────────────────────────────────────────────────────────────────────── */
/* 📄 3-components/_panel.css (6.13 KB) */
/* ───────────────────────────────────────────────────────────────────────── */

/* ===============================
   Composant Panel
   Conteneurs modulaires avec header/body/footer
   =============================== */

/* ===============================
   Structure de base
   =============================== */

.panel {
  display: flex;
  flex-direction: column;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: .75rem;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}

/* ===============================
   Sections du panel
   =============================== */

.panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  gap: .75rem;
  padding: .75rem 1rem;
  background: var(--bg-accent);
  color: var(--text-on-primary);
  border-bottom: .25rem solid var(--color-accent);
}

/* Titre du panel */
.panel__title {
  flex: 1;
  min-width: 0;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  word-wrap: break-word;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Contrôles (select + boutons) */
.panel__controls {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}

/* Actions (boutons uniquement) */
.panel__actions {
  display: flex;
  gap: .5rem;
  flex-shrink: 0;
}

.panel__body {
  padding: .75rem 1rem;
}

.panel__footer {
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
  padding: .75rem 1rem;
  margin-top: auto;
}

/* ===============================
   Variantes de couleur
   =============================== */

/* Primary (par défaut - bleu) */
.panel--primary .panel__header {
  border-bottom-color: var(--color-accent);
}

/* Success (vert) */
.panel--success .panel__header {
  border-bottom-color: var(--status-success);
}

/* Danger (rouge) */
.panel--danger .panel__header {
  border-bottom-color: var(--status-error);
}

/* ===============================
   Variantes de taille/style
   =============================== */

/* Compact (padding réduit) */
.panel--compact .panel__header {
  min-height: 48px;
  padding: .5rem .75rem;
}

.panel--compact .panel__body {
  padding: .5rem .75rem;
}

.panel--compact .panel__footer {
  padding: .5rem .75rem;
}

/* ===============================
   États interactifs
   =============================== */

/* Panel collapsible */
.panel--collapsed .panel__body,
.panel--collapsed .panel__footer {
  display: none;
}

.panel__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.panel__toggle:hover {
  background: rgba(255, 255, 255, .1);
}

.panel__toggle i {
  transition: transform .2s ease;
}

.panel--collapsed .panel__toggle i {
  transform: rotate(-90deg);
}

/* Panel en chargement */
.panel.is-loading {
  position: relative;
  pointer-events: none;
}

.panel.is-loading .panel__body {
  opacity: 0.5;
}

.panel.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  border: 3px solid rgba(255, 255, 255, .2);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: panel-spin 0.8s linear infinite;
  z-index: 10;
}

@keyframes panel-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Body scrollable */
.panel__body--scrollable {
  max-height: 400px;
  overflow-y: auto;
}

/* ===============================
   Grilles de panels
   =============================== */

.panels-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

/* 2 colonnes */
.panels-grid--2col {
  grid-template-columns: repeat(2, 1fr);
}

/* 3 colonnes */
.panels-grid--3col {
  grid-template-columns: repeat(3, 1fr);
}

/* Auto-fit (responsive automatique) */
.panels-grid--auto {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* ===============================
   Responsive
   =============================== */

@media (max-width: 68.75rem) {
  .panels-grid--2col,
  .panels-grid--3col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 48rem) {
  /* Header responsive : titre sur toute la largeur */
  .panel__header {
    gap: 0.5rem;
  }
  
  .panel__title {
    flex-basis: 100%;
    margin-bottom: 0.25rem;
  }
  
  .panel__actions,
  .panel__controls {
    margin-left: auto;
  }
  
  /* Body scrollable */
  .panel__body--scrollable {
    max-height: 300px;
  }
}

/* ===============================
   Accessibilité
   =============================== */

@media (prefers-reduced-motion: reduce) {
  .panel,
  .panel__toggle,
  .panel__toggle i {
    transition: none;
  }

  .panel.is-loading::after {
    animation: none;
    border: 3px solid var(--color-accent);
    border-top-color: transparent;
  }
}

/* ===============================
   Header avec actions divisées
   =============================== */

.panel__header--split {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.panel__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.panel__actions--left {
    flex: 0 0 auto;
}

.panel__actions--right {
    flex: 0 0 auto;
}

/* ===============================
   Barre de filtres
   =============================== */

.panel__filters {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.panel__filters .searchbar {
    flex: 1 1 300px;
    min-width: 200px;
}

@media (max-width: 768px) {
    .panel__header--split {
        flex-direction: column;
        align-items: stretch;
    }

    .panel__actions {
        justify-content: center;
    }

    .panel__filters {
        flex-direction: column;
    }

    .panel__filters .searchbar,
    .panel__filters .ui-select {
        width: 100%;
    }
}

/* ───────────────────────────────────────────────────────────────────────── */
/* 📄 3-components/_table.css (8.77 KB) */
/* ───────────────────────────────────────────────────────────────────────── */

/* ===============================
   Composant Table
   Tableaux de données avec scroll et sticky header
   Usage: <div class="table"><table>…</table></div>
   =============================== */

/* ===============================
   Container de scroll
   =============================== */

.table {
  margin-top: 0.875rem;
  border-radius: 0.75rem;
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
  overflow: auto;
  max-height: var(--table-max-height);
  -webkit-overflow-scrolling: touch;
  position: relative;
}

/* ===============================
   Élément table
   =============================== */

.table table {
  width: 100%;
  table-layout: auto;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-card);
}

/* ===============================
   Header (thead)
   =============================== */

.table thead {
  background: var(--bg-accent);
  color: var(--text-on-primary);
}

.table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 1rem 1.125rem;
  background: var(--bg-accent);
  color: var(--text-on-primary);
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
}

.table thead tr:last-child th {
  border-bottom: 4px solid var(--color-accent);
}

/* ===============================
   Body (tbody)
   =============================== */

.table tbody {
  background: var(--bg-card);
}

.table th,
.table td {
  padding: 0.5rem 1.125rem;
  text-align: left;
  vertical-align: middle;
  white-space: normal;
}

.table td {
  color: var(--text-main);
}

/* ===============================
   États des lignes
   =============================== */

.table tbody tr {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  transition: background-color .18s ease;
}

.table tbody tr:last-child {
  border-bottom: none;
}

/* Hover (seulement si clickable) */
.table tbody tr.is-clickable {
  cursor: pointer;
}

.table tbody tr.is-clickable:hover {
  background-color: rgba(var(--color-accent-rgb), .10);
}

/* Active */
.table tbody tr.is-active {
  background: rgba(var(--color-accent-rgb), .13);
}

/* Success (vert) */
.table tbody tr.is-success {
  background: rgba(var(--status-success-rgb), .08);
  border-left: 3px solid var(--status-success);
}

/* Danger (rouge) */
.table tbody tr.is-danger {
  background: rgba(var(--status-error-rgb), .08);
  border-left: 3px solid var(--status-error);
}

/* Warning (orange) */
.table tbody tr.is-warning {
  background: rgba(255, 159, 10, .08);
  border-left: 3px solid #ff9f0a;
}

/* Selected (checkbox) */
.table tbody tr.is-selected {
  background: rgba(var(--color-accent-rgb), .15);
}

/* ===============================
   Tri de colonnes
   =============================== */

.table th.is-sortable {
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-right: 2rem;
}

.table th.is-sortable::after {
  content: "⇅";
  position: absolute;
  right: 0.75rem;
  opacity: 0.3;
  font-size: 0.875rem;
  transition: opacity .2s ease;
}

.table th.is-sortable:hover::after {
  opacity: 0.6;
}

.table th.is-sorted-asc::after {
  content: "▲";
  opacity: 1;
  color: var(--color-accent);
}

.table th.is-sorted-desc::after {
  content: "▼";
  opacity: 1;
  color: var(--color-accent);
}

/* ===============================
   Colonne Actions
   =============================== */

.table th:last-child,
.table td:last-child {
  white-space: nowrap;
}

.table td .actions {
  display: flex;
  flex-wrap: nowrap;
  gap: .5rem;
}

.table td .actions > * {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* ===============================
   Colonne Checkbox
   =============================== */

.table__checkbox {
  width: 40px;
  text-align: center;
  padding-left: 1rem;
  padding-right: 0.5rem;
}

.table__checkbox input[type="checkbox"] {
  cursor: pointer;
}

/* ===============================
   Helpers de texte
   =============================== */

.table td .desc,
.table .desc {
  color: var(--text-muted);
  font-size: .95rem;
}

/* ===============================
   Empty state
   =============================== */

.table__empty {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
}

.table__empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

/* ===============================
   Loading state
   =============================== */

.table.is-loading {
  position: relative;
  pointer-events: none;
}

.table.is-loading tbody {
  opacity: 0.5;
}

.table.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 4px solid rgba(var(--color-accent-rgb), .2);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: table-spin 0.8s linear infinite;
  z-index: 10;
}

@keyframes table-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===============================
   Variantes de style
   =============================== */

/* Striped (lignes alternées) */
.table--striped tbody tr:nth-child(even) {
  background: rgba(var(--color-accent-rgb), .03);
}

.table--striped tbody tr.is-clickable:nth-child(even):hover {
  background: rgba(var(--color-accent-rgb), .10);
}

/* Bordered (bordures complètes) */
.table--bordered table {
  border-collapse: collapse;
}

.table--bordered th,
.table--bordered td {
  border: 1px solid var(--border-light);
}

/* Compact (padding réduit) */
.table--compact th,
.table--compact td {
  padding: 0.375rem 0.75rem;
  font-size: 0.9rem;
}

/* Hoverable (hover sur toutes les lignes) */
.table--hoverable tbody tr {
  cursor: pointer;
}

.table--hoverable tbody tr:hover {
  background-color: rgba(var(--color-accent-rgb), .10);
}

/* Fixed first column */
.table--fixed-first th:first-child,
.table--fixed-first td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: inherit;
}

.table--fixed-first thead th:first-child {
  z-index: 4;
}

/* ===============================
   Responsive
   =============================== */

@media (max-width: 48rem) {
  .table {
    margin-top: 0.5rem;
    border-radius: 0.5rem;
  }

  .table th,
  .table td {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }

  .table thead th {
    padding: 0.75rem;
  }
}

/* ===============================
   Accessibilité
   =============================== */

@media (prefers-reduced-motion: reduce) {
  .table tbody tr {
    transition: none;
  }

  .table.is-loading::after {
    animation: none;
    border: 4px solid var(--color-accent);
    border-top-color: transparent;
  }

  .table th.is-sortable::after {
    transition: none;
  }
}

/* Table */
.tiles-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.tiles-table th {
    background: var(--bg-tertiary);
    color: var(--text-light);
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

/* Arrondir les coins de l'en-tête */
.tiles-table th:first-child {
    border-top-left-radius: 12px;
}

.tiles-table th:last-child {
    border-top-right-radius: 12px;
}

.tiles-table td {
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 0.5rem;
    text-align: left; /* Défaut */
}

/* Exception pour la colonne "Concerné" dans les logs */
.logs-table.tiles-table tbody tr td:nth-child(3) {
    text-align: center;
}

.tiles-table td strong {
    color: var(--text-light);
}

.tiles-table tbody tr:hover {
    background: var(--bg-hover);
}

.tiles-table tbody tr:last-child td {
    border-bottom: none;
}

/* Centrer le contenu de colonnes spécifiques */
.tiles-table td:nth-child(2),  /* Catégorie */
.tiles-table td:nth-child(3),  /* Statut */
.tiles-table td:nth-child(4) { /* Rôles Minimum Requis */
    text-align: center;
}

/* Actions */
.tile-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

/* ===============================
   Tableau sélectionnable
   =============================== */

.tiles-table--selectable tbody tr {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.tiles-table--selectable tbody tr:hover {
    background: rgba(102, 126, 234, 0.08);
}

.tiles-table--selectable tbody tr.is-selected {
    background: rgba(102, 126, 234, 0.15);
    box-shadow: inset 3px 0 0 var(--color-accent);
}

.tiles-table--selectable tbody tr.is-selected:hover {
    background: rgba(102, 126, 234, 0.2);
}

/* ───────────────────────────────────────────────────────────────────────── */
/* 📄 3-components/_tile-preview.css (1.56 KB) */
/* ───────────────────────────────────────────────────────────────────────── */

/* Preview de la tuile */
.tile-preview {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 200px;
    min-height: 180px;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    transition: all 0.2s;
}

.tile-preview:hover {
    transform: translateY(-2px);
    background-color: rgba(var(--color-accent-rgb), 0.20);
    border-color: rgba(var(--color-accent-rgb), 0.65);
    box-shadow: var(--shadow-strong), 0 0 0 2px rgba(var(--color-accent-rgb), 0.40);
}

.tile-preview__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.tile-preview__icon i {
    font-size: 2.5rem;
    color: var(--text-muted);
}

.tile-preview__icon img,
.tile-preview__icon svg {
    width: 50px;
    height: 50px;
}

.tile-preview__icon svg {
    stroke: var(--color-secondary);
    fill: none;
    stroke-width: 2;
}

.tile-preview:hover .tile-preview__icon svg {
    stroke: #fff;
}

.tile-preview__title {
    font-weight: 700;
    font-size: 18px;
    color: var(--text-main);
    text-align: center;
    word-break: break-word;
}

.tile-preview:hover .tile-preview__title {
    color: #fff;
}

/* Forcer la couleur des SVG dans la preview */
.tile-preview__icon svg,
.tile-preview__icon img[src$=".svg"] {
    filter: brightness(0) saturate(100%) invert(0%);
}

/* ───────────────────────────────────────────────────────────────────────── */
/* 📄 3-components/_toast.css (5.31 KB) */
/* ───────────────────────────────────────────────────────────────────────── */

/* ===============================
   Composant Toast
   Notifications temporaires
   =============================== */

/* ===============================
   Container de toasts
   =============================== */

.toast-container {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  z-index: 12000;
  pointer-events: none;
}

/* Position par défaut : top center */
.toast-container--top-center {
  top: var(--toast-offset-top);
}

/* Position : top right */
.toast-container--top-right {
  top: var(--toast-offset-top);
  right: var(--toast-offset-top);
  left: auto;
  transform: none;
  align-items: flex-end;
}

/* Position : bottom center */
.toast-container--bottom-center {
  top: auto;
  bottom: var(--toast-offset-bottom);
}

/* Position : bottom right */
.toast-container--bottom-right {
  top: auto;
  bottom: var(--toast-offset-bottom);
  right: var(--toast-offset-bottom);
  left: auto;
  transform: none;
  align-items: flex-end;
}

/* ===============================
   Toast
   =============================== */

.toast {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: auto;
  max-width: min(90vw, 600px);
  padding: 12px 16px;
  border-radius: 12px;
  background: #111827;
  color: #fff;
  text-align: center;
  line-height: 1.25;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .25);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: auto;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===============================
   Variantes de couleur
   =============================== */

.toast--success {
  background: var(--toast-success);
  color: #fff;
}

.toast--error {
  background: var(--toast-error);
  color: #fff;
}

.toast--warning {
  background: var(--toast-warning);
  color: #fff;
}

.toast--info {
  background: var(--toast-info);
  color: #fff;
}

/* ===============================
   Éléments du toast
   =============================== */

/* Icône */
.toast__icon {
  flex: 0 0 auto;
  font-size: 1.25rem;
  line-height: 1;
}

/* Message */
.toast__message {
  flex: 1 1 auto;
}

/* Bouton close */
.toast__close {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-left: 0.5rem;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font-size: 18px;
  line-height: 1;
  opacity: 0.7;
  cursor: pointer;
  transition: opacity .2s ease, background .2s ease;
}

.toast__close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, .1);
}

/* Barre de progression (auto-dismiss) */
.toast__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%; /* ← AJOUTE CETTE LIGNE */
  background: rgba(255, 255, 255, .3);
  transform-origin: left;
  animation: toast-progress linear forwards;
}

@keyframes toast-progress {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

/* Ajustement si pas de close button */
.toast:not(:has(.toast__close)) {
  padding-right: 16px;
}

/* ===============================
   Animations
   =============================== */

/* Animation d'entrée depuis le haut */
.toast-container--top-center .toast,
.toast-container--top-right .toast {
  transform: translateY(-8px);
}

.toast-container--top-center .toast.is-visible,
.toast-container--top-right .toast.is-visible {
  transform: translateY(0);
}

/* Animation d'entrée depuis le bas */
.toast-container--bottom-center .toast,
.toast-container--bottom-right .toast {
  transform: translateY(8px);
}

.toast-container--bottom-center .toast.is-visible,
.toast-container--bottom-right .toast.is-visible {
  transform: translateY(0);
}

/* ===============================
   Responsive
   =============================== */

@media (max-width: 48rem) {
  .toast {
    max-width: calc(100vw - 32px);
    padding: 10px 14px;
    font-size: 0.9rem;
  }

  .toast__icon {
    font-size: 1.1rem;
  }

  /* En mobile, toujours centrer les toasts */
  .toast-container--top-right,
  .toast-container--bottom-right {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    align-items: center;
  }
}

/* ===============================
   Accessibilité
   =============================== */

@media (prefers-reduced-motion: reduce) {
  .toast {
    transition: none;
    transform: none !important;
  }

  .toast__progress {
    animation: none;
  }
}

/* ===============================
   Legacy support (rétrocompatibilité)
   =============================== */

/* Ancien container avec ID */
#toast-container {
  position: fixed;
  top: var(--toast-offset-top);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  z-index: 12000;
  pointer-events: none;
}

/* Force z-index pour compatibilité */
.toast,
.toast-container,
#toast-container,
#toast,
#toast-root {
  z-index: 12000 !important;
}

/* ───────────────────────────────────────────────────────────────────────── */
/* 📄 3-components/_toggle-switch.css (0.98 KB) */
/* ───────────────────────────────────────────────────────────────────────── */

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ef4444; /* Rouge quand désactivé */
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background: #22c55e; /* Vert quand activé */
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.toggle-switch.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.toggle-switch.disabled .toggle-slider {
    cursor: not-allowed;
}

/* ───────────────────────────────────────────────────────────────────────── */
/* 📄 3-components/_custom-select.css (4.21 KB) */
/* ───────────────────────────────────────────────────────────────────────── */

/* ===============================
   Custom Select avec badges
   =============================== */

.custom-select {
    position: relative;
    width: auto;
    min-width: 180px;
}

.custom-select__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-light);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-select__trigger:hover {
    border-color: rgba(102, 126, 234, 0.45);
}

.custom-select.is-open .custom-select__trigger {
    border-color: rgba(102, 126, 234, 0.8);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.25);
}

.custom-select__value {
    flex: 1;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Placeholder style */
.custom-select__trigger:not(.has-value) .custom-select__value {
    opacity: 0.6;
}

.custom-select__arrow {
    flex-shrink: 0;
    font-size: 0.75rem;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.custom-select.is-open .custom-select__arrow {
    transform: rotate(180deg);
}

/* Dropdown */
.custom-select__dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-accent);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.custom-select.is-open .custom-select__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-select__options {
    list-style: none;
    padding: 0.5rem;
    margin: 0;
    padding: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.custom-select__option {
    padding: 0.25rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
    color: var(--text-muted); /* Gris par défaut */
}

.custom-select__option:hover {
    background: rgba(102, 126, 234, 0.1);
    color: var(--text-light); /* Plus clair au survol */
}

.custom-select__option.is-selected {
    padding: 0.25rem;
    background: rgba(102, 126, 234, 0.15);
    color: #fff; /* Blanc quand sélectionné */
}

/* Scrollbar */
.custom-select__options::-webkit-scrollbar {
    width: 6px;
}

.custom-select__options::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 3px;
}

.custom-select__options::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 3px;
}

.custom-select__options::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .custom-select {
        min-width: auto;
        width: 100%;
    }
}

/* Badge dans les options avec icône */
.custom-select__option .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}

.custom-select__option .badge i {
    font-size: 0.85rem;
}

/* Variantes de badges */
.custom-select__option .badge-success {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.custom-select__option .badge-error {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.custom-select__option .badge-role-admin {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.custom-select__option .badge-role-manager {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
}

.custom-select__option .badge-role-user {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

/* Badge dans le trigger */
.custom-select__trigger .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.625rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
}

.custom-select__trigger .badge i {
    font-size: 0.75rem;
}

/* ───────────────────────────────────────────────────────────────────────── */
/* 📄 4-layout/_footer.css (4.76 KB) */
/* ───────────────────────────────────────────────────────────────────────── */

/* ===============================
   Layout Footer
   Footers de page avec variantes
   =============================== */

/* ===============================
   Footer simple (legacy/basique)
   =============================== */

.footer {
  max-width: 1280px;
  margin: 10px auto 0;
  padding: 0 20px;
}

.footer .logout {
  color: var(--text-muted);
  text-decoration: underline;
  cursor: pointer;
  transition: color .2s ease;
}

.footer .logout:hover {
  color: var(--text-primary);
}

/* ===============================
   Site Footer (moderne, bulle)
   =============================== */

/* Container pleine largeur, poussé en bas */
.site-footer {
  width: 100%;
  margin-top: auto;
  background: transparent;
}

/* Rail interne centré */
.footer-rail {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0; /* Intentionnel : bulle collée en bas à droite */
  display: flex;
  justify-content: flex-end;
}

/* Bulle (glassmorphism) */
.footer-bubble {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 8px 12px;
  background: var(--footer-bubble-bg);
  border: 1px solid var(--footer-bubble-border);
  border-radius: 14px 0 0 0; /* Intentionnel : arrondi uniquement top-left */
  color: var(--text-light);
  font-size: 12px;
  line-height: 1.4;
  box-shadow: var(--shadow-medium);
  opacity: .85;
  transition: opacity .25s ease, filter .25s ease;
}

.footer-bubble:hover {
  opacity: 1;
  filter: brightness(1.1);
}

.footer-bubble .sep {
  margin: 0 8px;
  opacity: .7;
}

.footer-bubble a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px dashed var(--footer-link-underline);
  transition: border-bottom-color .2s ease;
}

.footer-bubble a:hover {
  border-bottom-color: #fff;
}

/* ===============================
   Variantes de style
   =============================== */

/* Centré */
.site-footer--centered .footer-rail {
  justify-content: center;
}

.site-footer--centered .footer-bubble {
  border-radius: 14px 14px 0 0;
}

/* Fond sombre */
.site-footer--dark {
  background: var(--bg-accent);
  border-top: 1px solid var(--footer-bubble-border);
}

.site-footer--dark .footer-bubble {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .08);
}

/* Minimal (pas de bulle, juste texte) */
.site-footer--minimal .footer-bubble {
  background: transparent;
  border: 0;
  box-shadow: none;
  opacity: .7;
}

.site-footer--minimal .footer-bubble:hover {
  opacity: 1;
}

/* ===============================
   Footer avec colonnes
   =============================== */

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 20px;
}

.footer-column h4 {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-on-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-column ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-column li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color .2s ease;
}

.footer-column a:hover {
  color: #fff;
}

/* ===============================
   Footer sticky (toujours visible)
   =============================== */

.site-footer--sticky {
  position: sticky;
  bottom: 0;
  z-index: 100;
}

/* ===============================
   Copyright / Mentions légales
   =============================== */

.footer-copyright {
  padding: 1rem 20px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-light);
  opacity: 0.7;
  line-height: 1.5;
}

.footer-copyright a {
  color: inherit;
  text-decoration: underline;
  transition: opacity .2s ease;
}

.footer-copyright a:hover {
  opacity: 1;
}

/* ===============================
   Responsive
   =============================== */

@media (max-width: 48rem) {
  .footer-bubble {
    font-size: 11px;
    padding: 6px 10px;
  }

  .footer-bubble .sep {
    margin: 0 4px;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem 20px;
  }

  /* En mobile, centrer la bulle si pas assez d'espace */
  .site-footer:not(.site-footer--centered) .footer-rail {
    justify-content: center;
  }

  .site-footer:not(.site-footer--centered) .footer-bubble {
    border-radius: 14px 14px 0 0;
  }
}

/* ===============================
   Accessibilité
   =============================== */

@media (prefers-reduced-motion: reduce) {
  .footer-bubble,
  .footer .logout,
  .footer-bubble a,
  .footer-column a,
  .footer-copyright a {
    transition: none;
  }
}

/* ───────────────────────────────────────────────────────────────────────── */
/* 📄 4-layout/_header.css (8.37 KB) */
/* ───────────────────────────────────────────────────────────────────────── */

/* ===============================
   Layout Header
   En-tête de page avec navigation
   =============================== */

/* ===============================
   Header principal
   =============================== */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  min-height: var(--header-height);
  margin: 16px 0;
  padding: 0 20px;
  color: var(--text-light);
  transition: min-height .2s ease;
}

/* ===============================
   Logo (gauche)
   =============================== */

.site-header__logo {
  flex: 0 0 auto;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}

.site-header__brand-img {
  display: block;
  height: 65px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.site-header__brand-text {
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.3px;
}

/* ===============================
   Actions (droite) : notifications + profil
   =============================== */

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

/* ===============================
   Navigation principale (optionnelle)
   =============================== */

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 auto;
}

.site-header__nav-link {
  padding: 0.5rem 1rem;
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  border-radius: 8px;
  transition: background .2s ease, color .2s ease;
}

.site-header__nav-link:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.site-header__nav-link.is-active {
  background: rgba(var(--color-accent-rgb), .15);
  color: var(--color-accent);
}

/* ===============================
   Search bar dans header (optionnelle)
   =============================== */

.site-header__search {
  flex: 0 1 400px;
  max-width: 400px;
}

@media (max-width: 48rem) {
  .site-header__search {
    flex: 1 1 auto;
    max-width: none;
  }
}

/* ===============================
   Notifications (dropdown)
   =============================== */

.site-header__notif-wrapper {
  position: relative;
}

.site-header__notif-menu {
  position: absolute;
  top: 52px;
  right: 0;
  z-index: 1000;
  display: none;
  min-width: 300px;
  padding: 8px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: var(--bg-card);
  color: var(--text-main);
  box-shadow: var(--shadow-medium);
  animation: dropdown-slide-in .2s ease;
}

.site-header__notif-menu.show {
  display: block;
}

@keyframes dropdown-slide-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-header__notif-title {
  margin: 6px 10px 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.site-header__notif-item {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .2s ease;
}

.site-header__notif-item:hover {
  background: var(--bg-muted);
}

.site-header__notif-sub {
  color: var(--text-muted);
  font-size: 12px;
}

.site-header__notif-dot {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--status-success);
  flex-shrink: 0;
}

/* ===============================
   Profil utilisateur
   =============================== */

.site-header__profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border: 1px solid var(--header-profile-border);
  border-radius: 14px;
  background: var(--header-profile-bg);
  color: #fff;
  transition: background .2s ease;
}

.site-header__profile:hover {
  background: rgba(255, 255, 255, .15);
}

.site-header__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--header-avatar-bg);
  overflow: hidden;
}

.site-header__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-header__avatar svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  opacity: 0.9;
}

.site-header__user-info {
  line-height: 1.15;
}

.site-header__email {
  font-size: 13px;
  opacity: 0.95;
}

.site-header__role {
  color: var(--header-role-color);
  font-size: 12px;
}

.site-header__logout {
  display: inline-block;
  margin-top: 6px;
  color: var(--color-accent);
  font-size: 0.85rem;
  text-decoration: none;
  transition: text-decoration .2s ease;
}

.site-header__logout:hover {
  text-decoration: underline;
}

/* ===============================
   Variantes de header
   =============================== */

/* Compact (hauteur réduite) */
.site-header--compact {
  min-height: var(--header-height-compact);
}

.site-header--compact .site-header__brand-img {
  height: 50px;
}

/* Sticky (fixé en haut) */
.site-header--sticky {
  position: sticky;
  top: 0;
  z-index: 1000;
  margin: 0;
  background: var(--bg-main);
  border-bottom: 1px solid var(--header-profile-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}

/* Bordered (bordure bottom) */
.site-header--bordered {
  border-bottom: 1px solid var(--header-profile-border);
  padding-bottom: 16px;
}

/* ===============================
   Burger menu (mobile)
   =============================== */

.site-header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  transition: background .2s ease;
}

.site-header__burger:hover {
  background: rgba(255, 255, 255, .08);
}

.site-header__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

.site-header__burger span + span {
  margin-top: 6px;
}

/* État ouvert */
.site-header--mobile-open .site-header__burger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-header--mobile-open .site-header__burger span:nth-child(2) {
  opacity: 0;
}

.site-header--mobile-open .site-header__burger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Navigation mobile */
.site-header__nav--mobile {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-main);
  padding: 2rem 20px;
  z-index: 999;
  overflow-y: auto;
}

.site-header--mobile-open .site-header__nav--mobile {
  display: block;
  animation: mobile-nav-slide-in .3s ease;
}

@keyframes mobile-nav-slide-in {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-header__nav--mobile .site-header__nav-link {
  display: block;
  padding: 1rem;
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

/* ===============================
   Responsive
   =============================== */

@media (max-width: 48rem) {
  .site-header {
    margin: 0px;
    padding: 0 8px;
  }

  .site-header__actions {
    gap: 6px;
  }

  .site-header__brand-text {
    display: none;
  }

  .site-header__brand-img {
    height: 50px;
  }

  /* Affiche le burger, cache la nav desktop */
  .site-header__burger {
    display: flex;
  }

  .site-header__nav:not(.site-header__nav--mobile) {
    display: none;
  }

  /* Profil simplifié sur mobile */
  .site-header__profile .site-header__user-info {
    display: none;
  }

  .site-header__notif-menu {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    min-width: calc(100vw - 32px);
  }
}

/* ===============================
   Accessibilité
   =============================== */

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .site-header__profile,
  .site-header__nav-link,
  .site-header__notif-menu,
  .site-header__notif-item,
  .site-header__burger,
  .site-header__burger span,
  .site-header__logout {
    transition: none;
  }

  .site-header__notif-menu,
  .site-header__nav--mobile {
    animation: none;
  }
}

/* ───────────────────────────────────────────────────────────────────────── */
/* 📄 4-layout/_page.css (7.74 KB) */
/* ───────────────────────────────────────────────────────────────────────── */

/* ===============================
   Layout Page
   Structure globale des pages
   =============================== */

/* ===============================
   Sticky footer layout
   =============================== */

html,
body {
  height: 100%;
}

body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

main,
.page-main {
  flex: 1 0 auto;
}

/* ===============================
   Container
   =============================== */

.container {
  max-width: var(--container-max-width);
  margin: 0; /* ← Retire 'auto' */
  padding: var(--container-padding);
  width: 100%; /* ← Ajoute cette ligne pour forcer la largeur complète */
}

/* Container fluide (pleine largeur) */
.container--fluid {
  max-width: none;
}

/* Container étroit */
.container--narrow {
  max-width: 800px;
}

/* Container large */
.container--wide {
  max-width: 1600px;
}

/* Breakout : contenu qui sort du container */
.container--breakout {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* ===============================
   Page title
   =============================== */

.page-title {
  margin: 0 20px;
  padding: .75rem 1.25rem;
  background: var(--bg-accent);
  border-radius: .75rem;
  color: var(--text-on-primary);
  font-size: clamp(1.625rem, 3vw, 2.625rem);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 .25rem .5rem rgba(var(--color-accent-rgb), .6);
}

/* Variantes de page-title */
.page-title--simple {
  background: transparent;
  color: var(--text-primary);
  box-shadow: none;
  padding: 1rem 0;
}

.page-title--bordered {
  background: transparent;
  color: var(--text-primary);
  box-shadow: none;
  border-bottom: 3px solid var(--color-accent);
  border-radius: 0;
  padding-bottom: 1rem;
}

.page-title--left {
  text-align: left;
}

.page-title--right {
  text-align: right;
}

/* ===============================
   Page content
   =============================== */

.page-content {
  padding: var(--container-padding) 0;
}

/* ===============================
   Page sections
   =============================== */

.page-section {
  margin-bottom: var(--page-section-spacing);
}

.page-section + .page-section {
  margin-top: var(--page-section-spacing);
}

.page-section__header {
  margin-bottom: 1.5rem;
}

.page-section__title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.page-section__description {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===============================
   Page grid
   =============================== */

.page-grid {
  display: grid;
  gap: 1.5rem;
}

/* 2 colonnes */
.page-grid--2col {
  grid-template-columns: repeat(2, 1fr);
}

/* 3 colonnes */
.page-grid--3col {
  grid-template-columns: repeat(3, 1fr);
}

/* 4 colonnes */
.page-grid--4col {
  grid-template-columns: repeat(4, 1fr);
}

/* Auto-fit responsive */
.page-grid--auto {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* ===============================
   Layouts avec sidebar
   =============================== */

.page-layout {
  display: grid;
  gap: 2rem;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* Sidebar gauche */
.page-layout--sidebar-left {
  grid-template-columns: var(--sidebar-width) 1fr;
  grid-template-areas: "sidebar content";
}

.page-layout--sidebar-left .page-sidebar {
  grid-area: sidebar;
}

.page-layout--sidebar-left .page-content-main {
  grid-area: content;
}

/* Sidebar droite */
.page-layout--sidebar-right {
  grid-template-columns: 1fr var(--sidebar-width);
  grid-template-areas: "content sidebar";
}

.page-layout--sidebar-right .page-sidebar {
  grid-area: sidebar;
}

.page-layout--sidebar-right .page-content-main {
  grid-area: content;
}

/* Sidebar sticky */
.page-sidebar--sticky {
  position: sticky;
  top: 20px;
  align-self: start;
}

.page-content-main {
  min-width: 0; /* Permet au contenu de shrink correctement */
}

/* ===============================
   Page states
   =============================== */

/* Loading */
.page-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  color: var(--text-muted);
}

.page-loading::before {
  content: "";
  width: 48px;
  height: 48px;
  margin-right: 1rem;
  border: 4px solid rgba(var(--color-accent-rgb), .2);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: page-loading-spin 0.8s linear infinite;
}

@keyframes page-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Empty state */
.page-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-muted);
}

.page-empty__icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  opacity: 0.3;
}

.page-empty__title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.page-empty__description {
  margin: 0 0 1.5rem;
  font-size: 1rem;
}

/* Error state */
.page-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 3rem 2rem;
  text-align: center;
  color: var(--status-error);
}

.page-error__icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.page-error__title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.page-error__description {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 1rem;
}

/* ===============================
   Spacing utilities
   =============================== */

.page-spacing--none {
  --page-section-spacing: 0;
}

.page-spacing--sm {
  --page-section-spacing: 1rem;
}

.page-spacing--md {
  --page-section-spacing: 2rem;
}

.page-spacing--lg {
  --page-section-spacing: 3rem;
}

.page-spacing--xl {
  --page-section-spacing: 4rem;
}

/* ===============================
   Responsive
   =============================== */

@media (max-width: 68.75rem) {
  /* Grilles passent en 1 colonne */
  .page-grid--2col,
  .page-grid--3col,
  .page-grid--4col {
    grid-template-columns: 1fr;
  }

  /* Layouts sidebar passent en 1 colonne */
  .page-layout--sidebar-left,
  .page-layout--sidebar-right {
    grid-template-columns: 1fr;
    grid-template-areas: "content" "sidebar";
  }

  .page-sidebar--sticky {
    position: static;
  }
}

@media (max-width: 48rem) {
  .container {
    padding: var(--container-padding-mobile);
  }

  .page-title {
    margin: 0 var(--container-padding-mobile);
    font-size: clamp(1.25rem, 5vw, 1.625rem);
    padding: 0.625rem 1rem;
  }

  .page-content {
    padding: var(--container-padding-mobile) 0;
  }

  .page-layout {
    padding: var(--container-padding-mobile);
    gap: 1.5rem;
  }

  .page-grid {
    gap: 1rem;
  }

  .page-empty,
  .page-error,
  .page-loading {
    min-height: 300px;
    padding: 2rem 1rem;
  }

  .page-empty__icon,
  .page-error__icon {
    font-size: 3rem;
  }
}

/* ===============================
   Accessibilité
   =============================== */

@media (prefers-reduced-motion: reduce) {
  .page-loading::before {
    animation: none;
    border: 4px solid var(--color-accent);
    border-top-color: transparent;
  }
}

/* Wrapper du tableau pour le scroll horizontal sur mobile */
.tiles-table-wrapper {
    overflow-x: auto;
}

/* ───────────────────────────────────────────────────────────────────────── */
/* 📄 4-layout/_impersonation.css (2.46 KB) */
/* ───────────────────────────────────────────────────────────────────────── */

/* ===============================
   Bannière d'impersonation
   =============================== */

.impersonation-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10001;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.impersonation-banner__content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.impersonation-banner__content i {
    font-size: 1.25rem;
}

.impersonation-banner__text {
    font-size: 1rem;
}

.impersonation-banner__text strong {
    font-weight: 700;
}

.impersonation-banner__separator {
    opacity: 0.5;
}

.impersonation-banner__original {
    opacity: 0.9;
    font-size: 0.9rem;
}

.impersonation-banner__stop {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.impersonation-banner__stop:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.impersonation-banner__stop:active {
    transform: translateY(0);
}

/* Décaler le header quand la bannière est active */
body.is-impersonating .site-header {
    margin-top: 5.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    body.is-impersonating .site-header {
        margin-top: 8.5rem; /* Plus d'espace sur mobile car la bannière prend 2 lignes */
    }
}

/* Responsive */
@media (max-width: 768px) {
    .impersonation-banner {
        flex-direction: column;
        padding: 0.75rem 1rem;
    }
    
    .impersonation-banner__content {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .impersonation-banner__separator {
        display: none;
    }
    
    .impersonation-banner__stop {
        width: 100%;
        justify-content: center;
    }
}

/* ───────────────────────────────────────────────────────────────────────── */
/* 📄 5-pages/_dashboard.css (8.04 KB) */
/* ───────────────────────────────────────────────────────────────────────── */

/* ===============================
   Page Dashboard
   Grille de tuiles/modules
   =============================== */

/* ===============================
   Grille de tuiles
   =============================== */

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 320px));  /* ← Largeur fixe max 320px */
  justify-content: center;
  gap: var(--tile-gap);
  width: 100%;
  padding: 1rem;
}

/* ===============================
   Tuile (module cliquable)
   =============================== */

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--tile-h);
  padding: 14px;
  background-color: var(--bg-card);
  background-image: var(--grad-tile);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  text-align: center;
  text-decoration: none;
  color: var(--color-secondary);
  overflow: hidden;
  cursor: pointer;
  
  /* Optimisations performances */
  will-change: transform, box-shadow, background-color;
  backface-visibility: hidden;
  transform: translateZ(0);
  
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease,
    background-color .18s ease;
  
  /* Animation d'apparition */
  animation: tile-fade-in 0.4s ease;
}

/* Animation progressive par index */
.tile:nth-child(1) { animation-delay: 0s; }
.tile:nth-child(2) { animation-delay: 0.05s; }
.tile:nth-child(3) { animation-delay: 0.1s; }
.tile:nth-child(4) { animation-delay: 0.15s; }
.tile:nth-child(5) { animation-delay: 0.2s; }
.tile:nth-child(6) { animation-delay: 0.25s; }
.tile:nth-child(7) { animation-delay: 0.3s; }
.tile:nth-child(8) { animation-delay: 0.35s; }

@keyframes tile-fade-in {
  from {
    opacity: 0;
    transform: scale(0.95) translateZ(0);
  }
  to {
    opacity: 1;
    transform: scale(1) translateZ(0);
  }
}

/* Effet de lueur décorative */
.tile::before {
  content: "";
  position: absolute;
  inset: -60% -60% auto auto;
  width: 160px;
  height: 160px;
  background: radial-gradient(closest-side, var(--tile-glow-color), transparent 70%);
  opacity: 0.7;
  transform: rotate(25deg);
  pointer-events: none;
}

/* ===============================
   États hover/focus
   =============================== */

.tile:hover,
.tile:focus-visible {
  transform: translateY(-2px);
  background-image: none;
  background-color: rgba(var(--color-accent-rgb), 0.20);
  border-color: rgba(var(--color-accent-rgb), 0.65);
  color: #fff;
  box-shadow:
    var(--shadow-strong),
    0 0 0 2px rgba(var(--color-accent-rgb), 0.40);
}

.tile:hover .tile__title,
.tile:focus-visible .tile__title {
  color: #fff;
}

.tile:hover .tile__icon svg,
.tile:focus-visible .tile__icon svg {
  stroke: #fff;
}

.tile:hover .tile__actions,
.tile:focus-visible .tile__actions {
  opacity: 1;
  pointer-events: auto;
}

.tile:focus,
.tile:active {
  outline: 0;
  background-color: var(--bg-card);
  border-color: rgba(var(--color-accent-rgb), .35);
  box-shadow:
    var(--shadow-strong),
    0 0 0 2px rgba(var(--color-accent-rgb), .18);
}

/* Supprime le tap highlight sur mobile */
.tile,
.tile * {
  -webkit-tap-highlight-color: transparent;
}

/* ===============================
   Éléments de la tuile
   =============================== */

/* Icône */
.tile__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin-bottom: 14px;
  transition: background-color .18s ease, border-color .18s ease;
}

.tile__icon img {
  width: 50px;
  height: 50px;
  display: block;
}

.tile__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-secondary);
  fill: none;
  stroke-width: 2;
}

/* Titre */
.tile__title {
  font-weight: 700;
  font-size: 20px;
  color: var(--text-main);
  margin: 0;
}

/* Badge de notification */
.tile__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  background: var(--status-error);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 12px;
  z-index: 2;
}

/* Actions au hover */
.tile__actions {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 2;
}

/* ===============================
   Variantes de tuile
   =============================== */

/* Compact (plus petit) */
.tile--compact {
  min-height: calc(var(--tile-h) * 0.75);
  padding: 10px;
}

.tile--compact .tile__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
}

.tile--compact .tile__icon img {
  width: 40px;
  height: 40px;
}

.tile--compact .tile__title {
  font-size: 16px;
}

/* Large (plus grand) */
.tile--large {
  min-height: calc(var(--tile-h) * 1.5);
  padding: 20px;
}

.tile--large .tile__icon {
  width: 70px;
  height: 70px;
  margin-bottom: 20px;
}

.tile--large .tile__icon img {
  width: 70px;
  height: 70px;
}

.tile--large .tile__title {
  font-size: 24px;
}

/* Featured (mise en avant) */
.tile--featured {
  border: 2px solid var(--color-accent);
  background: linear-gradient(135deg, rgba(var(--color-accent-rgb), 0.05), transparent);
  box-shadow: 
    var(--shadow-medium),
    0 0 0 1px rgba(var(--color-accent-rgb), 0.2);
}

.tile--featured .tile__badge {
  background: var(--color-accent);
}

/* ===============================
   États de tuile
   =============================== */

/* Désactivé */
.tile.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Chargement */
.tile.is-loading {
  position: relative;
  pointer-events: none;
}

.tile.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  border: 3px solid rgba(var(--color-accent-rgb), .2);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: tile-spin 0.8s linear infinite;
  z-index: 10;
}

@keyframes tile-spin {
  to {
    transform: rotate(360deg);
  }
}

.tile.is-loading .tile__icon,
.tile.is-loading .tile__title {
  opacity: 0.3;
}

/* Sélectionné */
.tile.is-selected {
  background-color: rgba(var(--color-accent-rgb), 0.15);
  border-color: var(--color-accent);
  box-shadow:
    var(--shadow-medium),
    0 0 0 2px rgba(var(--color-accent-rgb), 0.3);
}

.tile.is-selected .tile__title {
  color: var(--color-accent);
}

/* ===============================
   Responsive
   =============================== */

@media (max-width: 75rem) {
  .dashboard-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  }
}

@media (max-width: 56.25rem) {
  .dashboard-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: calc(var(--tile-gap) * 0.75);
  }
}

@media (max-width: 45rem) {
  .dashboard-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  }

  .tile {
    min-height: calc(var(--tile-h) * 0.9);
    padding: 12px;
  }

  .tile__icon {
    width: 45px;
    height: 45px;
    margin-bottom: 12px;
  }

  .tile__icon img {
    width: 45px;
    height: 45px;
  }

  .tile__title {
    font-size: 18px;
  }
}

@media (max-width: 35rem) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .tile {
    min-height: calc(var(--tile-h) * 0.8);
  }
}

/* ===============================
   Accessibilité
   =============================== */

@media (prefers-reduced-motion: reduce) {
  .tile,
  .tile__icon,
  .tile__actions {
    transition: none;
    animation: none;
  }

  .tile.is-loading::after {
    animation: none;
    border: 3px solid var(--color-accent);
    border-top-color: transparent;
  }
}

/* ───────────────────────────────────────────────────────────────────────── */
/* 📄 5-pages/_login.css (7.43 KB) */
/* ───────────────────────────────────────────────────────────────────────── */

/* ===============================
   Page Login
   Page de connexion scopée
   =============================== */

/* ===============================
   Container de la page
   =============================== */

.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: var(--bg-main);
  color: var(--text-on-primary);
}

/* ===============================
   Logo
   =============================== */

.login__logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
}

.login__logo img {
  display: block;
  width: min(800px, 90vw);
  height: auto;
}

/* ===============================
   Container du formulaire
   =============================== */

.login__container {
  width: 100%;
  max-width: 400px;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: 12px;
  box-shadow: var(--shadow-medium);
}

/* ===============================
   Titre
   =============================== */

.login__title {
  margin: 0 0 1.5rem;
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
}

/* ===============================
   Formulaire
   =============================== */

.login__form {
  display: flex;
  flex-direction: column;
}

/* Champ de formulaire */
.login__field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.login__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.login__input {
  width: 100%;
  padding: 0.625rem;
  border: 1px solid #AA1429;
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.login__input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.login__input:focus {
  border-color: #AA1429;  /* Bordure rouge */
  background: #fff;
  outline: none;  /* Retire le outline bleu par défaut */
  box-shadow: 0 0 0 3px rgba(170, 20, 41, 0.2);  /* Halo rouge */
}

/* États de validation */
.login__field.is-valid .login__input {
  border-color: var(--status-success);
  padding-right: 2.5rem;
}

.login__field.is-valid::after {
  content: "✓";
  position: absolute;
  right: 1rem;
  top: 2.5rem;
  color: var(--status-success);
  font-size: 1.25rem;
  font-weight: 700;
}

.login__field.is-invalid .login__input {
  border-color: var(--status-error);
  padding-right: 2.5rem;
}

.login__field.is-invalid::after {
  content: "✗";
  position: absolute;
  right: 1rem;
  top: 2.5rem;
  color: var(--status-error);
  font-size: 1.25rem;
  font-weight: 700;
}

/* Messages d'erreur */
.login__error {
  margin: 0.25rem 0 0;
  color: var(--status-error);
  font-size: 0.85rem;
  line-height: 1.4;
}

.login__error.is-valid {
  color: var(--status-success);
}

/* ===============================
   Checkbox "Se souvenir"
   =============================== */

.login__checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.25rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.login__checkbox input[type="checkbox"] {
  width: auto;
  cursor: pointer;
}

.login__checkbox label {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.875rem;
  cursor: pointer;
  user-select: none;
}

/* ===============================
   Bouton de soumission
   =============================== */

.login__submit {
  width: 100%;
  padding: 0.625rem;
  margin-top: 0.5rem;
  border: none;
  border-radius: 8px;
  background: #AA1429;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, transform .1s ease;
}

.login__submit:hover {
  background: #FF0000;
  transform: translateY(-1px);
}

.login__submit:active {
  transform: translateY(0);
}

.login__submit:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--color-accent-rgb), 0.3);
}

/* État de chargement */
.login__form.is-loading .login__submit {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.login__form.is-loading .login__submit::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 3px solid rgba(255, 255, 255, .3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: login-spin 0.6s linear infinite;
}

@keyframes login-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===============================
   Liens (mot de passe oublié, inscription)
   =============================== */

.login__links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  gap: 1rem;
}

.login__link {
  color: var(--text-primary);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color .2s ease;
}

.login__link:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.login__link--forgot {
  text-align: right;
}

.login__link--register {
  text-align: left;
}

/* ===============================
   Messages de succès (utiliser toast plutôt)
   =============================== */

.login__success {
  padding: 0.875rem 1rem;
  margin-bottom: 1rem;
  background: rgba(var(--status-success-rgb), 0.1);
  border: 1px solid var(--status-success);
  border-radius: 8px;
  color: var(--status-success);
  font-size: 0.875rem;
  text-align: center;
}

/* ===============================
   Variantes de thème
   =============================== */

/* Mode clair (fond blanc) */
.login-page--light {
  background: #f5f7fa;
}

.login-page--light .login__container {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.login-page--light .login__title,
.login-page--light .login__label,
.login-page--light .login__input,
.login-page--light .login__checkbox label,
.login-page--light .login__link {
  color: #1f2937;
}

.login-page--light .login__input {
  background: #fff;
  border-color: #d1d5db;
}

.login-page--light .login__input::placeholder {
  color: #9ca3af;
}

/* Mode sombre (par défaut) */
.login-page--dark {
  background: var(--bg-main);
}

/* ===============================
   Responsive
   =============================== */

@media (max-width: 48rem) {
  .login-page {
    padding: 1rem 0.75rem;
  }

  .login__logo {
    max-width: 95vw;
    margin-bottom: 1.5rem;
  }

  .login__container {
    padding: 1.5rem;
  }

  .login__title {
    font-size: 1.25rem;
  }

  .login__links {
    flex-direction: column;
    gap: 0.75rem;
  }

  .login__link--forgot,
  .login__link--register {
    text-align: center;
  }
}

@media (max-width: 30rem) {
  .login__container {
    padding: 1.25rem;
  }

  .login__input {
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
  }

  .login__submit {
    padding: 0.75rem 1.25rem;
  }
}

/* ===============================
   Accessibilité
   =============================== */

@media (prefers-reduced-motion: reduce) {
  .login__input,
  .login__submit,
  .login__link {
    transition: none;
  }

  .login__submit:hover {
    transform: none;
  }

  .login__form.is-loading .login__submit::after {
    animation: none;
    border: 3px solid #fff;
    border-top-color: transparent;
  }
}

/* ───────────────────────────────────────────────────────────────────────── */
/* 📄 5-pages/_modal-forms.css (2.62 KB) */
/* ───────────────────────────────────────────────────────────────────────── */

/* ===============================
   Layouts de formulaires pour modales
   Classes réutilisables pour structurer les forms
   =============================== */

/* ===============================
   Layouts de grille
   =============================== */

/* 2 colonnes */
.modal-form--2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}

/* 3 colonnes */
.modal-form--3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 16px;
}

/* Pleine largeur (1 colonne) */
.modal-form--full-width {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

/* Stacked (espacé verticalement) */
.modal-form--stacked {
  display: grid;
  gap: 1rem;
}

/* ===============================
   Éléments de formulaire
   =============================== */

/* Champ qui prend toute la largeur */
.modal-form__field--full {
  grid-column: 1 / -1;
}

/* Label avec en-tête flexible */
.modal-form__label-head {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.375rem;
}

/* Textarea avec hauteur minimum */
.modal-form__textarea {
  min-height: 120px;
  resize: vertical;
}

/* ===============================
   Layout Taxonomie (cas spécifique)
   =============================== */

.modal-taxo__block {
  margin-bottom: 1.125rem;
}

.modal-taxo__label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Ligne: select + boutons alignés */
.modal-taxo__row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  margin-top: 10px;
}

.modal-taxo__row select,
.modal-taxo__row .ui-select {
  flex: 1 1 auto;
  min-width: 260px;
}

.modal-taxo__row button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.modal-taxo__row button:first-of-type {
  margin-left: auto;
}

/* ===============================
   Variantes de spacing
   =============================== */

.modal-form--compact {
  gap: 0.5rem;
}

.modal-form--relaxed {
  gap: 1.5rem 2rem;
}

/* ===============================
   Responsive
   =============================== */

@media (max-width: 37.5rem) {
  /* Toutes les grilles passent en 1 colonne */
  .modal-form--2col,
  .modal-form--3col {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  /* Taxonomie row passe en colonne */
  .modal-taxo__row {
    flex-wrap: wrap;
  }

  .modal-taxo__row select,
  .modal-taxo__row .ui-select {
    flex-basis: 100%;
    min-width: 100%;
  }

  .modal-taxo__row button:first-of-type {
    margin-left: 0;
  }
}

/* ───────────────────────────────────────────────────────────────────────── */
/* 📄 5-pages/_tiles-legacy.css (0.79 KB) */
/* ───────────────────────────────────────────────────────────────────────── */

/* Texte de bienvenue */
.admin-welcome {
    color: var(--text-light);
    margin: 0 0 2rem 0;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Description dans les panels */
.panel-description {
    color: var(--text-light);
    margin: 0 0 1rem 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Actions dans les panels */
.panel__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Status badge */
.status-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 12px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.status-badge--warning {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

/* Bouton de retour avec espacement */
.btn-back {
    margin-top: 1rem;
}

/* ───────────────────────────────────────────────────────────────────────── */
/* 📄 5-pages/_tiles-reorder.css (4.85 KB) */
/* ───────────────────────────────────────────────────────────────────────── */

/* Info banner */
.reorder-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    color: #60a5fa;
    margin-bottom: 1rem;
}

.reorder-info i {
    font-size: 1.25rem;
}

/* Catégorie */
.reorder-category {
    margin-bottom: 1.5rem;
}

.reorder-category__title {
    color: var(--text-light);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

/* Grille de tuiles */
.reorder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 320px));
    justify-content: center;
    gap: 1.5rem;
    padding: 0.25rem;
}

/* Tuile réorganisable */
.reorder-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    cursor: move;
    transition: all 0.2s;
}

.reorder-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
    border-color: rgba(var(--color-accent-rgb), 0.5);
}

/* Poignée de drag */
.reorder-tile__drag-handle {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    color: var(--text-muted);
    font-size: 1.25rem;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.reorder-tile:hover .reorder-tile__drag-handle {
    opacity: 1;
    color: var(--color-accent);
}

/* Icône de la tuile */
.reorder-tile__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.reorder-tile__icon img {
    width: 60px;
    height: 60px;
}

.reorder-tile__icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--color-secondary);
    fill: none;
    stroke-width: 2;
}

/* Titre de la tuile */
.reorder-tile__title {
    font-weight: 700;
    font-size: 18px;
    color: var(--text-main);
    text-align: center;
}

/* État pendant le drag - Tuile fantôme (emplacement cible) */
.reorder-tile.sortable-ghost {
    opacity: 1 !important;
    background: rgba(59, 130, 246, 0.2) !important;
    border: 2px dashed #3b82f6 !important;
    box-shadow: inset 0 0 20px rgba(59, 130, 246, 0.3) !important;
}

.reorder-tile.sortable-ghost .reorder-tile__icon,
.reorder-tile.sortable-ghost .reorder-tile__title,
.reorder-tile.sortable-ghost .reorder-tile__drag-handle {
    opacity: 0.3;
}

/* Tuile en cours de déplacement */
.reorder-tile.sortable-drag {
    opacity: 0.9;
    transform: rotate(3deg) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    cursor: grabbing !important;
    z-index: 9999;
    border-color: var(--color-accent);
}

/* Actions */
.reorder-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

/* Responsive */
@media (max-width: 768px) {
    .reorder-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1rem;
    }
    
    .reorder-tile {
        min-height: 160px;
        padding: 1rem;
    }
}

/* Tuile inactive */
.reorder-tile--inactive {
    opacity: 0.5;
    background: var(--bg-secondary);
}

.reorder-tile--inactive:hover {
    opacity: 0.7;
}

.reorder-tile--inactive .reorder-tile__title {
    color: var(--text-light); /* ← Texte clair pour fond sombre */
}

.reorder-tile__status {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* État pendant le drag */
.reorder-tile.sortable-ghost {
    opacity: 0.2;
    background: rgba(var(--color-accent-rgb), 0.1);
    border: 2px dashed var(--color-accent);
}

.reorder-tile.sortable-drag {
    opacity: 0.9;
    transform: rotate(3deg) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    cursor: grabbing !important;
    z-index: 9999;
}

/* États de drag supplémentaires */
.sortable-chosen {
    opacity: 0.8;
}

/* Classe fallback pour le drag */
.sortable-fallback {
    opacity: 0.9 !important;
    transform: rotate(3deg) scale(1.05) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    cursor: grabbing !important;
    z-index: 9999 !important;
}

/* Mobile */
@media (max-width: 768px) {
    .reorder-tile {
        touch-action: none;
        -webkit-user-select: none;
        user-select: none;
    }
    .sortable-fallback {
        transform: rotate(2deg) scale(1.03) !important;
    }
}

/* ───────────────────────────────────────────────────────────────────────── */
/* 📄 5-pages/_users.css (2.98 KB) */
/* ───────────────────────────────────────────────────────────────────────── */

/* ===============================
   Page Gestion des Utilisateurs
   =============================== */

/* Container avec scroll interne */
.panel__body--scrollable {
    max-height: calc(100vh - 380px);
    overflow-y: auto;
    overflow-x: hidden;
}

/* Sticky header pour le tableau */
.tiles-table--sticky thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg-accent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Scrollbar personnalisée */
.panel__body--scrollable::-webkit-scrollbar {
    width: 8px;
}

.panel__body--scrollable::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
}

.panel__body--scrollable::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 4px;
}

.panel__body--scrollable::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

/* Inputs date avec icône blanche */
.date-input {
    color-scheme: dark;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    color: #fff;
}

.date-input::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(2);
    cursor: pointer;
    opacity: 0.9;
}

.date-input:hover::-webkit-calendar-picker-indicator {
    opacity: 1;
}

.date-input:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.8);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.25);
}

/* Séparateur de date */
#dateRangeSeparator {
    display: none;
    align-items: center;
    padding: 0 0.5rem;
}

/* Options de select avec badges (simulé avec emojis) */
.ui-select--with-badges option {
    padding-left: 1.5rem;
}

/* Alignement spécifique des colonnes utilisateurs */
.users-table th:nth-child(2),
.users-table td:nth-child(2) {
    text-align: left;
}

.users-table th:nth-child(5),
.users-table td:nth-child(5),
.users-table th:nth-child(6),
.users-table td:nth-child(6) {
    text-align: center;
}

/* Boutons de tri dans les en-têtes */
.sort-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
}

.sort-btn:hover {
    color: var(--color-accent);
}

.sort-icon {
    font-size: 0.75rem;
    opacity: 0.4;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.sort-btn:hover .sort-icon {
    opacity: 0.8;
}

/* États de tri */
.sort-btn.sort-asc .sort-icon {
    opacity: 1;
    color: var(--color-accent);
}

.sort-btn.sort-asc .sort-icon::before {
    content: "\f062"; /* fa-arrow-up */
}

.sort-btn.sort-desc .sort-icon {
    opacity: 1;
    color: var(--color-accent);
}

.sort-btn.sort-desc .sort-icon::before {
    content: "\f063"; /* fa-arrow-down */
}

/* ───────────────────────────────────────────────────────────────────────── */
/* 📄 5-pages/_logs.css (11.51 KB) */
/* ───────────────────────────────────────────────────────────────────────── */

/* ===============================
   Page Historique des actions
   =============================== */

/* ═══════════════════════════════
   HEADER & STATS
   ═══════════════════════════════ */

.panel__stats {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.stat-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.stat-badge i {
    font-size: 1rem;
    opacity: 0.7;
}

.stat-badge span {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-accent);
}

.stat-badge--success span {
    color: #22c55e;
}

/* ═══════════════════════════════
   TABLEAU
   ═══════════════════════════════ */

/* En-têtes collants */
.logs-table thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Colonne date */
.logs-table .log-date {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Colonne "Concerné" (3ème colonne) - CENTRÉE */
.logs-table tbody tr td:nth-child(3) {
    text-align: center;
    vertical-align: middle;
}

.logs-table tbody tr td:nth-child(3) > div {
    margin: 0 auto;
}

/* ═══════════════════════════════
   PREVIEW MINIATURE DE TUILE
   ═══════════════════════════════ */

.tile-preview-mini {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    padding: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

.tile-preview-mini__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-bottom: 0.25rem;
}

.tile-preview-mini__icon i {
    font-size: 1rem;
    color: var(--text-muted);
}

.tile-preview-mini__icon img,
.tile-preview-mini__icon svg {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.tile-preview-mini__title {
    font-weight: 500;
    font-size: 0.65rem;
    color: var(--text-main);
    text-align: center;
    word-break: break-word;
    line-height: 1.1;
    max-width: 100%;
}

/* Forcer la couleur des SVG dans la mini preview */
.tile-preview-mini__icon svg,
.tile-preview-mini__icon img[src$=".svg"],
.tile-preview-mini__icon img[src^="data:image/svg"] {
    filter: brightness(0) saturate(100%) invert(0%);
}

/* S'assurer que les PNG ne sont pas affectés */
.tile-preview-mini__icon img[src$=".png"],
.tile-preview-mini__icon img[src^="data:image/png"] {
    filter: none;
}

/* ═══════════════════════════════
   DÉTAILS DES LOGS
   ═══════════════════════════════ */

.log-details {
    line-height: 1.8;
    font-size: 0.9rem;
}

.log-details strong {
    color: var(--text-light);
    font-weight: 600;
}

.log-details code {
    padding: 0.125rem 0.375rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--color-accent);
}

.log-details .badge {
    vertical-align: middle;
}

.log-details .fa-arrow-right {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* ═══════════════════════════════
   COLONNE ACTIONS
   ═══════════════════════════════ */

.log-actions-cell {
    text-align: center;
    vertical-align: middle;
    padding: 0.5rem !important;
}

.log-actions-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

/* Bouton d'annulation */
.btn-log-undo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-log-undo:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.5);
    color: #f59e0b;
    transform: translateY(-1px);
}

.btn-log-undo i {
    font-size: 0.9rem;
}

/* Badge d'annulation */
.badge-log-undone {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-log-undone i {
    font-size: 0.85rem;
}

/* Bouton "Voir l'origine" */
.btn-goto-original {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 6px;
    color: var(--color-accent);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-goto-original:hover {
    background: rgba(102, 126, 234, 0.3);
    border-color: var(--color-accent);
    transform: translateX(2px);
}

.btn-goto-original i {
    font-size: 0.75rem;
}

/* ═══════════════════════════════
   ANIMATIONS
   ═══════════════════════════════ */

/* Animation de surbrillance pour le log ciblé */
@keyframes highlight-pulse {
    0% {
        background: rgba(102, 126, 234, 0.3);
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.5);
    }
    50% {
        background: rgba(102, 126, 234, 0.5);
        box-shadow: 0 0 0 8px rgba(102, 126, 234, 0);
    }
    100% {
        background: rgba(102, 126, 234, 0.3);
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

.log-row.log-highlight {
    animation: highlight-pulse 2s ease-in-out;
}

/* ═══════════════════════════════
   UTILITAIRES
   ═══════════════════════════════ */

.text-muted {
    color: var(--text-muted);
    opacity: 0.7;
}

/* ═══════════════════════════════
   RESPONSIVE
   ═══════════════════════════════ */

@media (max-width: 768px) {
    .panel__stats {
        flex-direction: column;
        width: 100%;
    }
    
    .stat-badge {
        width: 100%;
        justify-content: center;
    }
    
    .btn-log-undo {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
    
    .btn-log-undo span {
        display: none;
    }
}

/* ═══════════════════════════════
   FILTRES DE DATE
   ═══════════════════════════════ */

.filter-date-mode,
.date-input,
.date-range-separator {
    display: none;
}

.date-range-separator {
    color: var(--text-muted);
    font-weight: 600;
}

/* ═══════════════════════════════
   COLONNE "CONCERNÉ"
   ═══════════════════════════════ */

.col-concerned {
    text-align: center !important;
    vertical-align: middle !important;
}

.entity-wrapper {
    display: inline-flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.entity-details {
    text-align: center;
}

.entity-email {
    opacity: 0.7;
}

.entity-deleted,
.entity-unknown {
    opacity: 0.5;
    font-size: 0.875rem;
}

/* ═══════════════════════════════
   COLONNE ACTIONS
   ═══════════════════════════════ */

.col-actions {
    width: 120px;
}

.text-muted-action {
    font-size: 0.85rem;
    color: var(--text-muted);
    opacity: 0.7;
}

/* ═══════════════════════════════
   FIX STICKY HEADERS (Force absolue)
   ═══════════════════════════════ */

.panel__body--scrollable {
    position: relative;
    overflow: auto;
}

.logs-table.tiles-table thead th {
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    background: var(--bg-tertiary) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
}

/* ═══════════════════════════════
   FIX STICKY HEADERS DÉFINITIF
   ═══════════════════════════════ */

/* Panel body scrollable */
.panel__body--scrollable {
    position: relative;
    overflow-y: auto;
    overflow-x: auto;
    max-height: calc(100vh - 300px);
}

/* Table prend toute la largeur */
.logs-table.tiles-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

/* Headers sticky SANS décalage */
.logs-table.tiles-table thead th {
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    background: var(--bg-tertiary) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
}

/* Fix du décalage : border-box pour éviter les chevauchements */
.logs-table.tiles-table thead th {
    box-sizing: border-box;
    vertical-align: middle;
}

.logs-table tbody tr {
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════
   OVERRIDE PADDING PANEL BODY
   ═══════════════════════════════ */

/* Retirer uniquement le padding vertical */
.panel--full-width .panel__body--scrollable {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Compenser en ajoutant un peu d'espace en bas si nécessaire */
.logs-table {
    margin-bottom: 1rem;
}

/* ═══════════════════════════════
   FORCER SVG EN NOIR DANS LES LOGS
   ═══════════════════════════════ */

/* SVG dans les détails de logs */
.log-details img[src$=".svg"],
.log-details img[src^="data:image/svg"] {
    filter: brightness(0) saturate(100%) invert(0%);
}

/* SVG dans les previews de changement d'icône */
.log-details div[style*="border-radius: 8px"] img {
    filter: brightness(0) saturate(100%) invert(0%);
}

/* ───────────────────────────────────────────────────────────────────────── */
/* 📄 6-utils/_scrollbar.css (4.50 KB) */
/* ───────────────────────────────────────────────────────────────────────── */

/* ===============================
   Utils Scrollbar
   Scrollbars personnalisées modernes
   =============================== */

/**
 * SCROLLBARS PERSONNALISÉES
 * 
 * Design moderne avec scrollbars fines et arrondies.
 * Compatible Firefox (scrollbar-width) et Chromium (webkit).
 * 
 * Variables utilisées:
 * --scrollbar-size         : Largeur/hauteur de la scrollbar (8px)
 * --scrollbar-size-thick   : Largeur/hauteur scrollbar épaisse (12px)
 * --scrollbar-track        : Couleur de fond (rail)
 * --scrollbar-thumb        : Couleur du curseur (normal)
 * --scrollbar-thumb-hover  : Couleur du curseur (hover)
 * --scrollbar-thumb-active : Couleur du curseur (actif)
 */

/* ===============================
   FIREFOX
   =============================== */

:root,
body {
  scrollbar-width: thin; /* "auto" pour largeur native, "thin" pour fine, "none" pour masquer */
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

/* ===============================
   CHROME / EDGE / SAFARI (Webkit)
   =============================== */

/* Dimensions de la scrollbar */
::-webkit-scrollbar {
  width: var(--scrollbar-size);
  height: var(--scrollbar-size);
}

/* Rail de la scrollbar */
::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: 12px;
}

/* Curseur de la scrollbar */
::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-thumb);
  border-radius: 999px;
  border: 2px solid transparent; /* Espace intérieur pour l'effet arrondi */
  background-clip: padding-box;
  
  /* Transition fluide */
  transition: background-color 0.2s ease;
}

/* États interactifs du curseur */
::-webkit-scrollbar-thumb:hover {
  background-color: var(--scrollbar-thumb-hover);
}

::-webkit-scrollbar-thumb:active {
  background-color: var(--scrollbar-thumb-active);
}

/* Coin entre scrollbar verticale et horizontale */
::-webkit-scrollbar-corner {
  background: var(--scrollbar-track);
}

/* ===============================
   VARIANTES
   =============================== */

/* Scrollbar masquée (contenu toujours scrollable) */
.scrollbar-hidden {
  scrollbar-width: none; /* Firefox */
}

.scrollbar-hidden::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* Scrollbar native (comportement par défaut du navigateur) */
.scrollbar-auto {
  scrollbar-width: auto; /* Firefox */
}

.scrollbar-auto::-webkit-scrollbar {
  width: auto;
  height: auto;
}

.scrollbar-auto::-webkit-scrollbar-thumb {
  background-color: initial;
  border: 0;
}

/* Scrollbar épaisse (pour zones nécessitant plus de visibilité) */
.scrollbar-thick {
  scrollbar-width: auto; /* Firefox utilise sa taille par défaut */
}

.scrollbar-thick::-webkit-scrollbar {
  width: var(--scrollbar-size-thick);
  height: var(--scrollbar-size-thick);
}

.scrollbar-thick::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
}

/* Scrollbar toujours visible (pas de fade-out) */
.scrollbar-always-visible::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-thumb);
}

/* ===============================
   CONTEXTES SPÉCIFIQUES
   =============================== */

/* Scrollbar pour zones de code / pre */
pre::-webkit-scrollbar,
code::-webkit-scrollbar,
.code-block::-webkit-scrollbar {
  height: 10px;
}

pre::-webkit-scrollbar-thumb,
code::-webkit-scrollbar-thumb,
.code-block::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, .15);
}

/* Scrollbar pour modales */
.modal__body::-webkit-scrollbar {
  width: 6px;
}

/* Scrollbar pour tableaux */
.table-wrapper::-webkit-scrollbar {
  height: 6px;
}

/* ===============================
   IOS / MOBILE ENHANCEMENTS
   =============================== */

/**
 * Améliore le scroll momentum sur iOS
 * Note: iOS ne supporte pas les scrollbars personnalisées
 */
.scrollable,
.modal__body,
.table-wrapper {
  -webkit-overflow-scrolling: touch;
}

/* ===============================
   ACCESSIBILITÉ
   =============================== */

/**
 * Respect des préférences utilisateur pour les animations
 */
@media (prefers-reduced-motion: reduce) {
  ::-webkit-scrollbar-thumb {
    transition: none;
  }
}

/**
 * Mode contraste élevé
 */
@media (prefers-contrast: high) {
  ::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, .5);
    border: 1px solid rgba(255, 255, 255, .2);
  }

  ::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, .7);
  }
}

/*
 * ═══════════════════════════════════════════════════════════════════════════
 * BUILD SUMMARY
 * ═══════════════════════════════════════════════════════════════════════════
 * Files loaded  : 31 / 31
 * Total size    : 154.14 KB
 * Build date    : 2025-12-11 18:01:31
 * Environment   : production
 * ═══════════════════════════════════════════════════════════════════════════
 */
