
/* AxiPerf palette (approx) */
:root{
  --ax-blue-900:#043165;
  --ax-blue-700:#0E6CB3;
  --ax-blue-500:#2B86D4;
  --ax-bg:#EDF2F8;
  --ax-white:#ffffff;
  --ax-text:#0b1a2b;
  --ax-muted:#6b7a90;
}

.axiperf-app{min-height:100vh;background:var(--ax-bg);}
html.axiperf-hide-theme-header header,
html.axiperf-hide-theme-header .header,
html.axiperf-hide-theme-header #header{display:none !important;}

.axiperf-layout{
  display:flex;
  min-height:100vh;
  width:100%;
}

.axiperf-sidebar{
  width:10%;
  background:linear-gradient(180deg,var(--ax-blue-700),var(--ax-blue-900));
  color:#fff;
  flex:0 0 auto;
  transition:width .2s ease;
  position:sticky;
  top:0;
  /*height:100vh;*/
  overflow:auto;
}

.axiperf-sidebar.is-collapsed{width:78px;}
.axiperf-brand{
  display:flex;align-items:center;gap:12px;
  padding:18px 16px;
  border-bottom:1px solid rgba(255,255,255,.12);
}
.axiperf-badge{
  width:38px;height:38px;border-radius:10px;
  background:rgba(255,255,255,.18);
  display:grid;place-items:center;
  font-weight:700;
}
.axiperf-brand strong{font-size:18px;letter-spacing:.2px;}

.axiperf-nav{padding:10px 8px;}
.axiperf-nav a{
  display:flex;align-items:center;gap:12px;
  padding:10px 12px;
  border-radius:10px;
  color:rgba(255,255,255,.92);
  text-decoration:none;
  font-weight:600;
}
.axiperf-nav a:hover{background:rgba(255,255,255,.10);}
.axiperf-nav .ax-ico{width:22px;display:inline-grid;place-items:center}

.axiperf-main{
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
  min-width:0;
}
.axiperf-topbar{
  background:var(--ax-white);
  height:64px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 18px;
  border-bottom:1px solid rgba(4,49,101,.08);
  position:sticky;
  top:0;
  z-index:20;
}
.axiperf-top-left{display:flex;align-items:center;gap:12px;}


.axiperf-burger {
  position: relative;
  padding: 6px 10px;          /* réduit la largeur */
  border: 1px solid #1e88e5;  /* contour bleu */
  border-radius: 6px;
  background: transparent;
  color: #1e88e5;             /* couleur du chevron */
}

/* Chevron bleu gauche/droite */
.axiperf-burger::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 2px solid #1e88e5;
  border-bottom: 2px solid #1e88e5;
  transform: rotate(135deg); /* < (menu ouvert) */
  transition: transform .2s ease;
  vertical-align: middle;
}

/* Menu replié */
.axiperf-burger.is-collapsed::after {
  transform: rotate(-45deg); /* > */
}


.axiperf-search{
  width:min(680px,48vw);
  border:1px solid rgba(4,49,101,.14);
  border-radius:12px;
  padding:10px 12px;
  outline:none;
}
.axiperf-top-right{display:flex;align-items:center;gap:14px;}
.axiperf-pill{
  display:inline-flex;align-items:center;gap:8px;
  border:1px solid rgba(4,49,101,.14);
  border-radius:999px;
  padding:8px 12px;
  text-decoration:none;
  color:var(--ax-text);
  background:#fff;
  font-weight:700;
}
.axiperf-notif{
  position:relative;
}
.axiperf-dot{
  position:absolute;top:6px;right:6px;
  width:10px;height:10px;border-radius:999px;
  background:#ff3b30;
}

/* content spacing */
.axiperf-content{
	/*
  padding:18px;
  width:100%;
  max-width:none;
	*/
}

/* Dashboard */
.axiperf-dashboard{display:flex;flex-direction:column;gap:16px;}
.axiperf-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
.axiperf-kpi{
  background:#fff;border-radius:16px;
  padding:14px 16px;
  border:1px solid rgba(4,49,101,.10);
}
.axiperf-kpi-label{color:var(--ax-muted);font-weight:700;font-size:13px;}
.axiperf-kpi-value{font-size:28px;font-weight:900;color:var(--ax-blue-900);margin-top:4px;}

.axiperf-panels{display:grid;grid-template-columns:2fr 1fr;gap:12px;}
.axiperf-card{
  background:#fff;border-radius:16px;
  padding:14px 16px;
  border:1px solid rgba(4,49,101,.10);
}
.axiperf-h3{margin:0 0 10px 0;font-weight:900;color:var(--ax-blue-900);}
.axiperf-h2{margin:0 0 8px 0;font-weight:900;color:var(--ax-blue-900);}
.axiperf-muted{color:var(--ax-muted);margin:0 0 14px 0;}
.axiperf-list{margin:0;padding-left:18px;color:var(--ax-text);}
.axiperf-shortcuts{display:flex;flex-wrap:wrap;gap:10px;}
.axiperf-btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:10px 12px;border-radius:12px;
  border:1px solid rgba(4,49,101,.14);
  text-decoration:none;font-weight:800;color:var(--ax-blue-900);
  background:#fff;
}
.axiperf-btn:hover{background:rgba(43,134,212,.08);}

.axiperf-chart-placeholder{
  position:relative;height:220px;border-radius:14px;
  background:linear-gradient(180deg, rgba(43,134,212,.12), rgba(255,255,255,0));
  border:1px dashed rgba(4,49,101,.14);
  overflow:hidden;
}
.axiperf-bars{
  position:absolute;left:14px;right:14px;bottom:14px;top:18px;
  display:grid;grid-template-columns:repeat(8,1fr);gap:10px;
  align-items:end;
}
.axiperf-bars span{
  display:block;border-radius:10px 10px 0 0;
  background:linear-gradient(180deg,var(--ax-blue-500),var(--ax-blue-700));
}
.axiperf-bars span:nth-child(1){height:22%}
.axiperf-bars span:nth-child(2){height:30%}
.axiperf-bars span:nth-child(3){height:38%}
.axiperf-bars span:nth-child(4){height:45%}
.axiperf-bars span:nth-child(5){height:54%}
.axiperf-bars span:nth-child(6){height:62%}
.axiperf-bars span:nth-child(7){height:74%}
.axiperf-bars span:nth-child(8){height:84%}
.axiperf-line{
  position:absolute;left:24px;right:24px;top:64px;height:4px;
  background:linear-gradient(90deg,var(--ax-blue-700),var(--ax-blue-500));
  transform:rotate(-12deg);
  border-radius:999px;
  box-shadow:0 8px 18px rgba(14,108,179,.25);
}

@media (max-width: 992px){
  .axiperf-kpis{grid-template-columns:1fr; }
  .axiperf-panels{grid-template-columns:1fr;}
  .axiperf-search{width:min(520px,52vw);}
}


/* --- AxiPerf: hide native Presta account menu in content (we already provide links in sidebar) --- */
.axiperf-app #content-wrapper > .row > .col-md-4.col-lg-3,
.axiperf-app .account-menu,
.axiperf-app .customer-link,
.axiperf-app .customer-link__logout {
  display: none !important;
}

/* Make right column full width when left account menu is hidden */
.axiperf-app #content-wrapper > .row > .col-md-8.col-lg-9 {
  flex: 0 0 100% !important;
  max-width: 100% !important;
}

/* Reduce extra paddings from theme wrappers */
.axiperf-app #content-wrapper.wrapper__content {
  padding-left: 0 !important;
  padding-right: 0 !important;
}


/* --- AxiPerf: hide theme footer on account layout and use custom footer --- */
html.axiperf-hide-theme-header #footer,
html.axiperf-hide-theme-header footer.footer,
html.axiperf-hide-theme-header .footer {
  display: none !important;
}

.axiperf-top-title{
  font-weight: 900;
  color: #1f2a44;
  padding-left: 10px;
}

.axiperf-footer{
  margin-top: 18px;
  padding: 14px 16px;
  border-top: 1px solid rgba(15, 23, 42, .08);
  background: #ffffff;
}

.axiperf-footer-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: rgba(31, 42, 68, .85);
}

.axiperf-footer-inner strong{
  color: #1f2a44;
}


/* --- AxiPerf: keep custom footer at bottom even on short pages --- */
.axiperf-layout{
  min-height: 100vh;
}

.axiperf-main{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.axiperf-content{
  flex: 1 1 auto;
  min-height: 0;
}

.axiperf-footer{
  margin-top: auto;
}


/* Modern SVG icons */
.ax-ico-svg{width:18px;height:18px;display:inline-block;vertical-align:-3px;margin-right:10px;}
.ax-ico{display:none;}


/* Header account dropdown */
.axiperf-account{position:relative;}
.axiperf-account-menu{display:none;position:absolute;right:0;top:calc(100% + 8px);min-width:220px;background:#fff;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,.12);padding:8px;z-index:9999;}
.axiperf-account.is-open .axiperf-account-menu{display:block;}
.axiperf-account-item{display:flex;align-items:center;padding:10px 12px;border-radius:10px;color:#0b3c91;text-decoration:none;font-weight:600;}
.axiperf-account-item:hover{background:rgba(30,136,229,.10);}
.axiperf-cart-badge,.axiperf-notif-badge{margin-left:6px;min-width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:800;border-radius:999px;background:#e53935;color:#fff;}
.axiperf-cart-badge{background:#1565c0;}
