:root {
    /* Variables Existantes */
    --border-radius: 0.5rem;
    --border-radius-sm: 0.3125rem;
    --border-width: 1px;
    --box-shadow-hover: 0 4px 12px #0000001a;
    --box-shadow-light: 0 2px 4px #0000000d;
    --box-shadow-navbar: 0 2px 4px #0000001a;
    --font-family: Roboto, sans-serif;
    --font-size-base: 1rem;
    --font-size-lg: 1.25rem;
    --font-size-sm: 0.875rem;
    --font-size-xl: 1.5rem;
    --spacing-base: 0.9375rem;
    --spacing-lg: 1.25rem;
    --spacing-sm: 0.5rem;
    --spacing-xs: 0.3125rem;
    --transition-speed: 0.3s;

    /* Variables Manquantes */
    --color-black: #000000;
    --color-white: #ffffff;
    --color-primary: #0b5ed7; /* Exemple : Bleu Bootstrap */
    --color-danger: #dc3545; /* Exemple : Rouge Bootstrap */
    --color-warning: #ffc107; /* Exemple : Jaune Bootstrap */
    --color-success: #198754; /* Exemple : Vert Bootstrap */
    --color-bg-light: #f8f9fa; /* Exemple : Gris clair Bootstrap */
    --color-bg-lighter: #ffffff; /* Vous pouvez ajuster selon vos besoins */
    --color-body-secondary: #6c757d; /* Exemple : Gris secondaire Bootstrap */
}


.fs-7 {
    font-size: 0.8rem; /* Ajustez la taille selon vos besoins */
}

*,
::before,
::after {
  box-sizing: border-box;
}

body {
  background-color: #fff;
  color: var(--color-black);
  font: var(--font-size-base) / 1.6 var(--font-family);
  padding-bottom: 70px;
  padding-top: 80px;
}

.title_bar {
    background: #2a2a2a no-repeat center center;
    background-size: cover;
    color: #FFF;
    padding: 60px 0;
    font-size: 2.3em;
	text-transform: uppercase;
	line-height: 1.2;
}

@media only screen and (max-width: 568px) {
    .title_bar {
        padding: 35px 0;
		font-size: 0.8em;
    }
}

.page-title {
    width: 80%;
	margin: 0 auto;
	font-weight: 400;
}

.title_bar .page_subtitle {
    margin: 8px 0 0;
    color: #b3b3b3;
}

.description-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    border: none;
    color: #fff;
    cursor: pointer;
}

.description-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.active {
	color:#cb1313!important;
	font-weight: bold;
}

.active2 {
	color: var(--bs-btn-active-color);
    background-color: var(--bs-btn-active-bg);
    border-color: var(--bs-btn-active-border-color);
}

@media only screen and (max-width: 568px) {
    .title_bar .page_subtitle {
        margin-top: 5px;
    }
}

.navbar-brand {
  font-weight: 700;
  text-decoration: none;
}

.navbar-nav {
  align-items: center;
  display: flex;
  text-transform: uppercase;
}

.img-fluid2 {
	max-width: 30%;
	height: auto;
}

.exercice-number {
	font-size:11px;
}

@media only screen and (max-width: 568px) {
    .img-fluid2 {
		max-width: 60%;
		height: auto;
	}
}


.navbar-nav .nav-link i {
  font-size: 1.2rem;
  margin-right: var(--spacing-xs);
}

.navbar-toggler {
  background: transparent;
}

.program-name {
  color: var(--color-primary);
  font-size: 1.5rem;
  font-weight: 700;
}

.exercise-name {
  font-size: var(--font-size-lg);
  font-weight: 700;
}

.progress {
  height: 10px;
  margin-bottom: var(--spacing-sm);
}

.progress-bar {
  background-color: green;
}

.program-actions {
  margin-top: var(--spacing-sm);
}

.table-responsive {
  margin-top: var(--spacing-base);
}

.table th,
.table td {
  border: var(--border-width) solid #dee2e6;
  padding: var(--spacing-sm);
  vertical-align: middle;
  white-space: normal;
  word-wrap: break-word;
}

.chart-container {
  margin: auto;
  position: relative;
  width: 100%;
}

.is-invalid {
  border-color: var(--color-danger);
}

.badge {
  border-radius: 12px;
  font-size: 0.8rem;
  margin-right: var(--spacing-xs);
  padding: 0.3125rem 0.625rem;
  text-decoration: none;
}

.badge-warning {
  background-color: var(--color-warning);
  color: var(--color-black);
}

.badge-success {
  background-color: var(--color-success);
  color: var(--color-white);
}

@media (max-width: 768px) {
  h2 {
    font-size: 1.3rem;
  }

  .list-group-item,
  .start-program-container .list-group-item {
    padding: var(--spacing-sm);
  }

  .badge,
  .start-program-container .badge {
    padding: 0.25rem 0.5rem;
  }
}

@media (max-width: 576px) {
  .list-group-item,
  .start-program-container .list-group-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .list-group-item > div,
  .start-program-container .list-group-item > div {
    width: 100%;
  }

  .list-group-item img,
  .start-program-container .list-group-item img {
    max-width: 100%;
  }
}

.start-program-container {
  background-color: var(--color-white);
  max-width: 1200px;
}

.start-program-container .list-group-item {
  align-items: center;
  align-items: center;
  background-color: var(--color-white);
  border: 1px solid #dee2e6;
  border-radius: var(--border-radius);
  display: flex;
  display: flex;
  flex-direction: column;
  flex-direction: column;
  margin-bottom: var(--spacing-sm);
  padding: var(--spacing-base);
  text-align: center;
  text-align: center;
  transition: box-shadow var(--transition-speed),
    transform var(--transition-speed);
}

.start-program-container .badge {
  border-radius: 12px;
  margin-right: var(--spacing-xs);
  padding: 0.3125rem 0.625rem;
}

.start-program-container .badge-warning {
  background-color: var(--color-warning);
  color: var(--color-black);
}

.start-program-container .badge-success {
  background-color: var(--color-success);
  color: var(--color-white);
}

.start-program-container .list-group-item img {
  border-radius: 0.3125rem;
  height: auto;
  margin: var(--spacing-lg) 0;
  max-width: 300px;
  object-fit: cover;
  width: 100%;
}

.nav-tabs-wrapper {
  margin-bottom: var(--spacing-lg);
  padding-left: 10px;
  padding-right: 10px;
  position: relative;
}

.nav-tabs-wrapper::before,
.nav-tabs-wrapper::after {
  bottom: 0;
  content: "";
  pointer-events: none;
  position: absolute;
  top: 0;
  width: 8px;
  z-index: 1;
}

.nav-tabs-wrapper::before {
  background: linear-gradient(to right, var(--color-bg-lighter), #f8f9fa00);
  left: 0;
}

.nav-tabs-wrapper::after {
  background: linear-gradient(to left, var(--color-bg-lighter), #f8f9fa00);
  right: 0;
}

.nav-tabs {
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 2px;
  padding-left: 8px;
  padding-right: 8px;
  position: relative;
  scrollbar-width: none;
  z-index: 2;
}

.nav-tabs .nav-item {
  flex: 0 0 auto;
  margin-right: 0.2rem;
}

.nav-tabs .nav-link {
  color: #000;
  font-size: var(--font-size-sm);
  min-width: 50px;
  padding: 0.5rem 0.75rem;
  text-align: center;
  transition: background-color var(--transition-speed),
    color var(--transition-speed), border-color var(--transition-speed);
  white-space: nowrap;
}

.nav-tabs .nav-link.active {
  background-color: var(--color-bg-light);
  border-color: #000 #000 var(--color-bg-light);
  font-weight: 700;
}

.nav-tabs .nav-link:hover {
  background-color: #0000001a;
}

.nav-tabs .nav-link:focus {
  outline-offset: 2px;
}

.nav-tabs::-webkit-scrollbar {
  display: none;
}

@media (max-width: 768px) {
  .nav-tabs .nav-link {
    font-size: 0.875rem;
    min-width: 45px;
    padding: 0.4rem 0.75rem;
  }
}

@media (max-width: 576px) {
  .nav-tabs .nav-link {
    font-size: 0.75rem;
    min-width: 40px;
    padding: 0.3rem 0.6rem;
  }

  .nav-tabs .nav-link i {
    font-size: 0.75rem;
    margin-right: 0.2rem;
  }

  .nav-tabs .nav-link:first-child {
    margin-left: 0;
  }

  .nav-tabs .nav-link:last-child {
    margin-right: 0;
  }
}

.nav-tabs .nav-link:first-child {
  margin-left: 8px;
}

.nav-tabs .nav-link:last-child {
  margin-right: 8px;
}

.start-program-container .list-group-item img {
  border-radius: 0.3125rem;
  height: auto;
  margin: var(--spacing-lg) 0;
  max-width: 100%;
  object-fit: cover;
}

.start-program-container .badge {
  border-radius: 12px;
  font-size:15px;
  margin-right: var(--spacing-xs);
  padding: 0.3125rem 0.625rem;
}

.start-program-container .badge-warning {
  background-color: var(--color-warning);
  color: var(--color-black);
}

.start-program-container .badge-success {
  background-color: var(--color-success);
  color: var(--color-white);
}

.start-program-container .nav-tabs-wrapper {
  margin-bottom: var(--spacing-lg);
}

.login-icon {
  color: #555;
  font-size: 1.1rem;
}

.login-card a,
.register-card a {
  color: #007bff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.login-card a:hover,
.register-card a:hover {
  color: #0056b3;
  text-decoration: underline;
}

.login-card {
	max-width: 400px;
	margin: auto;
}

.register-card {
	max-width: 500px;
	margin: auto;
}
		
.toggle-password {
  color: #555;
  cursor: pointer;
  transition: color 0.3s ease;
}

.toggle-password:hover {
  color: #000;
}

.completed-ignored {
	opacity:0.7;
}

.exercise-card {
	cursor: pointer;
	box-shadow: var(--bs-box-shadow) !important;
}

.program-day {
  background-color: #f7fafc;
  border: 2px dotted #718096;
  border-radius: 10px;
  color: #718096;
  font-size: 0.8rem;
}

.accordion-button {
	padding:5px;
	margin:5px;
	border-radius: 0.25rem;
}

.accordion-collapse {
	box-shadow: var(--bs-box-shadow) !important;
	margin:5px;
	margin-bottom:10px;
}

.fixed-bottom footer {
  background-color: #f8f9fa;
  box-shadow: 0 -1px 5px #0000001a;
  color: #21252980;
  z-index: 1030;
}

.fixed-bottom .nav-link {
  color: #6c757d;
  transition: color 0.2s;
}

.fixed-bottom .nav-link i {
  font-size: 1.8em;
  transition: transform 0.2s, color 0.2s;
}

.fixed-bottom .nav-link:hover i {
  color: #0b5ed7;
  transform: scale(1.2);
}

.fixed-bottom .nav-link:focus {
  border-radius: 0.25rem;
  box-shadow: 0 0 0 2px #0d6efd40;
  outline: none;
}

.fixed-bottom footer div {
  width: 100%;
}

#top-bloc-record {
	background: white;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	padding: 5px;
	border-bottom: 1px solid #dee2e6;
}

#bottom-bloc-record {
	background: white;
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	padding: 5px;
	border-top: 1px solid #dee2e6;
}

#record-performance {
	margin-bottom:10px;
}

.action-link {
  width: 40px;
}

.calendar-table {
  table-layout: fixed;
}

.calendar-table td {
  height: 50px;
  vertical-align: middle;
  width: 50px;
}

@media (max-width: 576px) {
  .calendar-table th {
    font-size: 0.7em;
    text-orientation: sideways;
    writing-mode: vertical-rl;
  }

  .calendar-table td {
    font-size: 0.85em;
  }
}

.checked-day {
  color: green;
  font-weight: 700;
}

.card-img-top {
  max-height: 200px;
  object-fit: contain;
  width: 100%;
}

.program-img {
  max-height: 150px;
  object-fit: contain;
}

.card-body {
  display: flex;
  flex-direction: column;
}

.card-body .mt-auto {
  margin-top: auto;
}

.table th,
.table td {
  text-align: center;
  vertical-align: middle;
}

.chart-container {
  height: 450px;
  width: 100%;
}

@media (max-width: 768px) {
  .chart-container {
    height: 450px;
    width: 100%;
  }

  .table-sets th,
  .table-sets td,
  .stats-table table th,
  .stats-table table td {
    font-size: 0.9rem;
    padding: 0.5rem;
  }
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

canvas {
  height: auto;
  max-width: 100%;
}

.card-img-top {
  max-height: 200px;
  object-fit: contain;
  width: 100%;
}

.program-img {
  max-height: 150px;
  object-fit: contain;
}

.remove-set-btn {
  align-items: center;
  display: flex;
  height: 24px;
  justify-content: center;
  text-decoration: none;
  width: 24px;
}

.remove-set-btn i {
  font-size: 16px;
}

.exercises-group.active {
  display: block;
}

.exercises-group.d-none {
  display: none;
}

.drag-handle {
	cursor: move;
	margin-right: 10px;
	color: #6c757d;
	font-size: 1.2rem;
}

.hidden-day {
	display: none;
}

.exercise-row {
	position: relative;
}
.select2-container .select2-selection--multiple {
	height: auto !important;
}
.img-preview {
	max-width: 100px;
	margin-top: 10px;
}

/* Assurez-vous que les transitions sont définies uniquement sur les éléments de base */
.main-navbar {
    transition: transform 0.3s ease-in-out;
    z-index: 1100; /* Assure que la navbar reste au-dessus */
}

.main-navbar.navbar-hidden {
    transform: translateY(-100%);
}

/* Styles pour cacher le footer */
.footer-hidden {
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

/* Assure que le footer est visible par défaut */
footer {
    transition: transform 0.3s ease-in-out;
    z-index: 1100; /* Assure que le footer reste au-dessus */
}


/* style.css */

/* Réduction de la taille des labels et des icônes sur les petits écrans, avec zone cliquable élargie et icônes centrées */
@media (max-width: 576px) {
    .footer-nav .nav-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0.75rem 0;
        min-height: 48px;
        width: 100%;
        text-align: center;
    }

    .footer-nav .nav-link .label-icon {
        font-size: 1.5rem;
    }

    .footer-nav .nav-link i {
        display: block;
        margin: 0 auto;
        font-size: 1.5rem;
    }
}

/* Ajustements pour les écrans moyens et plus grands */
@media (min-width: 577px) {
    .footer-nav .nav-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0.75rem 0;
        min-height: 48px;
        width: 100%;
        text-align: center;
    }

    .footer-nav .nav-link .label-icon {
        font-size: 1.7rem;
    }

    .footer-nav .nav-link i {
        display: block;
        margin: 0 auto;
        font-size: 1.7rem;
    }
}



/* Styles généraux pour les labels */
.footer-nav .nav-link .label-icon {
    display: block;
    margin-top: 0.25rem;
    text-align: center;
    white-space: nowrap; /* Empêche le texte de se diviser en plusieurs lignes */
}

/* Assurer que les éléments sont bien alignés */
.footer-nav .navbar-nav {
    flex-wrap: nowrap; /* Empêche les éléments de passer à la ligne suivante */
}

/* Centrer le contenu verticalement */
.footer-nav .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .footer-nav {
        display: none;
    }
}

.fond-programme {
	background-image: url(/img/fond-programme.jpg);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

h1 {
  font-size: 1.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.separator {
  border: none;
  border-top: 1px solid #e0e0e0; /* gris très clair */
  margin: 2rem auto;
  width: 90%;
}