/* ================================
   FONTS & BASE
================================ */
@font-face {
  font-family: 'Apex-Black';
  src: url('/assets/fonts/Apex-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'ApexBold';
  src: url('fonts/Apex-Bold.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
}
@font-face {
  font-family: 'ApexBlack';
  src: url('fonts/Apex-Black.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

body { font-family: 'SF Pro', 'SF Pro Text', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; }

/* Utilitaire */
[hidden]{ display:none !important; }

/* ================================
   NAVBAR (Apple-like) — MOBILE-FRIENDLY
   - Burger à gauche
   - Logo centré
   - Bouton Connexion/Compte toujours visible à droite (hors drawer)
   - Drawer blanc animé sous la barre
================================ */
.ap-nav{
  position:sticky; top:0; z-index:1040;
  height:60px;
  backdrop-filter:saturate(180%) blur(20px);
  background:rgba(255,255,255,.72);
  border-bottom:1px solid rgba(0,0,0,.06);
  font-family:"SF Pro Text","SF Pro Display",-apple-system,system-ui,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Montserrat",sans-serif;
}
.ap-nav .nav-inner{
  position:relative;
  max-width:1200px; margin:0 auto; height:60px;
  display:flex; align-items:center; justify-content:center; gap:24px;
}

/* Liens classiques (desktop) */
.ap-link{
  font-size:13px; line-height:1; color:#222; text-decoration:none;
  padding:8px 6px; border-radius:6px;
  transition:color .2s, background-color .2s;
}
.ap-link:hover{ color:#000; background:rgba(0,0,0,.06); }
.ap-links{ display:flex; align-items:center; gap:24px; }
.ap-links-left{ margin-right:auto; padding-left:44px; } /* espace pour burger */
.ap-links-right{ margin-left:auto; }

/* Logo centré */
.ap-logo{
  position:absolute; left:50%; top:50%; transform:translate(-50%, -50%);
  display:inline-flex; align-items:center; justify-content:center;
}
.ap-logo img{ display:block; height:40px; }

/* Burger (gauche) */
.ap-burger{
  position:absolute; left:8px; top:50%; transform:translateY(-50%);
  width:28px; height:28px; border-radius:8px; border:1px solid transparent;
  background:transparent; display:none; align-items:center; justify-content:center; padding:0;
  transition: background .2s ease, box-shadow .2s ease, border-color .2s ease;
  z-index:1110; /* au-dessus du drawer/backdrop */
}
.ap-burger span{
  position:absolute; width:18px; height:2px; background:#111; border-radius:2px;
  transition:transform .25s ease, opacity .2s ease, top .25s ease;
}
.ap-burger span:nth-child(1){ top:9px; }
.ap-burger span:nth-child(2){ top:13px; }
.ap-burger span:nth-child(3){ top:17px; }
/* Burger → Croix quand ouvert */
.ap-nav.is-open .ap-burger{
  background:#fff; border-color:#ddd; box-shadow:0 1px 6px rgba(0,0,0,.10);
}
.ap-nav.is-open .ap-burger span:nth-child(1){ top:13px; transform:rotate(45deg); }
.ap-nav.is-open .ap-burger span:nth-child(2){ opacity:0; }
.ap-nav.is-open .ap-burger span:nth-child(3){ top:13px; transform:rotate(-45deg); }

/* Bouton Auth mobile (permanent à droite) */
.ap-auth-cta{
  position:absolute; right:8px; top:50%; transform:translateY(-50%);
  display:none; /* visible seulement en mobile */
}

/* Drawer mobile (tiroir) sous la barre, blanc + animé */
.ap-drawer{
  position:fixed; left:0; top:44px;
  width:78%; max-width:320px; height:calc(100dvh - 44px);
  overflow:auto; background:#fff;
  transform:translateX(-102%); opacity:0;
  transition:transform .28s ease, opacity .28s ease;
  box-shadow:0 10px 40px rgba(0,0,0,.18);
  padding:16px 12px; z-index:1100;
}
.ap-backdrop{
  position:fixed; left:0; top:44px; width:100%; height:calc(100dvh - 44px);
  background:rgba(0,0,0,.25);
  opacity:0; transition:opacity .28s ease; z-index:1090;
}
.ap-nav.is-open .ap-drawer{ transform:translateX(0); opacity:1; }
.ap-nav.is-open .ap-backdrop{ opacity:1; }
/* Forcer l’affichage pendant l’anim si hidden */
.ap-nav.is-open .ap-backdrop[hidden],
.ap-nav.is-open .ap-drawer[hidden]{ display:block; }

/* Liens dans le drawer */
.ap-drawer-links{ display:flex; flex-direction:column; gap:4px; }
.ap-drawer-link{
  display:block; padding:12px 14px; border-radius:10px;
  color:#111; text-decoration:none; font-size:15px;
}
.ap-drawer-link:hover{ background:#f2f2f3; }

/* Dropdowns au-dessus du backdrop/drawer */
#authDropdown, #userMenu, .dropdown-menu{ z-index:1200; }
.dropdown-menu{ font-size:.9rem; }
.ap-drawer-link:hover, .dropdown-menu a:hover{ color:#ed5946; }

/* Responsive : on masque les liens classiques, on montre burger + auth-cta */
@media (max-width: 991px){
  .ap-burger{ display:inline-flex; }
  .ap-links{ display:none; }
  .ap-auth-cta{ display:block; }
}

/* ================================
   CAROUSEL / HERO OVERLAYS (tel quel)
================================ */
.carousel-wrapper { position: relative; }
.overlay-text {
  position: absolute; z-index: 2; width: 100%;
  color: white; text-shadow: 1px 1px 3px black;
  pointer-events: none; transition: all 0.4s ease;
}
.overlay-text h2, .overlay-text h4, .overlay-text p { margin: 0.2rem 0; }

.slide-0 #carouselOverlay { top: 10%; left: 5%; align-items: center; text-align: left; }
.slide-1 #carouselOverlay { top: 50%; left: 50%; transform: translate(-50%, -50%); align-items: center; text-align: center; }
.slide-2 #carouselOverlay { bottom: 10%; left: 5%; top: auto; align-items: flex-start; text-align: left; }

.carousel-item img { max-height: 700px; object-fit: contain; }

#carouselOverlay { transition: all 0.4s ease; }
.slide-0 #carouselOverlay { top: 10%; left: 5%; align-items: flex-start; text-align: left; }
.slide-1 #carouselOverlay { top: 50%; left: 50%; transform: translate(-50%, -50%); align-items: center; text-align: center; }
.slide-2 #carouselOverlay { bottom: 10%; left: 5%; top: auto; align-items: flex-start; text-align: left; }

.bg-rouge { background-color: #e74c3c !important; }
.bg-bleu  { background-color: #3498db !important; }
.bg-vert  { background-color: #2ecc71 !important; }
.bg-jaune { background-color: #f1c40f !important; }
.bg-noir  { background-color: #2c3e50 !important; }
.bg-blanc { background-color: #ecf0f1 !important; color: #000 !important; }

/* ================================
   BLOCS D’ACCUEIL / TEXTES
================================ */
.texte-perso h5,
.project-card h5,
.textx6 h5,
.textx1 h5,
.text-navpills h5,
.textcarousel h5{
  font-size:.9rem; font-weight:500; margin-top:20px; margin-bottom:3px;
  color:#000; text-transform:none !important;
}
.texte-perso p,
.project-card p,
.text-navpills p,
.textcarousel p{
  font-size:.9rem; font-weight:500; color:#767676;
}
.text-uppercase{ font-size:.8rem; font-weight:500; margin:0 0 .8rem; }
.fw-bold{ font-size:1.7rem; font-weight:600; margin:0 0 .5rem; }
.me-3{ font-size:.9rem; font-weight:500; margin:0; color:#000; text-decoration:none; }
.project-card{ transition: transform .3s ease-in-out; padding:0; text-align:center; }
.project-card:hover{ transform: scale(1.05); }
.btn-outline-dark:hover{ background:#000; color:#fff; }
h5{ text-transform:none !important; font-weight:inherit !important; }

/* ================================
   CARTE / APERÇU (configurateur)
================================ */
#card-preview{
  position:-webkit-sticky; position:sticky; top:4vh;
  background-color:#f0f0f0; padding:50px; text-align:center;
  border-color:#f0f0f0; border-radius:20px;
}
#card-image{ display:block !important; margin:0 auto; }
#card-texts p{ position:absolute; cursor:move; }
#color-overlay{
  position:absolute; top:0; left:50%; transform:translateX(-50%);
  max-width:60%; pointer-events:none; display:none;
}

.titre-personnalisation-carte h1{ margin-top:5px; font-size:24px; font-weight:700; line-height:1.15; }
.titre-personnalisation-carte h3{ margin-top:20px; font-size:16px; font-weight:500; line-height:1.15; }
.titre-personnalisation-carte h2{ margin-top:8px;  font-size:16px; font-weight:500; line-height:1.15; }
.titre-personnalisation-carte h5{ margin-top:0;   font-size:14px; font-weight:400; line-height:1.15; }

/* Labels configurateur */
#customCardForm label{
  margin-top:30px; font-size:16px; font-weight:500; line-height:1.15;
}
:root{ --color-button-size:40px; }
.color-button{ width:var(--color-button-size); height:var(--color-button-size); border:none; cursor:pointer; margin:5px; }

/* Responsives #card-image */
@media (max-width:575.98px){
  #card-image{ max-width:100%; border-radius:10px; }
  .textcarousel p{ margin-bottom:15px; }
}
@media (min-width:576px) and (max-width:767.98px){
  #card-image{ max-width:80%; border-radius:20px; }
  .textcarousel p{ margin-bottom:20px; }
}
@media (min-width:768px) and (max-width:991.98px){
  #card-image{ max-width:80%; border-radius:20px; }
  .textcarousel p{ margin-bottom:20px; }
}
@media (min-width:992px) and (max-width:1199.98px){
  #card-image{ max-width:70%; border-radius:20px; }
  .textcarousel p{ margin-bottom:50px; }
}
@media (min-width:1200px){
  #card-image{ max-width:53%; border-radius:20px; }
  .textcarousel p{ margin-bottom:50px; }
}
@media (min-width:1600px){
  #card-image{ max-width:45%; border-radius:20px; }
}

/* Text blocks divers */
.textx6 h5{ text-align:center; }
.textx1 h5{ text-align:left; }
.text-navpills h2{
  text-align:center; font-size:1.5rem; font-weight:700; margin-top:15px; margin-bottom:3px; color:#000; text-transform:none !important;
}

/* Champs du configurateur (labels) */
@media (max-width:575.98px){ #textFields label{ font-size:24px; } }
@media (min-width:576px) and (max-width:767.98px){ #textFields label{ font-size:24px; } }
@media (min-width:768px) and (max-width:991.98px){ #textFields label{ font-size:24px; } }
@media (min-width:992px) and (max-width:1199.98px){ #textFields label{ font-size:24px; } }
@media (min-width:1200px){ #textFields label{ font-size:24px; } }

/* ================================
   GALERIE (list_creations)
================================ */
.grid{
  display:grid; gap:24px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* 2 cartes par ligne sur mobile XS */
@media (max-width: 575.98px) {
  #likesGrid.grid,
  #generateGrid.grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px; /* un peu plus serré si tu veux */
  }
}

@media (max-width: 767.98px) {
  #likesGrid.grid,
  #generateGrid.grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px;
  }
}

.card-stage{
  width:100%; aspect-ratio:63/88; border-radius:12px; overflow:hidden;
  box-shadow:0 8px 24px rgba(0,0,0,.35); background:transparent;
}
.card-svg{ width:100%; height:100%; display:block; }
.meta{ font-size:.8rem; margin-top:.35rem; }

/* ================================
   TEXTES SVG
================================ */
.txt-title{
  font-family:'Apex-Black','Bebas Neue',system-ui,sans-serif;
  fill:#fff; letter-spacing:.3px;
}
.txt-sub{
  font-family:'Apex-Black','Montserrat',system-ui,sans-serif;
  font-weight:700; fill:#fff;
}
.txt-text{
  font-family:'Montserrat',system-ui,sans-serif;
  font-weight:800; fill:#fff;
}
/* Forcer Apex sur certains IDs */
#L_sub2, #L_sub3, #L_sub4, #L_sub5, #L_sub6,
#L_sub8, #L_sub13, #L_sub15, #L_sub20{
  font-family:'Apex-Black','Bebas Neue',system-ui,sans-serif !important;
  font-weight:900 !important; letter-spacing:.3px;
}


/* Helpers d’affichage */
.only-desktop { display: inline-flex; }
.only-mobile  { display: none; }

@media (max-width: 991.98px){
  .only-desktop { display: none !important; }
  .only-mobile  { display: inline-flex !important; }
  .ap-links     { display: none !important; }
}

/* un bloc actif a déjà .active (ou ta classe d’état) */
.stat-tile.active small,
.stat-block.active small{
  color:#fff !important;
}

/* liens du menu (base hors sidebar) */
.menu-item a{
  display:block;
  text-decoration: none !important;
}
.menu-item{
  color:#1d1d1f; text-decoration:none;
}
.menu-item:hover { text-decoration:none; }

/* Désactive tout fond/bloc hérités par .grid */
#likesGrid,
#generateGrid {
  background: transparent !important;
  height: auto !important;
  min-height: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  border: 0 !important;
}
#likesGrid::before, #likesGrid::after,
#generateGrid::before, #generateGrid::after {
  content: none !important;
  display: none !important;
}
#likesGrid.card-stage, #generateGrid.card-stage { background: transparent !important; }
#likesGrid .card-thumb,
#generateGrid .card-thumb { background: #0b0f16 !important; }
[data-pane="likes"] .pane-error,
[data-pane="likes"] .error,
[data-pane="likes"] .error-panel,
[data-pane="likes"] .alert,
[data-pane="likes"] .text-danger,
[data-pane="generated"] .pane-error,
[data-pane="generated"] .error,
[data-pane="generated"] .error-panel,
[data-pane="generated"] .alert,
[data-pane="generated"] .text-danger {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
#likesGrid, #generateGrid { background: transparent !important; position: static !important; z-index: auto !important; }

/* Fix overlay nav: ne capte pas les clics quand le menu est fermé */
.ap-backdrop{ pointer-events: none !important; }
.ap-nav.is-open .ap-backdrop{ pointer-events: auto !important; }


/* --- Layout latéral : md+ collapse, hover expand --- */
@media (min-width: 768px) {
  .row-full { display: flex; }

  .dash-side-wrap {
    --sbw-collapsed: 80px;
    --sbw-expanded:  190px;
  }

  .row-full > .dash-side-wrap {
    flex: 0 0 var(--sbw-collapsed);
    max-width: var(--sbw-collapsed);
    width: var(--sbw-collapsed);
    background: #F0F0F0;
    border-radius: 0 0px 0px 0;
    transition: width .2s ease, max-width .2s ease, flex-basis .2s ease;
    overflow: hidden;
    position: sticky; top: 60px; height: calc(100vh - 30px);
  }
  .row-full > .dash-side-wrap:hover {
    flex-basis: var(--sbw-expanded);
    max-width: var(--sbw-expanded);
    width: var(--sbw-expanded);
  }

  .row-full > .profile-content {
    flex: 1 1 auto;
    max-width: 100%;
    width: auto;
    min-width: 0;
  }

  .dash-side-wrap .row.align-items-center.g-0 .col-3 { width: 100%; flex: 0 0 auto; }
  .dash-side-wrap .row.align-items-center.g-0 .col-9 { display: none; }
  .dash-side-wrap:hover .row.align-items-center.g-0 .col-3 { width: 25%; }
  .dash-side-wrap:hover .row.align-items-center.g-0 .col-9 { display: block; width: 75%; }

  .dash-side-wrap .row.align-items-center.g-0 .col-9 span {
    opacity: 0; transition: opacity .15s ease;
    white-space: nowrap;
  }
  .dash-side-wrap:hover .row.align-items-center.g-0 .col-9 span {
    opacity: 1;
  }

  .dash-side-wrap .menu-ico,
  .dash-side-wrap img[alt][style*="width:20px"] { width: 20px; height: 20px; }
}

/* Empêche les marges de “remonter” et crée un contexte propre */
.pill-pane { display: flow-root; }
#pillContent .switch-bar { margin-top: 0; }

#statsRow .stat-tile { display: flex; flex-direction: column; height: 100%; }
#statsRow > [class^="col"] { display: flex; }

/* XS & SM : 4 tuiles sur une ligne, pictos only */
@media (max-width: 820px) {
  #statsRow {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between;
    align-items: stretch;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
  }
  #statsRow > [class*="col-"] {
    flex: 1 1 25%;
    max-width: 25%;
    display: flex;
    justify-content: center;
  }
  #statsRow .stat-tile {
    flex: 1 1 auto;
    text-align: center;
    padding: 12px 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
  }
  #statsRow .stat-title {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    margin-bottom: 0;
  }
  #statsRow .stat-title img {
    width: 26px; height: 26px; margin-bottom: 3px;
  }
  #statsRow .stat-title span,
  #statsRow .stat-subbars { display: none !important; }
}

/* Le parent des menus peut être relatif */
.ap-links-right { position: relative; }

/* Garde l’auth CTA absolument positionné à droite de la barre */
.ap-auth-cta {
  position: absolute !important;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: block;
}


/* =========================================
   XS : suppression des padding/marges latéraux
========================================= */
@media (max-width: 575.98px) {
  .profile-content.col-12.col-xl-10.py-4.py-0 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .mx-auto.px-3.px-sm-4.px-lg-3 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .container-xxl.my-4 {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
}


/* =========================================
   MOBILE ONLY — tracking Apex (HTML + SVG)
========================================= */
@media (hover: none) and (pointer: coarse) {
  :where(
    [style*="font-family:Apex"],
    [style*="font-family: 'Apex"],
    [style*='font-family:"Apex'],
    [style*="Apex-Black"],
    [style*="ApexBlack"],
    [style*="ApexBold"],
    .font-apex
  ) {
    letter-spacing: 0.045em !important;
    word-spacing: 0.02em !important;
    line-height: 1.05;
  }
  svg :is(text, tspan)[font-family*="Apex"],
  svg :is(text, tspan)[style*="font-family:Apex"],
  svg :is(text, tspan)[style*="Apex-Black"],
  svg .font-apex {
    letter-spacing: 0.06em !important;
  }
  svg [class*="txt-title"][font-family*="Apex"] { letter-spacing: 0.07em !important; }
  svg [class*="txt-sub"][font-family*="Apex"]   { letter-spacing: 0.05em !important; }
}

@font-face {
  font-family: 'Apex';
  src: url('/assets/fonts/Apex-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Apex';
  src: url('/assets/fonts/Apex-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* utilitaire */
.font-apex { font-family: 'Apex-Black','ApexBold','ApexBlack', system-ui, sans-serif !important; }
svg .txt-title,
svg .txt-sub { font-family: 'Apex-Black','ApexBold','ApexBlack', system-ui, sans-serif; }

@media (hover: none) and (pointer: coarse) {
  .font-apex { letter-spacing: 0.045em !important; word-spacing: 0.02em !important; line-height: 1.05; }
  svg .font-apex { letter-spacing: 0.06em !important; }
}

/* =========================================================
   >>> SIDEBAR PROFIL : THÈME NOIR + CENTRAGE + ÉTAT ACTIF
   (scopé à .dash-side-wrap pour éviter les effets de bord)
========================================================= */
.dash-side-wrap {
  background:#000;
  color:#fff;
  border-radius:12px;
}

/* équilibre padding G/D et centrage du contenu */
.dash-side-wrap > .col-11.mx-auto{
  padding-left:0 !important;
  padding-right:0 !important;
  margin-left:auto;
  margin-right:auto;
}

/* liens de menu (scopés sidebar) */
.dash-side-wrap .menu-item{
  display:block;
  color:#fff;
  background:transparent;
  border:none;
  text-decoration:none;
  transition:background .2s ease, color .2s ease, filter .2s ease;
}
.dash-side-wrap .menu-item:hover{
  background:rgba(255,255,255,.10);
  color:#fff;
  text-decoration:none;
}

/* icônes blanches par défaut (quel que soit le SVG source) */
.dash-side-wrap .menu-item .menu-ico{
  filter: brightness(0) invert(1);
  transition: filter .2s ease;
}

/* libellés blancs par défaut */
.dash-side-wrap .menu-item span{
  color:#fff;
}

/* état ACTIF : fond blanc + texte & icône noirs (inversion) */
.dash-side-wrap .menu-item.active{
  background:#fff;
  color:#000 !important;
}
.dash-side-wrap .menu-item.active span{
  color:#000 !important;
}
.dash-side-wrap .menu-item.active .menu-ico{
  filter: brightness(0) invert(0);
}

/* =========================================
   MODAL IG
========================================= */
.modal-ig { position:relative; overflow:hidden; }
.ig-left  { background:#FFFFFF; display:flex; align-items:center; justify-content:center; }
.ig-card-stage {
  display:flex;
  align-items:center;
  justify-content:center;
  height:80vh;
  background:#0b0f16;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 8px 24px rgba(0,0,0,.35);
}
.ig-card-stage svg {
  height:100%;
  width:auto;
  max-height:100%;
  max-width:100%;
  object-fit:contain;
}
.ig-right { max-height:80vh; }
.ig-avatar { width:40px; height:40px; border-radius:50%; object-fit:cover; border:1px solid #ddd; }
.ig-comments { min-height:200px; }
.ig-comments .item { border-bottom:1px solid #eee; padding:.5rem 0; }
.ig-comments .item:last-child { border-bottom:0; }
.ig-nav {
  position:absolute; top:50%; transform:translateY(-50%);
  width:42px; height:42px; border:0; border-radius:50%;
  background:rgba(0,0,0,.55); color:#fff; font-size:28px; line-height:1;
  display:flex; align-items:center; justify-content:center; z-index:5;
}
.ig-prev { left:10px; } .ig-next { right:10px; }
.ig-nav:hover { background:rgba(0,0,0,.75); }

@media (max-width: 991.98px){
  .ig-card-stage { max-height:60vh; aspect-ratio:auto; }
  .ig-nav { display:none; }
}


/* ================================
   Sidebar : inversion noir/blanc
   (sans changer les tailles)
================================ */

/* Fond de la colonne latérale en noir */
.dash-side-wrap {
  background: #000 !important;
}

/* État normal : fond transparent (sur fond noir), texte et icônes en blanc */
.dash-side-wrap .menu-item {
  background: transparent;
  color: #fff;
  text-decoration: none;
}

/* le libellé reste blanc (la taille est gérée inline: 13px) */
.dash-side-wrap .menu-item .fw-semibold {
  color: #fff;
}

/* Icônes par défaut : les SVG noirs deviennent blancs via invert */
.dash-side-wrap .menu-item .menu-ico {
  filter: invert(1) brightness(100%);
  transition: filter .2s ease, transform .2s ease;
}

/* Hover léger (optionnel, sans changer la taille) */
.dash-side-wrap .menu-item:hover {
  background: rgba(255,255,255,0.06);
}
.dash-side-wrap .menu-item:hover .menu-ico {
  transform: translateX(2px);
}

/* État actif : fond blanc, texte noir */
.dash-side-wrap .menu-item.active {
  background: #fff !important;
  color: #000 !important;
}
.dash-side-wrap .menu-item.active .fw-semibold {
  color: #000 !important;
}

/* Icône active : on veut du NOIR sur fond blanc.
   - Si l’icône active est un fichier *_blanc.svg (blanc), on l'inverse pour la rendre noire.
   - Sinon (icône déjà noire), on retire l’inversion. */
.dash-side-wrap .menu-item.active .menu-ico[src*="_blanc"] {
  filter: invert(1) brightness(100%) !important; /* blanc -> noir */
}
.dash-side-wrap .menu-item.active .menu-ico:not([src*="_blanc"]) {
  filter: none !important; /* conserve noir d’origine */
}

/* Focus clavier accessible */
.dash-side-wrap .menu-item:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Option : effleurer le padding du wrapper interne pour centrer visuellement */
.dash-side-wrap .col-11.mx-auto {
  padding-left: 0;
  padding-right: 0;
}

/* ================================
   Navbar User Profile Compact
================================ */
.user-profile-link {
  background:#fff; border-radius:12px; padding:5px 10px; text-decoration:none; color:inherit;
  transition:all .25s ease; display:flex; align-items:center; gap:10px;
  box-shadow:0 0 0 1px rgba(0,0,0,.08);
}
.user-profile-link:hover { background:#f8f8f8; transform:translateY(-1px); text-decoration:none; }
.user-avatar { width:38px; height:38px; border-radius:50%; object-fit:cover; border:1px solid rgba(0,0,0,.08); }
.user-info { line-height:1.1; }