/* =========================================
   Pret-Facile • CSS GLOBAL UNIFIÉ
   Thème clair / sombre via data-theme sur <html>
   + Logo rond avec image cliquable (médaillon)
========================================= */

/* =========================
   TOKENS GÉNÉRAUX
========================= */
:root{
  --radius:18px;
  --radius2:22px;

  --shadow-soft:0 10px 28px rgba(0,0,0,.08);
  --shadow-strong:0 18px 45px rgba(0,0,0,.55);

  --brand:#2563eb;
  --brand2:#1d4ed8;

  --danger:#b91c1c;
  --ok:#10b981;

  --sans:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}

/* =========================
   THÈME CLAIR
========================= */
:root,
:root[data-theme="light"]{
  --bg:#f3f4f6;
  --bg2:#e5e7eb;

  --card:#ffffff;
  --panel:#ffffff;
  --panel2:#f9fafb;

  --text:#0f172a;
  --muted:#6b7280;

  --line:#e5e7eb;
  --soft:#f9fafb;

  --chip-bg:rgba(15,23,42,.05);
  --chip-border:rgba(15,23,42,.08);

  --btn-bg:#111827;
  --btn-text:#f9fafb;

  --topbar:#020617;
}

/* =========================
   THÈME SOMBRE
========================= */
:root[data-theme="dark"]{
  --bg:#020617;
  --bg2:#020617;

  --card:rgba(15,23,42,.96);
  --panel:rgba(15,23,42,.96);
  --panel2:rgba(15,23,42,.92);

  --text:#e5e7eb;
  --muted:#9ca3af;

  --line:rgba(148,163,184,.45);
  --soft:rgba(148,163,184,.12);

  --chip-bg:rgba(15,23,42,.85);
  --chip-border:rgba(148,163,184,.45);

  --btn-bg:#f9fafb;
  --btn-text:#020617;

  --topbar:#020617;
}

/* =========================
   RESET & TYPO
========================= */
*,
*::before,
*::after{
  box-sizing:border-box;
}

html,body{
  margin:0;
  padding:0;
}

body{
  font-family:var(--sans);
  background:var(--bg);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
}

img{
  max-width:100%;
  height:auto;
  display:block;
}

a{
  color:inherit;
  text-decoration:none;
}

p{
  margin:0 0 .6rem;
}

h1,h2,h3,h4{
  margin:0 0 .35rem;
  font-weight:600;
  color:var(--text);
}

/* =========================
   BACKGROUND DASHBOARD / HOME
========================= */
.dashboard-bg{
  min-height:100vh;
  background:
    radial-gradient(circle at top left, rgba(59,130,246,.24), transparent 55%),
    radial-gradient(circle at bottom right, rgba(139,92,246,.26), transparent 55%),
    var(--bg);
}

/* =========================
   TOPBAR
========================= */
.topbar{
  background:var(--topbar);
  border-bottom:1px solid rgba(15,23,42,.65);
  box-shadow:0 10px 40px rgba(0,0,0,.45);
}

.topbar-inner{
  max-width:1280px;
  margin:0 auto;
  padding:14px 20px;
  display:flex;
  align-items:center;
  gap:18px;
}

/* --- BRAND + MÉDAILLON LOGO --- */
.brand{
  display:flex;
  align-items:center;
  gap:14px;
  color:#e5e7eb;
}

/* médaillon rond pour le logo */
.topbar .brand .logo{
  width:90px;
  height:90px;
  border-radius:999px;
  background:transparent;
  padding:0;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:var(--shadow-strong);
  flex-shrink:0;
}

/* image dans le médaillon */
.topbar .brand .logo img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}

/* texte à droite du logo */
.brand h1{
  font-size:1.15rem;
  font-weight:600;
  color:#e5e7eb;
}

.brand p{
  font-size:.8rem;
  color:#9ca3af;
}

/* Espaceur */
.spacer{
  flex:1;
}

/* actions à droite (mode sombre, email, déconnexion, etc.) */
.topbar-actions{
  display:flex;
  gap:10px;
  align-items:center;
}

/* =========================
   NAV SUPÉRIEURE (home-nav)
========================= */
.home-nav{
  max-width:1280px;
  margin:0 auto;
  padding:14px 20px 10px;
  display:flex;
  justify-content:center;
  gap:26px;
}

.home-nav a{
  font-size:.9rem;
  color:#e5e7eb;
  padding:4px 0;
  position:relative;
}

.home-nav a::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-2px;
  height:2px;
  border-radius:999px;
  background:transparent;
  transform:scaleX(0.3);
  opacity:0;
  transition:background .18s ease,opacity .18s ease,transform .18s ease;
}

.home-nav a:hover::after{
  background:#38bdf8;
  opacity:1;
  transform:scaleX(1);
}

/* =========================
   BOUTONS / CHIPS / PILLS
========================= */
.btn{
  border:none;
  border-radius:999px;
  padding:8px 16px;
  font-size:.85rem;
  font-weight:500;
  cursor:pointer;
  background:var(--btn-bg);
  color:var(--btn-text);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  box-shadow:0 4px 14px rgba(0,0,0,.25);
  transition:background .18s ease, transform .12s ease, box-shadow .18s ease, color .18s ease, border-color .18s ease;
  white-space:nowrap;
}

.btn:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 28px rgba(0,0,0,.3);
}

.btn:disabled{
  opacity:.55;
  cursor:not-allowed;
  box-shadow:none;
}

/* Variantes */
.btn.soft{
  background:transparent;
  color:var(--text);
  border:1px solid rgba(148,163,184,.45);
  box-shadow:none;
}

.btn.soft:hover{
  background:var(--soft);
}

.btn.primary{
  background:var(--brand);
  color:#f9fafb;
}

.btn.primary:hover{
  background:var(--brand2);
}

.btn.danger{
  background:var(--danger);
  color:#fee2e2;
}

.btn.ghost{
  background:transparent;
  color:var(--text);
  border:1px solid transparent;
  box-shadow:none;
}

.btn.ghost:hover{
  background:rgba(148,163,184,.12);
  border-color:rgba(148,163,184,.3);
}

.btn.small{
  padding:6px 10px;
  font-size:.78rem;
}

/* Rangée de boutons centrés (CTA, etc.) */
.btn-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  justify-content:center;
}

/* utilisé aussi sur les formulaires / login */
.loginActions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
}

/* Chip (email connecté, etc.) */
.chip{
  display:inline-flex;
  align-items:center;
  padding:4px 10px;
  border-radius:999px;
  font-size:.78rem;
  background:var(--chip-bg);
  border:1px solid var(--chip-border);
  color:var(--muted);
}

/* Pill (état) */
.pill{
  padding:4px 10px;
  border-radius:999px;
  font-size:.78rem;
  border:1px solid var(--chip-border);
  background:var(--chip-bg);
  color:var(--muted);
}

/* =========================
   LAYOUT GÉNÉRAL DES CARTES
   (utilisé notamment sur employee-dashboard)
========================= */
.dashWrap{
  max-width:1280px;
  margin:26px auto 40px;
  padding:0 16px 40px;
}

/* Grille :
   - colonne 1 = navCard (qui s'étire sur toute la hauteur)
   - colonne 2 = toutes les autres cartes du dashboard
*/
.dashGrid{
  display:grid;
  grid-template-columns:320px minmax(0,1fr);
  gap:20px;
  align-items:flex-start;
}

/* navCard : colonne gauche, toutes les lignes */
.dashGrid > .navCard{
  grid-column:1;
  grid-row:1 / -1;
}

/* toutes les autres cartes : colonne droite */
.dashGrid > .card:not(.navCard){
  grid-column:2;
}

/* Responsive : en dessous de 900px on repasse en 1 colonne empilée */
@media(max-width:900px){
  .dashGrid{
    grid-template-columns:1fr;
  }
  .dashGrid > .navCard,
  .dashGrid > .card:not(.navCard){
    grid-column:1;
    grid-row:auto;
  }
}

/* Cartes génériques */
.card{
  background:var(--card);
  border-radius:var(--radius);
  border:1px solid var(--line);
  box-shadow:var(--shadow-soft);
  padding:0;
  display:flex;
  flex-direction:column;
}

.card-h{
  padding:14px 16px 8px;
  border-bottom:1px solid rgba(148,163,184,.35);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.card-h h2{
  font-size:1rem;
}

.card-h .sub{
  font-size:.8rem;
  color:var(--muted);
}

.card-b{
  padding:14px 16px 16px;
}

/* Nav card gauche */
.navCard{
  padding:0;
}

.navCard .card-b{
  padding-top:10px;
}

/* =========================
   NAVIGATION LATÉRALE
========================= */
.nav{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.nav a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:8px 10px;
  border-radius:12px;
  font-size:.88rem;
  background:transparent;
  color:var(--text);
  border:1px solid transparent;
  transition:background .15s ease,border-color .15s ease,transform .12s ease;
}

.nav a:hover{
  background:var(--soft);
  border-color:rgba(148,163,184,.45);
  transform:translateY(-1px);
}

.nav .label{
  display:flex;
  align-items:center;
  gap:10px;
}

.nav .ico{
  width:32px;
  height:32px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(148,163,184,.12);
}

.nav .desc{
  font-size:.78rem;
  color:var(--muted);
}

.nav .right{
  font-size:1.1rem;
  color:var(--muted);
}

/* =========================
   TEXTE UTILITAIRE
========================= */
.small{ font-size:.78rem; }
.mini{ font-size:.72rem; }
.muted{ color:var(--muted); }
.error{ color:var(--danger); }
.ok{ color:var(--ok); }
.warn{ color:#f97316; }

/* =========================
   KPIs
========================= */
.kpis{
  display:grid;
  gap:12px;
}

.kpis-compact{
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
}

.kpi{
  border-radius:16px;
  padding:10px 12px;
  background:var(--panel);
  border:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
}

.kpi .title{
  font-size:.8rem;
  color:var(--muted);
}

.kpi .value{
  font-size:1.4rem;
  font-weight:600;
}

.kpi .hint{
  font-size:.75rem;
  color:var(--muted);
}

.kpi-tag{
  font-size:1.5rem;
}

/* =========================
   TABLEAU
========================= */
.dashTableWrap{
  width:100%;
  overflow:auto;
}

.dashTable{
  width:100%;
  border-collapse:collapse;
  font-size:.8rem;
}

.dashTable th,
.dashTable td{
  padding:8px 8px;
  border-bottom:1px solid var(--line);
  text-align:left;
}

.dashTable thead th{
  font-size:.78rem;
  font-weight:500;
  color:var(--muted);
}

.dashTable-small th,
.dashTable-small td{
  padding:6px 6px;
}

/* =========================
   FORMULAIRES GÉNÉRAUX
========================= */
input,
select,
textarea{
  font-family:var(--sans);
  font-size:.9rem;
  border-radius:10px;
  border:1px solid var(--line);
  background:var(--panel2);
  color:var(--text);
  padding:8px 10px;
  outline:none;
  transition:border-color .14s ease, box-shadow .14s ease, background .14s ease;
}

input:focus,
select:focus,
textarea:focus{
  border-color:var(--brand);
  box-shadow:0 0 0 1px rgba(37,99,235,.45);
}

/* Fix autofill Chrome en thème sombre */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill{
  -webkit-box-shadow:0 0 0 30px var(--panel2) inset !important;
  -webkit-text-fill-color:var(--text) !important;
}

/* Petits formulaires type login */
.loginForm{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:10px 14px;
}

/* =========================
   FORMULAIRE DE CONTACT • PAGE D'ACCUEIL
   - 2 colonnes : Nom / Prénom
   - Email sous Nom, Téléphone sous Prénom
========================= */
#contactForm{
  display:grid;
  grid-template-columns:repeat(2,minmax(220px,1fr));
  gap:12px 16px;
  align-items:flex-start;
}

/* Chaque bloc de champ (div direct dans le form) */
#contactForm > div{
  display:flex;
  flex-direction:column;
  gap:4px;
}

/* 1 = Nom, 2 = Prénom, 3 = Email, 4 = Téléphone */
#contactForm > div:nth-of-type(1),
#contactForm > div:nth-of-type(3){
  grid-column:1;
}

#contactForm > div:nth-of-type(2),
#contactForm > div:nth-of-type(4){
  grid-column:2;
}

/* À partir du 5e bloc (préférence, message, bouton), pleine largeur */
#contactForm > div:nth-of-type(n+5){
  grid-column:1 / -1;
}

/* Labels & champs contact */
#contactForm label{
  font-size:.82rem;
  color:var(--muted);
}

#contactForm input,
#contactForm textarea{
  width:100%;
  font-size:.9rem;
  border-radius:10px;
  border:1px solid var(--line);
  background:var(--panel2);
  color:var(--text);
  padding:8px 10px;
  outline:none;
  transition:border-color .14s ease, box-shadow .14s ease, background .14s ease;
}

#contactForm input:focus,
#contactForm textarea:focus{
  border-color:var(--brand);
  box-shadow:0 0 0 1px rgba(37,99,235,.45);
}

/* Zone message */
#contactForm textarea{
  min-height:130px;
  resize:vertical;
}

/* Préférence de contact (email / téléphone) */
#contactForm .contact-pref{
  display:flex;
  align-items:center;
  gap:18px;
  font-size:.84rem;
}

#contactForm .contact-pref label{
  font-size:.84rem;
  color:var(--text);
}

#contactForm .contact-pref .pref-options{
  display:flex;
  align-items:center;
  gap:14px;
}

#contactForm .contact-pref input[type="radio"]{
  width:auto;
  margin-right:4px;
}

/* Bloc bouton d'envoi */
#contactForm .contact-actions{
  display:flex;
  justify-content:flex-start;
  margin-top:4px;
}

/* Responsive : en dessous de 600px, 1 colonne */
@media(max-width:600px){
  #contactForm{
    grid-template-columns:1fr;
  }

  #contactForm > div:nth-of-type(1),
  #contactForm > div:nth-of-type(2),
  #contactForm > div:nth-of-type(3),
  #contactForm > div:nth-of-type(4){
    grid-column:1;
  }
}

/* =========================
   TOAST
========================= */
.toast{
  position:fixed;
  left:50%;
  bottom:30px;
  transform:translateX(-50%);
  padding:8px 14px;
  border-radius:999px;
  background:#111827;
  color:#f9fafb;
  font-size:.8rem;
  box-shadow:0 18px 45px rgba(0,0,0,.45);
  opacity:0;
  pointer-events:none;
  transition:opacity .18s ease, transform .18s ease;
  z-index:1000;
}

.toast.show{
  opacity:1;
  transform:translate(-50%, -4px);
}

/* =========================
   LAYOUT EMPLOYEE-MESSAGES (3 colonnes)
========================= */
.wrap{
  max-width:1280px;
  margin:26px auto 40px;
  padding:0 16px 40px;
}

.shell{
  background:var(--card);
  border-radius:var(--radius2);
  border:1px solid var(--line);
  box-shadow:var(--shadow-soft);
  display:grid;
  grid-template-columns:280px minmax(0,1.1fr) 310px;
  min-height:520px;
  overflow:hidden;
}

@media(max-width:1180px){
  .shell{
    grid-template-columns:260px minmax(0,1.1fr);
  }
  .right{
    display:none;
  }
}

@media(max-width:900px){
  .shell{
    grid-template-columns:1fr;
  }
  .left{
    border-right:none;
    border-bottom:1px solid var(--line);
  }
}

/* Colonnes */
.left,
.mid,
.right{
  background:var(--panel);
  display:flex;
  flex-direction:column;
}

/* Têtes colonnes */
.head{
  padding:14px 16px;
  border-bottom:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.hTitle{
  font-size:.95rem;
  font-weight:600;
}

.hSub{
  font-size:.78rem;
  color:var(--muted);
}

/* Corps colonnes */
.leftBody,
.midBody,
.rightBody{
  padding:12px 14px 16px;
  flex:1;
  overflow:auto;
}

/* Rows génériques */
.row{
  display:flex;
  gap:10px;
  align-items:center;
}

.row + .row{
  margin-top:8px;
}

/* Recherche */
.search{
  margin:10px 0 6px;
  display:flex;
  align-items:center;
  gap:6px;
  font-size:.8rem;
  color:var(--muted);
}

.search input{
  flex:1;
  font-size:.82rem;
}

/* Segmented buttons */
.seg{
  display:inline-flex;
  padding:2px;
  border-radius:999px;
  background:var(--soft);
  gap:2px;
}

.seg .btn{
  border-radius:999px;
  padding:4px 10px;
  font-size:.8rem;
  box-shadow:none;
  background:transparent;
  color:var(--muted);
}

.seg .btn.active{
  background:var(--card);
  color:var(--text);
  border:1px solid var(--line);
}

/* Liste conversations */
.list{
  margin-top:8px;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.cItem{
  padding:8px 9px;
  border-radius:12px;
  border:1px solid transparent;
  background:var(--panel2);
  cursor:pointer;
  transition:background .14s ease, border-color .14s ease, transform .12s ease;
}

.cItem:hover{
  background:var(--soft);
  transform:translateY(-1px);
}

.cItem.active{
  border-color:var(--brand);
  box-shadow:0 0 0 1px rgba(37,99,235,.5);
}

.cRow{
  display:flex;
  justify-content:space-between;
  gap:8px;
}

.cTitle{
  font-size:.88rem;
}

.cMeta{
  margin-top:2px;
  font-size:.76rem;
  color:var(--muted);
  display:flex;
  flex-direction:column;
  gap:2px;
}

.cBadges{
  display:flex;
  flex-direction:column;
  gap:4px;
  align-items:flex-end;
}

.badge{
  padding:2px 8px;
  border-radius:999px;
  font-size:.7rem;
  background:var(--soft);
  color:var(--muted);
}

.badge.unread{
  background:var(--brand);
  color:#f9fafb;
}

/* Top bar milieu */
.topBar{
  padding:10px 12px 8px;
  border-bottom:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  gap:10px;
}

.topLeft,
.topRight{
  display:flex;
  gap:8px;
}

/* Zone messages */
.midBody{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.emptyMid{
  margin:12px 0;
  text-align:center;
  font-size:.85rem;
  color:var(--muted);
}

.msgs{
  flex:1;
  min-height:220px;
  max-height:420px;
  padding:10px 8px;
  background:var(--panel2);
  border-radius:14px;
  border:1px solid var(--line);
  overflow:auto;
}

.composer{
  margin-top:8px;
  display:flex;
  gap:8px;
  align-items:flex-start;
}

.composer textarea{
  flex:1;
  min-height:60px;
  resize:vertical;
}

/* Message bubble */
.mRow{
  margin-bottom:8px;
  display:flex;
}

.mRow.me{
  justify-content:flex-end;
}

.bubble{
  max-width:78%;
  background:var(--card);
  border-radius:14px;
  padding:6px 9px;
  border:1px solid rgba(148,163,184,.45);
  box-shadow:0 8px 20px rgba(0,0,0,.12);
}

.mRow.me .bubble{
  background:var(--brand);
  color:#f9fafb;
  border-color:transparent;
}

.bTop{
  display:flex;
  justify-content:space-between;
  gap:6px;
  font-size:.72rem;
  margin-bottom:2px;
  opacity:.85;
}

.bWho{
  font-weight:500;
}

.bText{
  font-size:.82rem;
  white-space:pre-wrap;
}

/* =========================
   EMAIL PRO BLOCK
========================= */
.mailPro{
  margin-top:10px;
  padding:10px 10px 12px;
  border-radius:16px;
  background:var(--panel);
  border:1px solid var(--line);
}

.mailTop{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:8px;
}

.mailTitle{
  font-size:.9rem;
  font-weight:600;
}

.mailBody{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.mailPick{
  border-radius:12px;
  border:1px solid var(--line);
  background:var(--panel2);
  padding:8px;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.mailList{
  max-height:130px;
  overflow:auto;
  display:flex;
  flex-direction:column;
  gap:4px;
}

.mailEmp{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  padding:4px 4px;
  border-radius:10px;
}

.mailEmp:hover{
  background:var(--soft);
}

.mailEmpLeft{
  display:flex;
  align-items:center;
  gap:8px;
}

.mailAvatar{
  width:26px;
  height:26px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(148,163,184,.35);
  font-size:.78rem;
  font-weight:600;
  color:#020617;
}

:root[data-theme="dark"] .mailAvatar{
  color:#020617;
}

.mailEmpName{
  font-size:.8rem;
}

.mailEmpEmail{
  font-size:.72rem;
  color:var(--muted);
}

.mailChips{
  display:flex;
  flex-wrap:wrap;
  gap:4px;
}

.chip2{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:3px 8px;
  border-radius:999px;
  font-size:.72rem;
  background:var(--soft);
}

.chip2 button{
  border:none;
  background:transparent;
  cursor:pointer;
  font-size:.72rem;
}

/* =========================
   TÂCHES / KANBAN
========================= */
.tasksWrap{
  margin-top:10px;
  padding:10px 10px 12px;
  border-radius:16px;
  background:var(--panel);
  border:1px solid var(--line);
}

.tasksTop{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:8px;
}

.tasksTitle{
  font-size:.9rem;
  font-weight:600;
}

.tasksHint{
  font-size:.78rem;
  color:var(--muted);
}

.kanban{
  margin-top:6px;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}

@media(max-width:900px){
  .kanban{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:700px){
  .kanban{
    grid-template-columns:1fr;
  }
}

.kcol{
  background:var(--panel2);
  border-radius:14px;
  border:1px solid var(--line);
  padding:6px 6px 8px;
  display:flex;
  flex-direction:column;
  gap:4px;
}

.khead{
  font-size:.82rem;
  font-weight:600;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.kcount{
  font-size:.74rem;
  color:var(--muted);
}

.klist{
  margin-top:4px;
  display:flex;
  flex-direction:column;
  gap:6px;
}

/* task card */
.tcard{
  border-radius:10px;
  padding:6px 7px;
  border:1px solid var(--line);
  background:var(--card);
  cursor:grab;
  display:flex;
  flex-direction:column;
  gap:4px;
}

.tcard.dragging{
  opacity:.5;
}

.tcardTop{
  display:flex;
  justify-content:space-between;
  gap:6px;
}

.tcardTitle{
  font-size:.85rem;
  font-weight:500;
}

.tmeta{
  margin-top:2px;
  display:flex;
  flex-direction:column;
  gap:2px;
  font-size:.74rem;
  color:var(--muted);
}

.tbadges{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.tb{
  padding:2px 6px;
  border-radius:999px;
  font-size:.7rem;
  background:var(--soft);
}

.tb.high{
  background:rgba(248,113,113,.2);
  color:#b91c1c;
}

.tb.low{
  background:rgba(45,212,191,.15);
  color:#0f766e;
}

.tactions{
  display:flex;
  justify-content:flex-end;
  margin-top:2px;
}

.tbtn{
  border:none;
  background:transparent;
  font-size:.75rem;
  color:var(--brand);
  cursor:pointer;
}

/* colonne drop hover */
.klist.dropHover{
  outline:1px dashed var(--brand);
  outline-offset:2px;
}

/* =========================
   MODALE TÂCHE
========================= */
.tmodal{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(15,23,42,.65);
  z-index:900;
}

.tbox{
  width:min(640px,94vw);
  max-height:85vh;
  background:var(--card);
  border-radius:18px;
  border:1px solid var(--line);
  box-shadow:var(--shadow-strong);
  padding:14px 16px 12px;
  display:flex;
  flex-direction:column;
}

.ttop{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:6px;
}

.tname{
  font-size:.96rem;
  font-weight:600;
}

.tbody{
  overflow:auto;
  padding-top:4px;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.trow{
  display:flex;
  gap:8px;
  margin-top:4px;
}

.trowTop{
  margin-top:6px;
}

.tcol{
  flex:0 0 150px;
  display:flex;
  flex-direction:column;
  gap:3px;
}

.tcolLarge{
  flex:1;
  display:flex;
  flex-direction:column;
  gap:3px;
}

.trowFull{
  margin-top:8px;
  display:flex;
  flex-direction:column;
  gap:3px;
}

.trowActions{
  margin-top:10px;
  justify-content:flex-end;
}

.tbody label{
  font-size:.76rem;
  color:var(--muted);
}

.tbody input,
.tbody textarea,
.tbody select{
  font-size:.82rem;
}

.tHint{
  margin-top:2px;
}

.tmsg{
  margin-top:4px;
}

/* =========================
   MODALE PARTICIPANTS
========================= */
.modal{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(15,23,42,.65);
  z-index:900;
}

.modalBox{
  width:min(520px,95vw);
  max-height:80vh;
  background:var(--card);
  border-radius:18px;
  border:1px solid var(--line);
  box-shadow:var(--shadow-strong);
  padding:14px 16px 12px;
  display:flex;
  flex-direction:column;
}

.modalTop{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:6px;
}

.modalTitle{
  font-size:.95rem;
  font-weight:600;
}

.modalBody{
  overflow:auto;
  padding-top:4px;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.modalSection{
  margin-top:6px;
  display:flex;
  flex-direction:column;
  gap:4px;
}

.modalButtons{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

/* =========================
   CARDS COLONNE DROITE (admin)
========================= */
.right .card{
  margin-bottom:10px;
  padding:10px 12px 12px;
}

.cardHeaderRow{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  margin-bottom:4px;
}

.reqBox{
  margin-top:4px;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.reqItem{
  padding:8px 10px;
}

.reqTitle{
  font-size:.86rem;
  font-weight:600;
  margin-bottom:4px;
}

.reqInfo{
  margin-bottom:6px;
}

.reqButtons{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

/* =========================
   DIVERS
========================= */
.card-b-bottom{
  border-top:1px dashed var(--line);
}

/* survols de liens simples dans le texte */
a.link{
  text-decoration:underline;
  text-decoration-color:rgba(37,99,235,.6);
  text-decoration-thickness:1px;
}
a.link:hover{
  color:var(--brand);
}

/* Fin fichier */
