/* Styles améliorés pour l'application de planning */

/* Variables CSS pour une meilleure gestion des thèmes */
:root {
  --transition-speed: 0.3s;
  --border-radius: 10px;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Améliorations générales */
* {
  transition: all var(--transition-speed) ease;
}

/* Conteneur principal responsive */
.container {
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition-speed) ease;
  display: flex;
  width: 90%;
  height: 90%;
}

.container:hover {
  box-shadow: var(--shadow-hover);
}

/* Sidebar améliorée */
.sideBar {
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  position: relative;
  flex: 1;
  min-width: 280px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  padding: 20px 15px;
  gap: 20px;
}

/* Zone de contenu principale */
.content {
  flex: 3;
  display: flex;
  flex-direction: column;
}

/* Input de recherche amélioré */
.input2 {
  position: relative;
  order: 1;
  margin: 0;
}

.input2 .inp {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--color-three);
  border-radius: 10px;
  background: var(--color-three);
  color: var(--text-color);
  font-size: 14px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.input2 .inp:focus {
  outline: none;
  border-color: var(--blue-color);
  box-shadow: 0 0 0 3px rgba(66, 183, 237, 0.1);
  background: var(--color-four);
}

/* Section des cartes */
.cards {
  order: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 6px;
  flex: 0 0 auto;
  padding: 0;
  max-height: 40vh;
  width: 100%;
}

/* Sélecteur en bas */
.input:not(.input2) {
  order: 3;
  margin: 0;
  margin-top: 15px;
}

.input:not(.input2) select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--color-three);
  border-radius: 10px;
  background: var(--color-three);
  color: var(--text-color);
  font-size: 14px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  cursor: pointer;
}

/* Cartes interactives */
.card {
  transform: translateY(0);
  transition: all var(--transition-speed) ease;
  cursor: pointer;
  box-shadow: var(--shadow);
  padding: 20px 24px;
  border-radius: 12px;
  background: var(--color-three);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  width: 100%;
  height: 100%;
  position: relative;
  text-align: center;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  background: var(--color-four);
}

.card.active {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border: 2px solid var(--blue-color);
}

/* Contenu des cartes */
.card .Nbr {
  font-size: 24px;
  font-weight: bold;
  color: var(--text-color);
  margin-bottom: 6px;
}

.card .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px 0;
}

.card .icon img {
  width: 16px;
  height: 16px;
  filter: brightness(1.2);
}

.card span:not(.Nbr):not(.add):not(.icon) {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-color);
  margin: 6px 0;
}

.card .add {
  position: absolute;
  bottom: 8px;
  right: 8px;
  transition: all var(--transition-speed) ease;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-color);
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.card .add:hover {
  transform: scale(1.1);
  background: var(--blue-color);
  box-shadow: 0 4px 12px rgba(66, 183, 237, 0.4);
}

/* Recherche améliorée */
#suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-two);
  border: 1px solid var(--color-three);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.suggestion-group {
  padding: 8px;
  border-bottom: 1px solid var(--color-three);
}

.suggestion-group strong {
  display: block;
  color: var(--blue-color);
  margin-bottom: 4px;
  font-size: 12px;
  text-transform: uppercase;
}

.suggestion-item {
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 13px;
}

.suggestion-item:hover {
  background: var(--color-three);
}

/* Boutons d'action */
.action-buttons {
  display: flex;
  gap: 5px;
  margin-left: 10px;
}

.btn {
  padding: 8px 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: all var(--transition-speed) ease;
}

.btn-small {
  padding: 4px 8px;
  font-size: 12px;
  background: var(--color-three);
  color: var(--text-color);
}

.btn-small:hover {
  background: var(--blue-color);
  color: white;
  transform: scale(1.05);
}

.btn-primary {
  background: var(--blue-color);
  color: white;
}

.btn-primary:hover {
  background: var(--green-color);
  transform: translateY(-1px);
}

.btn-danger {
  background: var(--red-color);
  color: white;
}

.btn-danger:hover {
  background: #c82333;
  transform: translateY(-1px);
}

/* Modals améliorées */
.modal,
.prof,
.salle,
.classe,
.module {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.modal.open,
.prof.open,
.salle.open,
.classe.open,
.module.open {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn var(--transition-speed) ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Styles généraux pour les autres modals */
.prof .modal-content,
.salle .modal-content,
.classe .modal-content,
.module .modal-content {
  background: var(--color-two);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-hover);
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  animation: slideIn var(--transition-speed) ease;
}

@keyframes slideIn {
  from {
    transform: translateY(-20px) scale(0.95);
  }
  to {
    transform: translateY(0) scale(1);
  }
}

.prof .modal-header,
.salle .modal-header,
.classe .modal-header,
.module .modal-header {
  padding: 20px;
  border-bottom: 1px solid var(--color-three);
}

.prof .modal-body,
.salle .modal-body,
.classe .modal-body,
.module .modal-body {
  padding: 20px;
}

.prof .modal-footer,
.salle .modal-footer,
.classe .modal-footer,
.module .modal-footer {
  padding: 20px;
  border-top: 1px solid var(--color-three);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* Améliorations spécifiques pour le modal d'ajout de cours */
.modal .modal-content {
  max-width: 650px;
  width: 95%;
  max-height: 85vh;
  height: auto;
  border-radius: 15px;
  overflow: hidden;
  background: var(--color-two);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.modal .modal-header {
  background: linear-gradient(135deg, var(--blue-color), var(--green-color));
  color: white;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: none;
  flex-shrink: 0;
}

.modal .modal-header h4 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.modal .modal-body {
  padding: 25px;
  background: var(--color-two);
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
  align-items: start;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 8px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.form-control {
  padding: 12px 15px;
  border: 2px solid var(--color-three);
  border-radius: 8px;
  background: var(--color-three);
  color: var(--text-color);
  font-size: 14px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: var(--blue-color);
  box-shadow: 0 0 0 3px rgba(66, 183, 237, 0.1);
  background: var(--color-four);
}

.form-control option {
  background: var(--color-two);
  color: var(--text-color);
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

.error-display {
  padding: 0 25px;
  min-height: 30px;
  display: flex;
  align-items: center;
}

.error-mod {
  color: var(--red-color);
  font-size: 13px;
  background: rgba(237, 43, 47, 0.1);
  padding: 8px 12px;
  border-radius: 5px;
  border-left: 4px solid var(--red-color);
  width: 100%;
  display: none;
}

.error-mod:not(:empty) {
  display: block;
  animation: slideInDown 0.3s ease;
}

@keyframes slideInDown {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal .modal-footer {
  background: var(--color-one);
  padding: 20px 25px;
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  border: none;
  flex-shrink: 0;
  border-top: 1px solid var(--color-three);
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 120px;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-color), var(--green-color));
  color: white;
  box-shadow: 0 4px 15px rgba(66, 183, 237, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(66, 183, 237, 0.4);
}

.btn-secondary {
  background: var(--color-three);
  color: var(--text-color);
  border: 2px solid var(--color-three);
}

.btn-secondary:hover {
  background: transparent;
  border-color: var(--red-color);
  color: var(--red-color);
  transform: translateY(-1px);
}

/* Validation visuelle */
.form-control:valid {
  border-color: var(--green-color);
}

.form-control:invalid:not(:focus):not(:placeholder-shown) {
  border-color: var(--red-color);
}

/* Responsive pour le modal */
@media (max-width: 768px) {
  .modal .modal-content {
    max-width: 95%;
    width: 95%;
    height: 90vh;
    max-height: 90vh;
    border-radius: 10px;
    margin: 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 15px;
  }

  .modal .modal-header,
  .modal .modal-footer {
    padding: 15px 20px;
  }

  .modal .modal-body {
    padding: 20px;
    overflow-y: auto;
  }

  .modal .modal-header h4 {
    font-size: 18px;
  }

  .btn {
    min-width: 100px;
    padding: 10px 16px;
    font-size: 13px;
  }

  .form-control {
    padding: 10px 12px;
    font-size: 14px;
  }

  .form-group label {
    font-size: 13px;
  }
}

@media (max-width: 576px) {
  .modal .modal-content {
    max-width: 100%;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    margin: 0;
  }

  .modal .modal-header,
  .modal .modal-footer {
    padding: 12px 15px;
  }

  .modal .modal-body {
    padding: 15px;
  }

  .modal .modal-footer {
    flex-direction: column;
    gap: 10px;
  }

  .btn {
    width: 100%;
    min-width: unset;
  }
} /* Animation d'ouverture du modal */
.modal.open .modal-content {
  animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalSlideIn {
  from {
    transform: scale(0.7) translateY(-50px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* États de chargement */
.form-control.loading {
  background-image: linear-gradient(
    45deg,
    transparent 35%,
    rgba(255, 255, 255, 0.1) 35%,
    rgba(255, 255, 255, 0.1) 65%,
    transparent 65%
  );
  background-size: 30px 30px;
  animation: loading 1s linear infinite;
}

@keyframes loading {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 30px 30px;
  }
}
.modal.open,
.prof.open,
.salle.open,
.classe.open,
.module.open {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn var(--transition-speed) ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: var(--color-two);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-hover);
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  animation: slideIn var(--transition-speed) ease;
}

@keyframes slideIn {
  from {
    transform: translateY(-20px) scale(0.95);
  }
  to {
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  padding: 20px;
  border-bottom: 1px solid var(--color-three);
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  padding: 20px;
  border-top: 1px solid var(--color-three);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* Formulaires améliorés */
.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: var(--text-color);
}

.form-control,
.inp {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--color-three);
  border-radius: 5px;
  background: var(--color-three);
  color: var(--text-color);
  font-size: 14px;
}

.form-control:focus,
.inp:focus {
  outline: none;
  border-color: var(--blue-color);
  box-shadow: 0 0 0 2px rgba(66, 183, 237, 0.2);
}

/* Planning amélioré */
.tasks {
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  overflow: hidden;
}

.day-content {
  position: relative;
  min-height: 50px;
  transition: background-color var(--transition-speed) ease;
}

.day-content:hover {
  background-color: var(--color-one);
}

.cours {
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow);
  transition: all var(--transition-speed) ease;
  cursor: pointer;
}

.cours:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
  z-index: 10;
}

.delete-cours {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  transition: all var(--transition-speed) ease;
}

.delete-cours:hover {
  background: var(--red-color);
  color: white;
  transform: scale(1.1);
}

/* Notifications */
.notification {
  animation: slideInRight var(--transition-speed) ease;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.notification.success {
  background: var(--green-color) !important;
}

.notification.error {
  background: var(--red-color) !important;
}

/* Switch de thème amélioré */
.theme-switcher {
  position: relative;
  margin-right: 10px;
}

.theme-switcher input[type="checkbox"] {
  display: none;
}

.theme-switcher label {
  display: block;
  width: 50px;
  height: 25px;
  background: var(--color-three);
  border-radius: 15px;
  position: relative;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.theme-switcher label:before {
  content: "";
  position: absolute;
  width: 21px;
  height: 21px;
  background: var(--text-color);
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: all var(--transition-speed) ease;
}

.theme-switcher input:checked + label {
  background: var(--blue-color);
}

.theme-switcher input:checked + label:before {
  transform: translateX(25px);
}

/* Messages d'erreur */
.error-modal,
.error-mod {
  color: var(--error-color);
  font-size: 12px;
  margin-top: 5px;
  padding: 5px;
  border-radius: 3px;
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid var(--error-color);
  display: none;
}

.error-modal:not(:empty),
.error-mod:not(:empty) {
  display: block;
}

/* Responsive Design */
@media (max-width: 1400px) {
  .container {
    width: 95%;
    height: 85%;
  }

  .sideBar {
    min-width: 260px;
    max-width: 300px;
    padding: 18px 12px;
    gap: 18px;
  }

  .cards {
    gap: 10px;
  }

  .card {
    min-height: 75px;
    padding: 10px;
  }

  .card .Nbr {
    font-size: 18px;
  }

  .card .add {
    bottom: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    font-size: 12px;
  }
}

@media (max-width: 1200px) {
  .container {
    width: 98%;
    height: 90%;
  }

  .sideBar {
    min-width: 240px;
    max-width: 280px;
    padding: 15px 10px;
    gap: 15px;
  }

  .cards {
    gap: 8px;
  }

  .card {
    min-height: 70px;
    padding: 8px;
  }

  .card .Nbr {
    font-size: 16px;
  }

  .card span:not(.Nbr):not(.add):not(.icon) {
    font-size: 10px;
  }

  .card .add {
    bottom: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    font-size: 11px;
  }

  .action-buttons {
    flex-wrap: wrap;
    gap: 3px;
  }

  .btn-small {
    padding: 3px 6px;
    font-size: 11px;
  }
}

@media (max-width: 992px) {
  .container {
    width: 100%;
    height: 95%;
    margin: 0;
  }

  .sideBar {
    min-width: 220px;
    max-width: 260px;
    padding: 12px 8px;
    gap: 12px;
  }

  .cards {
    /* Maintenir la grille 2x2 même sur tablette */
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .card {
    min-height: 65px;
    padding: 6px;
  }

  .card .Nbr {
    font-size: 15px;
    margin-bottom: 2px;
  }

  .card span:not(.Nbr):not(.add):not(.icon) {
    font-size: 9px;
    margin: 2px 0;
  }

  .card .add {
    bottom: 6px;
    right: 6px;
    width: 16px;
    height: 16px;
    font-size: 10px;
  }

  .action-buttons {
    flex-direction: column;
    gap: 2px;
  }
}
@media (max-width: 768px) {
  .container {
    width: 100%;
    height: 100vh;
    flex-direction: column;
    border-radius: 0;
  }

  .sideBar {
    flex: none;
    min-width: unset;
    max-width: unset;
    height: auto;
    border-radius: 0;
    padding: 15px;
    gap: 15px;
    max-height: 40vh;
    overflow-y: auto;
  }

  .content {
    flex: 1;
    border-radius: 0;
  }

  .cards {
    /* Garder la grille 2x2 sur tablette */
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0;
  }

  .card {
    min-height: 60px;
    padding: 8px;
  }

  .card .Nbr {
    font-size: 14px;
  }

  .card .icon img {
    width: 16px;
    height: 16px;
  }

  .card span:not(.Nbr):not(.add):not(.icon) {
    font-size: 9px;
  }

  .card .add {
    bottom: 6px;
    right: 6px;
    width: 16px;
    height: 16px;
    font-size: 10px;
  }

  .input2 {
    order: 1;
  }

  .input2 .inp {
    padding: 10px 12px;
    font-size: 13px;
  }

  .input:not(.input2) {
    order: 3;
    margin-top: 10px;
  }

  .input:not(.input2) select {
    padding: 10px 12px;
    font-size: 13px;
  }

  .tasks {
    font-size: 12px;
    overflow-x: auto;
  }

  .day-name {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    width: 50px;
    font-size: 11px;
  }

  .day-name span:first-child {
    writing-mode: vertical-rl;
    text-orientation: mixed;
  }

  .action-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2px;
    margin: 5px 0;
  }

  .btn-small {
    padding: 2px 4px;
    font-size: 10px;
    min-width: 30px;
  }

  .title h1 {
    font-size: 18px;
  }
}

@media (max-width: 576px) {
  .container {
    width: 100%;
    height: 100vh;
    border-radius: 0;
  }

  .sideBar {
    padding: 12px;
    gap: 12px;
    max-height: 35vh;
  }

  .cards {
    /* Garder 2x2 sur petits écrans aussi */
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .card {
    min-height: 50px;
    padding: 6px;
  }

  .card .Nbr {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 2px;
  }

  .card .icon {
    margin: 2px 0;
  }

  .card .icon img {
    width: 14px;
    height: 14px;
  }

  .card span:not(.Nbr):not(.add):not(.icon) {
    font-size: 8px;
    margin: 2px 0;
  }

  .card .add {
    bottom: 5px;
    right: 5px;
    width: 14px;
    height: 14px;
    font-size: 9px;
  }

  .input2 .inp {
    padding: 8px 10px;
    font-size: 12px;
  }

  .input:not(.input2) select {
    padding: 8px 10px;
    font-size: 12px;
  }

  .modal-content {
    width: 95%;
    margin: 10px;
    max-height: 90vh;
  }

  .tasks {
    overflow-x: auto;
    font-size: 11px;
  }

  .day {
    min-width: 120px;
  }

  .day-name {
    width: 40px;
    font-size: 10px;
  }

  .hour-content small {
    font-size: 9px;
    padding: 2px;
  }

  .title {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .title h1 {
    font-size: 16px;
    margin: 0;
  }

  .action-buttons {
    order: 2;
    width: 100%;
    justify-content: space-around;
  }

  .theme-switcher {
    order: 1;
    margin: 0;
  }
}

@media (max-width: 480px) {
  .sideBar {
    padding: 10px;
    gap: 8px;
    max-height: 30vh;
  }

  .cards {
    /* Seulement sur très petits écrans, passer en colonne unique */
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .card {
    min-height: 45px;
    font-size: 10px;
    padding: 5px 8px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .card .Nbr {
    font-size: 12px;
    font-weight: bold;
    min-width: 20px;
    margin: 0;
  }

  .card .add {
    position: static;
    width: 16px;
    height: 16px;
    font-size: 10px;
  }

  .card .icon {
    margin: 0 4px;
  }

  .card .icon img {
    width: 12px;
    height: 12px;
  }

  .card span:not(.Nbr):not(.add):not(.icon) {
    font-size: 9px;
    flex: 1;
    text-align: center;
    margin: 0;
  }

  .input2 .inp {
    padding: 6px 8px;
    font-size: 11px;
  }

  .input:not(.input2) select {
    padding: 6px 8px;
    font-size: 11px;
  }

  .day-content {
    min-height: 40px;
  }

  .cours {
    font-size: 10px;
    padding: 4px;
  }
} /* Améliorations d'accessibilité */
.card:focus,
.btn:focus,
.form-control:focus {
  outline: 2px solid var(--blue-color);
  outline-offset: 2px;
}

/* Loading state */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--blue-color);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Tooltips */
[title] {
  position: relative;
}

[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-two);
  color: var(--text-color);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 1000;
  box-shadow: var(--shadow);
}

/* Améliorations responsive */
@media (max-width: 768px) {
  .prof .modal-content,
  .salle .modal-content,
  .classe .modal-content,
  .module .modal-content {
    width: 95%;
    max-width: 95%;
    margin: 20px;
  }

  .prof .modal-header,
  .salle .modal-header,
  .classe .modal-header,
  .module .modal-header,
  .prof .modal-body,
  .salle .modal-body,
  .classe .modal-body,
  .module .modal-body,
  .prof .modal-footer,
  .salle .modal-footer,
  .classe .modal-footer,
  .module .modal-footer {
    padding: 15px;
  }

  .prof .modal-footer,
  .salle .modal-footer,
  .classe .modal-footer,
  .module .modal-footer {
    flex-direction: column;
    gap: 10px;
  }

  .prof .modal-footer .btn,
  .salle .modal-footer .btn,
  .classe .modal-footer .btn,
  .module .modal-footer .btn {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .prof .modal-content,
  .salle .modal-content,
  .classe .modal-content,
  .module .modal-content {
    width: 100%;
    height: 100vh;
    border-radius: 0;
    margin: 0;
  }
}
