/* Déclarations @font-face pour toutes les variantes */

@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/Gilroy-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/Gilroy-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/Gilroy-Semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/Gilroy-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/Gilroy-Thin.woff2') format('woff2');
  font-weight: 100;
  font-style: normal;
}

:root {
  --brand-blue: #476AFF;
  --brand-black: #13100D;
  --brand-lightblack: #7d7d7d;

  --brand-white: #FFFFFF;
  --brand-greylight: #FAFAFA;
  --brand-red: #fb7772;
  --brand-green: #47bf47;
  --brand-blue-light: #6B86FF;

  

  --text-color: #333;
}



.main-content {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

@media (min-width: 768px) {
  .main-content { margin-left: 250px; }
}

@media (max-width: 767.98px) {
  .main-content { margin-left: 0; }
}


#sidebar {
  background-color: var(--brand-greylight) !important;
}

/* Liens inactifs */
#sidebar .nav-pills .nav-link {
  background-color: transparent !important; /* pas de fond */
  color: var(--brand-lightblack) !important; /* bleu clair */
  font-weight: normal;
}
#sidebar .nav-link i {
    display: inline-block;   /* nécessaire pour margin-right */
  font-size: 1.1rem;          /* taille de l’icône */
  vertical-align: text-bottom;     /* centre l’icône sur le texte */
  margin-right: 2px;
  margin-bottom: 0px;
  transition: 0.2s ease;      /* animation douce */
}

#sidebar .nav-pills .nav-link.active {
  background-color: transparent !important; /* plus de fond */
  color: #476AFF !important;                /* texte bleu */
  font-weight: bold;
}

#sidebar .nav-item-label {
  color: var(--brand-black) !important;
  font-size: 0.9rem;
  text-transform: uppercase; /* optionnel */
}
#sidebar .navbar-brand {
  color: var(--brand-black) !important;
  font-weight: bold;
  font-size: 1rem;
}

#sidebar hr.sidebar-line {
  border: none !important;
  border-top: 1px solid #bcbcbc !important;
  opacity: 1 !important;   /* empêche le gris */
  margin: 0.75rem 0;
}

/* Lien parent */
#sidebar .nav-link-toggle {
  cursor: pointer;
}

/* Sous-menus pliables (comptes + campagnes) */
#sidebar #submenuAccounts,
#sidebar #submenuCampaigns {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-2px);
  transition: max-height 0.22s ease, opacity 0.18s ease, transform 0.18s ease;
}

/* Ouverts */
#sidebar #submenuAccounts.is-open,
#sidebar #submenuCampaigns.is-open {
  max-height: 500px; /* assez haut pour contenir les items */
  opacity: 1;
  transform: translateY(0);
}

/* Indentation des liens de sous-menu */
#sidebar #submenuAccounts .nav-link,
#sidebar #submenuCampaigns .nav-link {
  padding-left: 2rem;
  font-size: 0.9rem;
}

/* Flèche rotation */
#sidebar .submenu-arrow {
  transition: transform 0.22s ease;
  cursor: pointer;
}

/* Sous-menu ouvert → flèche vers le haut (caret-down -> rotate 180deg) */
#sidebar .submenu-arrow.is-open {
  transform: rotate(180deg);
}






body {
  font-family: 'Gilroy', sans-serif !important;
}

.btn-primary {
  background-color: #476AFF !important;
  font-family: 'Gilroy', sans-serif !important;
  border : none !important;
  border-radius: 5px !important;
}

.btn-primary:hover {
  background-color: #6783ff !important;
  border : none !important;
}

.btn-primary-greylight {
  background-color: #f2f2f2 !important;
  color: var(--brand-black) !important;
  font-family: 'Gilroy', sans-serif !important;
  border : none !important;
  border-radius: 5px !important;
}
.btn-primary-greylight .img {
  color: var(--brand-black) !important;
}

.btn-primary-greylight:hover {
  background-color: #e7e7e7 !important;
  font-family: 'Gilroy', sans-serif !important;
  border : none !important;
  border-radius: 5px !important;
}

.btn-primary-black {
  background-color: #13100D !important;
  color: #fff !important;
  font-family: 'Gilroy', sans-serif !important;
  border : none !important;
  border-radius: 5px !important;
}
.btn-primary-black:hover {
  background-color: #13100dba !important;

}

.btn-primary-green {
  background-color: #00CC66 !important;
  font-family: 'Gilroy', sans-serif !important;
  border : none !important;
  border-radius: 5px !important;
}

.btn-primary-green:hover {
  background-color: #02d36a  !important;
  border : none !important;
}

.btn-primary-red {
  background-color: var(--brand-red) !important;
  font-family: 'Gilroy', sans-serif !important;
  color: #fff !important;
  border : none !important;
  border-radius: 5px !important;
}

.btn-primary-red:hover {
  background-color: rgb(255, 131, 127)  !important;
  border : none !important;
  
}


  :root{
    --up-bg: rgba(255,255,255,0.72);
    --up-border: rgba(255,255,255,0.35);
    --up-shadow: 0 10px 30px rgba(0,0,0,0.08);
    --up-text: #111827;
    --up-muted: rgba(17,24,39,0.62);
  }


  /* ==========================
   PAGE HERO (reusable)
   Markup:
   <div class="page-hero">
     <div class="page-hero__text">
       <div class="page-hero__kicker"><i ...></i> Titre</div>
       <h1 class="page-hero__title">...</h1>
       <p class="page-hero__subtitle">...</p>
     </div>
     <div class="page-hero__actions">...</div>
   </div>
========================== */
.page-hero{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 18px;

  padding: 18px;
  border-radius: 16px;

  background: var(--ui-bg);
  border: 1px solid var(--ui-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow: var(--ui-shadow);
  margin-bottom: 14px;
}

.page-hero__kicker{
  display:flex;
  align-items:center;
  gap: 10px;

  font-weight: 800;
  color: var(--brand-blue);
  margin-bottom: 6px;
}

.page-hero__kicker i{ font-size: 1.2rem; }

.page-hero__title{
  margin:0;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--ui-text);
}

.page-hero__subtitle{
  margin: 6px 0 0;
  color: var(--ui-muted);
  max-width: 760px;
}

/* optional */
.page-hero__actions{
  margin-left:auto;
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items:center;
}

@media (max-width: 992px){
  .page-hero{ flex-wrap: wrap; align-items:flex-start; }
  .page-hero__actions{ margin-left: 0; }
}


/* ==========================
   BACK BUTTON (reusable)
   Usage: <a class="page-back" href="..."><i ...></i><span>Retour</span></a>
========================== */
.hero-back{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  text-decoration:none;
  font-weight: 900;
  color: rgba(17,24,39,0.88);
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
  flex: 0 0 auto;
}
.hero-back:hover{
  background: rgba(255,255,255,0.92);
  border-color: rgba(71,106,255,0.25);
}
.hero-back i{ font-size: 1.1rem; }

