/**
 * Dashboard Pro - Mariage de A à Z
 * Styles pour l'espace professionnel : fiche, contacts, facturation
 * 5 thèmes : Classic, Modern, Premium, Dark, Vibrant
 */

/* ========== Variables & Base ========== */
.pro-dashboard {
  --pro-sidebar-width: 260px;
  --pro-header-height: 64px;
  --pro-radius: 12px;
  --pro-radius-sm: 8px;
  --pro-shadow: 0 2px 12px rgba(0,0,0,0.06);
  --pro-shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --pro-transition: 0.2s ease;
}

.pro-dashboard * {
  box-sizing: border-box;
}

body.pro-dashboard {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #1f2933;
  background: #f0f2f5;
  min-height: 100vh;
}

/* ========== Layout ========== */
.pro-dashboard .pro-layout {
  display: flex;
  min-height: 100vh;
}

.pro-dashboard .pro-sidebar {
  width: var(--pro-sidebar-width);
  min-width: var(--pro-sidebar-width);
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: transform var(--pro-transition), background var(--pro-transition), color var(--pro-transition);
}

.pro-dashboard .pro-sidebar-brand {
  padding: 20px;
  font-weight: 700;
  font-size: 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--pro-header-height);
}

.pro-dashboard .pro-sidebar-brand i {
  font-size: 1.5rem;
}

.pro-dashboard .pro-nav {
  flex: 1;
  padding: 16px 0;
  overflow-y: auto;
}

.pro-dashboard .pro-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: inherit;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all var(--pro-transition);
  opacity: 0.9;
}

.pro-dashboard .pro-nav-item:hover {
  opacity: 1;
  background: rgba(255,255,255,0.06);
}

.pro-dashboard .pro-nav-item.active {
  opacity: 1;
  font-weight: 600;
}

.pro-dashboard .pro-nav-item i {
  font-size: 1.15rem;
  width: 24px;
  text-align: center;
}

.pro-dashboard .pro-main {
  flex: 1;
  margin-left: var(--pro-sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--pro-bg-main);
}

.pro-dashboard .pro-header {
  height: var(--pro-header-height);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--pro-bg-header);
  border-bottom: 1px solid var(--pro-border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.pro-dashboard .pro-header-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--pro-text);
}

.pro-dashboard .pro-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pro-dashboard .pro-header-actions .pro-btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--pro-bg-card);
  color: var(--pro-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--pro-transition);
}

.pro-dashboard .pro-header-actions .pro-btn-icon:hover {
  background: var(--pro-primary);
  color: #fff;
}

.pro-dashboard .pro-user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: var(--pro-radius-sm);
  cursor: pointer;
  transition: background var(--pro-transition);
}

.pro-dashboard .pro-user-menu:hover {
  background: var(--pro-bg-card);
}

.pro-dashboard .pro-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pro-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.pro-dashboard .pro-content {
  flex: 1;
  padding: 24px;
}

/* ========== Template switcher ========== */
.pro-dashboard .pro-template-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 24px;
  background: var(--pro-bg-header);
  border-bottom: 1px solid var(--pro-border);
}

.pro-dashboard .pro-template-switcher label {
  font-size: 0.8rem;
  color: var(--pro-text-muted);
  margin-right: 4px;
  align-self: center;
}

.pro-dashboard .pro-template-switcher button {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--pro-border);
  background: var(--pro-bg-card);
  color: var(--pro-text);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--pro-transition);
}

.pro-dashboard .pro-template-switcher button:hover,
.pro-dashboard .pro-template-switcher button.active {
  background: var(--pro-primary);
  color: #fff;
  border-color: var(--pro-primary);
}

/* ========== Cards & Stats ========== */
.pro-dashboard .pro-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.pro-dashboard .pro-card {
  background: var(--pro-bg-card);
  border-radius: var(--pro-radius);
  box-shadow: var(--pro-shadow);
  padding: 20px;
  border: 1px solid var(--pro-border);
  transition: box-shadow var(--pro-transition);
}

.pro-dashboard .pro-card:hover {
  box-shadow: var(--pro-shadow-lg);
}

.pro-dashboard .pro-card-title {
  font-size: 0.85rem;
  color: var(--pro-text-muted);
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.pro-dashboard .pro-card-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--pro-text);
  margin: 0;
}

.pro-dashboard .pro-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--pro-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 12px;
}

/* ========== Sections ========== */
.pro-dashboard .pro-section {
  background: var(--pro-bg-card);
  border-radius: var(--pro-radius);
  box-shadow: var(--pro-shadow);
  border: 1px solid var(--pro-border);
  margin-bottom: 24px;
  overflow: hidden;
}

.pro-dashboard .pro-section-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--pro-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.pro-dashboard .pro-section-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--pro-text);
}

.pro-dashboard .pro-section-body {
  padding: 20px;
}

/* ========== Tables ========== */
.pro-dashboard .pro-table-wrap {
  overflow-x: auto;
}

.pro-dashboard .pro-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.pro-dashboard .pro-table th,
.pro-dashboard .pro-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--pro-border);
}

.pro-dashboard .pro-table th {
  font-weight: 600;
  color: var(--pro-text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pro-dashboard .pro-table tr:hover td {
  background: var(--pro-bg-hover);
}

.pro-dashboard .pro-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.pro-dashboard .pro-badge-success { background: #d4edda; color: #155724; }
.pro-dashboard .pro-badge-warning { background: #fff3cd; color: #856404; }
.pro-dashboard .pro-badge-danger { background: #f8d7da; color: #721c24; }
.pro-dashboard .pro-badge-info { background: #cce5ff; color: #004085; }

/* ========== Buttons ========== */
.pro-dashboard .pro-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--pro-radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--pro-transition);
  text-decoration: none;
}

.pro-dashboard .pro-btn-primary {
  background: var(--pro-primary);
  color: #fff;
}

.pro-dashboard .pro-btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.pro-dashboard .pro-btn-secondary {
  background: var(--pro-bg-card);
  color: var(--pro-text);
  border: 1px solid var(--pro-border);
}

.pro-dashboard .pro-btn-secondary:hover {
  background: var(--pro-bg-hover);
}

/* ========== Forms ========== */
.pro-dashboard .pro-form-group {
  margin-bottom: 16px;
}

.pro-dashboard .pro-form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--pro-text);
  font-size: 0.9rem;
}

.pro-dashboard .pro-form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--pro-border);
  border-radius: var(--pro-radius-sm);
  font-size: 0.95rem;
  background: var(--pro-bg-main);
  color: var(--pro-text);
  transition: border-color var(--pro-transition);
}

.pro-dashboard .pro-form-control:focus {
  outline: none;
  border-color: var(--pro-primary);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

.pro-dashboard .pro-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

/* ========== Tabs (pages) ========== */
.pro-dashboard .pro-page {
  display: none;
}

.pro-dashboard .pro-page.active {
  display: block;
}

/* ========== Invoice preview ========== */
.pro-dashboard .pro-invoice-preview {
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  padding: 32px;
  border-radius: var(--pro-radius);
  box-shadow: var(--pro-shadow-lg);
  color: #333;
}

.pro-dashboard .pro-invoice-preview .inv-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 2px solid #eee;
}

.pro-dashboard .pro-invoice-preview .inv-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pro-primary);
}

.pro-dashboard .pro-invoice-preview .inv-meta {
  font-size: 0.9rem;
  color: #666;
}

.pro-dashboard .pro-invoice-preview table.inv-lines {
  width: 100%;
  margin: 24px 0;
}

.pro-dashboard .pro-invoice-preview .inv-total {
  text-align: right;
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px solid #eee;
}

/* ========== THEME 1: Classic (Élégant neutre) ========== */
.pro-dashboard.theme-classic {
  --pro-primary: #27878f;
  --pro-primary-light: #e0f2f4;
  --pro-sidebar-bg: #2c3e50;
  --pro-sidebar-text: #ecf0f1;
  --pro-bg-main: #f5f6fa;
  --pro-bg-header: #fff;
  --pro-bg-card: #fff;
  --pro-bg-hover: #f8f9fa;
  --pro-text: #1f2933;
  --pro-text-muted: #6b7a8d;
  --pro-border: #e4e7eb;
}

.pro-dashboard.theme-classic .pro-sidebar { background: var(--pro-sidebar-bg); color: var(--pro-sidebar-text); }
.pro-dashboard.theme-classic .pro-nav-item.active { border-left-color: #27878f; background: rgba(39,135,143,0.15); color: #fff; }
.pro-dashboard.theme-classic .pro-card-icon { background: #e0f2f4; color: #27878f; }

/* ========== THEME 2: Modern (Minimaliste) ========== */
.pro-dashboard.theme-modern {
  --pro-primary: #0ea5e9;
  --pro-primary-light: #e0f2fe;
  --pro-sidebar-bg: #fff;
  --pro-sidebar-text: #334155;
  --pro-bg-main: #f8fafc;
  --pro-bg-header: #fff;
  --pro-bg-card: #fff;
  --pro-bg-hover: #f1f5f9;
  --pro-text: #0f172a;
  --pro-text-muted: #64748b;
  --pro-border: #e2e8f0;
}

.pro-dashboard.theme-modern .pro-sidebar { background: var(--pro-sidebar-bg); color: var(--pro-sidebar-text); border-right: 1px solid var(--pro-border); }
.pro-dashboard.theme-modern .pro-nav-item:hover { background: #f1f5f9; }
.pro-dashboard.theme-modern .pro-nav-item.active { border-left-color: #0ea5e9; background: #e0f2fe; color: #0c4a6e; }
.pro-dashboard.theme-modern .pro-card-icon { background: #e0f2fe; color: #0ea5e9; }
.pro-dashboard.theme-modern .pro-section { border: none; }

/* ========== THEME 3: Premium (Mariage or / rose) ========== */
.pro-dashboard.theme-premium {
  --pro-primary: #b8860b;
  --pro-primary-light: #fef9e7;
  --pro-sidebar-bg: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  --pro-sidebar-text: #f5f5f5;
  --pro-bg-main: #faf8f5;
  --pro-bg-header: #fff;
  --pro-bg-card: #fff;
  --pro-bg-hover: #fef9e7;
  --pro-text: #2d2d2d;
  --pro-text-muted: #6b6b6b;
  --pro-border: #ebe6dc;
}

.pro-dashboard.theme-premium .pro-sidebar { background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%); color: var(--pro-sidebar-text); }
.pro-dashboard.theme-premium .pro-sidebar-brand { border-bottom-color: rgba(184,134,11,0.3); }
.pro-dashboard.theme-premium .pro-nav-item.active { border-left-color: #b8860b; background: rgba(184,134,11,0.15); color: #f5e6c8; }
.pro-dashboard.theme-premium .pro-card-icon { background: #fef9e7; color: #b8860b; }
.pro-dashboard.theme-premium .pro-btn-primary { background: linear-gradient(135deg, #b8860b, #d4a84b); }

/* ========== THEME 4: Dark (Professionnel sombre) ========== */
.pro-dashboard.theme-dark {
  --pro-primary: #38bdf8;
  --pro-primary-light: #0c4a6e;
  --pro-sidebar-bg: #0f172a;
  --pro-sidebar-text: #e2e8f0;
  --pro-bg-main: #1e293b;
  --pro-bg-header: #0f172a;
  --pro-bg-card: #334155;
  --pro-bg-hover: #475569;
  --pro-text: #f1f5f9;
  --pro-text-muted: #94a3b8;
  --pro-border: #475569;
}

.pro-dashboard.theme-dark .pro-sidebar { background: #0f172a; color: var(--pro-sidebar-text); }
.pro-dashboard.theme-dark .pro-nav-item.active { border-left-color: #38bdf8; background: rgba(56,189,248,0.12); color: #38bdf8; }
.pro-dashboard.theme-dark .pro-card-icon { background: rgba(56,189,248,0.2); color: #38bdf8; }
.pro-dashboard.theme-dark .pro-form-control { background: #1e293b; color: #f1f5f9; border-color: #475569; }

/* ========== THEME 5: Vibrant (Dynamique) ========== */
.pro-dashboard.theme-vibrant {
  --pro-primary: #e91e63;
  --pro-primary-light: #fce4ec;
  --pro-sidebar-bg: linear-gradient(180deg, #7c3aed 0%, #5b21b6 100%);
  --pro-sidebar-text: #fff;
  --pro-bg-main: #faf5ff;
  --pro-bg-header: #fff;
  --pro-bg-card: #fff;
  --pro-bg-hover: #fce4ec;
  --pro-text: #1f2933;
  --pro-text-muted: #6b7280;
  --pro-border: #e9d5ff;
}

.pro-dashboard.theme-vibrant .pro-sidebar { background: linear-gradient(180deg, #7c3aed 0%, #5b21b6 100%); color: #fff; }
.pro-dashboard.theme-vibrant .pro-nav-item.active { border-left-color: #e91e63; background: rgba(233,30,99,0.2); color: #fff; }
.pro-dashboard.theme-vibrant .pro-card-icon { background: #fce4ec; color: #e91e63; }
.pro-dashboard.theme-vibrant .pro-btn-primary { background: linear-gradient(135deg, #e91e63, #ec4899); }

/* ========== Responsive ========== */
@media (max-width: 992px) {
  .pro-dashboard .pro-sidebar {
    transform: translateX(-100%);
  }
  .pro-dashboard .pro-sidebar.open {
    transform: translateX(0);
  }
  .pro-dashboard .pro-main {
    margin-left: 0;
  }
  .pro-dashboard .pro-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .pro-dashboard .pro-cards {
    grid-template-columns: 1fr;
  }
  .pro-dashboard .pro-content {
    padding: 16px;
  }
  .pro-dashboard .pro-header {
    padding: 0 16px;
  }
}

/* ========== WEDDINGPRO STYLE (style de la capture) ========== */
.weddingpro-dashboard {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #1f2933;
  background: #eef0f3;
  min-height: 100vh;
}

.weddingpro-dashboard * { box-sizing: border-box; }

.wp-layout { display: flex; flex-direction: column; min-height: 100vh; }

/* Top bar */
.wp-topbar {
  height: 64px;
  background: #fff;
  border-bottom: 1px solid #e4e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Liens et boutons du topbar : pas de surlignage / soulignement par défaut */
.wp-topbar a {
  text-decoration: none;
  color: inherit;
}
.wp-topbar a:focus {
  outline: none;
}
.wp-topbar a:focus-visible {
  outline: 2px solid #e91e63;
  outline-offset: 2px;
  border-radius: 6px;
}
.wp-topbar .wp-btn-new {
  color: #fff;
}
.wp-topbar .wp-avatar {
  color: #fff;
}
.wp-topbar .wp-logo {
  color: #1f2933;
}
.wp-topbar .wp-btn-icon {
  color: #6b7a8d;
}

.wp-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: #1f2933;
}

.wp-logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.wp-logo-pro-badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 9999px;
  background: #27878f;
  color: #fff;
  font-weight: 700;
}

.wp-logo-icon { color: #27878f; font-size: 1.4rem; }

.wp-search-wrap {
  flex: 1;
  max-width: 400px;
  position: relative;
}

.wp-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7a8d;
  font-size: 0.95rem;
}

.wp-search {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border: 1px solid #e4e7eb;
  border-radius: 8px;
  font-size: 0.95rem;
  background: #f8f9fa;
  color: #1f2933;
}

.wp-search::placeholder { color: #6b7a8d; }

.wp-search:focus {
  outline: none;
  border-color: #27878f;
  background: #fff;
}

.wp-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wp-btn-new {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #27878f;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.wp-btn-new:hover { background: #1d5e64; transform: translateY(-1px); }

.wp-btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #6b7a8d;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 0.2s, color 0.2s;
}

.wp-btn-icon:hover { background: #f0f2f5; color: #1f2933; }

.wp-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: #27878f;
  border-radius: 50%;
  border: 2px solid #fff;
}

/* Icône Messages + badge "nouveaux messages" dans le header */
.wp-topbar .wp-btn-icon-msg {
  position: relative;
  overflow: visible;
}
.wp-topbar .wp-topbar-msg-badge {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  color: #fff !important;
  background: #e91e63 !important;
  border-radius: 9px;
  border: 2px solid #fff;
  box-sizing: border-box;
  z-index: 10;
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.wp-topbar .wp-btn-icon-msg .wp-dot {
  z-index: 10;
  top: 2px;
  right: 2px;
}
.wp-btn-icon-msg {
  position: relative;
}
.wp-topbar-msg-badge {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  color: #fff;
  background: #e91e63;
  border-radius: 9px;
  border: 2px solid #fff;
  box-sizing: border-box;
  z-index: 2;
  display: inline-block;
}
.wp-btn-icon-msg .wp-dot {
  z-index: 2;
}

.wp-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #27878f;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Body: sidebar + main */
.wp-body { display: flex; flex: 1; min-height: 0; }

/* Sidebar */
.wp-sidebar {
  width: 260px;
  min-width: 260px;
  background: #fff;
  border-right: 1px solid #e4e7eb;
  padding: 20px 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wp-plan-card {
  margin: 0 16px;
  padding: 16px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,0.4);
}

.wp-plan-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #1f2933;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.wp-plan-days { font-size: 0.9rem; color: #1f2933; margin-bottom: 12px; }

.wp-plan-btn {
  display: block;
  width: 100%;
  padding: 8px 12px;
  background: #27878f;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
}

.wp-plan-btn:hover { background: #1d5e64; }

.wp-nav { flex: 1; padding: 0 8px; }

.wp-nav-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #6b7a8d;
  letter-spacing: 0.06em;
  padding: 12px 12px 6px;
  margin-top: 8px;
}

.wp-nav-label:first-child { margin-top: 0; }

.wp-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #1f2933;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}

.wp-nav-item:hover { background: #f0f2f5; }

.wp-nav-item.active {
  background: #27878f;
  color: #fff;
  font-weight: 600;
}

.wp-nav-item i { width: 20px; text-align: center; font-size: 1rem; }

.wp-badge {
  margin-left: auto;
  background: #27878f;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

.wp-badge-blue { background: #2196f3; }
.wp-badge-warning { background: #f59e0b; }

/* Main */
.wp-main { flex: 1; overflow-y: auto; }

.wp-content { padding: 24px; max-width: 1400px; margin: 0 auto; }

.wp-page-title {
  margin: 0 0 4px;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2933;
}

.wp-welcome { margin: 0 0 24px; color: #6b7a8d; font-size: 0.95rem; }
.wp-empty-state { text-align: center; padding: 48px 24px; color: #6b7a8d; }
.wp-empty-state i { font-size: 3rem; color: #c4c9d4; margin-bottom: 16px; display: block; }
.wp-empty-state h3 { margin: 0 0 8px; font-size: 1.1rem; color: #1f2933; }
.wp-empty-state p { margin: 0; font-size: 0.9rem; }
.wp-meta { font-size: 0.75rem; color: #6b7a8d; }

/* Forms */
.wp-form { max-width: 560px; }
.wp-form.wp-form--wide { max-width: none; }
.wp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
@media (max-width: 640px) { .wp-form-row { grid-template-columns: 1fr; } }
.wp-form-group { margin-bottom: 20px; }
.wp-form-row .wp-form-group { margin-bottom: 0; }
.wp-required { color: #dc3545; }
.wp-form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.9rem; color: #1f2933; }
.wp-form-group input[type="text"], .wp-form-group input[type="email"], .wp-form-group input[type="number"], .wp-form-group input[type="url"], .wp-form-group select, .wp-form-group textarea { width: 100%; padding: 10px 14px; border: 1px solid #e4e7eb; border-radius: 8px; font-size: 0.95rem; box-sizing: border-box; color: #1f2933; background: #fff; }
.wp-form-group input[type="file"] { padding: 8px 0; font-size: 0.9rem; }
/* Facturation : champs tableau lignes devis - texte toujours visible */
#table-lignes input[type="number"],
#table-lignes input[type="text"],
.wp-input.fact-input-num { color: #1e293b !important; background: #fff !important; }
.wp-form-group small { display: block; margin-top: 4px; font-size: 0.8rem; color: #6b7a8d; }
.wp-muted { color: #6b7a8d; font-size: 0.9rem; }
.wp-form-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.wp-btn-danger { background: #dc3545; color: #fff; border: none; padding: 10px 18px; border-radius: 8px; font-size: 0.9rem; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.wp-btn-danger:hover { background: #c82333; color: #fff; }
.wp-btn-secondary { background: #6b7a8d; color: #fff; border: none; padding: 10px 18px; border-radius: 8px; font-size: 0.9rem; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.wp-btn-secondary:hover { background: #5a6574; color: #fff; }

/* 4 stat cards */
.wp-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.wp-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid #e4e7eb;
  position: relative;
  transition: box-shadow 0.2s;
}

.wp-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }

.wp-card-value { font-size: 1.75rem; font-weight: 700; color: #1f2933; margin-bottom: 4px; }

.wp-card-label { font-size: 0.85rem; color: #6b7a8d; margin-bottom: 8px; }

.wp-card-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
}

.wp-card-icon-pink { background: #e91e63; }
.wp-card-icon-blue { background: #2196f3; }
.wp-card-icon-green { background: #4caf50; }
.wp-card-icon-orange { background: #ff9800; }

.wp-trend {
  font-size: 0.8rem;
  font-weight: 600;
}

.wp-trend-up { color: #4caf50; }
.wp-trend-down { color: #f44336; }

/* Grid 2 columns */
.wp-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

/* Section */
.wp-section {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid #e4e7eb;
  overflow: hidden;
}

.wp-section-head {
  padding: 16px 20px;
  border-bottom: 1px solid #e4e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wp-section-title { margin: 0; font-size: 1.05rem; font-weight: 600; color: #1f2933; }

/* Titre de section aligné avec le contenu */
.wp-section > .wp-section-title {
  padding: 16px 20px;
  border-bottom: 1px solid #e4e7eb;
}

.wp-link { color: #e91e63; font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.wp-link:hover { text-decoration: underline; }

.wp-section-body { padding: 16px 20px; }

/* Bloc aide IA – génération de descriptions */
.wp-ai-help {
  background: #f8fafb;
  border: 1px solid #e4e7eb;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 24px;
  border-left: 4px solid #27878f;
}
.wp-ai-help-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.wp-ai-help-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(39, 135, 143, 0.12);
  color: #27878f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.wp-ai-help-title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 600;
  color: #1f2933;
}
.wp-ai-help-desc {
  margin: 0;
  font-size: 0.9rem;
  color: #6b7a8d;
  line-height: 1.45;
}
.wp-ai-help .wp-form-group {
  margin-bottom: 16px;
}
.wp-ai-help .wp-form-group:last-of-type {
  margin-bottom: 0;
}
.wp-ai-help label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #1f2933;
}
.wp-ai-help label .wp-ai-help-optional {
  font-weight: 500;
  color: #6b7a8d;
}
.wp-ai-help input[type="text"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e4e7eb;
  border-radius: 8px;
  font-size: 0.95rem;
  background: #fff;
  transition: border-color 0.2s;
}
.wp-ai-help input[type="text"]:focus {
  outline: none;
  border-color: #27878f;
  box-shadow: 0 0 0 3px rgba(39, 135, 143, 0.12);
}
.wp-ai-help-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
.wp-ai-help .wp-btn-new {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.wp-ai-help .wp-btn-new:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.wp-ai-help #aiSpinner {
  margin-right: 4px;
}

.wp-ai-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.wp-ai-keyword-chip {
  border: 1px solid #d0d7e2;
  background: #fff;
  color: #1f2933;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
}

.wp-ai-keyword-chip:hover {
  background: #27878f;
  border-color: #27878f;
  color: #fff;
  transform: translateY(-1px);
}

/* Events list */
.wp-event {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f2f5;
}

.wp-event:last-child { border-bottom: none; }

.wp-event-date {
  width: 56px;
  height: 56px;
  background: #fce4ec;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wp-event-mois { font-size: 0.65rem; font-weight: 700; color: #e91e63; letter-spacing: 0.02em; }
.wp-event-jour { font-size: 1.25rem; font-weight: 700; color: #1f2933; line-height: 1.2; }

.wp-event-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wp-event-info strong { font-size: 0.95rem; color: #1f2933; }
.wp-event-info span { font-size: 0.8rem; color: #6b7a8d; }

.wp-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.wp-tag-success { background: #d4edda; color: #155724; }
.wp-tag-warning { background: #fff3cd; color: #856404; }
.wp-tag-info { background: #cce5ff; color: #004085; }
.wp-tag-danger { background: #f8d7da; color: #721c24; }

.wp-btn-dots {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #6b7a8d;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.wp-btn-dots:hover { background: #f0f2f5; color: #1f2933; }

/* Galerie photos (liste fiches) */
.wp-galerie-fiches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.wp-galerie-fiche-card {
  background: #fff;
  border: 1px solid #e4e7eb;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}
.wp-galerie-fiche-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.wp-galerie-fiche-thumb {
  position: relative;
  aspect-ratio: 16/10;
  background: #f0f2f5;
  overflow: hidden;
}
.wp-galerie-fiche-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wp-galerie-fiche-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c4c9d4;
  font-size: 2.5rem;
}
.wp-galerie-fiche-count {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 6px;
}
.wp-galerie-fiche-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wp-galerie-fiche-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1f2933;
}
.wp-galerie-fiche-btn {
  margin-top: 4px;
  text-align: center;
  text-decoration: none;
}

/* Grille images galerie fiche (fiche_edit) */
.wp-galerie-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.wp-galerie-image-item {
  position: relative;
  border: 1px solid #e4e7eb;
  border-radius: var(--pro-radius-sm, 8px);
  overflow: hidden;
  background: #fff;
}
.wp-galerie-image-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}
.wp-galerie-image-item .wp-galerie-image-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #dc3545;
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s;
}
.wp-galerie-image-item .wp-galerie-image-delete:hover {
  background: #c82333;
  color: #fff;
}

/* Activity list */
.wp-activity {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f2f5;
}

.wp-activity:last-child { border-bottom: none; }

.wp-activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
}

.wp-activity-green { background: #4caf50; }
.wp-activity-blue { background: #2196f3; }
.wp-activity-orange { background: #ff9800; }
.wp-activity-yellow { background: #ffc107; color: #333; }
.wp-activity-pink { background: #e91e63; }

.wp-activity-text { font-size: 0.9rem; color: #1f2933; }
.wp-activity-time { display: block; font-size: 0.8rem; color: #6b7a8d; margin-top: 2px; }

/* Avis list */
.wp-list-unstyled { list-style: none; padding: 0; margin: 0; }
.wp-avis-item { padding: 16px 20px; border: 1px solid #e4e7eb; border-radius: 8px; margin-bottom: 12px; background: #fff; }
.wp-avis-item-pending { background: #fffbf0; border-left: 4px solid #ffc107; }
.wp-avis-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.wp-avis-note { font-weight: 600; color: #1f2933; white-space: nowrap; }
.wp-avis-stars { margin-left: 4px; }
.wp-star-on { color: #ffc107; }
.wp-star-off { color: #e4e7eb; }
.wp-avis-comment { margin: 10px 0; color: #1f2933; line-height: 1.5; }
.wp-avis-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #f0f2f5; font-size: 0.9rem; }
.wp-avis-actions { margin-left: auto; }
.wp-btn-sm { padding: 6px 12px; font-size: 0.85rem; }

/* FAQ list */
.wp-faq-item { border: 1px solid #e4e7eb; border-radius: 8px; padding: 16px 20px; margin-bottom: 12px; background: #fff; border-left: 4px solid #4caf50; }
.wp-faq-question { font-weight: 600; color: #1f2933; margin-bottom: 10px; }
.wp-faq-response { color: #6b7a8d; margin-top: 10px; padding-top: 10px; border-top: 1px solid #f0f2f5; line-height: 1.5; }
.wp-faq-actions { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }

/* Visites */
.wp-stats-row { display: flex; flex-wrap: wrap; gap: 16px; }
.wp-stat-card { background: #f0f2f5; padding: 12px 20px; border-radius: 8px; font-size: 0.9rem; }
.wp-stat-card strong { font-size: 1.25rem; color: #1f2933; }
.wp-filters-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
.wp-filters-row .wp-form-group { margin-bottom: 0; }
.wp-filters-row select { min-width: 160px; padding: 10px 14px; border: 1px solid #e4e7eb; border-radius: 8px; }
.wp-empty-state { text-align: center; padding: 48px 20px; color: #6b7a8d; }
.wp-empty-state i { font-size: 48px; color: #e4e7eb; margin-bottom: 16px; display: block; }
.wp-empty-state h3 { margin: 0 0 8px; font-size: 1.1rem; color: #1f2933; }
.wp-visitor-info { display: flex; align-items: center; gap: 12px; }
.wp-visitor-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; font-size: 0.9rem; flex-shrink: 0; }
.wp-visitor-connected { background: linear-gradient(135deg, #667eea, #764ba2); }
.wp-visitor-anonymous { background: #e4e7eb; color: #6b7a8d; }
.wp-premium-blur { filter: blur(4px); user-select: none; }
.wp-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.wp-page-link, .wp-page-current { padding: 8px 14px; border: 1px solid #e4e7eb; border-radius: 8px; text-decoration: none; color: #1f2933; font-size: 0.9rem; }
.wp-page-link:hover { background: #f0f2f5; color: #1f2933; }
.wp-page-current { background: #e91e63; color: #fff; border-color: #e91e63; }

/* Table */
.wp-table-wrap { overflow-x: auto; padding: 0 !important; }

.wp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.wp-table th,
.wp-table td { padding: 12px 20px; text-align: left; border-bottom: 1px solid #e4e7eb; }

.wp-table th {
  font-size: 0.7rem;
  font-weight: 700;
  color: #6b7a8d;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wp-table tr:hover td { background: #f8f9fa; }

/* Fiche header (tarifs, avis, faq...) */
.wp-fiche-header {
  position: relative;
  height: 160px;
  border-radius: var(--wp-radius, 12px);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.wp-fiche-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wp-fiche-header-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  padding: 20px 24px;
}
.wp-fiche-header-title { margin: 0; font-size: 1.35rem; color: #fff; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.wp-fiche-header-sub { margin: 4px 0 0; font-size: 0.9rem; color: rgba(255,255,255,0.9); }

/* Messages */
.wp-msg {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f2f5;
}

.wp-msg:last-child { border-bottom: none; }

/* Messages page: filters, cards, reply */
.wp-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 20px; }
.wp-filters select, .wp-filters input[type="text"] { padding: 8px 12px; border: 1px solid #e4e7eb; border-radius: 8px; font-size: 0.9rem; min-width: 160px; }
.wp-messages-list { display: flex; flex-direction: column; gap: 16px; }
.wp-msg-card { background: #fff; border: 1px solid #e4e7eb; border-radius: 12px; padding: 20px; }
.wp-msg-card.wp-msg-unread { border-left: 4px solid #e91e63; background: #fef6f9; }
.wp-msg-card-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.wp-msg-card-title { margin: 0; font-size: 1rem; color: #1f2933; }
.wp-msg-card-contact { display: flex; flex-wrap: wrap; gap: 12px; font-size: 0.85rem; color: #6b7a8d; margin-bottom: 12px; }
.wp-msg-card-contact a { color: #e91e63; text-decoration: none; }
.wp-msg-card-body { margin: 12px 0; padding: 12px 0; border-top: 1px solid #e4e7eb; font-size: 0.9rem; white-space: pre-wrap; }
.wp-msg-card-reply { margin-top: 12px; padding: 16px; background: #f8f9fa; border-radius: 8px; }
.wp-msg-card-reply label { display: block; margin-bottom: 8px; font-size: 0.85rem; color: #6b7a8d; }
.wp-msg-card-reply input[type="text"], .wp-msg-card-reply textarea { width: 100%; padding: 8px 12px; border: 1px solid #e4e7eb; border-radius: 6px; margin-top: 4px; box-sizing: border-box; }
.wp-msg-card-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #e4e7eb; }
.wp-btn-toggle { background: none; border: none; color: #e91e63; cursor: pointer; font-size: 0.9rem; padding: 0; display: inline-flex; align-items: center; gap: 6px; }
.wp-alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 0.9rem; }
.wp-alert-success { background: #d4edda; color: #155724; }
.wp-alert-danger { background: #f8d7da; color: #721c24; }
.wp-alert-warning { background: #fff3cd; color: #856404; }

.wp-msg-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.wp-msg-unread { background: #e91e63; color: #fff; }

.wp-msg-content { flex: 1; min-width: 0; }

.wp-msg-content strong { font-size: 0.95rem; color: #1f2933; }
.wp-msg-time { font-size: 0.8rem; color: #6b7a8d; font-weight: 400; margin-left: 6px; }
.wp-msg-content p { margin: 4px 0 0; font-size: 0.85rem; color: #6b7a8d; line-height: 1.4; }

/* ========== Messagerie (layout type inbox) ========== */
.wp-messenger {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 64px - 48px);
  min-height: 420px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e4e7eb;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.wp-messenger-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e4e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  background: #fafbfc;
}

.wp-messenger-header .wp-page-title { margin: 0; font-size: 1.25rem; }

.wp-messenger-counts {
  font-size: 0.9rem;
  color: #6b7a8d;
}

.wp-messenger-counts i { margin-right: 4px; }

.wp-messenger-toolbar {
  padding: 12px 20px;
  border-bottom: 1px solid #e4e7eb;
  background: #fff;
}

.wp-messenger-filters { margin: 0; }

.wp-messenger-panels {
  display: flex;
  flex: 1;
  min-height: 0;
}

.wp-messenger-list-panel {
  width: 360px;
  min-width: 320px;
  max-width: 420px;
  border-right: 1px solid #e4e7eb;
  display: flex;
  flex-direction: column;
  background: #f8f9fa;
  overflow: hidden;
}

.wp-messenger-list {
  flex: 1;
  overflow-y: auto;
}

.wp-messenger-list-empty {
  padding: 48px 24px;
  text-align: center;
  color: #6b7a8d;
}

.wp-messenger-list-empty i { font-size: 2.5rem; margin-bottom: 12px; opacity: 0.5; display: block; }

.wp-messenger-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #e4e7eb;
  transition: background 0.15s;
  position: relative;
  background: #fff;
}

.wp-messenger-list-item:hover { background: #f5f6f8; }

.wp-messenger-list-item.active {
  background: #fce4ec;
  border-left: 3px solid #e91e63;
}

.wp-messenger-list-item.unread { font-weight: 500; }

.wp-messenger-list-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e91e63, #ad1457);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.wp-messenger-list-item.active .wp-messenger-list-avatar { background: #ad1457; }

.wp-messenger-list-content {
  flex: 1;
  min-width: 0;
}

.wp-messenger-list-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.wp-messenger-list-top strong { font-size: 0.95rem; color: #1f2933; }

.wp-messenger-list-time {
  font-size: 0.75rem;
  color: #6b7a8d;
  flex-shrink: 0;
}

.wp-messenger-list-subject {
  display: block;
  font-size: 0.9rem;
  color: #1f2933;
  margin-top: 2px;
}

.wp-messenger-list-preview {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: #6b7a8d;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wp-messenger-list-dot {
  position: absolute;
  top: 18px;
  right: 14px;
  width: 10px;
  height: 10px;
  background: #e91e63;
  border-radius: 50%;
  flex-shrink: 0;
}

.wp-messenger-detail-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  overflow: hidden;
}

.wp-messenger-detail-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
  color: #6b7a8d;
  text-align: center;
}

.wp-messenger-detail-empty i { font-size: 4rem; margin-bottom: 16px; opacity: 0.3; }

.wp-messenger-detail-empty h2 { margin: 0 0 8px; font-size: 1.25rem; color: #1f2933; }

.wp-messenger-detail-empty p { margin: 0; font-size: 0.95rem; }

.wp-messenger-detail {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 0 24px 24px;
}

.wp-messenger-detail-header {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid #e4e7eb;
}

.wp-messenger-detail-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e91e63, #ad1457);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.wp-messenger-detail-meta { flex: 1; min-width: 0; }

.wp-messenger-detail-subject { margin: 0 0 4px; font-size: 1.15rem; color: #1f2933; }

.wp-messenger-detail-from { margin: 0; font-size: 0.9rem; color: #6b7a8d; }

.wp-messenger-detail-date { margin: 6px 0 0; font-size: 0.85rem; color: #6b7a8d; }

.wp-messenger-detail-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 12px 0;
  font-size: 0.9rem;
  color: #6b7a8d;
  border-bottom: 1px solid #f0f2f5;
}

.wp-messenger-detail-contact a { color: #e91e63; text-decoration: none; }

.wp-messenger-detail-contact i { margin-right: 6px; width: 16px; text-align: center; }

.wp-messenger-detail-body {
  padding: 20px 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #1f2933;
  white-space: pre-wrap;
  word-break: break-word;
}

.wp-messenger-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid #e4e7eb;
}

.wp-btn-messenger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #f0f2f5;
  border: 1px solid #e4e7eb;
  border-radius: 8px;
  color: #1f2933;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.wp-btn-messenger:hover { background: #e4e7eb; }

.wp-btn-messenger-danger { color: #b91c1c; border-color: #fecaca; background: #fef2f2; }

.wp-btn-messenger-danger:hover { background: #fee2e2; }

.wp-messenger-reply {
  margin-top: 8px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #e4e7eb;
}

.wp-messenger-reply h3 { margin: 0 0 16px; font-size: 1rem; color: #1f2933; }

.wp-messenger-reply-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #6b7a8d;
}

.wp-messenger-reply-input,
.wp-messenger-reply-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e4e7eb;
  border-radius: 8px;
  font-size: 0.95rem;
  margin-bottom: 14px;
  box-sizing: border-box;
  font-family: inherit;
}

.wp-messenger-reply-input:focus,
.wp-messenger-reply-textarea:focus {
  outline: none;
  border-color: #e91e63;
  box-shadow: 0 0 0 2px rgba(233,30,99,0.15);
}

.wp-messenger-reply-textarea { min-height: 100px; resize: vertical; }

@media (max-width: 900px) {
  .wp-messenger-panels { flex-direction: column; }
  .wp-messenger-list-panel {
    width: 100%;
    max-width: none;
    min-width: 0;
    max-height: 280px;
    border-right: none;
    border-bottom: 1px solid #e4e7eb;
  }
  .wp-messenger-detail-panel { min-height: 320px; }
}

/* Floating Contact (ex-Aide) */
.wp-float-contact-wrap {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
}

.wp-float-aide {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #7c4dff;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(124,77,255,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  font-size: 0.65rem;
  font-weight: 600;
  gap: 0;
  font-family: inherit;
}

.wp-float-aide i { font-size: 1.25rem; }

.wp-float-aide:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(124,77,255,0.5);
  color: #fff;
}

/* Popover "Nous contacter" */
.wp-float-contact-popover {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  min-width: 260px;
  padding: 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  border: 1px solid #e4e7eb;
}
.wp-float-contact-popover[hidden] { display: none !important; }

.wp-float-contact-title {
  margin: 0 0 4px;
  font-weight: 700;
  font-size: 1rem;
  color: #1f2933;
}
.wp-float-contact-desc {
  margin: 0 0 14px;
  font-size: 0.875rem;
  color: #64748b;
}
.wp-float-contact-whatsapp,
.wp-float-contact-email,
.wp-float-contact-faq {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s;
}
.wp-float-contact-whatsapp {
  background: #dcfce7;
  color: #166534;
  margin-bottom: 8px;
}
.wp-float-contact-whatsapp:hover { background: #bbf7d0; color: #14532d; }
.wp-float-contact-email { background: #f5f3ff; color: #7c4dff; margin-bottom: 8px; }
.wp-float-contact-email:hover,
.wp-float-contact-faq:hover { background: #ede9fe; color: #6d28d9; }
.wp-float-contact-faq { color: #475569; }
.wp-float-contact-faq:hover { color: #7c4dff; }

/* Dashboard analytics */
.wp-dash-alerts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.wp-dash-alert {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s;
}

.wp-dash-alert:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.wp-dash-alert-messages { background: #e3f2fd; color: #1565c0; border-color: #bbdefb; }
.wp-dash-alert-reservations { background: #fce4ec; color: #c2185b; border-color: #f8bbd0; }
.wp-dash-alert-collabo { background: #fff3e0; color: #e65100; border-color: #ffe0b2; }
.wp-dash-alert-notif { background: #f3e5f5; color: #7b1fa2; border-color: #e1bee7; }

.wp-dash-section-title {
  margin: 0 0 16px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f2933;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wp-dash-section-title i { color: #27878f; }

.wp-cards-wide {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.wp-card-sublabel {
  font-size: 0.78rem;
  color: #6b7a8d;
  margin-top: 2px;
}

.wp-card-highlight {
  background: linear-gradient(135deg, #27878f 0%, #1d6b72 100%);
  border-color: #27878f;
  color: #fff;
}

.wp-card-highlight .wp-card-value,
.wp-card-highlight .wp-card-label,
.wp-card-highlight .wp-card-sublabel { color: #fff; }

.wp-card-highlight .wp-card-label { opacity: 0.9; }
.wp-card-highlight .wp-card-sublabel { opacity: 0.8; }

.wp-card-icon-teal { background: #27878f; }
.wp-card-icon-purple { background: #7c4dff; }
.wp-card-icon-red { background: #f44336; }

.wp-dash-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.wp-dash-chart-box {
  background: #fff;
  border: 1px solid #e4e7eb;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.wp-dash-chart-box h3 {
  margin: 0 0 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2933;
}

.wp-dash-chart-canvas { position: relative; height: 220px; }

.wp-channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.wp-channel-item {
  background: #f8fafb;
  border: 1px solid #e4e7eb;
  border-radius: 10px;
  padding: 14px 16px;
  text-align: center;
}

.wp-channel-item i {
  font-size: 1.25rem;
  color: #27878f;
  margin-bottom: 6px;
  display: block;
}

.wp-channel-item strong {
  display: block;
  font-size: 1.35rem;
  color: #1f2933;
}

.wp-channel-item span {
  font-size: 0.78rem;
  color: #6b7a8d;
}

.wp-dash-grid-3 {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.wp-fiche-perf-row td:last-child { white-space: nowrap; }

.wp-tag-premium {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 600;
}

.wp-review-requests {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fcd34d;
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 28px;
}

.wp-review-requests-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.wp-review-requests-head h2 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #92400e;
}

.wp-review-requests-head p {
  margin: 0;
  color: #78350f;
  font-size: 0.9rem;
  line-height: 1.45;
}

.wp-review-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-top: 1px solid rgba(252, 211, 77, 0.5);
}

.wp-review-row:first-of-type { border-top: none; padding-top: 0; }

.wp-review-row-info strong { display: block; color: #1f2933; }
.wp-review-row-info span { font-size: 0.85rem; color: #64748b; }

.wp-btn-review {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  background: #27878f;
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.wp-btn-review:hover { background: #1d6b72; color: #fff; }

.wp-btn-review-outline {
  background: #fff;
  color: #27878f;
  border: 1px solid #27878f;
}

.wp-btn-review-outline:hover { background: #f0fdfa; }

.wp-review-sent {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: #16a34a;
  font-weight: 600;
}

/* WeddingPro responsive */
@media (max-width: 1200px) {
  .wp-cards { grid-template-columns: repeat(2, 1fr); }
  .wp-grid-2 { grid-template-columns: 1fr; }
  .wp-dash-charts { grid-template-columns: 1fr; }
  .wp-dash-grid-3 { grid-template-columns: 1fr; }
}

/* Bouton hamburger : masqué sur desktop */
.wp-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 102;
}
.wp-menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: #1f2933;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.wp-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.wp-menu-toggle.active span:nth-child(2) { opacity: 0; }
.wp-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Overlay sidebar (masqué par défaut) */
.wp-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 98;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.wp-sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px) {
  .wp-menu-toggle { display: flex; }
  .wp-topbar { flex-wrap: wrap; height: auto; padding: 12px 16px; }
  .wp-search-wrap { max-width: none; order: 3; width: 100%; }
  .wp-cards { grid-template-columns: 1fr; }
  .wp-body { flex-direction: column; position: relative; }
  .wp-sidebar-overlay { display: block; }
  .wp-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 85vw;
    min-width: 0;
    z-index: 99;
    border-right: 1px solid #e4e7eb;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.08);
  }
  .wp-layout.menu-open .wp-sidebar {
    transform: translateX(0);
  }
  .wp-layout.menu-open .wp-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}
@media (min-width: 769px) {
  .wp-sidebar-overlay { display: none !important; }
}

/* ========== LOGIN PAGE (même style WeddingPro) ========== */
.wp-login-page {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #1f2933;
  background: #eef0f3;
  min-height: 100vh;
}

.wp-login-page * { box-sizing: border-box; }

.wp-login-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.wp-login-header {
  height: 64px;
  background: #fff;
  border-bottom: 1px solid #e4e7eb;
  display: flex;
  align-items: center;
  padding: 0 24px;
}

.wp-login-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: #1f2933;
  text-decoration: none;
  transition: color 0.2s;
}

.wp-login-logo:hover { color: #e91e63; }

.wp-login-logo .wp-logo-icon { color: #e91e63; font-size: 1.4rem; }

.wp-login-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.wp-login-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  border: 1px solid #e4e7eb;
  overflow: hidden;
}

.wp-login-card-inner { padding: 40px; }

.wp-login-title {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2933;
}

.wp-login-subtitle {
  margin: 0 0 28px;
  font-size: 0.95rem;
  color: #6b7a8d;
}

.wp-login-alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.wp-login-alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.wp-login-form { margin-bottom: 24px; }

.wp-login-field {
  margin-bottom: 18px;
}

.wp-login-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: #1f2933;
  margin-bottom: 6px;
}

.wp-login-input-wrap {
  position: relative;
}

.wp-login-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7a8d;
  font-size: 0.95rem;
}

.wp-login-input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1px solid #e4e7eb;
  border-radius: 8px;
  font-size: 0.95rem;
  background: #f8f9fa;
  color: #1f2933;
  transition: border-color 0.2s, background 0.2s;
}

.wp-login-input::placeholder { color: #6b7a8d; }

.wp-login-input:focus {
  outline: none;
  border-color: #e91e63;
  background: #fff;
}

.wp-login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.wp-login-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #6b7a8d;
  cursor: pointer;
}

.wp-login-remember input { width: auto; }

.wp-login-forgot {
  font-size: 0.9rem;
  color: #e91e63;
  font-weight: 600;
  text-decoration: none;
}

.wp-login-forgot:hover { text-decoration: underline; }

.wp-login-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  background: #e91e63;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.wp-login-btn:hover {
  background: #d81b5c;
  transform: translateY(-1px);
}

.wp-login-footer {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid #e4e7eb;
  font-size: 0.9rem;
  color: #6b7a8d;
  text-align: center;
}

.wp-login-footer a {
  color: #e91e63;
  font-weight: 600;
  text-decoration: none;
}

.wp-login-footer a:hover { text-decoration: underline; }

.wp-login-footer-page {
  padding: 20px 24px;
  text-align: center;
  font-size: 0.85rem;
  color: #6b7a8d;
  background: #fff;
  border-top: 1px solid #e4e7eb;
}

.wp-login-footer-page p { margin: 0; }

@media (max-width: 480px) {
  .wp-login-card-inner { padding: 24px; }
  .wp-login-title { font-size: 1.3rem; }
}

/* Paiement / Premium */
.wp-list-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.wp-list-benefits li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  font-size: 0.95rem;
  color: #1f2933;
}
.wp-list-benefits li i {
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
}
.wp-pricing-card {
  border: 2px solid #e91e63;
  border-radius: 12px;
  padding: 28px;
  background: linear-gradient(135deg, #fef6f9 0%, #fff 100%);
  max-width: 420px;
}
.wp-pricing-title { margin: 0 0 8px; font-size: 1.25rem; color: #e91e63; }
.wp-pricing-sub { margin: 0; font-size: 0.9rem; color: #6b7a8d; }
.wp-pricing-amount { font-size: 2.5rem; font-weight: 700; color: #e91e63; margin: 16px 0 8px; }

/* Calendrier (disponibilités) */
.wp-cal-legend { display: flex; gap: 20px; margin-bottom: 20px; padding: 15px; background: #f8f9fa; border-radius: 10px; flex-wrap: wrap; }
.wp-cal-legend-item { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.wp-cal-legend-dot { width: 20px; height: 20px; border-radius: 4px; }
.wp-cal-legend-dot.available { background: #10b981; }
.wp-cal-legend-dot.unavailable { background: #ef4444; }
.wp-cal-legend-dot.empty { background: #fff; border: 2px solid #e4e7eb; }
.wp-cal-mode { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.wp-cal-mode-btn { padding: 10px 18px; border: 2px solid #e4e7eb; border-radius: 8px; background: #fff; cursor: pointer; font-size: 0.9rem; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s; }
.wp-cal-mode-btn:hover { border-color: #e91e63; }
.wp-cal-mode-btn.active { background: #e91e63; color: #fff; border-color: #e91e63; }
.wp-cal-mode-btn.available-mode.active { background: #10b981; border-color: #10b981; }
.wp-cal-mode-btn.unavailable-mode.active { background: #ef4444; border-color: #ef4444; }
.wp-cal-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 15px; margin-bottom: 24px; }
.wp-cal-stat { background: #f8f9fa; padding: 20px; border-radius: 10px; text-align: center; border: 1px solid #e4e7eb; }
.wp-cal-stat .value { font-size: 1.75rem; font-weight: 700; color: #1f2933; }
.wp-cal-stat .label { font-size: 0.8rem; color: #6b7a8d; margin-top: 4px; }
.wp-cal-stat.available .value { color: #10b981; }
.wp-cal-stat.unavailable .value { color: #ef4444; }
.wp-cal-month-nav { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 24px; }
.wp-cal-month-btn { padding: 10px 18px; border: 1px solid #e4e7eb; border-radius: 8px; background: #fff; cursor: pointer; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 8px; }
.wp-cal-month-btn:hover { background: #f8f9fa; border-color: #e91e63; }
.wp-cal-period { font-size: 1.1rem; font-weight: 600; color: #1f2933; }
.wp-cal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.wp-cal-month { background: #fff; border: 1px solid #e4e7eb; border-radius: 12px; overflow: hidden; }
.wp-cal-month-header { background: linear-gradient(135deg, #e91e63 0%, #ad1457 100%); color: #fff; padding: 14px; text-align: center; font-weight: 600; font-size: 0.95rem; }
.wp-cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); background: #f0f2f5; border-bottom: 1px solid #e4e7eb; font-size: 0.7rem; font-weight: 600; color: #6b7a8d; }
.wp-cal-weekday { padding: 8px 4px; text-align: center; }
.wp-cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; padding: 8px; }
.wp-cal-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 0.85rem; cursor: pointer; transition: all 0.15s; font-weight: 500; }
.wp-cal-day.empty { cursor: default; background: transparent; }
.wp-cal-day.past { color: #c4c9d4; cursor: not-allowed; background: #fafafa; }
.wp-cal-day.today { border: 2px solid #e91e63; }
.wp-cal-day.available { background: #10b981; color: #fff; }
.wp-cal-day.unavailable { background: #ef4444; color: #fff; }
.wp-cal-day.normal { background: #fff; color: #1f2933; border: 1px solid #e4e7eb; }
.wp-cal-day.normal:hover { background: #f8f9fa; }
.wp-cal-day:not(.empty):not(.past):hover { transform: scale(1.08); box-shadow: 0 2px 8px rgba(0,0,0,0.12); z-index: 1; }
.wp-cal-saving { position: fixed; top: 20px; right: 20px; background: #e91e63; color: #fff; padding: 12px 20px; border-radius: 8px; display: none; align-items: center; gap: 10px; z-index: 9999; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.wp-cal-saving.show { display: flex; }
.wp-quick-actions { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.wp-quick-btn { padding: 10px 16px; border: 1px solid #e4e7eb; border-radius: 8px; background: #fff; cursor: pointer; font-size: 0.85rem; display: inline-flex; align-items: center; gap: 6px; }
.wp-quick-btn:hover { background: #f8f9fa; }
.wp-quick-btn.available { background: #d1fae5; border-color: #10b981; color: #10b981; }

/* FAQ - Question box & Form actions */
.wp-faq-question-box {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 24px;
  border-left: 4px solid #e91e63;
  font-size: 0.95rem;
  color: #1f2933;
}
.wp-faq-question-box strong {
  color: #e91e63;
}
.wp-form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
  align-items: center;
}

/* Complétion fiche */
.wp-completion-card {
  background: linear-gradient(135deg, #f8fafc 0%, #eef6f7 100%);
  border: 1px solid #c5e4e7;
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 18px rgba(39, 135, 143, 0.08);
}
.wp-completion-card--welcome {
  border-color: #27878f;
  box-shadow: 0 8px 28px rgba(39, 135, 143, 0.14);
}
.wp-completion-card--compact {
  padding: 16px 18px;
}
.wp-completion-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.wp-completion-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fff;
  color: var(--completion-color, #27878f);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  border: 1px solid rgba(39, 135, 143, 0.15);
}
.wp-completion-text {
  flex: 1;
  min-width: 220px;
}
.wp-completion-title {
  margin: 0 0 6px;
  font-size: 1.15rem;
  color: #0f172a;
}
.wp-completion-desc {
  margin: 0;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.5;
}
.wp-completion-score {
  text-align: right;
  min-width: 90px;
}
.wp-completion-percent {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}
.wp-completion-level {
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 4px;
}
.wp-completion-bar {
  height: 10px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin: 16px 0 0;
}
.wp-completion-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}
.wp-completion-missing {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(39, 135, 143, 0.12);
}
.wp-completion-missing-title {
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
}
.wp-completion-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.wp-completion-checklist li {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
}
.wp-completion-checklist a {
  color: #27878f;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.wp-completion-checklist a:hover {
  text-decoration: underline;
}
.wp-completion-checklist small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.4;
}
.wp-completion-foot {
  margin-top: 16px;
}
.wp-completion-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.wp-completion-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 110px;
}
.wp-completion-mini-bar {
  flex: 1;
  height: 7px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  min-width: 64px;
}
.wp-completion-mini-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
}
.wp-completion-mini-label {
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Panneaux repliables (dashboard) */
.wp-collapsible {
  position: relative;
}
.wp-collapsible-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.wp-collapsible-toggle {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(39, 135, 143, 0.25);
  border-radius: 8px;
  background: #fff;
  color: #27878f;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.2s ease;
}
.wp-collapsible-toggle:hover {
  background: #f0fdfa;
}
.wp-collapsible.is-collapsed .wp-collapsible-toggle i {
  transform: rotate(180deg);
}
.wp-collapsible-body {
  overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.2s ease, margin 0.2s ease;
  max-height: 5000px;
  opacity: 1;
}
.wp-collapsible.is-collapsed .wp-collapsible-body {
  max-height: 0;
  opacity: 0;
  margin-top: 0 !important;
  pointer-events: none;
}
.wp-collapsible.is-collapsed .wp-collapsible-body > * {
  display: none;
}
.wp-collapsible--nested.is-collapsed .wp-completion-head {
  margin-bottom: 0;
}
.wp-collapsible--nested .wp-collapsible-body {
  padding-top: 4px;
}
.wp-completion-group {
  background: linear-gradient(135deg, #f8fafc 0%, #eef6f7 100%);
  border: 1px solid #c5e4e7;
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 24px;
}
.wp-completion-group-head {
  align-items: center;
}
.wp-completion-group-head-text {
  flex: 1;
  min-width: 0;
}
.wp-completion-group .wp-completion-title {
  margin: 0 0 4px;
  font-size: 1.1rem;
}
.wp-completion-group .wp-completion-desc {
  margin: 0;
  font-size: 0.88rem;
}
.wp-completion-score--sm .wp-completion-percent {
  font-size: 1.5rem;
}
.wp-completion-fiches-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.wp-completion-card--nested {
  margin-bottom: 0;
  padding: 14px 16px;
  box-shadow: none;
  border: 1px solid #dbeafe;
  background: #fff;
}
.wp-completion-card--nested .wp-completion-title {
  font-size: 1rem;
  margin: 0;
}
.wp-completion-desc--inline {
  margin: 2px 0 0;
  font-size: 0.82rem;
}
.wp-completion-card--nested .wp-completion-icon {
  width: 40px;
  height: 40px;
  font-size: 1rem;
}
.wp-completion-card--nested .wp-completion-percent {
  font-size: 1.35rem;
}
.wp-completion-group-foot {
  margin: 14px 0 0;
  font-size: 0.88rem;
}
.wp-review-requests .wp-collapsible-header {
  margin-bottom: 0;
}
.wp-review-requests.is-collapsed {
  padding-bottom: 18px;
}
.wp-review-requests:not(.is-collapsed) .wp-collapsible-body {
  margin-top: 18px;
}
.wp-review-requests .wp-collapsible-toggle {
  border-color: rgba(245, 158, 11, 0.35);
  color: #b45309;
}

/* Filtre fiche + blocs stats dashboard */
.wp-dash-fiche-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding: 14px 18px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #eef6f7 100%);
  border: 1px solid #c5e4e7;
  border-radius: 12px;
}
.wp-dash-fiche-filter-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.wp-dash-fiche-filter-form label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
  margin: 0;
  white-space: nowrap;
}
.wp-dash-fiche-filter-form label i {
  color: #27878f;
  margin-right: 4px;
}
.wp-dash-fiche-filter-form select {
  min-width: 220px;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.9rem;
  background: #fff;
}
.wp-dash-fiche-filter-active {
  font-size: 0.88rem;
  color: #475569;
}
.wp-dash-fiche-filter-hint {
  font-size: 0.85rem;
  color: #64748b;
  flex: 1;
  min-width: 200px;
}
.wp-dash-stats-block {
  margin-bottom: 24px;
  padding: 16px 18px 4px;
  background: #fff;
  border: 1px solid #e4e7eb;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.wp-dash-stats-block.is-collapsed {
  padding-bottom: 16px;
}
.wp-dash-stats-header {
  align-items: center;
  margin-bottom: 16px;
}
.wp-dash-stats-block.is-collapsed .wp-dash-stats-header {
  margin-bottom: 0;
}
.wp-dash-stats-header-meta {
  margin-left: auto;
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 600;
}
.wp-dash-perf-block .wp-section {
  margin-bottom: 0;
}
.wp-dash-perf-block .wp-fiche-perf-row.is-active {
  background: #f0fdfa;
}
.wp-msg-fiche {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #27878f;
  background: #e6f7f8;
  border-radius: 999px;
  vertical-align: middle;
}
