/* ==========================================================================
   J.A. CHAPES SÀRL — Chantiers
   --------------------------------------------------------------------------
   Format des cartes chantiers et fenêtre de détail (modale).
   Les @keyframes utilisées ici se trouvent dans animations.css.
   ========================================================================== */

/* Aspect différent pour les chantiers (plus large) */
.cards--projects .card { aspect-ratio: 4 / 3; }

/* ==========================================================================
   12. CHANTIERS — fenêtre de détail
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
}
.modal.is-open { display: flex; }

.modal__box {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: 880px;
  max-height: 88vh;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.8);
  animation: modal-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}


.modal__img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }

.modal__body { padding: 30px; overflow-y: auto; }
.modal__place {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
}
.modal__title { margin-top: 10px; font-size: 1.5rem; }
.modal__date { margin-top: 8px; font-size: 14px; color: var(--muted); }
.modal__list { margin: 20px 0 24px; padding: 0; list-style: none; }
.modal__list li {
  margin-bottom: 8px;
  padding-left: 14px;
  border-left: 2px solid rgba(255, 106, 26, 0.5);
  font-size: 14px;
  color: var(--muted);
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
}
.modal__close:hover { background: rgba(0, 0, 0, 0.75); }
