:root,
.offcanvas {
  --bs-offcanvas-width: 300px;
}

.offcanvas .dropdown-menu,
.offcanvas .dropdown-item {
  white-space: normal !important;
  word-break: break-word;
}

.offcanvas .dropdown-item:hover,
.offcanvas .dropdown-item:focus {
  background-color: #003D77;
  /* Your blue */
  color: #fff;
  /* White text */
  font-weight: bold;
  /* Optional: bold text */
}

main {
  margin-top: 10px;
}

.modal-content.ui-resizable {
  overflow-y: scroll;
}

#loading-overlay {
  background-color: rgba(0, 0, 0, 0.5);
  /* Semi-transparent black */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9998;
  /* Below the spinner */
}

#loading {
  z-index: 9999;
  /* Above the overlay */
}

.bg-eee {
  background-color: #eee;
}

.bg-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.mpt-firstsection {
  margin-top: 140px;
  padding-top: 50px;
}

.rounded-10 {
  border-radius: 10px !important;
}

.btn-ffhandball-bleu,
.btn-ffhandball-bleu:focus:hover,
.entete-colonne-bleue,
.textBtnR2a:hover,
.textBtnR2a:focus {
  color: #000;
  background-color: #003D77;
  border-color: #003D77;
  color: #ffffff;
}

.btn-ffhandball-bleu:hover,
.btn-ffhandball-bleu:focus,
.textBtnR2a {
  color: #000;
  background-color: #BA1319;
  border-color: #BA1319;
  color: #ffffff;
}

.btn-ffhandball-rouge,
.btn-ffhandball-rouge:focus:hover {
  color: #000;
  background-color: #BA1319;
  border-color: #BA1319;
  color: #ffffff;
}

.btn-ffhandball-rouge:hover,
.btn-ffhandball-rouge:focus {
  color: #000;
  background-color: #003D77;
  border-color: #003D77;
  color: #ffffff;
}


.acc-ffhandball {
  width: 100%;
  background-color: #003D77;
  border-color: #fff;
  color: #eee;
  text-align: left;
  padding: 10px;
  font-size: 1.5rem;
}

.btn-xl {
  padding-top: 30px;
  padding-bottom: 30px;
}

.text-titre-ffhandball {
  color: #BA1319 !important;
  font-weight: bolder;
}

.text-titre-ffhandball-bleu {
  color: #003D77 !important;
  font-weight: bolder;
}

.vainqueur {
  font-weight: bolder;
  color: #9B1614;
}

.col-thin {
  max-width: 5px;
  margin: 0;
  padding: 0;
}

.col-btn {
  max-width: 40px;
  margin: 0;
  padding: 0;
}

.col-deux-btns {
  width: 100px;
  ;
  margin: 0;
  padding: 0;
}

.col-trois-btns {
  width: 130px;
  ;
  margin: 0;
  padding: 0;
}

.col-quatre-btns {
  width: 160px;
  ;
  margin: 0;
  padding: 0;
}

.imgBtnR2a {
  height: 64px;
}

.formInfo {
  padding: 0 0 0 0;
  margin: 0 0 15px 0;
  color: rgba(0, 0, 0, 0.705);
  font-weight: bolder;
  font-size: 17px;
}

.formInput {
  padding: 5px 0 5px 5px;
  margin: 0 0 15px 0;
  border: 1px solid #999999;
  color: rgba(0, 0, 0, 0.705);
  font-size-adjust: none;
  width: 100%;
}

.tileAssoRegle,
.tileMotclef,
.tileMedia {
  border: var(--bs-border-width) solid var(--bs-border-color);
  background-color: #f0eded;
  color: rgba(0, 0, 0, 0.705);
  font-size-adjust: none;
  width: 100%;
}

.cell-no-wrap {
  white-space: nowrap;
}

table.table tbody tr td,
table.table thead tr th,
table.table thead {
  border-top: 1px solid #75747470;
  border-bottom: 1px solid #75747470;
}

table.table thead,
table.table tbody {
  vertical-align: middle;
}

table.champ {
  border: 0;
}

th {
  border: 1px solid #EEE;
}

.entete-colonne-bleue {
  color: #000;
  background-color: #003D77;
  border-color: #003D77;
  color: #ffffff;
}

.entete-colonne-rouge {
  color: #000;
  background-color: #9B1614;
  border-color: #9B1614;
  color: #ffffff;
}

.champ td.score {
  max-width: 130px;
  white-space: nowrap;
  text-align: center;
  vertical-align: middle;
}

.champ td.score_rec,
.champ td.equipe_rec {
  text-align: right;
}

.champ td.score_rec {
  padding-right: 0;
}

.champ td.score_vis,
.champ td.equipe_vis {
  text-align: left;
}

.champ td.score_vis {
  padding-left: 0;
}

.champ td.vainqueur,
.champ td span.vainqueur {
  font-weight: bolder;
  color: #9B1614;
}

.accordion {
  --bs-accordion-bg-color: #fff;
  --bs-accordion-btn-color: #9B1614;
  --bs-accordion-border-color: #000;
  --bs-accordion-border-width: 5px;
  --bs-accordion-active-bg: #003D77;
  --bs-accordion-active-color: #eee;
  --bs-accordion-border-color: #eee;
  --bs-accordion-btn-focus-border-color: #eee;
}

.maxheight_600 {
  max-height: 600px;
}

.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
  color: #FFF;
  background-color: #85AED2;
  font-weight: bold;
}

.nav-pills .nav-link.error,
.nav-pills .show>.nav-link .error {
  color: #FFF;
  background-color: #dc3545;
  font-weight: bold;
}

.nav-pills .nav-link {
  color: #000;
  background-color: #B6D1EC;
}

.form-floating label {
  font-size: 18px;
}

.navbar {
  --bs-navbar-toggler-focus-width: 0;
}

#navbar-button-menu {
  min-height: 50px;
  border: 0;
}

.navbar-toggler {
  border: 0 solid #9B1614;
}

.nav-item:hover,
.nav-link:hover,
.nav-item .dropdown-menu .dropdown-item:hover,
.nav-item .dropdown-menu:hover {
  color: #9B1614;
  font-weight: bold;
}

.nav-item .dropdown-menu {
  border: 1px solid white;
  color: var(--bs-navbar-active-color);
  --bs-dropdown-bg: none;
}

.letterSpacing05en {
  letter-spacing: 0.5em;
}

.bg-input-form {
  background-color: #C2D0DD;
  color: rgb(37, 37, 37);
}

.btn-check:checked+.btn,
.btn-check:active+.btn {
  color: #fff;
  background-color: #198754;
  border-color: #198754;
}

.form-check-input:checked {
  background-color: #198754;
  border-color: #198754;
}

.qcm-checkbox {
  transform: scale(1.5);
}

.qcm-card-init-width {
  width: 620px;
  height: auto;
}

.qcm-card-resizable {
  resize: both;
  /* Allow resizing both horizontally and vertically */
  overflow: auto;
  /* Ensure scrollbars appear if content overflows */
  min-width: 200px;
  /* Optional: Set a minimum width */
  min-height: 150px;
  /* Optional: Set a minimum height */
}

#liveToast {
  border: 4px solid #FFF !important;
  /* Force a blue border */
  border-radius: 5px;
  /* Optional: Adjust border radius */
}

.card-filter {
  max-height: 400px;
  /* Set the maximum height */
  overflow-y: auto;
  /* Enable vertical scrolling */
}


#Publie:not(:checked) {
  background-color: white;
  border: 1px solid red;
}

.font-border-white {
  /* 1 pixel black shadow to left, top, right and bottom */
  text-shadow: -2px 0 white, 0 2px white, 2px 0 white, 0 -2px white;
}

.question {
  display: inline-block;
  vertical-align: top;
  padding: 5px;
  max-width: 660px;
  text-align: left;
}

.progress.custom-height {
  height: 2rem;
}

.checkbox-toogle-profil {
  min-width: 100px;
  min-height: 40px;
}

#contextMenu {
  min-width: 180px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border: 1px solid #e3e3e3;
  background: #fff;
  padding: 0.5rem 0;
  font-size: 1rem;
  animation: fadeInMenu 0.2s;
}

#contextMenu .dropdown-header {
  font-size: 1rem;
  font-weight: 600;
  background: #f5f8ff;
  margin-bottom: 0.25rem;
}

#contextMenu .dropdown-item {
  transition: background 0.2s, color 0.2s;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
}

#contextMenu .dropdown-item:hover {
  background: #e7f1ff;
  color: #0d6efd;
}

#contextMenu .bi-pencil {
  font-size: 1.2em;
}

#contextMenu .bi-trash {
  font-size: 1.2em;
}

@keyframes fadeInMenu {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}




/* Animations et effets pour la page d'accueil */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.bg-gradient {
  background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
}

.rounded-4 {
  border-radius: 1rem !important;
}

.fa-bounce {
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(0);
  }

  40% {
    transform: translateX(-5px);
  }

  60% {
    transform: translateX(5px);
  }
}

/* Effet de pulse pour les icônes */
.card-body i.fa-2x,
.card-body i.fa-3x {
  transition: all 0.3s ease;
}

.card:hover .card-body i {
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  .display-4 {
    font-size: 2rem;
  }

  .display-5 {
    font-size: 1.5rem;
  }
}




/* Navbar améliorée */
#sidenav {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  z-index: 1030;
}

/* Dropdown utilisateur */
#userMenuDropdown {
  transition: all 0.3s ease;
}

#userMenuDropdown:hover {
  background-color: #f8f9fa !important;
}

/* Offcanvas menu */
.offcanvas-body {
  display: flex;
  flex-direction: column;
}

/* Accordion dans le menu */
.accordion-button {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  background-color: rgba(13, 110, 253, 0.05) !important;
  color: #0d6efd;
}

.accordion-button:not(.collapsed)::after {
  transform: rotate(-180deg);
}

/* Items du menu */
.list-group-item-action {
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.list-group-item-action:hover {
  background-color: rgba(13, 110, 253, 0.05);
  border-left-color: #0d6efd;
  padding-left: 1.5rem !important;
}

.list-group-item-action:active {
  background-color: rgba(13, 110, 253, 0.1);
}

/* Sous-items du menu */
.list-group-item-action.ps-5 {
  font-size: 0.9rem;
}

.list-group-item-action.ps-5:hover {
  padding-left: 3.5rem !important;
}

/* Icônes colorées */
.text-success {
  color: #28a745 !important;
}

.text-warning {
  color: #ffc107 !important;
}

.text-info {
  color: #17a2b8 !important;
}

.text-danger {
  color: #dc3545 !important;
}

/* Responsive */
@media (max-width: 768px) {
  #sidenav h5 {
    font-size: 1rem;
  }

  #sidenav small {
    font-size: 0.7rem;
  }
}


/* Effet survol des lignes du tableau des médias */
#TablisteMedias tbody tr {
  transition: all 0.2s ease;
  cursor: pointer;
}

#TablisteMedias tbody tr:hover {
  background-color: rgba(13, 110, 253, 0.05);
  transform: translateX(2px);
}

#TablisteMedias tbody tr.selected {
  background-color: rgba(13, 110, 253, 0.1);
  border-left: 3px solid #0d6efd;
}

/* Animation pour les lignes ajoutées */
#TablisteMedias tbody tr.table-success {
  animation: fadeInSuccess 1.5s ease-in-out;
}

@keyframes fadeInSuccess {
  0% {
    background-color: rgba(25, 135, 84, 0.3);
  }

  100% {
    background-color: transparent;
  }
}

/* Badges mots-clefs */
.tileMotclef {
  transition: all 0.2s ease;
  border-radius: 0.375rem;
  padding: 0.25rem 0.5rem;
}

.tileMotclef:hover {
  background-color: #0dcaf0 !important;
  transform: scale(1.05);
}

.btn-delmotclef {
  background: transparent;
  border: none;
  color: #212529;
  line-height: 1;
  font-size: 0.75rem;
  transition: color 0.2s ease;
}

.btn-delmotclef:hover {
  color: #dc3545;
}

/* Bouton aperçu média */
.btn-mediapreview {
  transition: all 0.3s ease;
}

.btn-mediapreview:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Bouton grip pour drag & drop */
.bi-grip-vertical {
  cursor: grab;
  color: #6c757d;
}

.bi-grip-vertical:active {
  cursor: grabbing;
}

/* Badges d'ordre */
.badge {
  font-size: 0.875rem;
  padding: 0.35em 0.65em;
  font-weight: 500;
}

/* Responsive : mots-clefs sur mobile */
@media (max-width: 768px) {
  #rowMotclef {
    flex-direction: column;
  }

  .tileMotclef {
    width: 100%;
    justify-content: space-between;
  }
}

.card-question-clickable {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-question-clickable:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.card-question-clickable:active {
  transform: translateY(-2px);
}

/* Élargir tous les popovers */
.popover {
  max-width: 500px;
  /* Par défaut c'est 276px */
}

/* Ou cibler uniquement vos popovers de règles */
.popover.regle-popover-custom {
  border: #9B1614 3px solid;
  box-shadow: 0 6px 12px rgba(155, 22, 20, 0.3);
  max-width: 600px;
  width: 600px;
  overflow-y: auto;
  max-height: 500px;
}

/* À ajouter dans votre fichier CSS principal */
.modal-fullscreen-btn {
  margin-right: auto;
}

.modal:fullscreen {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  overflow: auto;
}

.modal:fullscreen .modal-dialog {
  max-width: 95vw;
  max-height: 95vh;
  margin: auto;
}

.modal:fullscreen .modal-body {
  max-height: 80vh;
  overflow: auto;
}

.modal.modal-fullscreen-custom {
  padding: 0 !important;
}

.modal.modal-fullscreen-custom .modal-dialog {
  max-width: 100vw !important;
  width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
}

.modal.modal-fullscreen-custom .modal-content {
  height: 100vh;
  border-radius: 0;
  border: none;
}

.modal.modal-fullscreen-custom .modal-body {
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}


