/* =========================================
   SYBIOCARE - new-document.css (MODELE only)
========================================= */

.newdoc-page{ padding: 28px; }

.newdoc-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:16px;
  margin-bottom:18px;
}

.newdoc-title h1{
  margin:0;
  font-size:26px;
  font-weight:900;
  letter-spacing:-0.5px;
  color:#1e222d;
}

.newdoc-title p{
  margin:6px 0 0 0;
  font-size:14px;
  color:#64748b;
  font-weight:500;
}

.newdoc-actions{ display:flex; gap:10px; flex-wrap:wrap; }

.newdoc-card{
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:16px;
  padding:16px;
  box-shadow:0 8px 18px -14px rgba(0,0,0,.16);
}

.grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:12px;
  align-items:end;
}

.field label{
  display:block;
  font-size:11px;
  font-weight:900;
  color:#64748b;
  text-transform:uppercase;
  letter-spacing:.4px;
  margin-bottom:6px;
}

.field select,
.field input,
.field textarea{
  width:100%;
  border-radius:10px;
  border:1px solid #cbd5e1;
  padding:11px 12px;
  font-weight:700;
  font-size:13px;
  color:#1e222d;
  outline:none;
  background:#fcfdfe;
  min-width:0;
}

.field select{ background:#f8fafc; }

.field textarea{
  resize: vertical;
  min-height: 110px;
  line-height: 1.35;
}

.field-full{ grid-column: 1 / -1; }

.hint{
  margin:8px 0 0 0;
  color:#94a3b8;
  font-weight:700;
  font-size:12px;
}

.check{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:13px;
  font-weight:800;
  color:#334155;
  text-transform:none;
  letter-spacing:0;
  margin: 14px 0 0 0;
}

.check input{
  width:18px;
  height:18px;
  accent-color:#1e222d;
}

/* Tags */
.tags-row{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }

.tags-wrap{
  margin-top:10px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.tag-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  color:#475569;
  font-weight:900;
  font-size:12px;
}

.tag-chip button{
  border:none;
  background:transparent;
  cursor:pointer;
  color:#94a3b8;
  font-size:14px;
}

/* File */
.filebox{ display:flex; gap:12px; align-items:center; flex-wrap:wrap; }

.filebox input[type="file"]{
  flex: 0 1 340px;
  max-width: 100%;
  padding: 9px;
  background:#f8fafc;
}

.filemeta{ flex: 1 1 240px; min-width: 240px; }

.file-name{ font-weight:900; color:#1e222d; font-size:13px; }

.file-info{ margin-top:4px; color:#64748b; font-weight:700; font-size:12px; }

/* Footer */
.footer{
  margin-top:14px;
  display:flex;
  gap:10px;
  justify-content:flex-end;
  padding-top:14px;
  border-top:1px solid #f1f5f9;
}

.footer .btn{ min-width: 140px; }

/* Responsive */
@media (max-width: 1100px){
  .grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px){
  .newdoc-page{ padding: 18px; }
  .newdoc-header{ flex-direction:column; align-items:flex-start; }
  .grid{ grid-template-columns: 1fr; }
  .footer{ flex-direction:column; }
  .footer .btn{ width:100%; }
  .filemeta{ min-width: 100%; }
}

/* =========================
   Footer buttons clean
========================= */

.footer{
  margin-top:20px;
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:12px;
  padding-top:18px;
  border-top:1px solid #e2e8f0;
}

.footer .btn{
  height:44px;
  min-width:180px;
}

.btn-ghost{
  background:transparent;
  border:1px solid #cbd5e1;
  color:#475569;
  box-shadow:none;
}

.btn-ghost:hover{
  background:#f8fafc;
}

/* File input un peu plus clean */
.filebox input[type="file"]{
  border:1px solid #cbd5e1;
  border-radius:10px;
  padding:10px;
  background:#f8fafc;
  cursor:pointer;
}

/* =========================
   Bouton Retour (clean SaaS)
========================= */

.btn-back{
  display:inline-flex;
  align-items:center;
  gap:8px;
  height:44px;
  padding:0 16px;
  border-radius:10px;
  font-weight:800;
  font-size:13px;
  text-decoration:none;
  background:#ffffff;
  border:1px solid #e2e8f0;
  color:#475569;
  transition:all .15s ease;
}

.btn-back i{
  font-size:13px;
}

.btn-back:hover{
  background:#f8fafc;
  border-color:#cbd5e1;
  color:#1e222d;
  transform:translateY(-1px);
  box-shadow:0 4px 10px -6px rgba(0,0,0,0.15);
}

.btn-back:active{
  transform:translateY(0);
  box-shadow:none;
}

/* =========================
   Boutons cohérents SaaS
========================= */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  height:44px;
  padding:0 18px;
  border-radius:10px;
  font-weight:800;
  font-size:13px;
  cursor:pointer;
  border:1px solid transparent;
  transition:all .15s ease;
  text-decoration:none;
}

/* Secondaire propre */
.btn-secondary{
  background:#ffffff;
  border:1px solid #e2e8f0;
  color:#475569;
}

.btn-secondary:hover{
  background:#f8fafc;
  border-color:#cbd5e1;
  color:#1e222d;
  transform:translateY(-1px);
  box-shadow:0 4px 10px -6px rgba(0,0,0,0.15);
}

.btn-secondary:active{
  transform:translateY(0);
  box-shadow:none;
}

/* Bouton upload custom */
.file-upload-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  height:44px;
  padding:0 18px;
  border-radius:10px;
  background:#ffffff;
  border:1px solid #e2e8f0;
  color:#475569;
  font-weight:800;
  font-size:13px;
  cursor:pointer;
  transition:all .15s ease;
}

.file-upload-btn:hover{
  background:#f8fafc;
  border-color:#cbd5e1;
  color:#1e222d;
  transform:translateY(-1px);
  box-shadow:0 4px 10px -6px rgba(0,0,0,0.15);
}

.file-upload-btn:active{
  transform:translateY(0);
  box-shadow:none;
}

/* =========================================================
   SYBIOCARE - Buttons coherence + Dropzone upload
========================================================= */

/* Base btn (si ton components.css a déjà .btn, ça reste compatible) */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  height:44px;
  padding:0 16px;
  border-radius:12px;
  font-weight:900;
  font-size:13px;
  cursor:pointer;
  border:1px solid transparent;
  text-decoration:none;
  transition:transform .08s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease, color .12s ease;
}

.btn:active{ transform: translateY(1px); }

.btn-primary{
  background:#1e222d;
  color:#fff;
  box-shadow:0 10px 16px -12px rgba(0,0,0,.35);
}

.btn-primary:hover{
  box-shadow:0 14px 22px -14px rgba(0,0,0,.45);
}

.btn-secondary{
  background:#fff;
  color:#475569;
  border-color:#e2e8f0;
  box-shadow:0 2px 6px rgba(0,0,0,.04);
}

.btn-secondary:hover{
  background:#f8fafc;
  border-color:#cbd5e1;
}

.btn-danger{
  background:#fff;
  color:#b91c1c;
  border-color:#fee2e2;
}

.btn-danger:hover{
  background:#fef2f2;
  border-color:#fecaca;
}

.btn:disabled{
  opacity:.55;
  cursor:not-allowed;
  transform:none;
  box-shadow:none;
}

/* Footer align propre */
.footer{
  margin-top:18px;
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:12px;
  padding-top:16px;
  border-top:1px solid #e2e8f0;
}

.footer .btn{
  min-width: 200px;
}

/* Dropzone */
.dropzone{
  border:1px dashed #cbd5e1;
  background:#ffffff;
  border-radius:16px;
  padding:14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  cursor:pointer;
  transition:background .12s ease, border-color .12s ease, box-shadow .12s ease, transform .08s ease;
}

.dropzone:hover{
  background:#f8fafc;
  border-color:#94a3b8;
}

.dropzone.is-dragover{
  background:#eff6ff;
  border-color:#60a5fa;
  box-shadow:0 12px 22px -16px rgba(30, 64, 175, .35);
}

.dropzone:active{ transform: translateY(1px); }

.dz-left{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.dz-icon{
  width:44px;
  height:44px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f1f5f9;
  border:1px solid #e2e8f0;
  color:#334155;
  flex:0 0 auto;
}

.dz-text{
  min-width:0;
}

.dz-title{
  font-weight:900;
  color:#1e222d;
  font-size:13px;
  line-height:1.2;
}

.dz-sub{
  margin-top:4px;
  font-weight:700;
  color:#64748b;
  font-size:12px;
  line-height:1.2;
}

.dz-right{
  display:flex;
  gap:10px;
  align-items:center;
  flex:0 0 auto;
  flex-wrap:wrap;
  justify-content:flex-end;
}

/* File meta (sous la dropzone) */
.filemeta{
  margin-top:10px;
  display:flex;
  flex-direction:column;
  gap:4px;
}

.file-name{
  font-weight:900;
  color:#1e222d;
  font-size:13px;
}

.file-info{
  color:#64748b;
  font-weight:700;
  font-size:12px;
}

/* Responsive */
@media (max-width: 760px){
  .dropzone{
    flex-direction:column;
    align-items:stretch;
  }

  .dz-right{
    justify-content:stretch;
  }

  .dz-right .btn{
    flex:1;
    min-width: 0;
  }

  .footer{
    flex-direction:column;
    align-items:stretch;
  }

  .footer .btn{
    width:100%;
    min-width:0;
  }
}

/* =========================
   LOGICIEL mode (hide/show)
========================= */

.is-hidden{
  display:none !important;
}