@charset "UTF-8";
/* Spinner global override: logo au centre qui tourne + option backdrop */
.spinner-border {
  width: 4rem !important;
  height: 4rem !important;
  border: none !important;
  /* Remove border for a cleaner look when pivoting */
  background: white url("../img/logo_mjdhri.png") center/80% no-repeat;
  animation: app-spinner-pivot 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-radius: 50%;
}

@keyframes app-spinner-pivot {
  0% {
    transform: perspective(400px) rotateY(0deg);
  }
  50% {
    transform: perspective(400px) rotateY(180deg);
  }
  100% {
    transform: perspective(400px) rotateY(360deg);
  }
}
.spinner-backdrop {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(2px);
  z-index: 9999;
}

/* Variables globales - Thème Rouge Bordeaux Ministère */
:root {
  --bordeaux-primary: #d4334b;
  /* Rouge bordeaux très foncé */
  --bordeaux-secondary: #8b3a46;
  /* Rouge bordeaux foncé */
  --bordeaux-tertiary: #a14452;
  /* Rouge bordeaux moyen */
  --bordeaux-light: #bc4f5e;
  /* Rouge bordeaux clair */
  --bordeaux-lighter: #d75a6a;
  /* Rouge bordeaux très clair */
  --bordeaux-bg-light: #fdf5f6;
  /* Fond rouge très clair */
  --bordeaux-gradient: linear-gradient(135deg, #722f37 0%, #8b3a46 100%);
  --bordeaux-gradient-btn: linear-gradient(45deg, #bc4f5e, #a14452);
  --bordeaux-gradient-btn-hover: linear-gradient(45deg, #a14452, #8b3a46);
}

/* Styles globaux */
body {
  background-color: var(--bordeaux-bg-light);
  color: var(--bordeaux-primary);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  padding-top: 52px;
  /* Space for fixed header */
}

/* Adjust padding for mobile */
@media (max-width: 767.98px) {
  body {
    padding-top: 0px;
    /* Match taller header height on mobile */
  }
}
/* Remplacer les couleurs Bootstrap par notre thème rouge bordeaux */
.btn-primary {
  background-color: var(--bordeaux-light) !important;
  border-color: var(--bordeaux-light) !important;
  color: white !important;
}

.btn-primary:hover {
  background-color: var(--bordeaux-tertiary) !important;
  border-color: var(--bordeaux-tertiary) !important;
  color: white !important;
}

.btn-warning {
  background: var(--bordeaux-gradient-btn) !important;
  border: none !important;
  color: white !important;
}

.btn-warning:hover {
  background: var(--bordeaux-gradient-btn-hover) !important;
  color: white !important;
}

.text-warning {
  color: var(--bordeaux-light) !important;
}

.bg-warning {
  background-color: var(--bordeaux-light) !important;
}

/* Focus styles */
.form-control:focus {
  border-color: var(--bordeaux-light) !important;
  box-shadow: 0 0 0 0.2rem rgba(188, 79, 94, 0.25) !important;
}

.form-check-input:checked {
  background-color: var(--bordeaux-light) !important;
  border-color: var(--bordeaux-light) !important;
}

/* Links */
a {
  color: var(--bordeaux-light) !important;
  text-decoration: none;
}

a:hover {
  color: var(--bordeaux-tertiary) !important;
  text-decoration: underline;
}

/* Classes utilitaires pour le thème bordeaux */
.bordeaux-bg-light {
  background-color: var(--bordeaux-bg-light) !important;
}

.bordeaux-primary {
  color: var(--bordeaux-primary) !important;
}

.bordeaux-light {
  color: var(--bordeaux-light) !important;
}

.bordeaux-gradient-btn {
  background: var(--bordeaux-gradient-btn) !important;
  color: white !important;
  border: none !important;
}

.bordeaux-gradient-btn:hover {
  background: var(--bordeaux-gradient-btn-hover) !important;
  color: white !important;
}

.bordeaux-nav {
  background-color: var(--bordeaux-bg-light) !important;
}

.bordeaux-nav-link {
  color: var(--bordeaux-light) !important;
}

/* Option pour top bar blanche */
.nav-white {
  background-color: white !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.nav-white .nav-link {
  color: var(--bordeaux-primary) !important;
}

.nav-white .navbar-brand {
  color: var(--bordeaux-primary) !important;
}

/* Option pour top bar couleur principale */
.nav-primary {
  background-color: var(--bordeaux-primary) !important;
}

.nav-primary .nav-link {
  color: white !important;
}

.nav-primary .navbar-brand {
  color: white !important;
}

.bordeaux-card {
  background-color: white !important;
}

/* Override ALL Bootstrap primary colors with Bordeaux theme */
.text-primary {
  color: var(--bordeaux-light) !important;
}

.bg-primary {
  background-color: var(--bordeaux-light) !important;
}

.border-primary {
  border-color: var(--bordeaux-light) !important;
}

.btn-outline-primary {
  color: var(--bordeaux-light) !important;
  border-color: var(--bordeaux-light) !important;
}

.btn-outline-primary:hover {
  background-color: var(--bordeaux-light) !important;
  border-color: var(--bordeaux-light) !important;
  color: white !important;
}

.badge-primary,
.badge.bg-primary {
  background-color: var(--bordeaux-light) !important;
}

.alert-primary {
  background-color: rgba(188, 79, 94, 0.1) !important;
  border-color: var(--bordeaux-light) !important;
  color: var(--bordeaux-primary) !important;
}

.list-group-item-primary {
  background-color: rgba(188, 79, 94, 0.1) !important;
  color: var(--bordeaux-primary) !important;
}

.table-primary {
  background-color: rgba(188, 79, 94, 0.1) !important;
}

/* Progress bars */
.progress-bar {
  background-color: var(--bordeaux-light) !important;
}

/* Nav pills/tabs */
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background-color: var(--bordeaux-light) !important;
}

/* Pagination */
.page-link {
  color: var(--bordeaux-light) !important;
}

.page-item.active .page-link {
  background-color: var(--bordeaux-light) !important;
  border-color: var(--bordeaux-light) !important;
}

/* Dropdown */
.dropdown-item.active,
.dropdown-item:active {
  background-color: var(--bordeaux-light) !important;
}

/* Intl-Tel-Input Fixes */
.iti {
  width: 100%;
  display: block;
}

.iti__input {
  width: 100%;
  padding-left: 52px !important;
}

.iti__country-list {
  z-index: 1050 !important;
  max-height: 200px;
  overflow-y: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
  border: 1px solid #ced4da !important;
}

.iti__flag-container {
  z-index: 1;
}

.iti__selected-flag {
  z-index: 1;
  padding: 0 8px;
}

/* Fix for dropdown appearing below input */
.iti--allow-dropdown .iti__flag-container:hover .iti__selected-flag {
  background-color: rgba(0, 0, 0, 0.05);
}

.iti__country-list {
  position: absolute !important;
  top: 100% !important;
  margin-top: 2px !important;
}

/* Personnalisation des inputs de type file en français */
input[type=file] {
  color: transparent;
}

input[type=file]::file-selector-button {
  background-color: var(--bordeaux-light);
  color: white;
  border: none;
  padding: 0.375rem 0.75rem;
  border-radius: 0.25rem;
  cursor: pointer;
  margin-right: 1rem;
  font-weight: 500;
}

input[type=file]::file-selector-button:hover {
  background-color: var(--bordeaux-tertiary);
}

input[type=file]::before {
  content: "Choisir un fichier";
  display: inline-block;
  background-color: var(--bordeaux-light);
  color: white;
  border: none;
  padding: 0.375rem 0.75rem;
  border-radius: 0.25rem;
  cursor: pointer;
  margin-right: 1rem;
  font-weight: 500;
}

input[type=file]::before:hover {
  background-color: var(--bordeaux-tertiary);
}

input[type=file]::-webkit-file-upload-button {
  background-color: var(--bordeaux-light);
  color: white;
  border: none;
  padding: 0.375rem 0.75rem;
  border-radius: 0.25rem;
  cursor: pointer;
  margin-right: 1rem;
  font-weight: 500;
}

input[type=file]::-webkit-file-upload-button:hover {
  background-color: var(--bordeaux-tertiary);
}

input[type=file]::-ms-browse {
  background-color: var(--bordeaux-light);
  color: white;
  border: none;
  padding: 0.375rem 0.75rem;
  border-radius: 0.25rem;
  cursor: pointer;
  margin-right: 1rem;
  font-weight: 500;
}

input[type=file]::-ms-browse:hover {
  background-color: var(--bordeaux-tertiary);
}

/* Texte après la sélection du fichier */
input[type=file]::after {
  content: "Aucun fichier sélectionné";
  display: inline-block;
  color: #6c757d;
  padding-left: 0.5rem;
}

input[type=file]:valid::after,
input[type=file][data-file-selected]::after {
  content: attr(data-file-name);
  color: #212529;
}
