/* ══════════════════════════════════
   MODALE PDF — Styles partagés
   ══════════════════════════════════ */

.pdf-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,20,10,0.75);
  backdrop-filter: blur(6px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.pdf-modal-overlay.open { display: flex; }

.pdf-modal {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  width: 100%;
  max-width: 800px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 40px 100px rgba(0,0,0,0.35);
  animation: modalIn .3s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes modalIn {
  from { opacity:0; transform:scale(0.93) translateY(16px); }
  to   { opacity:1; transform:scale(1) translateY(0); }
}

.pdf-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(15,31,16,.1);
  flex-shrink: 0;
  gap: 12px;
}

.pdf-modal-title {
  font-family: 'AdeDisplay', sans-serif;
  font-size: 20px;
  color: var(--green-dark);
}

.pdf-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #444;
}

.pdf-nav button {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(15,31,16,.2);
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.pdf-nav button:hover { background: #f0f0f0; }

.pdf-modal-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }

.pdf-dl-btn {
  background: var(--green-dark);
  color: #fff;
  border: none;
  padding: 9px 20px;
  border-radius: 40px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: background .2s;
}
.pdf-dl-btn:hover { background: var(--green-light); }

.pdf-close {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(15,31,16,.15);
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  transition: background .2s;
}
.pdf-close:hover { background: #f0f0f0; }

.pdf-body {
  flex: 1;
  overflow-y: auto;
  background: #525659;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  gap: 16px;
}

.pdf-body canvas {
  max-width: 100%;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  background: #fff;
}

.pdf-loading {
  color: #ccc;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  margin: 40px auto;
}
