/* ============================================================
   devis-detail.css — Styles specific to devis detail page
   ============================================================ */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  margin-bottom: 1.25rem;
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-sm);
  margin-left: -0.5rem;
  transition: background var(--transition);
}
.back-link:hover { background: var(--primary-light); text-decoration: none; }
.back-link svg { width: 18px; height: 18px; }

/* Hero banner */
.devis-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: none;
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
  color: #fff;
  box-shadow: 0 6px 24px rgba(var(--primary-rgb), 0.25);
  position: relative;
  overflow: hidden;
}
.devis-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  pointer-events: none;
}
.devis-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(var(--accent-rgb), 0.3) 100%);
}
.devis-hero .devis-title { font-size: 1.3rem; font-weight: 700; color: #fff; margin: 0 0 0.35rem 0; letter-spacing: -0.01em; }
.devis-hero .devis-meta { font-size: 0.9rem; color: rgba(255,255,255,0.8); margin-bottom: 0.85rem; }
.devis-hero .devis-amount-wrap { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.devis-hero .devis-amount-label { font-size: 0.9rem; font-weight: 500; color: rgba(255,255,255,0.8); }
.devis-hero .devis-amount { font-size: 2rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; }

/* Section with margin-bottom */
.section { margin-bottom: 1.25rem; }

/* Devis docs variant */
.section.devis-docs { border-left: 3px solid var(--accent); border-top: 2px solid var(--accent); }
.section-header { font-size: 1rem; }

/* Document items */
.doc-item { gap: 1rem; padding: 0.85rem 1rem; }
.doc-item .doc-name { flex: 1; font-weight: 600; font-size: 0.95rem; color: var(--text-heading); }

/* Btn-doc override */
.btn-doc { padding: 0.4rem 0.85rem; font-size: 0.825rem; }
.btn-doc svg { width: 14px; height: 14px; }

/* Info box */
.info-box {
  background: var(--bg-warm);
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.5rem;
}
.info-box .info-title { font-size: 0.95rem; margin: 0 0 0.4rem 0; }
.info-box p { font-size: 0.9rem; }

/* Actions bar */
.actions-bar { padding: 1.25rem 0; }

/* ============================================================
   Responsive — Mobile (max-width: 768px)
   ============================================================ */

@media (max-width: 768px) {
  .devis-hero {
    padding: 1.25rem 1.25rem;
    margin-bottom: 1rem;
  }
  .devis-hero .devis-title { font-size: 1.1rem; }
  .devis-hero .devis-amount { font-size: 1.5rem; }
  .devis-hero .devis-meta { font-size: 0.85rem; }

  .back-link { font-size: 0.85rem; margin-bottom: 0.85rem; }

  .section { margin-bottom: 1rem; }
  .section-header { font-size: 0.9rem; }

  .info-box { padding: 0.85rem 1rem; margin-bottom: 1rem; }
  .info-box .info-title { font-size: 0.88rem; }
  .info-box p { font-size: 0.85rem; }
}

@media (max-width: 480px) {
  .devis-hero { padding: 1rem; }
  .devis-hero .devis-title { font-size: 1rem; }
  .devis-hero .devis-amount { font-size: 1.3rem; }
  .devis-hero .devis-amount-wrap { flex-direction: column; gap: 0.2rem; }
}
