/* ═══ Réalisations ════════════════════════════════════════════ */

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 4vw, 52px);
}

.work-grid .work-card__title { font-size: clamp(1.25rem, 1.9vw, 1.5rem); }

/* ── Fiche plein écran ───────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(22, 23, 58, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.modal--open { opacity: 1; visibility: visible; }

.modal__panel {
  position: relative;
  width: min(1040px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--paper);
  border-radius: var(--r);
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  transform: translateY(14px);
  transition: transform 0.32s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.modal--open .modal__panel { transform: none; }

.modal__media {
  background: var(--ink);
  border-top-left-radius: var(--r);
  border-bottom-left-radius: var(--r);
  overflow: hidden;
  min-height: 260px;
}

.modal__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.modal__body {
  padding: clamp(28px, 3.5vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.modal__title {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 500;
  line-height: 1.12;
  color: var(--ink);
}

.modal__desc {
  font-size: 0.98rem;
  line-height: 1.72;
  color: var(--ink-70);
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.modal__close:hover { background: var(--brand); }

@media (max-width: 860px) {
  .work-grid { grid-template-columns: 1fr; }

  .modal__panel { grid-template-columns: 1fr; }

  .modal__media {
    aspect-ratio: 16 / 10;
    min-height: 0;
    border-radius: var(--r) var(--r) 0 0;
  }
}
