/* ============================================================
   MES-PAGES.CSS — Dashboard Atryvia
   ============================================================ */

/* ===== HERO ===== */
.hero { padding: 72px 0 34px; position: relative; }
.hero-wrap { max-width: 920px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.56); border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--green); font-size: 13px; font-weight: 700; letter-spacing: 0.02em; margin-bottom: 18px;
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; }
.hero-title { margin: 0 0 18px; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -0.04em; font-weight: 800; color: var(--navy); }
.hero-subtitle { margin: 0; max-width: 760px; color: var(--text-light); font-size: 1.05rem; line-height: 1.7; }

/* ===== SECTION & ÉTATS ===== */
.section { padding: 42px 0 84px; }
.state-message {
  text-align: center; padding: 60px 20px;
  background: rgba(255, 255, 255, 0.78); border-radius: 30px;
  box-shadow: var(--shadow-lg); backdrop-filter: blur(16px);
  max-width: 600px; margin: 0 auto;
}
.state-message h2 { color: var(--navy); margin-bottom: 12px; }
.state-message p { color: var(--text-light); margin-bottom: 24px; }
.empty-icon { font-size: 4rem; margin-bottom: 16px; }

/* Loader */
.loader {
  width: 40px; height: 40px; border: 4px solid rgba(45, 90, 61, 0.1);
  border-top-color: var(--green); border-radius: 50%;
  animation: spin 1s linear infinite; margin: 0 auto 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== GRILLE DES PAGES ===== */
.pages-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.page-card {
  background: rgba(255, 255, 255, 0.85); border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow-lg); backdrop-filter: blur(16px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex; flex-direction: column;
}
.page-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(47, 55, 50, 0.1); }

.page-card-cover {
  height: 180px; background: rgba(45, 90, 61, 0.1);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.page-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.page-card-cover-placeholder { font-size: 3rem; opacity: 0.5; }

.page-card-type {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 10px; background: rgba(255, 255, 255, 0.9);
  border-radius: 999px; font-size: 0.75rem; font-weight: 700;
  color: var(--green); text-transform: uppercase; letter-spacing: 0.05em;
}

.page-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.page-card-title { margin: 0 0 8px; font-size: 1.25rem; font-weight: 700; color: var(--navy); }
.page-card-subtitle { margin: 0 0 16px; font-size: 0.9rem; color: var(--text-light); flex: 1; }

.page-card-stats {
  display: flex; gap: 16px; margin-bottom: 20px;
  padding-top: 16px; border-top: 1px solid rgba(109, 125, 115, 0.1);
}
.stat-item { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--text-light); }
.stat-badge {
  background: #e53e3e; color: white; font-size: 0.7rem; font-weight: 700;
  padding: 2px 6px; border-radius: 999px; margin-left: 4px;
}
.stat-badge.zero { background: rgba(109, 125, 115, 0.2); color: var(--text-light); }

.page-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-card {
  padding: 10px; border-radius: 10px; font-size: 0.85rem; font-weight: 600;
  text-align: center; text-decoration: none; cursor: pointer; border: none;
  transition: all 0.2s ease;
}
.btn-card-primary { background: var(--green); color: white; }
.btn-card-primary:hover { background: var(--green-dark); }
.btn-card-secondary { background: rgba(109, 125, 115, 0.1); color: var(--navy); }
.btn-card-secondary:hover { background: rgba(109, 125, 115, 0.2); }

/* ===== MODALS ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px); z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-content {
  background: white; border-radius: 24px; padding: 32px;
  max-width: 600px; width: 100%; max-height: 90vh; overflow-y: auto;
  position: relative; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 32px; height: 32px;
  border-radius: 50%; background: rgba(0,0,0,0.05); border: none;
  font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: rgba(0,0,0,0.1); }
.modal-subtitle { color: var(--text-light); margin-bottom: 24px; }

/* Témoignages dans la modale */
.testimonial-item {
  background: #f8f9fa; border-radius: 16px; padding: 20px; margin-bottom: 16px;
  border-left: 4px solid var(--green);
}
.testimonial-header { display: flex; justify-content: space-between; margin-bottom: 12px; }
.testimonial-author { font-weight: 600; color: var(--navy); }
.testimonial-relation { font-size: 0.85rem; color: var(--text-light); font-style: italic; }
.testimonial-content { color: var(--text-light); line-height: 1.6; margin-bottom: 16px; font-size: 0.95rem; }
.testimonial-actions { display: flex; gap: 10px; }
.btn-approve { background: var(--green); color: white; border: none; padding: 8px 16px; border-radius: 8px; font-weight: 600; cursor: pointer; }
.btn-reject { background: #e53e3e; color: white; border: none; padding: 8px 16px; border-radius: 8px; font-weight: 600; cursor: pointer; }

/* QR Code Modale */
.modal-qr { text-align: center; max-width: 400px; }
.qr-display {
  background: white; padding: 20px; border-radius: 16px;
  display: inline-block; margin: 20px 0; border: 1px solid #eee;
}
.qr-url { font-family: monospace; color: var(--text-light); font-size: 0.85rem; margin-bottom: 20px; word-break: break-all; }

/* ===== RESPONSIVE ===== */
@media (max-width: 760px) {
  .hero { padding: 46px 0 24px; }
  .hero-title { font-size: 2.4rem; }
  .page-card-actions { grid-template-columns: 1fr; }
}
/* ===== BOUTON MODÉRATION AVEC BADGE ===== */
.moderation-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.notif-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #e53e3e;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}