/* ============================================================
   MODAL OVERLAY
============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay[hidden] { display: none; }

.modal-content {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  max-width: 560px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-content h3 {
  font-size: 1.5rem;
  color: #0d2d5a;
  margin-bottom: 8px;
}

.modal-content > p {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
}

.modal-close:hover { color: #0d2d5a; }

body.modal-open { overflow: hidden; }

/* ============================================================
   HERO BACKGROUND (fallback gradient if no image)
============================================================ */
.hero-bg {
  background: linear-gradient(135deg, #0d2d5a 0%, #1a4a7a 50%, #1a9baa 100%);
}

/* ============================================================
   CONTACT PAGE
============================================================ */
.contact-page-section { padding: 100px 0; }

/* ============================================================
   ABOUT PAGE - Legal info
============================================================ */
.legal-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.legal-info-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #e2e8f0;
}

.legal-info-card h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
  margin-bottom: 8px;
}

.legal-info-card p {
  color: #0d2d5a;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ============================================================
   PAGINATION
============================================================ */
.nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  color: #0d2d5a;
  border: 1.5px solid #e2e8f0;
  transition: all 0.2s;
}

.page-numbers:hover,
.page-numbers.current {
  background: #1a9baa;
  color: #fff;
  border-color: #1a9baa;
}

/* ============================================================
   PRINT STYLES
============================================================ */
@media print {
  #site-header, .floating-buttons, #devis-modal { display: none !important; }
  body { color: #000; }
}
