.voitures-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0 auto !important;
  max-width: 1200px;
  padding: 20px;
  margin-bottom: 70px !important;
}

.voiture-item {
  background: #fff;
  /*border: 1px solid #ccc;*/
  border-radius: 25px;
  box-sizing: border-box;
  width: calc(33.333% - 40px);
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
  /*justify-content: space-between;*/
}

.fc .indispo {
  opacity: .3;
  background: #ff0000 !important;
}

@media (min-width: 800px) and (max-width: 1366px) {
  .voiture-item {
    width: calc(50% - 40px);
    /* Deux colonnes sur tablette */
  }
  .voitures-container {
    justify-content: center;
  }
}

button.confirm-action-cancel,
button#export_resas {
  background-color: #1e2c8b !important;
  border-radius: 500px !important;
}

@media (min-width: 1367px) {
  .voiture-item {
    width: calc(33.333% - 40px);
    /* Trois colonnes sur desktop */
  }
}

.voiture-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.voiture-title {
  font-size: 1.2rem;
  margin-top: 15px;
  margin-bottom: 0px !important;
  text-align: center;
  color: #1e2c8b !important;
  text-transform: uppercase;
}

.voiture-content {
  font-size: 1rem;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 992px) {
  .voiture-item {
    width: calc(50% - 40px);
  }
}

@media (max-width: 600px) {
  .voiture-item {
    width: 100%;
  }

  .ast-container {
    margin-bottom: 65px;
  }
}

/* (Optionnel) Personnalisation FullCalendar */
.fc-daygrid-day:hover {
  background-color: #f0f8ff;
  /* Couleur de survol */
}

.fc-daygrid-day-top a {
  text-decoration: none !important;
}

.fc-col-header-cell a {
  text-decoration: none !important;
}

.fc-event.reservation-waiting.fc-bg-event {
  background-color: #ffa500 !important;
  opacity: 0.3;
}

/* Couleur pour les réservations confirmées des autres (rouge) – visible pour tous */
.fc-event.reservation-confirmed.fc-bg-event {
  background-color: #ff0000 !important;
  opacity: 0.3;
}

/* Couleur pour mes réservations confirmées (vert) – visible uniquement pour moi */
.fc-event.my-reservation-confirmed.fc-bg-event {
  background-color: #008000 !important;
  opacity: 0.3;
}

/* Couleur pour la plage sélectionnée (turquoise) */
.fc-event.selected-range.fc-bg-event {
  background-color: #76c7c0 !important;
  opacity: 0.5;
}

.button-voitures-gerant {
  margin-top: 7px;
}

.button-voitures-gerant button {
  width: 100%;
}

#edit-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 20px;
  border: 1px solid #ccc;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  width: 80%;
}

#popup-content {
  text-align: center;
}

#edit-popup input,
#edit-popup textarea {
  width: 100%;
  margin: 10px 0;
}

#edit-popup button {
  margin: 5px;
}

#edit-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  /* Overlay sombre */
  z-index: 1000;
  display: none;
}

#edit-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 20px;
  border: 1px solid #ccc;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  /* Par-dessus l'overlay */
}

#popup-content {
  text-align: center;
}

#edit-popup input,
#edit-popup textarea {
  width: 100%;
  margin: 10px 0;
}

#edit-popup button {
  margin: 5px;
}

#reservations-popup,
#reservations-confirmees-popup,
#reservations-annulees-popup,
#manual-reservation-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
}

#reservations-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 20px;
  border: 1px solid #ccc;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 80%;
  max-width: 700px;
  z-index: 1001;
  max-height: 75vh;
  overflow: auto;
}

#reservations-content table {
  width: 100%;
  border-collapse: collapse;
}

#reservations-content table th,
#reservations-content table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
}

#reservations-content table th {
  background-color: #f4f4f4;
}

#close-reservations-popup,
#close-reservations-confirmees-popup,
#close-reservations-annulees-popup,
#close-manual-reservation-popup,
#manual-resa-submit {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #fff;
  border: 1px solid #1e2c8b;
  cursor: pointer;
  color: #1e2c8b;
  border-radius: 500px;
}

#export_all_resas {
  background-color: #fff;
  border: 1px solid #1e2c8b;
  cursor: pointer;
  color: #1e2c8b;
  border-radius: 500px;
}

.user-info-btn,
.gestion-heures-btn {
  background-color: #1e2c8b !important;
  border-radius: 500px;
  width: 140px;
}

@media screen and (max-width: 600px) {
  #reservations-content table,
  #reservations-content table tbody,
  #reservations-content table th,
  #reservations-content table td,
  #reservations-content table tr {
    display: block;
  }

  #reservations-content thead {
    display: none !important;
  }

  #reservations-content table th {
    display: none;
    /* Cacher les entêtes */
  }

  #reservations-content table tr {
    margin-bottom: 10px;
  }

  #reservations-content table td {
    /*display: flex;
        justify-content: space-between;*/
    padding: 10px;
    border: 1px solid #ddd;
    /*align-items: center;*/
  }

  #reservations-content table td:before {
    content: attr(data-label);
    font-weight: bold;
    margin-right: 10px;
    flex-basis: 30%;
    text-align: left;
  }

  .buttons-actions-resas {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 7px;
  }

  .buttons-actions-resas button {
    width: 100%;
  }
}

#edit-description {
  resize: vertical;
}

.voiture-content p:last-child {
  margin-bottom: 0;
}

.list-actions-buttons {
  display: flex;
  justify-content: space-evenly;
}

.list-actions-buttons .fa-pen {
  color: white;
  border-radius: 25px;
  padding: 10px;
  background-color: #4a90e2;
}

.list-actions-buttons .fa-clock {
  color: white;
  background-color: #f5a623;
  border-radius: 25px;
  padding: 10px;
}

.list-actions-buttons .fa-check {
  background-color: #7ed321;
  color: white;
  border-radius: 25px;
  padding: 10px;
}

.list-actions-buttons .fa-ban {
  background-color: #d0021b;
  color: white;
  border-radius: 25px;
  padding: 10px;
}

.list-actions-buttons .fa-plus {
  background-color: #f2795c;
  color: white;
  border-radius: 25px;
  padding: 10px;
}

.list-actions-buttons .fa-pen:hover,
.list-actions-buttons .fa-clock:hover,
.list-actions-buttons .fa-check:hover,
.list-actions-buttons .fa-ban:hover,
.list-actions-buttons .fa-plus:hover {
  transform: scale(1.1);
  /* Agrandissement léger */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  /* Ajoute une ombre */
  transition: all 0.3s ease;
  /* Animation fluide */
}

/****** UM ******/
.um-account-meta-img,
.um-account-profile-link {
  display: none !important;
}

.um-account-tab-usager .um-col-alt.um-col-alt-b,
.um-account-tab-deconnexion .um-col-alt.um-col-alt-b,
.um-account-tab-utilisateurs .um-col-alt.um-col-alt-b,
.um-account-tab-docs .um-col-alt.um-col-alt-b,
.um-account-tab-stats .um-col-alt.um-col-alt-b {
  display: none;
}

.um-account-tab-gerant_usagers .um-col-alt.um-col-alt-b {
  display: none !important;
}

/* ***** */

.fc-col-header {
  width: 100% !important;
}

.fc-daygrid-body.fc-daygrid-body-unbalanced {
  width: 100% !important;
  height: 100% !important;
}

table.fc-scrollgrid-sync-table {
  width: 100% !important;
  height: 100% !important;
}

button.accordeon-trigger {
  width: 100%;
  margin-top: 15px;
  margin-bottom: 15px;
  background-color: #8bc43e;
  border-radius: 50px !important;
}

.um-deconnexion-wrap {
  text-align: center;
  padding: 20px 0;
}

.um-deconnexion-link {
  display: inline-block;
  background: #ff4444;
  color: white !important;
  padding: 12px 25px;
  border-radius: 500px;
  transition: all 0.3s;
  text-decoration: none !important;
}

.um-deconnexion-link:hover {
  background: #cc0000;
  transform: translateY(-2px);
}

.um-deconnexion-link i {
  margin-right: 8px;
}

a.um-request-button {
  text-decoration: none !important;
}

/* Dans votre fichier de styles */
.user-info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.toggle-docs {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  color: #666;
}

.user-docs {
  padding: 10px;
  background: #f9f9f9;
  border-radius: 5px;
  margin-top: 10px;
}

.doc-item {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid #eee;
}

@media screen and (max-width: 560px) {
  .doc-item {
    flex-direction: column;
    align-items: center;
  }
}

.doc-item:last-child {
  border-bottom: none;
}

.doc-item span {
  font-weight: 500;
  margin-right: 15px;
  white-space: nowrap;
}

.fa-chevron-down {
  transition: transform 0.3s ease;
}

.fa-chevron-up {
  transform: rotate(180deg);
}

@media screen and (min-width: 601px) and (max-width: 806px) {
  .buttons-actions-resas {
    white-space: break-spaces !important;
  }
}

.docs-container .doc-item {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
}

.docs-container a.doc-view,
.docs-container a.doc-edit,
.docs-container a.doc-add,
.docs-container a.doc-send {
  color: #1e2c8b;
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid #1e2c8b !important;
  border-radius: 4px;
  margin-right: 10px;
  transition: background 0.3s, color 0.3s;
  cursor: pointer;
}

.docs-container a.doc-view,
.docs-container a.doc-edit {
  border-radius: 500px !important;
}

.docs-container a.doc-view:hover,
.docs-container a.doc-edit:hover,
.docs-container a.doc-add:hover,
.docs-container a.doc-send:hover {
  background-color: #1e2c8b;
  color: #fff;
}

.docs-container a.doc-cancel {
  color: #a00;
  border: 1px solid #a00 !important;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 4px;
  margin-right: 10px;
  transition: background 0.3s, color 0.3s;
  cursor: pointer;
}

.docs-container a.doc-cancel:hover {
  background-color: #a00;
  color: #fff;
}

.doc-upload-form {
  display: none;
  margin-top: 10px;
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 4px;
  background-color: #f9f9f9;
}

button#export_resas {
  margin-bottom: 20px;
}

.header_popup {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.resas-attente-button {
  position: relative;
  display: inline-block;
}

.resa-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: red;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.fc .past-date {
  background-color: #f2f2f2;
  /* couleur de fond différente */
  color: #999;
  /* texte atténué */
  pointer-events: none;
  /* désactive les clics */
}

.fc-daygrid-day-number {
  color: #1e2c8b !important;
}

th.fc-col-header-cell.fc-day a {
  color: #1e2c8b !important;
}

.fc-toolbar-title {
  color: #1e2c8b !important;
}

.um-account-side li a.current span.um-account-icon {
  color: #1e2c8b;
}

.annuler-resa,
.view-attestation {
  border-radius: 500px;
  background-color: #1e2c8b;
}

td.resa-action {
  text-align: center;
}

button.view-attestation {
  margin-top: 8px;
}

.fc-day-today {
  background-color: transparent !important;
}

.fc-day-today .fc-daygrid-day-frame {
  border: 2px solid #1e2c8b !important;
  border-radius: 5px;
}

@media (max-width: 600px) {
  .doc-upload-form {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .doc-upload-form .doc-file {
    margin-right: 0 !important;
    margin-bottom: 10px;
    width: 100%;
  }

  .doc-upload-form a.doc-send,
  .doc-upload-form a.doc-cancel {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 10px;
  }
}

/* petit confort quand les <td> deviennent "block" en mobile */
@media (max-width: 600px) {
  #reservations-content table td.date-range {
    width: 100%;
    display: block; /* tu as déjà display:block partout, on confirme */
    margin: 0 auto;
    font-weight: 600;
  }
}

/* Desktop / commun */
.table-resas td.date-range {
  text-align: center; /* centré dans la cellule */
  line-height: 1.4;
  padding: 8px;
}

/* MOBILE : 2 colonnes label | valeur */
@media (max-width: 600px) {
  .table-resas thead {
    display: none !important;
  }

  /* chaque ligne devient une carte */
  .table-resas tr {
    display: block;
    border: 1px solid #ddd;
    padding: 8px 12px;
    margin-bottom: 12px;
    background: #fff;
  }

  /* chaque cellule = flex : [label | valeur] */
  .table-resas td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: none; /* on neutralise le border="1" des TD */
    padding: 10px 0;
    text-align: left; /* stop au centrage global */
  }

  /* label à gauche (vient de data-label) */
  .table-resas td::before {
    content: attr(data-label);
    font-weight: 600;
    flex: 0 0 120px; /* largeur fixe du label */
    white-space: nowrap;
    text-align: left;
  }

  /* actions : boutons lisibles à droite */
  .table-resas td.resa-action {
    align-items: center;
  }
  .table-resas td.resa-action .buttons-actions-resas {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
    flex-direction: row;
  }
  .table-resas td.resa-action .buttons-actions-resas button {
    flex: 1 1 140px; /* 1 ou 2 par ligne selon la place */
  }

  table.table-resas {
    border-color: transparent;
  }
}

.table-resas td.date-range .date-chunk {
  white-space: nowrap;
  word-break: keep-all;
  hyphens: none;
}

.table-resas td.date-range .date-start,
.table-resas td.date-range .date-end {
  white-space: nowrap; /* une date ne casse jamais en plein milieu */
  display: block; /* forcer la fin sur une nouvelle ligne */
}

@media (max-width: 600px) {
  .table-resas td.date-range {
    white-space: normal; /* au lieu de nowrap */
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}
