/* =============================================
   PARTIR ENSEMBLE - Modern Stylesheet
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --primary: #1a6b5a;
  --primary-dark: #124d41;
  --primary-light: #2a9278;
  --accent: #f4a735;
  --accent-dark: #d4891f;
  --gold: #c9a84c;
  --dark: #0f1c19;
  --dark2: #1b2e2a;
  --mid: #2e4a44;
  --light: #f8faf9;
  --light2: #eef4f2;
  --text: #1e2d2a;
  --text-muted: #6b8a83;
  --border: #d0e4df;
  --white: #ffffff;
  --bg: #f4f6fb;
  --danger: #e74c3c;
  --success: #27ae60;
  --warning: #f39c12;
  --info: #2980b9;
  --shadow-sm: 0 2px 8px rgba(26,107,90,0.08);
  --shadow: 0 4px 24px rgba(26,107,90,0.12);
  --shadow-lg: 0 12px 48px rgba(26,107,90,0.18);
  --radius: 16px;
  --radius-sm: 8px;
  --radius-xl: 28px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--light);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.3;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }

img { max-width: 100%; height: auto; }

/* ====== NAVBAR ====== */
.navbar-pe {
  background: rgba(15,28,25,0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0 0;
  position: sticky;
  top: 0;
  z-index: 1050;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.navbar-pe .navbar-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white) !important;
  letter-spacing: -0.5px;
}

.navbar-pe .navbar-brand span {
  color: var(--accent);
}

.navbar-pe .nav-link {
  color: rgba(255,255,255,0.8) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  letter-spacing: 0.3px;
}

.navbar-pe .nav-link:hover {
  color: var(--accent) !important;
  background: rgba(244,167,53,0.08);
}

.navbar-pe .nav-link.active {
  color: var(--accent) !important;
}

.btn-nav-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--dark) !important;
  font-weight: 600 !important;
  border-radius: 50px !important;
  padding: 0.45rem 1.4rem !important;
  font-size: 0.85rem !important;
}

.btn-nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(244,167,53,0.4);
}

.navbar-toggler {
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.35rem 0.6rem;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ====== HERO ====== */
.hero-section {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 40%, var(--mid) 100%);
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(42,146,120,0.15) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(244,167,53,0.1) 0%, transparent 40%),
                    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232a9278' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(244,167,53,0.15);
  border: 1px solid rgba(244,167,53,0.3);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.6s ease;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 1.2rem;
  animation: fadeInUp 0.7s ease 0.1s both;
}

.hero-title .highlight {
  color: var(--accent);
  font-style: italic;
}

.hero-subtitle {
  color: rgba(255,255,255,0.65);
  font-size: 1.1rem;
  max-width: 500px;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.7s ease 0.2s both;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s ease 0.3s both;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3.5rem;
  animation: fadeInUp 0.7s ease 0.4s both;
}

.hero-stat-item {
  text-align: center;
  border-left: 2px solid rgba(244,167,53,0.3);
  padding-left: 1.2rem;
}

.hero-stat-item:first-child { border-left: none; padding-left: 0; }

.hero-stat-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
}

.hero-stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ====== BUTTONS ====== */
.btn-primary-pe {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary-pe:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,107,90,0.35);
  color: var(--white);
}

.btn-accent-pe {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--dark);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-accent-pe:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(244,167,53,0.4);
  color: var(--dark);
}

.btn-outline-pe {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
  padding: 0.72rem 2rem;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline-pe:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}

/* Variante fond clair (cards, sidebar) */
.btn-outline-pe-light {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  padding: 0.72rem 2rem;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-outline-pe-light:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* ====== CARDS ====== */
.card-pe {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.card-pe:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(26,107,90,0.2);
}

.card-pe .card-img-wrap {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.card-pe .card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-pe:hover .card-img-wrap img { transform: scale(1.05); }

.card-pe .card-body-pe { padding: 1.4rem; }

.badge-destination {
  background: var(--primary);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-pinned {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--dark);
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-certified {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-admin-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, var(--gold), #a07830);
  color: white;
  padding: 2px 8px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
}

.badge-admin-verified i { font-size: 0.65rem; }

.announcement-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.8rem 0;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.meta-item i { color: var(--primary); font-size: 0.85rem; }

.card-timestamp {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ====== USER CARD ====== */
.user-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.avatar-lg { width: 60px; height: 60px; }
.avatar-xl { width: 90px; height: 90px; border: 3px solid var(--primary); }

/* ====== SECTIONS ====== */
.section-pe {
  padding: 5rem 0;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 300;
  margin-bottom: 3rem;
}

.section-divider {
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px;
  margin: 1rem 0 2.5rem;
}

/* ====== PREMIUM CIRCUITS ====== */
.premium-section {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.premium-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(42,146,120,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.premium-section .section-title { color: var(--white); }
.premium-section .section-subtitle { color: rgba(255,255,255,0.5); }

.circuit-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.circuit-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(244,167,53,0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.circuit-card .card-img-wrap { height: 220px; }

.circuit-card .card-body-pe { padding: 1.4rem; }

.circuit-card h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.circuit-card .meta-item { color: rgba(255,255,255,0.5); }
.circuit-card .meta-item i { color: var(--accent); }

.circuit-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  font-family: 'Playfair Display', serif;
}

/* ====== FORMS ====== */
.form-pe {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.form-label-pe {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
  display: block;
}

.form-control-pe {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--light);
  transition: var(--transition);
  outline: none;
  -webkit-appearance: none;
}

.form-control-pe:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(26,107,90,0.1);
}

.form-control-pe::placeholder { color: var(--text-muted); font-weight: 300; }

select.form-control-pe { cursor: pointer; }

textarea.form-control-pe { resize: vertical; min-height: 120px; }

.form-group { margin-bottom: 1.25rem; }

/* ====== ALERTS ====== */
.alert-pe {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
  font-weight: 500;
}

.alert-pe.success { background: rgba(39,174,96,0.1); color: var(--success); border-left: 3px solid var(--success); }
.alert-pe.danger { background: rgba(231,76,60,0.1); color: var(--danger); border-left: 3px solid var(--danger); }
.alert-pe.warning { background: rgba(243,156,18,0.1); color: var(--warning); border-left: 3px solid var(--warning); }
.alert-pe.info { background: rgba(41,128,185,0.1); color: var(--info); border-left: 3px solid var(--info); }

/* ====== DASHBOARD ====== */
.dashboard-layout {
  display: flex;
  min-height: calc(100vh - 70px);
}

.sidebar-pe {
  width: 260px;
  min-width: 260px;
  background: var(--dark);
  padding: 1.5rem 0;
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  overflow-y: auto;
  flex-shrink: 0;
  z-index: 100;
}

.sidebar-pe::-webkit-scrollbar { width: 4px; }
.sidebar-pe::-webkit-scrollbar-track { background: transparent; }
.sidebar-pe::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.sidebar-user-info {
  padding: 0 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}

.sidebar-user-info .avatar-xl { margin: 0 auto 0.75rem; display: block; }

.sidebar-user-name {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
}

.sidebar-user-role {
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-nav { padding: 1rem 0; }

.sidebar-nav-section {
  padding: 0.3rem 1.25rem 0.1rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.25);
  font-weight: 600;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.5rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  border-left: 3px solid transparent;
  cursor: pointer;
}

.sidebar-link i { width: 20px; font-size: 0.95rem; }

.sidebar-link:hover, .sidebar-link.active {
  color: var(--white);
  background: rgba(255,255,255,0.05);
  border-left-color: var(--accent);
}

.sidebar-link.active { color: var(--accent); }

.sidebar-badge {
  margin-left: auto;
  background: var(--danger);
  color: white;
  border-radius: 50px;
  padding: 1px 7px;
  font-size: 0.7rem;
  font-weight: 700;
}

.dashboard-content {
  flex: 1;
  padding: 2rem;
  background: var(--light2);
  overflow-x: hidden;
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.dash-title {
  font-size: 1.6rem;
  color: var(--dark);
}

.dash-subtitle { font-size: 0.9rem; color: var(--text-muted); }

/* Stats Cards */
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.stat-card .stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.stat-icon.green { background: rgba(26,107,90,0.12); color: var(--primary); }
.stat-icon.amber { background: rgba(244,167,53,0.12); color: var(--accent); }
.stat-icon.red { background: rgba(231,76,60,0.12); color: var(--danger); }
.stat-icon.blue { background: rgba(41,128,185,0.12); color: var(--info); }

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  font-family: 'Playfair Display', serif;
}

.stat-label { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; }

/* Table */
.table-pe {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.table-pe thead tr {
  background: var(--light2);
  border-bottom: 2px solid var(--border);
}

.table-pe th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.table-pe td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.table-pe tbody tr:hover { background: var(--light2); }
.table-pe tbody tr:last-child td { border-bottom: none; }

/* ====== COMMENTS ====== */
.comment-item {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.comment-item:last-child { border-bottom: none; }

.comment-body {
  flex: 1;
  background: var(--light2);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
}

.comment-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.comment-author { font-weight: 600; font-size: 0.88rem; color: var(--dark); }
.comment-time { font-size: 0.75rem; color: var(--text-muted); }
.comment-text { font-size: 0.9rem; line-height: 1.5; }

/* ====== MODAL ====== */
.modal-pe .modal-content {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.modal-pe .modal-header {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
}

.modal-pe .modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
}

.modal-pe .modal-footer { border-top: 1px solid var(--border); }

/* ====== PAGINATION ====== */
.pagination-pe {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.page-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.page-btn:hover, .page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* ====== SEARCH BAR ====== */
.search-bar-wrap {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 0.4rem;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  gap: 0.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.search-bar-wrap .form-control-pe {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0.6rem 1rem;
  flex: 1;
}

.search-bar-wrap .form-control-pe:focus {
  box-shadow: none;
  background: transparent;
}

/* ====== SHARE BUTTONS ====== */
.share-btns { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  color: white;
}

.share-fb { background: #1877f2; }
.share-tw { background: #1da1f2; }
.share-wa { background: #25d366; }
.share-li { background: #0077b5; }
.share-btn:hover { filter: brightness(1.1); transform: scale(1.05); }

/* ====== FOOTER ====== */
.footer-pe {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  padding: 4rem 0 1.5rem;
  margin-top: auto;
}

.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.footer-brand span { color: var(--accent); }

.footer-pe h6 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.2rem;
}

.footer-pe a {
  color: rgba(255,255,255,0.5);
  font-size: 0.88rem;
  display: block;
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

.footer-pe a:hover { color: var(--accent); padding-left: 4px; }

.footer-divider {
  border-color: rgba(255,255,255,0.08);
  margin: 2rem 0 1rem;
}

.footer-bottom {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

/* ====== NOTIFICATIONS ====== */
.notif-dropdown {
  width: 320px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.notif-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.85rem;
}

.notif-item:hover { background: var(--light2); }
.notif-item.unread { background: rgba(26,107,90,0.04); }

.notif-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

/* ====== REPORT BUTTON ====== */
.report-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--text-muted);
  border: none;
  background: none;
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 4px;
  transition: var(--transition);
}

.report-btn:hover { color: var(--danger); background: rgba(231,76,60,0.08); }

/* ====== CONTACT FORM ====== */
.contact-section {
  background: linear-gradient(135deg, var(--light) 0%, var(--light2) 100%);
  padding: 5rem 0;
}

/* ====== ANIMATIONS ====== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.fade-in-up { animation: fadeInUp 0.6s ease both; }
.float-anim { animation: float 4s ease-in-out infinite; }

/* ====== RESPONSIVE ====== */
@media (max-width: 992px) {
  .sidebar-pe {
    position: fixed;
    left: -260px;
    height: 100vh;
    top: 0;
    transition: left 0.3s ease;
    z-index: 1060;
  }
  .sidebar-pe.open { left: 0; }
  .sidebar-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1055;
  }
  .sidebar-overlay.show { display: block; }
  .dashboard-layout { display: block; }
  .dashboard-content { padding: 1.25rem; }
  .hero-stats { gap: 1.5rem; }
}

@media (max-width: 768px) {
  .hero-section { min-height: 70vh; padding: 3rem 0; }
  .form-pe { padding: 1.5rem; }
  .search-bar-wrap { flex-direction: column; border-radius: var(--radius); }
  .dash-header { flex-direction: column; align-items: flex-start; }
}

/* ====== UTILITY ====== */
.text-primary-pe { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.text-muted-pe { color: var(--text-muted) !important; }
.bg-primary-pe { background: var(--primary) !important; }
.bg-accent { background: var(--accent) !important; }
.bg-dark-pe { background: var(--dark) !important; }
.rounded-pe { border-radius: var(--radius) !important; }
.shadow-pe { box-shadow: var(--shadow) !important; }

.tag {
  display: inline-block;
  background: var(--light2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.empty-state i { font-size: 3rem; opacity: 0.3; margin-bottom: 1rem; }
.empty-state p { font-size: 1.1rem; }

/* Map / destination tags */
.dest-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
}

/* VIP badge */
.vip-section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #c9a84c, #a07830);
  color: white;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ====== SHARE BUTTONS ====== */
.share-btns { display: flex; gap: .5rem; }
.share-btn {
  width: 36px; height: 36px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; color: #fff;
  font-size: .9rem; text-decoration: none; transition: .2s;
}
.share-btn:hover { transform: scale(1.12); color: #fff; }
.share-fb { background: #1877f2; }
.share-wa { background: #25d366; }
.share-tw { background: #1da1f2; }

/* ====== PAGINATION ====== */
.pagination-pe { display: flex; gap: .35rem; flex-wrap: wrap; }
.page-btn {
  min-width: 36px; height: 36px; border-radius: 8px; display: flex;
  align-items: center; justify-content: center; text-decoration: none;
  font-size: .82rem; font-weight: 600;
  background: var(--light2); color: var(--text-muted);
  border: 1px solid var(--border); transition: .15s;
}
.page-btn:hover, .page-btn.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
}

/* ====== CIRCUIT DETAIL - HERO SLIDER ====== */
#circuitHero { transition: background .5s; }

/* ====== MOBILE FIXES ====== */
@media (max-width: 991px) {
  /* Dropdown menu fix mobile */
  .navbar-collapse .dropdown-menu {
    position: static !important;
    float: none !important;
    box-shadow: none !important;
    border: none !important;
    background: rgba(255,255,255,.08) !important;
  }
  .navbar-collapse { background: var(--dark); padding: 1rem; border-radius: 0 0 12px 12px; }
  .navbar-pe .nav-link { color: rgba(255,255,255,.85) !important; }
  .navbar-collapse .dropdown-item { color: rgba(255,255,255,.85) !important; }

  /* Circuit form overlay scroll on mobile */
  #circuitFormOverlay { padding: 1rem .5rem; }

  /* Booking form */
  .booking-sidebar { display: none; }

  /* Circuit hero */
  #circuitHero { min-height: 280px; }
}

@media (max-width: 576px) {
  .hero-section { min-height: 60vh; }
  .hero-stats { flex-direction: column; gap: 1rem; }
  .search-bar-wrap { flex-direction: column; }
  .btn-primary-pe, .btn-outline-pe { font-size: .875rem; }
  .circuit-card { margin-bottom: .5rem; }
  /* Sidebar tabs on mobile */
  #cfTabNav { gap: 2px; }
  #cfTabNav .cf-tab-btn { font-size: .72rem; padding: 6px 8px; }
}

/* ====== CONTENTEDITABLE PLACEHOLDER ====== */
[contenteditable=true]:empty:before {
  content: attr(placeholder);
  color: #aaa;
  pointer-events: none;
  display: block;
}

/* ====== ALERT STYLES ====== */
.alert-pe.success { background: rgba(46,204,113,.1); border: 1px solid rgba(46,204,113,.3); color: #1e8449; border-radius: 8px; padding: .75rem 1rem; display: flex; align-items: center; gap: .5rem; }
.alert-pe.danger  { background: rgba(231,76,60,.1);  border: 1px solid rgba(231,76,60,.3);  color: #c0392b; border-radius: 8px; padding: .75rem 1rem; display: flex; align-items: center; gap: .5rem; }
.alert-pe.warning { background: rgba(241,196,15,.1); border: 1px solid rgba(241,196,15,.3); color: #9a7d0a; border-radius: 8px; padding: .75rem 1rem; display: flex; align-items: center; gap: .5rem; }

/* ====== CIRCUIT CARD ADMIN ====== */
.circuit-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .2s;
  height: 100%;
}
.circuit-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.12); }

/* ====== STAT CARD ====== */
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .35rem;
  transition: .2s;
}
.stat-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.stat-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; margin-bottom: .25rem; }
.stat-icon.green { background: rgba(46,204,113,.12); color: #2ecc71; }
.stat-icon.amber { background: rgba(247,184,79,.12); color: #f7b84f; }
.stat-icon.blue  { background: rgba(26,107,160,.12); color: #1a6ba0; }
.stat-icon.red   { background: rgba(231,76,60,.12);  color: #e74c3c; }
.stat-number { font-size: 1.5rem; font-weight: 800; color: var(--dark); }
.stat-label  { font-size: .75rem; color: var(--text-muted); font-weight: 500; }

/* ====== DROPDOWN MOBILE FIX ====== */
@media (max-width: 991px) {
  /* Force dropdowns to stay within viewport on mobile */
  .navbar-pe .dropdown-menu {
    position: absolute !important;
    right: 0 !important;
    left: auto !important;
    top: 100% !important;
    z-index: 9999 !important;
    background: #fff !important;
    color: var(--dark) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,.18) !important;
    border: 1px solid rgba(0,0,0,.08) !important;
    min-width: 200px !important;
    max-width: calc(100vw - 2rem) !important;
  }
  .navbar-pe .dropdown-menu .dropdown-item {
    color: var(--dark) !important;
    font-size: .88rem !important;
    padding: .55rem 1rem !important;
  }
  .navbar-pe .dropdown-menu .dropdown-item:hover {
    background: var(--light2) !important;
  }
  /* Push notifications dropdown to right side */
  .notif-dropdown {
    right: 0 !important;
    left: auto !important;
    max-width: min(320px, calc(100vw - 1rem)) !important;
  }
  /* Navbar items in mobile expanded view */
  .navbar-collapse.show,
  .navbar-collapse.collapsing {
    background: rgba(13,27,53,.98) !important;
    padding: 1rem !important;
    border-radius: 0 0 12px 12px !important;
    border-top: 1px solid rgba(255,255,255,.1) !important;
  }
  .navbar-collapse .nav-link {
    color: rgba(255,255,255,.9) !important;
    padding: .6rem .5rem !important;
    border-radius: 6px;
  }
  .navbar-collapse .nav-link:hover {
    background: rgba(255,255,255,.08) !important;
  }
  /* Avatar + user info in mobile navbar - keep as button, not expanded */
  .navbar-pe .d-flex.align-items-center { 
    flex-wrap: nowrap !important; 
    gap: .5rem !important;
  }
}

/* ============================================================
   PARTIR ENSEMBLE – Patch V5
   Footer socials · Background fixes · Messages · Notifications
   ============================================================ */

/* ── FOOTER SOCIAL BUTTONS ── */
.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 1.1rem;
  flex-wrap: wrap;
}
.footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.85) !important;
  font-size: .95rem;
  border: 1.5px solid rgba(255,255,255,.18);
  text-decoration: none !important;
  transition: all .22s ease;
  flex-shrink: 0;
}
.footer-social-btn:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.footer-social-btn.fb:hover { background:#1877F2; border-color:#1877F2; color:#fff !important; }

.footer-social-btn.wa:hover { background:#25D366; border-color:#25D366; color:#fff !important; }
.footer-social-btn.ig:hover {
  background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888);
  border-color: #cc2366; color:#fff !important;
}
.footer-social-btn.yt:hover { background:#FF0000; border-color:#FF0000; color:#fff !important; }

/* ── FIX: text on white backgrounds ── */
.card-pe, .form-control-pe, .btn-primary-pe, .btn-outline-pe, .btn-accent-pe {
  color: var(--text);
}
.card-pe { color: var(--text); }
.card-pe p, .card-body-pe p { color: var(--text-muted); }

/* Fix section backgrounds that make text invisible */
.section-pe { background: var(--light); }
.section-pe h2, .section-pe h3, .section-pe p { color: var(--text); }

/* White bg sections - ensure dark text absolutely everywhere */
section[style*="background:var(--white)"] h1,
section[style*="background:var(--white)"] h2,
section[style*="background:var(--white)"] h3,
section[style*="background:var(--white)"] p,
section[style*="background:var(--light2)"] h1,
section[style*="background:var(--light2)"] h2,
section[style*="background:var(--light2)"] h3,
section[style*="background:var(--light2)"] p,
section[style*="background:var(--light)"] h1,
section[style*="background:var(--light)"] h2,
section[style*="background:var(--light)"] h3,
section[style*="background:var(--light)"] p,
section[style*="background:var(--bg)"] h1,
section[style*="background:var(--bg)"] h2,
section[style*="background:var(--bg)"] h3,
section[style*="background:var(--bg)"] p {
  color: var(--text);
}

/* Cards & forms: dark text on white backgrounds */
.card-pe, .card-pe h1, .card-pe h2, .card-pe h3, .card-pe h4,
.card-pe p, .card-pe li, .card-pe span, .card-pe div,
.card-pe .form-label-pe, .card-pe label {
  color: var(--text);
}
.card-pe .text-muted, .card-pe [style*="color:var(--text-muted)"] { color: var(--text-muted) !important; }
.card-pe a { color: var(--primary); }

/* Booking/circuit-detail sections on light bg */
.booking-section, .booking-section h1, .booking-section h2, .booking-section p,
.booking-section label, .booking-section .form-label-pe { color: var(--text); }

/* Ensure all form labels are dark */
.form-label-pe { color: var(--text) !important; }
label.form-label-pe { color: var(--text) !important; }


/* Form controls on light backgrounds */
.form-control-pe {
  color: var(--text) !important;
  background: var(--white) !important;
}
.form-control-pe::placeholder { color: var(--text-muted) !important; }

/* select on light bg */
select.form-control-pe { color: var(--text) !important; }
select.form-control-pe option { color: var(--text); background: var(--white); }

/* Labels */
.form-label-pe { color: var(--text-muted); }

/* ── RICH TEXT EDITOR FIXES ── */
.rich-editor-wrap [contenteditable="true"] {
  color: var(--text) !important;
  background: var(--white) !important;
  caret-color: var(--text) !important;
}
/* Ensure foreColor command output is visible */
.rich-editor-wrap [contenteditable="true"] * { color: inherit; }
/* Override execCommand foreColor display */
.rich-editor-wrap [contenteditable="true"] font[color] { color: attr(color); }
.rich-editor-wrap [contenteditable="true"] a { color: var(--primary); text-decoration: underline; }
.rich-editor-wrap [contenteditable="true"] a:hover { color: var(--primary-light); }

/* Force dark description editor text */
#cf_desc_editor,
#cf_payment_info_editor {
  color: var(--text) !important;
  background: var(--white) !important;
  min-height: 120px;
  caret-color: var(--text) !important;
}
#cf_desc_editor:empty:before { content: attr(placeholder); color: var(--text-muted); }
#cf_payment_info_editor:empty:before { content: attr(placeholder); color: var(--text-muted); }

/* ── NOTIFICATIONS (fix visibility) ── */
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: .15s;
}
.notif-item:hover { background: var(--light2); }
.notif-item.unread { background: rgba(26,107,90,.05); }
.notif-item.unread .notif-dot { background: var(--primary); width:8px; height:8px; border-radius:50%; flex-shrink:0; margin-top:4px; }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex-shrink: 0; margin-top: 4px; }

/* ── ADMIN NOTIFICATION BADGE ── */
.notif-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: var(--danger);
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--dark);
}

/* ── ITINERARY ACCORDION (circuit detail frontend) ── */
.itin-accordion { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.itin-accordion-item { border-bottom: 1px solid var(--border); }
.itin-accordion-item:last-child { border-bottom: none; }
.itin-accordion-btn {
  width: 100%;
  background: var(--white);
  border: none;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  font-size: .92rem;
  font-weight: 600;
  color: var(--text);
  transition: .15s;
  text-align: left;
}
.itin-accordion-btn:hover { background: var(--light2); }
.itin-accordion-btn.open { background: var(--light2); color: var(--primary); }
.itin-day-badge {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 800;
  flex-shrink: 0;
}
.itin-accordion-body {
  display: none;
  padding: 1rem 1.25rem 1.25rem 3.75rem;
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.75;
  background: var(--light2);
}
.itin-accordion-body.open { display: block; }
.itin-chevron { margin-left: auto; transition: transform .25s; color: var(--text-muted); font-size: .82rem; }
.itin-chevron.open { transform: rotate(180deg); }

/* ── BOOKINGS page ── */
.bk-stat { transition: .15s; }
.bk-stat:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }

/* ── PDF viewer button ── */
.btn-pdf-view {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: .55rem 1.2rem;
  background: rgba(231,76,60,.1);
  color: #e74c3c;
  border: 1px solid rgba(231,76,60,.3);
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: .2s;
}
.btn-pdf-view:hover { background: #e74c3c; color: #fff; }

/* ── Fix dashboard card text on light bg ── */
.dash-card, .card-pe .card-body { color: var(--text); }
.card-pe .text-muted, .card-pe small { color: var(--text-muted) !important; }

/* ── Fixes for announcements section bg ── */
.section-pe.bg-light h2.section-title { color: var(--text); }
.section-title { color: var(--text); }
.section-subtitle { color: var(--text-muted); }


/* ═══════════════════════════════════════════════
   PARTIR ENSEMBLE – PATCH V6 (correctifs complets)
   ═══════════════════════════════════════════════ */

/* ── POINT 2 : Rich text editor – couleurs & liens ── */
.rich-editor-wrap [contenteditable] font[color] {
  /* CSS ne peut pas lire attr() hors pseudo : on force via JS inline style */
  display: inline;
}
/* Les spans inline générés par execCommand foreColor */
.rich-editor-wrap [contenteditable] span[style*="color"] { display: inline; }
.rich-editor-wrap [contenteditable] a[href] {
  color: #1a6ba0 !important;
  text-decoration: underline !important;
  cursor: pointer;
}
/* Empêcher la règle "color:inherit" de tout écraser */
.rich-editor-wrap [contenteditable] font { color: unset; }
#cf_desc_editor font[color], #cf_payment_info_editor font[color] { color: unset; }

/* ── POINT 3 : Lisibilité sur fonds blancs/clairs ── */
:root {
  --text:        #1a1a2e;
  --text-muted:  #6b7280;
  --white:       #ffffff;
  --bg:          #f4f6fb;
  --light2:      #eef1f7;
  --border:      #dde3ec;
  --dark:        #0d1b35;
}
body, .container, main, section { color: var(--text); }
h1,h2,h3,h4,h5,h6 { color: var(--dark); }
p, li, span:not(.badge):not(.tag) { color: inherit; }

/* Sections à fond blanc ou clair */
section, .section-pe, div[style*="background:#fff"],
div[style*="background:white"], div[style*="background:var(--white)"],
div[style*="background:var(--light2)"], div[style*="background:var(--bg)"],
.card-pe, .form-control-pe { color: var(--text); }

/* Textes dans les sections heros et cartes */
.card-pe h1,.card-pe h2,.card-pe h3,.card-pe h4,.card-pe p,
.card-pe span,.card-pe label,.card-pe small { color: inherit; }
.card-pe .text-muted, small.form-text { color: var(--text-muted) !important; }

/* Formulaires toujours lisibles */
.form-control-pe,
input.form-control-pe,
textarea.form-control-pe,
select.form-control-pe {
  color: #1a1a2e !important;
  background: #ffffff !important;
  border: 1.5px solid var(--border);
}
.form-control-pe::placeholder { color: #9ca3af !important; }
.form-label-pe { color: #374151 !important; font-weight: 500; }

/* ── POINT 4 : Footer – compléments ── */
.footer-pe h6 { color: rgba(255,255,255,.9) !important; font-weight: 700; letter-spacing:.3px; margin-bottom:.85rem; }
.footer-pe a { color: rgba(255,255,255,.55); text-decoration:none; display:block; margin-bottom:.45rem; font-size:.87rem; transition:.15s; }
.footer-pe a:hover { color:#fff; }
.footer-brand span { color:var(--accent,#f4a735); }

/* ── POINT 5 : Messages style Messenger ── */
.messenger-layout {
  display: flex;
  height: calc(100vh - 90px);
  min-height: 600px;
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(0,0,0,.08);
}
.ms-sidebar {
  width: 340px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  background: var(--white);
}
.ms-sidebar-header {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 2;
}
.ms-sidebar-title { font-size: 1.15rem; font-weight: 800; color: var(--dark); margin-bottom:.75rem; }
.ms-search { position: relative; }
.ms-search input {
  width: 100%;
  padding: .55rem .9rem .55rem 2.4rem;
  border-radius: 22px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  font-size: .875rem;
  color: var(--text);
  outline: none;
  transition: .15s;
}
.ms-search input:focus { border-color: var(--primary); background: #fff; }
.ms-search .ms-search-icon {
  position: absolute; left:.8rem; top:50%; transform:translateY(-50%);
  color:var(--text-muted); font-size:.82rem;
}
.ms-thread-list { flex: 1; overflow-y: auto; }
.ms-thread {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: .85rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(0,0,0,.04);
  transition: .15s;
  text-decoration: none !important;
  color: inherit;
  position: relative;
}
.ms-thread:hover { background: #f0f4ff; }
.ms-thread.active { background: #e8f0fe; }
.ms-thread.unread { background: rgba(26,107,160,.06); }
.ms-thread.unread::before {
  content:''; position:absolute; left:0; top:0; bottom:0; width:3px;
  background: var(--primary); border-radius:0 3px 3px 0;
}
.ms-avatar-wrap { position: relative; flex-shrink: 0; }
.ms-avatar { width:46px; height:46px; border-radius:50%; object-fit:cover; }
.ms-online-dot {
  position: absolute; bottom:1px; right:1px;
  width:13px; height:13px; border-radius:50%;
  border: 2.5px solid #fff;
  background: #bbb;
}
.ms-online-dot.on { background: #2ecc71; }
.ms-thread-body { flex:1; min-width:0; }
.ms-thread-name { font-size:.87rem; font-weight:700; color:var(--dark); display:flex; align-items:center; justify-content:space-between; gap:6px; }
.ms-thread-time { font-size:.7rem; color:var(--text-muted); white-space:nowrap; }
.ms-thread-preview { font-size:.78rem; color:var(--text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-top:2px; }
.ms-thread-preview.bold { font-weight:600; color:var(--dark); }
.ms-unread-badge { background:var(--primary); color:#fff; font-size:.65rem; font-weight:700; min-width:18px; height:18px; padding:0 4px; border-radius:20px; display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; }

.ms-main { flex:1; display:flex; flex-direction:column; min-width:0; }
.ms-main-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
}
.ms-main-header .ms-header-name { font-size:.95rem; font-weight:700; color:var(--dark); }
.ms-main-header .ms-header-status { font-size:.75rem; color:var(--text-muted); }
.ms-main-header .ms-header-actions { margin-left:auto; display:flex; gap:8px; }
.ms-header-btn {
  background:none; border:1px solid var(--border); border-radius:8px;
  padding:.35rem .75rem; font-size:.75rem; color:var(--text-muted);
  cursor:pointer; transition:.15s; display:inline-flex; align-items:center; gap:5px;
}
.ms-header-btn:hover { background:var(--light2); border-color:var(--text-muted); }
.ms-header-btn.danger { color:#e74c3c; border-color:rgba(231,76,60,.3); }
.ms-header-btn.danger:hover { background:rgba(231,76,60,.08); }

.ms-messages { flex:1; overflow-y:auto; padding:1.5rem; display:flex; flex-direction:column; gap:1rem; }
.ms-msg-group { display:flex; flex-direction:column; gap:4px; }
.ms-msg-row { display:flex; align-items:flex-end; gap:8px; }
.ms-msg-row.mine { flex-direction:row-reverse; }
.ms-bubble {
  max-width: 72%;
  padding: .65rem 1rem;
  border-radius: 18px;
  font-size: .9rem;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  position: relative;
}
.ms-bubble.theirs { background: #f0f2f5; color: #1a1a2e; border-radius: 0 18px 18px 18px; }
.ms-bubble.mine   { background: var(--primary); color: #fff; border-radius: 18px 0 18px 18px; }
.ms-bubble.deleted { opacity: .55; font-style: italic; }
.ms-bubble-meta { font-size:.68rem; color:var(--text-muted); margin-top:3px; }
.ms-msg-row.mine .ms-bubble-meta { text-align:right; }
.ms-edit-btn {
  background:none; border:none; font-size:.7rem; cursor:pointer; padding:2px 6px; border-radius:4px;
  color:rgba(255,255,255,.6); transition:.1s;
}
.ms-edit-btn:hover { color:#fff; background:rgba(255,255,255,.15); }
.ms-edited-tag { font-size:.67rem; opacity:.6; font-style:italic; }

/* Receipt checks */
.ms-check { font-size:.72rem; margin-left:4px; }
.ms-check.sent   { color:#bbb; }
.ms-check.read   { color:#4fc3f7; }

.ms-reply-box {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--white);
}
.ms-reply-form { display:flex; flex-direction:column; gap:.6rem; }
.ms-reply-subject { font-size:.8rem; color:var(--text-muted); font-style:italic; padding:.35rem .75rem; background:var(--bg); border-radius:8px; margin-bottom:.25rem; }
.ms-reply-textarea {
  width:100%; border:1.5px solid var(--border); border-radius:12px;
  padding:.75rem 1rem; font-size:.875rem; outline:none; resize:none;
  color:var(--text); background:var(--white); min-height:76px;
  transition:.15s;
}
.ms-reply-textarea:focus { border-color:var(--primary); }
.ms-reply-actions { display:flex; align-items:center; justify-content:space-between; gap:.5rem; }
.ms-send-btn {
  background: var(--primary); color:#fff; border:none; border-radius:10px;
  padding:.6rem 1.4rem; font-size:.875rem; font-weight:600; cursor:pointer;
  display:inline-flex; align-items:center; gap:6px; transition:.15s;
}
.ms-send-btn:hover { background:var(--primary-light); }

@media (max-width:768px) {
  .messenger-layout { height:auto; flex-direction:column; }
  .ms-sidebar { width:100%; max-height:45vh; border-right:none; border-bottom:1px solid var(--border); }
  .ms-main { min-height:55vh; }
}

/* Edit msg modal */
.ms-modal-overlay {
  display:none; position:fixed; inset:0; background:rgba(0,0,0,.5);
  z-index:9999; align-items:center; justify-content:center;
}
.ms-modal-overlay.open { display:flex; }
.ms-modal {
  background:#fff; border-radius:16px; padding:2rem; max-width:520px; width:90%;
  box-shadow:0 20px 60px rgba(0,0,0,.25);
}
.ms-modal h4 { font-size:1rem; font-weight:700; margin-bottom:.75rem; }
.ms-modal textarea {
  width:100%; border:1.5px solid var(--border); border-radius:10px;
  padding:.75rem; font-size:.875rem; resize:vertical; min-height:120px;
  color:var(--text); margin-bottom:1rem; outline:none;
}
.ms-modal textarea:focus { border-color:var(--primary); }
.ms-modal-actions { display:flex; gap:.75rem; justify-content:flex-end; }

/* ── Notifications bell admin ── */
.admin-notif-btn {
  position: relative;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  width: 40px; height: 40px;
  display: flex; align-items:center; justify-content:center;
  cursor: pointer; color: #fff;
  transition:.15s;
}
.admin-notif-btn:hover { background:rgba(255,255,255,.15); }
.admin-notif-badge {
  position:absolute; top:-5px; right:-5px;
  background:#e74c3c; color:#fff;
  font-size:.58rem; font-weight:800;
  min-width:18px; height:18px;
  border-radius:20px; padding:0 4px;
  display:flex; align-items:center; justify-content:center;
  border:2px solid var(--dark);
}

/* ── Itinerary accordion – frontend ── */
.itin-wrap { margin-top:1.5rem; }
.itin-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: .6rem;
  overflow: hidden;
  transition:.15s;
}
.itin-item:hover { border-color: rgba(26,107,160,.3); }
.itin-btn {
  width:100%; background:var(--white); border:none; padding:1rem 1.25rem;
  display:flex; align-items:center; gap:.9rem; cursor:pointer; text-align:left;
  font-size:.92rem; font-weight:600; color:var(--dark); transition:.15s;
}
.itin-btn:hover { background:var(--light2); }
.itin-btn.open { background:linear-gradient(135deg,rgba(26,58,107,.06),rgba(26,107,160,.04)); color:var(--primary); }
.itin-day-badge {
  width:36px; height:36px; border-radius:50%;
  background:linear-gradient(135deg,var(--primary,#1a3a6b),var(--primary-light,#1a6ba0));
  color:#fff; font-size:.72rem; font-weight:800;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.itin-title { flex:1; }
.itin-chevron { margin-left:auto; color:var(--text-muted); font-size:.8rem; transition:transform .25s; }
.itin-chevron.open { transform:rotate(180deg); }
.itin-body {
  display:none; padding:1.1rem 1.25rem 1.25rem 4.1rem;
  font-size:.9rem; line-height:1.8; color:var(--text-muted);
  background:var(--bg); border-top:1px solid var(--border);
}
.itin-body.open { display:block; }

/* ── Comments modération page ── */
.mod-badge {
  display:inline-flex; align-items:center; gap:4px;
  padding:.25rem .65rem; border-radius:20px; font-size:.72rem; font-weight:700;
}
.mod-badge.pending  { background:rgba(243,156,18,.12);  color:#f39c12; }
.mod-badge.approved { background:rgba(46,204,113,.12);  color:#27ae60; }
.mod-badge.rejected { background:rgba(231,76,60,.12);   color:#e74c3c; }
.mod-comment-row { border-bottom:1px solid var(--border); padding:1rem; transition:.15s; }
.mod-comment-row:hover { background:var(--light2); }
.mod-comment-row:last-child { border-bottom:none; }
.mod-actions { display:flex; gap:.4rem; flex-wrap:wrap; align-items:center; }
.mod-btn {
  background:none; border:1px solid var(--border); border-radius:7px;
  padding:.3rem .7rem; font-size:.72rem; cursor:pointer; color:var(--text-muted); transition:.15s;
  display:inline-flex; align-items:center; gap:4px;
}
.mod-btn:hover { background:var(--light2); }
.mod-btn.approve { border-color:rgba(46,204,113,.4); color:#27ae60; }
.mod-btn.approve:hover { background:rgba(46,204,113,.08); }
.mod-btn.reject  { border-color:rgba(243,156,18,.4);  color:#f39c12; }
.mod-btn.reject:hover  { background:rgba(243,156,18,.08); }
.mod-btn.del     { border-color:rgba(231,76,60,.4);   color:#e74c3c; }
.mod-btn.del:hover     { background:rgba(231,76,60,.08); }

/* ================================================================
   PARTIR ENSEMBLE V15 - CORRECTIFS FINAUX
   ================================================================ */

/* Garantir que --bg est toujours défini */
:root {
  --bg: #f4f6fb;
}

/* Textes sombres sur tous les fonds clairs */
section[style*="background:var(--bg)"] *:not([style*="color:#"]):not([style*="color:var(--white)"]):not([style*="color:rgba(255"]):not([class*="text-white"]),
div[style*="background:var(--bg)"] .form-label-pe,
div[style*="background:var(--light)"] .form-label-pe {
  color: var(--text);
}

/* Cards: tous les labels, spans, paragraphes sont sombres */
.card-pe label, .card-pe .form-label-pe,
.card-pe p:not([style*="color"]),
.card-pe small, .card-pe span:not([style*="color"]) {
  color: var(--text);
}

/* Bouton Demande d'informations - variante claire */
.btn-info-request {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  padding: 0.72rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}
.btn-info-request:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Quick access cards admin */
.quick-access-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: 12px;
  padding: 1.2rem .75rem;
  text-decoration: none;
  transition: all .2s ease;
  color: var(--text);
}
.quick-access-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: var(--text);
}

/* Éditeur rich text admin */
.ce-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px 8px;
  background: var(--light2);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
}
div[contenteditable="true"] a {
  color: var(--primary) !important;
  text-decoration: underline;
}
div[contenteditable="true"] span[style*="color"] {
  display: inline !important;
}

/* Fix footer icons in all browsers */
.footer-social-btn i {
  pointer-events: none;
  line-height: 1;
}
.footer-pe .footer-socials a.footer-social-btn {
  text-decoration: none !important;
  display: inline-flex !important;
}


/* ===== H: BOOKING PAYMENT SECTION – RESPONSIVE FIX ===== */
.booking-payment-box {
  background: linear-gradient(135deg, #0a2a1a, #0d3d20);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(39, 174, 96, .3);
}
.booking-payment-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.booking-payment-icon {
  background: rgba(39,174,96,.2);
  border-radius: 10px;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.booking-payment-title {
  font-weight: 700;
  color: #fff;
  font-size: .9rem;
}
.booking-payment-sub {
  font-size: .72rem;
  color: rgba(255,255,255,.6);
}
.booking-payment-badge {
  margin-left: auto;
  background: rgba(39,174,96,.2);
  color: #2ecc71;
  font-size: .65rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(39,174,96,.4);
  white-space: nowrap;
}
.booking-payment-body {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: 1.1rem;
  font-size: .875rem;
  line-height: 1.8;
  color: #e8f5e9;
  overflow-wrap: break-word;
  word-break: break-word;
}
@media (max-width: 576px) {
  .booking-payment-box {
    padding: 1rem;
    border-radius: 10px;
  }
  .booking-payment-header {
    gap: 8px;
  }
  .booking-payment-badge {
    margin-left: 0;
    font-size: .6rem;
  }
  .booking-payment-body {
    padding: .85rem;
    font-size: .82rem;
  }
  /* Payment method radio labels on mobile */
  .booking-payment-method-label {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  /* Booking form recap total readability */
  #rcTotal {
    font-size: 1.25rem !important;
  }
}

/* ===== G: CHAT WIDGET ===== */
.chat-container {
  display: flex;
  height: 540px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
}
.chat-sidebar {
  width: 260px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  background: var(--light2);
}
.chat-sidebar-header {
  padding: .85rem 1rem;
  font-weight: 700;
  font-size: .88rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-conv-list {
  flex: 1;
  overflow-y: auto;
}
.chat-conv-item {
  padding: .7rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: .65rem;
  align-items: center;
  transition: background .15s;
}
.chat-conv-item:hover, .chat-conv-item.active {
  background: rgba(26,107,160,.08);
}
.chat-conv-avatar {
  position: relative; flex-shrink: 0;
}
.chat-conv-avatar img {
  width: 38px; height: 38px;
  border-radius: 50%; object-fit: cover;
}
.chat-online-dot {
  position: absolute; bottom: 1px; right: 1px;
  width: 10px; height: 10px;
  border-radius: 50%; border: 2px solid var(--white);
}
.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.chat-main-header {
  padding: .75rem 1.1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: .75rem;
  font-weight: 700;
  font-size: .9rem;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.chat-bubble-wrap {
  display: flex;
  gap: .5rem;
  align-items: flex-end;
}
.chat-bubble-wrap.mine {
  flex-direction: row-reverse;
}
.chat-bubble {
  max-width: 70%;
  padding: .5rem .85rem;
  border-radius: 14px;
  font-size: .85rem;
  line-height: 1.55;
  word-break: break-word;
}
.chat-bubble.theirs {
  background: var(--light2);
  border-bottom-left-radius: 4px;
  color: var(--text);
}
.chat-bubble.mine {
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-time {
  font-size: .65rem;
  color: var(--text-muted);
  align-self: flex-end;
  margin-bottom: 2px;
}
.chat-input-bar {
  padding: .65rem 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: .5rem;
  align-items: flex-end;
}
.chat-input-bar textarea {
  flex: 1;
  resize: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: .5rem .9rem;
  font-size: .875rem;
  outline: none;
  max-height: 100px;
  overflow-y: auto;
  line-height: 1.5;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
}
.chat-send-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s;
}
.chat-send-btn:hover { background: #155a8a; }
.chat-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: .88rem;
  gap: .75rem;
}
@media (max-width: 640px) {
  .chat-container { height: 480px; }
  .chat-sidebar { width: 200px; }
  .chat-sidebar-header { font-size: .8rem; padding: .7rem .75rem; }
  .chat-conv-item { padding: .6rem .75rem; }
}
@media (max-width: 480px) {
  .chat-container { flex-direction: column; height: auto; }
  .chat-sidebar { width: 100%; height: 160px; border-right: none; border-bottom: 1px solid var(--border); }
  .chat-main { height: 320px; }
}

/* ===== I/J: CIRCUIT/ANNONCE LISTING SLUG LINKS ===== */
.circuit-card-link, .annonce-card-link {
  text-decoration: none !important;
  color: inherit;
}





/* ═══════════════════════════════════════════════════════════════
   PARTIR ENSEMBLE – V17 PATCH: DESIGN PREMIUM + TOUTES CORRECTIONS
   ═══════════════════════════════════════════════════════════════ */

/* ── Fix sidebar admin overflow (F) ── */
.sidebar-pe {
  width: 240px !important;
  min-width: 240px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.15) transparent;
}
.sidebar-nav { padding: .5rem 0 2rem !important; }
.sidebar-nav-section {
  padding: .5rem 1rem .2rem !important;
  font-size: .62rem !important;
  margin-top: .15rem;
}
.sidebar-link {
  padding: .52rem 1.1rem !important;
  font-size: .82rem !important;
  gap: .55rem !important;
  white-space: nowrap;
}
.sidebar-link i { width: 16px !important; font-size: .82rem !important; }
.sidebar-user-info { padding: .85rem .75rem 1rem !important; }
.sidebar-user-info .avatar-xl { width: 52px !important; height: 52px !important; }
.sidebar-user-name { font-size: .82rem !important; }
@media (min-width: 993px) {
  .sidebar-pe { height: calc(100vh - 60px) !important; top: 60px !important; }
  .dashboard-layout { display: flex; min-height: calc(100vh - 60px); }
  .dashboard-content { flex: 1; overflow-x: hidden; }
}

/* ── Premium redesign: Navbar ── */
.navbar-pe { padding: .6rem 0 !important; min-height: 60px; }
.navbar-pe .navbar-brand { font-size: 1.4rem !important; }
.navbar-pe .nav-link {
  font-size: .87rem !important;
  font-weight: 500;
  padding: .45rem .7rem !important;
  border-radius: 8px;
  color: rgba(255,255,255,.85) !important;
  transition: all .18s;
}
.navbar-pe .nav-link:hover {
  color: #fff !important;
  background: rgba(255,255,255,.08);
}

/* ── Premium redesign: Buttons ── */
.btn-primary-pe {
  background: linear-gradient(135deg, var(--primary), var(--primary-light, #2a9278));
  color: #fff !important;
  border: none;
  padding: .6rem 1.4rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: .88rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .2s;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
}
.btn-primary-pe:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(26,107,90,.28);
  color: #fff !important;
}
.btn-accent-pe {
  background: linear-gradient(135deg, #f4a735, #d4891f);
  color: #1a1a2e !important;
  border: none;
  padding: .6rem 1.4rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: .88rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .2s;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
}
.btn-accent-pe:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(244,167,53,.35);
  color: #1a1a2e !important;
}
.btn-outline-pe {
  background: transparent;
  color: #fff !important;
  border: 1.5px solid rgba(255,255,255,.35);
  padding: .55rem 1.35rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: .87rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .2s;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
}
.btn-outline-pe:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.55);
  color: #fff !important;
}

/* ── Premium redesign: Cards ── */
.card-pe {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  transition: box-shadow .2s, transform .2s;
  overflow: hidden;
}
.card-pe:hover { box-shadow: 0 6px 24px rgba(0,0,0,.09); }

/* ── Premium redesign: section titles ── */
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem) !important;
  color: var(--dark) !important;
  font-weight: 700;
  line-height: 1.25;
}
.section-subtitle {
  color: var(--text-muted) !important;
  font-size: 1rem;
  max-width: 540px;
  margin: .6rem auto 0;
}

/* ── Premium redesign: Badges ── */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
}
.badge-pending   { background: rgba(243,156,18,.12);  color: #e67e22; }
.badge-confirmed { background: rgba(46,204,113,.12);  color: #27ae60; }
.badge-cancelled { background: rgba(231,76,60,.12);   color: #e74c3c; }
.badge-completed { background: rgba(26,107,160,.12);  color: #1a6ba0; }
.badge-admin-verified {
  background: linear-gradient(135deg,#1a6ba0,#0d4a7a);
  color: #fff;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: .68rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* ── Premium redesign: Dashboard cards ── */
.stat-card {
  background: var(--white) !important;
  border: 1px solid var(--border) !important;
  border-radius: 16px !important;
  padding: 1.5rem !important;
  box-shadow: 0 2px 10px rgba(0,0,0,.04) !important;
  transition: all .2s !important;
}
.stat-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.09) !important;
  border-color: var(--primary) !important;
}
.stat-number {
  font-size: 2rem !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, var(--primary), var(--primary-light,#2a9278));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Forms premium ── */
.form-control-pe {
  border: 1.5px solid var(--border) !important;
  border-radius: 10px !important;
  padding: .65rem 1rem !important;
  font-size: .9rem !important;
  transition: border-color .18s, box-shadow .18s !important;
  width: 100%;
}
.form-control-pe:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(26,107,90,.1) !important;
  outline: none !important;
}
.form-label-pe {
  font-size: .83rem !important;
  font-weight: 600 !important;
  color: var(--text) !important;
  margin-bottom: .35rem;
  display: block;
}

/* ── Premium: announcement cards redesign ── */
.announcement-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  transition: all .2s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.announcement-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,.1);
  border-color: var(--primary);
}
.dest-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light,#2a9278));
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .74rem;
  font-weight: 700;
  margin-bottom: .75rem;
}

/* ── Premium: circuit cards on homepage (mobile 2x2 grid) ── */
.premium-section .circuit-card {
  background: linear-gradient(135deg, #0d1b35, #1a2940);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  overflow: hidden;
  transition: all .25s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.premium-section .circuit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,.3);
  border-color: rgba(244,167,53,.3);
}
.premium-section .circuit-card .card-img-wrap {
  position: relative;
  overflow: hidden;
  height: 200px;
}
.premium-section .circuit-card .card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.premium-section .circuit-card:hover .card-img-wrap img {
  transform: scale(1.05);
}
.premium-section .card-body-pe {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.premium-section .card-body-pe h3 {
  color: #fff !important;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.circuit-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent) !important;
  font-family: 'Playfair Display', serif;
}
/* 2x2 grid on mobile */
@media (max-width: 767px) {
  .premium-section .row.g-4 .col-lg-4 {
    width: 50% !important;
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }
  .premium-section .circuit-card .card-img-wrap { height: 140px; }
  .premium-section .card-body-pe { padding: .85rem; }
  .premium-section .card-body-pe h3 { font-size: .88rem; }
  .circuit-price { font-size: 1rem; }
}
@media (max-width: 400px) {
  .premium-section .row.g-4 .col-lg-4 {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}

/* ── Share buttons redesign ── */
.share-btns-new {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.share-btn-new {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  color: #fff;
  transition: all .18s;
  text-decoration: none;
  white-space: nowrap;
}
.share-btn-new:hover { filter: brightness(1.1); transform: scale(1.03); color: #fff; }
.sbf { background: #1877f2; }
.sbw { background: #25d366; }
.sbt { background: #000; }
.sbc { background: #6c757d; }

/* ── Modify button (annonce detail) ── */
.btn-modify-annonce {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: .6rem 1.4rem;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: .875rem;
  text-decoration: none;
  transition: all .2s;
  border: none;
  cursor: pointer;
}
.btn-modify-annonce:hover {
  background: var(--primary-light, #2a9278);
  color: #fff;
  transform: translateY(-1px);
}

/* ── Itinerary image in admin (fix visibility) ── */
.itin-day { position: relative; }
.itin-img-thumb { display: inline-block; }

/* ── Admin: bookings search/filter bar ── */
.bookings-filter-bar {
  display: flex;
  gap: .6rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .75rem 1rem;
}
.bookings-filter-bar input,
.bookings-filter-bar select {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: .4rem .75rem;
  font-size: .82rem;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color .15s;
}
.bookings-filter-bar input:focus,
.bookings-filter-bar select:focus {
  border-color: var(--primary);
}
.bookings-filter-bar .btn-filter {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: .4rem .9rem;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: .15s;
}
.bookings-filter-bar .btn-filter:hover { filter: brightness(1.08); }
.btn-del-booking {
  background: rgba(231,76,60,.1);
  color: #e74c3c;
  border: 1px solid rgba(231,76,60,.25);
  border-radius: 7px;
  padding: .3rem .6rem;
  font-size: .72rem;
  cursor: pointer;
  transition: .15s;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.btn-del-booking:hover { background: #e74c3c; color: #fff; }

/* ── Hero stats strip premium ── */
.hero-stats-strip {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}
.stat-pill {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 30px;
  padding: .35rem .85rem;
  display: flex;
  align-items: center;
  gap: .35rem;
}
.stat-pill-num {
  font-weight: 800;
  font-size: .92rem;
  color: var(--accent, #f4a735);
}
.stat-pill-label {
  font-size: .72rem;
  color: rgba(255,255,255,.75);
  font-weight: 500;
}

/* ── Chat redesign V17 (B) ── */
.chat-v17 {
  display: flex;
  height: 600px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: 0 4px 30px rgba(0,0,0,.07);
}
.chat-v17-sidebar {
  width: 280px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  background: #f8f9fb;
}
.chat-v17-header {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  font-weight: 800;
  font-size: .95rem;
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
}
.chat-v17-search {
  padding: .6rem .85rem;
  border-bottom: 1px solid var(--border);
}
.chat-v17-search input {
  width: 100%;
  padding: .42rem .8rem .42rem 2.1rem;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: #f0f2f5;
  font-size: .82rem;
  color: var(--text);
  outline: none;
}
.chat-v17-search input:focus { border-color: var(--primary); }
.chat-v17-search-wrap { position: relative; }
.chat-v17-search-wrap i { position:absolute; left:.7rem; top:50%; transform:translateY(-50%); color:var(--text-muted); font-size:.8rem; }
.chat-v17-list { flex:1; overflow-y:auto; }
.chat-v17-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: .75rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(0,0,0,.04);
  transition: .15s;
  text-decoration: none !important;
  color: inherit;
  position: relative;
}
.chat-v17-item:hover { background: #f0f4ff; }
.chat-v17-item.active { background: #e8f0fe; }
.chat-v17-item.unread::before {
  content:''; position:absolute; left:0; top:0; bottom:0;
  width:3px; background:var(--primary); border-radius:0 3px 3px 0;
}
.chat-v17-av { position:relative; flex-shrink:0; }
.chat-v17-av img { width:44px; height:44px; border-radius:50%; object-fit:cover; }
.chat-v17-dot {
  position:absolute; bottom:1px; right:1px;
  width:12px; height:12px; border-radius:50%;
  border:2px solid #f8f9fb; background:#bbb;
}
.chat-v17-dot.online { background:#2ecc71; }
.chat-v17-meta { flex:1; min-width:0; }
.chat-v17-name {
  font-size:.85rem; font-weight:700; color:var(--dark);
  display:flex; justify-content:space-between; gap:4px;
}
.chat-v17-time { font-size:.68rem; color:var(--text-muted); white-space:nowrap; flex-shrink:0; }
.chat-v17-preview {
  font-size:.76rem; color:var(--text-muted);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-top:2px;
}
.chat-v17-badge {
  background:var(--primary); color:#fff;
  font-size:.62rem; font-weight:800;
  min-width:18px; height:18px; padding:0 4px;
  border-radius:20px; display:inline-flex;
  align-items:center; justify-content:center;
  flex-shrink:0;
}
.chat-v17-main {
  flex:1; display:flex; flex-direction:column; min-width:0; background:#fff;
}
.chat-v17-main-header {
  padding: .85rem 1.1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
}
.chat-v17-main-header .c-name { font-size:.92rem; font-weight:700; color:var(--dark); }
.chat-v17-main-header .c-status { font-size:.74rem; }
.chat-v17-main-actions { margin-left:auto; display:flex; gap:6px; }
.chat-v17-action-btn {
  background:none; border:1px solid var(--border); border-radius:8px;
  padding:.3rem .65rem; font-size:.72rem; color:var(--text-muted);
  cursor:pointer; transition:.15s; display:inline-flex; align-items:center; gap:4px;
}
.chat-v17-action-btn:hover { background:var(--light2); border-color:var(--text-muted); }
.chat-v17-action-btn.del { color:#e74c3c; border-color:rgba(231,76,60,.3); }
.chat-v17-action-btn.del:hover { background:rgba(231,76,60,.08); }
.chat-v17-messages {
  flex:1; overflow-y:auto; padding:1.25rem;
  display:flex; flex-direction:column; gap:1.1rem;
}
.chat-v17-day-sep {
  text-align:center; font-size:.72rem; color:var(--text-muted);
  display:flex; align-items:center; gap:.6rem; margin:.4rem 0;
}
.chat-v17-day-sep::before, .chat-v17-day-sep::after {
  content:''; flex:1; height:1px; background:var(--border);
}
.chat-v17-msg-row { display:flex; align-items:flex-end; gap:8px; }
.chat-v17-msg-row.mine { flex-direction:row-reverse; }
.chat-v17-av-sm { width:30px; height:30px; border-radius:50%; object-fit:cover; flex-shrink:0; }
.chat-v17-bubble-wrap { display:flex; flex-direction:column; max-width:72%; gap:3px; }
.chat-v17-msg-row.mine .chat-v17-bubble-wrap { align-items:flex-end; }
.chat-v17-bubble {
  padding: .6rem 1rem;
  border-radius: 18px;
  font-size: .875rem;
  line-height: 1.6;
  word-break: break-word;
  white-space: pre-wrap;
  position: relative;
  cursor: context-menu;
}
.chat-v17-bubble.theirs {
  background: #f0f2f5;
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.chat-v17-bubble.mine {
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-v17-bubble.deleted {
  opacity: .5; font-style:italic;
  background: rgba(0,0,0,.05) !important;
  color: var(--text-muted) !important;
}
.chat-v17-meta-row {
  display:flex; align-items:center; gap:5px;
  font-size:.65rem; color:var(--text-muted);
}
.chat-v17-msg-row.mine .chat-v17-meta-row { flex-direction:row-reverse; }
.chat-v17-read-check { font-size:.7rem; }
.chat-v17-read-check.sent   { color:#bbb; }
.chat-v17-read-check.read   { color:#4fc3f7; }
.chat-v17-ctx-menu {
  position:absolute; background:#fff; border:1px solid var(--border);
  border-radius:10px; box-shadow:0 8px 24px rgba(0,0,0,.14);
  z-index:999; min-width:150px; overflow:hidden;
  display:none; top:100%; right:0;
}
.chat-v17-msg-row.mine .chat-v17-bubble .chat-v17-ctx-menu { right:0; left:auto; }
.chat-v17-bubble.theirs .chat-v17-ctx-menu { left:0; right:auto; }
.chat-v17-ctx-item {
  padding:.55rem 1rem; font-size:.8rem; color:var(--text);
  cursor:pointer; display:flex; align-items:center; gap:.5rem;
  transition:.1s; white-space:nowrap;
}
.chat-v17-ctx-item:hover { background:var(--light2); }
.chat-v17-ctx-item.danger { color:#e74c3c; }
.chat-v17-ctx-item.danger:hover { background:rgba(231,76,60,.08); }
.chat-v17-attachment {
  display:block; max-width:220px; border-radius:10px;
  overflow:hidden; margin-top:6px; cursor:pointer;
}
.chat-v17-attachment img { width:100%; height:auto; display:block; border-radius:10px; }
.chat-v17-attachment.file {
  display:flex; align-items:center; gap:8px;
  background:rgba(255,255,255,.15); border-radius:10px;
  padding:.5rem .75rem; font-size:.8rem; text-decoration:none;
  color:inherit; border:1px solid rgba(255,255,255,.2);
}
.chat-v17-attachment.file i { font-size:1.1rem; }
.chat-v17-input-area {
  padding: .75rem 1rem;
  border-top: 1px solid var(--border);
  background: #fff;
}
.chat-v17-input-form {
  display:flex; align-items:flex-end; gap:.5rem;
  background:#f0f2f5; border-radius:14px; padding:.5rem .75rem;
}
.chat-v17-attach-btn {
  background:none; border:none; color:var(--text-muted);
  cursor:pointer; padding:.25rem .35rem; font-size:1.1rem;
  transition:.15s; flex-shrink:0; line-height:1;
}
.chat-v17-attach-btn:hover { color:var(--primary); }
.chat-v17-textarea {
  flex:1; background:transparent; border:none; outline:none;
  font-size:.875rem; color:var(--text); resize:none;
  max-height:120px; overflow-y:auto; line-height:1.55;
  font-family:inherit; padding:.25rem 0;
}
.chat-v17-send {
  background:var(--primary); color:#fff; border:none;
  border-radius:50%; width:36px; height:36px;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; flex-shrink:0; transition:.15s;
}
.chat-v17-send:hover { background:var(--primary-light,#2a9278); }
.chat-v17-send:disabled { background:#bbb; cursor:not-allowed; }
.chat-v17-empty {
  flex:1; display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  color:var(--text-muted); gap:1rem;
}
.chat-v17-empty i { font-size:3.5rem; opacity:.12; }
.chat-v17-new-btn {
  display: inline-flex; align-items:center; gap:6px;
  background:var(--primary); color:#fff; border:none;
  border-radius:8px; padding:.45rem 1rem; font-size:.82rem;
  font-weight:600; cursor:pointer; transition:.15s;
  text-decoration:none;
}
.chat-v17-new-btn:hover { background:var(--primary-light,#2a9278); color:#fff; }

/* File preview in chat input */
.chat-file-preview {
  display:flex; align-items:center; gap:8px;
  background:#e8f0fe; border-radius:8px;
  padding:.4rem .7rem; font-size:.78rem; margin-bottom:.4rem;
  color:var(--primary);
}
.chat-file-preview button {
  background:none; border:none; cursor:pointer;
  color:var(--text-muted); font-size:.8rem; padding:0; margin-left:auto;
}

/* Responsive chat */
@media (max-width:640px) {
  .chat-v17 { flex-direction:column; height:auto; border-radius:12px; }
  .chat-v17-sidebar { width:100%; height:200px; border-right:none; border-bottom:1px solid var(--border); }
  .chat-v17-main { min-height:400px; }
}

/* ── Admin stats override tab ── */
.stats-override-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.stats-override-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.stats-override-item .stat-icon-big {
  width: 42px; height: 42px; border-radius: 10px;
  display:flex; align-items:center; justify-content:center; font-size:1.1rem;
}

/* ── TinyMCE container fix ── */
.tox-tinymce { border-radius: 10px !important; border-color: var(--border) !important; }
.tox .tox-toolbar, .tox .tox-toolbar__overflow,
.tox .tox-toolbar__primary { background: var(--light2) !important; }

/* ── Annonce detail share buttons fix (B in images) ── */
.annonce-share-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: .75rem;
}

/* ── Dashboard user sidebar ── */
.user-sidebar-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem 1.1rem;
  color: rgba(255,255,255,.65);
  font-size: .85rem;
  font-weight: 500;
  transition: var(--transition);
  border-left: 3px solid transparent;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
}
.user-sidebar-link:hover, .user-sidebar-link.active {
  color: #fff;
  background: rgba(255,255,255,.07);
  border-left-color: var(--accent);
}
.user-sidebar-link.active { color: var(--accent); }
.user-sidebar-link i { width: 17px; font-size: .85rem; }

/* ═══════════════════════════════════════════════════════════
   PARTIR ENSEMBLE – V17 FINAL POLISH
   Design premium, responsive, cohérent sur tous les écrans
   ═══════════════════════════════════════════════════════════ */

/* ── Global resets for cleaner look ── */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --primary:        #1a6b5a;
  --primary-dark:   #124d41;
  --primary-light:  #2a9278;
  --accent:         #f4a735;
  --accent-dark:    #d4891f;
  --dark:           #0d1b2a;
  --dark2:          #1a2e3d;
  --mid:            #2e4a5e;
  --light:          #f7f9fb;
  --light2:         #eef2f6;
  --text:           #1a1a2e;
  --text-muted:     #6b7280;
  --border:         #dde3ec;
  --white:          #ffffff;
  --bg:             #f4f6fb;
  --danger:         #e74c3c;
  --success:        #27ae60;
  --warning:        #f39c12;
  --info:           #2980b9;
  --shadow-sm:      0 2px 8px rgba(0,0,0,.06);
  --shadow:         0 4px 24px rgba(0,0,0,.10);
  --shadow-lg:      0 12px 48px rgba(0,0,0,.16);
  --radius:         16px;
  --radius-sm:      10px;
  --transition:     all 0.22s cubic-bezier(0.4,0,0.2,1);
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── Navbar premium final ── */
.navbar-pe {
  background: linear-gradient(135deg, #0a1a2e 0%, #0d2540 100%) !important;
  border-bottom: 1px solid rgba(255,255,255,.05) !important;
  box-shadow: 0 2px 24px rgba(0,0,0,.25) !important;
  padding: .55rem 0 !important;
  min-height: 64px;
}
.navbar-pe .navbar-brand {
  font-family: 'Playfair Display', serif !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  letter-spacing: -.5px;
}
.navbar-pe .navbar-brand span { color: var(--accent) !important; }
.navbar-pe .nav-link {
  color: rgba(255,255,255,.8) !important;
  font-size: .875rem !important;
  font-weight: 500 !important;
  padding: .45rem .8rem !important;
  border-radius: 8px !important;
  transition: var(--transition) !important;
  white-space: nowrap;
}
.navbar-pe .nav-link:hover,
.navbar-pe .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,.09) !important;
}
/* Active page highlight */
.navbar-pe .nav-link.active {
  color: var(--accent) !important;
}
/* Dropdown items */
.navbar-pe .dropdown-item {
  font-size: .875rem;
  padding: .55rem 1.1rem;
  color: var(--text) !important;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}
.navbar-pe .dropdown-item:hover {
  background: var(--light2) !important;
  color: var(--primary) !important;
}
.navbar-pe .dropdown-item.text-danger:hover {
  background: rgba(231,76,60,.06) !important;
  color: var(--danger) !important;
}
/* Navbar toggler */
.navbar-toggler {
  border: 1.5px solid rgba(255,255,255,.25) !important;
  padding: .35rem .6rem !important;
  border-radius: 8px !important;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2c255%2c255%2c.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ── Cards premium ── */
.card-pe {
  background: var(--white) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-sm) !important;
  transition: var(--transition) !important;
}
.card-pe:hover {
  box-shadow: var(--shadow) !important;
}

/* ── Section headers ── */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem) !important;
  color: var(--dark) !important;
  font-weight: 700;
  line-height: 1.2;
}
.section-subtitle {
  font-size: .95rem !important;
  color: var(--text-muted) !important;
  line-height: 1.7;
}
.section-pe { background: var(--white); padding: 4.5rem 0; }
.section-pe.bg-alt { background: var(--light2); }

/* ── VIP section label ── */
.vip-section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #b8832a, #c9a84c);
  color: white !important;
  padding: 5px 18px;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ── Announcement cards premium ── */
.announcement-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.announcement-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 36px rgba(26,107,90,.13);
  border-color: var(--primary);
}
.badge-destination {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light)) !important;
  color: #fff !important;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .73rem !important;
  font-weight: 700 !important;
  letter-spacing: .3px;
}
.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .78rem;
  color: var(--text-muted);
  font-weight: 500;
}
.meta-item i { color: var(--primary); font-size: .75rem; }
.announcement-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: .6rem;
}
.card-timestamp {
  font-size: .72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ── Voir button premium ── */
.btn-voir {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: .38rem 1rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff !important;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-voir:hover {
  filter: brightness(1.1);
  transform: scale(1.03);
  color: #fff !important;
}

/* ── Avatar ── */
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
}
.avatar-xl {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
}
.user-card-header {
  display: flex;
  align-items: center;
  gap: .65rem;
}

/* ── Badge certified ── */
.badge-certified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg,#0a2a1a,#0d3d20);
  color: #4ecba8;
  border: 1px solid rgba(78,203,168,.3);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 700;
}
.badge-pinned {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #1a1a2e;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 700;
}

/* ── Form elements premium ── */
.form-pe {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.form-group { margin-bottom: 1.1rem; }
.form-control-pe {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .65rem 1rem;
  font-size: .9rem;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: var(--transition);
  font-family: inherit;
}
.form-control-pe:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,107,90,.1);
}
.form-control-pe::placeholder { color: var(--text-muted); }
select.form-control-pe { appearance: none; cursor: pointer; }
.form-label-pe {
  display: block;
  font-size: .83rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .35rem;
}

/* ── Premium circuit cards (homepage) ── */
.premium-section { background: linear-gradient(135deg, #0a1628, #0f2040); padding: 5rem 0; }
.premium-section .card-img-wrap { overflow: hidden; }
.premium-section .card-img-wrap img {
  transition: transform .5s ease;
}
.premium-section .circuit-card:hover .card-img-wrap img {
  transform: scale(1.07);
}
.circuit-card {
  background: linear-gradient(135deg, #0d1b35, #1a2e4a);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.circuit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  border-color: rgba(244,167,53,.25);
}
.card-img-wrap {
  position: relative;
  overflow: hidden;
  height: 210px;
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-body-pe {
  padding: 1.3rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-body-pe h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .45rem;
  line-height: 1.35;
}
.circuit-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent);
  font-family: 'Playfair Display', serif;
}

/* ── Stat pills hero ── */
.stat-pill {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 30px;
  padding: .4rem 1rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.stat-pill-num { font-weight: 800; font-size: .95rem; color: var(--accent); }
.stat-pill-label { font-size: .73rem; color: rgba(255,255,255,.75); }

/* ── Dashboard layout ── */
.dashboard-layout { display: flex; min-height: calc(100vh - 64px); }
.dashboard-content { flex: 1; padding: 2rem; min-width: 0; background: var(--bg); }
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.dash-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--dark);
}

/* ── Admin sidebar final ── */
.sidebar-pe {
  width: 230px !important;
  min-width: 230px !important;
  background: linear-gradient(180deg, #0d1b2a, #0a2030) !important;
  padding: 0 !important;
  position: sticky !important;
  top: 64px !important;
  height: calc(100vh - 64px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  flex-shrink: 0 !important;
  z-index: 100 !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.1) transparent;
}
.sidebar-pe::-webkit-scrollbar { width: 3px; }
.sidebar-pe::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 3px; }
.sidebar-user-info {
  padding: 1.1rem .85rem 1rem !important;
  border-bottom: 1px solid rgba(255,255,255,.07) !important;
  text-align: center !important;
}
.sidebar-user-name { color: #fff !important; font-size: .85rem !important; font-weight: 600 !important; margin-top: .35rem; }
.sidebar-user-role { color: rgba(255,255,255,.4) !important; font-size: .68rem !important; text-transform: uppercase; letter-spacing: .5px; }
.sidebar-nav { padding: .6rem 0 2.5rem !important; }
.sidebar-nav-section {
  padding: .55rem .9rem .2rem !important;
  font-size: .6rem !important;
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
  color: rgba(255,255,255,.22) !important;
  font-weight: 700 !important;
  margin-top: .2rem;
}
.sidebar-link {
  display: flex !important;
  align-items: center !important;
  gap: .6rem !important;
  padding: .5rem 1rem !important;
  color: rgba(255,255,255,.6) !important;
  font-size: .82rem !important;
  font-weight: 500 !important;
  transition: var(--transition) !important;
  border-left: 3px solid transparent !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  cursor: pointer !important;
}
.sidebar-link i { width: 15px !important; font-size: .8rem !important; opacity: .8; }
.sidebar-link:hover {
  color: #fff !important;
  background: rgba(255,255,255,.06) !important;
  border-left-color: rgba(255,255,255,.3) !important;
}
.sidebar-link.active {
  color: var(--accent) !important;
  background: rgba(244,167,53,.09) !important;
  border-left-color: var(--accent) !important;
}
.sidebar-badge {
  margin-left: auto !important;
  background: var(--danger) !important;
  color: #fff !important;
  border-radius: 30px !important;
  padding: 1px 6px !important;
  font-size: .62rem !important;
  font-weight: 800 !important;
  min-width: 18px;
  text-align: center;
}

/* ── Stat cards dashboard ── */
.stat-card {
  background: var(--white) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  padding: 1.5rem !important;
  box-shadow: var(--shadow-sm) !important;
  transition: var(--transition) !important;
  text-align: center;
}
.stat-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: var(--shadow) !important;
  border-color: var(--primary) !important;
}
.stat-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; margin: 0 auto .75rem;
}
.stat-icon.green { background: rgba(39,174,96,.12); color: #27ae60; }
.stat-icon.amber { background: rgba(244,167,53,.12); color: var(--accent); }
.stat-icon.blue  { background: rgba(26,107,160,.12); color: #1a6ba0; }
.stat-icon.red   { background: rgba(231,76,60,.12);  color: var(--danger); }
.stat-number {
  font-size: 1.9rem !important;
  font-weight: 800 !important;
  color: var(--dark) !important;
  font-family: 'Playfair Display', serif;
  line-height: 1.1;
}
.stat-label { font-size: .75rem !important; color: var(--text-muted) !important; font-weight: 500 !important; margin-top: .25rem; }

/* ── Login/Register forms ── */
.auth-page-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0a1628 0%, #0d2540 60%, #0f3050 100%);
  padding: 2rem 1rem;
}
.auth-card {
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
  padding: 2.5rem;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}
.auth-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dark);
  text-align: center;
  margin-bottom: 1.75rem;
}
.auth-brand span { color: var(--primary); }
.auth-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .35rem;
}
.auth-subtitle { font-size: .875rem; color: var(--text-muted); margin-bottom: 1.5rem; }

/* ── Pagination premium ── */
.pagination-pe { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: center; margin-top: 2rem; }
.page-btn {
  min-width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: .85rem; font-weight: 600;
  background: var(--white); color: var(--text-muted);
  border: 1.5px solid var(--border); transition: var(--transition);
}
.page-btn:hover, .page-btn.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
  transform: translateY(-1px);
}

/* ── Alerts ── */
.alert-pe {
  padding: .8rem 1rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.alert-pe.success { background: rgba(39,174,96,.1); border: 1px solid rgba(39,174,96,.25); color: #1e8449; }
.alert-pe.danger  { background: rgba(231,76,60,.1);  border: 1px solid rgba(231,76,60,.25);  color: #c0392b; }
.alert-pe.warning { background: rgba(243,156,18,.1); border: 1px solid rgba(243,156,18,.25); color: #9a7d0a; }
.alert-pe.info    { background: rgba(41,128,185,.1); border: 1px solid rgba(41,128,185,.25); color: #1a5276; }

/* ── Table premium ── */
.table-pe { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table-pe thead tr { background: var(--light2); border-bottom: 2px solid var(--border); }
.table-pe th { padding: .85rem 1rem; text-align: left; font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); white-space: nowrap; }
.table-pe td { padding: .8rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--text); }
.table-pe tbody tr:hover { background: rgba(26,107,90,.03); }
.table-pe tbody tr:last-child td { border-bottom: none; }

/* ── Empty state ── */
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--text-muted); }
.empty-state i { font-size: 3rem; opacity: .2; margin-bottom: 1rem; display: block; }
.empty-state p { font-size: 1rem; }

/* ── RESPONSIVE final ── */
@media (max-width: 991px) {
  .sidebar-pe {
    position: fixed !important;
    left: -260px !important;
    top: 0 !important;
    height: 100vh !important;
    transition: left .28s ease !important;
    z-index: 1060 !important;
  }
  .sidebar-pe.open { left: 0 !important; }
  .sidebar-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 1055;
  }
  .sidebar-overlay.show { display: block; }
  .dashboard-layout { display: block; }
  .dashboard-content { padding: 1.25rem; }
}
@media (max-width: 767px) {
  .auth-card { padding: 2rem 1.5rem; }
  .dash-header { flex-direction: column; align-items: flex-start; }
  .dashboard-content { padding: 1rem; }
  .section-pe { padding: 3rem 0; }
}
@media (max-width: 575px) {
  .premium-section .row.g-4 > [class*="col-lg-4"] {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  .stat-card { padding: 1.1rem !important; }
  .stat-number { font-size: 1.5rem !important; }
}


/* ── MS Messenger layout fixes ── */
.messenger-layout {
  border-radius: var(--radius) !important;
  overflow: hidden !important;
  box-shadow: var(--shadow) !important;
}
@media (max-width: 768px) {
  .messenger-layout {
    flex-direction: column !important;
    height: auto !important;
    min-height: 500px;
  }
  .ms-sidebar {
    width: 100% !important;
    max-height: 40vh !important;
    border-right: none !important;
    border-bottom: 1px solid var(--border) !important;
  }
  .ms-main { min-height: 55vh !important; }
}

/* ── Chat v17 mobile ── */
@media (max-width: 600px) {
  .chat-v17 {
    flex-direction: column !important;
    height: auto !important;
    border-radius: 12px !important;
  }
  .chat-v17-sidebar {
    width: 100% !important;
    height: 200px !important;
    border-right: none !important;
    border-bottom: 1px solid var(--border) !important;
  }
  .chat-v17-main { min-height: 400px; }
}

/* ── Booking payment section ── */
.booking-payment-box {
  background: linear-gradient(135deg,#0a1628,#1a2e4a) !important;
  border-radius: 16px !important;
  border: 1px solid rgba(244,167,53,.25) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,.25) !important;
  overflow: hidden;
}
.booking-payment-title { font-weight:700;color:#fff !important;font-size:.95rem; }
.booking-payment-sub   { font-size:.73rem;color:rgba(255,255,255,.55) !important; }
.booking-payment-badge { background:rgba(244,167,53,.2);border:1px solid rgba(244,167,53,.4);color:#f4a735 !important;font-size:.7rem;font-weight:700;padding:4px 10px;border-radius:20px; }
.booking-payment-icon  { background:rgba(244,167,53,.15) !important; }
.booking-payment-icon i { color:#f4a735 !important; }
.booking-payment-body {
  font-size: .875rem !important;
  line-height: 1.85 !important;
  color: #fff !important;
  background: transparent !important;
}
.booking-payment-body * { color: #fff !important; }
.booking-payment-body b, .booking-payment-body strong { color: #f4a735 !important; font-weight:700; }
.booking-payment-body a { color: #f4a735 !important; text-decoration:underline; }
@media (max-width: 576px) {
  .booking-payment-box { padding: 1rem !important; }
  .booking-payment-title { font-size: .85rem !important; }
  .booking-payment-body { font-size: .8rem !important; padding: .85rem !important; }
}

/* ── Header fix: messages link color ── */
.dropdown-item i { opacity: .65; transition: opacity .15s; }
.dropdown-item:hover i { opacity: 1; }

/* ── Annonce detail modifier button ── */
a[href*="modifier-annonce"],
.btn-edit-annonce {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: .55rem 1.3rem !important;
  border-radius: 10px !important;
  background: var(--primary) !important;
  color: #fff !important;
  font-weight: 600 !important;
  font-size: .875rem !important;
  text-decoration: none !important;
  transition: var(--transition) !important;
}
a[href*="modifier-annonce"]:hover,
.btn-edit-annonce:hover {
  background: var(--primary-light) !important;
  color: #fff !important;
  transform: translateY(-1px) !important;
}

/* ── Share buttons annonce ── */
.annonce-share-row a,
.annonce-share-row button {
  border-radius: 8px !important;
  font-size: .78rem !important;
  padding: 6px 14px !important;
}

/* ── Itin accordion ── */
.itin-btn { transition: var(--transition); }
.itin-btn:hover { background: var(--light2) !important; }
.itin-btn.open {
  background: linear-gradient(135deg, rgba(26,107,90,.06), rgba(42,146,120,.04)) !important;
  color: var(--primary) !important;
}

/* ── Input search bar ── */
.search-bar-wrap {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 60px;
  padding: .5rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  max-width: 680px;
  margin: 0 auto;
}
.search-bar-wrap .form-control-pe {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #fff !important;
  font-size: .9rem !important;
}
.search-bar-wrap .form-control-pe::placeholder { color: rgba(255,255,255,.55) !important; }
.search-bar-wrap select.form-control-pe { color: #fff !important; }
.search-bar-wrap select.form-control-pe option { color: var(--text); background: var(--white); }

/* ── Notif dropdown ── */
.notif-dropdown {
  width: 310px !important;
  border-radius: var(--radius) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow-lg) !important;
  overflow: hidden !important;
}

/* ── z-index fixes ── */
.navbar-pe { z-index: 1050 !important; }
.sidebar-pe { z-index: 1060 !important; }
#newChatModal,
#newMsgModal { z-index: 9999 !important; }

/* ── Quill editor custom styling ── */
.ql-toolbar.ql-snow {
  border: none !important;
  padding: 8px 10px !important;
  background: var(--light2) !important;
  border-radius: 10px 10px 0 0 !important;
  border-bottom: 1px solid var(--border) !important;
  flex-wrap: wrap;
}
.ql-container.ql-snow {
  border: none !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: .9rem !important;
}
.ql-editor {
  min-height: 220px !important;
  padding: 12px 14px !important;
  line-height: 1.75 !important;
  color: var(--text) !important;
}
.ql-editor.ql-blank::before {
  color: var(--text-muted) !important;
  font-style: normal !important;
}
.ql-toolbar.ql-snow .ql-formats {
  margin-right: 8px !important;
}
.ql-snow .ql-stroke { stroke: var(--text-muted) !important; }
.ql-snow .ql-fill { fill: var(--text-muted) !important; }
.ql-snow.ql-toolbar button:hover .ql-stroke,
.ql-snow.ql-toolbar button.ql-active .ql-stroke {
  stroke: var(--primary) !important;
}
.ql-snow.ql-toolbar button:hover .ql-fill,
.ql-snow.ql-toolbar button.ql-active .ql-fill {
  fill: var(--primary) !important;
}
/* Quill tooltip */
.ql-tooltip {
  z-index: 9999 !important;
  border-radius: 8px !important;
  box-shadow: var(--shadow) !important;
}

/* ── Circuit form tab panel ── */
.cf-tab-pane { padding: 1.5rem 0; }


/* ── E: Premium circuits - single column mobile, no 2x2 ── */
@media (max-width: 767px) {
  .premium-section .row { gap: 1rem !important; }
  .premium-section .circuit-card { min-height: auto; }
  .premium-section .card-img-wrap { height: 200px !important; }
  .premium-section .card-body-pe h3 { font-size: 1rem !important; }
  /* Fix Certifié badge on mobile */
  .badge-certified {
    font-size: .65rem !important;
    padding: 3px 8px !important;
    white-space: nowrap;
  }
}
/* Fix annonce card image */
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Fix circuits.php search bar mobile */
@media (max-width: 576px) {
  .circuits-search-bar { flex-direction: column !important; gap: .5rem !important; }
  .circuits-search-bar input, .circuits-search-bar select { width: 100% !important; }
}


/* ── V19: Booking recap & payment section ── */
#paymentInfoInline .booking-payment-body,
#paymentInfoInline .booking-payment-body p,
#paymentInfoInline .booking-payment-body span,
#paymentInfoInline .booking-payment-body div,
#paymentInfoInline .booking-payment-body li {
  color: #fff !important;
  background: transparent !important;
}
#paymentInfoInline .booking-payment-body b,
#paymentInfoInline .booking-payment-body strong {
  color: #f4a735 !important;
}
/* Booking form responsive */
@media (max-width: 576px) {
  .booking-payment-box { border-radius: 12px !important; }
  .booking-payment-body { font-size: .82rem !important; padding: .9rem !important; }
}
/* rcTotal - recap total white text */
#rcTotal, .rc-total { color: #fff !important; font-weight: 800 !important; }

/* ── L: Annonces filter bar fix ── */
.filter-form-wrap input.form-control-pe,
.filter-form-wrap select.form-control-pe {
  padding-left: 2.2rem !important;
  font-size: .875rem !important;
}
.filter-form-wrap .field-icon {
  position: absolute;
  left: .75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: .8rem;
  pointer-events: none;
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════
   PARTIR ENSEMBLE V22 — Correctifs et améliorations
   ═══════════════════════════════════════════════════════ */

/* ── Grille messages responsive ── */
.messages-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1rem;
  min-height: 520px;
}
@media (max-width: 768px) {
  .messages-grid {
    grid-template-columns: 1fr;
    gap: .75rem;
  }
}

/* ── Formulaire de réservation ── */
.booking-section {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.booking-section:hover {
  box-shadow: 0 4px 20px rgba(26,107,90,.08);
}

/* ── Badges statuts réservations ── */
.resa-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 20px;
  padding: 3px 11px;
  font-size: .74rem;
  font-weight: 700;
}

/* ── Total_price affiché en € ── */
.price-display {
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
}

/* ── Alert responsive ── */
.alert-pe {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .9rem 1.1rem;
  border-radius: 10px;
  font-size: .875rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}
.alert-pe.success { background: rgba(39,174,96,.1); border: 1px solid rgba(39,174,96,.25); color: #1a7a40; }
.alert-pe.danger  { background: rgba(231,76,60,.1);  border: 1px solid rgba(231,76,60,.25);  color: #c0392b; }
.alert-pe.warning { background: rgba(243,156,18,.1); border: 1px solid rgba(243,156,18,.25); color: #c67c0f; }
.alert-pe.info    { background: rgba(41,128,185,.1); border: 1px solid rgba(41,128,185,.25); color: #1a5a8a; }

/* ── Form controls PE – taille mobile ── */
.form-control-pe, .form-label-pe, select.form-control-pe, textarea.form-control-pe {
  width: 100%;
}
@media (max-width: 480px) {
  .form-control-pe, select.form-control-pe, textarea.form-control-pe {
    font-size: 16px; /* Évite le zoom iOS */
  }
}

/* ── Sidebar mobile fixe ── */
@media (max-width: 992px) {
  .sidebar-pe {
    position: fixed !important;
    left: -260px;
    top: 0 !important;
    height: 100vh !important;
    z-index: 1100;
    transition: left .3s ease;
    width: 240px;
  }
  .sidebar-pe.open { left: 0; }
  .sidebar-overlay { display: none; position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:1099; }
  .sidebar-overlay.show { display: block; }
  .dashboard-content { padding: 1rem .75rem; }
}
@media (min-width: 993px) {
  .sidebar-overlay { display: none !important; }
  .sidebar-pe { position: sticky !important; top: 60px !important; height: calc(100vh - 60px) !important; }
  .dashboard-layout { display: flex; align-items: flex-start; min-height: calc(100vh - 60px); }
}

/* ── Tableau responsive ── */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-pe { min-width: 500px; width: 100%; }

/* ── Stat cards mobiles ── */
@media (max-width: 576px) {
  .stat-card { padding: .9rem; }
  .stat-number { font-size: 1.4rem; }
}

/* ── Booking form responsive ── */
@media (max-width: 640px) {
  .booking-summary-bar {
    flex-direction: column;
    text-align: left;
  }
}

/* ── Chat v17 corrigé ── */
.chat-v17 {
  display: grid;
  grid-template-columns: 280px 1fr;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  min-height: 560px;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 768px) {
  .chat-v17 {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    min-height: auto;
  }
  .chat-v17-sidebar {
    max-height: 280px;
    border-right: none !important;
    border-bottom: 1px solid var(--border);
  }
  .chat-v17-main {
    min-height: 400px;
  }
}
.chat-v17-sidebar {
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  background: #fafafa;
}
.chat-v17-main {
  display: flex;
  flex-direction: column;
}
.chat-v17-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  background: #f0f4f8;
  min-height: 300px;
}
.chat-v17-messages::-webkit-scrollbar { width: 4px; }
.chat-v17-messages::-webkit-scrollbar-track { background: transparent; }
.chat-v17-messages::-webkit-scrollbar-thumb { background: rgba(0,0,0,.15); border-radius: 4px; }
.chat-v17-bubble.mine {
  background: linear-gradient(135deg,var(--primary),var(--primary-dark));
  color: #fff;
  border-radius: 16px 16px 4px 16px;
  padding: .65rem .95rem;
  font-size: .875rem;
  line-height: 1.6;
  position: relative;
  max-width: 100%;
  word-break: break-word;
}
.chat-v17-bubble.theirs {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 16px 16px 16px 4px;
  padding: .65rem .95rem;
  font-size: .875rem;
  line-height: 1.6;
  max-width: 100%;
  word-break: break-word;
}
.chat-v17-input-area {
  border-top: 1px solid var(--border);
  padding: .85rem 1rem;
  background: #fafafa;
}
.chat-v17-input-form {
  display: flex;
  align-items: flex-end;
  gap: .5rem;
}
.chat-v17-textarea {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: .6rem .9rem;
  font-size: .88rem;
  resize: none;
  max-height: 120px;
  outline: none;
  font-family: inherit;
  line-height: 1.5;
  transition: border-color .15s;
}
.chat-v17-textarea:focus { border-color: var(--primary); }
.chat-v17-send {
  width: 38px; height: 38px;
  background: var(--primary);
  border: none; border-radius: 10px;
  cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0;
  transition: .15s;
}
.chat-v17-send:hover { background: var(--primary-dark); }
.chat-v17-attach-btn {
  width: 38px; height: 38px;
  background: var(--light2);
  border: 1px solid var(--border);
  border-radius: 10px; cursor: pointer;
  display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
  color: var(--text-muted); transition: .15s;
}
.chat-v17-attach-btn:hover { background: var(--border); }
.chat-v17-msg-row {
  display: flex;
  align-items: flex-end;
  gap: .5rem;
}
.chat-v17-msg-row.mine { flex-direction: row-reverse; }
.chat-v17-msg-row.mine .chat-v17-bubble-wrap { align-items: flex-end; }
.chat-v17-bubble-wrap {
  display: flex;
  flex-direction: column;
  max-width: 72%;
}
.chat-v17-meta-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  font-size: .65rem;
  color: var(--text-muted);
  padding: 0 2px;
}
.chat-v17-av-sm {
  width: 28px; height: 28px;
  border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.chat-v17-empty {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .75rem; color: var(--text-muted); padding: 2rem; text-align: center;
}
.chat-v17-empty i { font-size: 3rem; opacity: .15; }
.chat-v17-new-btn {
  background: var(--primary); color: #fff; border: none;
  border-radius: 10px; padding: .6rem 1.2rem; cursor: pointer;
  font-size: .85rem; font-weight: 600; display: flex;
  align-items: center; gap: 6px; margin-top: .5rem;
}
.chat-v17-day-sep {
  text-align: center; font-size: .7rem; color: var(--text-muted);
  background: rgba(0,0,0,.06); border-radius: 20px;
  padding: 2px 10px; align-self: center; margin: .5rem 0;
}
.chat-v17-read-check { font-size: .7rem; }
.chat-v17-read-check.read { color: #2ecc71; }
.chat-v17-read-check.sent { color: rgba(255,255,255,.5); }
.chat-file-preview {
  display: flex; align-items: center; gap: 6px;
  padding: .4rem .75rem; background: var(--light2);
  border-radius: 8px; font-size: .78rem; margin-bottom: .4rem;
}
.chat-file-preview button {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); margin-left: auto;
}

/* ── Pagination PE ── */
.pagination-pe {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
  justify-content: center;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  font-size: .85rem;
  color: var(--text);
  text-decoration: none;
  background: #fff;
  transition: .15s;
}
.page-btn:hover, .page-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ── Notif items ── */
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .9rem 1.25rem;
  border-bottom: 1px solid var(--border);
  transition: .15s;
}
.notif-item.unread { background: rgba(26,107,90,.04); }
.notif-item:hover { background: var(--light2); }
.notif-dot {
  width: 8px; height: 8px;
  border-radius: 50%; background: var(--primary);
  flex-shrink: 0; margin-top: 6px;
}

/* ── Print friendly ── */
@media print {
  .sidebar-pe, .navbar-pe, footer, .btn, button { display: none !important; }
  .dashboard-content { padding: 0; }
}

/* ── SIDEBAR MOBILE FINAL FIX ── */
@media (min-width: 992px) {
  .sidebar-overlay { display: none !important; }
}
@media (max-width: 991px) {
  .sidebar-pe {
    position: fixed !important;
    left: -280px !important;
    top: 0 !important;
    height: 100vh !important;
    width: 260px !important;
    transition: left .28s cubic-bezier(.4,0,.2,1) !important;
    z-index: 1100 !important;
    overflow-y: auto !important;
  }
  .sidebar-pe.open { left: 0 !important; }
  .sidebar-overlay {
    display: none;
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0,0,0,.52) !important;
    z-index: 1099 !important;
    cursor: pointer;
  }
  .sidebar-overlay.show { display: block !important; }
  .dashboard-layout { display: block !important; }
  .dashboard-content { margin-left: 0 !important; width: 100% !important; }
}
