/**
 * Page projet.php — écran Projet (Déneigement, Projet, Transport)
 * Header : mêmes classes que Notes — .formulaire-header + .formulaire-header-feuille-temps (base.css, feuille-temps.css)
 */

/* Barre titre Projet (titre + pagination + sync) : padding-top = hauteur équivalente sous l’encoche (#app-container applique déjà safe-area). */
#projet-screen.projet-screen.screen {
  --projet-equal-gap: clamp(8px, 2.2vh, 24px);
  /* Sous-estimer = bande beige ; trop haut = vide entre header blanc et bandeau noir. */
  --projet-header-offset-bar: clamp(48px, 10vw + 18px, 72px);
  --projet-header-total-height: calc(env(safe-area-inset-top, 0px) + var(--projet-header-offset-bar));
  /* note-search-bg 2 px + note-search-wrap 14 px + Détail/Vue : aligné ancienne baseline app. */
  --projet-sticky-controls-h: clamp(7.05rem, 21vmin, 9.95rem);
  height: 100%;
  min-height: 0;
  padding: 0 !important;
  padding-top: var(--projet-header-offset-bar) !important;
  padding-bottom: 0 !important;
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  overflow-x: hidden;
  overscroll-behavior: none;
  background: url('../../images/app-bg.png') no-repeat center bottom / cover;
  background-attachment: fixed;
}

/* Barre haute = styles globaux ; pleine largeur comme Notes (pas de max-width ici).
 * Sans bordure basse : transition directe blanc → noir du bandeau recherche (comme capture Employé). */
#projet-screen .projet-header.formulaire-header {
  max-width: none;
  margin: 0;
  border-bottom: none;
}

#projet-screen .projet-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Zone contenu sous le header : pas de padding-top (évite un vide entre bandeau annonce fixe et recherche ; l’écran a déjà le retrait header) */
#projet-screen .projet-content {
  flex: 1;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  padding-top: 0;
  padding-left: 0;
  padding-right: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: var(--projet-equal-gap);
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

#projet-screen .projet-main {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  -webkit-min-height: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0;
  box-sizing: border-box;
  /* Espace pour le footer fixe (onglets + éventuellement Précédent/Suivant) — coh. device-adaptive + #note-screen */
  padding-bottom: calc(100px + max(8px, env(safe-area-inset-bottom, 0px)));
}

.projet-panel {
  display: none;
}
#projet-screen .projet-panel.active {
  display: flex;
}
.projet-panel[hidden] {
  display: none !important;
}
#projet-screen .projet-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  flex: 1 1 0%;
  min-height: 0;
  -webkit-min-height: 0;
  overflow: hidden;
}
#projet-screen .projet-panel.active {
  display: flex;
  flex: 1;
  flex: 1 1 0%;
  min-height: 0;
  -webkit-min-height: 0;
  overflow: hidden;
}
/* Bandeau recherche + en-têtes colonnes : fixe, fond noir (titres section retirés du DOM) */
#projet-screen .projet-panel-sticky-header {
  flex: 0 0 auto;
  flex-shrink: 0;
  position: sticky;
  position: -webkit-sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-bottom: 0;
  overflow: hidden;
  background: #000;
  color: #fff;
  box-sizing: border-box;
}
#projet-screen .projet-section-list {
  display: flex;
  flex-direction: column;
  flex: 1;
  flex: 1 1 0%;
  min-height: 0;
  -webkit-min-height: 0;
  overflow: hidden;
  margin-bottom: 0;
}
#projet-screen .projet-list-search-wrap {
  flex-shrink: 0;
  margin-bottom: 0;
  margin-top: 0;
}
#projet-screen .projet-section-list {
  margin-top: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
#projet-screen .projet-panel-sticky-header .projet-list-search-wrap {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
  /* Padding identique Employé / #projet-screen .note-search-wrap (note.css) — pas de surcharge ici. */
}

/* Ligne d’en-têtes (# / Détail) : même <table> que les données → colonnes alignées */
/* Masquer le thead du tableau des données sur web (évite doublon avec projet-fixed-col-header) */
#projet-screen .projet-section-list .projet-sheet-table thead {
  display: none;
}
#projet-screen .projet-fixed-col-header {
  display: none;
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  flex-shrink: 0;
  margin: 0;
  border-spacing: 0;
}
#projet-screen .projet-panel-sticky-header .projet-fixed-col-header {
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0;
  width: 100%;
  max-width: 100%;
  display: table;
  box-sizing: border-box;
}
#projet-screen .projet-panel-sticky-header .projet-fixed-col-header th {
  font-weight: 600;
  font-size: 1.1rem;
  color: #1a1a1a;
  background: #c7a026;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: none;
}
#projet-screen .projet-fixed-col-header th {
  font-weight: 600;
  font-size: 1.1rem;
  color: #374151;
  background: #c7a026;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.08);
}
/*
 * Bande Détail/Vue : même couple de largeurs que le tableau données (voir .projet-col-num / .projet-col-detail),
 * mais sans max-width qui tronquait la barre sur grand écran.
 */
#projet-screen .projet-fixed-col-header th.projet-col-num {
  max-width: none;
}
/* Liste scrollable : occupe toute la hauteur jusqu’à la barre Précédent/Suivant */
#projet-screen .projet-section-list > .conformite-list {
  flex: 1;
  flex: 1 1 0%;
  min-height: 0;
  -webkit-min-height: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
#projet-screen .projet-section-list > .conformite-empty {
  flex-shrink: 0;
  margin: 0.5rem 0;
  margin-top: 0.75rem;
  padding-left: max(16px, env(safe-area-inset-left, 16px));
  padding-right: max(16px, env(safe-area-inset-right, 16px));
  box-sizing: border-box;
}

/* Champ + ligne 2 px : comme Employé (gestion-compte.css) ; bandeaux dans note.css (#projet-screen .note-search-bg / .note-search-wrap). */

#projet-screen .projet-placeholder {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0.5rem 0;
}

/* Page Projet - accordéon par onglet (Déneigement, Projet, Transport) */
#projet-screen .projet-accordion {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
#projet-screen .projet-accordion-item {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: none;
  background: #fff;
  border-radius: 0;
}
#projet-screen .projet-accordion-item:first-child {
  border-radius: 10px 10px 0 0;
}
#projet-screen .projet-accordion-item:last-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0 0 10px 10px;
}
#projet-screen .projet-accordion-item:only-child {
  border-radius: 10px;
}
#projet-screen .projet-accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 14px 16px;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  background: #fff;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
#projet-screen .projet-accordion-header:hover {
  background: rgba(0, 0, 0, 0.02);
}
#projet-screen .projet-accordion-item-open .projet-accordion-header {
  background: rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
#projet-screen .projet-accordion-title {
  flex: 1;
}
#projet-screen .projet-sheet-id-label {
  color: #9ca3af;
  font-size: 0.75rem;
  font-weight: 400;
  margin-left: 0.35em;
}
#projet-screen .projet-accordion-icon {
  flex-shrink: 0;
  width: 24px;
  position: relative;
  color: #6b7280;
}
#projet-screen .projet-accordion-icon::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 8px;
  margin: -5px 0 0 -4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
#projet-screen .projet-accordion-item-open .projet-accordion-icon::after {
  transform: rotate(-135deg);
}
#projet-screen .projet-accordion-panel {
  overflow: hidden;
}
#projet-screen .projet-accordion-panel[hidden] {
  display: none;
}
#projet-screen .projet-accordion-content {
  padding: 12px 16px 16px;
  background: rgba(0, 0, 0, 0.02);
  border-top: none;
}
#projet-screen .projet-sheet-loading {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}
#projet-screen .projet-sheet-table-wrap {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: visible;
  min-height: 0;
}
#projet-screen .projet-sheet-table-wrap.projet-list-only-wrap {
  overflow: visible;
}
#projet-screen .projet-sheet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.05rem;
}
#projet-screen .projet-sheet-table th,
#projet-screen .projet-sheet-table td {
  padding: 0.45rem 0.5rem;
  text-align: left;
}
#projet-screen .projet-sheet-table thead {
  position: sticky;
  top: 0;
  z-index: 5;
}
#projet-screen .projet-sheet-table th {
  font-weight: 600;
  font-size: 1.1rem;
  color: #374151;
  background: #c7a026;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  position: sticky;
  top: 0;
  z-index: 5;
  box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.08);
}
#projet-screen .projet-sheet-table td {
  color: #1a1a1a;
  font-size: 1.05rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
#projet-screen .projet-sheet-table tbody tr.projet-row-recent {
  background-color: rgba(0, 0, 0, 0.06);
}
#projet-screen .projet-sheet-table tbody tr.projet-row-recent td {
  background-color: transparent;
}
#projet-screen .projet-sheet-table th.projet-col-num,
#projet-screen .projet-sheet-table td.projet-col-num {
  width: 52%;
  min-width: 7.5rem;
  padding: 0.5rem 0.55rem;
  text-align: left;
  vertical-align: top;
  font-size: 0.82rem;
  line-height: 1.35;
}
#projet-screen .projet-sheet-table th.projet-col-num {
  font-size: 0.95rem;
  text-align: left;
  vertical-align: middle;
}
/* Colonne # : identifiant, adresse, # du projet (empilé) */
#projet-screen .projet-sheet-table td.projet-col-num--stack .projet-num-stack {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
}
#projet-screen .projet-sheet-table td.projet-col-num--stack .projet-num-stack-line {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.08rem;
}
#projet-screen .projet-sheet-table td.projet-col-num--stack .projet-num-stack-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #6b7280;
}
#projet-screen .projet-sheet-table td.projet-col-num--stack .projet-num-stack-val {
  font-size: 0.88rem;
  font-weight: 600;
  color: #111827;
  word-break: break-word;
  max-width: 100%;
}
#projet-screen .projet-sheet-table th.projet-col-detail,
#projet-screen .projet-sheet-table td.projet-col-detail {
  width: 15%;
  min-width: 3rem;
  white-space: nowrap;
  text-align: left;
  vertical-align: middle;
  padding: 0.5rem 0.6rem;
  font-size: 1.1rem;
}
#projet-screen .projet-sheet-table th.projet-col-detail {
  font-size: 1.15rem;
}
#projet-screen .projet-header-pagination-size {
  flex-shrink: 0;
  height: 36px;
  min-width: 52px;
  padding: 0 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #1a1a1a;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 26px;
}
#projet-screen .projet-header-pagination-size:hover,
#projet-screen .projet-header-pagination-size:focus {
  outline: none;
  border-color: #d4a017;
}
#projet-screen .projet-header-sync-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: linear-gradient(145deg, #e0b030 0%, #c9a227 50%, #b8921e 100%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: #1a1a1a;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
#projet-screen .projet-header-sync-btn:hover {
  background: linear-gradient(145deg, #c9a227 0%, #b8921e 100%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}
#projet-screen .projet-header-sync-btn:active {
  transform: scale(0.98);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
#projet-screen .projet-header-sync-btn .projet-header-sync-icon,
#projet-screen .projet-header-sync-btn svg,
#projet-screen .projet-header-sync-btn img {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
  color: #1a1a1a;
}
#projet-screen .projet-header-sync-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: linear-gradient(145deg, #a88a28 0%, #96781e 100%);
  color: #4a4a4a;
  transform: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
#projet-screen .projet-header-add-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: linear-gradient(145deg, #e0b030 0%, #c9a227 50%, #b8921e 100%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: #1a1a1a;
  cursor: pointer;
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
#projet-screen .projet-header-add-btn:hover:not(:disabled) {
  background: linear-gradient(145deg, #c9a227 0%, #b8921e 100%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}
#projet-screen .projet-header-add-btn:active:not(:disabled) {
  transform: scale(0.98);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
#projet-screen .projet-header-add-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: linear-gradient(145deg, #a88a28 0%, #96781e 100%);
  color: #4a4a4a;
  transform: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.projet-add-local-modal.projet-cell-preview-modal {
  width: min(520px, 92vw);
  max-height: min(85vh, 640px);
}
.projet-add-local-title {
  margin: 0 2rem 0.5rem 0;
  font-size: 1.15rem;
  color: #1a1a1a;
}
.projet-add-local-hint {
  margin: 0 2rem 1rem 0;
  font-size: 0.88rem;
  color: #6b7280;
  line-height: 1.4;
}
.projet-add-local-fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
  max-height: 50vh;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.projet-add-local-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.35rem;
}
.projet-add-local-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  font-size: 1rem;
  color: #1a1a1a;
  background: #fff;
}
.projet-add-local-field input:focus {
  outline: none;
  border-color: #c9a227;
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.25);
}
.projet-add-local-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}
/* Pagination Précédent / Suivant : même bandeau bas que Notes (#note-screen .note-bottom-bar) */
#projet-screen #projet-pagination-bar.projet-footer-pagination {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px 8px;
  margin: 0;
  background: transparent;
  border-bottom: 1px solid var(--border, rgba(0, 0, 0, 0.08));
}
#projet-screen #projet-pagination-bar[hidden] {
  display: none !important;
}
#projet-screen .projet-pagination-prev,
#projet-screen .projet-pagination-next {
  flex: 1;
  max-width: 180px;
  min-width: 0;
  min-height: 44px;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted, #6b7280);
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border, rgba(0, 0, 0, 0.1));
  border-radius: 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
#projet-screen .projet-pagination-prev:hover:not(:disabled),
#projet-screen .projet-pagination-next:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.12);
  color: #1a1a1a;
}
#projet-screen .projet-pagination-prev:disabled,
#projet-screen .projet-pagination-next:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.projet-archive-modal {
  max-width: 400px;
  width: 100%;
}
.projet-archive-title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}
.projet-archive-desc {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: #6b7280;
}
.projet-archive-list {
  overflow-y: auto;
  padding: 0.5rem 0;
}
.projet-archive-loading,
.projet-archive-no-match {
  font-size: 0.9rem;
  color: #1a1a1a;
  padding: 0.75rem 0;
}
.projet-archive-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  cursor: pointer;
}
.projet-archive-row-item {
  cursor: default;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  color: #1a1a1a;
  border-left: 3px solid rgba(34, 197, 94, 0.5);
  border-radius: 4px;
}
.projet-archive-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}
#projet-screen .projet-cell-eye {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: inherit;
  cursor: pointer;
}
#projet-screen .projet-detail-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  flex-wrap: nowrap;
}
#projet-screen .projet-cell-eye:hover {
  background: rgba(0, 0, 0, 0.06);
}
#projet-screen .projet-cell-eye:active {
  background: rgba(0, 0, 0, 0.1);
}
#projet-screen .projet-cell-eye svg {
  width: 16px;
}
#projet-screen .projet-cell-eye .projet-cell-eye-icon,
#projet-screen .projet-cell-eye img {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
}
#projet-screen .projet-cell-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  padding: 0;
  background: rgba(220, 53, 69, 0.15);
  border: 1px solid rgba(220, 53, 69, 0.4);
  border-radius: 6px;
  color: #dc3545;
  cursor: pointer;
}
#projet-screen .projet-cell-delete svg {
  width: 16px;
}
.projet-cell-preview-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}
.projet-cell-preview-overlay[hidden] {
  display: none !important;
}
.projet-cell-preview-overlay:not([hidden]) {
  display: flex;
}
.projet-cell-preview-modal {
  position: relative;
  background: #fff;
  border-radius: 12px;
  max-width: 90vw;
  overflow: auto;
  padding: 1.25rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}
.projet-cell-preview-close {
  position: absolute;
  right: 0.75rem;
  width: 36px;
  padding: 0;
  border: none;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #374151;
}
.projet-cell-preview-close:hover {
  background: rgba(0, 0, 0, 0.12);
}
.projet-cell-preview-content {
  padding-right: 2rem;
  font-size: 1rem;
  color: #1a1a1a;
  word-break: break-word;
}
.projet-cell-preview-content .projet-detail-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.projet-cell-preview-content .projet-detail-row:last-child {
  border-bottom: none;
}
.projet-cell-preview-content .projet-detail-label {
  font-weight: 600;
  color: #374151;
  min-width: 8rem;
}
.projet-cell-preview-content .projet-detail-value {
  flex: 1;
  min-width: 0;
}
.projet-cell-preview-content .projet-detail-empty {
  color: #6b7280;
  margin: 0;
  font-style: italic;
}
.projet-cell-preview-open-photos {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
  border: none;
  border-radius: 8px;
  background: #1a6fd6;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-sizing: border-box;
}
.projet-cell-preview-open-photos:hover {
  filter: brightness(1.05);
}
.projet-cell-preview-open-photos:active {
  filter: brightness(0.97);
}
