/* Écraser les variables après l'importation */
:root {
  --bs-primary: #FEC90C;
  --bs-secondary: #272726;
  --bs-tertiary:#000B7F;
}

/* Align box sizing with Bootstrap so padding doesn't break the grid */
*,
*::before,
*::after {
  box-sizing: border-box;
}

.custom-text {
  color: var(--bs-secondary);
}

.btn-primary {
  background-color: var(--bs-primary);
  color: var(--bs-secondary);
  font-weight: 700;
  text-transform: uppercase;
  padding: 12px 16px;
  border-radius: 6px;
  border: none;
  transition: all 0.2s ease-in-out;
}

.btn-primary:hover {
  background-color: #E0B000;
  cursor: pointer;
}

.btn-primary:active {
  background-color: #C99A00;
  transform: scale(0.98);
}

.btn-primary:disabled {
  background-color: #F5DFA0;
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary:focus {
  outline: 2px solid var(--bs-tertiary);
  outline-offset: 2px;
}
/* Styles généraux */
.login-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Titre centré */
h1 {
  text-align: center;
  margin-bottom: 30px;
}

/* Conteneur pleine largeur */
.container {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Formulaire */
.login-form input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* Centrage des boutons */
.text-center {
  text-align: center;
}

/* Mise en place des colonnes avec une grille simple */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.row.justify-content-center {
  justify-content: center;
}

.col-md-6 {
  flex: 0 0 auto;
  width: 50%;
  max-width: 50%;
  padding-right: 15px;
  padding-left: 15px;
}

/* Responsive : Une seule colonne sur mobile */
@media (max-width: 768px) {
  .row {
    flex-direction: column;
    text-align: center;
  }

  .col-md-6 {
    width: 100%;
    margin-bottom: 20px;
  }
}
/* Conteneur principal avec sidebar et contenu */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* Barre latérale */
.sidebar {
  width: 250px;
  background-color: var(--bs-secondary);
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  padding: 20px;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

/* Liens du menu */
.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar ul li {
  margin-bottom: 15px;
    margin-bottom: 10px;
}

.sidebar ul li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  display: block;
  padding: 10px;
    padding: 12px;
  border-radius: 5px;
  transition: background 0.3s;
}

/* Effet hover */
.sidebar ul li a:hover {
  background-color: var(--bs-tertiary);
}
/* Titre de section (non cliquable) */
.menu-title {
    font-weight: bold;
    text-transform: uppercase;
    padding: 12px;
    margin-top: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Suppression du hover sur le titre */
.menu-title:hover {
    background-color: transparent !important;
    cursor: default;
}

/* Sous-menu */
.submenu {
    list-style: none;
    padding-left: 20px; /* Décalage des sous-menus vers la droite */
    margin-top: 5px;
}

.submenu li {
    margin-bottom: 5px;
}

.submenu li a {
    font-weight: normal;
    font-size: 0.85em; /* Réduction de la taille des sous-menus */
    padding: 8px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
}

.submenu li a:hover {
    background: var(--bs-tertiary);
}

/* Contenu principal */
.content {
  flex-grow: 1;
  margin-left: 250px; /* Décalage à droite pour éviter le chevauchement */
  padding: 20px;
}

/* Responsive : Cache le menu sur petits écrans */
@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }

  .content {
    margin-left: 0;
  }
}

.form-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Conteneur des catégories */
.category {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Titre des catégories */
.category h2 {
  color: var(--bs-tertiary);
  margin-bottom: 15px;
}

/* Style des groupes de formulaire */
.form-group {
  margin-bottom: 20px;
}
/* Labels alignés à droite */
.form-group label {
  font-weight: bold;
  text-align: right;
}

/* Champs bien espacés */
.form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* Bouton centré */
.text-center {
  text-align: center;
  margin-top: 20px;
}

/* Responsive : Ajustement sur petits écrans */
@media (max-width: 768px) {
  .form-container {
    width: 100%;
    padding: 20px;
  }

  .form-group label {
    text-align: left;
    display: block;
    margin-bottom: 5px;
  }
}
.position-green {
  color: #28a745;
  font-weight: bold;
}

.position-red {
  color: #dc3545;
  font-weight: bold;
}

.position-neutral {
  color: #6c757d;
  font-weight: bold;
}
#keywordsTable .form-switch{
  display:inline-block;
  float:none;
}
#keywordsTable .form-check-input{
  float:none;
}

/* Empêche le menu "Afficher X entrées" de se superposer aux boutons personnalisés */
.dataTables_wrapper .dataTables_length {
  margin-top: 1rem;
}

