/*
Theme Name: Kaffrine - Incubateur Departemental EPC
Description: Theme du sous-site kaffrine.epc.sn (reseau Multisite Incubateurs EPC). Design issu de la maquette Maquette_Espace_Departemental_Kaffrine.html.
Author: EPC
Version: 1.0
*/

:root{
  --navy:#0F2038;
  --navy-2:#16304F;
  --orange:#E0792F;
  --orange-dim:#F0A868;
  --blue:#2E6A9E;
  --green:#3C8A57;
  --gold:#E7B23D;
  --cream:#FBF8F3;
  --ink:#16202B;
  --ink-soft:#5B6672;
  --line:#E6E1D6;
  --white:#FFFFFF;
  --radius:14px;
}
*{box-sizing:border-box; margin:0; padding:0;}
body{
  font-family:'Inter',sans-serif;
  background:var(--cream);
  color:var(--ink);
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,.display{ font-family:'Sora',sans-serif; }
.mono{ font-family:'IBM Plex Mono',monospace; letter-spacing:0.02em; }

/* dot cluster signature */
.dot-mark{ display:inline-flex; align-items:center; gap:5px; }
.dot-mark span{ width:6px; height:6px; border-radius:50%; display:inline-block; }
.dot-mark span:nth-child(1){ background:var(--orange); }
.dot-mark span:nth-child(2){ background:var(--gold); }
.dot-mark span:nth-child(3){ background:var(--blue); }

.eyebrow{
  font-family:'IBM Plex Mono',monospace;
  font-size:12px;
  letter-spacing:0.12em;
  text-transform:uppercase;
  display:flex; align-items:center; gap:8px;
}

/* ===== HEADER ===== */
header.site{
  background:var(--navy);
  color:#fff;
  padding:16px 32px;
  display:flex; align-items:center; justify-content:space-between;
}
.brand{ display:flex; align-items:center; gap:12px; }
.brand-mark{ position:relative; width:34px; height:34px; }
.brand-name{ font-weight:800; font-size:17px; letter-spacing:0.02em; }
.brand-sub{ font-size:11px; color:#9FB0C4; font-family:'IBM Plex Mono',monospace; }
.dept-pill{
  background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.18);
  padding:6px 14px; border-radius:999px; font-size:13px; color:#fff;
  display:flex; align-items:center; gap:6px; cursor:pointer;
}
nav.site-nav{ display:flex; gap:26px; }
nav.site-nav a{ color:#C9D2DB; text-decoration:none; font-size:14px; font-weight:500; }
nav.site-nav a:hover{ color:#fff; }
.header-right{ display:flex; align-items:center; gap:18px; }
.cta-btn{
  background:var(--orange); color:#191008; border:none; padding:10px 18px;
  border-radius:999px; font-weight:700; font-size:13.5px; cursor:pointer;
  font-family:'Inter',sans-serif;
}

/* ===== HERO ===== */
.hero{
  position:relative; background:radial-gradient(circle at 78% 25%, #1B3556 0%, var(--navy) 55%, #0B1728 100%);
  color:#fff; padding:88px 32px 96px; overflow:hidden;
}
.hero-inner{ max-width:1180px; margin:0 auto; position:relative; z-index:2; }
.hero .eyebrow{ color:var(--orange-dim); margin-bottom:18px; }
.hero h1{
  font-size:56px; line-height:1.05; font-weight:800; max-width:780px; letter-spacing:-0.01em;
}
.hero h1 em{ font-style:normal; color:var(--orange-dim); }
.hero p.lead{ margin-top:22px; max-width:560px; font-size:17px; line-height:1.6; color:#C9D5E2; }
.filiere-badge{
  margin-top:28px; display:inline-flex; align-items:center; gap:10px;
  background:rgba(231,178,61,0.12); border:1px solid rgba(231,178,61,0.4);
  padding:8px 16px; border-radius:999px; font-size:13px; color:var(--gold);
}
.hero-actions{ margin-top:36px; display:flex; gap:14px; }
.btn-ghost{
  background:transparent; border:1px solid rgba(255,255,255,0.3); color:#fff;
  padding:12px 22px; border-radius:999px; font-size:14px; cursor:pointer; font-family:'Inter',sans-serif;
}

/* radiant dot cluster canvas-ish, pure CSS/SVG */
.burst{ position:absolute; right:-40px; top:-40px; width:520px; height:520px; z-index:1; opacity:0.9; }

/* ===== STAT STRIP ===== */
.stats{
  max-width:1180px; margin:-46px auto 0; position:relative; z-index:5;
  background:#fff; border-radius:var(--radius); box-shadow:0 14px 40px rgba(15,32,56,0.14);
  display:grid; grid-template-columns:repeat(4,1fr); padding:26px 10px;
}
.stat{ text-align:center; padding:8px 12px; border-right:1px solid var(--line); }
.stat:last-child{ border-right:none; }
.stat .num{ font-family:'Sora',sans-serif; font-weight:800; font-size:30px; color:var(--navy); }
.stat .lbl{ font-size:12.5px; color:var(--ink-soft); margin-top:4px; }

/* ===== SECTIONS ===== */
section{ max-width:1180px; margin:0 auto; padding:76px 32px; }
.section-head{ display:flex; align-items:baseline; justify-content:space-between; margin-bottom:34px; }
.section-head h2{ font-size:28px; font-weight:700; }
.section-head a{ color:var(--blue); font-size:13.5px; text-decoration:none; font-weight:600; }

.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }

.news-card{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:22px; transition:transform .15s ease;
}
.news-card:hover{ transform:translateY(-3px); }
.news-tag{ font-family:'IBM Plex Mono',monospace; font-size:11px; color:var(--orange); text-transform:uppercase; }
.news-card h3{ font-size:16.5px; margin:10px 0 8px; line-height:1.35; }
.news-card p{ font-size:13.5px; color:var(--ink-soft); line-height:1.55; }
.news-date{ margin-top:14px; font-size:12px; color:#9AA3AC; }

.project-card{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden;
}
.project-top{ padding:22px 22px 0; }
.project-sector{ font-size:11px; font-family:'IBM Plex Mono',monospace; color:var(--blue); text-transform:uppercase; }
.project-card h3{ font-size:17px; margin:8px 0 6px; }
.project-card p{ font-size:13px; color:var(--ink-soft); line-height:1.5; }
.progress-wrap{ padding:18px 22px 22px; }
.progress-track{ height:7px; background:#EFEAE0; border-radius:999px; overflow:hidden; margin-top:10px; }
.progress-fill{ height:100%; background:linear-gradient(90deg,var(--orange),var(--gold)); border-radius:999px; }
.progress-meta{ display:flex; justify-content:space-between; margin-top:8px; font-size:12.5px; color:var(--ink-soft); }
.progress-meta strong{ color:var(--navy); font-family:'IBM Plex Mono',monospace; }

.spotlight{
  background:var(--navy-2); color:#fff; border-radius:20px; padding:52px; display:grid;
  grid-template-columns:1.1fr 0.9fr; gap:40px; align-items:center;
}
.spotlight h2{ font-size:26px; margin-bottom:14px; }
.spotlight p{ color:#C9D5E2; font-size:14.5px; line-height:1.6; }
.partner-chip{
  display:inline-block; background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.18);
  padding:5px 12px; border-radius:999px; font-size:12px; margin:4px 6px 0 0; color:#DCE4EC;
}
.spotlight-side{ background:rgba(255,255,255,0.05); border-radius:14px; padding:24px; }
.spotlight-side .row{ display:flex; justify-content:space-between; padding:10px 0; border-bottom:1px solid rgba(255,255,255,0.1); font-size:13.5px; }
.spotlight-side .row:last-child{ border-bottom:none; }
.spotlight-side .row span:last-child{ font-family:'IBM Plex Mono',monospace; color:var(--gold); }

footer.site{
  background:var(--navy); color:#9FB0C4; padding:40px 32px; text-align:center; font-size:12.5px;
}
footer.site .dept-links{ margin-top:14px; color:#6E7F93; }

/* ===================== ADMIN BACK-OFFICE ===================== */
.admin-wrap{ display:none; min-height:100vh; }
.admin-wrap.active{ display:flex; }
.admin-sidebar{
  width:230px; background:var(--navy); color:#fff; padding:26px 18px; flex-shrink:0;
}
.admin-sidebar .brand{ margin-bottom:34px; }
.admin-nav a{
  display:flex; align-items:center; gap:10px; color:#B7C4D2; text-decoration:none;
  font-size:13.5px; padding:10px 12px; border-radius:8px; margin-bottom:2px;
}
.admin-nav a.active, .admin-nav a:hover{ background:rgba(255,255,255,0.08); color:#fff; }
.admin-main{ flex:1; padding:30px 36px; background:#F5F2EC; }
.admin-topbar{ display:flex; justify-content:space-between; align-items:center; margin-bottom:26px; }
.admin-topbar h1{ font-size:22px; }
.admin-topbar .who{ font-size:13px; color:var(--ink-soft); display:flex; align-items:center; gap:10px; }
.avatar{ width:30px; height:30px; border-radius:50%; background:var(--orange); color:#fff; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; }

.kpi-row{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:28px; }
.kpi{ background:#fff; border:1px solid var(--line); border-radius:12px; padding:18px 20px; }
.kpi .eyebrow{ color:var(--ink-soft); margin-bottom:8px; }
.kpi .num{ font-family:'Sora',sans-serif; font-weight:800; font-size:26px; color:var(--navy); }
.kpi .delta{ font-size:11.5px; color:var(--green); margin-top:4px; font-family:'IBM Plex Mono',monospace; }

.panel{ background:#fff; border:1px solid var(--line); border-radius:12px; margin-bottom:22px; }
.panel-head{ padding:18px 22px; border-bottom:1px solid var(--line); display:flex; justify-content:space-between; align-items:center; }
.panel-head h3{ font-size:15.5px; }
.panel-head .count{ font-family:'IBM Plex Mono',monospace; font-size:12px; color:var(--orange); background:#FCEFE0; padding:3px 9px; border-radius:999px; }
table.admin-table{ width:100%; border-collapse:collapse; }
table.admin-table th{
  text-align:left; font-size:11px; text-transform:uppercase; letter-spacing:0.06em; color:var(--ink-soft);
  padding:12px 22px; border-bottom:1px solid var(--line); font-family:'IBM Plex Mono',monospace; font-weight:500;
}
table.admin-table td{ padding:14px 22px; border-bottom:1px solid #F0EEE7; font-size:13.5px; }
table.admin-table tr:last-child td{ border-bottom:none; }
.score-chip{ font-family:'IBM Plex Mono',monospace; font-size:12px; background:#EAF1F7; color:var(--blue); padding:3px 9px; border-radius:6px; }
.row-actions{ display:flex; gap:8px; }
.btn-approve{ background:var(--green); color:#fff; border:none; padding:7px 14px; border-radius:7px; font-size:12.5px; cursor:pointer; font-weight:600; }
.btn-decline{ background:#fff; color:var(--ink-soft); border:1px solid var(--line); padding:7px 14px; border-radius:7px; font-size:12.5px; cursor:pointer; }
.status-pill{ font-size:11.5px; padding:4px 10px; border-radius:999px; font-family:'IBM Plex Mono',monospace; }
.status-valide{ background:#E4F3E9; color:var(--green); }
.status-attente{ background:#FCEFE0; color:var(--orange); }

.compose{ padding:20px 22px; }
.compose input, .compose textarea{
  width:100%; border:1px solid var(--line); border-radius:8px; padding:11px 13px; font-family:'Inter',sans-serif;
  font-size:13.5px; margin-bottom:12px; background:#FBFAF7;
}
.compose textarea{ min-height:80px; resize:vertical; }
.publish-btn{ background:var(--navy); color:#fff; border:none; padding:10px 20px; border-radius:8px; font-size:13px; cursor:pointer; font-weight:600; }

.split-2{ display:grid; grid-template-columns:1.4fr 1fr; gap:20px; align-items:start; }

/* ===================== PORTEUR DE PROJET WORKSPACE ===================== */
.porteur-wrap{ display:none; }
.porteur-wrap.active{ display:block; background:#F5F2EC; min-height:100vh; }
.porteur-header{
  background:var(--navy); color:#fff; padding:22px 36px; display:flex; justify-content:space-between; align-items:center;
}
.porteur-header .who{ display:flex; align-items:center; gap:12px; font-size:13.5px; color:#C9D5E2; }
.porteur-tabs{
  display:flex; gap:6px; padding:0 36px; background:#fff; border-bottom:1px solid var(--line);
}
.p-tab{
  padding:16px 6px; margin-right:26px; font-size:13.5px; font-weight:600; color:var(--ink-soft);
  border-bottom:2px solid transparent; cursor:pointer; background:none; border-top:none; border-left:none; border-right:none;
  font-family:'Inter',sans-serif;
}
.p-tab.active{ color:var(--navy); border-bottom-color:var(--orange); }
.p-body{ padding:30px 36px; max-width:1100px; margin:0 auto; }
.p-sub{ display:none; }
.p-sub.active{ display:block; }

.module-grid{ display:grid; grid-template-columns:repeat(5,1fr); gap:16px; margin-top:22px; }
.module-card{ background:#fff; border:1px solid var(--line); border-radius:12px; padding:20px 16px; text-align:center; }
.module-card .m-icon{ font-size:24px; }
.module-card h4{ font-size:13.5px; margin:10px 0 6px; }
.module-status{ font-size:11px; padding:3px 9px; border-radius:999px; font-family:'IBM Plex Mono',monospace; display:inline-block; }
.m-done{ background:#E4F3E9; color:var(--green); }
.m-progress{ background:#FCEFE0; color:var(--orange); }
.m-todo{ background:#EDEDED; color:#8A8F94; }

.stepper{ display:flex; align-items:center; margin:22px 0 30px; }
.step-item{ display:flex; flex-direction:column; align-items:center; flex:1; position:relative; }
.step-circle{
  width:30px; height:30px; border-radius:50%; background:#EDEDED; color:#8A8F94; display:flex; align-items:center; justify-content:center;
  font-size:13px; font-weight:700; font-family:'IBM Plex Mono',monospace; z-index:2;
}
.step-item.done .step-circle{ background:var(--green); color:#fff; }
.step-item.current .step-circle{ background:var(--orange); color:#fff; }
.step-label{ font-size:11.5px; color:var(--ink-soft); margin-top:8px; text-align:center; }
.step-line{ position:absolute; top:15px; left:calc(-50% + 15px); width:100%; height:2px; background:#EDEDED; z-index:1; }
.step-item.done .step-line, .step-item.current .step-line{ background:var(--green); }
.step-item:first-child .step-line{ display:none; }

.checklist-item{
  display:flex; align-items:center; gap:12px; padding:14px 18px; border:1px solid var(--line); border-radius:10px;
  background:#fff; margin-bottom:10px; cursor:pointer;
}
.checklist-item input{ width:18px; height:18px; accent-color:var(--green); }
.checklist-item .ci-text{ font-size:13.5px; }
.checklist-item .ci-text small{ display:block; color:var(--ink-soft); font-size:11.5px; margin-top:2px; }
.checklist-item.checked .ci-text{ text-decoration:line-through; color:#9AA3AC; }

.form-row{ display:grid; grid-template-columns:1fr 1fr 1fr; gap:14px; margin-top:18px; }
.field label{ display:block; font-size:12px; color:var(--ink-soft); margin-bottom:6px; font-weight:600; }
.field select, .field input{
  width:100%; border:1px solid var(--line); border-radius:8px; padding:11px 12px; font-family:'Inter',sans-serif; font-size:13.5px; background:#fff;
}
.diaspora-check{ display:flex; align-items:center; gap:8px; margin-top:16px; font-size:13px; color:var(--ink-soft); }
.orient-btn{ margin-top:20px; background:var(--orange); color:#191008; border:none; padding:12px 24px; border-radius:999px; font-weight:700; font-size:13.5px; cursor:pointer; }

.reco-card{
  background:#fff; border:1px solid var(--line); border-left:4px solid var(--orange); border-radius:10px; padding:16px 20px; margin-bottom:12px;
}
.reco-card h4{ font-size:14.5px; margin-bottom:4px; }
.reco-card .reco-type{ font-size:11px; font-family:'IBM Plex Mono',monospace; color:var(--blue); text-transform:uppercase; margin-bottom:6px; }
.reco-card p{ font-size:12.5px; color:var(--ink-soft); }
.reco-actions{ margin-top:10px; }
.reco-actions button{ background:var(--navy); color:#fff; border:none; padding:7px 14px; border-radius:7px; font-size:12px; cursor:pointer; }

.fin-tabs{ display:flex; gap:8px; margin-bottom:20px; }
.fin-tab{ padding:8px 16px; border-radius:999px; border:1px solid var(--line); background:#fff; font-size:12.5px; cursor:pointer; font-family:'Inter',sans-serif; }
.fin-tab.active{ background:var(--navy); color:#fff; border-color:var(--navy); }
.fin-panel{ display:none; }
.fin-panel.active{ display:block; }

.partner-note{
  background:#FFF6E9; border:1px solid #F0D9A6; border-radius:10px; padding:14px 18px; font-size:12.5px; color:#8A6114; margin-top:18px;
}

@media (max-width: 980px){
  .module-grid{ grid-template-columns:repeat(2,1fr); }
  .form-row{ grid-template-columns:1fr; }
  .hero h1{ font-size:38px; }
  .stats{ grid-template-columns:repeat(2,1fr); }
  .grid-3{ grid-template-columns:1fr; }
  .spotlight{ grid-template-columns:1fr; }
  nav.site-nav{ display:none; }
  .split-2{ grid-template-columns:1fr; }
  .kpi-row{ grid-template-columns:repeat(2,1fr); }
  .admin-sidebar{ width:70px; }
  .admin-sidebar .label-text{ display:none; }
}
