/* --- DROPZONE UPLOAD AREA --- */
.add-more-label {
  background: #fff0f7;
  border: 2px dashed #FF0060;
  border-radius: 10px;
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.add-more-label:hover {
  box-shadow: 0 0 8px #ff006070;
  background: #ffe4f3;
}

.dropzone-container {
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 30px;
}

.dropzone-label {
  background: #fff;
  border: 2px dashed #FF0060;
  border-radius: 10px;
  padding: 60px 40px;
  width: 600px;
  max-width: 90vw;
  text-align: center;
  color: #FF0060;
  font-size: 1.25rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: 0.2s ease;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.dropzone-label:hover {
  border-color: #d90450;
  box-shadow: 0 12px 24px rgba(255,0,96,0.10);
  background: #fdf6fa;
}

.dropzone-label i {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #FF0060;
}

.dropzone-helper {
  font-size: 0.95rem;
  color: #999;
  margin-top: 10px;
}

/* --- FICHIER UPLOADED --- */
.file-upload {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto 30px auto;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 1rem 40px;
  box-sizing: border-box;
}
.file-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}
.file-info-meta {
  font-size: 1rem;
}
.file-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.file-actions button {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  border: none;
  background: #f0f0f0;
  font-size: 1rem;
  cursor: pointer;
}
.file-actions button:hover { background: #ddd; }
.file-actions input { width: 40px; text-align: center; border-radius: 5px; border: 1px solid #ccc; }

/* --- PREVIEW FLEX LAYOUT --- */
.preview-flex, .file-preview-container {
  display: flex;
  flex-direction: row;
  margin-top: 18px;
  border: 1px solid #ececec;
  border-radius: 10px;
  background: #f9f9f9;
  padding-bottom: 18px;
  width: 100%;
}
.preview-left {
  flex: 3 3 0%;
  min-width: 340px;
  max-width: 100%;
  padding: 12px 0 0 0;
  border-right: 1.5px solid #e5e5e5;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f9f9f9;
  position: relative;
}
.preview-right {
  flex: 0 0 220px;
  max-width: 250px;
  min-width: 150px;
  padding: 12px 0 0 18px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.file-meta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 10px;
}
.file-info-box {
  background: #f6f6fb;
  border: 1px solid #ececec;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 1rem;
  color: #222;
}

/* --- PDF CANVAS & NAVIGATION --- */
.pdf-canvas {
  width: 98% !important;
  max-width: 720px;
  min-height: 380px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin: 0 auto 12px auto;
  display: block;
  z-index: 1;
}
.pdf-preview-controls {
  position: absolute;
  left: 0; right: 0;
  bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 2;
}
.preview-left:hover .pdf-preview-controls {
  pointer-events: all;
  opacity: 1;
}
.pdf-preview-controls .nav-btn {
  background: #FF0060;
  color: #fff;
  border: none;
  border-radius: 8px;
  width: 42px; height: 42px;
  font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
  box-shadow: 0 1px 3px #0000000a;
}
.pdf-preview-controls .nav-btn:hover { background: #c90048; }
.page-display {
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  min-width: 60px;
  text-align: center;
  background: #fff0f7;
  border-radius: 5px;
  padding: 4px 12px;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .preview-flex, .file-preview-container { flex-direction: column; }
  .preview-left { border-right: none; border-bottom: 1.5px solid #e5e5e5; max-width: 100%; }
  .preview-right { padding-left: 0; min-width: 0; max-width: 100%; }
  .pdf-preview-controls { bottom: 8px; }
}
@media (max-width: 600px) {
  .preview-right { min-width: 0; }
  .pdf-canvas { min-height: 180px; }
}
@media (max-width: 500px) {
  .pdf-preview-controls { gap: 4px; }
  .page-display { font-size: 0.95rem; padding: 2px 5px; }
}
