/**
 * Tchefon Admin - Styles principaux (Bootstrap 5 Custom)
 * Refonte Admin Custom - Version 1.0
 */

/* ============================================
   VARIABLES & ROOT
   ============================================ */

:root {
  --tch-primary: #1E2A5A;
  --tch-primary-hover: #16204A;
  --tch-primary-tint: #E9ECF7;
  --tch-secondary: #1F7A5C;
  --tch-secondary-hover: #17624A;
  --tch-secondary-tint: #E6F4EF;
  --tch-accent: #C6A15B;
  --tch-accent-hover: #A8843D;
  --tch-accent-tint: #F3E6C9;
  --tch-success: #1F7A5C;
  --tch-warning: #D97706;
  --tch-error: #DC2626;
  --tch-info: #1E2A5A;
  --tch-bg: #FFF7EA;
  --tch-surface: #FFFFFF;
  --tch-text: #111827;
  --tch-text-light: #FFFFFF;
  --tch-text-muted: #4b5563;
  --tch-border: #E5E7EB;
  --tch-border-accent: rgba(198, 161, 91, 0.3);
  --tch-sidebar-width: 280px;
  --tch-header-height: 64px;
  --tch-radius: 0.5rem;
  --tch-radius-lg: 0.75rem;
  --tch-radius-xl: 1rem;
  --tch-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --tch-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --tch-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ============================================
   BASE & RESET
   ============================================ */

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.875rem;
  color: var(--tch-text);
  background-color: var(--tch-bg);
}

a {
  color: var(--tch-primary);
  text-decoration: none;
}

a:hover {
  color: var(--tch-accent);
}

/* ============================================
   SIDEBAR
   ============================================ */

.admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--tch-sidebar-width);
  height: 100vh;
  background: var(--tch-primary);
  z-index: 1040;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, width 0.3s ease;
}

@media (max-width: 991.98px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }

  .admin-sidebar.show {
    transform: translateX(0);
  }
}

.sidebar-brand {
  height: var(--tch-header-height);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.brand-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--tch-accent);
  letter-spacing: 0.05em;
}

.brand-logo::before {
  content: "✦";
  margin-right: 0.5rem;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0;
}

.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.nav-section {
  padding: 1.25rem 1.5rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tch-accent);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 0.5rem;
}

.nav-section:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 0.5rem;
}

.nav-item .nav-link {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem 1.5rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.nav-item .nav-link i {
  width: 20px;
  text-align: center;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.nav-item .nav-link:hover {
  color: #fff;
  background: rgba(198, 161, 91, 0.15);
}

.nav-item .nav-link:hover i {
  color: var(--tch-accent);
}

.nav-item .nav-link.active {
  color: var(--tch-primary);
  background: var(--tch-accent);
  font-weight: 600;
}

.nav-item .nav-link.active i {
  color: var(--tch-primary);
}

/* ─── Nav parent collapse (groupes Mariages, Vitrines, Contenu, etc.) ─── */
.nav-item--parent {
  display: flex;
  flex-direction: column;
}

.nav-toggle {
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.nav-toggle__chevron {
  margin-left: auto;
  width: 14px !important;
  font-size: 0.75rem !important;
  transition: transform 0.25s ease;
}

.nav-toggle.is-open .nav-toggle__chevron {
  transform: rotate(180deg);
  color: var(--tch-accent) !important;
}

.nav-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-left: 1.5rem;
  position: relative;
}

.nav-submenu.is-open {
  max-height: 600px;
}

/* Trait vertical or à gauche pour signaler la hiérarchie enfant */
.nav-submenu::before {
  content: "";
  position: absolute;
  left: 1.75rem;
  top: 0.25rem;
  bottom: 0.25rem;
  width: 1px;
  background: rgba(198, 161, 91, 0.25);
}

.nav-sublink {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem 0.5rem 1.5rem;
  margin: 0.125rem 0;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  font-size: 0.825rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  position: relative;
}

.nav-sublink i {
  width: 16px;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s ease;
}

.nav-sublink:hover {
  background: rgba(198, 161, 91, 0.12);
  color: #fff;
}

.nav-sublink:hover i {
  color: var(--tch-accent);
}

.nav-sublink.active {
  background: rgba(198, 161, 91, 0.18);
  color: #fff;
  font-weight: 600;
}

.nav-sublink.active::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tch-accent);
  box-shadow: 0 0 8px rgba(198, 161, 91, 0.6);
}

.nav-sublink.active i {
  color: var(--tch-accent);
}

/* En mode collapsed (sidebar étroite desktop), tout est plié */
.admin-sidebar.collapsed .nav-toggle__chevron,
.admin-sidebar.collapsed .nav-submenu {
  display: none;
}

.admin-sidebar.collapsed .nav-toggle {
  justify-content: center;
  padding: 0.75rem 0;
}

.sidebar-close {
  display: none;
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Footer sidebar — raccourci « Voir le site » en bas du panneau, séparé de
   la nav par un liseré or discret pour rappeler la charte CTA. */
.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.15);
}

.sidebar-shop-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.875rem;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  background: color-mix(in srgb, var(--tch-accent) 20%, transparent);
  border: 1px solid color-mix(in srgb, var(--tch-accent) 40%, transparent);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.sidebar-shop-link i {
  color: var(--tch-accent);
  font-size: 1rem;
}

.sidebar-shop-link:hover {
  background: color-mix(in srgb, var(--tch-accent) 35%, transparent);
  border-color: var(--tch-accent);
  color: #fff;
}

@media (max-width: 991.98px) {
  .sidebar-close {
    display: block;
  }
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1035;
}

@media (max-width: 991.98px) {
  .sidebar-overlay.show {
    display: block;
  }
}

.admin-main {
  margin-left: var(--tch-sidebar-width);
  min-height: 100vh;
  transition: margin-left 0.3s ease;
}

@media (max-width: 991.98px) {
  .admin-main {
    margin-left: 0;
  }
}

/* ============================================
   SIDEBAR COLLAPSE DESKTOP (>= 992px)
   ============================================ */
@media (min-width: 992px) {
  .admin-sidebar.collapsed {
    width: 72px;
  }

  .admin-sidebar.collapsed .sidebar-brand {
    padding: 0;
    justify-content: center;
  }

  .admin-sidebar.collapsed .brand-logo {
    font-size: 0;
    letter-spacing: 0;
  }

  .admin-sidebar.collapsed .brand-logo::before {
    font-size: 1.5rem;
    margin-right: 0;
  }

  .admin-sidebar.collapsed .nav-section {
    display: none;
  }

  .admin-sidebar.collapsed .nav-item .nav-link {
    padding: 0.75rem 0;
    justify-content: center;
    gap: 0;
  }

  .admin-sidebar.collapsed .nav-item .nav-link span {
    display: none;
  }

  .admin-sidebar.collapsed .nav-item .nav-link i {
    font-size: 1.1rem;
  }

  .admin-sidebar.collapsed .sidebar-footer {
    padding: 0.625rem 0.5rem;
  }

  .admin-sidebar.collapsed .sidebar-shop-link {
    padding: 0.625rem 0;
    justify-content: center;
    gap: 0;
  }

  .admin-sidebar.collapsed .sidebar-shop-link span {
    display: none;
  }

  .admin-main.sidebar-collapsed {
    margin-left: 72px;
  }
}

/* ============================================
   BOUTON COLLAPSE DESKTOP (visible >= 992px)
   ============================================ */
.sidebar-collapse-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--tch-radius);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 1.05rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-collapse-toggle:hover {
  background: rgba(198, 161, 91, 0.3);
  color: var(--tch-accent);
}

@media (min-width: 992px) {
  .sidebar-collapse-toggle {
    display: inline-flex;
  }
}

/* ============================================
   HEADER
   ============================================ */

.admin-header {
  height: var(--tch-header-height);
  background: var(--tch-primary);
  border-bottom: 1px solid var(--tch-border-accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sidebar-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--tch-radius);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

@media (max-width: 991.98px) {
  .sidebar-toggle {
    display: flex;
  }
}

.sidebar-toggle:hover {
  background: rgba(198, 161, 91, 0.3);
  color: var(--tch-accent);
}

.header-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  background: rgba(22, 32, 74, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(198, 161, 91, 0.25);
  border-radius: 50px;
  padding: 0.375rem 1rem;
  transition: all 0.3s ease;
}

.header-breadcrumb:hover {
  background: rgba(22, 32, 74, 0.8);
  border-color: rgba(198, 161, 91, 0.4);
}

.header-breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  padding: 0.25rem 0.5rem;
  border-radius: 20px;
  transition: all 0.25s ease;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 500;
}

/* Icône maison uniquement pour le premier lien du header principal */
.admin-header>.header-left>.header-breadcrumb>.breadcrumb>.breadcrumb-item:first-child>a::before {
  font-family: "bootstrap-icons";
  content: "\F424";
  font-size: 0.75rem;
  opacity: 0.9;
  margin-right: 0.25rem;
}

/* Aucune icône pour les autres liens du breadcrumb */
.header-breadcrumb a::before {
  content: none !important;
}

.header-breadcrumb a:hover {
  color: var(--tch-accent);
  background: rgba(198, 161, 91, 0.15);
  transform: translateY(-1px);
}

.breadcrumb-separator {
  color: var(--tch-accent);
  font-size: 0.625rem;
  margin: 0 0.25rem;
  display: inline-flex;
  align-items: center;
  opacity: 0.9;
}

.breadcrumb-separator::before {
  font-family: "bootstrap-icons";
  content: "\F285";
}

.breadcrumb-current {
  color: #fff;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  position: relative;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.breadcrumb-current::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0.5rem;
  right: 0.5rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--tch-accent), transparent);
  border-radius: 2px;
}

/* Breadcrumb dans les pages de contenu (style différent) */
.page-header .header-breadcrumb {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  backdrop-filter: none;
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.page-header .header-breadcrumb .breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-header .header-breadcrumb .breadcrumb-item {
  display: flex;
  align-items: center;
}

.page-header .header-breadcrumb .breadcrumb-item a {
  color: var(--tch-primary);
  padding: 0;
  font-weight: 500;
  text-decoration: none;
}

.page-header .header-breadcrumb .breadcrumb-item a:hover {
  color: var(--tch-accent);
  background: transparent;
}

.page-header .header-breadcrumb .breadcrumb-item+.breadcrumb-item::before {
  content: "/";
  color: var(--tch-accent);
  margin: 0 0.5rem;
  font-weight: 500;
}

.page-header .header-breadcrumb .breadcrumb-item.active {
  color: #374151;
  font-weight: 600;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--tch-radius);
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.header-btn:hover {
  background: rgba(198, 161, 91, 0.2);
  color: var(--tch-accent);
}

.btn-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--tch-error);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--tch-primary);
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.25rem 0.75rem 0.25rem 0.25rem;
  border-radius: var(--tch-radius-lg);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  background: transparent;
}

.user-menu:hover {
  background: rgba(255, 255, 255, 0.1);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tch-accent) 0%, var(--tch-accent-hover) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.3);
  overflow: hidden;
  flex-shrink: 0;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.user-avatar__initials {
  line-height: 1;
}

.user-info {
  text-align: left;
  display: none;
}

@media (min-width: 576px) {
  .user-info {
    display: block;
  }
}

.user-name {
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
}

.user-role {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
}

.user-chevron {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
}

/* ============================================
   CARDS
   ============================================ */

.stat-card {
  background: var(--tch-surface);
  border-radius: var(--tch-radius-xl);
  padding: 1.5rem;
  box-shadow: var(--tch-shadow);
  border: 1px solid var(--tch-border);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

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

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--card-accent, var(--tch-primary));
}

.card-primary {
  --card-accent: var(--tch-primary);
}

.card-success {
  --card-accent: var(--tch-secondary);
}

.card-accent {
  --card-accent: var(--tch-accent);
}

.card-warning {
  --card-accent: var(--tch-warning);
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

.stat-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--tch-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  background: var(--card-accent);
  color: #fff;
  opacity: 0.9;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--tch-text);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.stat-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: #4b5563;
  font-weight: 500;
}

.stat-trend {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  font-size: 0.75rem;
}

.trend-up {
  background: var(--tch-secondary-tint);
  color: var(--tch-secondary);
}

.trend-down {
  background: rgba(220, 38, 38, 0.1);
  color: var(--tch-error);
}

.content-card {
  background: var(--tch-surface);
  border-radius: var(--tch-radius-xl);
  box-shadow: var(--tch-shadow);
  border: 1px solid var(--tch-border);
  overflow: hidden;
}

.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--tch-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--tch-text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-title i {
  color: var(--tch-accent);
}

.card-body {
  padding: 1.5rem;
}

/* ============================================
   TABLES
   ============================================ */

.table-container {
  background: var(--tch-surface);
  border-radius: var(--tch-radius-xl);
  box-shadow: var(--tch-shadow);
  border: 1px solid var(--tch-border);
  overflow: hidden;
}

.table-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--tch-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.table-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--tch-text);
  margin: 0;
}

.table-actions {
  display: flex;
  gap: 0.5rem;
}

.table {
  margin: 0;
}

.table th {
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #374151;
  border-bottom-width: 1px;
  padding: 0.875rem 1.5rem;
  white-space: nowrap;
  background: #f9fafb;
}

.table td {
  padding: 1rem 1.5rem;
  vertical-align: middle;
  color: #111827;
  font-weight: 500;
}

.table tbody tr {
  transition: background 0.15s ease;
}

.table tbody tr:hover {
  background: rgba(30, 42, 90, 0.02);
}

.table-actions-cell {
  display: flex;
  gap: 0.25rem;
  justify-content: flex-end;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  transition: all 0.2s ease;
  padding: 0.625rem 1.25rem;
  border-radius: var(--tch-radius);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.5;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--tch-primary);
  border-color: var(--tch-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--tch-primary-hover);
  border-color: var(--tch-primary-hover);
  color: #fff;
}

.btn-outline-primary {
  border-color: var(--tch-primary);
  color: var(--tch-primary);
}

.btn-outline-primary:hover {
  background: var(--tch-primary);
  border-color: var(--tch-primary);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--tch-text-muted);
}

.btn-ghost:hover {
  background: rgba(30, 42, 90, 0.05);
  color: var(--tch-primary);
}

/* ============================================
   BADGES
   ============================================ */

.badge {
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.35em 0.65em;
  border-radius: 9999px;
}

.badge-draft {
  background: #F3F4F6;
  color: #374151;
}

.badge-review {
  background: #FEF3C7;
  color: #92400E;
}

.badge-published {
  background: #D1FAE5;
  color: #065F46;
}

.badge-archived {
  background: #E5E7EB;
  color: #374151;
}

.badge-urgent {
  background: #FEE2E2;
  color: #991B1B;
}

/* ============================================
   DROPDOWNS
   ============================================ */

.dropdown-menu {
  border-color: var(--tch-border);
  box-shadow: var(--tch-shadow-xl);
  border-radius: var(--tch-radius-lg);
  padding: 0.5rem;
}

.dropdown-item {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.625rem 1rem;
  border-radius: var(--tch-radius);
  color: #111827;
}

.dropdown-item:hover {
  background: var(--tch-primary-tint);
  color: var(--tch-primary);
}

.dropdown-item i {
  color: var(--tch-accent);
  margin-right: 0.75rem;
  width: 20px;
  text-align: center;
}

.dropdown-item.text-danger {
  color: var(--tch-error);
}

.dropdown-item.text-danger i {
  color: var(--tch-error);
}

.dropdown-item.text-danger:hover {
  background: rgba(220, 38, 38, 0.1);
}

.dropdown-divider {
  border-color: var(--tch-border);
  margin: 0.5rem;
}

.dropdown-header {
  color: #4b5563;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.5rem 1rem;
}

/* ============================================
   FORMS
   ============================================ */

.form-label {
  font-weight: 600;
  font-size: 0.9375rem;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.form-control,
.form-select {
  border-color: #d1d5db;
  font-size: 1rem;
  color: #111827 !important;
  background-color: #fff;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--tch-accent);
  box-shadow: 0 0 0 3px rgba(198, 161, 91, 0.15);
}

.form-control::placeholder {
  color: #6b7280;
  font-weight: 500;
  opacity: 0.8;
}

.form-floating>label {
  color: #374151;
  font-weight: 600;
  font-size: 1rem;
  padding: 1rem 0.75rem;
  z-index: 2;
}

.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label,
.form-floating>.form-select~label {
  color: var(--tch-primary);
  height: 30px;
  font-weight: 700;
  background-color: #fff;
  padding: 0 0 0 10px;
  transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.form-floating>.form-control,
.form-floating>.form-select {
  height: calc(3.5rem + 2px);
  padding: 1rem 0.75rem;
  color: #111827 !important;
  background-color: #fff;
}

/* Input group text */
.input-group-text {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #374151;
  font-weight: 500;
}

.input-group-lg .input-group-text {
  padding: 1rem 1.25rem;
  font-size: 1.5rem;
}

.input-group-lg .form-control {
  font-size: 1rem;
}

/* ============================================
   DASHBOARD SPECIFIC
   ============================================ */

.dashboard-header {
  background: linear-gradient(135deg, var(--tch-primary) 0%, #16204A 100%);
  color: #fff;
  padding: 2rem;
  border-radius: var(--tch-radius-xl);
  margin-bottom: 2rem;
  margin-top: 1.5rem;
}

.dashboard-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dashboard-title i {
  color: var(--tch-accent);
}

.dashboard-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  margin: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 1199.98px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.dashboard-content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 991.98px) {
  .dashboard-content-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   PAGE CONTENT STYLES (from public/css/admin.css)
   ============================================ */

/* Page Header */
.page-header {
  padding-bottom: 1.5rem;
  border-bottom: 2px solid rgba(198, 161, 91, 0.15);
  margin-bottom: 2rem;
}

.header-title-wrapper {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-icon {
  flex-shrink: 0;
}

.header-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.75rem;
  box-shadow: 0 8px 20px rgba(198, 161, 91, 0.3);
}

.header-icon-gold {
  background: linear-gradient(135deg, var(--tch-accent) 0%, #a8844a 100%);
}

.header-icon-primary {
  background: linear-gradient(135deg, var(--tch-primary) 0%, #3d4f8a 100%);
  box-shadow: 0 8px 20px rgba(30, 42, 90, 0.3);
}

.header-icon-emerald {
  background: linear-gradient(135deg, var(--tch-secondary) 0%, #2a9a78 100%);
  box-shadow: 0 8px 20px rgba(31, 122, 92, 0.3);
}

.page-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--tch-primary);
  margin: 0;
  line-height: 1.2;
}

.page-subtitle {
  font-size: 1rem;
  color: #6b7280;
  margin: 0.25rem 0 0;
  font-weight: 500;
}

/* Card Header avec gradient (pour formulaires) */
.card-header {
  background: linear-gradient(135deg, var(--tch-primary) 0%, #2d3d7a 100%);
  color: white;
  border-bottom: none;
  position: relative;
}

.card-header::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 0;
  right: 0;
  height: 20px;
  background: linear-gradient(to bottom, rgba(30, 42, 90, 0.05), transparent);
  pointer-events: none;
}

.card-header .card-title {
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
}

.card-header small,
.card-header .text-white-50 {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 0.9375rem;
}

.card-header .d-flex.align-items-center {
  gap: 1.25rem;
}

.card-header .header-card-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

/* Card Body amélioré */
.card-body {
  padding: 1.5rem;
  background: white;
  padding-bottom: 6rem;
}

/* Form Select amélioré */
.form-select {
  background-color: white;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%231E2A5A' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-position: right 0.75rem center;
  background-size: 18px;
}

.form-select:focus {
  border-color: var(--tch-accent);
  box-shadow: 0 0 0 3px rgba(198, 161, 91, 0.15);
}

/* Header Buttons */
.btn-header-back,
.btn-header-view,
.btn-header-edit,
.btn-header-create {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  color: #333;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-header-view {
  border-color: var(--tch-primary);
  color: var(--tch-primary);
}

.btn-header-edit {
  border-color: var(--tch-accent);
  color: var(--tch-accent);
}

.btn-header-create {
  background: linear-gradient(135deg, var(--tch-primary) 0%, #3d4f8a 100%);
  border: none;
  color: white;
  box-shadow: 0 8px 20px rgba(30, 42, 90, 0.3);
}

.btn-header-back:hover,
.btn-header-view:hover,
.btn-header-edit:hover {
  border-color: var(--tch-accent);
  color: var(--tch-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(198, 161, 91, 0.15);
}

.btn-header-create:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(30, 42, 90, 0.4);
  color: white;
}

/* Bouton « Plus d'actions » — déclenche le dropdown des actions secondaires */
.btn-header-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  color: #6B6B7B;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  font-size: 1.25rem;
}

.btn-header-more:hover,
.btn-header-more[aria-expanded="true"] {
  border-color: var(--tch-accent);
  color: var(--tch-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(198, 161, 91, 0.15);
}

.btn-header-more:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(198, 161, 91, 0.2);
}

/* Empêcher le wrap des boutons header sur écrans étroits */
.page-header__actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 992px) {
  .page-header__actions {
    width: 100%;
    margin-top: 1rem;
  }
}

@media (max-width: 576px) {
  .btn-header-view span,
  .btn-header-edit span {
    display: none;
  }
  .btn-header-view,
  .btn-header-edit {
    padding: 0.75rem;
    width: 48px;
    justify-content: center;
  }
}

/* Accessibilité : réduction de mouvement */
@media (prefers-reduced-motion: reduce) {
  .btn-header-more:hover,
  .btn-header-more[aria-expanded="true"] {
    transform: none;
  }
}

/* Custom Stats Cards - Style Premium */
.stat-card-custom {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: white;
  padding: 1.25rem;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
  height: 100%;
}

.stat-card-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: rgba(198, 161, 91, 0.3);
}

.stat-card-active {
  border-color: var(--tch-secondary);
  box-shadow: 0 6px 18px rgba(31, 122, 92, 0.18);
}

.tch-filter-toggle {
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.tch-filter-toggle .form-check-input {
  cursor: pointer;
}

.tch-filter-toggle .form-check-label {
  cursor: pointer;
  white-space: nowrap;
}

.stat-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.stat-primary .stat-icon-wrapper {
  background: linear-gradient(135deg, var(--tch-primary) 0%, #3d4f8a 100%);
}

.stat-success .stat-icon-wrapper {
  background: linear-gradient(135deg, var(--tch-success) 0%, #17624A 100%);
}

.stat-warning .stat-icon-wrapper {
  background: linear-gradient(135deg, var(--tch-warning) 0%, #b45309 100%);
}

.stat-danger .stat-icon-wrapper {
  background: linear-gradient(135deg, var(--tch-error) 0%, #b91c1c 100%);
}

.stat-info .stat-icon-wrapper {
  background: linear-gradient(135deg, var(--tch-accent) 0%, #a8844a 100%);
}

.stat-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-value-lg {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--tch-primary);
  line-height: 1;
}

.stat-label-sm {
  font-size: 0.875rem;
  color: #4b5563;
  font-weight: 600;
}

.stat-meta-sm {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--tch-success);
  background: rgba(31, 122, 92, 0.1);
  padding: 0.125rem 0.5rem;
  border-radius: 10px;
  display: inline-block;
  width: fit-content;
}

/* Quick Links */
.quick-link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: white;
  border-radius: 16px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
}

.quick-link-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.quick-link-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.quick-link-primary .quick-link-icon {
  background: linear-gradient(135deg, var(--tch-primary) 0%, #3d4f8a 100%);
}

.quick-link-success .quick-link-icon {
  background: linear-gradient(135deg, var(--tch-success) 0%, #17624A 100%);
}

.quick-link-warning .quick-link-icon {
  background: linear-gradient(135deg, var(--tch-warning) 0%, #b45309 100%);
}

.quick-link-info .quick-link-icon {
  background: linear-gradient(135deg, var(--tch-info) 0%, #2563eb 100%);
}

.quick-link-title {
  font-weight: 700;
  color: var(--tch-primary);
}

.quick-link-subtitle {
  font-size: 0.8rem;
  color: #4b5563;
  font-weight: 500;
}

/* Cards & Tabs */
.card-tchefon {
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(30, 42, 90, 0.1);
  border: none;
}

.card-header-tabs {
  background: linear-gradient(135deg, var(--tch-primary) 0%, #2d3d7a 100%);
  padding: 1rem 1.5rem 0;
}

.nav-tabs-tchefon {
  border: none;
  gap: 0.5rem;
}

.nav-tabs-tchefon .nav-link {
  border: none;
  border-radius: 12px 12px 0 0;
  padding: 1rem 1.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.nav-tabs-tchefon .nav-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.2);
}

.nav-tabs-tchefon .nav-link.active {
  color: var(--tch-primary);
  background: white;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
}

.badge-accent {
  background: rgba(198, 161, 91, 0.15);
  color: var(--tch-accent);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-weight: 600;
}

.badge-days-left {
  background: var(--tch-primary);
  color: white;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-count {
  background: rgba(30, 42, 90, 0.08);
  color: var(--tch-primary);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(30, 42, 90, 0.15);
}

/* Info Sections */
.info-section {
  background: #f8f9fa;
  border-radius: 16px;
  padding: 1.5rem;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.section-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--tch-primary) 0%, #3d4f8a 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}

.form-section .section-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--tch-primary);
  text-transform: none;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.info-label {
  font-size: 0.875rem;
  color: #374151;
  font-weight: 600;
}

/* Form Help - Texte d'aide sous les champs */
.form-help {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #4b5563;
  font-weight: 500;
  line-height: 1.4;
}

.form-help i {
  color: var(--tch-accent);
  font-size: 0.875rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
}

/* Form Section - Organisation des formulaires */
.form-section {
  position: relative;
  background: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: all 0.2s ease;
}

.form-section:hover {
  border-color: rgba(198, 161, 91, 0.4);
  box-shadow: 0 4px 20px rgba(30, 42, 90, 0.05);
}

.form-section .section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(198, 161, 91, 0.25);
}

.form-section .section-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--tch-primary) 0%, #3d4f8a 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.125rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(30, 42, 90, 0.2);
}

/* Action Buttons - Boutons de formulaire */
.action-buttons {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  background: white;
  border-top: 2px solid rgba(198, 161, 91, 0.2);
  margin-top: 2rem;
}

.btn-cancel {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: #f3f4f6;
  border: 2px solid #d1d5db;
  border-radius: 10px;
  color: #374151;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-cancel:hover {
  background: #e5e7eb;
  border-color: #9ca3af;
  color: #1f2937;
  transform: translateY(-1px);
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, var(--tch-primary) 0%, #3d4f8a 100%);
  border: none;
  border-radius: 10px;
  color: white;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(30, 42, 90, 0.3);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 42, 90, 0.4);
  color: white;
}

/* Toggle Wrapper */
.toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.toggle-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.toggle-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--tch-primary) 0%, #3d4f8a 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tch-text-light);
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(30, 42, 90, 0.2);
  flex-shrink: 0;
}

.toggle-text {
  flex: 1;
}

.toggle-title {
  font-weight: 700;
  color: var(--tch-primary);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.toggle-help {
  font-size: 0.875rem;
  color: #4b5563;
  font-weight: 500;
}

.info-value {
  font-weight: 700;
  color: var(--tch-primary);
}

/* Status Actions */
.btn-status-publish {
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--tch-success) 0%, #17624A 100%);
  border: none;
  border-radius: 14px;
  color: white;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(31, 122, 92, 0.3);
  transition: all 0.2s ease;
}

.btn-status-publish:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(31, 122, 92, 0.4);
  color: white;
}

.btn-status-archive {
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--tch-warning) 0%, #b45309 100%);
  border: none;
  border-radius: 14px;
  color: white;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(217, 119, 6, 0.3);
  transition: all 0.2s ease;
}

.btn-status-archive:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.4);
  color: white;
}

/* RSVP Tab */
.rsvp-stat-card {
  text-align: center;
  padding: 1.5rem;
  border-radius: 16px;
  color: white;
}

.rsvp-present {
  background: linear-gradient(135deg, var(--tch-success) 0%, #17624A 100%);
}

.rsvp-maybe {
  background: linear-gradient(135deg, var(--tch-warning) 0%, #b45309 100%);
}

.rsvp-absent {
  background: linear-gradient(135deg, var(--tch-error) 0%, #b91c1c 100%);
}

.rsvp-stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.rsvp-stat-label {
  font-size: 1rem;
  margin-top: 0.5rem;
  opacity: 0.9;
}

.rsvp-stat-percent {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 0.25rem;
  opacity: 0.8;
}

.alert-info-tchefon {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  border: none;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  color: #0369a1;
}

/* Programme Tab */
.config-section {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.section-header-main {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-icon-main {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.section-icon-gold {
  background: linear-gradient(135deg, var(--tch-accent) 0%, #a8844a 100%);
  box-shadow: 0 8px 20px rgba(198, 161, 91, 0.3);
}

.section-icon-indigo {
  background: linear-gradient(135deg, var(--tch-primary) 0%, #3d4f8a 100%);
  box-shadow: 0 8px 20px rgba(30, 42, 90, 0.25);
}

.section-icon-danger {
  background: linear-gradient(135deg, var(--tch-error) 0%, #b91c1c 100%);
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.25);
}

.section-icon-success {
  background: linear-gradient(135deg, var(--tch-success) 0%, #17624A 100%);
  box-shadow: 0 8px 20px rgba(31, 122, 92, 0.25);
}

.section-icon-info {
  background: linear-gradient(135deg, var(--tch-info) 0%, #2563eb 100%);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25);
}

.section-title-main {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--tch-primary);
  margin: 0;
}

.section-subtitle {
  font-size: 0.875rem;
  margin: 0.25rem 0 0;
}

.badge-event-count {
  background: rgba(198, 161, 91, 0.15);
  color: var(--tch-accent);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
}

/* Event Form */
.card-form {
  border: 2px dashed rgba(198, 161, 91, 0.3);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(198, 161, 91, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
  overflow: hidden;
}

.card-header-form {
  background: rgba(198, 161, 91, 0.08);
  padding: 1rem 1.5rem;
  font-weight: 600;
  color: var(--tch-accent);
  border-bottom: 1px solid rgba(198, 161, 91, 0.15);
}

.form-control-tchefon {
  border: 2px solid rgba(30, 42, 90, 0.1);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: all 0.2s ease;
}

.form-control-tchefon:focus {
  border-color: var(--tch-accent);
  box-shadow: 0 0 0 4px rgba(198, 161, 91, 0.1);
}

.btn-create-event {
  background: linear-gradient(135deg, var(--tch-accent) 0%, #a8844a 100%);
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(198, 161, 91, 0.3);
  transition: all 0.2s ease;
}

.btn-create-event:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(198, 161, 91, 0.4);
  color: white;
}

.btn-save-config {
  padding: 0.875rem 1.75rem;
  background: linear-gradient(135deg, var(--tch-primary) 0%, #3d4f8a 100%);
  border: none;
  border-radius: 14px;
  color: white;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(30, 42, 90, 0.3);
  transition: all 0.2s ease;
}

.btn-save-config:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(30, 42, 90, 0.4);
  color: white;
}

/* Event Lines (Multi-add) */
.event-line {
  background: #f8f9fa;
  border: 1px solid rgba(30, 42, 90, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
  transition: all 0.3s ease;
}

.event-line:hover {
  border-color: rgba(198, 161, 91, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.event-line-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.event-line-number {
  font-weight: 600;
  color: var(--tch-primary);
  font-size: 0.9rem;
}

/* Les lignes répétables du programme utilisent le composant partagé
   .tf-repeat-card* (app.css), commun à l'admin et à l'espace couple. */

.btn-add-line {
  background: linear-gradient(135deg, var(--tch-accent) 0%, #a8844a 100%);
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-add-line:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(198, 161, 91, 0.3);
  color: white;
}

.btn-add-line-outline {
  background: transparent;
  border: 2px solid var(--tch-accent);
  color: var(--tch-accent);
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-add-line-outline:hover {
  background: var(--tch-accent);
  color: white;
}

.btn-remove-line {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(220, 38, 38, 0.1);
  border: none;
  color: var(--tch-error);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-remove-line:hover {
  background: var(--tch-error);
  color: white;
}

/* Events Timeline */
.events-timeline {
  position: relative;
  padding-left: 2rem;
}

.events-timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--tch-accent) 0%, var(--tch-primary) 100%);
}

.event-card {
  position: relative;
  margin-bottom: 1.5rem;
  background: white;
  border: 1px solid rgba(30, 42, 90, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.event-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  border-color: rgba(198, 161, 91, 0.3);
}

.event-card::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 2rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--tch-accent);
  border: 3px solid white;
  box-shadow: 0 0 0 2px var(--tch-accent);
  transform: translateX(-5px);
}

.event-time-badge {
  background: linear-gradient(135deg, var(--tch-primary) 0%, #3d4f8a 100%);
  color: white;
  border-radius: 12px;
  padding: 0.75rem;
  text-align: center;
}

.event-time {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.event-date-small {
  font-size: 0.75rem;
  opacity: 0.8;
  margin-top: 0.25rem;
}

.event-name {
  font-weight: 700;
  color: var(--tch-primary);
  margin-bottom: 0.5rem;
}

.event-location {
  color: var(--tch-accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.event-location i {
  margin-right: 0.5rem;
}

.event-address {
  font-size: 0.85rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.event-description {
  font-size: 0.85rem;
  color: #6c757d;
  font-style: italic;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
  margin-top: 0.5rem;
}

.event-nav-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.event-nav-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}
.event-nav-badge--gmaps {
  background: rgba(66, 133, 244, 0.1);
  color: #1a73e8;
  border: 1px solid rgba(66, 133, 244, 0.2);
}
.event-nav-badge--gmaps:hover {
  background: #1a73e8;
  color: #fff;
  border-color: #1a73e8;
}
.event-nav-badge--yango {
  background: rgba(31, 122, 92, 0.1);
  color: #1a6b4e;
  border: 1px solid rgba(31, 122, 92, 0.2);
}
.event-nav-badge--yango:hover {
  background: #1a6b4e;
  color: #fff;
  border-color: #1a6b4e;
}

.event-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.btn-event-action {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.btn-event-edit {
  background: rgba(59, 130, 246, 0.1);
  color: var(--tch-info);
}

.btn-event-edit:hover {
  background: var(--tch-info);
  color: white;
}

.btn-event-delete {
  background: rgba(220, 38, 38, 0.1);
  color: var(--tch-error);
}

.btn-event-delete:hover {
  background: var(--tch-error);
  color: white;
}

.btn-save-event {
  background: linear-gradient(135deg, var(--tch-success) 0%, #17624A 100%);
  border: none;
  color: white;
  padding: 0.75rem;
  border-radius: 10px;
}

.btn-cancel-event {
  background: rgba(30, 42, 90, 0.1);
  border: none;
  color: #6c757d;
  padding: 0.75rem;
  border-radius: 10px;
}

.btn-cancel-event:hover {
  background: rgba(30, 42, 90, 0.2);
}

/* Empty States */
.empty-events {
  text-align: center;
  padding: 3rem;
  background: #f8f9fa;
  border-radius: 16px;
  border: 2px dashed rgba(30, 42, 90, 0.1);
}

.empty-events-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(198, 161, 91, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
  color: var(--tch-accent);
}

/* Setting Cards */
.setting-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid rgba(30, 42, 90, 0.05);
  transition: all 0.2s ease;
}

.setting-card:hover {
  border-color: rgba(198, 161, 91, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.setting-icon {
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tch-primary);
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Color Picker */
.color-option {
  cursor: pointer;
}

.color-option input:checked+.color-swatch {
  box-shadow: 0 0 0 3px white, 0 0 0 5px var(--tch-accent);
}

.color-swatch {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: all 0.2s ease;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.color-swatch:hover {
  transform: scale(1.1);
}

/* Table Styles Custom */
.card-header-table {
  background: linear-gradient(135deg, var(--tch-primary) 0%, #2d3d7a 100%);
  padding: 1.25rem 1.5rem;
  color: white;
}

.card-header-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-header-title i {
  color: var(--tch-accent);
}

.btn-header-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-header-action:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
}

.table-tchefon {
  font-size: 0.95rem;
}

.table-tchefon thead th {
  background: #f8f9fa;
  border: none;
  padding: 1rem 0.75rem;
  font-weight: 700;
  color: var(--tch-primary);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.table-tchefon tbody tr {
  transition: background-color 0.15s ease;
}

.table-tchefon tbody tr:hover {
  background-color: rgba(198, 161, 91, 0.04);
}

.table-tchefon tbody td {
  padding: 1.25rem 0.75rem;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

.wedding-avatar {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--tch-primary) 0%, #3d4f8a 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(30, 42, 90, 0.2);
  flex-shrink: 0;
}

/* Table row text styles */
.table-tchefon tbody td {
  color: #374151;
  font-weight: 500;
}

.table-tchefon tbody td .text-muted {
  color: #6b7280 !important;
  font-weight: 400;
  font-size: 0.875rem;
}

.table-tchefon tbody td .fw-bold {
  color: var(--tch-primary);
  font-weight: 700;
}

/* Date cell styling */
.date-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.date-cell i {
  color: var(--tch-accent);
}

/* Card footer table */
.card-footer-table {
  background: #f9fafb;
  padding: 1rem 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.card-footer-table .text-muted {
  color: #6b7280;
  font-size: 0.875rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.status-secondary {
  background: #f3f4f6;
  color: #4b5563;
  border-color: rgba(107, 114, 128, 0.2);
}

.status-info {
  background: #dbeafe;
  color: #0369a1;
  border-color: rgba(59, 130, 246, 0.2);
}

.status-success {
  background: #d1fae5;
  color: #047857;
  border-color: rgba(31, 122, 92, 0.2);
}

.status-warning {
  background: #fef3c7;
  color: #b45309;
  border-color: rgba(217, 119, 6, 0.3);
}

.status-accent {
  background: #f3e6c9;
  color: #8b6914;
  border-color: rgba(198, 161, 91, 0.3);
}

.status-primary {
  background: #e9ecf7;
  color: #1e2a5a;
  border-color: rgba(30, 42, 90, 0.3);
}

/* Notes Box */
.notes-box {
  background: #fefce8;
  border: 1px solid rgba(217, 119, 6, 0.2);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

.notes-label {
  font-weight: 700;
  color: var(--tch-accent);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.notes-content {
  color: #374151;
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Empty cell in table */
.empty-cell {
  padding: 3rem !important;
  text-align: center;
}

/* Action Buttons in Table */
table .action-buttons {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  justify-content: flex-end;
}

table .btn-action {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  font-size: 0.9375rem;
  transition: all 0.2s ease;
  background: transparent;
  cursor: pointer;
}

.btn-action-view {
  color: var(--tch-primary);
  background: rgba(30, 42, 90, 0.08);
}

.btn-action-view:hover {
  background: var(--tch-primary);
  color: white;
}

.btn-action-edit {
  color: var(--tch-accent);
  background: rgba(198, 161, 91, 0.12);
}

.btn-action-edit:hover {
  background: var(--tch-accent);
  color: white;
}

.btn-action-delete {
  color: var(--tch-error);
  background: rgba(220, 38, 38, 0.08);
}

.btn-action-delete:hover {
  background: var(--tch-error);
  color: white;
}

.card-footer-table {
  background: #f8f9fa;
  padding: 1rem 1.5rem;
  border-top: 1px solid #f0f0f0;
}

/* Form Styles */
.form-floating-tchefon input,
.form-floating-tchefon textarea {
  border: 2px solid rgba(30, 42, 90, 0.1);
  border-radius: 12px;
  padding: 1rem 1rem;
  height: auto;
  transition: all 0.2s ease;
}

.form-floating-tchefon input:focus,
.form-floating-tchefon textarea:focus {
  border-color: var(--tch-accent);
  box-shadow: 0 0 0 4px rgba(198, 161, 91, 0.1);
}

.form-floating-tchefon label {
  padding: 1rem 1rem;
  color: #6c757d;
}

.form-floating-tchefon>.form-control:focus~label,
.form-floating-tchefon>.form-control:not(:placeholder-shown)~label {
  transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
  color: var(--tch-accent);
}

/* Toggle Switch Styles */
.toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid rgba(30, 42, 90, 0.08);
  transition: all 0.2s ease;
}

.toggle-wrapper:hover {
  border-color: rgba(198, 161, 91, 0.3);
}


.toggle-content {
  flex: 1;
}

.toggle-title {
  font-weight: 600;
  color: var(--tch-primary);
  margin: 0;
}

.toggle-help {
  font-size: 0.8rem;
  color: #6c757d;
  margin: 0.25rem 0 0;
}

/* Card Header with Icon */
.header-card-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--tch-accent) 0%, #a8844a 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.75rem;
  box-shadow: 0 8px 20px rgba(198, 161, 91, 0.3);
}

/* Section Divider */
.section-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(198, 161, 91, 0.3), transparent);
  margin: 2rem 0;
}

/* ============================================
   UTILITIES
   ============================================ */

.bg-ivory {
  background-color: var(--tch-bg) !important;
}

.bg-primary-dark {
  background-color: var(--tch-primary) !important;
}

.text-accent {
  color: var(--tch-accent) !important;
}

.border-accent {
  border-color: var(--tch-border-accent) !important;
}

.bg-primary-tint {
  background-color: var(--tch-primary-tint) !important;
}

.gap-1 {
  gap: 0.25rem !important;
}

.gap-2 {
  gap: 0.5rem !important;
}

.gap-3 {
  gap: 0.75rem !important;
}

.gap-4 {
  gap: 1rem !important;
}

.cursor-pointer {
  cursor: pointer !important;
}

/* Grid gap utilities fallback */
.d-grid {
  display: grid !important;
}

.d-grid.gap-2 {
  gap: 0.5rem !important;
}

/* Ensure buttons in grids stack properly */
.d-grid .btn {
  width: 100%;
}

/* Hover shadow for cards */
.hover-shadow {
  transition: all 0.2s ease;
}

.hover-shadow:hover {
  transform: translateY(-2px);
  box-shadow: var(--tch-shadow-lg) !important;
}

/* Button accent */
.btn-accent {
  background-color: var(--tch-accent);
  border-color: var(--tch-accent);
  color: #fff;
}

.btn-accent:hover {
  background-color: var(--tch-accent-hover);
  border-color: var(--tch-accent-hover);
  color: #fff;
}

/* Background tints */
.bg-success-tint {
  background-color: rgba(31, 122, 92, 0.1);
}

.bg-warning-tint {
  background-color: rgba(217, 119, 6, 0.1);
}

.bg-danger-tint {
  background-color: rgba(220, 38, 38, 0.1);
}

.bg-info-tint {
  background-color: rgba(23, 162, 184, 0.1);
}

.bg-primary-tint {
  background-color: rgba(30, 42, 90, 0.1);
}

/* Icon circle utility for quick action tiles */
.icon-circle-sm {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Table cell width utilities */
.cell-fixed-md {
  width: 120px;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem;
  background: #f8f9fa;
  border-radius: 16px;
  border: 2px dashed rgba(30, 42, 90, 0.1);
}

.empty-state-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(198, 161, 91, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
  color: var(--tch-accent);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.3s ease forwards;
}

/* Hover effects */
.hover-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Scrollbar styling */
.custom-scrollbar::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: var(--tch-accent);
  border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #a8844a;
}

/* Utility Classes - Colors */
.text-tchefon-indigo {
  color: var(--tch-primary) !important;
}

.text-tchefon-gold {
  color: var(--tch-accent) !important;
}

.text-tchefon-green {
  color: var(--tch-secondary) !important;
}

.bg-tchefon-indigo {
  background-color: var(--tch-primary) !important;
}

.bg-tchefon-gold {
  background-color: var(--tch-accent) !important;
}

.bg-tchefon-green {
  background-color: var(--tch-secondary) !important;
}

.btn-tchefon-gold {
  background-color: var(--tch-accent);
  border-color: var(--tch-accent);
  color: #fff;
}

.btn-tchefon-gold:hover,
.btn-tchefon-gold:focus {
  background-color: var(--tch-accent-hover);
  border-color: var(--tch-accent-hover);
  color: #fff;
}

.btn-tchefon-gold:disabled {
  background-color: var(--tch-accent);
  border-color: var(--tch-accent);
  opacity: 0.65;
}

/* Gradients */
.bg-gradient-tchefon {
  background: linear-gradient(135deg, var(--tch-primary) 0%, #2d3d7a 100%);
}

/* Form Switch Custom */
.form-switch-lg .form-check-input {
  width: 3em;
  height: 1.5em;
  cursor: pointer;
}

.form-switch-lg .form-check-input:checked {
  background-color: var(--tch-accent);
  border-color: var(--tch-accent);
}

/* Letter Spacing */
.ls-1 {
  letter-spacing: 0.05em;
}

/* Focus States for Premium Feel */
.form-control:focus,
.form-select:focus {
  box-shadow: 0 0 0 0.25rem rgba(198, 161, 91, 0.15);
  border-color: var(--tch-accent);
}

/* Correction pour les champs date */
input[type="date"].form-control,
input[type="datetime-local"].form-control {
  color: #111827 !important;
  font-weight: 500;
}

/* Force texte visible dans tous les inputs */
input.form-control,
select.form-select,
textarea.form-control {
  color: #111827 !important;
  background-color: #ffffff !important;
}

/* Correction spécifique form-floating */
.form-floating input.form-control,
.form-floating select.form-select {
  color: #111827 !important;
  padding-top: 1.625rem;
  padding-bottom: 0.625rem;
}

/* ============================================
   MILESTONE DROPZONE — Upload drag & drop
   ============================================ */

.ms-dropzone {
  position: relative;
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
  background: #fafafa;
}

.ms-dropzone:hover {
  border-color: var(--tch-accent, #C6A15B);
  background: #fffcf5;
}

.ms-dropzone--active {
  border-color: var(--tch-accent, #C6A15B);
  background: #fef9ee;
  border-style: solid;
}

.ms-dropzone-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.ms-dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: #6b7280;
  pointer-events: none;
}

.ms-dropzone-content i {
  font-size: 2rem;
  color: var(--tch-accent, #C6A15B);
}

.ms-dropzone-content small {
  font-size: 0.75rem;
  color: #9ca3af;
}

/* Previews des médias */
.ms-dropzone-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.ms-dropzone-thumb {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #e5e7eb;
  background: #f3f4f6;
  transition: opacity 0.3s, transform 0.3s;
}

.ms-dropzone-thumb img,
.ms-dropzone-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ms-dropzone-thumb--uploading {
  opacity: 0.6;
  position: relative;
}

.ms-dropzone-upload-indicator {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 1.4rem;
}

.ms-dropzone-upload-indicator i {
  animation: dropzone-spin 1s linear infinite;
}

@keyframes dropzone-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.ms-dropzone-thumb--error {
  border-color: var(--tch-error, #DC2626);
  opacity: 0.4;
}

.ms-dropzone-thumb--removing {
  opacity: 0.3;
  transform: scale(0.9);
  pointer-events: none;
}

.ms-dropzone-thumb-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  padding: 0;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.2s;
}

.ms-dropzone-thumb:hover .ms-dropzone-thumb-remove {
  opacity: 1;
}

/* Barre de progression upload */
.ms-dropzone-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(0, 0, 0, 0.1);
}

.ms-dropzone-progress-bar {
  height: 100%;
  width: 0;
  background: var(--tch-accent, #C6A15B);
  transition: width 0.15s;
}

/* Thumbnails en mode affichage (display mode) */
.ms-display-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ms-display-thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
}

.ms-display-thumb--video {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #000;
}
.ms-display-thumb--video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ms-display-thumb__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 1rem;
  pointer-events: none;
}

.ms-dropzone-thumb--video {
  position: relative;
  width: 100%;
  height: 100%;
}
.ms-dropzone-thumb--video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ms-dropzone-thumb--video .ms-dropzone-thumb__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 1.2rem;
  pointer-events: none;
}

/* ── Handle de drag-and-drop pour réordonner les médias d'un moment ── */
.ms-dropzone-thumb__drag {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: grab;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s, transform 0.2s;
  z-index: 2;
  user-select: none;
}
.ms-dropzone-thumb:hover .ms-dropzone-thumb__drag {
  opacity: 1;
}
.ms-dropzone-thumb__drag:hover {
  background: var(--tch-accent, #C6A15B);
  transform: scale(1.1);
}
.ms-dropzone-thumb__drag:active {
  cursor: grabbing;
}

/* États SortableJS pendant le drag */
.ms-dropzone-thumb--ghost {
  opacity: 0.35;
  border: 2px dashed var(--tch-accent, #C6A15B);
  background: rgba(198, 161, 91, 0.08);
}
.ms-dropzone-thumb--ghost img,
.ms-dropzone-thumb--ghost video {
  filter: grayscale(0.4);
}
.ms-dropzone-thumb--chosen {
  box-shadow: 0 6px 18px rgba(30, 42, 90, 0.18);
  transform: translateY(-2px);
}
.ms-dropzone-thumb--drag {
  box-shadow: 0 12px 28px rgba(30, 42, 90, 0.32);
  transform: rotate(2deg);
}

/* ══ Wedding Show - Photos & Colors ═════════════════════════════════════════ */

.photo-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.photo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.photo-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.photo-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
}

.color-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.color-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: var(--tch-bg, #FFF7EA);
  border-radius: 8px;
  border: 1px solid var(--tch-border, #e5e7eb);
}

.color-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.color-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.color-name {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--tch-primary, #1E2A5A);
}

.color-hex {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.75rem;
  color: var(--tch-text-muted, #6b7280);
  text-transform: uppercase;
}

.color-role-badge {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background-color: var(--tch-bg, #FFF7EA);
  color: var(--tch-primary, #1E2A5A);
  border: 1px solid var(--tch-accent, #C6A15B);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.empty-state-small {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;
  color: var(--tch-text-muted, #6b7280);
  font-size: 0.875rem;
}

.empty-state-small i {
  font-size: 1.25rem;
}

/* ══ Wedding Index - Avatar & Colors ════════════════════════════════════════ */

.wedding-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--tch-primary, #1E2A5A), var(--tch-secondary, #1F7A5C));
  display: flex;
  align-items: center;
  justify-content: center;
}

.wedding-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wedding-avatar-placeholder {
  color: white;
  font-size: 1.5rem;
}

.color-dots {
  display: flex;
  align-items: center;
  gap: 4px;
}

.color-dot-sm {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.color-dot-sm:hover {
  transform: scale(1.2);
}

.color-dot-more {
  font-size: 0.625rem;
  color: var(--tch-text-muted, #6b7280);
  margin-left: 2px;
}

.badge-days-left {
  background: var(--tch-accent, #C6A15B);
  color: white;
  font-size: 0.625rem;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 600;
}

/* ══ Color picker + hex input ═══════════════════════════════════════════════ */

.color-picker-group {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

/* Le bouton coloré qui ouvre le picker */
.color-picker-btn {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid var(--tch-border, #dee2e6);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.color-picker-btn:hover {
  border-color: var(--tch-accent, #C6A15B);
  transform: scale(1.05);
}

.color-picker-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  pointer-events: none;
}

/* Input hex en premier (saisie directe) */
.color-hex-input {
  width: 110px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  text-transform: uppercase;
  font-size: 0.9375rem;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* Le input color natif est caché mais fonctionnel */
.form-control-color-lg {
  position: absolute;
  opacity: 0;
  width: 48px;
  height: 48px;
  cursor: pointer;
  left: 0;
  top: 0;
  z-index: 2;
}

/* Wrapper pour le bouton + input caché */
.color-picker-wrapper {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

/* ══ Music source tabs ══════════════════════════════════════════════════════ */

.music-source-tabs {
  display: flex;
  gap: 0;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  overflow: hidden;
}

.music-tab {
  flex: 1;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  background: #f8f9fa;
  color: #6c757d;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.music-tab:not(:last-child) {
  border-right: 1px solid #dee2e6;
}

.music-tab.active {
  background: var(--tch-primary, #1E2A5A);
  color: #fff;
}

.music-tab:hover:not(.active) {
  background: #e9ecef;
}

.music-source-panel {
  margin-top: 0.5rem;
}

/* ══ Config dropzone ajustements ════════════════════════════════════════════ */

.ms-dropzone--config {
  min-height: 100px;
}

.ms-dropzone--config .ms-dropzone-content {
  padding: 1rem;
}

.ms-dropzone--config .ms-dropzone-content i {
  font-size: 1.5rem;
  color: var(--tch-accent, #C6A15B);
}

.ms-dropzone--config .ms-dropzone-content span {
  font-size: 0.8rem;
}

.ms-dropzone--config .ms-dropzone-content small {
  font-size: 0.7rem;
  color: #9ca3af;
  display: block;
  margin-top: 0.25rem;
}

.ms-dropzone--audio {
  border-style: dashed;
  border-color: var(--tch-accent, #C6A15B);
}

/* Dress code subsections */
.dress-code-subsection {
  padding: 16px 20px;
  border: 1px solid var(--tch-border, #dee2e6);
  border-radius: 12px;
  background: var(--tch-surface, #fff);
}
.dress-code-subsection h6 {
  color: var(--tch-primary, #1E2A5A);
}

/* ══ Two-Step Form (TSF) ═══════════════════════════════════════════════════ */

.tsf-entity-section {
  position: relative;
  transition: opacity 250ms ease, filter 250ms ease;
}

.tsf-locked {
  pointer-events: none;
  opacity: 0.45;
  filter: grayscale(0.3);
}

.tsf-locked .tsf-locked-overlay {
  display: flex;
}

.tsf-unlocked .tsf-locked-overlay {
  display: none;
}

.tsf-unlocked {
  pointer-events: auto;
  opacity: 1;
  filter: none;
  animation: tsf-reveal 300ms ease-out;
}

@keyframes tsf-reveal {
  from { opacity: 0.45; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.tsf-locked-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  background: rgba(255, 247, 234, 0.6);
  border-radius: inherit;
}

.tsf-locked-message {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--tch-surface, #fff);
  border: 1px solid var(--tch-accent, #C6A15B);
  border-radius: 0.5rem;
  color: var(--tch-primary, #1E2A5A);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tsf-locked-message i {
  color: var(--tch-accent, #C6A15B);
  font-size: 1.1rem;
}

/* Bouton submit — état loading */
.btn-submit.tsf-loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn-submit.tsf-loading .bi {
  display: none;
}

.btn-submit.tsf-loading::before {
  content: "";
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: tsf-spin 600ms linear infinite;
  margin-right: 0.5rem;
}

@keyframes tsf-spin {
  to { transform: rotate(360deg); }
}

/* Bannières de notification TSF */
.tsf-success-banner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #ecfdf5;
  border: 1px solid var(--tch-secondary, #1F7A5C);
  border-radius: 0.5rem;
  color: var(--tch-secondary, #1F7A5C);
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  animation: tsf-reveal 300ms ease-out;
}

.tsf-error-banner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #fef2f2;
  border: 1px solid var(--tch-error, #DC2626);
  border-radius: 0.5rem;
  color: var(--tch-error, #DC2626);
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  animation: tsf-reveal 300ms ease-out;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   TCHEFON LOADER FULLSCREEN PREMIUM
   ═══════════════════════════════════════════════════════════════════════════════ */

.tchefon-loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tchefon-loader.show {
  opacity: 1;
  visibility: visible;
}

.tchefon-loader-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(30, 42, 90, 0.95) 0%,
    rgba(22, 32, 74, 0.98) 100%
  );
  backdrop-filter: blur(8px);
}

.tchefon-loader-content {
  position: relative;
  text-align: center;
  z-index: 1;
  padding: 3rem;
}

/* Spinner élégant avec anneaux concentriques */
.tchefon-loader-spinner {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 2rem;
}

.spinner-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 3px solid transparent;
}

.spinner-ring:nth-child(1) {
  width: 80px;
  height: 80px;
  border-top-color: var(--tch-accent);
  animation: tchefon-spin 1.5s linear infinite;
}

.spinner-ring:nth-child(2) {
  width: 60px;
  height: 60px;
  border-right-color: var(--tch-secondary);
  animation: tchefon-spin 1.2s linear infinite reverse;
}

.spinner-ring:nth-child(3) {
  width: 40px;
  height: 40px;
  border-bottom-color: var(--tch-primary);
  animation: tchefon-spin 1s linear infinite;
}

@keyframes tchefon-spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Texte du loader */
.tchefon-loader-text {
  color: white;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

/* Dots animés */
.tchefon-loader-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.tchefon-loader-dots span {
  width: 8px;
  height: 8px;
  background: var(--tch-accent);
  border-radius: 50%;
  animation: tchefon-loader-dots 1.4s ease-in-out infinite;
}

.tchefon-loader-dots span:nth-child(1) { animation-delay: 0s; }
.tchefon-loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.tchefon-loader-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes tchefon-loader-dots {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SWEETALERT2 CUSTOM STYLES - TCHEFON PREMIUM
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Popup principal */
.tchefon-swal-popup {
  border-radius: 20px !important;
  padding: 2rem !important;
  box-shadow: 0 25px 60px rgba(30, 42, 90, 0.25) !important;
  border: 1px solid rgba(198, 161, 91, 0.2) !important;
}

/* Titre */
.tchefon-swal-title {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 1.375rem !important;
  font-weight: 700 !important;
  color: var(--tch-primary) !important;
  padding: 0 0 1rem 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
}

.tchefon-swal-title i {
  font-size: 1.5rem;
}

/* Icône de titre */
.swal-title-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--tch-accent) 0%, #a8844a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
  box-shadow: 0 8px 20px rgba(198, 161, 91, 0.3);
}

/* Contenu texte */
.swal-content-text {
  font-size: 1rem;
  color: #374151;
  line-height: 1.6;
  font-weight: 500;
}

/* Boutons */
.tchefon-swal-btn {
  padding: 0.75rem 1.5rem !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  font-size: 0.9375rem !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  transition: all 0.2s ease !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.tchefon-swal-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15) !important;
}

.tchefon-swal-btn-confirm {
  background: linear-gradient(135deg, var(--tch-secondary) 0%, #17624A 100%) !important;
  color: white !important;
}

.tchefon-swal-btn-danger {
  background: linear-gradient(135deg, var(--tch-error) 0%, #b91c1c 100%) !important;
  color: white !important;
}

.tchefon-swal-btn-cancel {
  background: #f3f4f6 !important;
  color: #374151 !important;
  border: 1px solid #d1d5db !important;
}

.tchefon-swal-btn-cancel:hover {
  background: #e5e7eb !important;
}

/* Modale « Personnaliser le message » WhatsApp (déclencheur wa-compose).
   Plus grande et alignée sur la charte (ivoire, indigo, or). */
.tch-wa-popup {
  border-radius: 20px !important;
  padding: 1.75rem 1.75rem 1.5rem !important;
  background: linear-gradient(180deg, #ffffff 0%, var(--tch-bg) 100%) !important;
  border: 1px solid rgba(198, 161, 91, 0.30) !important;
  box-shadow: 0 24px 70px rgba(30, 42, 90, 0.22) !important;
}
.tch-wa-title {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  color: var(--tch-primary) !important;
  letter-spacing: 0.01em;
  padding-top: 0 !important;
}
.tch-wa-popup .swal2-html-container { margin: 0.25rem 0 0 !important; }
.tch-wa-textarea {
  width: 100% !important;
  min-height: 200px !important;
  margin: 0.75rem 0 0 !important;
  padding: 0.95rem 1.05rem !important;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 0.95rem !important;
  line-height: 1.55 !important;
  color: #1f2937 !important;
  background: #ffffff !important;
  border: 1.5px solid rgba(198, 161, 91, 0.45) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  resize: vertical !important;
  box-sizing: border-box !important;
}
.tch-wa-textarea:focus {
  border-color: var(--tch-accent) !important;
  box-shadow: 0 0 0 3px rgba(198, 161, 91, 0.18) !important;
  outline: none !important;
}
.tch-wa-actions {
  gap: 0.6rem !important;
  margin-top: 1.3rem !important;
}
.tch-wa-confirm {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
  color: #ffffff !important;
}

/* Modale « Remerciement + photos » — sélecteur de galerie : grille de vignettes
   cliquables (réutilise les photos déjà présentes dans la galerie du mariage,
   pour ne pas ré-uploader à chaque envoi). */
.thankyou-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 0.5rem;
  max-height: 300px;
  overflow-y: auto;
  padding: 0.25rem;
}
.thankyou-gallery__hint {
  grid-column: 1 / -1;
  padding: 1.25rem 0.5rem;
  text-align: center;
  color: #6b7280;
  font-size: 0.85rem;
}
.thankyou-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: var(--tch-bg);
  cursor: pointer;
}
.thankyou-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.thankyou-tile__check {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--tch-accent);
  font-size: 0.85rem;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.thankyou-tile.is-selected {
  border-color: var(--tch-accent);
}
.thankyou-tile.is-selected .thankyou-tile__check {
  opacity: 1;
  transform: scale(1);
  background: var(--tch-accent);
  color: #fff;
}
.thankyou-tile.is-selected::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(198, 161, 91, 0.18);
}

/* Utilitaires — remplacent des style="..." inline (cf. CLAUDE.md §4).
   Listes invités / RSVP. */
.tch-filter-select { min-width: 160px; }
.tch-filter-input { min-width: 150px; }
.wedding-avatar.wedding-avatar--guest {
  background: linear-gradient(135deg, var(--tch-secondary) 0%, #17624A 100%);
}
.wedding-avatar.wedding-avatar--rsvp {
  background: linear-gradient(135deg, var(--tch-accent) 0%, #a8844a 100%);
}
.badge-lg { font-size: 0.85rem; padding: 0.5rem 0.75rem; }
.card-header-gradient {
  background: linear-gradient(135deg, var(--tch-primary) 0%, #2d3d7a 100%);
}
.stat-value-token { font-size: 1.25rem; }

/* Toast notifications */
.tchefon-toast {
  border-radius: 12px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  padding: 1rem 1.25rem !important;
}

.tchefon-toast-title {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  color: #374151 !important;
  padding: 0 !important;
}

/* Animation d'entrée du popup */
.swal2-popup.swal2-show {
  animation: tchefon-swal-in 0.3s ease-out !important;
}

@keyframes tchefon-swal-in {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Progress bar du toast */
.swal2-timer-progress-bar {
  background: linear-gradient(90deg, var(--tch-accent) 0%, var(--tch-secondary) 100%) !important;
  height: 3px !important;
  border-radius: 0 0 0 12px !important;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ACTION BUTTONS - TABLE STYLES
   ═══════════════════════════════════════════════════════════════════════════════ */

.action-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-end;
}

.btn-action {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #6b7280;
  font-size: 1rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-action:hover {
  transform: translateY(-2px);
}

.btn-action-view {
  background: rgba(30, 42, 90, 0.08);
  color: var(--tch-primary);
}

.btn-action-view:hover {
  background: var(--tch-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(30, 42, 90, 0.3);
}

.btn-action-edit {
  background: rgba(198, 161, 91, 0.12);
  color: var(--tch-accent);
}

.btn-action-edit:hover {
  background: var(--tch-accent);
  color: white;
  box-shadow: 0 4px 12px rgba(198, 161, 91, 0.3);
}

.btn-action-delete {
  background: rgba(220, 38, 38, 0.08);
  color: var(--tch-error);
}

.btn-action-delete:hover {
  background: var(--tch-error);
  color: white;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-action-feedback {
  background: rgba(31, 122, 92, 0.10);
  color: var(--tch-secondary);
}

.btn-action-feedback:hover {
  background: var(--tch-secondary);
  color: white;
  box-shadow: 0 4px 12px rgba(31, 122, 92, 0.3);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   CARD TABLE STYLES
   ═══════════════════════════════════════════════════════════════════════════════ */

.card-table {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(30, 42, 90, 0.08);
  overflow: hidden;
}

.card-header-table {
  background: linear-gradient(135deg, var(--tch-primary) 0%, #2d3d7a 100%);
  padding: 1.25rem 1.5rem;
  color: white;
}

.card-header-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.card-header-title i {
  color: var(--tch-accent);
}

.btn-header-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-header-action:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.card-footer-table {
  background: #f9fafb;
  padding: 1rem 1.5rem;
  border-top: 1px solid #e5e7eb;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   TABLE TCHEFON
   ═══════════════════════════════════════════════════════════════════════════════ */

.table-tchefon {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table-tchefon thead th {
  background: #f9fafb;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #374151;
  padding: 1rem 1.5rem;
  border-bottom: 2px solid #e5e7eb;
  white-space: nowrap;
}

.table-tchefon tbody td {
  padding: 1.25rem 1.5rem;
  vertical-align: middle;
  border-bottom: 1px solid #f3f4f6;
  color: #111827;
  font-weight: 500;
}

.table-tchefon tbody tr {
  transition: background 0.2s ease;
}

.table-tchefon tbody tr:hover {
  background: rgba(30, 42, 90, 0.02);
}

.table-tchefon tbody tr:last-child td {
  border-bottom: none;
}

/* Wedding avatar */
.wedding-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--tch-primary) 0%, #3d4f8a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Date cell */
.date-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #374151;
  font-weight: 500;
}

.date-cell i {
  color: var(--tch-accent);
}

/* Status badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.status-badge i {
  font-size: 0.875rem;
}

.status-success {
  background: #d1fae5;
  color: #065f46;
}

.status-warning {
  background: #fef3c7;
  color: #92400e;
}

.status-danger {
  background: #fee2e2;
  color: #991b1b;
}

.status-info {
  background: #dbeafe;
  color: #1e40af;
}

.status-secondary {
  background: #f3f4f6;
  color: #374151;
}

.status-accent {
  background: rgba(198, 161, 91, 0.15);
  color: var(--tch-accent);
}

/* Empty cell */
.empty-cell {
  padding: 3rem 1.5rem !important;
  text-align: center;
}

/* Empty state */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
}

.empty-state-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 2.5rem;
}

.empty-state h5 {
  color: #374151;
  font-weight: 600;
}

.empty-state p {
  color: #6b7280;
  max-width: 300px;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE ADJUSTMENTS
   ═══════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 767.98px) {
  .tchefon-loader-spinner {
    width: 60px;
    height: 60px;
  }
  
  .spinner-ring:nth-child(1) {
    width: 60px;
    height: 60px;
  }
  
  .spinner-ring:nth-child(2) {
    width: 45px;
    height: 45px;
  }
  
  .spinner-ring:nth-child(3) {
    width: 30px;
    height: 30px;
  }
  
  .tchefon-loader-text {
    font-size: 1rem;
  }
  
  .tchefon-swal-popup {
    padding: 1.5rem !important;
    margin: 1rem !important;
  }
  
  .tchefon-swal-title {
    font-size: 1.125rem !important;
  }
  
  .tchefon-swal-btn {
    padding: 0.625rem 1.25rem !important;
    font-size: 0.875rem !important;
  }
  
  .action-buttons {
    gap: 0.25rem;
  }
  
  .btn-action {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
  }
  
  .table-tchefon thead th,
  .table-tchefon tbody td {
    padding: 1rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  .tchefon-loader,
  .spinner-ring,
  .tchefon-loader-dots span,
  .swal2-popup.swal2-show,
  .tchefon-swal-btn,
  .btn-action,
  .btn-header-action {
    animation: none !important;
    transition: none !important;
  }
  
  .tchefon-loader.show {
    opacity: 1;
    visibility: visible;
  }
}


/* ═══════════════════════════════════════════════════════════════════════════════
   AUDIO PREVIEW - Player Premium
   ═══════════════════════════════════════════════════════════════════════════════ */

.ms-dropzone--has-file {
  border-style: solid;
  border-color: var(--tch-accent, #C6A15B);
  background: linear-gradient(135deg, #fefcf8 0%, #fff9f0 100%);
  padding: 0;
  overflow: hidden;
}

.audio-preview {
  display: flex;
  flex-direction: column;
  width: 100%;
  animation: audio-preview-in 0.4s ease-out;
}

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

/* Visualiseur avec waveform */
.audio-preview__visualizer {
  background: linear-gradient(135deg, var(--tch-primary) 0%, #2d3d7a 100%);
  padding: 1.5rem 1.5rem 1rem;
  position: relative;
  overflow: hidden;
}

.audio-preview__visualizer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 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='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* Waveform animée */
.audio-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 40px;
  position: relative;
  z-index: 1;
}

.audio-wave__bar {
  width: 3px;
  background: linear-gradient(to top, var(--tch-accent), #e8d5a8);
  border-radius: 2px;
  animation: audio-wave 1.2s ease-in-out infinite;
  animation-play-state: paused;
}

.audio-wave__bar:nth-child(1) { height: 20%; animation-delay: 0s; }
.audio-wave__bar:nth-child(2) { height: 40%; animation-delay: 0.1s; }
.audio-wave__bar:nth-child(3) { height: 60%; animation-delay: 0.2s; }
.audio-wave__bar:nth-child(4) { height: 30%; animation-delay: 0.3s; }
.audio-wave__bar:nth-child(5) { height: 70%; animation-delay: 0.4s; }
.audio-wave__bar:nth-child(6) { height: 50%; animation-delay: 0.5s; }
.audio-wave__bar:nth-child(7) { height: 80%; animation-delay: 0.6s; }
.audio-wave__bar:nth-child(8) { height: 35%; animation-delay: 0.7s; }
.audio-wave__bar:nth-child(9) { height: 65%; animation-delay: 0.8s; }
.audio-wave__bar:nth-child(10) { height: 45%; animation-delay: 0.9s; }
.audio-wave__bar:nth-child(11) { height: 75%; animation-delay: 1s; }
.audio-wave__bar:nth-child(12) { height: 25%; animation-delay: 1.1s; }
.audio-wave__bar:nth-child(13) { height: 55%; animation-delay: 0.15s; }
.audio-wave__bar:nth-child(14) { height: 85%; animation-delay: 0.25s; }
.audio-wave__bar:nth-child(15) { height: 40%; animation-delay: 0.35s; }
.audio-wave__bar:nth-child(16) { height: 70%; animation-delay: 0.45s; }
.audio-wave__bar:nth-child(17) { height: 30%; animation-delay: 0.55s; }
.audio-wave__bar:nth-child(18) { height: 60%; animation-delay: 0.65s; }
.audio-wave__bar:nth-child(19) { height: 50%; animation-delay: 0.75s; }
.audio-wave__bar:nth-child(20) { height: 80%; animation-delay: 0.85s; }

@keyframes audio-wave {
  0%, 100% {
    transform: scaleY(0.5);
    opacity: 0.6;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* Animation active quand le son joue */
.audio-preview.playing .audio-wave__bar {
  animation-play-state: running;
}

/* Info du fichier */
.audio-preview__info {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid rgba(198, 161, 91, 0.2);
}

.audio-preview__icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--tch-accent) 0%, #a8844a 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(198, 161, 91, 0.3);
}

.audio-preview__meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  flex: 1;
}

.audio-preview__filename {
  font-weight: 600;
  color: var(--tch-primary);
  font-size: 0.9375rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audio-preview__type {
  font-size: 0.75rem;
  color: var(--tch-text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Player audio stylisé */
.audio-preview__player {
  width: 100%;
  height: 50px;
  padding: 0 1.5rem 1rem;
  background: transparent;
}

/* Style custom pour le player audio natif */
.audio-preview__player::-webkit-media-controls-panel {
  background: transparent;
}

.audio-preview__player::-webkit-media-controls-enclosure {
  background: rgba(30, 42, 90, 0.05);
  border-radius: 10px;
}

/* Bouton de suppression */
.audio-preview__remove {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  background: rgba(220, 38, 38, 0.9);
  border: none;
  border-radius: 8px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.audio-preview__remove:hover {
  background: var(--tch-error);
  transform: scale(1.1);
}

.audio-preview__remove i {
  font-size: 0.875rem;
}

/* Dropzone en mode upload d'audio */
.ms-dropzone--audio .ms-dropzone-content {
  border-radius: 12px;
  border: 2px dashed var(--tch-accent);
  margin: 1rem;
  padding: 2rem;
  transition: all 0.2s ease;
}

.ms-dropzone--audio.ms-dropzone--has-file .ms-dropzone-content {
  display: none;
}

.ms-dropzone--audio .ms-dropzone-content:hover {
  background: rgba(198, 161, 91, 0.05);
  border-color: var(--tch-primary);
}

/* Upload progress pour audio */
.audio-preview__uploading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  gap: 1rem;
}

.audio-preview__uploading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(198, 161, 91, 0.2);
  border-top-color: var(--tch-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.audio-preview__uploading-text {
  color: var(--tch-text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .audio-preview__info {
    padding: 0.875rem;
    gap: 0.75rem;
  }
  
  .audio-preview__icon {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
  
  .audio-preview__filename {
    font-size: 0.875rem;
  }
  
  .audio-preview__player {
    padding: 0 0.875rem 0.875rem;
    height: 45px;
  }
  
  .audio-wave {
    gap: 2px;
  }
  
  .audio-wave__bar {
    width: 2px;
  }
}


/* ═══════════════════════════════════════════════════════════════════════════════
   DROPZONE AUDIO THUMBNAIL - Pour les milestones et autres zones
   ═══════════════════════════════════════════════════════════════════════════════ */

.ms-dropzone-thumb--audio {
  background: linear-gradient(135deg, var(--tch-primary) 0%, #2d3d7a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  border-color: var(--tch-accent);
}

.thumb-audio-icon {
  font-size: 2rem;
  color: var(--tch-accent);
  margin-bottom: 0.5rem;
}

.thumb-audio-name {
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
  padding: 0 0.5rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thumb-audio-type {
  font-size: 0.625rem;
  color: var(--tch-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.25rem;
}

/* ============================================
   PAGE INVITATION PROMPT
   Génération carte d'invitation + upload images
   ============================================ */

.invitation-prompt-page {
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 1.5rem 0.5rem 3rem;
  max-width: 1280px;
  margin: 0 auto;
}

.prompt-page-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 0.5rem 2rem;
  border-bottom: 1px solid var(--tch-border);
  margin-bottom: 2.5rem;
}

.prompt-page-header-content {
  flex: 1 1 360px;
  min-width: 280px;
}

.prompt-page-eyebrow {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tch-accent);
  margin-bottom: 0.4rem;
}

.prompt-page-title {
  font-family: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.75rem, 2.5vw, 2.441rem);
  line-height: 1.1;
  color: var(--tch-primary);
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

.prompt-page-subtitle {
  color: var(--tch-text-muted);
  max-width: 56ch;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.prompt-page-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ----- Section ----- */
.prompt-section {
  padding: 1.5rem 0.5rem 2.5rem;
  animation: promptSectionReveal 500ms var(--ease-out-expo) both;
}

.prompt-section:nth-child(3) { animation-delay: 80ms; }
.prompt-section:nth-child(4) { animation-delay: 160ms; }
.prompt-section:nth-child(5) { animation-delay: 240ms; }

@keyframes promptSectionReveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.prompt-section-head {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 1.75rem;
}

.prompt-section-index {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--tch-accent);
  line-height: 1;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.prompt-section-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
  color: var(--tch-primary);
  margin: 0 0 0.35rem;
  letter-spacing: -0.01em;
}

.prompt-section-desc {
  color: var(--tch-text-muted);
  max-width: 60ch;
  line-height: 1.6;
  margin: 0;
}

/* ----- Cartes ----- */
.prompt-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.prompt-card,
.upload-card {
  background: var(--tch-surface);
  border: 1px solid var(--tch-border);
  border-radius: var(--tch-radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: border-color 200ms var(--ease-out-expo), box-shadow 200ms var(--ease-out-expo), transform 200ms var(--ease-out-expo);
}

.prompt-card:hover,
.upload-card:hover {
  border-color: var(--tch-border-accent);
  box-shadow: var(--tch-shadow);
}

.prompt-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tch-accent-tint);
  color: var(--tch-accent-hover);
  font-size: 1.5rem;
}

.prompt-card-title,
.upload-card-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
  color: var(--tch-primary);
  margin: 0;
  letter-spacing: -0.01em;
}

.prompt-card-desc {
  color: var(--tch-text-muted);
  font-size: 0.925rem;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

.prompt-card-action {
  align-self: flex-start;
  margin-top: 0.25rem;
}

/* ----- Liens IA ----- */
.prompt-ai-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.prompt-ai-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--tch-surface);
  border: 1px solid var(--tch-border);
  border-radius: var(--tch-radius-lg);
  color: var(--tch-primary);
  text-decoration: none;
  transition: border-color 200ms var(--ease-out-expo), transform 200ms var(--ease-out-expo), box-shadow 200ms var(--ease-out-expo);
}

.prompt-ai-link:hover {
  border-color: var(--tch-accent);
  transform: translateY(-2px);
  box-shadow: var(--tch-shadow);
  color: var(--tch-primary);
}

.prompt-ai-link strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.prompt-ai-link span {
  display: block;
  font-size: 0.825rem;
  color: var(--tch-text-muted);
}

.prompt-ai-link > div {
  flex: 1;
}

.prompt-ai-logo {
  font-size: 1.75rem;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--tch-accent);
}

.prompt-ai-link .bi-arrow-up-right {
  color: var(--tch-text-muted);
  font-size: 1rem;
}

/* ----- Upload drop zone ----- */
.upload-card-preview-wrap {
  margin-bottom: 0.5rem;
}

.upload-card-preview {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: var(--tch-radius);
  border: 1px solid var(--tch-border);
}

/* Carte à partager : la carte est seule sur sa ligne. On la contraint à la
   largeur d'une colonne (comme les cartes d'upload imprimable) pour que
   l'aperçu reste de taille comparable au lieu d'occuper toute la largeur. */
.upload-card[data-side="share"] {
  max-width: 420px;
}
.upload-card[data-side="share"] .upload-card-preview {
  max-height: 180px;
  object-fit: contain;
}

.upload-card-meta {
  margin: 0.6rem 0 0;
  font-size: 0.825rem;
  color: var(--tch-text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.upload-dropzone {
  position: relative;
  border: 2px dashed var(--tch-border);
  border-radius: var(--tch-radius-lg);
  padding: 2rem 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 200ms var(--ease-out-expo), background-color 200ms var(--ease-out-expo);
  background-color: var(--tch-bg);
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-dropzone:hover,
.upload-dropzone:focus-visible {
  border-color: var(--tch-accent);
  background-color: var(--tch-accent-tint);
  outline: none;
}

.upload-dropzone.is-dragging {
  border-color: var(--tch-accent);
  background-color: var(--tch-accent-tint);
  transform: scale(1.01);
}

.upload-dropzone.is-uploading {
  pointer-events: none;
  border-color: var(--tch-primary);
}

.upload-dropzone.is-uploaded {
  border-color: var(--tch-secondary);
  border-style: solid;
}

.upload-dropzone-idle i {
  font-size: 2rem;
  color: var(--tch-accent);
  display: block;
  margin-bottom: 0.5rem;
}

.upload-dropzone-idle p {
  margin: 0 0 0.25rem;
  color: var(--tch-text);
  font-size: 0.95rem;
}

.upload-dropzone-hint {
  font-size: 0.8125rem;
  color: var(--tch-text-muted);
}

.upload-dropzone-progress {
  display: none;
  width: 100%;
}

.upload-dropzone-progress[aria-hidden="false"] {
  display: block;
}

.upload-dropzone-idle[aria-hidden="true"] {
  display: none;
}

.upload-dropzone-progress-bar {
  height: 6px;
  background: var(--tch-accent);
  border-radius: 999px;
  width: 0%;
  transition: width 200ms linear;
  margin-bottom: 0.6rem;
}

.upload-dropzone-progress-label {
  margin: 0;
  font-size: 0.85rem;
  color: var(--tch-primary);
  font-weight: 500;
}

/* ----- Modal d'édition JSON ----- */
.prompt-editor-modal .modal-content {
  border-radius: var(--tch-radius-lg);
  overflow: hidden;
}

.prompt-editor-modal .modal-header {
  padding: 1rem 1.5rem;
  gap: 1rem;
  align-items: center;
}

.prompt-editor-modal .modal-title {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--tch-primary);
  font-size: 1.15rem;
}

.prompt-editor-validation {
  margin-right: auto;
}

.prompt-editor-validation-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  background: var(--tch-secondary-tint);
  color: var(--tch-secondary);
  transition: background-color 150ms var(--ease-out-expo), color 150ms var(--ease-out-expo);
}

.prompt-editor-validation-badge.is-invalid {
  background: #fef2f2;
  color: var(--tch-error);
}

.prompt-editor-modal .modal-body {
  padding: 0;
}

.prompt-editor-textarea {
  width: 100%;
  min-height: 500px;
  border: none;
  font-family: "Menlo", "Consolas", monospace;
  font-size: 0.85rem;
  padding: 1rem;
}

.prompt-editor-modal .CodeMirror {
  min-height: 500px;
  font-family: "Menlo", "Consolas", monospace;
  font-size: 0.85rem;
}

.prompt-editor-modal .modal-footer {
  padding: 1rem 1.5rem;
  gap: 0.5rem;
}

/* ----- Tutoriel popovers ----- */
.tutorial-popover {
  max-width: 340px;
  border-color: var(--tch-accent);
  box-shadow: var(--tch-shadow-lg);
  animation: popoverFadeIn 300ms var(--ease-out-expo);
}

.tutorial-popover .popover-header {
  background: var(--tch-primary);
  color: var(--tch-text-light);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1rem;
  border-bottom: 2px solid var(--tch-accent);
}

.tutorial-popover .popover-body {
  padding: 1rem 1.25rem;
  color: var(--tch-text);
}

.tutorial-step-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.9rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--tch-border);
}

.tutorial-step-progress {
  display: flex;
  gap: 6px;
}

.tutorial-step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--tch-border);
  transition: background-color 180ms var(--ease-out-expo), transform 180ms var(--ease-out-expo);
}

.tutorial-step-dot.is-active {
  background-color: var(--tch-accent);
  transform: scale(1.2);
}

.tutorial-step-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.tutorial-step-skip {
  color: var(--tch-text-muted);
  text-decoration: none;
  font-size: 0.825rem;
}

.tutorial-step-skip:hover {
  color: var(--tch-primary);
}

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

@media (prefers-reduced-motion: reduce) {
  .prompt-section,
  .tutorial-popover,
  .prompt-card,
  .upload-card,
  .prompt-ai-link {
    animation: none !important;
    transition: none !important;
  }
}

/* ----- Mobile ----- */
@media (max-width: 768px) {
  .prompt-page-header {
    align-items: flex-start;
  }

  .prompt-page-actions {
    width: 100%;
  }

  .prompt-section-head {
    gap: 0.75rem;
  }

  .prompt-section-index {
    font-size: 1.5rem;
  }

  .prompt-editor-modal .CodeMirror {
    font-size: 0.75rem;
    min-height: 360px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   CARTES D'ASSETS — Section « Préparer les éléments pour l'IA »
   QR code + photos marié/mariée sur la page invitation-prompt.
   ═══════════════════════════════════════════════════════════════════════════ */

.prompt-asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

/* Note « rien à joindre » — formats 1 page (carte simple / anonyme) */
.prompt-asset-note {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.25rem 1.5rem;
  background: var(--tch-bg, #FFF7EA);
  border: 1px solid var(--tch-border);
  border-left: 4px solid #C6A15B;
  border-radius: var(--tch-radius-lg);
}
.prompt-asset-note > i {
  font-size: 1.4rem;
  color: #C6A15B;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.prompt-asset-note__title {
  font-size: 1rem;
  font-weight: 700;
  color: #1E2A5A;
  margin: 0 0 0.35rem;
}
.prompt-asset-note p {
  margin: 0;
  color: #4a4a52;
  line-height: 1.55;
}

.prompt-asset-card {
  background: var(--tch-surface);
  border: 1px solid var(--tch-border);
  border-radius: var(--tch-radius-lg);
  padding: 1.5rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 200ms var(--ease-out-expo), box-shadow 200ms var(--ease-out-expo), transform 200ms var(--ease-out-expo);
}

.prompt-asset-card:hover {
  border-color: var(--tch-border-accent);
  box-shadow: var(--tch-shadow);
}

.prompt-asset-card--empty {
  border-style: dashed;
  background-color: color-mix(in srgb, var(--tch-surface) 92%, var(--tch-accent-tint));
}

.prompt-asset-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: var(--tch-accent-tint);
  color: var(--tch-accent-hover);
}

.prompt-asset-icon--qr {
  background: color-mix(in srgb, var(--tch-primary) 12%, transparent);
  color: var(--tch-primary);
}

.prompt-asset-icon--groom {
  background: color-mix(in srgb, var(--tch-primary) 10%, transparent);
  color: var(--tch-primary);
}

.prompt-asset-icon--bride {
  background: color-mix(in srgb, #C6A15B 16%, transparent);
  color: #8A6E3D;
}

.prompt-asset-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.2rem;
  color: var(--tch-primary);
  margin: 0;
  letter-spacing: -0.01em;
}

.prompt-asset-desc {
  color: var(--tch-text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

.prompt-asset-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.1rem;
}

.prompt-asset-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--tch-accent-tint);
  color: var(--tch-accent-hover);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.prompt-asset-preview {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--tch-radius-md, 10px);
  background-color: color-mix(in srgb, var(--tch-primary) 8%, transparent);
  margin-top: 0.1rem;
}

.prompt-asset-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 300ms var(--ease-out-expo);
}

/* Variante QR : fond blanc et image entière visible (contain) */
.prompt-asset-preview--qr {
  background-color: #FFFFFF;
  padding: 12px;
  box-sizing: border-box;
}

.prompt-asset-preview--qr img {
  object-fit: contain;
}

.prompt-asset-card:hover .prompt-asset-preview img {
  transform: scale(1.03);
}

.prompt-asset-card:hover .prompt-asset-preview--qr img {
  transform: none;
}

.prompt-asset-action {
  align-self: stretch;
  justify-content: center;
  margin-top: 0.5rem;
}

/* Micro-interaction : pulse subtil sur l'icône au hover */
.prompt-asset-card:hover .prompt-asset-icon {
  transform: scale(1.05);
  transition: transform 200ms var(--ease-out-expo);
}

/* ═════════════════════════════════════════════════════════════════════════════
   THEME DEMO ADMIN — Cartes de gestion des vitrines de thèmes
   ═════════════════════════════════════════════════════════════════════════════ */

/* Carte principale — chaque thème a sa carte */
.theme-demo-card {
    background: var(--admin-surface, #FFFFFF);
    border: 1px solid var(--admin-border, #E8E4DF);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.theme-demo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(30, 42, 90, 0.08);
}
.theme-demo-card--assigned {
    border-color: rgba(31, 122, 92, 0.35);
}
.theme-demo-card--assigned:hover {
    border-color: rgba(31, 122, 92, 0.6);
    box-shadow: 0 12px 32px rgba(31, 122, 92, 0.12);
}

/* Preview visuel : aperçu rendu mini de l'invitation avec les couleurs du thème */
.theme-demo-preview {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    isolation: isolate;
}
.theme-demo-preview__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(170deg, var(--theme-primary) 0%, color-mix(in srgb, var(--theme-primary) 65%, #000) 100%);
    z-index: 0;
}
.theme-demo-preview__bg::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 65%;
    height: 140%;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--theme-accent) 20%, transparent) 0%, transparent 70%);
    pointer-events: none;
}
.theme-demo-preview__content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
}
.theme-demo-preview__line {
    display: block;
    width: 32px;
    height: 1px;
    background: var(--theme-accent);
    opacity: 0.7;
    margin-bottom: 0.5rem;
}
.theme-demo-preview__title {
    font-family: 'Cormorant Garamond', 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--theme-accent);
    letter-spacing: -0.02em;
    line-height: 1;
}
.theme-demo-preview__date {
    display: block;
    font-size: 0.6rem;
    color: color-mix(in srgb, var(--theme-accent) 65%, transparent);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-top: 0.25rem;
}
.theme-demo-preview__btn {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 4px 14px;
    background: var(--theme-accent);
    color: var(--theme-primary);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 100px;
}

/* Corps de la carte : nom, description, état */
.theme-demo-body {
    padding: 1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.theme-demo-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--admin-text, #1E2A5A);
    letter-spacing: -0.01em;
}
.theme-demo-desc {
    font-size: 0.82rem;
    color: var(--admin-text-muted, #6B6B7B);
    line-height: 1.5;
    margin-bottom: 0.75rem;
    flex-grow: 1;
}

/* Vitrine actuelle assignée */
.theme-demo-current {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(31, 122, 92, 0.06);
    border: 1px solid rgba(31, 122, 92, 0.18);
    border-radius: 10px;
    color: #1F7A5C;
}
.theme-demo-current i {
    font-size: 1.1rem;
    flex-shrink: 0;
}
.theme-demo-current__info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-grow: 1;
}
.theme-demo-current__label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(31, 122, 92, 0.7);
}
.theme-demo-current__name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1E2A5A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Formulaire d'assignation rapide */
.theme-demo-assign-form .input-group .form-select {
    border-radius: 8px 0 0 8px;
    border-color: var(--admin-border, #E8E4DF);
    font-size: 0.85rem;
}
.theme-demo-assign-form .input-group .btn {
    border-radius: 0 8px 8px 0;
}

/* Encart fallback global actif */
.admin-fallback-active {
    background: linear-gradient(135deg, rgba(198, 161, 91, 0.06) 0%, rgba(198, 161, 91, 0.12) 100%);
    border: 1px solid rgba(198, 161, 91, 0.25);
}

/* Variante content-card avec bordure dorée pour mise en avant */
.content-card-accent {
    border-left: 3px solid #C6A15B;
    background: linear-gradient(90deg, rgba(198, 161, 91, 0.03) 0%, transparent 40%);
}

/* Accessibilité : réduction de mouvement */
@media (prefers-reduced-motion: reduce) {
    .theme-demo-card,
    .theme-demo-card:hover {
        transition: none;
        transform: none;
    }
}

/* ============================================
   CODES DE PARRAINAGE — UI Admin
   ============================================ */

.referral-code-pill {
    display: inline-block;
    padding: 4px 10px;
    background: var(--tch-accent-tint);
    color: var(--tch-primary);
    border: 1px solid var(--tch-border-accent);
    border-radius: var(--tch-radius);
    font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.referral-code-input {
    font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.referral-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--tch-surface);
    border: 1px solid var(--tch-border);
    border-radius: var(--tch-radius-lg);
    padding: 1.25rem;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

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

.referral-stat-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--tch-radius);
    background: linear-gradient(135deg, var(--tch-accent-tint) 0%, var(--tch-surface) 100%);
    color: var(--tch-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.referral-stat-card__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tch-text-muted);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.referral-stat-card__value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--tch-primary);
    line-height: 1.2;
}

.referral-stat-card__value span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--tch-text-muted);
}

.referral-table-card {
    border: 1px solid var(--tch-border);
    border-radius: var(--tch-radius-lg);
    overflow: hidden;
}

.referral-table-card thead {
    background-color: color-mix(in srgb, var(--tch-primary) 4%, var(--tch-surface));
}

.referral-table-card thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tch-text-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--tch-border);
}

.referral-usage-badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--tch-secondary-tint);
    color: var(--tch-secondary);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.referral-usage-badge.is-full {
    background: color-mix(in srgb, var(--tch-warning) 20%, transparent);
    color: var(--tch-warning);
}

.referral-empty-state {
    background: var(--tch-surface);
    border: 1px dashed var(--tch-border);
    border-radius: var(--tch-radius-lg);
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--tch-text-muted);
}

.referral-empty-state i {
    font-size: 3rem;
    color: var(--tch-accent);
    margin-bottom: 1rem;
    display: block;
}

.referral-empty-state h3 {
    color: var(--tch-text);
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.referral-detail-card {
    border: 1px solid var(--tch-border);
    border-radius: var(--tch-radius-lg);
}

.referral-detail-card .card-header {
    border-bottom: 1px solid var(--tch-border);
    padding: 1rem 1.25rem;
}

.referral-detail-list {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 0.75rem 1rem;
    margin-bottom: 0;
}

.referral-detail-list dt {
    font-size: 0.8125rem;
    color: var(--tch-text-muted);
    font-weight: 500;
}

.referral-detail-list dd {
    font-size: 0.9375rem;
    color: var(--tch-text);
    margin: 0;
    font-weight: 500;
}

.referral-owner-block__couple {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--tch-primary);
    margin-bottom: 0.5rem;
}

.referral-owner-block__name,
.referral-owner-block__contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--tch-text-muted);
    margin-top: 0.35rem;
}

.referral-owner-block__contact a {
    color: var(--tch-primary);
    text-decoration: none;
}

.referral-owner-block__contact a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .referral-detail-list {
        grid-template-columns: 1fr;
        gap: 0.25rem 0;
    }
    .referral-detail-list dd {
        margin-bottom: 0.75rem;
    }
}

/* ============================================
   FLUX MOT DE PASSE OUBLIÉ — 3 étapes OTP
   Layout standalone (pas d'extends admin/base) — pages publiques.
   ============================================ */
.auth-pwd-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--tch-primary) 0%, var(--tch-primary-hover) 100%);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    padding: 1.5rem;
    margin: 0;
}

.auth-pwd {
    width: 100%;
    max-width: 440px;
}

.auth-pwd__card {
    background: var(--tch-surface);
    border-radius: 20px;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    padding: 2.5rem 2rem;
}

.auth-pwd__brand {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-pwd__wordmark {
    display: block;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    color: var(--tch-primary);
    margin-bottom: 0.25rem;
}

.auth-pwd__subtitle {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 600;
    color: var(--tch-accent);
}

.auth-pwd__intro {
    text-align: center;
    color: var(--tch-text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1.5rem;
}

.auth-pwd__intro strong {
    color: var(--tch-primary);
    font-weight: 600;
}

.auth-pwd__alert {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.auth-pwd__alert i {
    font-size: 1.05rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.auth-pwd__alert--error {
    background: color-mix(in srgb, var(--tch-error) 12%, var(--tch-surface));
    border: 1px solid color-mix(in srgb, var(--tch-error) 30%, transparent);
    color: var(--tch-error);
}

.auth-pwd__alert--success {
    background: var(--tch-secondary-tint);
    border: 1px solid color-mix(in srgb, var(--tch-secondary) 30%, transparent);
    color: var(--tch-secondary);
}

.auth-pwd__alert--info {
    background: var(--tch-primary-tint);
    border: 1px solid color-mix(in srgb, var(--tch-primary) 25%, transparent);
    color: var(--tch-primary);
}

.auth-pwd__form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.auth-pwd__field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.auth-pwd__field label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--tch-text);
    letter-spacing: 0.02em;
}

.auth-pwd__field input {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--tch-text);
    background: var(--tch-bg);
    border: 1px solid var(--tch-border);
    border-radius: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-pwd__field input:focus {
    outline: none;
    border-color: var(--tch-accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--tch-accent) 18%, transparent);
}

.auth-pwd__hint {
    font-size: 0.78rem;
    color: var(--tch-text-muted);
}

/* Champ OTP — chiffres en grand format espacé */
.auth-pwd__field--otp .auth-pwd__otp-input {
    text-align: center;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.5em;
    padding: 1rem 0.5rem;
    color: var(--tch-primary);
    text-indent: 0.25em;
}

.auth-pwd__field--otp .auth-pwd__otp-input::placeholder {
    color: color-mix(in srgb, var(--tch-text-muted) 40%, transparent);
    letter-spacing: 0.4em;
}

.auth-pwd__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.95rem 1.5rem;
    margin-top: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: var(--tch-primary);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.auth-pwd__submit:hover {
    background: var(--tch-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -8px rgba(30, 42, 90, 0.4);
}

.auth-pwd__submit:active {
    transform: translateY(0);
}

.auth-pwd__back {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1.25rem;
    color: var(--tch-text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-pwd__back:hover {
    color: var(--tch-primary);
}

/* ============================================================================
   PUSH WEB ADMIN — Modale d'activation (pattern UX inspire de bagoue,
   adapte palette Tchefon indigo + or sur ivoire).
   ============================================================================ */

.tch-admin-push-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 26, 61, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow-y: auto;
    animation: tchPushModalFadein 0.3s ease;
}

.tch-admin-push-modal.is-hidden {
    display: none !important;
}

.tch-admin-push-modal__card {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: #FFF7EA;
    border: 1px solid rgba(198, 161, 91, 0.45);
    border-radius: 18px;
    box-shadow:
        0 30px 60px -15px rgba(15, 26, 61, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.08);
    overflow: hidden;
    animation: tchPushModalCardIn 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Visuel haut — degrade indigo profond + halo dore + cloche dansante */
.tch-admin-push-modal__visual {
    position: relative;
    height: 110px;
    background: linear-gradient(135deg, #1E2A5A 0%, #0F1A3D 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tch-admin-push-modal__visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(198, 161, 91, 0.32), transparent 55%),
        radial-gradient(circle at 75% 65%, rgba(31, 122, 92, 0.22), transparent 50%);
}

.tch-admin-push-modal__bell {
    position: relative;
    z-index: 2;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C6A15B 0%, #A8843E 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF7EA;
    box-shadow:
        0 0 0 1px rgba(198, 161, 91, 0.5),
        0 8px 24px rgba(198, 161, 91, 0.45);
    animation: tchPushModalBell 2.2s ease-in-out infinite;
}

.tch-admin-push-modal__bell svg {
    width: 28px;
    height: 28px;
}

.tch-admin-push-modal__ring {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #C6A15B;
    opacity: 0;
    z-index: 1;
    animation: tchPushModalRing 2.2s ease-out infinite;
}

.tch-admin-push-modal__ring--delay {
    animation-delay: 1.1s;
}

.tch-admin-push-modal__body {
    padding: 1.75rem 1.75rem 1.25rem;
}

.tch-admin-push-modal__eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: #C6A15B;
    margin: 0 0 0.5rem;
    text-align: center;
}

.tch-admin-push-modal__title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    font-size: clamp(1.4rem, 4vw, 1.75rem);
    color: #1E2A5A;
    text-align: center;
    margin: 0 0 1.25rem;
    line-height: 1.2;
    letter-spacing: 0;
}

.tch-admin-push-modal__benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tch-admin-push-modal__benefit {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #FFFFFF;
    border: 1px solid rgba(198, 161, 91, 0.25);
    border-radius: 10px;
    transition: border-color 0.18s ease-out, transform 0.18s ease-out;
}

.tch-admin-push-modal__benefit:hover {
    border-color: #C6A15B;
    transform: translateX(2px);
}

.tch-admin-push-modal__benefit-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFF7EA;
}

.tch-admin-push-modal__benefit-icon svg {
    width: 20px;
    height: 20px;
}

.tch-admin-push-modal__benefit-icon--instant {
    background: linear-gradient(135deg, #C6A15B 0%, #A8843E 100%);
}

.tch-admin-push-modal__benefit-icon--free {
    background: linear-gradient(135deg, #1F7A5C 0%, #155A43 100%);
    color: #FFF7EA;
}

.tch-admin-push-modal__benefit-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.tch-admin-push-modal__benefit-text strong {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1E2A5A;
}

.tch-admin-push-modal__benefit-text span {
    font-size: 0.82rem;
    color: rgba(31, 31, 44, 0.72);
    line-height: 1.4;
}

.tch-admin-push-modal__cta {
    width: 100%;
    min-height: 52px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #1E2A5A 0%, #0F1A3D 100%);
    color: #FFF7EA;
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow:
        0 0 0 1px rgba(198, 161, 91, 0.45),
        0 8px 22px rgba(15, 26, 61, 0.4);
    transition: transform 0.18s ease-out, box-shadow 0.18s ease-out;
    margin-bottom: 0.5rem;
}

.tch-admin-push-modal__cta:hover {
    transform: translateY(-1px);
    box-shadow:
        0 0 0 1px rgba(198, 161, 91, 0.7),
        0 12px 28px rgba(15, 26, 61, 0.55);
}

.tch-admin-push-modal__cta:active {
    transform: translateY(0) scale(0.99);
}

.tch-admin-push-modal__cta[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.tch-admin-push-modal__cta svg {
    width: 18px;
    height: 18px;
}

.tch-admin-push-modal__later {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: #1f1f2c;
    opacity: 0.65;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: opacity 0.18s ease-out, background 0.18s ease-out;
}

.tch-admin-push-modal__later:hover {
    opacity: 1;
    background: rgba(198, 161, 91, 0.08);
}

@keyframes tchPushModalFadein {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes tchPushModalCardIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes tchPushModalBell {
    0%, 100% { transform: rotate(0); }
    15% { transform: rotate(-12deg); }
    30% { transform: rotate(10deg); }
    45% { transform: rotate(-6deg); }
    60% { transform: rotate(4deg); }
    75% { transform: rotate(0); }
}

@keyframes tchPushModalRing {
    0% {
        transform: scale(1);
        opacity: 0.65;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

@media (max-width: 575.98px) {
    .tch-admin-push-modal {
        padding: 0.75rem;
    }
    .tch-admin-push-modal__card {
        max-width: 100%;
    }
    .tch-admin-push-modal__visual {
        height: 124px;
    }
    .tch-admin-push-modal__body {
        padding: 1.5rem 1.25rem 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tch-admin-push-modal,
    .tch-admin-push-modal__card,
    .tch-admin-push-modal__bell,
    .tch-admin-push-modal__ring {
        animation: none;
    }
}

/* ============================================================================
   PAGE PAIEMENTS — filtres actifs + carte de preuve
   ============================================================================ */

.btn-header-action.is-active {
    background: rgba(198, 161, 91, 0.18);
    border-color: rgba(198, 161, 91, 0.6);
    color: #FFF7EA;
    box-shadow: 0 2px 6px rgba(15, 26, 61, 0.18);
}

.proof-card {
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    transition: border-color 0.18s ease-out, box-shadow 0.18s ease-out;
}

.proof-card:hover {
    border-color: rgba(198, 161, 91, 0.45);
    box-shadow: 0 4px 12px rgba(30, 42, 90, 0.06);
}

.proof-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.proof-card__image-link {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    line-height: 0;
}

.proof-card__image {
    width: 100%;
    max-height: 360px;
    object-fit: contain;
    background: #1E2A5A;
    transition: transform 0.18s ease-out;
}

.proof-card__image-link:hover .proof-card__image {
    transform: scale(1.02);
}

.proof-card__code {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1E2A5A;
    background: #FFF7EA;
    border: 1px dashed #C6A15B;
    border-radius: 10px;
    padding: 0.75rem 1rem;
}

.proof-card__meta {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #6b6b7b;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* ============================================================================
   REFERRAL CODE FORM — selecteur de type (parrainage vs promo)
   ============================================================================ */

.referral-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.referral-type-card {
    position: relative;
    display: block;
    padding: 1.25rem;
    background: #fafafa;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    cursor: pointer;
    transition: border-color 0.18s ease-out, transform 0.18s ease-out, box-shadow 0.18s ease-out;
}

.referral-type-card:hover {
    border-color: rgba(198, 161, 91, 0.55);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(30, 42, 90, 0.08);
}

.referral-type-card.is-active {
    border-color: #C6A15B;
    background: #FFFFFF;
    box-shadow: 0 8px 22px rgba(198, 161, 91, 0.18);
}

.referral-type-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.referral-type-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1E2A5A 0%, #2d3d7a 100%);
    color: #FFF7EA;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    transition: background 0.18s ease-out;
}

.referral-type-card.is-active .referral-type-card__icon {
    background: linear-gradient(135deg, #C6A15B 0%, #A8843E 100%);
}

.referral-type-card__title {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1E2A5A;
    margin-bottom: 0.35rem;
}

.referral-type-card__desc {
    font-size: 0.85rem;
    color: rgba(31, 31, 44, 0.72);
    line-height: 1.45;
}

.is-hidden-section {
    display: none !important;
}

/* ============================================================================
   REFERRAL CODE — section Partager (URL + QR + canaux)
   ============================================================================ */

.referral-share-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #FFF7EA 100%);
}

.referral-share-qr {
    display: inline-block;
    padding: 0.75rem;
    background: #FFFFFF;
    border: 1px solid rgba(198, 161, 91, 0.35);
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(30, 42, 90, 0.08);
}

.referral-share-qr__image {
    display: block;
    width: 200px;
    height: 200px;
    max-width: 100%;
}

.referral-share-url {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.referral-share-url__input {
    flex: 1 1 280px;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    color: #1E2A5A;
    font-weight: 600;
    background: #FFFFFF;
    border: 2px solid rgba(30, 42, 90, 0.15);
}

.referral-share-url__input:focus {
    border-color: #C6A15B;
    outline: none;
    box-shadow: 0 0 0 4px rgba(198, 161, 91, 0.18);
}

.referral-share-url__copy {
    flex: 0 0 auto;
    transition: background 0.18s ease-out, border-color 0.18s ease-out;
}

.referral-share-url__copy.is-copied {
    background: #1F7A5C;
    border-color: #1F7A5C;
    color: #FFF7EA;
}

.referral-share-channels {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.referral-share-channels .btn {
    transition: transform 0.18s ease-out, box-shadow 0.18s ease-out;
}

.referral-share-channels .btn:hover {
    transform: translateY(-1px);
}

.referral-share-channels .btn.is-copied {
    background: #1F7A5C;
    border-color: #1F7A5C;
    color: #FFF7EA;
}

.referral-share-preview {
    background: #FFFFFF;
    border: 1px solid rgba(198, 161, 91, 0.25);
    border-radius: 10px;
    padding: 0.75rem 1rem;
}

.referral-share-preview > summary {
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1E2A5A;
    list-style: none;
}

.referral-share-preview > summary::-webkit-details-marker {
    display: none;
}

.referral-share-preview > summary::before {
    content: "\f282";
    font-family: 'bootstrap-icons';
    margin-right: 0.5rem;
    color: #C6A15B;
    transition: transform 0.18s ease-out;
    display: inline-block;
}

.referral-share-preview[open] > summary::before {
    transform: rotate(90deg);
}

.referral-share-preview__text {
    margin: 0.75rem 0 0;
    font-size: 0.9rem;
    color: #4a4a5e;
    line-height: 1.55;
    white-space: pre-line;
}

@media (max-width: 575.98px) {
    .referral-share-qr__image {
        width: 160px;
        height: 160px;
    }
    .referral-share-channels {
        flex-direction: column;
    }
    .referral-share-channels .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===================================================================
   ADMIN PACKAGE FEATURES — Drag-and-drop
   Cible : /admin/packages/{id}/edit
   =================================================================== */

.tch-feature-catalog {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 540px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.tch-feature-chip {
    display: grid;
    grid-template-columns: 28px 1fr auto auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    background: var(--tch-bg, #FFF7EA);
    border: 1px solid rgba(30, 42, 90, 0.08);
    border-radius: 0.5rem;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.tch-feature-chip:hover {
    background: #FFFFFF;
    border-color: rgba(198, 161, 91, 0.4);
}

.tch-feature-chip i.fas {
    color: var(--tch-primary, #1E2A5A);
}

.tch-feature-chip small {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
}

.tch-feature-add {
    color: var(--tch-secondary, #1F7A5C);
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
}

.tch-feature-add:hover {
    background: rgba(31, 122, 92, 0.12);
}

.tch-feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 100px;
}

.tch-feature-item {
    display: grid;
    grid-template-columns: 24px 28px 1fr auto auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.85rem;
    background: #FFFFFF;
    border: 1px solid rgba(30, 42, 90, 0.12);
    border-radius: 0.6rem;
    cursor: grab;
    transition: box-shadow 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}

.tch-feature-item:hover {
    box-shadow: 0 4px 12px rgba(30, 42, 90, 0.08);
}

.tch-feature-item.is-dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.tch-feature-item.is-excluded {
    background: #FAFAFA;
    opacity: 0.75;
}

.tch-feature-item.is-excluded .tch-feature-item__label {
    text-decoration: line-through;
    color: #999;
}

.tch-feature-item__handle {
    color: #BBB;
    cursor: grab;
}

.tch-feature-item__handle:active {
    cursor: grabbing;
}

.tch-feature-item__icon {
    color: var(--tch-primary, #1E2A5A);
    font-size: 1rem;
}

.tch-feature-item__body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.tch-feature-item__body .form-control-sm {
    font-size: 0.9rem;
    padding: 0.25rem 0.55rem;
    border-color: transparent;
    background: transparent;
}

.tch-feature-item__body .form-control-sm:focus {
    background: #FFFFFF;
    border-color: rgba(198, 161, 91, 0.5);
}

.tch-feature-item__toggle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(30, 42, 90, 0.15);
    background: #FFFFFF;
    color: var(--tch-secondary, #1F7A5C);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s ease, color 0.15s ease;
}

.tch-feature-item.is-excluded .tch-feature-item__toggle {
    color: var(--tch-warning, #D97706);
}

.tch-feature-item__toggle:hover {
    background: var(--tch-bg, #FFF7EA);
}

@media (max-width: 768px) {
    .tch-feature-item {
        grid-template-columns: 20px 24px 1fr;
        grid-template-rows: auto auto;
    }
    .tch-feature-item__toggle,
    .tch-feature-item [data-tch-feature-remove] {
        grid-column: 2 / -1;
    }
}

/* ===================================================================
   ADMIN PACKAGE BREAKDOWN — « Ce qu'il y a vraiment dedans »
   Cible : /admin/packages/{id}/edit (section Carnegie P20)
   =================================================================== */

.tch-breakdown-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.tch-breakdown-row {
    display: grid;
    grid-template-columns: 40px 160px 1fr;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.85rem;
    background: #FFFFFF;
    border: 1px solid rgba(30, 42, 90, 0.12);
    border-radius: 0.6rem;
    transition: box-shadow 0.18s ease;
}

.tch-breakdown-row:hover {
    box-shadow: 0 4px 12px rgba(30, 42, 90, 0.06);
}

.tch-breakdown-row--new {
    background: var(--tch-bg, #FFF7EA);
    border-style: dashed;
}

.tch-breakdown-row__preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(198, 161, 91, 0.12);
    color: var(--tch-accent, #C6A15B);
    font-size: 1rem;
}

.tch-breakdown-row__icon .form-control,
.tch-breakdown-row__label .form-control {
    background: transparent;
}

.tch-breakdown-row__icon .form-control:focus,
.tch-breakdown-row__label .form-control:focus {
    background: #FFFFFF;
    border-color: rgba(198, 161, 91, 0.5);
}

@media (max-width: 768px) {
    .tch-breakdown-row {
        grid-template-columns: 36px 1fr;
        grid-template-rows: auto auto;
    }
    .tch-breakdown-row__icon {
        grid-column: 2;
    }
    .tch-breakdown-row__label {
        grid-column: 1 / -1;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   L'Audience — Membres de famille (réordonnables via SortableJS)
   Onglet admin/wedding/show.html.twig#audience
   ═══════════════════════════════════════════════════════════════════════════ */

.family-member-drag-handle {
    cursor: grab;
    padding: 0 0.5rem;
    user-select: none;
    color: #8a8a8a;
    transition: color 0.15s ease;
}

.family-member-drag-handle:hover {
    color: var(--color-primary, #1E2A5A);
}

.family-member-drag-handle:active,
.family-member-card--chosen .family-member-drag-handle {
    cursor: grabbing;
}

.family-member-card--ghost {
    opacity: 0.4;
    background: #FFF7EA;
}

.family-member-card--chosen {
    box-shadow: 0 10px 28px rgba(30, 42, 90, 0.18);
    z-index: 10;
}

.family-member-icon-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto;
    background: linear-gradient(135deg, #fff1b8 0%, #d4af37 60%, #7a5b1a 100%);
    color: #1E2A5A;
    border-radius: 50%;
    font-size: 1.4rem;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -2px 4px rgba(0, 0, 0, 0.15),
        0 2px 6px rgba(0, 0, 0, 0.18);
}

.family-member-icon-badge .family-member-icon {
    font-family: serif;
    line-height: 1;
}

/* ============================================
   SIDEBAR STICKY (pages profile / password)
   ============================================ */
.tch-sidebar-sticky {
    position: sticky;
    top: calc(var(--tch-header-height) + 1.5rem);
}

.tch-sidebar-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(30, 42, 90, 0.04);
    transition: box-shadow 0.2s ease;
}

.tch-sidebar-card:hover {
    box-shadow: 0 4px 14px rgba(30, 42, 90, 0.08);
}

.tch-sidebar-card .section-header {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(198, 161, 91, 0.15);
}

@media (max-width: 991.98px) {
    .tch-sidebar-sticky {
        position: static;
        top: auto;
    }
}

/* ============================================
   NOTIFICATIONS — DROPDOWN HEADER + PAGE INDEX
   ============================================ */

/* Dropdown header — cloche */
.notif-dropdown {
    min-width: 360px;
    max-width: 400px;
    padding: 0;
}

.notif-dropdown .dropdown-header {
    background: var(--tch-bg);
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: var(--tch-primary);
}

.notif-mark-all-read {
    color: var(--tch-accent);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
}

.notif-mark-all-read:hover {
    color: var(--tch-accent-hover);
    text-decoration: underline;
}

.notif-list {
    max-height: 360px;
    overflow-y: auto;
    padding: 0;
}

.notif-list::-webkit-scrollbar {
    width: 6px;
}

.notif-list::-webkit-scrollbar-thumb {
    background: rgba(30, 42, 90, 0.25);
    border-radius: 3px;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--tch-border);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
    position: relative;
}

.notif-item:hover {
    background: rgba(198, 161, 91, 0.08);
    color: inherit;
}

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

.notif-item--unread {
    background: rgba(198, 161, 91, 0.05);
}

.notif-item--unread::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--tch-accent);
}

.notif-item__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.95rem;
}

.notif-item__icon--indigo { background: var(--tch-primary); }
.notif-item__icon--gold   { background: var(--tch-accent); }
.notif-item__icon--emerald { background: var(--tch-secondary); }

.notif-item__body {
    flex: 1;
    min-width: 0;
}

.notif-item__title {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--tch-primary);
    margin-bottom: 0.125rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notif-item__text {
    font-size: 0.8rem;
    color: var(--tch-text-muted, #6c757d);
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.notif-item__time {
    font-size: 0.7rem;
    color: var(--tch-text-muted, #6c757d);
    margin-top: 0.25rem;
}

.notif-empty {
    padding: 1.5rem 1rem;
}

/* Page index — liste paginée */
.notif-page-list {
    margin: 0;
    padding: 0;
}

.notif-page-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--tch-border);
    transition: background 0.15s ease;
}

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

.notif-page-item:hover {
    background: rgba(198, 161, 91, 0.05);
}

.notif-page-item--unread {
    background: rgba(198, 161, 91, 0.06);
    border-left: 3px solid var(--tch-accent);
    padding-left: calc(1.25rem - 3px);
}

.notif-page-item__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
}

.notif-page-item__icon--indigo { background: var(--tch-primary); }
.notif-page-item__icon--gold   { background: var(--tch-accent); }
.notif-page-item__icon--emerald { background: var(--tch-secondary); }

.notif-page-item__body {
    flex: 1;
    min-width: 0;
}

.notif-page-item__title {
    font-weight: 600;
    color: var(--tch-primary);
    margin-bottom: 0.25rem;
}

.notif-page-item__text {
    color: var(--tch-text-muted, #495057);
    font-size: 0.9rem;
    line-height: 1.45;
    margin-bottom: 0.5rem;
}

.notif-page-item__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notif-page-item__actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 575.98px) {
    .notif-dropdown {
        min-width: 300px;
        max-width: calc(100vw - 32px);
    }

    .notif-page-item {
        flex-wrap: wrap;
    }

    .notif-page-item__actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* ============================================
   NOTIFICATIONS — CENTRE (page /admin/notifications)
   ============================================ */

.notif-empty-icon {
    font-size: 2.5rem;
    opacity: 0.4;
    display: inline-block;
}

.notif-badge-unread {
    background: var(--tch-accent);
    color: #fff;
    font-size: 0.6875rem;
    padding: 0.25rem 0.5rem;
}

.notif-center-list {
    display: flex;
    flex-direction: column;
}

.notif-center-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s ease;
}

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

.notif-center-item:hover {
    background: rgba(198, 161, 91, 0.04);
}

.notif-center-item--unread {
    background: rgba(198, 161, 91, 0.06);
    border-left: 3px solid var(--tch-accent);
    padding-left: calc(1.5rem - 3px);
}

.notif-center-item__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
}

.notif-center-item__icon--indigo {
    background: linear-gradient(135deg, var(--tch-primary) 0%, #3d4f8a 100%);
}

.notif-center-item__icon--gold {
    background: linear-gradient(135deg, var(--tch-accent) 0%, #a8844a 100%);
}

.notif-center-item__icon--emerald {
    background: linear-gradient(135deg, var(--tch-secondary) 0%, #2a9a78 100%);
}

.notif-center-item__body {
    flex: 1;
    min-width: 0;
}

.notif-center-item__title {
    font-weight: 700;
    color: var(--tch-primary);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.notif-center-item__text {
    color: #4b5563;
    font-size: 0.9375rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.notif-center-item__time {
    font-size: 0.8125rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
}

.notif-center-item__actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 575.98px) {
    .notif-center-item {
        flex-wrap: wrap;
        padding: 1rem;
    }

    .notif-center-item--unread {
        padding-left: calc(1rem - 3px);
    }

    .notif-center-item__actions {
        width: 100%;
        justify-content: flex-end;
        padding-left: calc(48px + 1rem);
    }
}

/* ============================================
   AVATAR — composant rond utilisateur (profil admin)
   ============================================ */
.user-avatar-lg {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--tch-primary) 0%, #3d4f8a 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    box-shadow: 0 8px 24px rgba(30, 42, 90, 0.18);
    border: 3px solid var(--tch-accent);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.user-avatar-lg:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 30px rgba(198, 161, 91, 0.25);
}

.user-avatar-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.user-avatar-lg__initials {
    line-height: 1;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

@media (max-width: 575.98px) {
    .user-avatar-lg {
        width: 96px;
        height: 96px;
        font-size: 1.75rem;
    }
}

/* ============================================
   PAGE /admin/system/settings — layout éditorial
   Sommaire sticky à gauche + 5 sections empilées.
   ============================================ */

.tch-settings-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
}

.tch-settings-nav {
    position: relative;
}

.tch-settings-nav__sticky {
    position: sticky;
    top: calc(var(--tch-header-height) + 1.5rem);
}

.tch-settings-nav__eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--tch-accent);
    font-weight: 700;
    margin: 0 0 1rem;
    padding-left: 1rem;
}

.tch-settings-nav__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tch-settings-nav__item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--tch-primary);
    transition: background 0.2s ease, transform 0.2s ease;
    position: relative;
}

.tch-settings-nav__item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1rem;
    bottom: 1rem;
    width: 3px;
    border-radius: 2px;
    background: transparent;
    transition: background 0.2s ease;
}

.tch-settings-nav__item:hover {
    background: rgba(198, 161, 91, 0.08);
    color: var(--tch-primary);
}

.tch-settings-nav__item.is-active {
    background: rgba(198, 161, 91, 0.12);
}

.tch-settings-nav__item.is-active::before {
    background: var(--tch-accent);
}

.tch-settings-nav__num {
    flex-shrink: 0;
    font-family: "Cormorant Garamond", "Bodoni Moda", Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--tch-accent);
    line-height: 1;
    margin-top: 0.125rem;
    min-width: 1.5rem;
    text-align: center;
}

.tch-settings-nav__label {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.tch-settings-nav__label-title {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--tch-primary);
    letter-spacing: 0.01em;
}

.tch-settings-nav__label-hint {
    font-size: 0.7875rem;
    color: #6b7280;
    line-height: 1.35;
}

.tch-settings-main {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
    min-width: 0;
}

.tch-settings-section {
    scroll-margin-top: calc(var(--tch-header-height) + 1.25rem);
    background: var(--tch-surface);
    border: 1px solid rgba(30, 42, 90, 0.08);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 2px 16px rgba(30, 42, 90, 0.04);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.tch-settings-section:hover {
    box-shadow: 0 6px 28px rgba(30, 42, 90, 0.08);
}

.tch-settings-section__header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(198, 161, 91, 0.18);
}

.tch-settings-section__eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--tch-accent);
    font-weight: 700;
    margin-bottom: 0.625rem;
}

.tch-settings-section__title {
    font-family: "Cormorant Garamond", "Bodoni Moda", Georgia, serif;
    font-size: 2rem;
    line-height: 1.15;
    color: var(--tch-primary);
    margin: 0 0 0.625rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.tch-settings-section__intro {
    color: #4b5563;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
    max-width: 60ch;
}

.tch-settings-section__body {
    /* La forme intérieure (form-floating, row g-4) suit le pattern
       wedding/edit — aucun override nécessaire ici. */
}

.tch-settings-section__action {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(30, 42, 90, 0.06);
    display: flex;
    justify-content: flex-end;
}

/* Responsive — sidebar passe en haut, sections s'aèrent moins */
@media (max-width: 991.98px) {
    .tch-settings-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .tch-settings-nav__sticky {
        position: static;
    }

    .tch-settings-nav__list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .tch-settings-nav__item {
        padding: 0.625rem 0.875rem;
    }

    .tch-settings-nav__item::before {
        display: none;
    }

    .tch-settings-nav__label-hint {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .tch-settings-main {
        gap: 2rem;
    }

    .tch-settings-section {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .tch-settings-section__title {
        font-size: 1.625rem;
    }

    .tch-settings-section__header {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }

    .tch-settings-section__action {
        justify-content: stretch;
    }

    .tch-settings-section__action .btn {
        width: 100%;
    }
}

/* ============================================
   /admin/tracking — cards Meta + GA + code custom
   ============================================ */

.tch-tracking-card {
    background: #fff;
    border: 1px solid rgba(30, 42, 90, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tch-tracking-card:hover {
    border-color: rgba(198, 161, 91, 0.3);
    box-shadow: 0 4px 16px rgba(30, 42, 90, 0.06);
}

.tch-tracking-card__header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid rgba(30, 42, 90, 0.05);
}

.tch-tracking-card__logo {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
}

.tch-tracking-card__logo--meta { background: #1877f2; }
.tch-tracking-card__logo--google { background: #4285f4; }
.tch-tracking-card__logo--head { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.tch-tracking-card__logo--body { background: linear-gradient(135deg, #f59e0b, #d97706); }

.tch-tracking-card__title-block {
    flex: 1;
    min-width: 0;
}

.tch-tracking-card__name {
    font-weight: 700;
    color: var(--tch-primary);
    font-size: 0.9375rem;
    line-height: 1.3;
}

.tch-tracking-card__tag {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.125rem;
}

.tch-tracking-badge {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    letter-spacing: 0.02em;
}

.tch-tracking-badge--active {
    background: rgba(31, 122, 92, 0.12);
    color: var(--tch-secondary);
}

.tch-tracking-badge--idle {
    background: rgba(107, 114, 128, 0.12);
    color: #6b7280;
}

.tch-tracking-card__body {
    padding: 1.25rem;
    flex: 1;
}

.tch-tracking-card__help {
    margin: 0.75rem 0 0;
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.45;
}

.tch-tracking-card__help code {
    background: rgba(198, 161, 91, 0.1);
    color: var(--tch-accent-hover);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.tch-pixel-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.tch-pixel-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tch-pixel-row__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(198, 161, 91, 0.1);
    color: var(--tch-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.tch-pixel-row .form-control {
    flex: 1;
    font-family: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.875rem;
}

.tch-pixel-row__remove {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid rgba(220, 38, 38, 0.2);
    color: var(--tch-error);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.tch-pixel-row__remove:hover {
    background: rgba(220, 38, 38, 0.08);
    border-color: var(--tch-error);
}

.tch-pixel-add {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: transparent;
    border: 1px dashed rgba(198, 161, 91, 0.4);
    border-radius: 10px;
    color: var(--tch-accent-hover);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.tch-pixel-add:hover {
    background: rgba(198, 161, 91, 0.08);
    border-color: var(--tch-accent);
    border-style: solid;
}

.tch-tracking-code {
    font-family: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.8125rem;
    line-height: 1.5;
    background: #fafafa;
    border-color: rgba(30, 42, 90, 0.1);
    color: var(--tch-primary);
    resize: vertical;
    min-height: 180px;
}

.tch-tracking-code:focus {
    background: #fff;
    border-color: var(--tch-accent);
}


/* ──────────────────────────────────────────────────────────────────────────
   ANALYTICS DASHBOARD — Container hauteur fixe pour les graphes Chart.js
   ──────────────────────────────────────────────────────────────────────────
   Chart.js avec maintainAspectRatio: false a besoin d'un parent direct
   avec hauteur explicite, sinon ResizeObserver entre en boucle et le
   canvas grandit indéfiniment → scroll vertical infini sur la page.
   ────────────────────────────────────────────────────────────────────── */

.chart-fixed-container {
    position: relative;
    width: 100%;
    height: 320px;
}

.chart-fixed-container--tall {
    height: 420px;
}

@media (max-width: 768px) {
    .chart-fixed-container {
        height: 260px;
    }
    .chart-fixed-container--tall {
        height: 340px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   COCKPIT DÉCISIONNEL — page d'accueil admin (/admin)
   Mobile-first : tout s'empile en une colonne ; les grilles s'activent ≥ 560px
   et ≥ 992px. Couleurs via tokens --tch-* ; l'or reste réservé aux accents
   (revenu, période active). Les largeurs de barres/funnel sont posées par
   admin.js (data-ck-fill + data-pct) pour ne jamais écrire de style inline.
   ═══════════════════════════════════════════════════════════════════════════ */

.ck {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding-bottom: 1.5rem;
}

/* — En-tête + sélecteur de période — */
.ck-head {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(30, 42, 90, 0.07);
}
.ck-head__title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--tch-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    line-height: 1.1;
}
.ck-head__title i {
    font-size: 1.45rem;
    color: var(--tch-accent);
}
.ck-head__sub {
    color: var(--tch-text-muted);
    font-size: 0.92rem;
    margin: 0.4rem 0 0;
}
.ck-range {
    display: inline-flex;
    gap: 0.15rem;
    background: var(--tch-surface);
    border: 1px solid rgba(30, 42, 90, 0.08);
    border-radius: 999px;
    padding: 0.3rem;
    align-self: flex-start;
    box-shadow: 0 4px 14px -8px rgba(30, 42, 90, 0.25);
}
.ck-range__btn {
    border: 0;
    background: transparent;
    color: var(--tch-text-muted);
    font-weight: 600;
    font-size: 0.84rem;
    padding: 0.45rem 1.05rem;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
    white-space: nowrap;
}
.ck-range__btn:hover {
    color: var(--tch-primary);
    background: var(--tch-bg);
}
.ck-range__btn.is-active {
    background: linear-gradient(135deg, var(--tch-accent), #b9924c);
    color: #fff;
    box-shadow: 0 6px 16px -6px rgba(198, 161, 91, 0.7);
}

@media (min-width: 768px) {
    .ck-head {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* — Bande de section (eyebrow + titre serif) — */
.ck-band {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: -0.85rem;
}
.ck-band__eyebrow {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
    color: var(--tch-accent);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}
.ck-band__eyebrow::before {
    content: '';
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--tch-accent);
    display: inline-block;
}
.ck-band__title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--tch-primary);
    letter-spacing: -0.01em;
    line-height: 1.15;
    margin: 0;
}

/* — Grilles de KPI — */
.ck-kpis {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.1rem;
}
@media (min-width: 560px) {
    .ck-kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
    .ck-kpis--3 { grid-template-columns: repeat(3, 1fr); }
    .ck-kpis--4 { grid-template-columns: repeat(4, 1fr); }
}

.ck-kpi {
    position: relative;
    background: var(--tch-surface);
    border: 1px solid rgba(30, 42, 90, 0.06);
    border-radius: 18px;
    padding: 1.45rem 1.55rem;
    box-shadow: 0 14px 32px -20px rgba(30, 42, 90, 0.28);
    overflow: hidden;
    transition: transform 0.25s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)), box-shadow 0.25s ease;
}
.ck-kpi:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 40px -18px rgba(30, 42, 90, 0.32);
}
/* Halo d'accent diffus dans le coin — luxe discret, pas de barre dure */
.ck-kpi::after {
    content: '';
    position: absolute;
    top: -45%;
    right: -18%;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--ck-accent, var(--tch-primary)) 0%, transparent 68%);
    opacity: 0.08;
    pointer-events: none;
}
.ck-kpi--gold { --ck-accent: var(--tch-accent); }
.ck-kpi--emerald { --ck-accent: var(--tch-secondary); }
.ck-kpi--indigo { --ck-accent: var(--tch-primary); }
.ck-kpi--warn { --ck-accent: var(--tch-warning); }
.ck-kpi--danger { --ck-accent: var(--tch-error); }
.ck-kpi__label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--tch-text-muted);
    font-weight: 700;
    margin: 0;
}
.ck-kpi__value {
    font-family: 'Bodoni Moda', Georgia, serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--tch-primary);
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin-top: 0.55rem;
    font-variant-numeric: tabular-nums;
}
.ck-kpi__unit {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--tch-text-muted);
    letter-spacing: 0;
    margin-left: 0.3rem;
}
.ck-kpi__sub {
    margin-top: 0.6rem;
    font-size: 0.8rem;
    color: var(--tch-text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Carte revenu de tête — indigo profond, valeur dorée, halo or, span 2 ≥ 560px */
.ck-kpi--lead {
    background: linear-gradient(135deg, #243366 0%, #1a2552 55%, #131c42 100%);
    border: none;
    box-shadow: 0 22px 48px -22px rgba(30, 42, 90, 0.6);
}
.ck-kpi--lead::after {
    background: radial-gradient(circle, var(--tch-accent) 0%, transparent 68%);
    opacity: 0.18;
    width: 220px;
    height: 220px;
}
.ck-kpi--lead .ck-kpi__label,
.ck-kpi--lead .ck-kpi__sub { color: rgba(255, 255, 255, 0.68); }
.ck-kpi--lead .ck-kpi__value { color: #fff; font-size: 2.7rem; }
.ck-kpi--lead .ck-kpi__value strong { color: var(--tch-accent); font-weight: 600; }
.ck-kpi--lead .ck-kpi__unit { color: rgba(255, 255, 255, 0.6); }
@media (min-width: 560px) {
    .ck-kpi--lead { grid-column: span 2; }
}

/* — Panneau générique — */
.ck-panel {
    background: var(--tch-surface);
    border: 1px solid rgba(30, 42, 90, 0.06);
    border-radius: 18px;
    box-shadow: 0 14px 32px -22px rgba(30, 42, 90, 0.22);
    padding: 1.55rem 1.6rem;
}
.ck-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.3rem;
}
.ck-panel__title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--tch-primary);
    letter-spacing: -0.01em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}
.ck-panel__title i {
    font-size: 1rem;
    color: var(--tch-accent);
}
.ck-panel__hint {
    font-size: 0.78rem;
    color: var(--tch-text-muted);
    font-weight: 500;
}

/* — Grilles deux colonnes — */
.ck-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.4rem;
}
@media (min-width: 992px) {
    .ck-split { grid-template-columns: 1.6fr 1fr; align-items: start; }
    .ck-split--even { grid-template-columns: 1fr 1fr; }
}

/* — Barres horizontales libellées (formules, moyens, RSVP) — */
.ck-bars {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}
.ck-bar__top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
}
.ck-bar__name { font-weight: 600; color: var(--tch-text); font-size: 0.9rem; }
.ck-bar__val { color: var(--tch-text-muted); font-size: 0.82rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ck-bar__track {
    height: 12px;
    background: rgba(30, 42, 90, 0.06);
    border-radius: 999px;
    overflow: hidden;
}
.ck-bar__fill {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--tch-accent), #d9ba7d);
    border-radius: 999px;
    transition: width 0.9s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}
.ck-bar--emerald .ck-bar__fill { background: linear-gradient(90deg, var(--tch-secondary), #3a9d79); }
.ck-bar--indigo .ck-bar__fill { background: linear-gradient(90deg, var(--tch-primary), #34457e); }
.ck-bar--rose .ck-bar__fill { background: linear-gradient(90deg, #b85d6d, #d18999); }

/* — Funnel de conversion — */
.ck-funnel {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}
.ck-funnel__step { display: flex; flex-direction: column; gap: 0.4rem; }
.ck-funnel__meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 0.86rem;
}
.ck-funnel__name { font-weight: 600; color: var(--tch-text); }
.ck-funnel__count {
    font-family: 'Bodoni Moda', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--tch-primary);
    font-variant-numeric: tabular-nums;
}
.ck-funnel__rail {
    height: 46px;
    background: rgba(30, 42, 90, 0.05);
    border-radius: 12px;
    overflow: hidden;
}
.ck-funnel__fill {
    display: block;
    height: 100%;
    width: 0;
    min-width: 2.75rem;
    border-radius: 12px;
    background: linear-gradient(90deg, var(--tch-primary), var(--tch-accent));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transition: width 0.9s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}
.ck-funnel__step:nth-child(2) .ck-funnel__fill { background: linear-gradient(90deg, #2c3a6e, var(--tch-accent)); }
.ck-funnel__step:nth-child(3) .ck-funnel__fill { background: linear-gradient(90deg, var(--tch-secondary), var(--tch-accent)); }
.ck-funnel__step:nth-child(4) .ck-funnel__fill { background: linear-gradient(90deg, var(--tch-accent), var(--tch-accent-hover, #A8843D)); }

/* — Liste compacte (statuts production, mariages) — */
.ck-list { display: flex; flex-direction: column; }
.ck-list__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(30, 42, 90, 0.06);
}
.ck-list__row:last-child { border-bottom: none; }
.ck-list__name { font-size: 0.9rem; color: var(--tch-text); display: flex; align-items: center; gap: 0.6rem; }
.ck-list__count {
    font-family: 'Bodoni Moda', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--tch-primary);
    font-variant-numeric: tabular-nums;
}
.ck-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; background: var(--tch-text-muted); }
.ck-dot--emerald { background: var(--tch-secondary); }
.ck-dot--gold { background: var(--tch-accent); }
.ck-dot--warn { background: var(--tch-warning); }
.ck-dot--danger { background: var(--tch-error); }
.ck-dot--indigo { background: var(--tch-primary); }

/* — Liens d'action rapides — */
.ck-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.ck-action {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(30, 42, 90, 0.08);
    border-radius: 12px;
    background: var(--tch-surface);
    color: var(--tch-primary);
    font-weight: 600;
    font-size: 0.86rem;
    text-decoration: none;
    box-shadow: 0 8px 18px -14px rgba(30, 42, 90, 0.3);
    transition: border-color 0.2s ease, transform 0.2s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)), box-shadow 0.2s ease;
}
.ck-action:hover {
    border-color: var(--tch-accent);
    transform: translateY(-2px);
    box-shadow: 0 14px 26px -14px rgba(30, 42, 90, 0.32);
    color: var(--tch-primary);
}
.ck-action i { color: var(--tch-accent); font-size: 0.95rem; }

/* — État vide doux — */
.ck-empty {
    text-align: center;
    padding: 2.25rem 1.25rem;
    color: var(--tch-text-muted);
}
.ck-empty i { font-size: 2rem; color: var(--tch-accent); opacity: 0.5; }
.ck-empty p {
    margin: 0.85rem auto 0;
    max-width: 32ch;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.4;
    color: var(--tch-text-muted);
}

/* Tableau de données sous les graphes analytics — sobre, lisible */
.table-analytics thead th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6C7693;
    border-bottom: 2px solid #E5E7EB;
}

.table-analytics tbody td {
    font-size: 0.875rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #F3F4F6;
}

.table-analytics tbody tr:last-child td {
    border-bottom: none;
}

.table-analytics tbody tr:hover {
    background-color: rgba(30, 42, 90, 0.025);
}

/* ───────────────────────────────────────────────────────────────────────────
   intl-tel-input v25 — overrides pour s'intégrer aux form-floating Bootstrap
   et aux inputs plein-largeur du dashboard admin. La lib ajoute un wrapper
   .iti autour de l'input ; on lui donne 100% pour qu'il occupe la cellule
   et on aligne la hauteur sur Bootstrap (.form-control = 58px en floating).
   ─────────────────────────────────────────────────────────────────────────── */
.iti { width: 100%; display: block; }
.iti input[type="tel"][data-intl-tel-ready] {
    padding-left: 92px !important;
}

/* form-floating + intl-tel-input : la lib insère un wrapper .iti autour de
   l'input, ce qui casse la relation sibling input ↔ label dont dépend
   Bootstrap form-floating. On détecte le cas via :has() et on bascule sur
   un layout label-au-dessus, lisible et propre — sans cassure visuelle. */
.form-floating:has(.iti) {
    padding-top: 1.6rem;
    height: auto !important;
}
.form-floating:has(.iti) > label {
    position: static !important;
    transform: none !important;
    padding: 0 0 0.35rem !important;
    height: auto !important;
    width: auto !important;
    font-size: 0.84rem;
    color: var(--tch-primary, #1E2A5A);
    font-weight: 600;
    pointer-events: auto;
    opacity: 1 !important;
    background: transparent !important;
    border-radius: 0 !important;
    line-height: 1.2;
}
.form-floating:has(.iti) > .iti > input.form-control {
    padding-top: 0.55rem !important;
    padding-bottom: 0.55rem !important;
    height: 48px;
    padding-left: 92px !important;
}

.iti--separate-dial-code .iti__country-container { width: 84px; }
.iti__country-list { z-index: 1080; }

/* ───────────────────────────────────────────────────────────────────────────
   Tracking v2 — replay parcours visiteur (/admin/analytics/journey/{id}).
   Timeline verticale avec icône, libellé, payload et temps écoulé.
   ─────────────────────────────────────────────────────────────────────────── */
.journey-stat-card {
    background: #fff;
    border: 1px solid rgba(30, 42, 90, 0.08);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: 100%;
}
.journey-stat-card__label {
    font-size: 0.78rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.journey-stat-card__value {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1E2A5A;
}

.journey-timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}
.journey-timeline::before {
    content: "";
    position: absolute;
    left: 92px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(30, 42, 90, 0.08);
}

.journey-event {
    display: grid;
    grid-template-columns: 72px 40px 1fr;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 0;
    position: relative;
}
.journey-event__elapsed {
    color: #6b7280;
    font-variant-numeric: tabular-nums;
    font-size: 0.82rem;
    text-align: right;
    padding-top: 8px;
}
.journey-event__icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #FFF7EA;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1E2A5A;
    z-index: 1;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(30, 42, 90, 0.08);
}
.journey-event--gold .journey-event__icon { background: #FAEDD0; color: #C6A15B; }
.journey-event--emerald .journey-event__icon { background: #DFEEE7; color: #1F7A5C; }
.journey-event--red .journey-event__icon { background: #FDE2E2; color: #DC2626; }
.journey-event--warning .journey-event__icon { background: #FEEFD9; color: #D97706; }
.journey-event--indigo .journey-event__icon { background: #E2E5F1; color: #1E2A5A; }

.journey-event__body {
    background: #fff;
    border: 1px solid rgba(30, 42, 90, 0.06);
    border-radius: 10px;
    padding: 10px 14px;
}
.journey-event__title {
    font-size: 0.92rem;
    color: #1E2A5A;
    margin-bottom: 4px;
}
.journey-event__title code {
    background: rgba(30, 42, 90, 0.06);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
}
.journey-event__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.76rem;
    color: #6b7280;
}
.journey-event__meta i { margin-right: 3px; }

/* ───────────────────────────────────────────────────────────────────────────
   Analytics — passerelles entre /admin/analytics et ses vues détaillées.
   Carte cliquable inspirée des shortcuts dashboard.
   ─────────────────────────────────────────────────────────────────────────── */
.analytics-pill-link {
    border: 1px solid rgba(30, 42, 90, 0.08);
    background: var(--tch-surface, #FFFFFF);
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.analytics-pill-link:hover,
.analytics-pill-link:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(30, 42, 90, 0.10);
    border-color: rgba(198, 161, 91, 0.45);
    text-decoration: none;
    outline: none;
}
.bg-tchefon-primary-soft { background: rgba(30, 42, 90, 0.10); color: #1E2A5A; }
.bg-warning-soft { background: rgba(217, 119, 6, 0.14); color: #B25E04; }
.bg-success-soft { background: rgba(31, 122, 92, 0.14); color: #1F7A5C; }

/* ───────────────────────────────────────────────────────────────────────────
   Analytics drill-down — lignes de table et KPI cliquables vers /sessions.
   Curseur pointer + hover surface pour indiquer l'interactivité.
   ─────────────────────────────────────────────────────────────────────────── */
.analytics-drill-row {
    cursor: pointer;
    transition: background-color 150ms ease;
}
.analytics-drill-row:hover,
.analytics-drill-row:focus-within {
    background-color: rgba(198, 161, 91, 0.08);
}
.analytics-stat-link {
    color: inherit;
    transition: transform 200ms ease, box-shadow 200ms ease;
    display: flex;
    align-items: center;
}
.analytics-stat-link:hover,
.analytics-stat-link:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 42, 90, 0.10);
    color: inherit;
    outline: none;
}

/* ───────────────────────────────────────────────────────────────────────────
   Pagination Tchefon — composant réutilisable sur toutes les listes admin.
   Adapté du pattern cabinetsanteverte avec la palette Tchefon (indigo + or).
   ─────────────────────────────────────────────────────────────────────────── */
.tch-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 1.25rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(30, 42, 90, 0.08);
}
.tch-pagination__info {
    font-size: 0.82rem;
    color: #6b7280;
}
.tch-pagination__nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}
.tch-pagination__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.6rem;
    border: 1px solid rgba(30, 42, 90, 0.12);
    border-radius: 8px;
    background: #FFFFFF;
    color: #1E2A5A;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}
.tch-pagination__btn:hover,
.tch-pagination__btn:focus-visible {
    background: rgba(30, 42, 90, 0.04);
    border-color: rgba(198, 161, 91, 0.55);
    color: #1E2A5A;
    text-decoration: none;
    outline: none;
}
.tch-pagination__btn--active {
    background: linear-gradient(135deg, #1E2A5A 0%, #2A3873 100%);
    border-color: #1E2A5A;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(30, 42, 90, 0.22);
}
.tch-pagination__btn--active:hover,
.tch-pagination__btn--active:focus-visible {
    background: linear-gradient(135deg, #1E2A5A 0%, #2A3873 100%);
    color: #FFFFFF;
    transform: translateY(-1px);
}
.tch-pagination__btn--disabled {
    opacity: 0.35;
    cursor: not-allowed;
    color: #6b7280;
}
.tch-pagination__btn--disabled:hover {
    background: #FFFFFF;
    border-color: rgba(30, 42, 90, 0.12);
    color: #6b7280;
}
.tch-pagination__ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 36px;
    color: #6b7280;
    font-weight: 600;
}

@media (max-width: 576px) {
    .tch-pagination {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 0.85rem;
    }
    .tch-pagination__info {
        text-align: center;
        font-size: 0.78rem;
    }
    .tch-pagination__nav {
        justify-content: center;
    }
    .tch-pagination__btn {
        min-width: 32px;
        height: 32px;
        font-size: 0.8rem;
        padding: 0 0.45rem;
    }
}

/* ───────────────────────────────────────────────────────────────────────────
   Invitation-prompt page — sticky sub-nav + type cards + PDF preview
   ─────────────────────────────────────────────────────────────────────────── */
.prompt-subnav {
    position: sticky;
    top: 70px;
    z-index: 50;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    padding: 8px 10px;
    margin: 0 0 28px;
    background: rgba(255, 247, 234, 0.92);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(30, 42, 90, 0.08);
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(30, 42, 90, 0.06);
}
.prompt-subnav__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    color: #1E2A5A;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}
.prompt-subnav__link:hover,
.prompt-subnav__link:focus-visible {
    background: rgba(198, 161, 91, 0.18);
    color: #1E2A5A;
    text-decoration: none;
    outline: none;
}
.prompt-subnav__link > i { font-size: 0.95rem; color: #C6A15B; }

@media (max-width: 720px) {
    .prompt-subnav { top: 60px; gap: 2px; padding: 6px 8px; }
    .prompt-subnav__link { padding: 7px 10px; font-size: 0.78rem; }
    .prompt-subnav__link span { display: none; }
    .prompt-subnav__link > i { font-size: 1.1rem; margin: 0 auto; }
}

/* Type cards (section 0) — 3 modèles sélectionnables (boutons radio) */
.prompt-card--type {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    text-align: left;
    font: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: transform 150ms ease, box-shadow 150ms ease;
}
.prompt-card--type:hover {
    transform: translateY(-2px);
}
.prompt-card--type:focus-visible {
    outline: 2px solid #C6A15B;
    outline-offset: 2px;
}
.prompt-card--type-active::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px solid #C6A15B;
    pointer-events: none;
}
/* Badge « Sélectionné » — visible seulement sur la carte active */
.prompt-card-check {
    position: absolute;
    top: 12px;
    right: 12px;
    display: none;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    background: linear-gradient(135deg, #1F7A5C 0%, #2D8C70 100%);
    color: #FFFFFF;
}
.prompt-card--type-active .prompt-card-check {
    display: inline-flex;
}

/* PDF preview dans upload-card */
.upload-card-pdf-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    padding: 32px 18px;
    background: rgba(220, 38, 38, 0.06);
    border: 1px dashed rgba(220, 38, 38, 0.35);
    border-radius: 12px;
    color: #B91C1C;
}
.upload-card-pdf-preview > i { font-size: 3rem; }
.upload-card-pdf-preview > a {
    color: #B91C1C;
    font-weight: 600;
    text-decoration: none;
}
.upload-card-pdf-preview > a:hover { text-decoration: underline; }

/* Blocs pilotés par le type de carte (prompts + uploads).
   Seul le bloc correspondant au type sélectionné est visible — la page
   reste cohérente de haut en bas. */
.card-scope {
    display: none;
    animation: card-scope-fade 200ms ease-out;
}
.invitation-prompt-page[data-card-type="depliant"] .card-scope--depliant,
.invitation-prompt-page[data-card-type="simple"] .card-scope--simple,
.invitation-prompt-page[data-card-type="anonyme"] .card-scope--anonyme {
    display: block;
}

@keyframes card-scope-fade {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Upload imprimable — deux zones par face : image (aperçu) + PDF (imprimeur) */
.upload-kind-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 12px;
}
.upload-kind {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.upload-kind-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #1E2A5A;
    letter-spacing: 0.01em;
}
.upload-kind-label > i { color: #C6A15B; }

@media (max-width: 640px) {
    .upload-kind-grid { grid-template-columns: 1fr; }
}

/* ───────────────────────────────────────────────────────────────────────────
   Section VI — Édition messages delivery (refonte ergonomique 2026-05-28)
   Tabs tier en haut + 2 colonnes (annonce + relance) par tier actif.
   Loi de Hick : un seul tier visible à la fois.
   ─────────────────────────────────────────────────────────────────────────── */
.tch-msg-tabs {
    display: flex;
    gap: 6px;
    margin: 8px 0 20px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(30, 42, 90, 0.10);
    padding-bottom: 0;
}
.tch-msg-tab {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    background: transparent;
    border: 0;
    border-bottom: 3px solid transparent;
    color: rgba(30, 42, 90, 0.6);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
    margin-bottom: -1px;
    border-radius: 8px 8px 0 0;
}
.tch-msg-tab:hover {
    color: #1E2A5A;
    background: rgba(198, 161, 91, 0.06);
}
.tch-msg-tab--active {
    color: #1E2A5A;
    border-bottom-color: #C6A15B;
    background: rgba(198, 161, 91, 0.10);
}
.tch-msg-tab > i { font-size: 1rem; color: #C6A15B; }

.tch-msg-panel {
    display: none;
    animation: tch-msg-fade 220ms ease-out;
}
.tch-msg-panel--active { display: block; }

@keyframes tch-msg-fade {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.tch-msg-tier-help {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    padding: 12px 16px;
    background: rgba(30, 42, 90, 0.04);
    border-left: 3px solid #C6A15B;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #1E2A5A;
    line-height: 1.45;
}
.tch-msg-tier-help > i {
    color: #C6A15B;
    flex-shrink: 0;
    font-size: 1rem;
}

.tch-msg-field {
    background: #FFFFFF;
    border: 1px solid rgba(30, 42, 90, 0.08);
    border-radius: 12px;
    padding: 16px;
}
.tch-msg-field__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(30, 42, 90, 0.06);
}
.tch-msg-field__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1E2A5A;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tch-msg-field__counter {
    font-size: 0.78rem;
    color: #6b7280;
    font-variant-numeric: tabular-nums;
    background: rgba(30, 42, 90, 0.05);
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.tch-msg-field__chips {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.tch-msg-field__chips-label {
    font-size: 0.78rem;
    color: #6b7280;
    margin-right: 4px;
}
.tch-msg-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: rgba(198, 161, 91, 0.12);
    border: 1px solid rgba(198, 161, 91, 0.35);
    border-radius: 6px;
    cursor: pointer;
    transition: background 120ms ease, transform 120ms ease;
}
.tch-msg-chip:hover {
    background: rgba(198, 161, 91, 0.25);
    transform: translateY(-1px);
}
.tch-msg-chip > code {
    color: #7A5B1A;
    background: transparent;
    font-size: 0.8rem;
    padding: 0;
}

.tch-msg-textarea {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
    resize: vertical;
    min-height: 220px;
}

@media (max-width: 700px) {
    .tch-msg-tab {
        padding: 10px 14px;
        font-size: 0.85rem;
        flex: 1 1 auto;
        justify-content: center;
    }
    .tch-msg-tab span {
        display: inline;
    }
}
@media (max-width: 420px) {
    .tch-msg-tab span { display: none; }
    .tch-msg-tab > i { font-size: 1.15rem; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   INVITÉS — badges de catégorie, avatar photo, champ photo (création/édition)
   ═══════════════════════════════════════════════════════════════════════════ */
.guest-avatar-photo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(30, 42, 90, 0.18);
}
.guest-tier-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid transparent;
    white-space: nowrap;
}
.guest-tier-badge--vip {
    color: #8C6B22;
    background: rgba(198, 161, 91, 0.16);
    border-color: rgba(198, 161, 91, 0.45);
}
.guest-tier-badge--honneur {
    color: #1F7A5C;
    background: rgba(31, 122, 92, 0.12);
    border-color: rgba(31, 122, 92, 0.35);
}
.guest-tier-badge--amis {
    color: #1E2A5A;
    background: rgba(30, 42, 90, 0.08);
    border-color: rgba(30, 42, 90, 0.2);
}
/* Cortège — côté marié (indigo) : garçon d'honneur puis best man (plus appuyé). */
.guest-tier-badge--garcon_honneur {
    color: #2F4D8A;
    background: rgba(47, 77, 138, 0.10);
    border-color: rgba(47, 77, 138, 0.30);
}
.guest-tier-badge--best_man {
    color: #1E2A5A;
    background: rgba(30, 42, 90, 0.12);
    border-color: rgba(30, 42, 90, 0.34);
}
/* Cortège — côté mariée (rosé) : fille d'honneur puis dame de compagnie. */
.guest-tier-badge--fille_honneur {
    color: #B05A7A;
    background: rgba(176, 90, 122, 0.12);
    border-color: rgba(176, 90, 122, 0.34);
}
.guest-tier-badge--dame_compagnie {
    color: #9C4357;
    background: rgba(156, 67, 87, 0.12);
    border-color: rgba(156, 67, 87, 0.40);
}

/* ── Onglets de catégorie du listing des invités ──────────────────────────── */
.guest-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.4rem;
    padding: 0.85rem 1rem;
    overflow-x: auto;
    border-bottom: 1px solid rgba(30, 42, 90, 0.08);
    background: #FCFBF7;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.guest-tabs__tab {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid rgba(30, 42, 90, 0.14);
    background: #FFFFFF;
    color: #4a5170;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.42rem 0.85rem;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.guest-tabs__tab:hover {
    border-color: rgba(198, 161, 91, 0.45);
    color: #1E2A5A;
}
.guest-tabs__tab.is-active {
    background: #1E2A5A;
    border-color: #1E2A5A;
    color: #FFFFFF;
    box-shadow: 0 6px 16px rgba(30, 42, 90, 0.18);
}
.guest-tabs__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.25rem;
    padding: 0 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 999px;
    background: rgba(30, 42, 90, 0.08);
    color: #1E2A5A;
}
.guest-tabs__tab.is-active .guest-tabs__count {
    background: rgba(255, 255, 255, 0.22);
    color: #FFFFFF;
}
.guest-photo-field {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.guest-photo-preview {
    width: 120px;
    height: 120px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(30, 42, 90, 0.18);
}
.guest-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.guest-photo-drop {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.25rem;
    border: 2px dashed rgba(30, 42, 90, 0.25);
    border-radius: 14px;
    cursor: pointer;
    color: #1E2A5A;
    transition: border-color 0.2s, background 0.2s;
}
.guest-photo-drop:hover {
    border-color: var(--tch-accent, #C6A15B);
    background: rgba(198, 161, 91, 0.06);
}
.guest-photo-drop i {
    font-size: 1.4rem;
    color: var(--tch-accent, #C6A15B);
}
