html { --cp-adminbar: 0px; }
body.admin-bar { --cp-adminbar: 32px; }
@media screen and (max-width: 782px){
  body.admin-bar { --cp-adminbar: 46px; }
}

#cp-profile-btn{
  position: fixed;
  top: calc(14px + var(--cp-adminbar));
  right: 14px;
  z-index: 2147483647;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  user-select:none;
  font-size: 20px;
}
#cp-profile-btn:hover{
  transform: translateY(-1px);
}

#cp-modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 2147483646;
  display:none;
}
#cp-modal{
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: min(720px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 60px rgba(0,0,0,.22);
  z-index: 2147483647;
  display:none;
}

.cp-header{
  padding: 16px 18px;
  border-bottom: 1px solid #eee;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
}
.cp-title{
  font-size: 16px;
  font-weight: 700;
  margin:0;
}
.cp-close{
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  padding: 6px 10px;
  border-radius: 10px;
}
.cp-close:hover{
  background:#f3f3f3;
}

.cp-body{
  padding: 18px;
}
.cp-steps{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom: 14px;
}

.cp-step{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #e8e8e8;
  color:#444;
  background: transparent;
}
.cp-step.active{
  background:#111;
  color:#fff;
  border-color:#111;
}
.cp-step[disabled]{
  cursor:not-allowed;
  opacity:.45;
}

.cp-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
@media (max-width: 640px){
  .cp-grid{
    grid-template-columns: 1fr;
  }
}

.cp-field label{
  display:block;
  font-size: 12px;
  color:#333;
  margin-bottom:6px;
}
.cp-field input,
.cp-field select{
  width: 100%;
  border: 1px solid #dcdcdc;
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
}
.cp-field input:focus,
.cp-field select:focus{
  border-color: #111;
}

.cp-actions{
  display:flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}
.cp-actions .cp-btn{
  border:none;
  border-radius: 12px;
  padding: 10px 12px;
  cursor:pointer;
}
.cp-btn.primary{
  background:#111;
  color:#fff;
}
.cp-btn.secondary{
  background:#f1f1f1;
  color:#111;
}
.cp-btn.danger{
  background:#b00020;
  color:#fff;
}
.cp-btn:disabled{
  opacity: .55;
  cursor:not-allowed;
}

.cp-error{
  margin-top: 10px;
  color: #b00020;
  font-size: 13px;
}

.cp-note{
  font-size: 13px;
  color:#444;
  background:#fafafa;
  border:1px solid #eee;
  padding: 10px 12px;
  border-radius: 12px;
}

.cp-field input.cp-invalid,
.cp-field select.cp-invalid{
  border-color:#b00020 !important;
  box-shadow: 0 0 0 2px rgba(176,0,32,.15);
}

/* =========================
   Admin UI helpers
   ========================= */
.gc-badge{
  display:inline-block;
  padding:2px 8px;
  border-radius:999px;
  font-size:12px;
  border:1px solid #ddd;
  background:#fff;
}
.gc-badge.ok{
  border-color:#1e7e34;
  color:#1e7e34;
}
.gc-badge.warn{
  border-color:#b00020;
  color:#b00020;
}

.gc-card-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap:12px;
  max-width:1100px;
}
.gc-card{
  background:#fff;
  border:1px solid #ddd;
  border-radius:12px;
  padding:12px 14px;
  position:relative;
}
.gc-card h3{
  margin:0 0 6px 0;
  font-size:14px;
}
.gc-muted{
  color:#666;
  font-size:12px;
}
.gc-row{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  margin-top:10px;
}

.gc-list{
  margin-top:10px;
}
.gc-list .item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:8px 10px;
  border:1px solid #eee;
  border-radius:10px;
  background:#fff;
}
.gc-list .item + .item{
  margin-top:8px;
}

.gc-x{
  position:absolute;
  top:8px;
  right:8px;
  width:30px;
  height:30px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  border:2px solid #b00020;
  background:#ffe9ec;
  color:#b00020;
  font-weight:900;
  line-height:1;
  box-shadow: 0 6px 14px rgba(176,0,32,.20);
}
.gc-x:hover{
  background:#ffd6dc;
  border-color:#8c0019;
  color:#8c0019;
  transform: translateY(-1px);
}

.gc-x-inline{
  display:inline-flex;
  width:26px;
  height:26px;
  border-radius:10px;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  border:2px solid #b00020;
  background:#ffe9ec;
  color:#b00020;
  font-weight:900;
  line-height:1;
  box-shadow: 0 6px 14px rgba(176,0,32,.20);
}
.gc-x-inline:hover{
  background:#ffd6dc;
  border-color:#8c0019;
  color:#8c0019;
  transform: translateY(-1px);
}

/* =========================
   Dashboard Gestion Compte
   ========================= */
.gc-dash{
  max-width: none;
  width: 100%;
  margin-top: 14px;
}

#wpbody-content .wrap{
  max-width: none !important;
}

.gc-table-wrap{
  overflow-x: auto;
}
.gc-table-wrap table{
  min-width: 980px;
}

.gc-hero{
  display:grid;
  grid-template-columns: 1.5fr 1fr;
  gap:16px;
  margin-bottom:16px;
}
@media (max-width: 1100px){
  .gc-hero{
    grid-template-columns: 1fr;
  }
}

.gc-hero-main{
  border-radius: 22px;
  padding: 22px 24px;
  color: #fff;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.22), transparent 30%),
    linear-gradient(135deg, #0f172a, #1d4ed8 55%, #06b6d4);
  box-shadow: 0 18px 40px rgba(15,23,42,.18);
  min-height: 170px;
}
.gc-hero-main h2{
  margin:0 0 8px 0;
  font-size: 28px;
  line-height: 1.1;
  color:#fff;
}
.gc-hero-main p{
  margin:0;
  color: rgba(255,255,255,.9);
  font-size: 14px;
  max-width: 720px;
}
.gc-hero-stats{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-top:18px;
}
.gc-hero-pill{
  display:inline-flex;
  flex-direction:column;
  gap:4px;
  min-width: 120px;
  background: rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  padding: 12px 14px;
  backdrop-filter: blur(4px);
}
.gc-hero-pill strong{
  font-size: 24px;
  line-height:1;
  color:#fff;
}
.gc-hero-pill span{
  font-size: 12px;
  color: rgba(255,255,255,.88);
}

.gc-side-stack{
  display:grid;
  gap:16px;
}
.gc-alert-card,
.gc-action-card,
.gc-panel,
.gc-kpi{
  background:#fff;
  border:1px solid #e6eaf0;
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(15,23,42,.06);
}

.gc-alert-card{
  padding:18px 18px;
  background: linear-gradient(180deg, #fff7ed, #fff);
  border-color:#fed7aa;
}
.gc-alert-card.ok{
  background: linear-gradient(180deg, #ecfdf5, #fff);
  border-color:#bbf7d0;
}
.gc-alert-top{
  display:flex;
  align-items:center;
  gap:12px;
}
.gc-alert-icon{
  width:46px;
  height:46px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
  background:#fff;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.05);
}
.gc-alert-card h3{
  margin:0;
  font-size:16px;
}
.gc-alert-card p{
  margin:6px 0 0 0;
  color:#5b6472;
}

.gc-kpi-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap:16px;
  margin:18px 0;
}
@media (max-width: 1200px){
  .gc-kpi-grid{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}
@media (max-width: 640px){
  .gc-kpi-grid{
    grid-template-columns: 1fr;
  }
}

.gc-kpi{
  padding:18px;
  position:relative;
  overflow:hidden;
  min-height: 138px;
}
.gc-kpi:before{
  content:"";
  position:absolute;
  right:-18px;
  top:-18px;
  width:90px;
  height:90px;
  border-radius:50%;
  background: rgba(255,255,255,.26);
}
.gc-kpi.blue{
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-color:#bfdbfe;
}
.gc-kpi.green{
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border-color:#a7f3d0;
}
.gc-kpi.orange{
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border-color:#fdba74;
}
.gc-kpi.pink{
  background: linear-gradient(135deg, #fdf2f8, #fce7f3);
  border-color:#f9a8d4;
}
.gc-kpi.violet{
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  border-color:#c4b5fd;
}
.gc-kpi.slate{
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  border-color:#cbd5e1;
}

.gc-kpi-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.gc-kpi-title{
  font-size:13px;
  color:#334155;
  font-weight:700;
}
.gc-kpi-icon{
  width:42px;
  height:42px;
  border-radius:14px;
  background: rgba(255,255,255,.7);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:20px;
}
.gc-kpi-value{
  margin-top:16px;
  font-size:34px;
  line-height:1;
  font-weight:800;
  color:#0f172a;
}
.gc-kpi-sub{
  margin-top:8px;
  color:#475569;
  font-size:13px;
}

.gc-dashboard-grid{
  display:grid;
  grid-template-columns: 1.2fr 1fr;
  gap:16px;
  align-items:start;
}
@media (max-width: 1100px){
  .gc-dashboard-grid{
    grid-template-columns: 1fr;
  }
}

.gc-panel{
  padding:18px;
}
.gc-panel h2{
  margin:0 0 14px 0;
  font-size:18px;
}
.gc-panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}
.gc-panel-head p{
  margin:4px 0 0 0;
  color:#64748b;
  font-size:13px;
}

.gc-mini-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:12px;
}
@media (max-width: 640px){
  .gc-mini-grid{
    grid-template-columns: 1fr;
  }
}
.gc-mini{
  border:1px solid #e8edf3;
  border-radius:16px;
  padding:14px;
  background:#f8fafc;
}
.gc-mini strong{
  display:block;
  font-size:24px;
  color:#0f172a;
  line-height:1.1;
}
.gc-mini span{
  display:block;
  margin-top:6px;
  color:#64748b;
  font-size:13px;
}

.gc-quick-links{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:12px;
}
@media (max-width: 640px){
  .gc-quick-links{
    grid-template-columns: 1fr;
  }
}
.gc-quick{
  border:1px solid #e8edf3;
  border-radius:18px;
  padding:16px;
  text-decoration:none;
  color:inherit;
  background: linear-gradient(180deg, #fff, #f8fafc);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.gc-quick:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15,23,42,.08);
  border-color:#cbd5e1;
}
.gc-quick-top{
  display:flex;
  align-items:center;
  gap:12px;
}
.gc-quick-icon{
  width:44px;
  height:44px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
  background:#eef2ff;
}
.gc-quick h3{
  margin:0;
  font-size:15px;
}
.gc-quick p{
  margin:10px 0 0 0;
  color:#64748b;
  font-size:13px;
}

.gc-status-list{
  display:grid;
  gap:10px;
}
.gc-status-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border:1px solid #edf2f7;
  border-radius:14px;
  background:#fff;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.gc-status-left{
  display:flex;
  align-items:center;
  gap:10px;
}
.gc-dot{
  width:12px;
  height:12px;
  border-radius:999px;
  display:inline-block;
}
.gc-dot.green{ background:#16a34a; }
.gc-dot.orange{ background:#ea580c; }
.gc-dot.red{ background:#dc2626; }
.gc-dot.slate{ background:#64748b; }

.gc-big-number{
  font-size:22px;
  font-weight:800;
  color:#0f172a;
}

.gc-table-wrap{
  margin-top:16px;
  border:1px solid #e8edf3;
  border-radius:18px;
  overflow:hidden;
  background:#fff;
}
.gc-table-wrap table{
  margin:0;
  border:none;
}

.gc-chip{
  display:inline-block;
  padding:5px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  border:1px solid transparent;
}
.gc-chip.blue{
  background:#eff6ff;
  color:#1d4ed8;
  border-color:#bfdbfe;
}
.gc-chip.green{
  background:#ecfdf5;
  color:#15803d;
  border-color:#bbf7d0;
}
.gc-chip.orange{
  background:#fff7ed;
  color:#c2410c;
  border-color:#fdba74;
}
.gc-chip.pink{
  background:#fdf2f8;
  color:#be185d;
  border-color:#f9a8d4;
}
.gc-chip.slate{
  background:#f8fafc;
  color:#475569;
  border-color:#cbd5e1;
}
.gc-chip.red{
  background:#fef2f2;
  color:#b91c1c;
  border-color:#fecaca;
}

a.gc-kpi-link,
a.gc-quick,
a.gc-status-link{
  text-decoration:none !important;
  color: inherit !important;
}
a.gc-kpi-link{
  display:block;
}
a.gc-kpi-link .gc-kpi{
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
a.gc-kpi-link:hover .gc-kpi{
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15,23,42,.10);
  filter: saturate(1.05);
}
a.gc-status-link{
  display:block;
}
a.gc-status-link:hover .gc-status-item{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15,23,42,.08);
  border-color:#cbd5e1;
}

/* =========================
   ORGANIGRAMME HIERARCHIE MAIRIE
   ========================= */

.gc-org-chart-clean{
  margin-top:20px;
  padding:26px;
  border:1px solid #dbe3ee;
  border-radius:24px;
  background:linear-gradient(180deg,#f8fafc,#f1f5f9);
  overflow-x:auto;
}

.gc-org-head{
  display:flex;
  justify-content:center;
  margin-bottom:12px;
}

.gc-org-top-line{
  height:2px;
  background:#cbd5e1;
  margin:0 auto 18px auto;
  max-width:980px;
  border-radius:999px;
}

.gc-org-top-cats{
  display:grid !important;
  grid-template-columns:repeat(3, minmax(220px, 1fr)) !important;
  gap:18px;
  max-width:1200px;
  margin:0 auto 22px auto;
}

.gc-org-main-grid{
  display:grid !important;
  grid-template-columns:repeat(3, minmax(280px, 1fr)) !important;
  gap:18px;
  align-items:start;
  max-width:1200px;
  margin:0 auto;
}

.gc-org-group{
  border:1px solid #dbe3ee;
  background:#ffffff;
  border-radius:18px;
  padding:16px;
  box-shadow:0 10px 24px rgba(15,23,42,.05);
  min-width:0;
  position:relative;
}

.gc-org-group::before{
  content:"";
  position:absolute;
  left:16px;
  right:16px;
  top:44px;
  height:1px;
  background:#eef2f7;
}

.gc-org-group-title{
  position:relative;
  z-index:2;
  display:inline-block;
  font-size:12px;
  font-weight:900;
  color:#475569;
  text-transform:uppercase;
  letter-spacing:.05em;
  margin-bottom:14px;
  padding-right:10px;
  background:#fff;
}

.gc-org-stack{
  display:grid;
  gap:12px;
}

.gc-org-subgrid-3{
  display:grid !important;
  grid-template-columns:repeat(3, minmax(0, 1fr)) !important;
  gap:10px;
  margin-top:2px;
}

.gc-org-subgrid-4{
  display:grid !important;
  grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  gap:10px;
  margin-top:2px;
}

.gc-org-box{
  text-decoration:none !important;
  border-radius:14px;
  padding:12px 14px;
  min-height:56px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  font-weight:800;
  line-height:1.2;
  box-shadow:0 8px 18px rgba(15,23,42,.08);
  transition:transform .12s ease, box-shadow .12s ease, filter .12s ease, border-color .12s ease;
  width:100%;
  box-sizing:border-box;
  position:relative;
}

.gc-org-box:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 24px rgba(15,23,42,.12);
  filter:saturate(1.04);
}

.gc-org-box.is-active{
  outline:3px solid #111827;
  outline-offset:2px;
}

.gc-org-cat{
  background:linear-gradient(180deg,#2563eb,#1d4ed8);
  color:#fff;
  font-size:14px;
}

.gc-org-role{
  background:linear-gradient(180deg,#0f172a,#1e293b);
  color:#fff;
  font-size:14px;
}

.gc-org-role-maire{
  min-width:240px;
  max-width:420px;
  font-size:20px;
  padding:16px 18px;
}

.gc-org-top-cats .gc-org-box{
  min-height:54px;
}

.gc-org-group .gc-org-cat{
  box-shadow:0 8px 18px rgba(37,99,235,.18);
}

.gc-org-group .gc-org-role{
  box-shadow:0 8px 18px rgba(15,23,42,.16);
}

.gc-org-stack > .gc-org-box{
  min-height:58px;
}

.gc-org-subgrid-3 .gc-org-box,
.gc-org-subgrid-4 .gc-org-box{
  min-height:50px;
  font-size:13px;
  padding:10px 10px;
}

.gc-org-chart-clean .gc-org-top-cats > .gc-org-box::after{
  content:"";
  position:absolute;
  left:50%;
  top:-18px;
  transform:translateX(-50%);
  width:2px;
  height:12px;
  background:#cbd5e1;
  border-radius:999px;
}

.gc-org-group .gc-org-stack > .gc-org-box:first-child::before{
  content:"";
  position:absolute;
  left:50%;
  top:-16px;
  transform:translateX(-50%);
  width:2px;
  height:12px;
  background:#cbd5e1;
  border-radius:999px;
}

.gc-org-group .gc-org-subgrid-3,
.gc-org-group .gc-org-subgrid-4{
  position:relative;
}

.gc-org-group .gc-org-subgrid-3::before,
.gc-org-group .gc-org-subgrid-4::before{
  content:"";
  position:absolute;
  left:8%;
  right:8%;
  top:-8px;
  height:2px;
  background:#e2e8f0;
  border-radius:999px;
}

.gc-org-group .gc-org-subgrid-3 > .gc-org-box::before,
.gc-org-group .gc-org-subgrid-4 > .gc-org-box::before{
  content:"";
  position:absolute;
  left:50%;
  top:-10px;
  transform:translateX(-50%);
  width:2px;
  height:10px;
  background:#e2e8f0;
  border-radius:999px;
}

.gc-empty-state{
  padding:14px 16px;
  border:1px dashed #cbd5e1;
  border-radius:14px;
  background:#f8fafc;
  color:#475569;
  font-weight:600;
}

@media (max-width: 1200px){
  .gc-org-top-cats,
  .gc-org-main-grid{
    grid-template-columns:1fr !important;
  }

  .gc-org-subgrid-3{
    grid-template-columns:1fr !important;
  }

  .gc-org-subgrid-4{
    grid-template-columns:1fr 1fr !important;
  }

  .gc-org-chart-clean .gc-org-top-cats > .gc-org-box::after,
  .gc-org-group .gc-org-stack > .gc-org-box:first-child::before,
  .gc-org-group .gc-org-subgrid-3::before,
  .gc-org-group .gc-org-subgrid-4::before,
  .gc-org-group .gc-org-subgrid-3 > .gc-org-box::before,
  .gc-org-group .gc-org-subgrid-4 > .gc-org-box::before{
    display:none;
  }
}

@media (max-width: 640px){
  .gc-org-chart-clean{
    padding:14px;
  }

  .gc-org-subgrid-4{
    grid-template-columns:1fr !important;
  }

  .gc-org-role-maire{
    min-width:auto;
    width:100%;
    max-width:none;
    font-size:16px;
  }

  .gc-org-box{
    font-size:13px;
  }
}

/* =========================
   Détail hiérarchie (colonne droite)
   ========================= */

.gc-h-detail-head{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-bottom:16px;
}

.gc-h-detail-head h2{
  margin:0;
  font-size:24px;
  line-height:1.15;
  color:#0f172a;
}

.gc-h-detail-badge{
  display:inline-flex;
  align-self:flex-start;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  border:1px solid transparent;
}

.gc-h-detail-badge.role{
  background:#eff6ff;
  color:#1d4ed8;
  border-color:#bfdbfe;
}

.gc-h-detail-badge.category{
  background:#ecfdf5;
  color:#15803d;
  border-color:#bbf7d0;
}

.gc-h-detail-section + .gc-h-detail-section{
  margin-top:18px;
}

.gc-h-detail-section h3{
  margin:0 0 10px 0;
  font-size:15px;
  color:#0f172a;
}

.gc-h-role-list{
  display:grid;
  gap:12px;
}

.gc-h-role-card{
  border:1px solid #e8edf3;
  border-radius:16px;
  padding:12px 14px;
  background:#fff;
}

.gc-h-role-title{
  font-size:14px;
  font-weight:800;
  color:#0f172a;
}

.gc-h-role-slug{
  margin-top:4px;
  color:#64748b;
  font-size:12px;
}

.gc-h-role-slug code{
  font-size:12px;
}

.gc-h-user-list{
  margin:0;
  padding:0;
  list-style:none;
  display:grid;
  gap:10px;
}

.gc-h-user-list li{
  border:1px solid #e8edf3;
  border-radius:14px;
  background:#f8fafc;
  padding:10px 12px;
}

.gc-h-user-list strong{
  color:#0f172a;
  font-size:14px;
}

.gc-h-detail-section .gc-list{
  margin-top:0;
}

.gc-h-detail-section .gc-list .item{
  border:1px solid #e8edf3;
  border-radius:14px;
  background:#fff;
  padding:12px 14px;
}

.gc-h-detail-section .gc-list .item strong{
  color:#0f172a;
  font-size:14px;
}

.gc-h-detail-section a{
  font-weight:700;
  text-decoration:none;
}

.gc-h-detail-section a:hover{
  text-decoration:underline;
}

.gc-note{
  line-height:1.45;
}

.gc-empty-state{
  font-size:13px;
}

@media (max-width: 1100px){
  .gc-h-detail-head h2{
    font-size:20px;
  }
}

/* =========================
   Plus d'infos dans organigramme
   ========================= */

.gc-org-hint-block{
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid #eef2f7;
}

.gc-org-hint-title{
  font-size:12px;
  font-weight:800;
  color:#475569;
  margin-bottom:8px;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.gc-org-mini-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.gc-org-mini-tag{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  background:#eff6ff;
  border:1px solid #bfdbfe;
  color:#1d4ed8;
  font-size:12px;
  font-weight:700;
}

.gc-dashboard-switch-wrap{
  margin:18px 0 24px;
  padding:18px;
  border:1px solid #dbe7f3;
  border-radius:18px;
  background:linear-gradient(180deg,#f8fbff 0%,#eef5ff 100%);
  box-shadow:0 10px 24px rgba(15,23,42,.05);
  max-width:1100px;
}

.gc-dashboard-switch-head{
  margin-bottom:14px;
}

.gc-dashboard-switch-title{
  font-size:18px;
  font-weight:800;
  color:#0f172a;
  line-height:1.2;
  margin-bottom:4px;
}

.gc-dashboard-switch-subtitle{
  font-size:13px;
  color:#64748b;
  line-height:1.4;
}

.gc-dashboard-switch{
  display:grid;
  grid-template-columns:repeat(2,minmax(260px,1fr));
  gap:14px;
}

.gc-dashboard-switch-card{
  position:relative;
  display:flex;
  align-items:center;
  gap:14px;
  min-height:88px;
  padding:18px 18px 18px 18px;
  border:2px solid #cfdceb;
  border-radius:18px;
  background:#ffffff;
  text-decoration:none;
  color:#0f172a;
  box-shadow:0 8px 20px rgba(15,23,42,.06);
  transition:.18s ease;
}

.gc-dashboard-switch-card:hover{
  transform:translateY(-1px);
  border-color:#94a3b8;
  box-shadow:0 12px 26px rgba(15,23,42,.10);
}

.gc-dashboard-switch-card.is-active{
  border-color:#2563eb;
  background:linear-gradient(135deg,#dbeafe 0%,#eff6ff 45%,#ffffff 100%);
  box-shadow:0 14px 32px rgba(37,99,235,.18);
}

.gc-dashboard-switch-badge{
  position:absolute;
  top:10px;
  right:10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:54px;
  height:24px;
  padding:0 8px;
  border-radius:999px;
  background:#e2e8f0;
  color:#334155;
  font-size:11px;
  font-weight:700;
  line-height:1;
}

.gc-dashboard-switch-card.is-active .gc-dashboard-switch-badge{
  background:#2563eb;
  color:#fff;
}

.gc-dashboard-switch-icon{
  width:52px;
  height:52px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
  background:#f8fafc;
  flex:0 0 52px;
  box-shadow:inset 0 0 0 1px #e2e8f0;
}

.gc-dashboard-switch-card.is-active .gc-dashboard-switch-icon{
  background:#dbeafe;
  box-shadow:inset 0 0 0 1px #93c5fd;
}

.gc-dashboard-switch-text{
  display:flex;
  flex-direction:column;
  gap:5px;
}

.gc-dashboard-switch-text strong{
  font-size:17px;
  line-height:1.2;
  font-weight:800;
  color:#0f172a;
}

.gc-dashboard-switch-text small{
  color:#64748b;
  font-size:12px;
  line-height:1.4;
}

.gc-dashboard-switch-current{
  margin-top:14px;
  padding:10px 12px;
  border-radius:12px;
  background:#ffffff;
  border:1px dashed #bfd3ea;
  color:#334155;
  font-size:13px;
}

.gc-dashboard-switch-current strong{
  color:#0f172a;
}

@media (max-width: 782px){
  .gc-dashboard-switch{
    grid-template-columns:1fr;
  }
}

.gc-dashboard-switch-wrap{
  margin:18px 0 24px;
  padding:18px;
  border:1px solid #dbe7f3;
  border-radius:18px;
  background:linear-gradient(180deg,#f8fbff 0%,#eef5ff 100%);
  box-shadow:0 10px 24px rgba(15,23,42,.05);
  max-width:1100px;
}

.gc-dashboard-switch-head{
  margin-bottom:14px;
}

.gc-dashboard-switch-title{
  font-size:18px;
  font-weight:800;
  color:#0f172a;
  line-height:1.2;
  margin-bottom:4px;
}

.gc-dashboard-switch-subtitle{
  font-size:13px;
  color:#64748b;
  line-height:1.4;
}

.gc-dashboard-switch{
  display:grid;
  grid-template-columns:repeat(2,minmax(260px,1fr));
  gap:14px;
}

.gc-dashboard-switch-card{
  position:relative;
  display:flex;
  align-items:center;
  gap:14px;
  min-height:88px;
  padding:18px;
  border:2px solid #cfdceb;
  border-radius:18px;
  background:#ffffff;
  text-decoration:none !important;
  color:#0f172a !important;
  box-shadow:0 8px 20px rgba(15,23,42,.06);
  transition:.18s ease;
}

.gc-dashboard-switch-card:hover{
  transform:translateY(-1px);
  border-color:#94a3b8;
  box-shadow:0 12px 26px rgba(15,23,42,.10);
}

.gc-dashboard-switch-card.is-active{
  border-color:#2563eb;
  background:linear-gradient(135deg,#dbeafe 0%,#eff6ff 45%,#ffffff 100%);
  box-shadow:0 14px 32px rgba(37,99,235,.18);
}

.gc-dashboard-switch-badge{
  position:absolute;
  top:10px;
  right:10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:54px;
  height:24px;
  padding:0 8px;
  border-radius:999px;
  background:#e2e8f0;
  color:#334155;
  font-size:11px;
  font-weight:700;
  line-height:1;
}

.gc-dashboard-switch-card.is-active .gc-dashboard-switch-badge{
  background:#2563eb;
  color:#fff;
}

.gc-dashboard-switch-icon{
  width:52px;
  height:52px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
  background:#f8fafc;
  flex:0 0 52px;
  box-shadow:inset 0 0 0 1px #e2e8f0;
}

.gc-dashboard-switch-card.is-active .gc-dashboard-switch-icon{
  background:#dbeafe;
  box-shadow:inset 0 0 0 1px #93c5fd;
}

.gc-dashboard-switch-text{
  display:flex;
  flex-direction:column;
  gap:5px;
}

.gc-dashboard-switch-text strong{
  font-size:17px;
  line-height:1.2;
  font-weight:800;
  color:#0f172a;
}

.gc-dashboard-switch-text small{
  color:#64748b;
  font-size:12px;
  line-height:1.4;
}

.gc-dashboard-switch-current{
  margin-top:14px;
  padding:10px 12px;
  border-radius:12px;
  background:#ffffff;
  border:1px dashed #bfd3ea;
  color:#334155;
  font-size:13px;
}

.gc-dashboard-switch-current strong{
  color:#0f172a;
}

@media (max-width: 782px){
  .gc-dashboard-switch{
    grid-template-columns:1fr;
  }
}

.gc-quick-drawer{
  position:relative;
  overflow:hidden;
  transition:all .22s ease;
}

.gc-quick-drawer-head{
  margin-bottom:0 !important;
}

.gc-quick-drawer-body{
  max-height:0;
  opacity:0;
  overflow:hidden;
  transform:translateY(-6px);
  transition:max-height .25s ease, opacity .2s ease, transform .2s ease;
}

.gc-quick-drawer:hover .gc-quick-drawer-body,
.gc-quick-drawer:focus-within .gc-quick-drawer-body{
  max-height:800px;
  opacity:1;
  transform:translateY(0);
  margin-top:12px;
}

.gc-quick-drawer .gc-panel-head p{
  margin-bottom:0;
}

@media (max-width: 900px){
  .gc-quick-drawer-body{
    max-height:none;
    opacity:1;
    overflow:visible;
    transform:none;
    margin-top:12px;
  }
}